c30c0595765ca69a0ff205dd9109410d7a276fe5
[pspp] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         floorf: Move AC_LIBOBJ invocations to module description.
4         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5         * modules/floorf (configure.ac): ... to here.
6
7 2011-05-20  Bruno Haible  <bruno@clisp.org>
8
9         sqrtl: Respect rules for use of AC_LIBOBJ.
10         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11         * modules/sqrtl (configure.ac): ... to here.
12
13 2011-05-20  Bruno Haible  <bruno@clisp.org>
14
15         ldexpl: Respect rules for use of AC_LIBOBJ.
16         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17         * modules/ldexpl (configure.ac): ... to here.
18
19 2011-05-20  Bruno Haible  <bruno@clisp.org>
20
21         frexpl*: Respect rules for use of AC_LIBOBJ.
22         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
23         invocation from here...
24         * modules/frexpl (configure.ac): ... to here.
25         * modules/frexpl-nolibm (configure.ac): ... and here.
26
27 2011-05-20  Bruno Haible  <bruno@clisp.org>
28
29         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
30         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
31         invocation from here...
32         * modules/frexp (configure.ac): ... to here.
33         * modules/frexp-nolibm (configure.ac): ... and here.
34
35 2011-05-20  Bruno Haible  <bruno@clisp.org>
36
37         isnan: Respect rules for use of AC_LIBOBJ.
38         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
39         invocations here.
40         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
41         REPLACE_ISNAN.
42         * modules/isnand (configure.ac): Likewise.
43         * modules/isnanl (configure.ac): Likewise.
44
45 2011-05-20  Bruno Haible  <bruno@clisp.org>
46
47         isnanl*: Respect rules for use of AC_LIBOBJ.
48         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49         invocation from here...
50         * modules/isnanl (configure.ac): ... to here.
51         * modules/isnanl-nolibm (configure.ac): ... and here.
52
53 2011-05-20  Bruno Haible  <bruno@clisp.org>
54
55         isnand*: Move AC_LIBOBJ invocations to module description.
56         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
57         invocation from here...
58         * modules/isnand (configure.ac): ... to here.
59         * modules/isnand-nolibm (configure.ac): ... and here.
60
61 2011-05-20  Bruno Haible  <bruno@clisp.org>
62
63         isnanf*: Move AC_LIBOBJ invocations to module description.
64         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
65         invocation from here...
66         * modules/isnanf (configure.ac): ... to here.
67         * modules/isnanf-nolibm (configure.ac): ... and here.
68
69 2011-05-20  Bruno Haible  <bruno@clisp.org>
70
71         isnan*: Separate the AC_LIBOBJ invocations.
72         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
73         AC_LIBOBJ invocation.
74         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
75         here.
76         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
77         AC_LIBOBJ invocation.
78         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
79         here.
80         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
81         AC_LIBOBJ invocation.
82         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
83         here.
84         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
85
86 2011-05-08  Bruno Haible  <bruno@clisp.org>
87
88         isinf: Move AC_LIBOBJ invocations to module description.
89         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
90         * modules/isinf (configure.ac): ... to here.
91
92 2011-05-08  Bruno Haible  <bruno@clisp.org>
93
94         isfinite: Move AC_LIBOBJ invocations to module description.
95         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
96         * modules/isfinite (configure.ac): ... to here.
97
98 2011-05-08  Bruno Haible  <bruno@clisp.org>
99
100         isblank: Move AC_LIBOBJ invocations to module description.
101         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
102         here...
103         * modules/isblank (configure.ac): ... to here.
104
105 2011-05-08  Bruno Haible  <bruno@clisp.org>
106
107         isapipe: Move AC_LIBOBJ invocations to module description.
108         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
109         gl_PREREQ_ISAPIPE invocations from here...
110         * modules/isapipe (configure.ac): ... to here.
111         (Depends-on): Update condition.
112
113 2011-05-08  Bruno Haible  <bruno@clisp.org>
114
115         ioctl: Move AC_LIBOBJ invocations to module description.
116         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
117         invocations from here...
118         * modules/ioctl (configure.ac): ... to here.
119         (Depends-on): Update condition.
120
121 2011-05-08  Bruno Haible  <bruno@clisp.org>
122
123         imaxdiv: Move AC_LIBOBJ invocations to module description.
124         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
125         invocations from here...
126         * modules/imaxdiv (configure.ac): ... to here.
127
128 2011-05-08  Bruno Haible  <bruno@clisp.org>
129
130         imaxabs: Move AC_LIBOBJ invocations to module description.
131         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
132         invocations from here...
133         * modules/imaxabs (configure.ac): ... to here.
134
135 2011-05-08  Bruno Haible  <bruno@clisp.org>
136
137         getaddrinfo: Move AC_LIBOBJ invocations to module description.
138         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
139         AC_LIBOBJ invocations from here...
140         * modules/getaddrinfo (configure.ac): ... to here.
141         (Depends-on): Add conditions.
142
143 2011-05-08  Bruno Haible  <bruno@clisp.org>
144
145         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
146         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
147         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
148         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
149         (gl_PREREQ_INET_PTON): ... from here.
150         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
151         gl_PREREQ_INET_PTON here.
152         (Depends-on): Update condition.
153
154 2011-05-08  Bruno Haible  <bruno@clisp.org>
155
156         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
157         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
158         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
159         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
160         (gl_PREREQ_INET_NTOP): ... from here.
161         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
162         gl_PREREQ_INET_NTOP here.
163         (Depends-on): Update condition.
164
165 2011-05-08  Bruno Haible  <bruno@clisp.org>
166
167         iconv_open: Move AC_LIBOBJ invocations to module description.
168         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
169         AC_LIBOBJ invocations from here...
170         * modules/iconv_open (configure.ac): ... to here.
171
172 2011-05-08  Bruno Haible  <bruno@clisp.org>
173
174         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
175         If module 'iconv_open' is among the main modules and module
176         'iconv_open-utf' is among the tests dependencies, then
177         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
178         return the special iconv_t values. Therefore iconv() and iconv_close()
179         must support these special iconv_t values, already in lib, not only in
180         tests.
181         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
182         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
183         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
184         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
185         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
186         (Depends-on): Add the dependencies of iconv_open-utf.
187         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
188         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
189         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
190
191 2011-05-08  Bruno Haible  <bruno@clisp.org>
192
193         group-member: Move AC_LIBOBJ invocations to module description.
194         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
195         gl_PREREQ_GROUP_MEMBER invocations from here...
196         * modules/group-member (configure.ac): ... to here.
197
198 2011-05-08  Bruno Haible  <bruno@clisp.org>
199
200         grantpt: Move AC_LIBOBJ invocations to module description.
201         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
202         invocations from here...
203         * modules/grantpt (configure.ac): ... to here.
204
205 2011-05-08  Bruno Haible  <bruno@clisp.org>
206
207         glob: Move AC_LIBOBJ invocations to module description.
208         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
209         from here...
210         * modules/glob (configure.ac): ... to here.
211
212 2011-05-08  Bruno Haible  <bruno@clisp.org>
213
214         getusershell: Move AC_LIBOBJ invocations to module description.
215         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
216         Move AC_LIBOBJ invocation from here...
217         * modules/getusershell (configure.ac): ... to here.
218         (Depends-on): Update condition.
219
220 2011-05-08  Bruno Haible  <bruno@clisp.org>
221
222         gettimeofday: Move AC_LIBOBJ invocations to module description.
223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
224         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
225         gl_PREREQ_GETTIMEOFDAY invocations from here...
226         * modules/gettimeofday (configure.ac): ... to here.
227
228 2011-05-08  Bruno Haible  <bruno@clisp.org>
229
230         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
231         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
232         just gl_FUNC_TZSET.
233         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
234         (gl_FUNC_TZSET_CLOBBER): Remove actions.
235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
236         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
237
238 2011-05-08  Bruno Haible  <bruno@clisp.org>
239
240         getsubopt: Move AC_LIBOBJ invocations to module description.
241         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
242         gl_PREREQ_GETSUBOPT invocations from here...
243         * modules/getsubopt (configure.ac): ... to here.
244
245 2011-05-08  Bruno Haible  <bruno@clisp.org>
246
247         getpass-gnu: Move AC_LIBOBJ invocations to module description.
248         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
249         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
250         * modules/getpass-gnu (configure.ac): ... to here.
251
252 2011-05-08  Bruno Haible  <bruno@clisp.org>
253
254         getpass: Move AC_LIBOBJ invocations to module description.
255         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
256         gl_PREREQ_GETPASS invocations from here...
257         * modules/getpass (configure.ac): ... to here.
258
259 2011-05-08  Bruno Haible  <bruno@clisp.org>
260
261         getpagesize: Move AC_LIBOBJ invocations to module description.
262         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
263         from here...
264         * modules/getpagesize (configure.ac): ... to here.
265
266 2011-05-08  Bruno Haible  <bruno@clisp.org>
267
268         getopt: Move AC_LIBOBJ invocations to module description.
269         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
270         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
271         invocations from here...
272         * modules/getopt-gnu (configure.ac): ... to here.
273         * modules/getopt-posix (configure.ac): ... and here.
274         (Depends-on): Update condition.
275
276 2011-05-08  Bruno Haible  <bruno@clisp.org>
277
278         getopt, argp: Respect rules for use of AC_LIBOBJ.
279         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
280         (gl_REPLACE_GETOPT_ALWAYS): New macro.
281         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
282         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
283
284 2011-05-08  Bruno Haible  <bruno@clisp.org>
285
286         getlogin_r: Move AC_LIBOBJ invocations to module description.
287         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
288         gl_PREREQ_GETLOGIN_R invocations from here...
289         * modules/getlogin_r (configure.ac): ... to here.
290
291 2011-05-08  Bruno Haible  <bruno@clisp.org>
292
293         getlogin: Move AC_LIBOBJ invocations to module description.
294         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
295         here...
296         * modules/getlogin (configure.ac): ... to here.
297
298 2011-05-08  Bruno Haible  <bruno@clisp.org>
299
300         getloadavg: Move AC_LIBOBJ invocations to module description.
301         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
302         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
303         * modules/getloadavg (configure.ac): ... to here.
304
305 2011-05-08  Bruno Haible  <bruno@clisp.org>
306
307         gethrxtime: Move AC_LIBOBJ invocations to module description.
308         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
309         LIB_GETHRXTIME from here...
310         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
311         invocations from here...
312         * modules/gethrxtime (configure.ac): ... to here.
313
314 2011-05-08  Bruno Haible  <bruno@clisp.org>
315
316         gethostname: Move AC_LIBOBJ invocations to module description.
317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
318         gl_PREREQ_GETHOSTNAME invocations from here...
319         * modules/gethostname (configure.ac): ... to here.
320
321 2011-05-08  Bruno Haible  <bruno@clisp.org>
322
323         getgroups: Move AC_LIBOBJ invocations to module description.
324         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
325         here...
326         * modules/getgroups (configure.ac): ... to here.
327
328 2011-05-08  Bruno Haible  <bruno@clisp.org>
329
330         getdtablesize: Move AC_LIBOBJ invocations to module description.
331         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
332         invocation from here...
333         * modules/getdtablesize (configure.ac): ... to here.
334
335 2011-05-08  Bruno Haible  <bruno@clisp.org>
336
337         getdomainname: Move AC_LIBOBJ invocations to module description.
338         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
339         gl_PREREQ_GETDOMAINNAME invocations from here...
340         * modules/getdomainname (configure.ac): ... to here.
341
342 2011-05-08  Bruno Haible  <bruno@clisp.org>
343
344         getline: Move AC_LIBOBJ invocations to module description.
345         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
346         invocations from here...
347         * modules/getline (configure.ac): ... to here.
348
349 2011-05-08  Bruno Haible  <bruno@clisp.org>
350
351         getline: Simplify.
352         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
353         It's already handled through the module dependency.
354
355 2011-05-08  Bruno Haible  <bruno@clisp.org>
356
357         getdelim: Move AC_LIBOBJ invocations to module description.
358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
359         and gl_PREREQ_GETDELIM invocations from here...
360         * modules/getdelim (configure.ac): ... to here.
361         (Depends-on): Fix condition.
362
363 2011-05-08  Bruno Haible  <bruno@clisp.org>
364
365         getcwd: Move AC_LIBOBJ invocations to module description.
366         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
367         invocations from here...
368         * modules/getcwd (configure.ac): ... to here.
369
370 2011-05-08  Bruno Haible  <bruno@clisp.org>
371
372         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
373         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
374         here...
375         * modules/getcwd-lgpl (configure.ac): ... to here.
376
377 2011-05-07  Bruno Haible  <bruno@clisp.org>
378
379         crypto/gc: Move AC_LIBOBJ invocations to module description.
380         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
381         * modules/crypto/gc (configure.ac): ... to here.
382
383 2011-05-07  Bruno Haible  <bruno@clisp.org>
384
385         fwriting: Move AC_LIBOBJ invocations to module description.
386         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
387         here...
388         * modules/fwriting (configure.ac): ... to here.
389
390 2011-05-07  Bruno Haible  <bruno@clisp.org>
391
392         fwritable: Move AC_LIBOBJ invocations to module description.
393         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
394         here...
395         * modules/fwritable (configure.ac): ... to here.
396
397 2011-05-07  Bruno Haible  <bruno@clisp.org>
398
399         futimens: Move AC_LIBOBJ invocations to module description.
400         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
401         here...
402         * modules/futimens (configure.ac): ... to here.
403
404 2011-05-07  Bruno Haible  <bruno@clisp.org>
405
406         ftruncate: Move AC_LIBOBJ invocations to module description.
407         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
408         gl_PREREQ_FTRUNCATE invocations from here...
409         * modules/ftruncate (configure.ac): ... to here.
410
411 2011-05-07  Bruno Haible  <bruno@clisp.org>
412
413         fsync: Move AC_LIBOBJ invocations to module description.
414         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
415         invocations from here...
416         * modules/fsync (configure.ac): ... to here.
417
418 2011-05-07  Bruno Haible  <bruno@clisp.org>
419
420         fsusage: Move AC_LIBOBJ invocations to module description.
421         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
422         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
423         * modules/fsusage (configure.ac): ... to here.
424
425 2011-05-07  Bruno Haible  <bruno@clisp.org>
426
427         freopen: Move AC_LIBOBJ invocations to module description.
428         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
429         invocations from here...
430         * modules/freopen (configure.ac): ... to here.
431
432 2011-05-07  Bruno Haible  <bruno@clisp.org>
433
434         free: Move AC_LIBOBJ invocations to module description.
435         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
436         invocations from here...
437         * modules/free (configure.ac): ... to here.
438
439 2011-05-07  Bruno Haible  <bruno@clisp.org>
440
441         freadable: Move AC_LIBOBJ invocations to module description.
442         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
443         here...
444         * modules/freadable (configure.ac): ... to here.
445
446 2011-05-07  Bruno Haible  <bruno@clisp.org>
447
448         fpurge: Move AC_LIBOBJ invocations to module description.
449         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
450         invocations from here...
451         * modules/fpurge (configure.ac): ... to here.
452
453 2011-05-07  Bruno Haible  <bruno@clisp.org>
454
455         fpending: Move AC_LIBOBJ invocations to module description.
456         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
457         gl_FUNC_FPENDING.
458         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
459         invocations from here...
460         * modules/fpending (configure.ac): ... to here.
461
462 2011-05-07  Bruno Haible  <bruno@clisp.org>
463
464         fopen: Move AC_LIBOBJ invocations to module description.
465         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
466         invocations from here...
467         * modules/fopen (configure.ac): ... to here.
468
469 2011-05-07  Bruno Haible  <bruno@clisp.org>
470
471         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
472         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
473         gl_FUNC_FNMATCH_POSIX.
474         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
475         invocations from here...
476         * modules/fnmatch (configure.ac): ... to here.
477         * modules/fnmatch-gnu (configure.ac): ... and here.
478
479 2011-05-07  Bruno Haible  <bruno@clisp.org>
480
481         flock: Move AC_LIBOBJ invocations to module description.
482         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
483         invocations from here...
484         * modules/flock (configure.ac): ... to here.
485
486 2011-05-07  Bruno Haible  <bruno@clisp.org>
487
488         fileblocks: Move AC_LIBOBJ invocations to module description.
489         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
490         gl_PREREQ_FILEBLOCKS invocations from here...
491         * modules/fileblocks (configure.ac): ... to here.
492
493 2011-05-06  Bruno Haible  <bruno@clisp.org>
494
495         fflush: Move AC_LIBOBJ invocations to module description.
496         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
497         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
498         invocations from here...
499         * modules/fflush (configure.ac): ... to here.
500
501 2011-05-06  Bruno Haible  <bruno@clisp.org>
502
503         fdopendir: Move AC_LIBOBJ invocations to module description.
504         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
505         here...
506         * modules/fdopendir (configure.ac): ... to here.
507         (Depends-on): Improve conditions.
508
509 2011-05-06  Bruno Haible  <bruno@clisp.org>
510
511         _Exit: Move AC_LIBOBJ invocations to module description.
512         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
513         invocations from here...
514         * modules/_Exit (configure.ac): ... to here.
515
516 2011-05-21  Bruno Haible  <bruno@clisp.org>
517
518         euidaccess: Respect rules for use of AC_LIBOBJ.
519         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
521         from here...
522         * modules/euidaccess (configure.ac): ... to here.
523
524 2011-05-06  Bruno Haible  <bruno@clisp.org>
525
526         error: Move AC_LIBOBJ invocations to module description.
527         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
528         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
529         invocations from here...
530         * modules/error (configure.ac): ... to here.
531
532 2011-05-06  Bruno Haible  <bruno@clisp.org>
533
534         duplocale: Move AC_LIBOBJ invocations to module description.
535         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
536         gl_PREREQ_DUPLOCALE invocations from here...
537         * modules/duplocale (configure.ac): ... to here.
538
539 2011-05-05  Bruno Haible  <bruno@clisp.org>
540
541         dirfd: Move AC_LIBOBJ invocations to module description.
542         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
543         gl_FUNC_DIRFD.
544         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
545         here...
546         * modules/dirfd (configure.ac): ... to here.
547         (Depends-on): Fix condition.
548
549 2011-05-05  Bruno Haible  <bruno@clisp.org>
550
551         chown: Respect rules for use of AC_LIBOBJ.
552         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
553         * modules/chown (configure.ac): ... to here.
554
555 2011-05-05  Bruno Haible  <bruno@clisp.org>
556
557         chdir-long: Move AC_LIBOBJ invocations to module description.
558         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
559         gl_PREREQ_CHDIR_LONG invocations from here...
560         * modules/chdir-long (configure.ac): ... to here.
561
562 2011-05-05  Bruno Haible  <bruno@clisp.org>
563
564         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
565         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
566         from here...
567         * modules/canonicalize-lgpl (configure.ac): ... to here.
568
569 2011-05-05  Bruno Haible  <bruno@clisp.org>
570
571         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
572         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
573         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
574         REPLACE_CALLOC.
575         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
576         * modules/calloc-gnu (configure.ac): Likewise.
577
578 2011-05-05  Bruno Haible  <bruno@clisp.org>
579
580         btowc: Move AC_LIBOBJ invocations to module description.
581         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
582         invocations from here...
583         * modules/btowc (configure.ac): ... to here.
584
585 2011-05-21  Bruno Haible  <bruno@clisp.org>
586
587         atexit: Move AC_LIBOBJ invocations to module description.
588         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
590         here...
591         * modules/atexit (configure.ac): ... to here.
592
593 2011-05-05  Bruno Haible  <bruno@clisp.org>
594
595         atoll: Move AC_LIBOBJ invocations to module description.
596         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
597         invocations from here...
598         * modules/atoll (configure.ac): ... to here.
599
600 2011-05-05  Bruno Haible  <bruno@clisp.org>
601
602         argz: Move AC_LIBOBJ invocations to module description.
603         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
604         * modules/argz (configure.ac): ... to here.
605
606 2011-05-05  Bruno Haible  <bruno@clisp.org>
607
608         alphasort: Move AC_LIBOBJ invocations to module description.
609         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
610         gl_PREREQ_ALPHASORT invocations from here...
611         * modules/alphasort (configure.ac): ... to here.
612
613 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
614
615         verify: new macro verify_expr; verify_true deprecated
616         * NEWS: Mention this.
617         * doc/verify.texi (Compile-time Assertions): Document this.
618         * lib/verify.h (verify_true): Deprecate.
619         (verify_expr): New macro.
620         * tests/test-verify.c (function): Test verify_expr.
621
622 2011-06-14  Jim Meyering  <meyering@redhat.com>
623
624         init.sh: give more portable redirection-related advice in a comment
625         * tests/init.sh (stderr_fileno_): Update the advice in comments.
626         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
627         for lots of discussion.  Stefano Lattarini suggested the solution
628         of putting "9>&2" after the command.  Reported by Bruno Haible.
629
630 2011-06-13  Bruno Haible  <bruno@clisp.org>
631
632         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
633         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
634         'none'.
635
636 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
637
638         ftoastr: use strtof only if HAVE_STRTOF
639         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
641         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
642         * modules/ftoastr (configure.ac): Check for strtof.
643
644 2011-06-13  Bruno Haible  <bruno@clisp.org>
645
646         gnulib-tool: Addendum to 2011-06-08 commit.
647         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
648         and --witness-c-macro have been given, augment AM_CPPFLAGS.
649
650 2011-06-13  Bruno Haible  <bruno@clisp.org>
651
652         fseeko: Provide a non-inline replacement of fseek().
653         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
654         * modules/fseeko (Depends-on): Add fseek.
655         * modules/fseek (License): Change to LGPLv2+.
656
657 2011-06-13  Bruno Haible  <bruno@clisp.org>
658
659         ftello: Provide a non-inline replacement of ftell().
660         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
661         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
662         not have ftello() (such as on mingw).
663         * modules/ftello (Depends-on): Add ftell.
664         * modules/ftell (License): Change to LGPLv2+.
665
666 2011-05-07  Bruno Haible  <bruno@clisp.org>
667
668         ftell: Move AC_LIBOBJ invocations to module description.
669         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
670         * modules/ftell (configure.ac): ... to here.
671
672 2011-05-07  Bruno Haible  <bruno@clisp.org>
673
674         ftello: Respect rules for use of AC_LIBOBJ.
675         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
676         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
677         here...
678         * modules/ftello (configure.ac): ... to here.
679
680 2011-05-07  Bruno Haible  <bruno@clisp.org>
681
682         fseeko: Simplify.
683         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
684         (gl_FUNC_FSEEKO): Inline it here.
685
686 2011-05-07  Bruno Haible  <bruno@clisp.org>
687
688         fseek: Move AC_LIBOBJ invocations to module description.
689         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
690         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
691         * modules/fseek (configure.ac): ... to here.
692
693 2011-05-07  Bruno Haible  <bruno@clisp.org>
694
695         fseek: Respect rules for use of AC_LIBOBJ.
696         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
697         here...
698         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
699
700 2011-05-07  Bruno Haible  <bruno@clisp.org>
701
702         fseeko: Respect rules for use of AC_LIBOBJ.
703         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
704         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
705         here...
706         * modules/fseeko (configure.ac): ... to here.
707
708 2011-06-13  Bruno Haible  <bruno@clisp.org>
709
710         gnulib-tool: Allow comments in the 'Depends-on' section.
711         * doc/gnulib.texi (Module description): Mention comment syntax in the
712         Depends-on section.
713         * gnulib-tool (func_get_dependencies): Filter out comment lines.
714
715 2011-06-13  Bruno Haible  <bruno@clisp.org>
716
717         file-set.h: guard __attibute__ use, now that it's not always defined
718         * lib/file-set.h (record_file): Use __attribute__ only with compiler
719         versions that support it.  This fixes a coreutils build failure with
720         the vendor cc on HP-UX 11.31.
721
722 2011-06-12  Bruno Haible  <bruno@clisp.org>
723
724         acl: Add support for HP-UX >= 11.11 JFS ACLs.
725         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
726         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
727         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
728         (acl, aclsort): New declarations.
729         (aclv_nontrivial): New declaration.
730         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
731         (file_has_acl): Read also the second kind of HP-UX ACLs.
732         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
733         kind of HP-UX ACLs if the first kind fails.
734         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
735         second kind of HP-UX ACLs.
736         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
737         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
738         agree.
739         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
740         hpuxjfs.
741         Handle hpuxjfs.
742         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
743         hpuxjfs.
744         Handle hpuxjfs.
745         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
746         (func_test_same_acls): Use both lsacl and getacl.
747         Handle hpuxjfs.
748         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
749         (func_test_same_acls): Use both lsacl and getacl.
750         Handle hpuxjfs.
751
752 2011-06-12  Bruno Haible  <bruno@clisp.org>
753
754         acl: Complete the 2010-08-10 fix.
755         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
756         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
757         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
758         explicitly.
759         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
760         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
761
762 2011-06-12  Bruno Haible  <bruno@clisp.org>
763
764         spawn-pipe tests: Comments.
765         * tests/test-spawn-pipe-child.c (main): Update comment.
766         Reported by James Youngman <jay@gnu.org>.
767
768 2011-06-11  James Youngman  <jay@gnu.org>
769
770         New module 'stat-size'.
771         * modules/stat-size: New module.  Provides macros for accessing
772         file size information in instances of struct stat.  Depends on the
773         fileblocks module because it calls st_blocks.
774         * lib/stat-size.h: New file, adapted from coreutils' system.h.
775         * doc/gnulib.texi: Include stat-size.texi.
776         * doc/stat-size.texi: Documentation for this module.
777         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
778         * m4/fileblocks.m4: Mention that stat-size depends on the call to
779         AC_STRUCT_ST_BLOCKS.
780
781 2011-06-09  Bruno Haible  <bruno@clisp.org>
782
783         thread: Support pthreads-win32.
784         * lib/glthread/thread.h (gl_thread_self): Define differently on
785         pthreads-win32.
786         (gl_null_thread): New declaration.
787         (gl_thread_self_pointer): New macro.
788         * lib/glthread/thread.c (gl_null_thread): New constant.
789         * tests/test-lock.c: Use gl_thread_self_pointer instead of
790         gl_thread_self.
791         * tests/test-tls.c: Likewise.
792         Suggested by Paul Eggert. Reported by Eric Blake.
793
794 2011-06-09  Bruno Haible  <bruno@clisp.org>
795
796         thread: Fix confusion between NULL and 0.
797         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
798         Reported by Paul Eggert.
799
800 2011-06-09  Bruno Haible  <bruno@clisp.org>
801
802         spawn-pipe tests: Avoid test failure on HP-UX 11.
803         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
804         is closed.
805
806 2011-06-09  Bruno Haible  <bruno@clisp.org>
807
808         acl tests: Fix compilation error on HP-UX 11.
809         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
810
811 2011-06-09  Bruno Haible  <bruno@clisp.org>
812
813         rmdir: Avoid test failure on HP-UX 10.20.
814         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
815         EEXIST.
816
817 2011-06-08  Eric Blake  <eblake@redhat.com>
818
819         perror: fix test on mingw
820         * modules/perror-tests (Depends-on): Add dup2.
821
822         strerror_r-posix: fix on MacOS
823         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
824         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
825         logic bug.
826         * lib/strerror_r.c (strerror_r): Fix the bug.
827         * lib/strerror.c (strerror): Likewise.
828         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
829         problem.
830         * doc/posix-functions/strerror.texi (strerror): Likewise.
831         * doc/posix-functions/perror.texi (perror): Likewise.
832         * tests/test-strerror.c (main): Enhance test.
833         * tests/test-strerror_r.c (main): Likewise.
834
835 2011-06-08  Bruno Haible  <bruno@clisp.org>
836
837         gnulib-tool: Better isolation between different gnulib-tool invocations.
838         * gnulib-tool: New option --witness-c-macro.
839         (witness_c_macro): New variable.
840         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
841         AM_CPPFLAGS define it as a C macro.
842         (func_emit_tests_Makefile_am): Likewise.
843         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
844         read it from there.
845         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
846         m4_define, not AC_DEFUN.
847         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
848         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
849         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
850         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
851         s|...|...|, to substitute the values of the GNULIB_* module indicator
852         variables.
853         * modules/dirent (Makefile.am): Likewise.
854         * modules/fcntl-h (Makefile.am): Likewise.
855         * modules/iconv-h (Makefile.am): Likewise.
856         * modules/langinfo (Makefile.am): Likewise.
857         * modules/locale (Makefile.am): Likewise.
858         * modules/math (Makefile.am): Likewise.
859         * modules/netdb (Makefile.am): Likewise.
860         * modules/poll-h (Makefile.am): Likewise.
861         * modules/pty (Makefile.am): Likewise.
862         * modules/search (Makefile.am): Likewise.
863         * modules/signal (Makefile.am): Likewise.
864         * modules/spawn (Makefile.am): Likewise.
865         * modules/stdio (Makefile.am): Likewise.
866         * modules/stdlib (Makefile.am): Likewise.
867         * modules/string (Makefile.am): Likewise.
868         * modules/sys_ioctl (Makefile.am): Likewise.
869         * modules/sys_select (Makefile.am): Likewise.
870         * modules/sys_socket (Makefile.am): Likewise.
871         * modules/sys_stat (Makefile.am): Likewise.
872         * modules/sys_times (Makefile.am): Likewise.
873         * modules/sys_utsname (Makefile.am): Likewise.
874         * modules/sys_wait (Makefile.am): Likewise.
875         * modules/termios (Makefile.am): Likewise.
876         * modules/time (Makefile.am): Likewise.
877         * modules/unistd (Makefile.am): Likewise.
878         * modules/wchar (Makefile.am): Likewise.
879
880 2011-06-08  Eric Blake  <eblake@redhat.com>
881
882         strerror: simplify replacement
883         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
884         * modules/strerror (configure.ac): No prereqs needed here...
885         * modules/strerror-override (configure.ac): ...but this needs it.
886         (Files): Add file for needed prereq macro.
887
888 2011-06-08  Bruno Haible  <bruno@clisp.org>
889
890         strerror_r-posix: Tweaks.
891         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
892         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
894         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
895         (gl_FUNC_STRERROR_R): ... to here.
896         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
897
898 2011-06-07  Eric Blake  <eblake@redhat.com>
899
900         perror: document fixed bugs
901         * doc/posix-functions/perror.texi (perror): Document recent
902         patches.
903
904 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
905
906         stat-time: get_stat_birthtime failure is better-defined
907         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
908         return a timestamp whose tv_sec and tv_nsec values are both -1.
909         Previously, the spec said only that the tv_nsec value was negative.
910         This upward-compatible change simplifies GNU tar a bit.
911
912 2011-06-07  Eric Blake  <eblake@redhat.com>
913
914         strerror_r-posix: work around cygwin 1.7.9
915         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
916         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
917         bug without replacing strerror_r.
918         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
919         strerror_r is buggy, but without requiring strerror_r compilation.
920         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
921
922         test-perror: relax test to ignore cygwin bug
923         * tests/test-perror2.c (main): Relax test on requiring detection
924         of stream errors, and use unbuffered stream.
925         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
926         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
927         * doc/posix-functions/fputc.texi (fputc): Likewise.
928         * doc/posix-functions/fputs.texi (fputs): Likewise.
929         * doc/posix-functions/fputws.texi (fputws): Likewise.
930         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
931         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
932         * doc/posix-functions/getopt.texi (getopt): Likewise.
933         * doc/posix-functions/perror.texi (perror): Likewise.
934         * doc/posix-functions/printf.texi (printf): Likewise.
935         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
936         * doc/posix-functions/psignal.texi (psignal): Likewise.
937         * doc/posix-functions/putc.texi (putc): Likewise.
938         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
939         Likewise.
940         * doc/posix-functions/putchar.texi (putchar): Likewise.
941         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
942         Likewise.
943         * doc/posix-functions/puts.texi (puts): Likewise.
944         * doc/posix-functions/putwc.texi (putwc): Likewise.
945         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
946         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
947         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
948         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
949         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
950         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
951         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
952         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
953
954 2011-05-22  Bruno Haible  <bruno@clisp.org>
955
956         strerror: Move AC_LIBOBJ invocations to module description.
957         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
958         gl_PREREQ_STRERROR invocations from here...
959         * modules/strerror (configure.ac): ... to here.
960
961 2011-05-21  Bruno Haible  <bruno@clisp.org>
962
963         perror: Use common idiom.
964         * modules/perror (configure.ac): Reorder statements.
965
966 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
967
968         tests: fix usage message in 'mktempd_'
969         * tests/init.sh (mktempd_): In the usage message, use literal
970         'mktempd_', not '$ME' (which is even undefined), as the name of
971         the subroutine.
972
973 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
974
975         tests init: new function 'fatal_', for hard errors
976         Before this patch, the only way offered by tests/init.sh to
977         properly signal a hard error was the `framework_failure_'
978         function.  But the error message issued by that function,
979         as its name would suggest, refers to a set-up failure in the
980         testsuite, while hard errors can obviously also be due to
981         other reasons.  The best way to fix this inconsistency is to
982         introduce a new function with a more general error message.
983         * tests/init.sh (fatal_): New function.
984
985 2011-06-06  Eric Blake  <eblake@redhat.com>
986
987         canonicalize-lgpl: use common idiom
988         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
989         over newer POSIX -Rf.
990         Reported by Bruno Haible.
991
992         canonicalize-lgpl: work around AIX realpath bug
993         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
994         * doc/posix-functions/realpath.texi (realpath): Document it.
995         Reported by Bruno Haible.
996
997         strerror: work around FreeBSD bug
998         * lib/strerror.c (strerror): Special case 0.
999         Reported by Bruno Haible.
1000
1001         strerror-override: avoid bloating errno module
1002         * modules/errno (Files, configure.ac): Move replacement strings...
1003         * modules/strerror-override: ...to new module.
1004         * modules/strerror (Depends-on): Add strerror-override.
1005         * modules/strerror_r-posix (Depends-on): Likewise.
1006         * MODULES.html.sh: Document new module.
1007         Reported by Bruno Haible.
1008
1009 2011-06-06  Bruno Haible  <bruno@clisp.org>
1010
1011         spawn-pipe tests: Rename program.
1012         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1013         * tests/test-spawn-pipe-child.c: Update comment.
1014         * tests/test-spawn-pipe.sh: Update.
1015         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1016
1017         spawn-pipe tests: Link the child program only against libc.
1018         * tests/test-spawn-pipe-child.c: New file, extracted from
1019         tests/test-spawn-pipe.c.
1020         (main): Expect only one argument.
1021         (is_open): New function, copied from tests/test-pipe.c.
1022         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1023         (child_main): Remove function.
1024         (test_pipe): Pass only one argument to the child program.
1025         (main): Remove child process code. Expect the child program's name as
1026         first argument.
1027         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1028         argument.
1029         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1030         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1031         test-spawn-pipe-child against no libraries.
1032
1033 2011-06-06  Bruno Haible  <bruno@clisp.org>
1034
1035         careadlinkat: Avoid mismatch between ssize_t and int.
1036         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1037         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1038
1039 2011-06-06  Jim Meyering  <meyering@redhat.com>
1040
1041         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1042         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1043         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1044
1045 2011-06-05  Bruno Haible  <bruno@clisp.org>
1046
1047         ansi-c++-opt: Interoperability with libtool.
1048         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1049         set the variable to "no", not to ":".
1050         * NEWS: Mention the change.
1051
1052 2011-06-05  Bruno Haible  <bruno@clisp.org>
1053
1054         acl: Fix test failure on AIX 7.
1055         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1056         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1057
1058 2011-06-05  Bruno Haible  <bruno@clisp.org>
1059
1060         pipe-filter-ii: Fix test failure on AIX and IRIX.
1061         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1062         with EAGAIN, retry with a smaller buffer size.
1063
1064 2011-06-05  Bruno Haible  <bruno@clisp.org>
1065
1066         localename: Fix link dependencies.
1067         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1068         * modules/localename-tests (Makefile.am): Link test-localename with
1069         $(LIBTHREAD).
1070
1071 2011-06-05  Bruno Haible  <bruno@clisp.org>
1072
1073         error: Avoid gcc warning.
1074         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1075
1076 2011-06-05  Bruno Haible  <bruno@clisp.org>
1077
1078         unsetenv: Avoid gcc warning.
1079         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1080
1081 2011-06-05  Bruno Haible  <bruno@clisp.org>
1082
1083         setenv: Avoid gcc warning.
1084         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1085
1086 2011-06-05  Bruno Haible  <bruno@clisp.org>
1087
1088         sys_select: Ensure memset is declared also on AIX 7.
1089         * lib/sys_select.in.h: Include <string.h> also on AIX.
1090         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1091         self-contained also on AIX 7.1.
1092
1093 2011-06-04  Jim Meyering  <meyering@redhat.com>
1094
1095         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1096         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1097         function name, "error".
1098         (_gl_translatable_diag_func_re): New configurable variable.
1099
1100 2011-06-04  Bruno Haible  <bruno@clisp.org>
1101
1102         getopt: Avoid gcc warning.
1103         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1104
1105 2011-06-04  Bruno Haible  <bruno@clisp.org>
1106
1107         strerror_r: Fix comments.
1108         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1109         commit.
1110
1111 2011-06-04  Bruno Haible  <bruno@clisp.org>
1112
1113         perror: Fix compilation error.
1114         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1115         Undefine fprintf, not sprintf.
1116         * modules/perror (Depends-on): Remove intprops, verify.
1117
1118 2011-06-04  Bruno Haible  <bruno@clisp.org>
1119
1120         setlocale: Enable replacement on Cygwin 1.5.
1121         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1122         Cygwin 1.5.x.
1123         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1124         LC_CTYPE category also exists on Cygwin 1.5.x.
1125
1126 2011-06-04  Bruno Haible  <bruno@clisp.org>
1127
1128         strerror-override: Don't disable symbol renamings.
1129         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1130         * lib/strerror-override.c: Include config.h.
1131         (strerror_override): Don't undefine.
1132
1133 2011-06-03  Bruno Haible  <bruno@clisp.org>
1134
1135         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1136         * lib/localename.h: Update copyright header.
1137         * lib/localename.c: Likewise.
1138         * lib/relocatable.h: Likewise.
1139         * lib/relocatable.c: Likewise.
1140
1141 2011-06-02  Bruno Haible  <bruno@clisp.org>
1142
1143         doc: Fix a module name.
1144         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1145
1146 2011-06-02  Bruno Haible  <bruno@clisp.org>
1147
1148         pipe2: Remove dependency on 'nonblocking' module.
1149         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1150         O_NONBLOCK is defined by gnulib.
1151         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1152         is zero.
1153         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1154         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1155         defined by gnulib.
1156         (get_nonblocking_flag): New function.
1157         (main): Test O_NONBLOCK flag only if it is nonzero.
1158         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1159
1160 2011-06-03  Jim Meyering  <meyering@redhat.com>
1161
1162         maint: three new prohibit-header-without-use rules
1163         Prohibit use of cloexec.h, posixver.h, same.h without use.
1164         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1165         (sc_prohibit_posixver_without_use): Likewise.
1166         (sc_prohibit_same_without_use): Likewise.
1167
1168 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1169
1170         allocator: 'die' routine is now given requested size
1171         * lib/allocator.h (struct allocator.die): New size arg.
1172         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1173         If the actual problem is an ssize_t limitation, not a size_t or
1174         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1175
1176 2011-06-01  Eric Blake  <eblake@redhat.com>
1177
1178         strerror: drop strerror_r dependency
1179         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1180         * lib/strerror-override.c (strerror_override): ...to new file.
1181         * lib/strerror-override.h: Add prototype.
1182         * lib/strerror-impl.h: Delete.
1183         * lib/strerror.c (strerror): New implementation.
1184         * modules/errno (Files): Add new files.
1185         (configure.ac): Compile new file as appropriate.
1186         * modules/strerror (Files): Drop unused file.
1187         (Depends-on): Drop strerror_r-posix.
1188         * MODULES.html.sh: Document strerror_r-posix.
1189         Requested by Sam Steingold.
1190
1191         perror: call strerror_r directly
1192         * modules/perror (Files): Drop strerror-impl.h.
1193         * lib/perror.c (perror): Use our own stack buffer, rather than
1194         calling a wrapper that uses static storage.
1195         * doc/posix-functions/perror.texi (perror): Document a limitation
1196         of our replacement.
1197
1198         strerror_r: fix includes for FreeBSD
1199         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1200         since we use abort on some platforms.
1201         Reported by Matthias Bolte.
1202
1203 2011-05-31  Bruno Haible  <bruno@clisp.org>
1204
1205         Fix link errors in tests: openat-die uses gettext-h.
1206         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1207         against $(LIBINTL).
1208         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1209         against $(LIBINTL).
1210         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1211         $(LIBINTL).
1212         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1213         against $(LIBINTL).
1214         * modules/linkat-tests (Makefile.am): Link test-linkat against
1215         $(LIBINTL).
1216         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1217         $(LIBINTL).
1218         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1219         against $(LIBINTL).
1220         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1221         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1222         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1223         $(LIBINTL).
1224         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1225         $(LIBINTL).
1226         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1227         $(LIBINTL).
1228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1229
1230 2011-05-31  Bruno Haible  <bruno@clisp.org>
1231
1232         Fix link errors in tests: wait-process uses gettext-h.
1233         * modules/nonblocking-pipe-tests (Makefile.am): Set
1234         test_nonblocking_pipe_main_LDADD.
1235         * modules/nonblocking-socket-tests (Makefile.am): Link
1236         test-nonblocking-socket-main against $(LIBINTL).
1237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1238
1239 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1240
1241         assert-h: work around 'verify' incompatibility
1242         * lib/verify.h: Use @...@ directives, not ifdef.
1243         * modules/assert-h (assert.h): Implement the directives.
1244         (assert.h): Substitute the symbol-prefix more consistently.
1245
1246 2011-05-29  Jim Meyering  <meyering@redhat.com>
1247
1248         trim: remove three superfluous assignments
1249         * lib/trim.c (trim2): Remove three superfluous assignments
1250         and correct brace positioning.
1251
1252 2011-05-29  Bruno Haible  <bruno@clisp.org>
1253
1254         wctype-h: Avoid namespace pollution on Solaris 2.6.
1255         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1256         identifiers.
1257         * doc/posix-headers/wctype.texi: Mention the problem.
1258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1259
1260 2011-05-28  Jim Meyering  <meyering@redhat.com>
1261
1262         parse-datetime.y: accommodate -Wstrict-overflow
1263         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1264         placate -Wstrict-overflow.
1265
1266         trim: avoid a warning from -O2 -Wstrict-overflow
1267         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1268
1269 2011-05-29  Bruno Haible  <bruno@clisp.org>
1270
1271         gnulib-tool: Fix bug in yesterday's commit.
1272         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1273         twice.
1274
1275 2011-05-29  Bruno Haible  <bruno@clisp.org>
1276
1277         Allow multiple gnulib generated include files to be combined.
1278         * gnulib-tool (func_compute_include_guard_prefix): New function.
1279         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1280         ${gl_include_guard_prefix} references.
1281         (func_import, func_create_testdir): Invoke
1282         func_compute_include_guard_prefix.
1283         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1284         * lib/ctype.in.h: Likewise.
1285         * lib/dirent.in.h: Likewise.
1286         * lib/errno.in.h: Likewise.
1287         * lib/fcntl.in.h: Likewise.
1288         * lib/float.in.h: Likewise.
1289         * lib/getopt.in.h: Likewise.
1290         * lib/iconv.in.h: Likewise.
1291         * lib/langinfo.in.h: Likewise.
1292         * lib/locale.in.h: Likewise.
1293         * lib/math.in.h: Likewise.
1294         * lib/netdb.in.h: Likewise.
1295         * lib/netinet_in.in.h: Likewise.
1296         * lib/poll.in.h: Likewise.
1297         * lib/pthread.in.h: Likewise.
1298         * lib/pty.in.h: Likewise.
1299         * lib/sched.in.h: Likewise.
1300         * lib/se-selinux.in.h: Likewise.
1301         * lib/search.in.h: Likewise.
1302         * lib/signal.in.h: Likewise.
1303         * lib/spawn.in.h: Likewise.
1304         * lib/stdarg.in.h: Likewise.
1305         * lib/stddef.in.h: Likewise.
1306         * lib/stdint.in.h: Likewise.
1307         * lib/stdio.in.h: Likewise.
1308         * lib/stdlib.in.h: Likewise.
1309         * lib/string.in.h: Likewise.
1310         * lib/strings.in.h: Likewise.
1311         * lib/sys_file.in.h: Likewise.
1312         * lib/sys_ioctl.in.h: Likewise.
1313         * lib/sys_select.in.h: Likewise.
1314         * lib/sys_socket.in.h: Likewise.
1315         * lib/sys_stat.in.h: Likewise.
1316         * lib/sys_time.in.h: Likewise.
1317         * lib/sys_times.in.h: Likewise.
1318         * lib/sys_uio.in.h: Likewise.
1319         * lib/sys_utsname.in.h: Likewise.
1320         * lib/sys_wait.in.h: Likewise.
1321         * lib/sysexits.in.h: Likewise.
1322         * lib/termios.in.h: Likewise.
1323         * lib/time.in.h: Likewise.
1324         * lib/unistd.in.h: Likewise.
1325         * lib/wchar.in.h: Likewise.
1326         * lib/wctype.in.h: Likewise.
1327         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1328         * modules/ctype (Makefile.am): Likewise.
1329         * modules/dirent (Makefile.am): Likewise.
1330         * modules/errno (Makefile.am): Likewise.
1331         * modules/fcntl-h (Makefile.am): Likewise.
1332         * modules/float (Makefile.am): Likewise.
1333         * modules/getopt-posix (Makefile.am): Likewise.
1334         * modules/iconv-h (Makefile.am): Likewise.
1335         * modules/langinfo (Makefile.am): Likewise.
1336         * modules/locale (Makefile.am): Likewise.
1337         * modules/math (Makefile.am): Likewise.
1338         * modules/netdb (Makefile.am): Likewise.
1339         * modules/netinet_in (Makefile.am): Likewise.
1340         * modules/poll-h (Makefile.am): Likewise.
1341         * modules/pthread (Makefile.am): Likewise.
1342         * modules/pty (Makefile.am): Likewise.
1343         * modules/sched (Makefile.am): Likewise.
1344         * modules/search (Makefile.am): Likewise.
1345         * modules/selinux-h (Makefile.am): Likewise.
1346         * modules/signal (Makefile.am): Likewise.
1347         * modules/spawn (Makefile.am): Likewise.
1348         * modules/stdarg (Makefile.am): Likewise.
1349         * modules/stddef (Makefile.am): Likewise.
1350         * modules/stdint (Makefile.am): Likewise.
1351         * modules/stdio (Makefile.am): Likewise.
1352         * modules/stdlib (Makefile.am): Likewise.
1353         * modules/string (Makefile.am): Likewise.
1354         * modules/strings (Makefile.am): Likewise.
1355         * modules/sys_file (Makefile.am): Likewise.
1356         * modules/sys_ioctl (Makefile.am): Likewise.
1357         * modules/sys_select (Makefile.am): Likewise.
1358         * modules/sys_socket (Makefile.am): Likewise.
1359         * modules/sys_stat (Makefile.am): Likewise.
1360         * modules/sys_time (Makefile.am): Likewise.
1361         * modules/sys_times (Makefile.am): Likewise.
1362         * modules/sys_uio (Makefile.am): Likewise.
1363         * modules/sys_utsname (Makefile.am): Likewise.
1364         * modules/sys_wait (Makefile.am): Likewise.
1365         * modules/sysexits (Makefile.am): Likewise.
1366         * modules/termios (Makefile.am): Likewise.
1367         * modules/time (Makefile.am): Likewise.
1368         * modules/unistd (Makefile.am): Likewise.
1369         * modules/wchar (Makefile.am): Likewise.
1370         * modules/wctype-h (Makefile.am): Likewise.
1371         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1372
1373 2011-05-29  Bruno Haible  <bruno@clisp.org>
1374
1375         assert-h: Allow multiple gnulib generated replacements to coexist.
1376         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1377
1378 2011-05-29  Bruno Haible  <bruno@clisp.org>
1379
1380         argp: Allow coexistence with strerror_r-posix module.
1381         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1382         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1383         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1384         not the glibc signature.
1385
1386 2011-05-28  Bruno Haible  <bruno@clisp.org>
1387
1388         gnulib-tool: Alternative structure of testdirs, similar to --import.
1389         * gnulib-tool: New option --single-configure.
1390         (func_usage): Document it.
1391         (single_configure): New variable.
1392         (func_modules_transitive_closure_separately,
1393         func_modules_transitive_closure_separately,
1394         func_determine_use_libtests, func_modules_add_dummy_separately,
1395         func_modules_to_filelist_separately): New functions, extracted from
1396         func_import.
1397         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1398         (func_import): Use the new functions.
1399         (func_create_testdir): Set final_modules. Handle $single_configure =
1400         true case.
1401
1402 2011-05-28  Bruno Haible  <bruno@clisp.org>
1403
1404         getloadavg: Remove an unreliable safety check.
1405         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1406         getloadavg.c is in place.
1407         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1408         Reported by Sam Steingold <sds@gnu.org>.
1409
1410 2011-05-28  Bruno Haible  <bruno@clisp.org>
1411
1412         doc: Cleanup yet another file produced by texinfo.tex.
1413         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1414
1415 2011-05-28  Bruno Haible  <bruno@clisp.org>
1416
1417         Finish the conditional dependencies mechanism.
1418         * gnulib-tool: New option --no-conditional-dependencies.
1419         (func_usage): Document it. Don't mark --conditional-dependencies as
1420         experimental.
1421         (cond_dependencies): The possible values can now be true, false, empty.
1422         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1423         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1424         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1425
1426 2011-05-28  Bruno Haible  <bruno@clisp.org>
1427
1428         doc: Use a recent texinfo.tex.
1429         * doc/Makefile (tex_opts): New variable.
1430         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1431
1432 2011-05-28  Jim Meyering  <meyering@redhat.com>
1433
1434         intprops.h: adjust comment to match code change
1435         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1436         only once, it *may* have side effects.  Also fix an unrelated typo.
1437         (_GL_INT_SIGNED): Likewise.
1438
1439 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1440
1441         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1442
1443 2011-05-26  Bruno Haible  <bruno@clisp.org>
1444
1445         mbsrchr: Avoid collision with system function on Interix.
1446         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1447         Reported by Markus Duft <mduft@gentoo.org>.
1448
1449 2011-05-15  James Youngman  <jay@gnu.org>
1450
1451         getopt: for ambiguous options, enumerate the possibilities.
1452         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1453         the ambiguous options when an ambiguous prefix is given. This was
1454         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1455         glibc change was
1456         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1457
1458 2011-05-25  Eric Blake  <eblake@redhat.com>
1459
1460         getcwd: work around mingw bug
1461         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1462         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1463         Reported by Matthias Bolte.
1464
1465 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         test-intprops: disable -Wtype-limits diagnostics
1468         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1469         diagnostics.  Otherwise, the integer overflow macros generate many
1470         diagnostics.  Reported by Jim Meyering in
1471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1472
1473         intprops: shorten, to pacify gcc -Woverlength-strings
1474         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1475         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1476         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1477         likely to run afoul of C compiler limits for string constant lengths.
1478         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1479
1480 2011-05-24  Eric Blake  <eblake@redhat.com>
1481
1482         docs: document recently fixed glibc printf bug
1483         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1484         * doc/posix-functions/printf.texi (printf): Likewise.
1485         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1486         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1487
1488         closein-tests: convert to init.sh
1489         * modules/closein-tests (Files): Add init.sh
1490         * tests/test-closein.sh Use it.
1491
1492         yesno-tests: convert to init.sh
1493         * modules/yesno-tests (Files): Add init.sh.
1494         * tests/test-yesno.sh: Use it.
1495
1496         atexit-tests: ensure reliable exit status
1497         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1498         Reported by Bruno Haible.
1499
1500 2011-05-24  Bruno Haible  <bruno@clisp.org>
1501
1502         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1504         gl_PREREQ_STRERROR_R invocations from here...
1505         * modules/strerror_r-posix (configure.ac): ... to here.
1506
1507 2011-05-24  Eric Blake  <eblake@redhat.com>
1508
1509         strerror_r: fix missing header
1510         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1511
1512         strerror_r: fix AIX test failures
1513         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1514         ERANGE failure.
1515
1516         strerror_r: fix Solaris test failures
1517         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1518         failures.
1519         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1520
1521         strerror_r: enforce POSIX recommendations
1522         * lib/strerror_r.c (safe_copy): New helper method.
1523         (strerror_r): Guarantee a non-empty string.
1524         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1525         recent POSIX rulings and to match our strerror guarantees.
1526         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1527
1528 2011-05-24  Jim Meyering  <meyering@redhat.com>
1529
1530         test-perror2.c: avoid warning about unused variable
1531         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1532
1533 2011-05-24  Eric Blake  <eblake@redhat.com>
1534
1535         perror: avoid spurious test failure on HP-UX
1536         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1537
1538         tests: fix logic bug in init.sh
1539         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1540         shell.
1541
1542 2011-05-24  Jim Meyering  <meyering@redhat.com>
1543
1544         utimensat: do not reference an out-of-scope buffer
1545         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1546         declared in an inner scope, yet "times" would be dereferenced outside
1547         the scope in which "ts" was valid.
1548         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1549         of ts[2] "out/up", so that the use of aliased "times" (via
1550         "times = ts;") does not end up referencing an out-of-scope "ts"
1551
1552         opendir-safer.c: don't clobber errno; don't close negative FD
1553         * lib/opendir-safer.c (opendir_safer):
1554         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1555         file descriptor, and more importantly, don't clobber the
1556         offending errno value with EINVAL.  Before, upon failure
1557         of dup_safer, we would pass the negative file descriptor to
1558         fdopendir, which would clobber errno.
1559
1560 2011-05-23  Bruno Haible  <bruno@clisp.org>
1561
1562         idcache: Fix module description.
1563         * modules/idcache (Include): Set to "idcache.h".
1564
1565 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1566
1567         gnulib-tool: fix portability problem with MacOS sed
1568         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1569         before the "}".  Problem reported by Leo in
1570         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1571         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1572         sed_extract_condition1, sed_extract_condition2.
1573
1574 2011-05-23  Bruno Haible  <bruno@clisp.org>
1575
1576         hash: Simplify autoconf macro.
1577         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1578
1579 2011-05-23  Bruno Haible  <bruno@clisp.org>
1580
1581         getugroups: Fix module description.
1582         * modules/getugroups (Include): Set to "getugroups.h".
1583
1584 2011-05-23  Bruno Haible  <bruno@clisp.org>
1585
1586         linkat: Simplify autoconf macro.
1587         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1588
1589 2011-05-23  Bruno Haible  <bruno@clisp.org>
1590             Eric Blake  <eblake@redhat.com>
1591
1592         linkat, renameat: Update dependencies.
1593         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1594         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1595         symlinkat.
1596
1597 2011-05-23  Jim Meyering  <meyering@redhat.com>
1598
1599         maint.mk: more tight_scope improvements
1600         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1601         (_gl_TS_headers): Define only in if-0'd block.
1602         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1603         sometimes we must *not* use it.  Adjust uses accordingly.
1604         (sc_tight_scope): Use much simpler grep-based test to determine
1605         whether we skip this rule.
1606
1607         maint.mk: generalize/improve the tight-scope rule
1608         * top/maint.mk: Emit a warning when the test is skipped.
1609         (_gl_TS_dir): Add $(srcdir)/ prefix.
1610         (_gl_TS_function_match): Simplify, rather than trying
1611         to enumerate common types.  Otherwise, it would fail to match an
1612         "extern unsigned char const *" declaration in idutils.
1613         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1614         a way to support use of that type of macro.
1615         (_gl_TS_var_match): Simplify regexp.
1616         (_gl_TS_obj_files): New configurable variable.
1617         (_gl_TS_headers): Likewise.
1618
1619 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1620
1621         verify: fix bug when gnulib <assert.h> is also included
1622         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1623         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1624         Perhaps there's a better way, but this fixes the immediate problem.
1625         Problem reported by Bruno Haible in
1626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1627
1628 2011-05-22  Bruno Haible  <bruno@clisp.org>
1629
1630         xgetcwd: Simplify autoconf macro.
1631         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1632
1633 2011-05-22  Bruno Haible  <bruno@clisp.org>
1634
1635         New module 'mktime-internal'.
1636         * modules/mktime-internal: New file.
1637         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1638         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1639         mktime_internal as a C macro if libc has __mktime_internal.
1640         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1641         conditions.
1642         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1643
1644 2011-05-22  Bruno Haible  <bruno@clisp.org>
1645
1646         timegm: Correct mktime replacement statements.
1647         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1648         defining mktime as a C macro. This completes a 2009-07-28 commit.
1649
1650 2011-05-22  Bruno Haible  <bruno@clisp.org>
1651
1652         timegm: Simplify autoconf macro.
1653         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1654
1655 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1656
1657         clock-time: change to LGPLv2+.
1658         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1659         BSD-like but we have no mark for that; this is good enough for now.
1660
1661 2011-05-21  Bruno Haible  <bruno@clisp.org>
1662
1663         strerror_r: Fix comments.
1664         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1665
1666 2011-05-21  Bruno Haible  <bruno@clisp.org>
1667
1668         relocatable-prog-wrapper: Fix possible link error.
1669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1670         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1671         (gl_FUNC_SETENV): ... to here.
1672         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1673         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1674
1675 2011-05-21  Bruno Haible  <bruno@clisp.org>
1676
1677         relocatable-prog-wrapper: Assume strerror() exists.
1678         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1679         m4/strerror.m4.
1680         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1681         * lib/relocwrapper.c: Remove mention of strerror module.
1682         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1684         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1685         C macro.
1686
1687 2011-05-21  Bruno Haible  <bruno@clisp.org>
1688
1689         select: Simplify replacement idiom.
1690         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1691         Win32 platforms.
1692         * lib/sys_select.in.h (select): Simplify accordingly.
1693         * modules/select (Depends-on): Likewise.
1694
1695 2011-05-21  Bruno Haible  <bruno@clisp.org>
1696
1697         mkdir-p: Simplify autoconf macro.
1698         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1699         gl_FUNC_LCHOWN.
1700
1701 2011-05-21  Eric Blake  <eblake@redhat.com>
1702
1703         strerror_r: avoid clobbering strerror on cygwin
1704         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1705         fall back instead to sys_errlist.
1706         * modules/strerror (configure.ac): Add witness.
1707         * tests/test-strerror_r.c (main): Enhance test.
1708         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1709         * tests/test-perror2.c (main): Free memory before exit.
1710
1711 2011-05-21  Bruno Haible  <bruno@clisp.org>
1712
1713         mkdtemp: Use gnulib naming conventions.
1714         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1715         * modules/mkdtemp (configure.ac): Update.
1716
1717 2011-05-20  Eric Blake  <eblake@redhat.com>
1718
1719         strerror_r: avoid corrupting errno on Solaris
1720         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1721         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1722
1723         strerror_r: avoid compiler warning
1724         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1725
1726         strerror_r: simplify AIX code
1727         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1728
1729         test-perror: avoid spurious failure on FreeBSD
1730         * modules/perror-tests (Depends-on): Add strerror, now that
1731         strerror_r no longer pulls it in.
1732
1733 2011-05-20  Bruno Haible  <bruno@clisp.org>
1734
1735         strerror_r-posix: Remove unused dependencies.
1736         * modules/strerror_r-posix (Depends-on): Remove strerror.
1737         Reported by Eric Blake.
1738
1739 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1740
1741         intprops: remove assumption about A|B representation
1742         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1743         is a valid integer if both A and B are.  Although this is true for
1744         all known practical hosts, the C standard doesn't guarantee it,
1745         and the code need not assume it.  Also, this change may work around
1746         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1748
1749 2011-05-20  Eric Blake  <eblake@redhat.com>
1750
1751         perror: work around FreeBSD bug
1752         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1753         is broken.  Move AC_LIBOBJ...
1754         * modules/perror (configure.ac): Here.
1755         * doc/posix-functions/perror.texi (perror): Document this.
1756         * tests/test-perror2.c (main): Enhance test.
1757
1758         test-perror: check for strerror interactions
1759         * tests/macros.h (STREQ): Add macro.
1760         * modules/perror-tests (Files): Add second test.
1761         * tests/test-perror2.c (main): New file.
1762         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1763
1764         test-perror: rewrite to use init script
1765         * modules/perror-tests (Files): Add init.sh.
1766         * tests/test-perror.sh: Use temporary directory.
1767
1768 2011-05-20  Jim Meyering  <meyering@redhat.com>
1769
1770         maint: replace misused "a" with "an"
1771         * doc/intprops.texi: "a integer"
1772         * doc/regex.texi: "a explanation"
1773         * lib/alignof.h: "a object"
1774         * lib/argmatch.h: "a explanation"
1775         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1776         * lib/stdint.in.h: "a integer"
1777         * lib/userspec.c: "a owner"
1778         * doc/gnulib.texi: Fix "a idea", and reword.
1779
1780 2011-05-19  Jim Meyering  <meyering@redhat.com>
1781
1782         maint: correct misuse of "a" and "an"
1783         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1784         * lib/argp-help.c: "an docum...": s/an/a/
1785         * lib/argp-parse.c: "An vector": s/An/A/
1786         * lib/execute.c: "an native": s/an/a/
1787         * lib/spawn-pipe.c: Likewise.
1788         * lib/gc.h: "an Gc_rc": s/an/a/
1789         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1790         * lib/fts.c: "an stat.st_dev": s/an/a/
1791
1792 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1793
1794         intprops-tests: work around HP-UX 11.23 cc bug with constants
1795         * tests/test-intprops.c (VERIFY): New macro.
1796         (main): Use it, instead of verify, to work around the compiler bug; see
1797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1798
1799         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1800         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1801         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1802         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1803         (_GL_REMAINDER_OVERFLOW): Use it.
1804
1805         intprops-tests: revert unsigned part of previous change
1806         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1807         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1808         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1810
1811 2011-05-19  Bruno Haible  <bruno@clisp.org>
1812
1813         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1814         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1815         strerror_r() returned without filling the buffer.
1816         Reported by Eric Blake.
1817
1818 2011-05-19  Eric Blake  <eblake@redhat.com>
1819
1820         strerror_r: guarantee unchanged errno
1821         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1822         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1823         failure.
1824         * tests/test-strerror_r.c (main): Enhance test.
1825
1826 2011-05-19  Bruno Haible  <bruno@clisp.org>
1827
1828         strerror_r: Reorder #if blocks.
1829         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1830         for consistency with the previous commit.
1831
1832 2011-05-19  Bruno Haible  <bruno@clisp.org>
1833
1834         perror: Avoid clobbering the strerror buffer when possible.
1835         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1836         * lib/strerror.c: Include it.
1837         * modules/strerror (Files): Add lib/strerror-impl.h.
1838         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1839         (my_strerror): New function, defined through lib/strerror-impl.h.
1840         (perror): Use it instead of strerror.
1841         * modules/perror (Files): Add lib/strerror-impl.h.
1842         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1843
1844 2011-05-19  Eric Blake  <eblake@redhat.com>
1845
1846         strerror_r: fix on newer cygwin
1847         * lib/strerror_r.c (strerror_r): Cygwin now has
1848         __xpg_strerror_r, use it.
1849
1850 2011-05-19  Bruno Haible  <bruno@clisp.org>
1851
1852         strerror_r: Avoid clobbering the strerror buffer when possible.
1853         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1854         (sys_nerr, sys_errlist): New declarations.
1855         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1856         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1857         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1858
1859 2011-05-19  Bruno Haible  <bruno@clisp.org>
1860
1861         strerror_r: Fix test failure on mingw.
1862         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1863         EXTEND_STRERROR_R.
1864         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1865         macros from errno.in.h instead.
1866
1867 2011-05-19  Eric Blake  <eblake@redhat.com>
1868
1869         strerror: relax test for Solaris
1870         * tests/test-strerror.c (main): Permit Solaris behavior.
1871         * tests/test-strerror_r.c (main): Likewise.
1872
1873         strerror: enforce POSIX ruling on strerror(0)
1874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1876         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1877         * doc/posix-functions/strerror.texi (strerror): Document it.
1878         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1879         * tests/test-strerror.c (main): Strengthen test.
1880         * tests/test-strerror_r.c (main): Likewise.
1881
1882 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1883
1884         intprop-tests: port to older and more-pedantic compilers
1885         * modules/intprops-tests (Files): Add tests/macros.h.
1886         * tests/test-intprops.c: Include macros.h.
1887         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1888         it's no longer documented to expand to an integer constant expression.
1889         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1890         argument is floating point, as it's no longer documented to expand
1891         to an integer constant expression in that case.
1892         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1893         compiler bugs reported by Bruno Haible.  See
1894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1895         (U0, U1): New constants, to work around the same bugs.  Also,
1896         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1897
1898         intprops: work around C compiler bugs
1899         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1900         bug in Sun C 5.11 2010/08/13 and other compilers; see
1901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1902
1903         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1904         * doc/intprops.texi (Integer Type Determination): Fix
1905         documentation for TYPE_IS_INTEGER: it returns an constant
1906         expression, not an integer constant expression.  Fix doc for
1907         TYPE_SIGNED: it returns an integer constant expression only if its
1908         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1909         hardly worth documented that way....)
1910
1911 2011-05-18  Bruno Haible  <bruno@clisp.org>
1912
1913         strerror_r: Avoid clobbering the strerror buffer when possible.
1914         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1915         Handle gnulib defined errno values here. When strerror() returns NULL
1916         or an empty string, return EINVAL.
1917         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1918         gnulib defined errno values here.
1919         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1920
1921 2011-05-18  Eric Blake  <eblake@redhat.com>
1922
1923         fnmatch: avoid compiler warning
1924         * lib/fnmatch_loop.c (FCT): Use correct type.
1925         Reported by Matthias Bolte.
1926
1927 2011-05-13  Jim Meyering  <meyering@redhat.com>
1928
1929         maint.mk: three new prohibit_<HDR>_without_use rules
1930         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1931         (sc_prohibit_stdio-safer_without_use): Likewise.
1932         (sc_prohibit_xfreopen_without_use): Likewise.
1933
1934 2011-05-17  Jim Meyering  <meyering@redhat.com>
1935
1936         announce-gen: fail if the NEWS delta is empty
1937         If there's nothing noteworthy in NEWS, then either you forgot
1938         or you shouldn't be releasing.
1939         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1940
1941 2011-05-17  Pádraig Brady <P@draigBrady.com>
1942
1943         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1944         reserved symbols starting with double underscore from the check.
1945
1946 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1947
1948         intprops: add doc
1949         * doc/intprops.texi: New file, documenting intprops.
1950         * doc/gnulib.texi (Particular Modules): Include it.
1951
1952         verify: add doc to gnulib manual and fix example
1953         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1954         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1955         (Compile-time Assertions): Fix example so it can't overflow.
1956
1957 2011-05-17  Jim Meyering  <meyering@redhat.com>
1958
1959         warnings.m4: don't usurp save_CPPFLAGS variable name
1960         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1961
1962         doc: fix typo
1963         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1964
1965 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1966             Bruno Haible  <bruno@clisp.org>
1967
1968         doc: Tweak recent change.
1969         * README (Portability guidelines): Tweak new text.
1970         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1971         Interix 6.1.
1972
1973 2011-05-16  Eric Blake  <eblake@redhat.com>
1974
1975         inttypes: avoid autoconf warning
1976         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1977         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1978
1979 2011-05-16  Sam Steingold <sds@gnu.org>
1980         and Eric Blake  <eblake@redhat.com>
1981
1982         vc-list-files: accept multiple directory operands
1983         * build-aux/vc-list-files: Iterate over all remaining operands.
1984
1985 2011-05-16  Bruno Haible  <bruno@clisp.org>
1986
1987         Fix confusion regarding deprecated modules.
1988         * modules/calloc (Status, Notice): Mark module as deprecated, not
1989         obsolete.
1990         * modules/fnmatch-posix (Status, Notice): Likewise.
1991         * modules/getdate (Status, Notice): Likewise.
1992         * modules/getopt (Status, Notice): Likewise.
1993         * modules/malloc (Status, Notice): Likewise.
1994         * modules/pipe (Status, Notice): Likewise.
1995         * modules/realloc (Status, Notice): Likewise.
1996         * modules/rename-dest-slash (Status, Notice): Likewise.
1997         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1998         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1999         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2000         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2001         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2002
2003 2011-05-16  Bruno Haible  <bruno@clisp.org>
2004
2005         doc: List the target platforms.
2006         * doc/gnulib-intro.texi (Target Platforms): New section.
2007         * doc/gnulib.texi (Introduction): Update menu.
2008         * README (Portability guidelines): Refer to the new section. Update
2009         statement about oldest supported environment. Remove rationale why
2010         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2011         unportable C89 function.
2012         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2013         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2014
2015 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2016
2017         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2018
2019 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2020
2021         intprops-tests: new module
2022         * modules/intprops-tests, tests/test-intprops.c: New files.
2023
2024         intprops: add safe, portable integer overflow checking
2025         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2026         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2027         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2028         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2029         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2030         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2031         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2032         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2033         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2034         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2035         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2036
2037 2011-05-12  James Youngman  <jay@gnu.org>
2038
2039         Add a test for glibc's Bugzilla bug #12378.
2040         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2041         doesn't allow the literal matching of a lone "[" (which is
2042         required by POSIX).
2043         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2044
2045 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2046
2047         Sync glibc change fixing Bugzilla bug #12378.
2048         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2049         beginning and fall back to matching as normal character if the
2050         string ends before the matching ']' is found.  This is what POSIX
2051         requires.
2052
2053 2011-05-13  Eric Blake  <eblake@redhat.com>
2054
2055         getcwd-lgpl: relax test for FreeBSD
2056         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2057         issue.
2058         * tests/test-getcwd-lgpl.c (main): Relax test.
2059         Reported by Matthias Bolte.
2060
2061 2011-05-11  Eric Blake  <eblake@redhat.com>
2062
2063         test-fflush: silence compiler warning
2064         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2065
2066 2011-05-11  Bruno Haible  <bruno@clisp.org>
2067
2068         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2069         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2070         * modules/canonicalize (Depends-on): Add 'nocrash'.
2071         * modules/canonicalize-lgpl (Depends-on): Likewise.
2072         * doc/posix-functions/realpath.texi: Update platforms list.
2073         Reported by Ryan Schmidt <ryandesign@macports.org>.
2074
2075 2011-05-11  Bruno Haible  <bruno@clisp.org>
2076
2077         group-member: Declare function in <unistd.h>.
2078         * lib/unistd.in.h (group_member): New declaration.
2079         * lib/group-member.h: Remove file.
2080         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2081         * tests/test-unistd-c++.cc: Check signature of group_member.
2082         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2083         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2084         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2085         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2086         HAVE_GROUP_MEMBER.
2087         * modules/group-member (Files): Remove lib/group-member.h.
2088         (Depends-on): Add unistd. Specify conditions.
2089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2090         (Include): Change to <unistd.h>.
2091         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2092         HAVE_GROUP_MEMBER.
2093         * NEWS: Mention the change.
2094         * lib/euidaccess.c: Don't include group-member.h.
2095
2096 2011-05-11  Bruno Haible  <bruno@clisp.org>
2097
2098         group-member: Document module.
2099         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2100         module.
2101
2102 2011-05-11  Bruno Haible  <bruno@clisp.org>
2103
2104         fclose: Fix mistake earlier today.
2105         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2106
2107 2011-05-11  Eric Blake  <eblake@redhat.com>
2108
2109         fclose: preserve fflush errors
2110         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2111         Reported by Jim Meyering.
2112
2113         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2114         * build-aux/bootstrap (check_versions): When no specific version
2115         is required, merely check that the app produces an exit status
2116         that indicates its existence.
2117
2118         maint.mk: drop redundant check
2119         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2120         the same but better.
2121
2122 2011-05-11  Bruno Haible  <bruno@clisp.org>
2123
2124         fclose: Fix possible link error.
2125         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2126         unregister_shadow_fd. Improve comments.
2127         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2128         Eric Blake.
2129
2130 2011-05-11  Jim Meyering  <meyering@redhat.com>
2131
2132         maint.mk: improve "can not" detection and generalize rule name
2133         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2134         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2135         Use the same technique as in sc_prohibit_doubled_word, so that
2136         we recognize "can not" also when the words are separated by a newline.
2137         Suggested by Eric Blake.
2138         (perl_filename_lineno_text_): Define.  Factored out of...
2139         (prohibit_doubled_word_): ...here.  Use the new definition.
2140         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2141         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2142         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2143
2144 2011-05-10  Eric Blake  <eblake@redhat.com>
2145
2146         fclose: avoid double close race when possible
2147         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2148         all but WINDOWS_SOCKETS.
2149
2150 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2151
2152         openat: correct new comment
2153         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2154
2155 2011-05-10  Jim Meyering  <meyering@redhat.com>
2156
2157         openat: add comments
2158         * lib/openat-proc.c (openat_proc_name): Add comments,
2159         mostly from Eric Blake.
2160
2161 2011-05-09  Eric Blake  <eblake@redhat.com>
2162
2163         openat: reduce syscalls in first probe of /proc
2164         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2165         be a directory.  Simplify the probe for .. bugs.
2166         * modules/openat (Depends-on): Drop same-inode.
2167         Reported by Bastien ROUCARIES.
2168
2169 2011-05-09  Jim Meyering  <meyering@redhat.com>
2170
2171         maint.mk: change semantics/name of tight_scope variables
2172         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2173         Rename variables to align with semantics that make them more useful.
2174
2175         maint.mk: tweak new rule's name not to impinge
2176         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2177         (sc_tight_scope): Use new rule name rather than $@-0.
2178
2179         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2180         * top/maint.mk (sc_tight_scope): New rule.
2181         (sc_tight_scope-0): New rule, ifdef'd out.
2182         (_gl_TS_dir): Default.
2183         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2184         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2185
2186 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2187
2188         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2189         Haible <bruno@clisp.org>.
2190
2191 2011-05-08  Bruno Haible  <bruno@clisp.org>
2192
2193         Comments.
2194         * m4/isnanf.m4: Add comment.
2195         * m4/isnanl.m4: Likewise.
2196
2197 2011-05-08  Bruno Haible  <bruno@clisp.org>
2198
2199         glob: Remove obsolete macro.
2200         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2201
2202 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2203
2204         intprops: Sun C 5.11 supports __typeof__
2205         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2206         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2207         which is new.
2208         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2209
2210         intprops: switch to usual gnulib indenting and naming
2211         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2212         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2213
2214         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2215
2216 2011-05-08  Jim Meyering  <meyering@redhat.com>
2217
2218         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2219         * top/maint.mk (release-prep): Use make's --no-print-directory
2220         option when generating the announcement.  This eliminates the
2221         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2222         generated announcement template.
2223
2224 2011-05-08  Bruno Haible  <bruno@clisp.org>
2225
2226         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2227         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2228         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2229
2230 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2231
2232         ignore-value, verify: Omit include files from lib_SOURCES.
2233         * modules/ignore-value, modules/verify (Makefile.am):
2234         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2235         that leads Automake to duplicate use of am__objects_... variables
2236         in Makefile.in.  See
2237         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2238
2239 2011-05-07  Bruno Haible  <bruno@clisp.org>
2240
2241         fclose: Simplify autoconf macro.
2242         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2243         defined.
2244
2245 2011-05-07  Bruno Haible  <bruno@clisp.org>
2246
2247         canonicalize-lgpl: Fix autoconf macro ordering bug.
2248         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2249         gl_STDLIB_H_DEFAULTS.
2250
2251 2011-05-06  Eric Blake  <eblake@redhat.com>
2252
2253         maintainer-makefile: make sc_po_check easier to tune
2254         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2255         to probe for strings, such as an alternate location for gnulib.
2256
2257         fclose: guarantee behavior on seekable stdin
2258         * modules/fclose (Depends-on): Add fflush.
2259         * doc/posix-functions/fclose.texi (fclose): Document this.
2260         * tests/test-fclose.c (main): Make test for this unconditional.
2261
2262 2011-05-06  Bruno Haible  <bruno@clisp.org>
2263
2264         fflush, fpurge: Relicense under LGPLv2+.
2265         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2266         * modules/fpurge (License): Likewise.
2267         With permission from Eric Blake and Jim Meyering.
2268         Suggested by Eric Blake.
2269
2270 2011-05-06  Karl Berry  <karl@gnu.org>
2271
2272         * MODULES.html.sh (func_all_modules): remove exit.
2273
2274 2011-05-06  Jim Meyering  <meyering@redhat.com>
2275
2276         maint.mk: use info-gnu@ as the default only for a stable release
2277         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2278         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2279         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2281
2282 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2283
2284         assert-h: new module, which supports C1X-style static_assert
2285         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2286         * lib/verify.h: Revamp so that this can be copied into assert.h,
2287         while retaining the ability to use it standalone as before.
2288         Rename private identifiers so as not to encroach on the
2289         standard C namespace, since this is now used by assert.h.
2290         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2291         the old verify_true.
2292         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2293         the old verify_true.  Use _GL_VERIFY_TYPE.
2294         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2295         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2296         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2297         defined when this file is copied into the replacement assert.h.
2298         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2299         and _Static_assert is not built in.
2300         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2301         defined, and use the new macros mentioned above.
2302         * doc/posix-headers/assert.texi: Document this.
2303
2304 2011-05-05  Bruno Haible  <bruno@clisp.org>
2305
2306         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2307         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2308         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2309         gl_REPLACE_FCLOSE here.
2310         * modules/fflush (Depends-on): Remove fclose.
2311         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2312         combination with module 'fclose'.
2313
2314 2011-05-05  Bruno Haible  <bruno@clisp.org>
2315
2316         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2317         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2318         gl_FUNC_FFLUSH.
2319         (gl_FUNC_FFLUSH): Use it.
2320         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2321         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2322         gl_REPLACE_FSEEKO here.
2323
2324 2011-05-05  Bruno Haible  <bruno@clisp.org>
2325
2326         tzset: Relicense under LGPL.
2327         * modules/tzset (License): Change to LGPL.
2328         No agreement needed; it's a no-op.
2329
2330         strtoimax, strtoumax: Relicense under LGPL.
2331         * modules/strtoimax (License): Change to LGPL.
2332         * modules/strtoumax (License): Likewise.
2333         With permission from Jim Meyering, Paul Eggert:
2334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2336
2337         getgroups: Relicense under LGPL.
2338         * modules/getgroups (License): Change to LGPL.
2339         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2343
2344         nanosleep: Relicense under LGPL.
2345         * modules/nanosleep (License): Change to LGPL.
2346         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2347         Haible:
2348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2352
2353         futimens: Relicense under LGPL.
2354         * modules/futimens (License): Change to LGPL.
2355         With permission from Eric Blake:
2356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2357
2358         fflush: Relicense under LGPL.
2359         * modules/fflush (License): Change to LGPL.
2360         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2364
2365         tmpfile: Relicense under LGPL.
2366         * modules/tmpfile (License): Change to LGPL.
2367         With permission from Ben Pfaff:
2368         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2369
2370         isfinite: Relicense under LGPL.
2371         * modules/isfinite (License): Change to LGPL.
2372         With permission from Ben Pfaff, Bruno Haible:
2373         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2375
2376         acosl..tanl: Relicense under LGPL.
2377         * modules/acosl (License): Change to LGPL.
2378         * modules/asinl (License): Likewise.
2379         * modules/atanl (License): Likewise.
2380         * modules/cosl (License): Likewise.
2381         * modules/expl (License): Likewise.
2382         * modules/logl (License): Likewise.
2383         * modules/sinl (License): Likewise.
2384         * modules/sqrtl (License): Likewise.
2385         * modules/tanl (License): Likewise.
2386         Source code originally from glibc and Paolo Bonzini. Agreements:
2387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2389
2390 2011-05-05  Bruno Haible  <bruno@clisp.org>
2391
2392         signal: Define sighandler_t.
2393         * lib/signal.in.h (sighandler_t): New type.
2394         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2395         whether sighandler_t is defined.
2396         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2397         * modules/signal (Depends-on): Add extensions.
2398         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2399         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2400         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2401
2402 2011-05-05  Eric Blake  <eblake@redhat.com>
2403
2404         maint: remove useless REPLACE_*_H macros
2405         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2406         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2407         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2408         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2409         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2410         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2411         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2412         * m4/btowc.m4: Update callers.
2413         * m4/dirfd.m4: Likewise.
2414         * m4/duplocale.m4: Likewise.
2415         * m4/fchdir.m4: Likewise.
2416         * m4/fdopendir.m4: Likewise.
2417         * m4/inet_ntop.m4: Likewise.
2418         * m4/inet_pton.m4: Likewise.
2419         * m4/ioctl.m4: Likewise.
2420         * m4/mbrlen.m4: Likewise.
2421         * m4/mbrtowc.m4: Likewise.
2422         * m4/mbsinit.m4: Likewise.
2423         * m4/mbsnrtowcs.m4: Likewise.
2424         * m4/mbsrtowcs.m4: Likewise.
2425         * m4/poll.m4: Likewise.
2426         * m4/setlocale.m4: Likewise.
2427         * m4/wcrtomb.m4: Likewise.
2428         * m4/wcsnrtombs.m4: Likewise.
2429         * m4/wcsrtombs.m4: Likewise.
2430         * m4/wctob.m4: Likewise.
2431         * m4/wcwidth.m4: Likewise.
2432         * modules/posix_spawn: Likewise.
2433         * modules/posix_spawn_file_actions_addclose: Likewise.
2434         * modules/posix_spawn_file_actions_adddup2: Likewise.
2435         * modules/posix_spawn_file_actions_addopen: Likewise.
2436         * modules/posix_spawn_file_actions_destroy: Likewise.
2437         * modules/posix_spawn_file_actions_init: Likewise.
2438         * modules/posix_spawnattr_destroy: Likewise.
2439         * modules/posix_spawnattr_getflags: Likewise.
2440         * modules/posix_spawnattr_getpgroup: Likewise.
2441         * modules/posix_spawnattr_getschedparam: Likewise.
2442         * modules/posix_spawnattr_getschedpolicy: Likewise.
2443         * modules/posix_spawnattr_getsigdefault: Likewise.
2444         * modules/posix_spawnattr_getsigmask: Likewise.
2445         * modules/posix_spawnattr_init: Likewise.
2446         * modules/posix_spawnattr_setflags: Likewise.
2447         * modules/posix_spawnattr_setpgroup: Likewise.
2448         * modules/posix_spawnattr_setschedparam: Likewise.
2449         * modules/posix_spawnattr_setschedpolicy: Likewise.
2450         * modules/posix_spawnattr_setsigdefault: Likewise.
2451         * modules/posix_spawnattr_setsigmask: Likewise.
2452         * modules/posix_spawnp: Likewise.
2453
2454 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2455
2456         Add option to do-release-commit-and-tag to specify branch.
2457         * build-aux/do-release-commit-and-tag: Add --branch.
2458
2459 2011-05-03  Bruno Haible  <bruno@clisp.org>
2460
2461         Avoid unnecessary compilation units, through conditional dependencies.
2462         * modules/accept (Depends-on): Add conditions to the dependencies.
2463         * modules/acosl (Depends-on): Likewise.
2464         * modules/argz (Depends-on): Likewise.
2465         * modules/asinl (Depends-on): Likewise.
2466         * modules/atanl (Depends-on): Likewise.
2467         * modules/atoll (Depends-on): Likewise.
2468         * modules/bind (Depends-on): Likewise.
2469         * modules/btowc (Depends-on): Likewise.
2470         * modules/canonicalize-lgpl (Depends-on): Likewise.
2471         * modules/ceil (Depends-on): Likewise.
2472         * modules/ceilf (Depends-on): Likewise.
2473         * modules/ceill (Depends-on): Likewise.
2474         * modules/chdir-long (Depends-on): Likewise.
2475         * modules/chown (Depends-on): Likewise.
2476         * modules/close (Depends-on): Likewise.
2477         * modules/connect (Depends-on): Likewise.
2478         * modules/cosl (Depends-on): Likewise.
2479         * modules/dirfd (Depends-on): Likewise.
2480         * modules/dprintf (Depends-on): Likewise.
2481         * modules/dprintf-posix (Depends-on): Likewise.
2482         * modules/error (Depends-on): Likewise.
2483         * modules/euidaccess (Depends-on): Likewise.
2484         * modules/expl (Depends-on): Likewise.
2485         * modules/faccessat (Depends-on): Likewise.
2486         * modules/fchdir (Depends-on): Likewise.
2487         * modules/fclose (Depends-on): Likewise.
2488         * modules/fcntl (Depends-on): Likewise.
2489         * modules/fdopendir (Depends-on): Likewise.
2490         * modules/fflush (Depends-on): Likewise.
2491         * modules/floor (Depends-on): Likewise.
2492         * modules/floorf (Depends-on): Likewise.
2493         * modules/floorl (Depends-on): Likewise.
2494         * modules/fnmatch (Depends-on): Likewise.
2495         * modules/fopen (Depends-on): Likewise.
2496         * modules/fprintf-posix (Depends-on): Likewise.
2497         * modules/frexp (Depends-on): Likewise.
2498         * modules/frexp-nolibm (Depends-on): Likewise.
2499         * modules/frexpl (Depends-on): Likewise.
2500         * modules/frexpl-nolibm (Depends-on): Likewise.
2501         * modules/fseek (Depends-on): Likewise.
2502         * modules/fsusage (Depends-on): Likewise.
2503         * modules/ftell (Depends-on): Likewise.
2504         * modules/ftello (Depends-on): Likewise.
2505         * modules/futimens (Depends-on): Likewise.
2506         * modules/getcwd (Depends-on): Likewise.
2507         * modules/getcwd-lgpl (Depends-on): Likewise.
2508         * modules/getdelim (Depends-on): Likewise.
2509         * modules/getdomainname (Depends-on): Likewise.
2510         * modules/getgroups (Depends-on): Likewise.
2511         * modules/gethostname (Depends-on): Likewise.
2512         * modules/getline (Depends-on): Likewise.
2513         * modules/getlogin_r (Depends-on): Likewise.
2514         * modules/getopt-posix (Depends-on): Likewise.
2515         * modules/getpeername (Depends-on): Likewise.
2516         * modules/getsockname (Depends-on): Likewise.
2517         * modules/getsockopt (Depends-on): Likewise.
2518         * modules/getsubopt (Depends-on): Likewise.
2519         * modules/getusershell (Depends-on): Likewise.
2520         * modules/glob (Depends-on): Likewise.
2521         * modules/grantpt (Depends-on): Likewise.
2522         * modules/iconv_open (Depends-on): Likewise.
2523         * modules/iconv_open-utf (Depends-on): Likewise.
2524         * modules/inet_ntop (Depends-on): Likewise.
2525         * modules/inet_pton (Depends-on): Likewise.
2526         * modules/ioctl (Depends-on): Likewise.
2527         * modules/isapipe (Depends-on): Likewise.
2528         * modules/isfinite (Depends-on): Likewise.
2529         * modules/isinf (Depends-on): Likewise.
2530         * modules/lchown (Depends-on): Likewise.
2531         * modules/ldexpl (Depends-on): Likewise.
2532         * modules/link (Depends-on): Likewise.
2533         * modules/linkat (Depends-on): Likewise.
2534         * modules/listen (Depends-on): Likewise.
2535         * modules/logl (Depends-on): Likewise.
2536         * modules/lstat (Depends-on): Likewise.
2537         * modules/mbrlen (Depends-on): Likewise.
2538         * modules/mbrtowc (Depends-on): Likewise.
2539         * modules/mbsinit (Depends-on): Likewise.
2540         * modules/mbsnrtowcs (Depends-on): Likewise.
2541         * modules/mbsrtowcs (Depends-on): Likewise.
2542         * modules/mbtowc (Depends-on): Likewise.
2543         * modules/memcmp (Depends-on): Likewise.
2544         * modules/mkdir (Depends-on): Likewise.
2545         * modules/mkdtemp (Depends-on): Likewise.
2546         * modules/mkfifo (Depends-on): Likewise.
2547         * modules/mkfifoat (Depends-on): Likewise.
2548         * modules/mknod (Depends-on): Likewise.
2549         * modules/mkostemp (Depends-on): Likewise.
2550         * modules/mkostemps (Depends-on): Likewise.
2551         * modules/mkstemp (Depends-on): Likewise.
2552         * modules/mkstemps (Depends-on): Likewise.
2553         * modules/mktime (Depends-on): Likewise.
2554         * modules/nanosleep (Depends-on): Likewise.
2555         * modules/open (Depends-on): Likewise.
2556         * modules/openat (Depends-on): Likewise.
2557         * modules/perror (Depends-on): Likewise.
2558         * modules/poll (Depends-on): Likewise.
2559         * modules/popen (Depends-on): Likewise.
2560         * modules/posix_spawn (Depends-on): Likewise.
2561         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2562         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2563         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2564         * modules/posix_spawnp (Depends-on): Likewise.
2565         * modules/pread (Depends-on): Likewise.
2566         * modules/printf-posix (Depends-on): Likewise.
2567         * modules/ptsname (Depends-on): Likewise.
2568         * modules/putenv (Depends-on): Likewise.
2569         * modules/pwrite (Depends-on): Likewise.
2570         * modules/readline (Depends-on): Likewise.
2571         * modules/readlink (Depends-on): Likewise.
2572         * modules/readlinkat (Depends-on): Likewise.
2573         * modules/recv (Depends-on): Likewise.
2574         * modules/recvfrom (Depends-on): Likewise.
2575         * modules/regex (Depends-on): Likewise.
2576         * modules/remove (Depends-on): Likewise.
2577         * modules/rename (Depends-on): Likewise.
2578         * modules/renameat (Depends-on): Likewise.
2579         * modules/rmdir (Depends-on): Likewise.
2580         * modules/round (Depends-on): Likewise.
2581         * modules/roundf (Depends-on): Likewise.
2582         * modules/roundl (Depends-on): Likewise.
2583         * modules/rpmatch (Depends-on): Likewise.
2584         * modules/select (Depends-on): Likewise.
2585         * modules/send (Depends-on): Likewise.
2586         * modules/sendto (Depends-on): Likewise.
2587         * modules/setenv (Depends-on): Likewise.
2588         * modules/setlocale (Depends-on): Likewise.
2589         * modules/setsockopt (Depends-on): Likewise.
2590         * modules/shutdown (Depends-on): Likewise.
2591         * modules/sigaction (Depends-on): Likewise.
2592         * modules/signbit (Depends-on): Likewise.
2593         * modules/sigprocmask (Depends-on): Likewise.
2594         * modules/sinl (Depends-on): Likewise.
2595         * modules/sleep (Depends-on): Likewise.
2596         * modules/snprintf (Depends-on): Likewise.
2597         * modules/snprintf-posix (Depends-on): Likewise.
2598         * modules/socket (Depends-on): Likewise.
2599         * modules/sprintf-posix (Depends-on): Likewise.
2600         * modules/sqrtl (Depends-on): Likewise.
2601         * modules/stat (Depends-on): Likewise.
2602         * modules/strchrnul (Depends-on): Likewise.
2603         * modules/strdup-posix (Depends-on): Likewise.
2604         * modules/strerror (Depends-on): Likewise.
2605         * modules/strerror_r-posix (Depends-on): Likewise.
2606         * modules/strndup (Depends-on): Likewise.
2607         * modules/strnlen (Depends-on): Likewise.
2608         * modules/strptime (Depends-on): Likewise.
2609         * modules/strsep (Depends-on): Likewise.
2610         * modules/strsignal (Depends-on): Likewise.
2611         * modules/strstr-simple (Depends-on): Likewise.
2612         * modules/strtod (Depends-on): Likewise.
2613         * modules/strtoimax (Depends-on): Likewise.
2614         * modules/strtok_r (Depends-on): Likewise.
2615         * modules/strtoumax (Depends-on): Likewise.
2616         * modules/symlink (Depends-on): Likewise.
2617         * modules/symlinkat (Depends-on): Likewise.
2618         * modules/tanl (Depends-on): Likewise.
2619         * modules/tcgetsid (Depends-on): Likewise.
2620         * modules/tmpfile (Depends-on): Likewise.
2621         * modules/trunc (Depends-on): Likewise.
2622         * modules/truncf (Depends-on): Likewise.
2623         * modules/truncl (Depends-on): Likewise.
2624         * modules/uname (Depends-on): Likewise.
2625         * modules/unlink (Depends-on): Likewise.
2626         * modules/unlockpt (Depends-on): Likewise.
2627         * modules/unsetenv (Depends-on): Likewise.
2628         * modules/usleep (Depends-on): Likewise.
2629         * modules/utimensat (Depends-on): Likewise.
2630         * modules/vasprintf (Depends-on): Likewise.
2631         * modules/vdprintf (Depends-on): Likewise.
2632         * modules/vdprintf-posix (Depends-on): Likewise.
2633         * modules/vfprintf-posix (Depends-on): Likewise.
2634         * modules/vprintf-posix (Depends-on): Likewise.
2635         * modules/vsnprintf (Depends-on): Likewise.
2636         * modules/vsnprintf-posix (Depends-on): Likewise.
2637         * modules/vsprintf-posix (Depends-on): Likewise.
2638         * modules/wcrtomb (Depends-on): Likewise.
2639         * modules/wcscasecmp (Depends-on): Likewise.
2640         * modules/wcscspn (Depends-on): Likewise.
2641         * modules/wcsdup (Depends-on): Likewise.
2642         * modules/wcsncasecmp (Depends-on): Likewise.
2643         * modules/wcsnrtombs (Depends-on): Likewise.
2644         * modules/wcspbrk (Depends-on): Likewise.
2645         * modules/wcsrtombs (Depends-on): Likewise.
2646         * modules/wcsspn (Depends-on): Likewise.
2647         * modules/wcsstr (Depends-on): Likewise.
2648         * modules/wcstok (Depends-on): Likewise.
2649         * modules/wcswidth (Depends-on): Likewise.
2650         * modules/wctob (Depends-on): Likewise.
2651         * modules/wctomb (Depends-on): Likewise.
2652         * modules/wctype (Depends-on): Likewise.
2653         * modules/wcwidth (Depends-on): Likewise.
2654         * modules/write (Depends-on): Likewise.
2655
2656 2011-05-03  Bruno Haible  <bruno@clisp.org>
2657
2658         Support for conditional dependencies.
2659         * doc/gnulib.texi (Module description): Document the syntax of
2660         conditional dependencies.
2661         * gnulib-tool: New option --conditional-dependencies.
2662         (func_usage): Document it.
2663         (cond_dependencies): New variable.
2664         (func_get_automake_snippet_conditional,
2665         func_get_automake_snippet_unconditional): New functions, extracted from
2666         func_get_automake_snippet.
2667         (func_get_automake_snippet): Use them.
2668         (sed_first_32_chars): New variable.
2669         (func_module_shellfunc_name): New function.
2670         (func_module_shellvar_name): New function.
2671         (func_module_conditional_name): New function.
2672         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2673         func_cond_module_condition): New functions.
2674         (func_modules_transitive_closure): Add support for conditional
2675         dependencies.
2676         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2677         conditional automake snippet in an automake conditional.
2678         (func_emit_autoconf_snippets): Emit shell functions that contain the
2679         code for conditional modules.
2680         (func_import, func_create_testdir): Update specification.
2681
2682 2011-05-03  Eric Blake  <eblake@redhat.com>
2683
2684         test-getaddrinfo: report error information
2685         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2686
2687 2011-05-03  Jim Meyering  <meyering@redhat.com>
2688
2689         bootstrap: avoid build failure when $GZIP is set
2690         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2691         program name.  If defined at all, it is supposed to list gzip options.
2692         Reported by Alan Curry in http://debbugs.gnu.org/8609
2693
2694 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2695
2696         readme-release: new module with release instructions
2697         * modules/readme-release: New module.
2698         * top/README-release: New file, from coreutils, grep, diffutils.
2699         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2700
2701 2011-05-02  Eric Blake  <eblake@redhat.com>
2702
2703         fflush: also replace fclose when fixing fflush
2704         * modules/fflush (Depends-on): Add fclose.
2705         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2706         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2707         memstreams with no backing fd.
2708         * doc/posix-functions/fclose.texi (fclose): Document the use of
2709         fflush module to fix the bug.
2710         * tests/test-fclose.c (main): Relax test when fclose is used in
2711         isolation.
2712
2713         fclose: add some tests
2714         * modules/fclose-tests: New test module.
2715         * tests/test-fclose.c: New file.
2716         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2717
2718         fclose: reduced dependencies
2719         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2720         simpler lseek.
2721         * lib/fclose.c (rpl_fclose): Likewise.
2722         Reported by Simon Josefsson.
2723
2724         exit: drop remaining clients
2725         * modules/argmatch (Depends-on): Replace exit with stdlib.
2726         * modules/copy-file (Depends-on): Likewise.
2727         * modules/execute (Depends-on): Likewise.
2728         * modules/exitfail (Depends-on): Likewise.
2729         * modules/obstack (Depends-on): Likewise.
2730         * modules/pagealign_alloc (Depends-on): Likewise.
2731         * modules/pipe-filter-gi (Depends-on): Likewise.
2732         * modules/pipe-filter-ii (Depends-on): Likewise.
2733         * modules/savewd (Depends-on): Likewise.
2734         * modules/spawn-pipe (Depends-on): Likewise.
2735         * modules/wait-process (Depends-on): Likewise.
2736         * modules/xsetenv (Depends-on): Likewise.
2737         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2738         * modules/git-merge-changelog (Depends-on): Likewise.
2739         * modules/long-options (Depends-on): Likewise.
2740         * modules/pt_chown (Depends-on): Likewise.
2741         * modules/sysexits (Depends-on): Likewise.
2742
2743         freading: relax license from LGPLv3+ to LGPLv2+
2744         * modules/freading (License): Relax LGPL version.
2745
2746 2011-05-02  Bruno Haible  <bruno@clisp.org>
2747
2748         fchdir: Remove unused dependencies.
2749         * modules/fchdir (Depends-on): Remove include_next.
2750
2751 2011-05-02  Bruno Haible  <bruno@clisp.org>
2752
2753         gnulib-tool: Refactor.
2754         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2755         from func_emit_autoconf_snippets.
2756         (func_emit_autoconf_snippets): Use it.
2757
2758 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2759
2760         * NEWS: Document removal of 'exit'.
2761         * modules/exit: Remove file.
2762
2763 2011-05-01  Bruno Haible  <bruno@clisp.org>
2764
2765         Update DEPENDENCIES.
2766         * DEPENDENCIES (gettext): Recommend the newest release.
2767         Reported by Simon Josefsson.
2768
2769 2011-05-01  Bruno Haible  <bruno@clisp.org>
2770
2771         gnulib-tool: Reduce code duplication.
2772         * gnulib-tool (func_emit_autoconf_snippets): New function.
2773         (func_import, func_create_testdir): Use it.
2774
2775 2011-04-30  Eric Blake  <eblake@redhat.com>
2776
2777         fclose: don't fail on non-seekable input stream
2778         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2779         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2780         since fflush is allowed to fail in that case.
2781
2782 2011-04-30  Bruno Haible  <bruno@clisp.org>
2783
2784         dup3: cleanup
2785         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2786
2787 2011-04-30  Bruno Haible  <bruno@clisp.org>
2788
2789         netdb: Make it work in C++ mode.
2790         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2791         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2792         module.
2793         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2794         gl_MODULE_INDICATOR_FOR_TESTS.
2795         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2796         * modules/netdb-c++-tests: New file.
2797         * tests/test-netdb-c++.cc: New file.
2798
2799 2011-04-30  Bruno Haible  <bruno@clisp.org>
2800
2801         New modules 'vfscanf', 'vscanf'.
2802         * modules/vfscanf: New file.
2803         * modules/vscanf: New file.
2804         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2805         here.
2806         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2807         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2808
2809 2011-04-30  Bruno Haible  <bruno@clisp.org>
2810
2811         passfd: Add comments.
2812         * lib/passfd.c: Add comments about platforms.
2813
2814 2011-04-30  Bruno Haible  <bruno@clisp.org>
2815
2816         sys_uio: Make <sys/uio.h> self-contained.
2817         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2818         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2819
2820 2011-04-30  Bruno Haible  <bruno@clisp.org>
2821
2822         sys_socket: Ensure 'struct iovec' definition.
2823         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2824         <sys/socket.h>.
2825         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2826
2827 2011-04-30  Bruno Haible  <bruno@clisp.org>
2828
2829         sys_uio: Protect definition of 'struct iovec'.
2830         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2831         it as a C struct.
2832
2833 2011-04-30  Bruno Haible  <bruno@clisp.org>
2834
2835         manywarnings: fix indentation
2836         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2837
2838 2011-04-30  Pádraig Brady <P@draigBrady.com>
2839
2840         manywarnings: add -Wno-missing-field-initializers if needed.
2841         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2842         option if it's needed to allow initialization with { 0, }
2843
2844 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2845
2846         announce-gen: cosmetic improvement
2847         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2848
2849 2011-04-29  Jim Meyering  <meyering@redhat.com>
2850
2851         vc-list-files: indent with spaces, not TABs
2852         * build-aux/vc-list-files: Convert leading TABs to spaces,
2853         to match the style of most other files in gnulib.
2854
2855         announce-gen: indent with spaces, not TABs
2856         * build-aux/announce-gen: Convert all TABs to spaces, to match
2857         the style of most other files in gnulib.
2858
2859 2011-04-29  Eric Blake  <eblake@redhat.com>
2860
2861         quotearg: avoid uninitialized variable use
2862         * lib/quotearg.c (quoting_options_from_style): Initialize
2863         remaining fields, and ensure that custom styles are only used via
2864         quoting_options rather than quoting_style.
2865
2866 2011-04-29  Jim Meyering  <meyering@redhat.com>
2867
2868         maint.mk: remove unused VC-tag variable
2869         * top/maint.mk (VC-tag): Remove unused variable.
2870
2871 2011-04-29  Bruno Haible  <bruno@clisp.org>
2872
2873         netdb: fix gai_strerror replacements
2874         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2875         * modules/netdb: Substitute it.
2876
2877 2011-04-29  Jim Meyering  <meyering@redhat.com>
2878
2879         test-getcwd.c: avoid new set-but-not-used warning
2880         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2881         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2882         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2883         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2884
2885         test-hash.c: avoid a new shadowing warning
2886         * tests/test-hash.c (main): Don't shadow "dup".
2887
2888 2011-04-28  Eric Blake  <eblake@redhat.com>
2889
2890         getaddrinfo: fix gai_strerror signature
2891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2892         and work around mingw with UNICODE defined.
2893         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2894         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2895         * modules/netdb (Makefile.am): Substitute it.
2896         * lib/netdb.in.h (gai_strerror): Declare replacement.
2897         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2898         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2899         the fix.
2900
2901         getsockopt: avoid compiler warning
2902         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2903         Reported by Matthias Bolte.
2904
2905         tests: drop unused link dependency
2906         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2907         * modules/dirent-safer-tests (Makefile.am): Likewise.
2908         * modules/fdopendir-tests (Makefile.am): Likewise.
2909         * modules/mkfifoat-tests (Makefile.am): Likewise.
2910         * modules/openat-safer-tests (Makefile.am): Likewise.
2911         * modules/openat-tests (Makefile.am): Likewise.
2912         * modules/readlinkat-tests (Makefile.am): Likewise.
2913         * modules/symlinkat-tests (Makefile.am): Likewise.
2914         * modules/linkat-tests (Makefile.am): Likewise.
2915         (Depends-on): Switch to filenamecat-lgpl.
2916         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2917         LIBINTL.
2918         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2919         * tests/test-linkat.c (main): Don't require xalloc.
2920
2921         hash, mgetgroups: drop xalloc dependency
2922         * lib/hash.c (includes): Adjust includes.
2923         * lib/mgetgroups.c (includes): Likewise.
2924         (xgetgroups): Move...
2925         * lib/xgetgroups.c: ...to new file.
2926         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2927         * modules/xgetgroups: New file, split from...
2928         * modules/mgetgroups: ...here.
2929         (Depends-on): Add xalloc-oversized.
2930         * modules/hash (Depends-on): Likewise.
2931         * modules/hash-tests (Depends-on): Drop xalloc.
2932         (test_hash_LDADD): Drop unused library.
2933         * tests/test-hash.c (main): Break xalloc dependency.
2934         (includes): Drop unused include.
2935
2936         xalloc-oversized: new module
2937         * modules/xalloc-oversized: New module.
2938         * modules/xalloc (Depends-on): Add it.
2939         * lib/xalloc.h (xalloc_oversized): Move...
2940         * lib/xalloc-oversized.h: ...into new file.
2941
2942         utimecmp: drop dependency on xmalloc
2943         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2944         due to memory pressure.
2945         * modules/utimecmp (Depends-on): Drop xalloc.
2946
2947 2011-04-27  Eric Blake  <eblake@redhat.com>
2948
2949         getcwd: fix mingw bugs
2950         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2951         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2952         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2953
2954 2011-04-27  Bruno Haible  <bruno@clisp.org>
2955
2956         mkstemps: Ensure declaration on MacOS X 10.5.
2957         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2958         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2959         MacOS X.
2960
2961 2011-04-27  Bruno Haible  <bruno@clisp.org>
2962
2963         mkstemp: More documentation.
2964         * doc/posix-functions/mkstemp.texi: Document header file problem on
2965         MacOS X.
2966
2967 2011-04-27  Bruno Haible  <bruno@clisp.org>
2968
2969         mkstemp: Tweak configure message when cross-compiling.
2970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2971         result as a guess.
2972
2973 2011-04-27  Bruno Haible  <bruno@clisp.org>
2974
2975         clean-temp: Clarify what it does.
2976         * lib/clean-temp.h: Add more comments.
2977         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2978         module.
2979         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2980         * doc/glibc-functions/mkstemps.texi: Likewise.
2981         * doc/glibc-functions/mkostemps.texi: Likewise.
2982
2983 2011-04-27  Eric Blake  <eblake@redhat.com>
2984
2985         fchdir: avoid extra chdir and fix test
2986         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2987         getcwd-lgpl.
2988         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2989         have to be canonical.
2990         (canonicalize_file_name): Drop unused macro.
2991         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2992
2993         filenamecat-lgpl: fix licence
2994         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2995         when it was first created.
2996
2997         linkat, renameat: add missing dependency
2998         * modules/linkat (Depends-on): Require getcwd-lgpl.
2999         * modules/renameat (Depends-on): Likewise.
3000
3001         tests: reduce dependencies
3002         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3003         * tests/test-renameat.c (main): Likewise.
3004         * modules/linkat-tests (Depends-on): Relax dependency.
3005         * modules/renameat-tests (Depends-on): Likewise.
3006         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3007         dependency explicit.
3008
3009         save-cwd: reduce default dependency
3010         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3011         * lib/save-cwd.c: Update comments.
3012         * NEWS: Document the semantic change.
3013
3014         getcwd: enhance tests
3015         * tests/test-getcwd-lgpl.c: New file, taken from...
3016         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3017         repeat long path stress tests from m4 probe.
3018         * modules/getcwd-lgpl-tests: New module.
3019         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3020         * m4/getcwd-abort-bug.m4: Update comment.
3021         * m4/getcwd-path-max.m4: Likewise.
3022
3023         getcwd-lgpl: new module
3024         * modules/getcwd-lgpl: New module.
3025         * lib/getcwd-lgpl.c: New file.
3026         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3027         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3028         * modules/getcwd (configure.ac): Set C witness.
3029         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3030
3031         getcwd: tweak comments
3032         * m4/getcwd-abort-bug.m4: Fix comments.
3033         * m4/getcwd-path-max.m4: Likewise.
3034         * m4/getcwd.m4: Likewise.
3035
3036 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3037         and Eric Blake  <eblake@redhat.com>
3038
3039         mkstemp: replace if system version uses wrong permissions
3040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3041         read/write mode bits set in file created by mkstemp.
3042         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3043
3044 2011-04-27  Eric Blake  <eblake@redhat.com>
3045
3046         passfd: avoid compiler warning
3047         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3048         Reported by Laine Stump.
3049
3050 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3051
3052         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3053         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3054
3055 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3056         and Eric Blake  <eblake@redhat.com>
3057
3058         mkstemp: mention clean-temp module
3059         * lib/mkstemp.c: Add comment.
3060         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3061
3062 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         inttypes: also provide default values for 32-bit tests
3065         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3066         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3067
3068 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         strtoumax: remove dependency on strtoimax
3071         This is like the strtoull change of yesterday.
3072         * modules/strtoumax (Files): Add lib/strtoimax.c.
3073         (Depends-on): Remove strtoimax and add verify.
3074
3075         inttypes-incomplete: new module
3076         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3077         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3078         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3079         of gl_INTTYPES_H.
3080         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3081         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3082         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3083         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3084         * modules/strtoumax, modules/xstrtol (Depends-on):
3085         Depend on inttypes-incomplete, not inttypes.
3086         * modules/inttypes-incomplete: New module, containing the contents
3087         of the old modules/inttypes module, except that the Files: section
3088         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3089         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3090         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3091         (Depends-on): Depend only on inttypes-incomplete.
3092         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3093
3094         inttypes: omit now-redundant strtoimax and strtoumax work
3095         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3096         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3097
3098         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3099         This supports apps that need pointers to strtoimax and strtoumax,
3100         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3101         nonexistent functions.  See
3102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3103         et seq.
3104         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3105         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3106         a macro.
3107         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3108
3109 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3110
3111         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3112
3113 2011-04-25  Bruno Haible  <bruno@clisp.org>
3114
3115         strtol, strtoul: Mark modules as obsolete.
3116         * modules/strtol (Status, Notice): New sections.
3117         * modules/strtoul (Status, Notice): New sections.
3118
3119 2011-04-25  Bruno Haible  <bruno@clisp.org>
3120
3121         strtod: Remove check for strtod, unless supporting old platforms.
3122         * modules/strtod-obsolete: New file.
3123         * m4/strtod-obsolete.m4: New file.
3124         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3125         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3126         * modules/strtod (Depends-on): Add strtod-obsolete.
3127         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3128
3129 2011-04-25  Bruno Haible  <bruno@clisp.org>
3130
3131         strcase: Make module obsolete.
3132         * modules/strcase (Status, Notice): New sections.
3133
3134 2011-04-25  Bruno Haible  <bruno@clisp.org>
3135
3136         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3137         * modules/dup2-obsolete: New file.
3138         * m4/dup2-obsolete.m4: New file.
3139         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3140         gl_FUNC_DUP2_OBSOLETE is not also defined.
3141         * modules/dup2 (Depends-on): Add dup2-obsolete.
3142         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3143
3144 2011-04-25  Bruno Haible  <bruno@clisp.org>
3145
3146         strnlen: Avoid memchr related link error on old obsolete platforms.
3147         * modules/memchr-obsolete: New file.
3148         * m4/memchr-obsolete.m4: New file.
3149         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3150         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3151         * modules/memchr (Depends-on): Add memchr-obsolete.
3152         * modules/strnlen (Depends-on): Likewise.
3153         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3154
3155 2011-04-25  Jim Meyering  <meyering@redhat.com>
3156
3157         maint.mk: makefile_at_at_check extend and clean up
3158         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3159         in addition to */Makefile.am.
3160         Exempt legitimate uses of @VAR@ notation, e.g.,
3161         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3162         Remove obsolete coreutils-specific comment.
3163         Prompted by discussion here:
3164         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3165
3166 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3167
3168         strtoul: remove dependency on strtol
3169         This is so that 'configure' need not check for strtol merely because
3170         the application needs strtoul.
3171         * modules/strtoul (Files): Add lib/strtol.c.
3172         (Depends-on): Remove strtol.
3173
3174         strtoull: remove dependency on strtoul
3175         This is like the strtoll change.
3176         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3177         (Depends-on): Remove strtoul.
3178
3179         strtoll: remove dependency on strtol
3180         This is so that 'configure' need not check for strtol merely because
3181         the application needs strtoll.
3182         * modules/strtoll (Files): Add lib/strtol.c.
3183         (Depends-on): Remove strtol.
3184
3185 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         inttypes: Move some configure check to module 'imaxdiv'.
3188         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3189         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3190         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3191
3192 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3193
3194         inttypes: Move some configure check to module 'imaxabs'.
3195         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3196         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3197         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3198
3199 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3200
3201         inttypes: Remove configure tests that are not needed since 2009-12-31.
3202         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3203         gl_cv_header_working_inttypes_h.
3204
3205 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3206
3207         * modules/strnlen (Depends-on): Remove memchr.
3208         The strnlen implementation doesn't need the memchr module's fixes; see
3209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3210
3211         strtol: remove dependency on wchar
3212         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3213         * modules/strtol (Depends-on): Remove wchar.
3214
3215 2011-04-21  Eric Blake  <eblake@redhat.com>
3216
3217         passfd: fix test regression on Linux
3218         * modules/passfd-tests (configure.ac): Correct socketpair check.
3219
3220         passfd: speed up configure and drop unused code
3221         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3222         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3223         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3224         Instead of probing at configure for unix_scm_rights_bsd44_way,
3225         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3226         check to a struct member probe.
3227         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3228         (sendfd, recvfd): Update preprocessor checks.
3229         * modules/passfd (Files): Reflect rename, and drop unused file.
3230         (Depends-on): Drop unused dependency.
3231
3232         passfd: allow compilation on mingw
3233         * modules/sys_socket (Depends-on): Add sys_uio.
3234         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3235         iovec and a minimal struct msghdr.
3236         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3237         * tests/test-sys_socket.c (main): Enhance test.
3238         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3239         guaranteed to provide what we need.
3240         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3241         * modules/passfd-tests (Depends-on): Add sys_wait.
3242         * tests/test-passfd.c (main): Skip test on mingw, for now.
3243         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3244         partial 'struct msghdr' implementation.
3245
3246         sys_uio: new module
3247         * modules/sys_uio: New module.
3248         * modules/sys_uio-tests: Likewise.
3249         * lib/sys_uio.in.h: New file.
3250         * m4/sys_uio_h.m4: Likewise.
3251         * tests/test-sys_uio.c: Likewise.
3252         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3253         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3254
3255 2011-04-20  Jim Meyering  <meyering@redhat.com>
3256
3257         useless-if-before-free: avoid false-positive
3258         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3259         disjunct so that it too requires a terminating ";".  Without that,
3260         this script would identify as useless one statement from gcc that
3261         was not:
3262           if (aligned_ptr)
3263             free (((void **) aligned_ptr) [-1]);
3264
3265 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3266
3267         doc: update users.txt.
3268         * users.txt: Add barcode.
3269
3270 2011-04-19  Bruno Haible  <bruno@clisp.org>
3271
3272         ioctl: Remove link dependency on native Windows.
3273         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3274         (gl_close_fn, gl_ioctl_fn): New types.
3275         (struct fd_hook): Renamed from struct close_hook. Change type of
3276         private_close_fn field. Add private_ioctl_fn field.
3277         (close_hook_fn): Add parameter for primary close method.
3278         (execute_close_hooks, execute_all_close_hooks): Likewise.
3279         (ioctl_hook_fn): New type.
3280         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3281         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3282         argument.
3283         (unregister_fd_hook): Renamed from unregister_close_hook.
3284         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3285         Don't include <unistd.h>.
3286         (close): Remove undef.
3287         (anchor): Update.
3288         (execute_close_hooks): Add argument for primary close method.
3289         (execute_all_close_hooks): Likewise.
3290         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3291         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3292         argument. Allow each argument to be NULL.
3293         (unregister_fd_hook): Renamed from unregister_close_hook.
3294         * lib/close.c (rpl_close): Pass 'close' function pointer to
3295         execute_all_close_hooks.
3296         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3297         (primary_ioctl): New function.
3298         (ioctl): Don't call ioctlsocket here. Instead, call
3299         execute_all_ioctl_hooks.
3300         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3301         close method.
3302         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3303         (fd_sockets_hook): Renamed from close_sockets_hook.
3304         (gl_sockets_startup, gl_sockets_cleanup): Update.
3305         * modules/fd-hook: Renamed from modules/close-hook. Update.
3306         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3307         * modules/sockets (Depends-on): Likewise.
3308         * modules/ioctl (Depends-on): Add fd-hook.
3309         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3310         GNULIB_SOCKET.
3311
3312 2011-04-19  Bruno Haible  <bruno@clisp.org>
3313
3314         Move the support of O_NONBLOCK in open() to the 'open' module.
3315         * modules/nonblocking (Depends-on): Remove 'open'.
3316         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3317         gl_cv_have_open_O_NONBLOCK.
3318         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3319         O_NONBLOCK support.
3320         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3321
3322 2011-04-17  Bruno Haible  <bruno@clisp.org>
3323
3324         pipe2: Simplify code.
3325         * lib/pipe2.c (pipe2): Reduce code duplication.
3326
3327 2011-04-17  Bruno Haible  <bruno@clisp.org>
3328
3329         nonblocking: Add comment.
3330         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3331
3332 2011-04-17  Bruno Haible  <bruno@clisp.org>
3333
3334         nonblocking: Add tests for sockets.
3335         * tests/test-nonblocking-socket.sh: New file.
3336         * tests/test-nonblocking-socket-main.c: New file.
3337         * tests/test-nonblocking-socket-child.c: New file.
3338         * tests/test-nonblocking-socket.h: New file.
3339         * tests/socket-server.h: New file.
3340         * tests/socket-client.h: New file.
3341         * modules/nonblocking-socket-tests: New file.
3342         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3343
3344 2011-04-17  Bruno Haible  <bruno@clisp.org>
3345
3346         nonblocking: Add tests for pipes.
3347         * tests/test-nonblocking-pipe.sh: New file.
3348         * tests/test-nonblocking-pipe-main.c: New file.
3349         * tests/test-nonblocking-pipe-child.c: New file.
3350         * tests/test-nonblocking-pipe.h: New file.
3351         * tests/test-nonblocking-writer.h: New file.
3352         * tests/test-nonblocking-reader.h: New file.
3353         * tests/test-nonblocking-misc.h: New file.
3354         * modules/nonblocking-pipe-tests: New file.
3355         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3356
3357 2011-04-16  Bruno Haible  <bruno@clisp.org>
3358
3359         gettext: Clarify the needed programmer actions.
3360         * modules/gettext (Notice): New field.
3361         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3362
3363 2011-04-16  Bruno Haible  <bruno@clisp.org>
3364
3365         strchrnul: Tweak last commit.
3366         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3367         bug.
3368         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3369         as in _GL_FUNCDECL_SYS.
3370         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3371         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3372
3373 2011-04-15  Eric Blake  <eblake@redhat.com>
3374
3375         strchrnul: work around cygwin bug
3376         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3377         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3379         * modules/string (Makefile.am): Substitute it.
3380         * lib/string.in.h (strchrnul): Use it.
3381
3382 2011-04-15  Bruno Haible  <bruno@clisp.org>
3383
3384         Don't require lib/stdio-write.c when only module 'stdio' is used.
3385         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3386         invocation.
3387         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3388
3389 2011-04-14  Bruno Haible  <bruno@clisp.org>
3390
3391         Support non-blocking pipe I/O in read() on native Windows.
3392         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3393         (read): New declaration.
3394         * lib/read.c: New file.
3395         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3396         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3397         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3398         vscanf): New declarations.
3399         * lib/stdio-read.c: New file.
3400         * m4/read.m4: New file.
3401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3402         REPLACE_READ.
3403         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3404         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3405         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3406         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3407         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3408         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3409         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3410         * modules/read: New file.
3411         * modules/nonblocking (Files): Add lib/stdio-read.c.
3412         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3413         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3414         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3415         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3416         * modules/pread (Depends-on): Add read.
3417         * modules/safe-read (Depends-on): Likewise.
3418         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3419         gets, scanf, vfscanf, vscanf): Verify signatures.
3420         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3421         problem with non-blocking pipes.
3422         * doc/posix-functions/fgetc.texi: Likewise.
3423         * doc/posix-functions/fgets.texi: Likewise.
3424         * doc/posix-functions/fread.texi: Likewise.
3425         * doc/posix-functions/fscanf.texi: Likewise.
3426         * doc/posix-functions/getc.texi: Likewise.
3427         * doc/posix-functions/getchar.texi: Likewise.
3428         * doc/posix-functions/gets.texi: Likewise.
3429         * doc/posix-functions/scanf.texi: Likewise.
3430         * doc/posix-functions/vfscanf.texi: Likewise.
3431         * doc/posix-functions/vscanf.texi: Likewise.
3432
3433 2011-04-14  Bruno Haible  <bruno@clisp.org>
3434
3435         Support non-blocking pipe I/O in write() on native Windows.
3436         * lib/write.c (rpl_write): Split a write request that failed merely
3437         because the byte count was larger than the pipe buffer's size.
3438         * doc/posix-functions/write.texi: Mention the problem with large byte
3439         counts.
3440
3441 2011-04-14  Bruno Haible  <bruno@clisp.org>
3442
3443         wchar: Ensure that wchar_t gets defined on uClibc.
3444         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3445         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3446
3447 2011-04-13  Bruno Haible  <bruno@clisp.org>
3448
3449         safe-write, full-read: Avoid unnecessary compilation units.
3450         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3451         (Depends-on): Remove safe-read. Add ssize_t.
3452         * modules/full-read (Files): Add lib/full-write.c.
3453         (Depends-on): Add full-write.
3454
3455 2011-04-13  Bruno Haible  <bruno@clisp.org>
3456
3457         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3458         * modules/pwrite (Depends-on): Add 'write'.
3459
3460 2011-04-13  Bruno Haible  <bruno@clisp.org>
3461
3462         Support non-blocking pipe I/O in write() on native Windows.
3463         * lib/unistd.in.h (write): Enable replacement also if
3464         GNULIB_UNISTD_H_NONBLOCKING is 1.
3465         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3466         (rpl_write): When failing to write on a non-blocking pipe, change
3467         errno from ENOSPC to EAGAIN.
3468         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3469         putchar, puts, vfprintf, vprintf): Enable replacement also if
3470         GNULIB_STDIO_H_NONBLOCKING is 1.
3471         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3472         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3473         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3474         CALL_WITH_SIGPIPE_EMULATION.
3475         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3476         * m4/nonblocking.m4: New file.
3477         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3478         for non-blocking I/O support.
3479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3480         GNULIB_UNISTD_H_NONBLOCKING.
3481         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3482         required for non-blocking I/O support.
3483         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3484         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3485         lib/stdio-write.c, m4/asm-underscore.m4.
3486         (Depends-on): Add stdio, unistd.
3487         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3488         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3489         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3490         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3491         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3492         problem with non-blocking pipes.
3493         * doc/posix-functions/fputc.texi: Likewise.
3494         * doc/posix-functions/fputs.texi: Likewise.
3495         * doc/posix-functions/fwrite.texi: Likewise.
3496         * doc/posix-functions/printf.texi: Likewise.
3497         * doc/posix-functions/putc.texi: Likewise.
3498         * doc/posix-functions/putchar.texi: Likewise.
3499         * doc/posix-functions/puts.texi: Likewise.
3500         * doc/posix-functions/vfprintf.texi: Likewise.
3501         * doc/posix-functions/vprintf.texi: Likewise.
3502         * doc/posix-functions/write.texi: Likewise.
3503
3504 2011-04-10  Jim Meyering  <meyering@redhat.com>
3505
3506         maint.mk: prohibit doubled words
3507         Detect them also when they're separated by a newline.
3508         There are 3 ways to customize it:
3509           - disable the test on a per file basis, as usual with rules using
3510             $(VC_LIST_EXCEPT)
3511           - replace the default doubled-word-selecting regexp (affects all files)
3512           - ignore a particular file-vs-doubled-word match
3513         I nearly used that last one to ignore the "is is" match in
3514         coreutils' NEWS file, since the text was "ls -is is ..."
3515         To do that, I would have added this line to cfg.mk:
3516           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3517         but it would have ignored any "is is" match in NEWS.
3518         Low probability, but still...
3519         Instead, I changed the text, slightly:
3520           -  ls -is is now consistent with ls -lis in ignoring values returned
3521           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3522         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3523         (prohibit_doubled_word_): Define.
3524         (sc_prohibit_doubled_word): New rule.
3525         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3526
3527 2011-04-10  Jim Meyering  <meyering@redhat.com>
3528
3529         maint: fix doubled-word typo in comment
3530         * m4/gethostname.m4: s/is is/it is/
3531         * m4/getdomainname.m4: Likewise.
3532
3533 2011-04-10  Jim Meyering  <meyering@redhat.com>
3534
3535         maint: remove doubled word: s/it it/it/
3536         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3537
3538 2011-04-10  Jim Meyering  <meyering@redhat.com>
3539
3540         maint.mk: remove useless semicolon and backslash
3541         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3542         semicolon and backslash.
3543
3544 2011-04-10  Bruno Haible  <bruno@clisp.org>
3545
3546         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3547         * modules/stdint-tests (Depends-on): Add wchar.
3548
3549 2011-04-10  Jim Meyering  <meyering@redhat.com>
3550
3551         maint: remove doubled words in comments, e.g., s/a a/a/
3552         * lib/strptime.c (day_of_the_week): s/the the/the/
3553         * tests/test-chown.h (test_chown): s/a a/a/
3554
3555         test-chown.h: correct a cast
3556         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3557         when the destination is a stat.st_gid.
3558
3559 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3560
3561         getaddrinfo: Fix test for sa_len member.
3562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3563         include <sys/types.h> before <sys/socket.h>.
3564
3565 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3566
3567         maint: change "can not" to "cannot"
3568         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3569         boundaries.
3570
3571 2011-04-09  Jim Meyering  <meyering@redhat.com>
3572
3573         maint: change "a a" to "a"
3574         * tests/test-lchown.h (test_lchown): s/a a/a/
3575
3576         maint.mk: prohibit \<the the\>
3577         * top/maint.mk (sc_prohibit_the_the): New rule.
3578
3579         maint: fix "the the" in comment
3580         * lib/count-one-bits.h: s/the the/the/
3581
3582         maint: change "can not" to "cannot"
3583         But do not change the occurrences in maintain.texi or in
3584         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3585         * doc/gnulib-tool.texi: s/can not/cannot/
3586         * doc/posix-functions/accept.texi (accept): Likewise.
3587         * doc/posix-functions/socket.texi (socket): Likewise.
3588         * lib/mbrtowc.c: Likewise.
3589
3590         maint.mk: prohibit use of "can not"
3591         * top/maint.mk (sc_prohibit_can_not): New rule.
3592         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3593
3594 2011-04-09  Bruno Haible  <bruno@clisp.org>
3595
3596         careadlinkat: Guard against misuse of careadlinkatcwd.
3597         * lib/careadlinkat.c: Include <stdlib.h>.
3598         (careadlinkatcwd): Check that the fd argument is as expected.
3599
3600 2011-04-09  Bruno Haible  <bruno@clisp.org>
3601
3602         careadlinkat: Use common coding style.
3603         * lib/careadlinkat.c: Move gnulib includes after system includes.
3604
3605 2011-04-09  Bruno Haible  <bruno@clisp.org>
3606
3607         careadlinkat: Clarify specification.
3608         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3609         (careadlinkatcwd): Add comment.
3610         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3611
3612 2011-04-09  Bruno Haible  <bruno@clisp.org>
3613
3614         areadlinkat: Avoid link error on many platforms.
3615         * modules/areadlinkat (Depends-on): Add areadlink.
3616
3617 2011-04-09  Bruno Haible  <bruno@clisp.org>
3618
3619         allocator, careadlinkat: Fix double-inclusion guard.
3620         * lib/allocator.h: Fix double-inclusion guard.
3621         * lib/careadlinkat.h: Likewise.
3622
3623 2011-04-09  Bruno Haible  <bruno@clisp.org>
3624
3625         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3626         * lib/relocwrapper.c: Update dependencies hierarchy.
3627         * build-aux/install-reloc: Update list of files to be compiled.
3628         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3629         lib/allocator.[hc].
3630
3631 2011-04-08  Eric Blake  <eblake@redhat.com>
3632
3633         strftime: silence gnulib-tool warning
3634         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3635
3636 2011-04-08  Bruno Haible  <bruno@clisp.org>
3637
3638         verify: Fix syntax error with GCC 4.6 in C++ mode.
3639         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3640         (HAVE_STATIC_ASSERT): New macro.
3641         (verify_true, verify): Use 'static_assert' if it is supported and
3642         '_Static_assert' is not supported.
3643
3644 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3645
3646         allocator: New module.
3647         * modules/allocator, lib/allocator.c: New files.
3648         * lib/allocator.h (stdlib_allocator): New decl.
3649         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3650         Remove.  Do not include <stdlib.h>.
3651         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3652         * modules/careadlinkat (Files): Remove lib/allocator.h.
3653         (Depends-on): Add allocator.
3654
3655         stdlib: let modules use system malloc, realloc
3656         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3657         if !_GL_USE_STDLIB_ALLOC.
3658         (malloc, realloc): Limit this change to a smaller scope.
3659
3660         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3661         (malloc, realloc): Don't #undef; no longer needed.
3662         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3663         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3664         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3665         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3666         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3667         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3668         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3669         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3670
3671         careadlinkat: rename members to avoid problem
3672         * lib/allocator.h (struct allocator): Rename members from
3673         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3674         and realloc are #define'd.  Reported by Eric Blake in
3675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3676         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3677
3678 2011-04-08  Eric Blake  <eblake@redhat.com>
3679
3680         nonblocking: reduce dependency
3681         * tests/test-nonblocking.c: Only test sockets when in use.
3682         * modules/nonblocking-tests (Depends-on): Drop socket.
3683         (Makefile.am): Link even if sockets are not present.
3684         * modules/pipe2-tests (Makefile.am): Likewise.
3685         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3686
3687         pipe2: fix O_NONBLOCK support on mingw
3688         * modules/pipe2 (Depends-on): Add nonblocking.
3689         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3690         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3691         * tests/test-nonblocking.c (main): Likewise.
3692         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3693
3694         fcntl-h: fix O_ACCMODE on cygwin
3695         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3696         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3697
3698         pipe-filter: drop O_NONBLOCK workarounds
3699         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3700         * modules/pipe-filter-ii (Depends-on): Likewise.
3701         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3702
3703         nonblocking: provide O_NONBLOCK for mingw
3704         * modules/nonblocking (Depends-on): Add open.
3705         (configure.ac): Set new witness macro.
3706         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3707         * modules/fcntl-h (Makefile.am): Substitute it.
3708         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3709         nonblocking module is in use.
3710         * lib/nonblocking.c: Adjust portability test.
3711         * lib/open.c (open): Don't let native open see gnulib flag.
3712         * tests/test-fcntl-h.c (main): Enhance test.
3713         * tests/test-open.h (test_open): Likewise.
3714         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3715
3716         careadlinkat: fix compilation error on mingw
3717         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3718         within struct allocator.
3719
3720 2011-04-06  Eric Blake  <eblake@redhat.com>
3721
3722         binary-io: relicense under LGPLv2+
3723         * modules/binary-io (License): Relax to LGPLv2+.
3724         Requested for libvirt, and required by pipe2.
3725
3726 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3727
3728         verify: use _Static_assert if available
3729         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3730         (verify_true, verify): Use it if available.  This generates better
3731         diagnostics with GCC 4.6.0 and later.
3732
3733 2011-04-05  Bruno Haible  <bruno@clisp.org>
3734
3735         Remove leftover generated .h files after config.status changed.
3736
3737         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3738         GL_GENERATE_ALLOCA_H.
3739         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3740         GL_GENERATE_ALLOCA_H evaluates to false.
3741
3742         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3743         GL_GENERATE_ARGZ_H.
3744         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3745         evaluates to false.
3746
3747         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3748         GL_GENERATE_BYTESWAP_H.
3749         * modules/byteswap (Makefile.am): Remove byteswap.h if
3750         GL_GENERATE_BYTESWAP_H evaluates to false.
3751
3752         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3753         GL_GENERATE_ERRNO_H.
3754         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3755         evaluates to false.
3756
3757         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3758         GL_GENERATE_FLOAT_H.
3759         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3760         evaluates to false.
3761
3762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3763         GL_GENERATE_FNMATCH_H.
3764         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3765         GL_GENERATE_FNMATCH_H evaluates to false.
3766
3767         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3768         GL_GENERATE_GLOB_H.
3769         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3770         evaluates to false.
3771
3772         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3773         automake conditional GL_GENERATE_ICONV_H.
3774         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3775         evaluates to false.
3776
3777         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3778         GL_GENERATE_NETINET_IN_H.
3779         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3780         GL_GENERATE_NETINET_IN_H evaluates to false.
3781
3782         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3783         conditional GL_GENERATE_PTHREAD_H.
3784         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3785         * modules/pthread (Makefile.am): Remove pthread.h if
3786         GL_GENERATE_PTHREAD_H evaluates to false.
3787
3788         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3789         GL_GENERATE_SCHED_H.
3790         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3791         evaluates to false.
3792
3793         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3794         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3795         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3796         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3797
3798         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3799         GL_GENERATE_STDARG_H.
3800         * modules/stdarg (Makefile.am): Remove stdarg.h if
3801         GL_GENERATE_STDARG_H evaluates to false.
3802
3803         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3804         GL_GENERATE_STDBOOL_H.
3805         * modules/stdbool (Makefile.am): Remove stdbool.h if
3806         GL_GENERATE_STDBOOL_H evaluates to false.
3807
3808         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3809         conditional GL_GENERATE_STDDEF_H.
3810         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3811         * modules/stddef (Makefile.am): Remove stddef.h if
3812         GL_GENERATE_STDDEF_H evaluates to false.
3813
3814         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3815         GL_GENERATE_STDINT_H.
3816         * modules/stdint (Makefile.am): Remove stdint.h if
3817         GL_GENERATE_STDINT_H evaluates to false.
3818
3819         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3820         GL_GENERATE_SYSEXITS_H.
3821         * modules/sysexits (Makefile.am): Remove sysexits.h if
3822         GL_GENERATE_SYSEXITS_H evaluates to false.
3823
3824         Reported by Karl Berry and Ralf Wildenhues.
3825
3826 2011-04-05  Bruno Haible  <bruno@clisp.org>
3827
3828         Ensure to rebuild generated .h files when config.status has changed.
3829         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3830         config.status.
3831         * modules/ctype (Makefile.am): Likewise.
3832         * modules/dirent (Makefile.am): Likewise.
3833         * modules/errno (Makefile.am): Likewise.
3834         * modules/fcntl-h (Makefile.am): Likewise.
3835         * modules/float (Makefile.am): Likewise.
3836         * modules/getopt-posix (Makefile.am): Likewise.
3837         * modules/glob (Makefile.am): Likewise.
3838         * modules/iconv-h (Makefile.am): Likewise.
3839         * modules/inttypes (Makefile.am): Likewise.
3840         * modules/langinfo (Makefile.am): Likewise.
3841         * modules/locale (Makefile.am): Likewise.
3842         * modules/math (Makefile.am): Likewise.
3843         * modules/netdb (Makefile.am): Likewise.
3844         * modules/netinet_in (Makefile.am): Likewise.
3845         * modules/poll-h (Makefile.am): Likewise.
3846         * modules/pthread (Makefile.am): Likewise.
3847         * modules/pty (Makefile.am): Likewise.
3848         * modules/sched (Makefile.am): Likewise.
3849         * modules/search (Makefile.am): Likewise.
3850         * modules/selinux-h (Makefile.am): Likewise.
3851         * modules/signal (Makefile.am): Likewise.
3852         * modules/spawn (Makefile.am): Likewise.
3853         * modules/stdarg (Makefile.am): Likewise.
3854         * modules/stdbool (Makefile.am): Likewise.
3855         * modules/stddef (Makefile.am): Likewise.
3856         * modules/stdint (Makefile.am): Likewise.
3857         * modules/stdio (Makefile.am): Likewise.
3858         * modules/stdlib (Makefile.am): Likewise.
3859         * modules/string (Makefile.am): Likewise.
3860         * modules/strings (Makefile.am): Likewise.
3861         * modules/sys_file (Makefile.am): Likewise.
3862         * modules/sys_ioctl (Makefile.am): Likewise.
3863         * modules/sys_select (Makefile.am): Likewise.
3864         * modules/sys_socket (Makefile.am): Likewise.
3865         * modules/sys_stat (Makefile.am): Likewise.
3866         * modules/sys_time (Makefile.am): Likewise.
3867         * modules/sys_times (Makefile.am): Likewise.
3868         * modules/sys_utsname (Makefile.am): Likewise.
3869         * modules/sys_wait (Makefile.am): Likewise.
3870         * modules/sysexits (Makefile.am): Likewise.
3871         * modules/termios (Makefile.am): Likewise.
3872         * modules/time (Makefile.am): Likewise.
3873         * modules/unistd (Makefile.am): Likewise.
3874         * modules/wchar (Makefile.am): Likewise.
3875         * modules/wctype-h (Makefile.am): Likewise.
3876         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3877
3878 2011-04-05  Bruno Haible  <bruno@clisp.org>
3879
3880         pipe2: Relicense under LGPLv2+.
3881         * modules/pipe2 (License): Change to LGPLv2+.
3882         Requested by Eric Blake, for libvirt.
3883
3884 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3885
3886         bootstrap: compute gnulib_extra_files after updating build_aux
3887         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3888         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3889
3890 2011-04-05  Eric Blake  <eblake@redhat.com>
3891
3892         bootstrap: preserve git whitelist item sorting
3893         * build-aux/bootstrap (sort_patterns): New function.
3894         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3895
3896 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3897
3898         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3899         sc_space_tab check.
3900
3901 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3902
3903         areadlink, areadlinkat: rewrite in terms of careadlinkat
3904         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3905         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3906         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3907         (malloc, realloc): Remove #undefs.
3908         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3909         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3910         readlink, ssize_t, stdint, unistd.
3911         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3912         areadlink, stdint.
3913
3914         careadlinkat: new module
3915         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3916         * modules/careadlinkat: New files, written by me with
3917         a review and feedback from Ben Pfaff in
3918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3919
3920 2011-04-01  Bruno Haible  <bruno@clisp.org>
3921
3922         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3923         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3924         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3925         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3926         Reported by Bruce Korb <bruce.korb@gmail.com>.
3927
3928 2011-04-01  Bruno Haible  <bruno@clisp.org>
3929
3930         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3931         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3932         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3933         * modules/wcpcpy (Depends-on): Add extensions.
3934         * modules/wcpncpy (Depends-on): Likewise.
3935         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3936         systems.
3937         * doc/posix-functions/wcpncpy.texi: Likewise.
3938         * doc/posix-functions/wcwidth.texi: Likewise.
3939
3940 2011-03-31  Eric Blake  <eblake@redhat.com>
3941
3942         nonblocking: fix mingw test failures
3943         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3944         non-blocking flag on regular file.
3945         (get_nonblocking_flag): Set errno on invalid fd.
3946         * tests/test-nonblocking.c (main): Avoid test failure on
3947         directories if fchdir is not active.
3948         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3949
3950 2011-03-31  Bruno Haible  <bruno@clisp.org>
3951
3952         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3953         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3954         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3955         Reported by Simon Josefsson <simon@josefsson.org>.
3956
3957 2011-03-31  Bruno Haible  <bruno@clisp.org>
3958         and Eric Blake  <eblake@redhat.com>
3959
3960         nonblocking: new module
3961         * modules/nonblocking: New module.
3962         * modules/nonblocking-tests: Likewise.
3963         * lib/nonblocking.h: New file.
3964         * lib/nonblocking.c: Likewise.
3965         * tests/test-nonblocking.c: New test.
3966         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3967
3968 2011-03-30  Bruno Haible  <bruno@clisp.org>
3969
3970         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3971         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3972         instead of 'printf' format for GCC >= 4.4.
3973         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3974         (fprintf, printf, vfprintf, vprintf): Declare with
3975         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3976         the system's vfprintf() function.
3977         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3978
3979 2011-03-30  Eric Blake  <eblake@redhat.com>
3980
3981         passfd: fix scoping bug
3982         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3983         before sendmsg/recvmsg.
3984
3985         passfd: standardize coding conventions
3986         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3987         can be learned at compile time.
3988         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3989         ifdefs.
3990         (sendfd, recvfd): Follow gnulib code conventions.
3991
3992         passfd: fix incorrect sendmsg arguments
3993         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3994         incorrect msg_controllen value.
3995         * modules/passfd-tests (Depends-on): Check for alarm.
3996         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3997         Reported by Bastien ROUCARIES.
3998
3999 2011-03-30  Bruno Haible  <bruno@clisp.org>
4000
4001         c-strcasestr: Relicense under LGPLv2+.
4002         * modules/c-strcasestr (License): Change to LGPLv2+.
4003         Requested by Eric Blake, for libvirt.
4004
4005 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4006
4007         * users.txt: Add libidn2.  Fix libtasn1 link.
4008
4009 2011-03-30  Jim Meyering  <meyering@redhat.com>
4010
4011         tests: readlink* ("",... fails with EINVAL on newer kernels
4012         readlink and readlinkat have typically failed with ENOENT for
4013         the invalid, empty file name,  "".  However, with the advent
4014         of linux-2.6.39, they fail with EINVAL.
4015         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4016         when operating on the empty file name.
4017         * tests/test-readlink.h (test_readlink): Likewise.
4018
4019 2011-03-29  Bruno Haible  <bruno@clisp.org>
4020
4021         Relicense some modules under LGPLv2+, for libidn2.
4022         * modules/array-mergesort (License): Change to LGPLv2+.
4023         * modules/c-strcaseeq (License): Likewise.
4024         * modules/striconveh (License): Likewise.
4025         * modules/striconveha (License): Likewise.
4026         * modules/uniconv/base (License): Likewise.
4027         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4028         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4029         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4030         * modules/unictype/base (License): Likewise.
4031         * modules/unictype/bidiclass-of (License): Likewise.
4032         * modules/unictype/category-M (License): Likewise.
4033         * modules/unictype/category-none (License): Likewise.
4034         * modules/unictype/category-of (License): Likewise.
4035         * modules/unictype/category-test (License): Likewise.
4036         * modules/unictype/category-test-withtable (License): Likewise.
4037         * modules/unictype/combining-class (License): Likewise.
4038         * modules/unictype/joiningtype-of (License): Likewise.
4039         * modules/unictype/scripts (License): Likewise.
4040         * modules/uninorm/base (License): Likewise.
4041         * modules/uninorm/canonical-decomposition (License): Likewise.
4042         * modules/uninorm/composition (License): Likewise.
4043         * modules/uninorm/decompose-internal (License): Likewise.
4044         * modules/uninorm/decomposition-table (License): Likewise.
4045         * modules/uninorm/nfc (License): Likewise.
4046         * modules/uninorm/nfd (License): Likewise.
4047         * modules/uninorm/u32-normalize (License): Likewise.
4048         * modules/unistr/base (License): Likewise.
4049         * modules/unistr/u32-cpy (License): Likewise.
4050         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4051         * modules/unistr/u32-to-u8 (License): Likewise.
4052         * modules/unistr/u32-uctomb (License): Likewise.
4053         * modules/unistr/u8-check (License): Likewise.
4054         * modules/unistr/u8-mblen (License): Likewise.
4055         * modules/unistr/u8-mbtouc (License): Likewise.
4056         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4057         * modules/unistr/u8-mbtoucr (License): Likewise.
4058         * modules/unistr/u8-prev (License): Likewise.
4059         * modules/unistr/u8-strlen (License): Likewise.
4060         * modules/unistr/u8-to-u32 (License): Likewise.
4061         * modules/unistr/u8-uctomb (License): Likewise.
4062         * modules/unitypes (License): Likewise.
4063         Requested by Simon Josefsson.
4064
4065 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4066
4067         lib-symbol-visibility: Add a notice.
4068         * modules/lib-symbol-visibility (Notice): New field.
4069
4070 2011-03-29  Bruno Haible  <bruno@clisp.org>
4071
4072         getaddrinfo: Doc fix.
4073         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4074         section "fixed in Gnulib".
4075
4076 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4077
4078         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4079         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4080
4081 2011-03-26  Bruno Haible  <bruno@clisp.org>
4082
4083         unictype/property-byname: Reduce the number of load-time relocations.
4084         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4085         (UC_PROPERTY_INDEX_*): New enumeration values.
4086         (uc_property_byname): Convert an index from the lookup table to an
4087         uc_property_t.
4088         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4089         values.
4090
4091 2011-03-26  Bruno Haible  <bruno@clisp.org>
4092
4093         unictype/property-byname: Allow omitted word separators and aliases.
4094         * lib/unictype/pr_byname.gperf: Add property names without word
4095         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4096         for 'space'.
4097
4098 2011-03-26  Bruno Haible  <bruno@clisp.org>
4099
4100         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4101         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4102         also hyphens to space.
4103         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4104         without spaces.
4105         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4106
4107 2011-03-26  Bruno Haible  <bruno@clisp.org>
4108
4109         unictype/joiningtype-byname: Recognize long names as well.
4110         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4111         a long name.
4112         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4113         unictype/joiningtype_byname.h.
4114         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4115         * lib/unictype/joiningtype_byname.gperf: New file.
4116         * modules/unictype/joiningtype-byname (Files): Add
4117         lib/unictype/joiningtype_byname.gperf.
4118         (Depends-on): Add gperf.
4119         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4120         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4121         long names.
4122
4123         Tests for module 'unictype/joiningtype-longname'.
4124         * modules/unictype/joiningtype-longname-tests: New file.
4125         * tests/unictype/test-joiningtype_longname.c: New file.
4126
4127         New module 'unictype/joiningtype-longname'.
4128         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4129         * lib/unictype/joiningtype_longname.c: New file.
4130         * modules/unictype/joiningtype-longname: New file.
4131         * modules/unictype/joiningtype-all (Depends-on): Add
4132         unictype/joiningtype-longname.
4133
4134 2011-03-26  Bruno Haible  <bruno@clisp.org>
4135
4136         unictype/bidiclass-byname: Recognize long names as well.
4137         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4138         name.
4139         * lib/unictype/bidi_byname.c: Include <string.h>,
4140         unictype/bidi_byname.h.
4141         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4142         * lib/unictype/bidi_byname.gperf: New file.
4143         * modules/unictype/bidiclass-byname (Files): Add
4144         lib/unictype/bidi_byname.gperf.
4145         (Depends-on): Add gperf.
4146         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4147         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4148         long names.
4149
4150         Tests for module 'unictype/bidiclass-longname'.
4151         * modules/unictype/bidiclass-longname-tests: New file.
4152         * tests/unictype/test-bidi_longname.c: New file.
4153
4154         New module 'unictype/bidiclass-longname'.
4155         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4156         * lib/unictype/bidi_longname.c: New file.
4157         * modules/unictype/bidiclass-longname: New file.
4158         * modules/unictype/bidiclass-all (Depends-on): Add
4159         unictype/bidiclass-longname.
4160
4161 2011-03-26  Bruno Haible  <bruno@clisp.org>
4162
4163         unictype/bidi*: Rename modules.
4164         * modules/unictype/bidiclass-all: Renamed from
4165         modules/unictype/bidicategory-all.
4166         * modules/unictype/bidiclass-name: Renamed from
4167         modules/unictype/bidiclass-name.
4168         (Description): Update.
4169         * modules/unictype/bidiclass-name-tests: Renamed from
4170         modules/unictype/bidicategory-name-tests.
4171         * modules/unictype/bidiclass-byname: Renamed from
4172         modules/unictype/bidicategory-byname.
4173         (Description): Update.
4174         * modules/unictype/bidiclass-byname-tests: Renamed from
4175         modules/unictype/bidicategory-byname-tests.
4176         * modules/unictype/bidiclass-of: Renamed from
4177         modules/unictype/bidicategory-of.
4178         (Description): Update.
4179         * modules/unictype/bidiclass-of-tests: Renamed from
4180         modules/unictype/bidicategory-of-tests.
4181         * modules/unictype/bidiclass-test: Renamed from
4182         modules/unictype/bidicategory-test.
4183         (Description): Update.
4184         * modules/unictype/bidiclass-test-tests: Renamed from
4185         modules/unictype/bidicategory-test-tests.
4186         * modules/unictype/bidicategory-all: New file, a simple redirection.
4187         * modules/unictype/bidicategory-name: Likewise.
4188         * modules/unictype/bidicategory-byname: Likewise.
4189         * modules/unictype/bidicategory-of: Likewise.
4190         * modules/unictype/bidicategory-test: Likewise.
4191         * modules/unictype/property-bidi-* (Dependencies): Update.
4192         * lib/unictype/bidi_*.c: Update comment.
4193
4194 2011-03-26  Bruno Haible  <bruno@clisp.org>
4195
4196         unictype/bidi*: Rename functions, part 2.
4197         * modules/unictype/bidicategory-name (configure.ac): Update required
4198         libunistring version.
4199         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4200
4201 2011-03-25  Bruno Haible  <bruno@clisp.org>
4202
4203         New module 'unictype/combining-class-all'.
4204         * modules/unictype/combining-class-all: New file.
4205
4206         Tests for module 'unictype/combining-class-byname'.
4207         * modules/unictype/combining-class-byname-tests: New file.
4208         * tests/unictype/test-combiningclass_byname.c: New file.
4209
4210         New module 'unictype/combining-class-byname'.
4211         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4212         * lib/unictype/combiningclass_byname.c: New file.
4213         * lib/unictype/combiningclass_byname.gperf: New file.
4214         * modules/unictype/combining-class-byname: New file.
4215
4216         Tests for module 'unictype/combining-class-longname'.
4217         * modules/unictype/combining-class-longname-tests: New file.
4218         * tests/unictype/test-combiningclass_longname.c: New file.
4219
4220         New module 'unictype/combining-class-longname'.
4221         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4222         * lib/unictype/combiningclass_longname.c: New file.
4223         * modules/unictype/combining-class-longname: New file.
4224
4225         Tests for module 'unictype/combining-class-name'.
4226         * modules/unictype/combining-class-name-tests: New file.
4227         * tests/unictype/test-combiningclass_name.c: New file.
4228
4229         New module 'unictype/combining-class-name'.
4230         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4231         * lib/unictype/combiningclass_name.c: New file.
4232         * modules/unictype/combining-class-name: New file.
4233
4234 2011-03-25  Bruno Haible  <bruno@clisp.org>
4235
4236         unictype/combining-class: Rename source files.
4237         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4238         of unictype/combining.h.
4239         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4240         Update.
4241         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4242         * modules/unictype/combining-class (Description): Fix.
4243         (Files, Makefile.am): Update.
4244         * tests/unictype/test-combiningclass.c: Renamed from
4245         tests/unictype/test-combining.c.
4246         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4247
4248 2011-03-25  Bruno Haible  <bruno@clisp.org>
4249
4250         unictype: Update list of canonical combining classes.
4251         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4252
4253 2011-03-25  Bruno Haible  <bruno@clisp.org>
4254
4255         unictype/category-byname: Recognize long names as well.
4256         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4257         a long name.
4258         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4259         unictype/categ_byname.h.
4260         (UC_CATEGORY_INDEX_*): New enumeration values.
4261         (uc_general_category_byname): Use uc_general_category_lookup and
4262         convert from index to value.
4263         * lib/unictype/categ_byname.gperf: New file.
4264         * modules/unictype/category-byname (Files): Add
4265         lib/unictype/categ_byname.gperf.
4266         (Depends-on): Add gperf.
4267         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4268         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4269         long names.
4270
4271         Tests for module 'unictype/category-longname'.
4272         * modules/unictype/category-longname-tests: New file.
4273         * tests/unictype/test-categ_longname.c: New file.
4274
4275         New module 'unictype/category-longname'.
4276         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4277         * lib/unictype/categ_longname.c: New file.
4278         * modules/unictype/category-longname: New file.
4279         * modules/unictype/category-all (Depends-on): Add it.
4280
4281 2011-03-25  Bruno Haible  <bruno@clisp.org>
4282
4283         Tests for module 'unictype/category-LC'.
4284         * modules/unictype/category-LC-tests: New file.
4285         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4286
4287         New module 'unictype/category-LC'.
4288         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4289         (UC_CATEGORY_LC): New declaration.
4290         (UC_CASED_LETTER): New macro.
4291         * lib/gen-uni-tables.c (is_category_LC): New function.
4292         (output_categories): Also handle category LC.
4293         (UC_CATEGORY_MASK_LC): New enumeration value.
4294         (general_category_byname): Also handle category LC.
4295         * lib/unictype/categ_LC.c: New file.
4296         * lib/unictype/categ_LC.h: New file, automatically generated.
4297         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4298         category LC.
4299         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4300         * modules/unictype/category-LC: New file.
4301         * modules/unictype/category-byname (Depends-on): Add
4302         unictype/category-LC.
4303         * modules/unictype/category-all (Depends-on): Likewise.
4304
4305 2011-03-25  Eric Blake  <eblake@redhat.com>
4306
4307         xmalloc: revert yesterday's regression
4308         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4309         realloc's underlying behavior (allowing allocation of zero-size
4310         objects, especially if malloc-gnu is also in use).
4311
4312 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4313
4314         maint.mk: add missing version to VC-tag
4315         * top/maint.mk: git tag was missing actual tag name; add it.
4316
4317         valgrind: do leak checking, and exit with code 1 on error (not 0)
4318         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4319         to VALGRIND.
4320
4321 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4322
4323         posix-modules: say what it does.
4324         * posix-modules: Add a line to the --help output saying what it does.
4325
4326 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4327
4328         xmalloc: Do not leak if underlying realloc is C99 compatible.
4329         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4330         This avoids a leak on C99-based systems.  See
4331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4332
4333 2011-03-24  Eric Blake  <eblake@redhat.com>
4334
4335         realloc: document portability problem
4336         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4337         passing 0 size to realloc.
4338
4339 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4340
4341         doc: update users.txt
4342         * users.txt: Add cvsps, tmpwatch
4343
4344 2011-03-23  Matt Rice  <ratmice@gmail.com>
4345
4346         doc: update users.txt
4347         * users.txt: Add gdb.
4348
4349 2011-03-23  Jim Meyering  <meyering@redhat.com>
4350
4351         doc: update users.txt
4352         Looking through matches up to the following URL (there are still
4353         several more pages), I found several projects that use gnulib:
4354         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4355         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4356         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4357
4358 2011-03-22  Bruno Haible  <bruno@clisp.org>
4359
4360         unictype/bidi*: Rename functions.
4361         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4362         uc_bidi_class, uc_is_bidi_class): New declarations.
4363         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4364         uc_bidi_category_byname.
4365         (uc_bidi_category_byname): New function.
4366         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4367         u_bidi_category_name.
4368         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4369         (uc_bidi_category_name): New function.
4370         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4371         uc_bidi_category.
4372         (uc_bidi_category): New function.
4373         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4374         uc_is_bidi_category. Invoke uc_bidi_class.
4375         (uc_is_bidi_category): New function.
4376         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4377         instead of uc_bidi_category_byname.
4378         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4379         instead of uc_bidi_category_name.
4380         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4381         uc_bidi_category.
4382         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4383         instead of uc_is_bidi_category.
4384
4385 2011-03-21  Bruno Haible  <bruno@clisp.org>
4386
4387         New module 'unictype/joininggroup-all'.
4388         * modules/unictype/joininggroup-all: New file.
4389
4390         Tests for module 'unictype/joininggroup-of'.
4391         * modules/unictype/joininggroup-of-tests: New file.
4392         * tests/unictype/test-joininggroup_of.c: New file.
4393         * tests/unictype/test-joininggroup_of.h: New file, automatically
4394         generated by gen-uni-tables.
4395
4396         New module 'unictype/joininggroup-of'.
4397         * modules/unictype/joininggroup-of: New file.
4398         * lib/unictype/joininggroup_of.c: New file.
4399         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4400         gen-uni-tables.
4401
4402         Tests for module 'unictype/joininggroup-byname'.
4403         * modules/unictype/joininggroup-byname-tests: New file.
4404         * tests/unictype/test-joininggroup_byname.c: New file.
4405
4406         New module 'unictype/joininggroup-byname'.
4407         * modules/unictype/joininggroup-byname: New file.
4408         * lib/unictype/joininggroup_byname.c: New file.
4409         * lib/unictype/joininggroup_byname.gperf: New file.
4410
4411         Tests for module 'unictype/joininggroup-name'.
4412         * modules/unictype/joininggroup-name-tests: New file.
4413         * tests/unictype/test-joininggroup_name.c: New file.
4414
4415         New module 'unictype/joininggroup-name'.
4416         * modules/unictype/joininggroup-name: New file.
4417         * lib/unictype/joininggroup_name.c: New file.
4418         * lib/unictype/joininggroup_name.h: New file.
4419
4420         New module 'unictype/joiningtype-all'.
4421         * modules/unictype/joiningtype-all: New file.
4422
4423         Tests for module 'unictype/joiningtype-of'.
4424         * modules/unictype/joiningtype-of-tests: New file.
4425         * tests/unictype/test-joiningtype_of.c: New file.
4426         * tests/unictype/test-joiningtype_of.h: New file, automatically
4427         generated by gen-uni-tables.
4428
4429         New module 'unictype/joiningtype-of'.
4430         * modules/unictype/joiningtype-of: New file.
4431         * lib/unictype/joiningtype_of.c: New file.
4432         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4433         gen-uni-tables.
4434
4435         Tests for module 'unictype/joiningtype-byname'.
4436         * modules/unictype/joiningtype-byname-tests: New file.
4437         * tests/unictype/test-joiningtype_byname.c: New file.
4438
4439         New module 'unictype/joiningtype-byname'.
4440         * modules/unictype/joiningtype-byname: New file.
4441         * lib/unictype/joiningtype_byname.c: New file.
4442
4443         Tests for module 'unictype/joiningtype-name'.
4444         * modules/unictype/joiningtype-name-tests: New file.
4445         * tests/unictype/test-joiningtype_name.c: New file.
4446
4447         New module 'unictype/joiningtype-name'.
4448         * modules/unictype/joiningtype-name: New file.
4449         * lib/unictype/joiningtype_name.c: New file.
4450
4451         unictype: Add support for Arabic shaping properties.
4452         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4453         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4454         declarations.
4455         (UC_JOINING_GROUP_*): New enumeration values.
4456         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4457         declarations.
4458         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4459         (unicode_joining_type): New variable.
4460         (UC_JOINING_GROUP_*): New enumeration values.
4461         (unicode_joining_group): New variable.
4462         (fill_arabicshaping, joining_type_as_c_identifier,
4463         output_joining_type_test, output_joining_type,
4464         joining_group_as_c_identifier, output_joining_group_test,
4465         output_joining_group): New functions.
4466         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4467         fill_arabicshaping and output_joining_type_test, output_joining_type,
4468         output_joining_group_test, output_joining_group.
4469         Reported by Simon Josefsson.
4470
4471 2011-03-21  Jim Meyering  <meyering@redhat.com>
4472
4473         strftime: fix a bug in yesterday's change
4474         * lib/strftime.c (add): Accommodate width's initial value of -1.
4475         Otherwise, nstrftime would copy uninitialized data into
4476         the result buffer.
4477
4478 2011-03-21  Jim Meyering  <meyering@redhat.com>
4479
4480         tests: add strftime-tests module
4481         * tests/test-strftime.c: New file.
4482         * modules/strftime-tests: New module.
4483
4484 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4485
4486         strftime: don't assume a byte count fits in 'int'
4487         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4488         found this problem by static analysis, using gcc -Wstrict-overflow
4489         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4490         on an integer overflow having undefined behavior, but it turns out
4491         that the argument is a size, which might not fit in 'int' anyway,
4492
4493 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4494
4495         stdio: don't require ignore_value around fwrite
4496
4497         This patch works around libc bug 11959
4498         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4499         Without this patch, applications must often write
4500         ignore_value (fwrite (...)) even though the ignore_value is
4501         not helpful here.  It's common to write many objects, using
4502         fwrite/printf/etc., and then use ferror to detect output error.
4503
4504         I considered making this patch optional, but decided against it,
4505         because libc is obviously being inconsistent here: there is no
4506         reason libc should insist that user code must inspect fwrite
4507         return's value without also insisting that it inspect printf's,
4508         putchar's, etc.  If user code wants to have a strict style where
4509         all these functions' values are checked (so that ferror need not
4510         be checked), we could add support for that style in a new gnulib
4511         module, but in the meantime it's better to be consistent and to
4512         support common usage.
4513
4514         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4515         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4516         that we are compiling in checking mode, and if not C++, and
4517         if not already wrapping fwrite for some other reason.
4518         (fwrite): #define to rpl_fwrite if the latter is defined.
4519
4520 2011-03-20  Bruno Haible  <bruno@clisp.org>
4521
4522         verror: Fix compilation error introduced on 2011-02-13.
4523         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4524         instead of __attribute__.
4525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4526
4527 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4528             Bruno Haible  <bruno@clisp.org>
4529
4530         socklen: do not depend on sys_socket
4531         While trying to modify Emacs to use gnulib's socklen module,
4532         I discovered a circular dependency: socklen depends on sys_socket
4533         and vice versa.  Emacs can use socklen, but it does not need
4534         sys_socket because it has its own substitute for sys/socket.h.
4535         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4536         gl_TYPE_SOCKLEN_T.
4537         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4538         gl_PREREQ_SYS_H_SOCKET.
4539         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4540         gl_PREREQ_SYS_H_SOCKET.
4541         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4542         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4543         * modules/socklen (Depends-on): Do not depend on sys_socket.
4544         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4545
4546 2011-03-20  Jim Meyering  <meyering@redhat.com>
4547
4548         maint.mk: sort file names *after* new transformation
4549         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4550         prefix would have led to an unwarranted failure in GNU parted.
4551         Sort after that transformation.
4552
4553 2011-03-19  Jim Meyering  <meyering@redhat.com>
4554
4555         maint.mk: fix po-file syntax-check rule
4556         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4557         Patch by Bruno Haible.
4558
4559 2011-03-19  Bruno Haible  <bruno@clisp.org>
4560
4561         socklen: Update comment.
4562         * m4/socklen.m4: Update comment about platforms.
4563
4564 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4565             Bruno Haible  <bruno@clisp.org>
4566
4567         inet_ntop, inet_pton: Simplify.
4568         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4569         documented to provide socklen_t and we already depend on sys_socket.
4570         * modules/inet_pton (Depends-on): Likewise.
4571         * lib/arpa_inet.in.h: Adjust comment.
4572
4573 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4574             Bruno Haible  <bruno@clisp.org>
4575
4576         netdb: Simplify.
4577         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4578         documented to provide socklen_t and we already depend on sys_socket.
4579         * lib/netdb.in.h: Adjust comment.
4580
4581 2011-03-19  Bruno Haible  <bruno@clisp.org>
4582
4583         sys_socket, netdb: Document problem with socklen_t.
4584         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4585         platforms.
4586         * doc/posix-headers/netdb.texi: Likewise.
4587
4588 2011-03-18  Eric Blake  <eblake@redhat.com>
4589
4590         maint.mk: let po check work in VPATH build
4591         * top/maint.mk (po_file): Allow cfg.mk override.
4592         (sc_po_check): Allow VPATH use.
4593         Reported by Jiri Denemark.
4594
4595 2011-03-16  Jim Meyering  <meyering@redhat.com>
4596
4597         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4598         Before, you would have had to create one .x-sc_ file per rule in order
4599         to exempt offending files.  Now, you may instead use a Make variable --
4600         usually defined in cfg.mk -- whose name identifies the affected rule.
4601         * top/maint.mk (_sc_excl): Define.
4602         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4603         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4604
4605 2011-03-13  Bruno Haible  <bruno@clisp.org>
4606
4607         ignore-value tests: Avoid warnings.
4608         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4609         empty for gcc < 3.4.
4610
4611 2011-03-13  Bruno Haible  <bruno@clisp.org>
4612
4613         passfd: Fix link error on Solaris.
4614         * modules/passfd (Description): Correct.
4615         (Depends-on): Add socketlib.
4616         (Link): New section.
4617         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4618
4619 2011-03-13  Bruno Haible  <bruno@clisp.org>
4620
4621         passfd: Fix link error on AIX 5.2.
4622         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4623
4624 2011-03-13  Bruno Haible  <bruno@clisp.org>
4625
4626         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4627         * lib/sys_socket.in.h: Include <stddef.h>.
4628         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4629         CMSG_FIRSTHDR. Remove unused variable.
4630
4631 2011-03-13  Bruno Haible  <bruno@clisp.org>
4632
4633         passfd: Fix compilation error on OpenBSD.
4634         * lib/passfd.c: Include <sys/uio.h>.
4635
4636 2011-03-13  Bruno Haible  <bruno@clisp.org>
4637
4638         passfd test: Fix warnings.
4639         * tests/test-passfd.c: Include <sys/wait.h>.
4640         (main): Fix typo.
4641
4642 2011-03-13  Bruno Haible  <bruno@clisp.org>
4643
4644         passfd module, part 4, tweaks.
4645         * tests/test-passfd.c: Reorder includes.
4646         (main): Fix perror and printf calls.
4647
4648 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4649
4650         passfd module, part 4.
4651         * modules/passfd-tests: New file.
4652         * tests/test-passfd.c: New file.
4653
4654 2011-03-13  Jim Meyering  <meyering@redhat.com>
4655
4656         Makefile: rely on GNU make; derive syntax-check rule names
4657         Rather than requiring that each sc_ rule be listed as a dependent
4658         of "check", use features of GNU make to derive the list.
4659         * Makefile (syntax-check-rules): Define.
4660         (check): Depend on the new variable, not the hard-coded list.
4661
4662 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4663             Bruno Haible  <bruno@clisp.org>
4664
4665         passfd module, part 3.
4666         * lib/passfd.h (recvfd): Add a flags argument.
4667         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4668         (recvfd): Add a flags argument.
4669         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4670         exists.
4671         * modules/passfd (Depends-on): Add cloexec.
4672         Suggested by Eric Blake.
4673
4674 2011-03-13  Bruno Haible  <bruno@clisp.org>
4675
4676         passfd module, part 2, tweaks.
4677         * modules/passfd (Files): Reorder.
4678         (Depends-on): Remove errno.
4679         (Include): Remove <sys/socket.h>, <sys/un.h>.
4680         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4681         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4682         specification header. Include <sys/socket.h> always. Don't include
4683         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4684         (sendfd): Clarify that it sets errno when it fails.
4685         (recvfd): Fix specification.
4686
4687 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4688
4689         passfd module, part 2.
4690         * modules/passfd: New file.
4691         * lib/passfd.h: New file.
4692         * lib/passfd.c: New file.
4693
4694 2011-03-12  Bruno Haible  <bruno@clisp.org>
4695
4696         wcswidth, mbswidth: Avoid integer overflow.
4697         * lib/wcswidth.c: Include <limits.h>.
4698         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4699         * lib/mbswidth.c: Include <limits.h>.
4700         (mbsnwidth): Avoid 'int' overflow.
4701         Reported by Jim Meyering.
4702
4703 2011-03-12  Bruno Haible  <bruno@clisp.org>
4704
4705         futimens, utimensat: Avoid endless recursion on Solaris 10.
4706         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4707         Solaris.
4708         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4709         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4710
4711 2011-03-11  Jim Meyering  <meyering@redhat.com>
4712
4713         maint.mk: relax a regexp to accommodate other formatting styles
4714         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4715         between "ngettext" and the following "(".
4716
4717 2011-03-11  Pádraig Brady <P@draigBrady.com>
4718
4719         maint.mk: suppress a false positive warning
4720         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4721         diagnostics are marked with ngettext.
4722
4723 2011-03-10  Eric Blake  <eblake@redhat.com>
4724
4725         wchar: add explicit dependencies, for Tru64
4726         * modules/mbmemcasecoll (Depends-on): Add wchar.
4727         * modules/mbtowc (Depends-on): Likewise.
4728         * modules/vasnprintf (Depends-on): Likewise.
4729         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4730         * modules/wctomb (Depends-on): Likewise.
4731         Reported by Peter O'Gorman.
4732
4733 2011-03-08  Bruno Haible  <bruno@clisp.org>
4734
4735         passfd module, part 1, tweaks.
4736         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4737         Improve indentation. Improve AC_MSG_CHECKING messages.
4738         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4739         gl_SOCKET_FAMILIES.
4740
4741 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4742
4743         passfd module, part 1.
4744         * m4/afunix.m4: New file.
4745         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4746         sockets.
4747
4748 2011-03-08  Bruno Haible  <bruno@clisp.org>
4749
4750         regex-quote: New API.
4751         * lib/regex-quote.h: Include <stdbool.h>.
4752         (struct regex_quote_spec): New type.
4753         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4754         New declarations.
4755         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4756         'const struct regex_quote_spec *' argument.
4757         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4758         (pcre_special): New constant.
4759         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4760         New functions.
4761         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4762         'const struct regex_quote_spec *' argument.
4763         * modules/regex-quote (Depends-on): Add stdbool.
4764         * tests/test-regex-quote.c (check): Update for new API. Add test for
4765         anchored results.
4766         * NEWS: Mention the API change.
4767         Reported by Reuben Thomas and Eric Blake.
4768
4769 2011-03-06  Bruno Haible  <bruno@clisp.org>
4770
4771         regex-quote: Fix creation of POSIX extended regular expressions.
4772         * lib/regex-quote.c (ere_special): Add grouping and alternation
4773         operators.
4774
4775 2011-03-05  Bruno Haible  <bruno@clisp.org>
4776
4777         doc: Improve doc regarding autopoint vs. gnulib.
4778         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4779         disable autopoint while running autoreconf.
4780         Suggested by Ralf Wildenhues.
4781
4782 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4783
4784         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4785         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4786
4787 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4788
4789         parse-duration: remove xalloc.h dependency
4790         * lib/parse-duration.c (parse_period): handle NULL return from
4791         strdup instead of calling xstrdup().
4792         * modules/parse-duration: remove "xalloc" dependency
4793
4794 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4795
4796         bootstrap: honor m4_base when running aclocal
4797         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4798
4799 2011-03-02  Jim Meyering  <meyering@redhat.com>
4800
4801         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4802         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4803         on request from Matt Booth.
4804
4805 2011-03-01  Eric Blake  <eblake@redhat.com>
4806
4807         test-link: work on Hurd
4808         * tests/test-link.h (test_link): Hurd rejects linking directories
4809         with EISDIR instead of the POSIX-mandated EPERM.
4810
4811 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4812
4813         stdio: simplify by moving files to printf-posix, sigpipe
4814         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4815         since this symbol is needed only if printf is replaced.
4816         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4817         Require gl_ASM_SYMBOL_PREFIX.
4818         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4819         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4820         (Depends-on): Add 'raise'.
4821         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4822         * modules/stdio (Files): Remove lib/stdio-write.c,
4823         m4/asm-underscore.m4.
4824         (Depends-on): Remove 'raise'.
4825
4826         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4827         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4828         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4829         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4830
4831 2011-02-28  Bruno Haible  <bruno@clisp.org>
4832
4833         localcharset: Assume ANSI C behaviour of free().
4834         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4835         calling free().
4836         Suggested by Simon Josefsson <simon@josefsson.org>.
4837
4838 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4839             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4840             Bruno Haible  <bruno@clisp.org>  (tiny change)
4841
4842         On Cygwin, use /proc file system instead of win32 API.
4843         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4844         Win32 file names.
4845         (DllMain): Simplify by removing Cygwin specific code.
4846         (find_shared_library_fullname): Use Linux specific implementation also
4847         for Cygwin.
4848         (get_shared_library_fullname): Update accordingly.
4849         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4850         Win32 file names.
4851         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4852         Cygwin specific code.
4853
4854 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4855             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4856
4857         Fix OpenMP flag detection for various Fortran compilers.
4858         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4859         OpenMP-conditional compilation construct, to force compile
4860         failure with missing OpenMP flag.
4861         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4862
4863 2011-02-25  Eric Blake  <eblake@redhat.com>
4864
4865         strstr: expand test coverage
4866         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4867         compilation.
4868         * tests/test-memmem.c (main): Duplicate tests.
4869         * tests/test-strcasestr.c (main): Likewise.
4870         * tests/test-c-strcasestr.c (main): Likewise.
4871
4872 2011-02-25  Jim Meyering  <meyering@redhat.com>
4873
4874         maint.mk: detect missing-NL-at-EOF, too
4875         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4876         it also detects when a file lacks a newline at EOF.
4877         (require_exactly_one_NL_at_EOF_): Renamed from
4878         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4879         since people may well have .x-sc_... file names tied to the
4880         existing name.  Suggested by Eric Blake.
4881
4882 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4883
4884         dirname: move m4/dos.m4 functionality into lib/dosname.h
4885
4886         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4887         extracts symbols from it, puts them into config.h; but it's much
4888         easier to use the symbols directly.  filename.h already does this,
4889         but it disagrees with dos.m4 in some respects.  This patch
4890         introduces a different include file dosname.h that packages up
4891         dos.m4, and then later we can work on merging filename.h and
4892         dosname.h.  Applications that need only the easy-to-configure
4893         symbols should consider including dosname.h rather than dirname.h.
4894         * NEWS: Mention incompatible changes.
4895         * m4/dos.m4: Remove.
4896         * lib/dosname.h, modules/dosname: New files.
4897         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4898         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4899         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4900         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4901         Include dosname.h, not dirname.h.
4902         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4903         Include dosname.h, for definitions of symbols like ISSLASH
4904         that used to be in config.h.
4905         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4906         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4907         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4908         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4909         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4910         * modules/rmdir (Files): Likewise.
4911         * modules/stat (Files): Likewise.
4912         * modules/unlink (Files): Likewise.
4913         * modules/dirname-lgpl (Depends-on): Add dosname.
4914         * modules/lstat (Depends-on): Likewise.
4915         * modules/openat (Depends-on): Likewise.
4916         * modules/rmdir (Depends-on): Likewise.
4917         * modules/savewd (Depends-on): Likewise.
4918         * modules/stat (Depends-on): Likewise.
4919         * modules/unlink (Depends-on): Likewise.
4920         * modules/openat (Depends-on): Remove dirname-lgpl.
4921         * modules/savewd (Depends-on): Likewise.
4922         * tests/test-dirname.c: Do not use removed symbols like
4923         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4924         the remaining symbols, e.g., ISSLASH ('\\').
4925
4926 2011-02-25  Eric Blake  <eblake@redhat.com>
4927
4928         strstr: revert patches that introduced bug and pessimization
4929         * lib/str-two-way.h: Add another reference.
4930         (two_way_short_needle, two_way_long_needle): Revert changes from
4931         2011-02-24; they pessimize search speed.
4932         (critical_factorization): Partially revert changes from
4933         2010-06-22; they violate the requirement that the left half of the
4934         needle be smaller than the period of the needle.
4935
4936 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4937
4938         filenamecat: remove unnecessary dependency on dirname-lgpl
4939         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4940         is no direct dependency, just an indirect one via filenamecat-lgpl.
4941
4942         remove: remove unnecessary use of m4/dos.m4
4943         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4944         * modules/remove (FILES): Remove m4/dos.m4.
4945
4946         * lib/openat-proc.c: Don't include dirname.h; not needed.
4947
4948         backupfile: remove unnecessary use of m4/dos.m4
4949         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4950         of its symbols are used by the backupfile code.  backupfile.c does
4951         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4952         for the rare case of programs that want all their backup file
4953         names to live within 8+3 limits, and dos.m4 doesn't address that.
4954         * modules/backupfile (Files): Remove m4/dos.m4.
4955
4956 2011-02-24  Jim Meyering  <meyering@redhat.com>
4957
4958         strstr: fix a bug whereby strstr would mistakenly return NULL
4959         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4960         in period calculation.
4961         (two_way_long_needle): Likewise.
4962         The original problem was reported by Mike Stump in
4963         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4964         Ralf Wildenhues provided the short needle and haystack.
4965         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4966         Add a more involved test to trigger the bug in two_way_long_needle.
4967
4968 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4969
4970         gnulib-tool: remove use of bold display in help screen
4971         * gnulib-tool (func_usage): Do not use bold display anymore in the
4972         help screen.  That was just meant to be a temporary emphasis for a
4973         backward-incompatible change.
4974
4975 2011-02-23  Bruno Haible  <bruno@clisp.org>
4976
4977         Fix misindentation of preprocessor directives.
4978         * lib/argp-namefrob.h: Reindent preprocessor directives.
4979         * lib/getopt_int.h (struct _getopt_data): Likewise.
4980         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4981         * lib/vasnprintf.c (decode_long_double): Likewise.
4982         * tests/test-argmatch.c: Insert blank lines, for clarity.
4983         * tests/test-exclude.c: Likewise.
4984
4985 2011-02-22  Bruno Haible  <bruno@clisp.org>
4986
4987         ioctl: Fix for MacOS X in 64-bit mode.
4988         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4989         value.
4990         Suggested by Eric Blake.
4991         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4992
4993 2011-02-22  Jim Meyering  <meyering@redhat.com>
4994
4995         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4996         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4997         in lib/.
4998
4999 2011-02-22  Eric Blake  <eblake@redhat.com>
5000
5001         maint: avoid any CDPATH issue
5002         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5003
5004         maint: adjust cpp indentation for my modules, as well
5005         * Makefile (sc_cpp_indent_check): Add my name.
5006         * lib/fbufmode.c: Filter through cppi.
5007         * lib/fpurge.c: Likewise.
5008         * lib/freadable.c: Likewise.
5009         * lib/freading.c: Likewise.
5010         * lib/fwritable.c: Likewise.
5011         * lib/fwriting.c: Likewise.
5012         * lib/sigaction.c: Likewise.
5013
5014 2011-02-22  Jim Meyering  <meyering@redhat.com>
5015
5016         maint: adjust cpp indentation to reflect nesting depth
5017         I.e., in a block of code that begins with an unnested "#if",
5018         put one space between the "#" in column 1 and following token.
5019         For example,
5020         -#include <sys/vfs.h>
5021         +# include <sys/vfs.h>
5022         Do this only in .c files that are part of a module I maintain.
5023         * lib/linkat.c: Filter through cppi.
5024         * lib/nanosleep.c: Likewise.
5025         * lib/openat.c: Likewise.
5026         * lib/openat-die.c: Likewise.
5027         * lib/dup3.c: Likewise.
5028         * lib/fchownat.c: Likewise.
5029         * lib/flock.c: Likewise.
5030         * lib/fsync.c: Likewise.
5031         * lib/fts.c: Likewise.
5032         * lib/getpass.c: Likewise.
5033         * lib/gettimeofday.c: Likewise.
5034         * lib/userspec.c: Likewise.
5035         * Makefile (sc_cpp_indent_check): New rule, to check this.
5036
5037 2011-02-22  Bruno Haible  <bruno@clisp.org>
5038
5039         New module 'wctomb'.
5040         * lib/stdlib.in.h (wctomb): New declaration.
5041         * lib/wctomb.c: New file.
5042         * lib/wctomb-impl.h: New file.
5043         * m4/wctomb.m4: New file.
5044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5045         REPLACE_WCTOMB.
5046         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5047         REPLACE_WCTOMB.
5048         * modules/wctomb: New file.
5049         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5050         * doc/posix-functions/wctomb.texi: Mention the new module.
5051         * modules/wctob (Depends-on): Add wctomb.
5052
5053 2011-02-22  Bruno Haible  <bruno@clisp.org>
5054
5055         New module 'mbtowc'.
5056         * lib/stdlib.in.h (mbtowc): New declaration.
5057         * lib/mbtowc.c: New file.
5058         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5059         * m4/mbtowc.m4: New file.
5060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5061         REPLACE_MBTOWC.
5062         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5063         REPLACE_MBTOWC.
5064         * modules/mbtowc: New file.
5065         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5066         * doc/posix-functions/mbtowc.texi: Mention the new module.
5067         * modules/btowc (Depends-on): Add mbtowc.
5068
5069 2011-02-22  Bruno Haible  <bruno@clisp.org>
5070
5071         wcrtomb: Add more tests for native Windows platforms.
5072         * tests/test-wcrtomb-w32-1.sh: New file.
5073         * tests/test-wcrtomb-w32-2.sh: New file.
5074         * tests/test-wcrtomb-w32-3.sh: New file.
5075         * tests/test-wcrtomb-w32-4.sh: New file.
5076         * tests/test-wcrtomb-w32-5.sh: New file.
5077         * tests/test-wcrtomb-w32.c: New file.
5078         * modules/wcrtomb-tests (Files): Add them.
5079         (Makefile.am): Arrange to run these tests.
5080         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5081         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5082
5083 2011-02-20  Bruno Haible  <bruno@clisp.org>
5084
5085         wcrtomb: Enhance test.
5086         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5087
5088 2011-02-20  Bruno Haible  <bruno@clisp.org>
5089
5090         mbrtowc: Tiny optimization.
5091         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5092
5093 2011-02-20  Jim Meyering  <meyering@redhat.com>
5094
5095         test-exclude.c: remove unmatched #endif
5096         * tests/test-exclude.c: Remove stray #endif, left over from
5097         the change of a week ago.
5098
5099 2011-02-19  Jim Meyering  <meyering@redhat.com>
5100
5101         git-version-gen: skip "-dirty" check when appropriate
5102         * build-aux/git-version-gen: Don't run any git commands when the
5103         version string comes from .tarball-version.  Prior to this, we
5104         would run git update-index --refresh even from a just-unpacked
5105         tarball directory, and that could affect a .git/ directory in a
5106         parent of the build directory.  Reported by Mike Frysinger.
5107
5108 2011-02-19  Bruno Haible  <bruno@clisp.org>
5109
5110         unictype/property-byname: Reduce the size of the 'data' segment.
5111         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5112
5113 2011-02-19  Bruno Haible  <bruno@clisp.org>
5114
5115         unictype/scripts: Reduce the size of the 'data' segment.
5116         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5117         '%pic'.
5118         * lib/unictype/scripts_byname.gperf: Regenerated.
5119
5120 2011-02-19  Bruno Haible  <bruno@clisp.org>
5121
5122         stdint: Update documentation.
5123         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5124
5125 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5126
5127         stdint: omit redundant check for wchar.h
5128         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5129         always tests whether wchar.h exists, so remove the now-redundant test.
5130
5131 2011-02-18  Bruno Haible  <bruno@clisp.org>
5132
5133         stdint: Cut dependency to module 'wchar'.
5134         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5135         include the necessary prerequisites.
5136         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5137         * modules/stdint (Depends-on): Remove wchar.
5138         (Makefile.am): Substitute HAVE_WCHAR_H.
5139         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5140
5141 2011-02-18  Eric Blake  <eblake@redhat.com>
5142
5143         longlong: skip, rather than fail, on cross-compilation
5144         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5145         when cross-compiling; regression from 2011-02-16.
5146
5147 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5148
5149         * NEWS: Mention 2011-02-08 change to stdlib.
5150
5151 2011-02-17  Bruno Haible  <bruno@clisp.org>
5152
5153         getloadavg: Add comments about platforms.
5154         * m4/getloadavg.m4: Add comment.
5155         * lib/getloadavg.c: Likewise.
5156
5157 2011-02-17  Bruno Haible  <bruno@clisp.org>
5158
5159         getloadavg: Fix link error on Solaris 2.6.
5160         * modules/getloadavg (Link): New section.
5161         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5162         linking test-getloadavg.
5163         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5164         getloadavg.
5165
5166 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5167
5168         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5169         It was 'int', but this doesn't match the IRIX 6.5 manual.
5170         Suggested by Bruno Haible in
5171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5172
5173 2011-02-17  Bruno Haible  <bruno@clisp.org>
5174
5175         havelib: Fix comments.
5176         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5177         change.
5178
5179 2011-02-17  Bruno Haible  <bruno@clisp.org>
5180
5181         havelib: Update config.rpath.
5182         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5183
5184 2011-02-17  Bruno Haible  <bruno@clisp.org>
5185
5186         getloadavg test: Add some plausibility checks.
5187         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5188         is improbable.
5189
5190 2011-02-16  Eric Blake  <eblake@redhat.com>
5191
5192         maintainer-makefile: make syntax-check a no-op from tarballs
5193         * top/maint.mk (no-vc-detected): New rule.
5194         (local-checks-available): Use it to avoid hanging if someone tries
5195         'make syntax-check' from a tarball.  Also append to any non-syntax
5196         checks already defined in cfg.mk.
5197
5198 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5199
5200         longlong: tune, particularly for common case of c99
5201
5202         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5203         or running anything if c99, or if unsigned long long int does not
5204         work.  In either case, we know the answer without further tests.
5205         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5206         it at most once, and use its results for both long long int and
5207         unsigned long long int.  This is more likely to be efficient in
5208         the common case where the program wants to check for both long
5209         long int and unsigned long long int.
5210         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5211         since the answer is already known.
5212
5213 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5214
5215         getloadavg: set errno
5216         * lib/getloadavg.c: Set errno when returning -1.  If no other
5217         error number looks appropriate, set it to ENOSYS if the getloadavg
5218         looks like it can't possibly ever work, ENOTSUP otherwise.
5219         Suggested by Bruno Haible in
5220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5221
5222         getloadavg: trim unused parts and speed up 'configure'
5223         * NEWS: Document this.
5224         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5225         always compiled if getloadavg is absent.
5226         Move test code to ...
5227         * tests/test-getloadavg.c: New file, containing previous
5228         contents of test from lib/getloadavg.c.  It also contains
5229         suggestions by Bruno Haible in
5230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5231         * modules/getloadavg-tests: New file.
5232         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5233         Do tests in the same order as they're needed for getloadavg.c.
5234         Omit setgid-related tests that generate symbols KMEM_GROUP,
5235         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5236         Do only the tests that are needed to see whether the system has
5237         getloadavg, moving the other tests into ...
5238         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5239         NLIST_NAME_UNION; nobody should be using it.  Do not define
5240         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5241         relevant, as the user of this module shouldn't care how getloadavg
5242         is implemented.
5243
5244         getloadavg: omit unused var
5245         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5246
5247 2011-02-15  Jim Meyering  <meyering@redhat.com>
5248
5249         doc: update users.txt
5250         * users.txt: Update iwhd's URL.
5251
5252 2011-02-13  Bruno Haible  <bruno@clisp.org>
5253
5254         Consistent macro naming for macros that use GCC __attribute__.
5255         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5256         _ATTRIBUTE_NONNULL_.
5257         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5258         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5259         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5260         ATTRIBUTE_DEPRECATED.
5261         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5262         ATTRIBUTE_NORETURN.
5263         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5264         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5265         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5266         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5267         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5268         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5269         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5270         ATTRIBUTE_SENTINEL.
5271         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5272         ATTRIBUTE_RETURN_CHECK.
5273         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5274         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5275         ATTRIBUTE_NORETURN.
5276         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5277         Reported by Paul Eggert.
5278
5279 2011-02-13  Bruno Haible  <bruno@clisp.org>
5280
5281         Don't interfere with a program's definition of __attribute__.
5282         * lib/argp.h (__attribute__): Remove definition.
5283         (_GL_ATTRIBUTE_FORMAT): New macro.
5284         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5285         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5286         (_GL_ATTRIBUTE_FORMAT): New macro.
5287         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5288         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5289         GCC 3 or newer.
5290         * lib/error.h (__attribute__): Remove definition.
5291         (_GL_ATTRIBUTE_FORMAT): New macro.
5292         (error, error_at_line): Use it.
5293         * lib/hash.h (__attribute__): Remove definition.
5294         (ATTRIBUTE_WUR): Update definition. Define always.
5295         * lib/openat.h (__attribute__): Remove definition.
5296         (ATTRIBUTE_NORETURN): Update definition. Define always.
5297         * lib/sigpipe-die.h (__attribute__): Remove definition.
5298         (ATTRIBUTE_NORETURN): Update definition. Define always.
5299         * lib/vasnprintf.h (__attribute__): Remove definition.
5300         (_GL_ATTRIBUTE_FORMAT): New macro.
5301         (asnprintf, vasnprintf): Use it.
5302         * lib/xalloc.h (__attribute__): Remove definition.
5303         (ATTRIBUTE_NORETURN): Update definition. Define always.
5304         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5305         * lib/xmemdup0.h (__attribute__): Remove definition.
5306         (ATTRIBUTE_NORETURN): Update definition. Define always.
5307         * lib/xprintf.h (__attribute__): Remove definition.
5308         (_GL_ATTRIBUTE_FORMAT): New macro.
5309         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5310         * lib/xstrtol.h (__attribute__): Remove definition.
5311         (ATTRIBUTE_NORETURN): Update definition. Define always.
5312         * lib/xvasprintf.h (__attribute__): Remove definition.
5313         (_GL_ATTRIBUTE_FORMAT): New macro.
5314         (xasprintf, xvasprintf): Use it.
5315         * tests/test-argmatch.c (__attribute__): Remove definition.
5316         (ATTRIBUTE_NORETURN): Update definition. Define always.
5317         * tests/test-exclude.c (__attribute__): Remove definition.
5318         (ATTRIBUTE_NORETURN): Update definition. Define always.
5319         Reported by Paul Eggert.
5320
5321 2011-02-13  Bruno Haible  <bruno@clisp.org>
5322
5323         mbrtowc: Add more tests for native Windows platforms.
5324         * tests/test-mbrtowc-w32-1.sh: New file.
5325         * tests/test-mbrtowc-w32-2.sh: New file.
5326         * tests/test-mbrtowc-w32-3.sh: New file.
5327         * tests/test-mbrtowc-w32-4.sh: New file.
5328         * tests/test-mbrtowc-w32-5.sh: New file.
5329         * tests/test-mbrtowc-w32.c: New file.
5330         * modules/mbrtowc-tests (Files): Add them.
5331         (Makefile.am): Arrange to run these tests.
5332         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5333         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5334
5335 2011-02-13  Bruno Haible  <bruno@clisp.org>
5336
5337         mbrtowc: Work around native Windows bug.
5338         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5339         guess when no suitable locale for testing was found.
5340         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5341
5342 2011-02-13  Bruno Haible  <bruno@clisp.org>
5343
5344         mbsinit: Work around mingw bug.
5345         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5346         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5347         Windows.
5348         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5349
5350 2011-02-13  Bruno Haible  <bruno@clisp.org>
5351
5352         mbsinit: Don't crash for a NULL argument.
5353         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5354         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5355
5356 2011-02-13  Bruno Haible  <bruno@clisp.org>
5357
5358         Don't interfere with a program's definition of __attribute__.
5359         * lib/stdio.in.h (__attribute__): Remove definition.
5360         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5361         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5362         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5363         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5364         * lib/string.in.h (__attribute__): Remove definition.
5365         Reported by Paul Eggert.
5366
5367 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5368
5369         stdlib: don't get in the way of non-GCC __attribute__
5370         See thread starting at
5371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5372         Revert previous stdlib change, installing the following instead:
5373         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5374         to get in the way of a non-GCC compiler that supports __attribute__.
5375         (_GL_ATTRIBUTE_RETURN): New macro.
5376         (_Exit): Use it instead of __attribute__.
5377
5378 2011-02-12  Bruno Haible  <bruno@clisp.org>
5379
5380         quotearg test: Avoid test failure on mingw.
5381         * tests/test-quotearg.sh: Convert the locale identifier from native
5382         Windows syntax to Unix syntax.
5383
5384 2011-02-12  Bruno Haible  <bruno@clisp.org>
5385
5386         setlocale: Prefer gnulib's override over libintl's override.
5387         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5388         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5389         GNULIB_defined_setlocale is set.
5390
5391 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5392
5393         stdlib: support non-GCC __attribute__
5394
5395         Fix a serious and tricky problem encountered when attempting to
5396         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5397         5.5, but it crashed due to memory corruption on Solaris 10 with
5398         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5399         bits that are otherwise zero.  This tagging is optional inside
5400         Emacs but is preferred and is used when __attribute__ ((__aligned
5401         (8))) works, as it does with both recent-enough GCC and with Sun C
5402         5.11.  However, Sun C 5.11 is not GCC and does not #define
5403         __GNUC__ and __GNUC_MINOR__.
5404
5405         When I added the getloadavg module to Emacs, it brought in
5406         stdlib.in.h, which contained this fragment:
5407
5408            #ifndef __attribute__
5409            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5410            #  define __attribute__(Spec)   /* empty */
5411            # endif
5412            #endif
5413
5414         When files that include <stdlib.h> were compiled with Sun C 5.11,
5415         the above code disabled __attribute__ ((__aligned (8))), which
5416         caused variables to not be properly aligned, which eventually led
5417         to the pointer corruption mentioned above.  (This was a bit hard
5418         to diagnose, unfortunately.)
5419
5420         Several "#define __attribute__(X) /* empty */" code snippets need
5421         to be eradicated from Gnulib to work with non-GCC compilers that
5422         support __attribute__.  The Autoconf way to do this is to test for
5423         each kind of attribute that we want support for, and selectively
5424         enable that in source code.
5425
5426         Fix this problem just for stdlib.h, by adding a test for the
5427         __noreturn__ attribute, and change stdlib.in.h to use that test
5428         when needed.  This technique can be easily generalized to the
5429         other *.in.h files and attributes, and a similar technique can be
5430         used for *.h and *.c files.  This patch is enough to solve the
5431         problem for Emacs + getloadavg, and I thought I'd publish it for
5432         feedback before undertaking further, similar fixes in other
5433         modules.
5434
5435         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5436         because it's not needed for stdlib.h.  It merely substitutes the
5437         value directly into stdlib.h.  We may well need to #define it, or
5438         similar symbols, for other modules, but it's nice to also have an
5439         option to not #define it for applications like Emacs that do not
5440         need it.
5441
5442         * lib/stdlib.in.h (__attribute__): Do not #define.
5443         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5444         be defined only if the _Exit module is also used.
5445         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5447         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5448         platforms.
5449         * modules/_Exit (Files): Add m4/attribute.m4.
5450         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5451         * m4/attribute.m4: New file.
5452
5453 2011-02-12  Bruno Haible  <bruno@clisp.org>
5454
5455         wcsrtombs: Work around bug on native Windows.
5456         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5457         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5458         instead of len.
5459         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5460
5461 2011-02-12  Bruno Haible  <bruno@clisp.org>
5462
5463         mbsrtowcs: Work around bug on native Windows.
5464         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5465         against mingw bug.
5466         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5467
5468 2011-02-12  Bruno Haible  <bruno@clisp.org>
5469
5470         Avoid setlocale bugs in tests.
5471         * modules/btowc (Dependencies): Add setlocale.
5472         * modules/c-strcase (Dependencies): Likewise.
5473         * modules/mbmemcasecmp (Dependencies): Likewise.
5474         * modules/mbmemcasecoll (Dependencies): Likewise.
5475         * modules/mbrtowc (Dependencies): Likewise.
5476         * modules/mbscasecmp (Dependencies): Likewise.
5477         * modules/mbscasestr (Dependencies): Likewise.
5478         * modules/mbschr (Dependencies): Likewise.
5479         * modules/mbscspn (Dependencies): Likewise.
5480         * modules/mbsinit (Dependencies): Likewise.
5481         * modules/mbsncasecmp (Dependencies): Likewise.
5482         * modules/mbsnrtowcs (Dependencies): Likewise.
5483         * modules/mbspbrk (Dependencies): Likewise.
5484         * modules/mbspcasecmp (Dependencies): Likewise.
5485         * modules/mbsrchr (Dependencies): Likewise.
5486         * modules/mbsrtowcs (Dependencies): Likewise.
5487         * modules/mbsspn (Dependencies): Likewise.
5488         * modules/mbsstr (Dependencies): Likewise.
5489         * modules/nl_langinfo (Dependencies): Likewise.
5490         * modules/quotearg (Dependencies): Likewise.
5491         * modules/unicase/locale-language (Dependencies): Likewise.
5492         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5493         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5494         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5495         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5496         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5497         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5498         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5499         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5500         * modules/vasnprintf-posix (Dependencies): Likewise.
5501         * modules/wcrtomb (Dependencies): Likewise.
5502         * modules/wcsnrtombs (Dependencies): Likewise.
5503         * modules/wcsrtombs (Dependencies): Likewise.
5504
5505 2011-02-12  Bruno Haible  <bruno@clisp.org>
5506
5507         setlocale: Workaround native Windows bug.
5508         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5509         succeeds but sets LC_CTYPE to "C", report a failure.
5510         * tests/test-setlocale2.sh: New file.
5511         * tests/test-setlocale2.c: New file.
5512         * modules/setlocale-tests (Files): Add the new files.
5513         (Makefile.am): Enable test-setlocale2.sh test.
5514         * doc/posix-functions/setlocale.texi: Mention workaround.
5515
5516 2011-02-11  Bruno Haible  <bruno@clisp.org>
5517
5518         Tests for module 'setlocale'.
5519         * modules/setlocale-tests: New file.
5520         * tests/test-setlocale1.sh: New file.
5521         * tests/test-setlocale1.c: New file.
5522
5523         New module 'setlocale'.
5524         * lib/locale.in.h (setlocale): New declaration.
5525         * lib/setlocale.c: New file, based on
5526         gettext/gettext-runtime/intl/setlocale.c.
5527         * m4/setlocale.m4: New file.
5528         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5529         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5530         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5531         REPLACE_SETLOCALE.
5532         * modules/setlocale: New file.
5533         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5534         * doc/posix-functions/setlocale.texi: Mention the new module.
5535
5536 2011-02-11  Bruno Haible  <bruno@clisp.org>
5537
5538         Prepare for locale dependent tests on mingw.
5539         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5540         because it has the wrong locale encoding.
5541         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5542         French_France.1252 instead of "fr".
5543         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5544         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5545         because it has the wrong locale encoding.
5546         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5547         native Windows, try Turkish_Turkey.65001.
5548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5549         Chinese_China.54936.
5550
5551         Prepare for locale dependent tests on mingw.
5552         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5553         differently.
5554         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5555         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5556         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5557         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5558
5559 2011-02-11  Eric Blake  <eblake@redhat.com>
5560
5561         strptime: avoid compiler warnings
5562         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5563         compiler warnings about dead code.
5564         Reported by Daniel P. Berrange.
5565
5566 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5567
5568         doc: update users.txt
5569         * users.txt: Add rcs.
5570
5571 2011-02-10  John W. Eaton  <jwe@gnu.org>
5572
5573         doc: update users.txt
5574         * users.txt: Add octave.
5575
5576 2011-02-10  Jim Meyering  <meyering@redhat.com>
5577
5578         doc: update users.txt
5579         * users.txt: Add iwhd.
5580
5581 2011-02-09  Bruno Haible  <bruno@clisp.org>
5582
5583         gnulib-tool: Make copyright notice adjustment more robust.
5584         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5585         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5586         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5587         License".
5588         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5589
5590 2011-02-06  Bruno Haible  <bruno@clisp.org>
5591
5592         New module 'towctrans'.
5593         * modules/towctrans: New file.
5594         * lib/wctype.in.h (towctrans): New declaration.
5595         * lib/towctrans.c: New file.
5596         * lib/towctrans-impl.h: New file.
5597         * m4/towctrans.m4: New file.
5598         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5599         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5600         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5601         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5602         * doc/posix-functions/towctrans.texi: Mention the new module.
5603
5604 2011-02-06  Bruno Haible  <bruno@clisp.org>
5605
5606         New module 'wctrans'.
5607         * modules/wctrans: New file.
5608         * lib/wctype.in.h (wctrans): New declaration.
5609         * lib/wctrans.c: New file.
5610         * lib/wctrans-impl.h: New file.
5611         * m4/wctrans.m4: New file.
5612         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5613         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5614         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5615         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5616         * doc/posix-functions/wctrans.texi: Mention the new module.
5617
5618 2011-02-06  Bruno Haible  <bruno@clisp.org>
5619
5620         New module 'iswctype'.
5621         * modules/iswctype: New file.
5622         * lib/wctype.in.h (iswctype): New declaration.
5623         * lib/iswctype.c: New file.
5624         * lib/iswctype-impl.h: New file.
5625         * m4/iswctype.m4: New file.
5626         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5627         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5628         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5629         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5630         * doc/posix-functions/iswctype.texi: Mention the new module and the
5631         HP-UX 11.00 problem.
5632
5633 2011-02-06  Bruno Haible  <bruno@clisp.org>
5634
5635         New module 'wctype'.
5636         * modules/wctype: Change to represent the wctype() substitute.
5637         * lib/wctype.in.h (wctype): New declaration.
5638         * lib/wctype.c: New file.
5639         * lib/wctype-impl.h: New file.
5640         * m4/wctype.m4: New file.
5641         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5642         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5643         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5644         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5645         * doc/posix-functions/wctype.texi: Mention the new module and the
5646         HP-UX 11.00 problem.
5647
5648 2011-02-06  Bruno Haible  <bruno@clisp.org>
5649
5650         wctype-h: Ensure wctype_t and wctrans_t are defined.
5651         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5652         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5653         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5654         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5655         HAVE_WCTRANS_T.
5656         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5657
5658 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5659
5660         flock: fix license typo
5661
5662         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5663         omitted.
5664
5665 2011-02-08  Bruno Haible  <bruno@clisp.org>
5666
5667         Split large sed scripts, for HP-UX sed.
5668         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5669         to avoid HP-UX limit of 99 commands, in the near future.
5670         * modules/stdlib (Makefile.am): Likewise.
5671         * modules/unistd (Makefile.am): Likewise.
5672         * modules/wchar (Makefile.am): Likewise.
5673         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5674         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5675         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5676
5677 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5678             Bruno Haible  <bruno@clisp.org>
5679
5680         stdlib: improve random_r modularization
5681         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5682         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5683         you also need the random_r module to get this material right.
5684         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5685         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5686         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5687
5688 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5689
5690         stdlib: don't depend on stdint
5691         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5692         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5693         be independent of whether stdint.h is needed.
5694         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5695         here, instead of ...
5696         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5697         struct random_data should be using the random_r module, not just
5698         the stdlib module (which wouldn't make sense: what package needs
5699         just struct random_data without also needing random_r?).
5700         * modules/stdlib (Depends-on): Remove stdint.
5701
5702         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5703         See the thread rooted at
5704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5705         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5706         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5707         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5708         __VMS)); previously it was always included (via fcntl--.h).
5709         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5710         hand; this is good enough for load averages.  Also, do not use
5711         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5712         flags directly if available and don't bother otherwise.  (Packages
5713         that need the extra reliability should use the modules that define
5714         these flags on older platforms that lack them.)
5715         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5716         fcntl-safer.
5717
5718 2011-02-08  Jim Meyering  <meyering@redhat.com>
5719
5720         di-set.h, ino-map.h: add multiple-inclusion guard
5721         Technically, the guard is required only for ino-map.h, due to its
5722         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5723         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5724         * lib/ino-map.h: Likewise.
5725
5726 2011-02-06  Bruno Haible  <bruno@clisp.org>
5727
5728         iswblank: Ensure declaration on glibc systems.
5729         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5730         * modules/iswblank (Dependencies): Add 'extensions'.
5731         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5732
5733 2011-02-06  Bruno Haible  <bruno@clisp.org>
5734
5735         New module 'iswblank'.
5736         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5737         * modules/iswblank: New file.
5738         * modules/wctype-h (Files): Remove lib/iswblank.c.
5739         (Makefile.am): Substitute GNULIB_ISWBLANK.
5740         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5741         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5742         (gl_WCTYPE_H_DEFAULTS): New macro.
5743         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5744         * modules/iswblank-tests: New file.
5745         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5746         * tests/test-wctype-h.c (main): Remove iswblank tests.
5747         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5748         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5749         of 'wctype-h'.
5750         * NEWS: Mention the change.
5751         * modules/mbchar (Depends-on): Add iswblank.
5752
5753 2011-02-08  Bruno Haible  <bruno@clisp.org>
5754
5755         di-set tests: Refactor.
5756         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5757         unnecessary includes.
5758         (ASSERT): Remove macro.
5759         (main): Make C90 compliant by avoiding variable declaration after
5760         statement.
5761         * modules/di-set-tests (Files): Add tests/macros.h.
5762
5763 2011-02-08  Bruno Haible  <bruno@clisp.org>
5764
5765         ino-map tests: Refactor.
5766         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5767         unnecessary includes.
5768         (ASSERT): Remove macro.
5769         (main): Make C90 compliant by avoiding variable declaration after
5770         statement.
5771         * modules/ino-map-tests (Files): Add tests/macros.h.
5772
5773 2011-02-08  Jim Meyering  <meyering@redhat.com>
5774
5775         di-set: add "const" to a cast
5776         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5777         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5778
5779 2011-02-06  Bruno Haible  <bruno@clisp.org>
5780
5781         Rename module 'wctype' to 'wctype-h'.
5782         * modules/wctype-h: Renamed from modules/wctype.
5783         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5784         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5785         (Files, Depends-on, Makefile.am): Update.
5786         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5787         (Files, Makefile.am): Update.
5788         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5789         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5790         * doc/posix-headers/wctype.texi: Update.
5791         * doc/posix-functions/iswalnum.texi: Update.
5792         * doc/posix-functions/iswalpha.texi: Update.
5793         * doc/posix-functions/iswblank.texi: Update.
5794         * doc/posix-functions/iswcntrl.texi: Update.
5795         * doc/posix-functions/iswdigit.texi: Update.
5796         * doc/posix-functions/iswgraph.texi: Update.
5797         * doc/posix-functions/iswlower.texi: Update.
5798         * doc/posix-functions/iswprint.texi: Update.
5799         * doc/posix-functions/iswpunct.texi: Update.
5800         * doc/posix-functions/iswspace.texi: Update.
5801         * doc/posix-functions/iswupper.texi: Update.
5802         * doc/posix-functions/iswxdigit.texi: Update.
5803         * doc/posix-functions/towlower.texi: Update.
5804         * doc/posix-functions/towupper.texi: Update.
5805         * NEWS: Mention the change.
5806         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5807         * modules/mbchar (Dependencies): Likewise.
5808         * modules/mbswidth (Dependencies): Likewise.
5809         * modules/quotearg (Dependencies): Likewise.
5810         * modules/regex (Dependencies): Likewise.
5811         * modules/wcscasecmp (Dependencies): Likewise.
5812         * modules/wcsncasecmp (Dependencies): Likewise.
5813         * modules/wcwidth (Dependencies): Likewise.
5814
5815 2011-02-06  Bruno Haible  <bruno@clisp.org>
5816
5817         New module 'wcswidth'.
5818         * modules/wcswidth: New file.
5819         * lib/wchar.in.h (wcswidth): New declaration.
5820         * lib/wcswidth.c: New file.
5821         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5822         * m4/wcswidth.m4: New file.
5823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5825         REPLACE_WCSWIDTH.
5826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5827         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5828         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5829         * doc/posix-functions/wcswidth.texi: Mention the new module.
5830
5831 2011-02-06  Bruno Haible  <bruno@clisp.org>
5832
5833         New module 'wcstok'.
5834         * modules/wcstok: New file.
5835         * lib/wchar.in.h (wcstok): New declaration.
5836         * lib/wcstok.c: New file.
5837         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5838         * m4/wcstok.m4: New file.
5839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5842         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5843         * doc/posix-functions/wcstok.texi: Mention the new module.
5844
5845 2011-02-06  Bruno Haible  <bruno@clisp.org>
5846
5847         New module 'wcsstr'.
5848         * modules/wcsstr: New file.
5849         * lib/wchar.in.h (wcsstr): New declaration.
5850         * lib/wcsstr.c: New file.
5851         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5852         * m4/wcsstr.m4: New file.
5853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5856         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5857         * doc/posix-functions/wcsstr.texi: Mention the new module.
5858
5859 2011-02-06  Bruno Haible  <bruno@clisp.org>
5860
5861         New module 'wcspbrk'.
5862         * modules/wcspbrk: New file.
5863         * lib/wchar.in.h (wcspbrk): New declaration.
5864         * lib/wcspbrk.c: New file.
5865         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5866         * m4/wcspbrk.m4: New file.
5867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5870         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5871         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5872
5873 2011-02-06  Bruno Haible  <bruno@clisp.org>
5874
5875         New module 'wcsspn'.
5876         * modules/wcsspn: New file.
5877         * lib/wchar.in.h (wcsspn): New declaration.
5878         * lib/wcsspn.c: New file.
5879         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5880         * m4/wcsspn.m4: New file.
5881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5884         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5885         * doc/posix-functions/wcsspn.texi: Mention the new module.
5886
5887 2011-02-06  Bruno Haible  <bruno@clisp.org>
5888
5889         New module 'wcscspn'.
5890         * modules/wcscspn: New file.
5891         * lib/wchar.in.h (wcscspn): New declaration.
5892         * lib/wcscspn.c: New file.
5893         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5894         * m4/wcscspn.m4: New file.
5895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5898         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5899         * doc/posix-functions/wcscspn.texi: Mention the new module.
5900
5901 2011-02-06  Bruno Haible  <bruno@clisp.org>
5902
5903         New module 'wcsrchr'.
5904         * modules/wcsrchr: New file.
5905         * lib/wchar.in.h (wcsrchr): New declaration.
5906         * lib/wcsrchr.c: New file.
5907         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5908         * m4/wcsrchr.m4: New file.
5909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5912         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5913         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5914
5915 2011-02-06  Bruno Haible  <bruno@clisp.org>
5916
5917         New module 'wcschr'.
5918         * modules/wcschr: New file.
5919         * lib/wchar.in.h (wcschr): New declaration.
5920         * lib/wcschr.c: New file.
5921         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5922         * m4/wcschr.m4: New file.
5923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5926         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5927         * doc/posix-functions/wcschr.texi: Mention the new module.
5928
5929 2011-02-06  Bruno Haible  <bruno@clisp.org>
5930
5931         New module 'wcsdup'.
5932         * modules/wcsdup: New file.
5933         * lib/wchar.in.h (wcsdup): New declaration.
5934         * lib/wcsdup.c: New file.
5935         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5936         * m4/wcsdup.m4: New file.
5937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5940         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5941         * doc/posix-functions/wcsdup.texi: Mention the new module.
5942
5943 2011-02-06  Bruno Haible  <bruno@clisp.org>
5944
5945         New module 'wcsxfrm'.
5946         * modules/wcsxfrm: New file.
5947         * lib/wchar.in.h (wcsxfrm): New declaration.
5948         * lib/wcsxfrm.c: New file.
5949         * lib/wcsxfrm-impl.h: New file.
5950         * m4/wcsxfrm.m4: New file.
5951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5954         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5955         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5956
5957 2011-02-06  Bruno Haible  <bruno@clisp.org>
5958
5959         New module 'wcscoll'.
5960         * modules/wcscoll: New file.
5961         * lib/wchar.in.h (wcscoll): New declaration.
5962         * lib/wcscoll.c: New file.
5963         * lib/wcscoll-impl.h: New file.
5964         * m4/wcscoll.m4: New file.
5965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5968         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5969         * doc/posix-functions/wcscoll.texi: Mention the new module.
5970
5971 2011-02-06  Bruno Haible  <bruno@clisp.org>
5972
5973         New module 'wcsncasecmp'.
5974         * modules/wcsncasecmp: New file.
5975         * lib/wchar.in.h (wcsncasecmp): New declaration.
5976         * lib/wcsncasecmp.c: New file.
5977         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5978         * m4/wcsncasecmp.m4: New file.
5979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5982         HAVE_WCSNCASECMP.
5983         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5984         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5985
5986 2011-02-06  Bruno Haible  <bruno@clisp.org>
5987
5988         New module 'wcscasecmp'.
5989         * modules/wcscasecmp: New file.
5990         * lib/wchar.in.h (wcscasecmp): New declaration.
5991         * lib/wcscasecmp.c: New file.
5992         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5993         * m4/wcscasecmp.m4: New file.
5994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5997         HAVE_WCSCASECMP.
5998         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5999         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6000
6001 2011-02-05  Bruno Haible  <bruno@clisp.org>
6002
6003         New module 'wcsncmp'.
6004         * modules/wcsncmp: New file.
6005         * lib/wchar.in.h (wcsncmp): New declaration.
6006         * lib/wcsncmp.c: New file.
6007         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6008         * m4/wcsncmp.m4: New file.
6009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6012         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6013         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6014
6015 2011-02-05  Bruno Haible  <bruno@clisp.org>
6016
6017         New module 'wcscmp'.
6018         * modules/wcscmp: New file.
6019         * lib/wchar.in.h (wcscmp): New declaration.
6020         * lib/wcscmp.c: New file.
6021         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6022         * m4/wcscmp.m4: New file.
6023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6026         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6027         * doc/posix-functions/wcscmp.texi: Mention the new module.
6028
6029 2011-02-05  Bruno Haible  <bruno@clisp.org>
6030
6031         New module 'wcsncat'.
6032         * modules/wcsncat: New file.
6033         * lib/wchar.in.h (wcsncat): New declaration.
6034         * lib/wcsncat.c: New file.
6035         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6036         * m4/wcsncat.m4: New file.
6037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6040         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6041         * doc/posix-functions/wcsncat.texi: Mention the new module.
6042
6043 2011-02-05  Bruno Haible  <bruno@clisp.org>
6044
6045         New module 'wcscat'.
6046         * modules/wcscat: New file.
6047         * lib/wchar.in.h (wcscat): New declaration.
6048         * lib/wcscat.c: New file.
6049         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6050         * m4/wcscat.m4: New file.
6051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6054         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6055         * doc/posix-functions/wcscat.texi: Mention the new module.
6056
6057 2011-02-05  Bruno Haible  <bruno@clisp.org>
6058
6059         New module 'wcpncpy'.
6060         * modules/wcpncpy: New file.
6061         * lib/wchar.in.h (wcpncpy): New declaration.
6062         * lib/wcpncpy.c: New file.
6063         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6064         * m4/wcpncpy.m4: New file.
6065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6067         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6068         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6069         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6070
6071 2011-02-05  Bruno Haible  <bruno@clisp.org>
6072
6073         New module 'wcsncpy'.
6074         * modules/wcsncpy: New file.
6075         * lib/wchar.in.h (wcsncpy): New declaration.
6076         * lib/wcsncpy.c: New file.
6077         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6078         * m4/wcsncpy.m4: New file.
6079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6082         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6083         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6084
6085 2011-02-05  Bruno Haible  <bruno@clisp.org>
6086
6087         New module 'wcpcpy'.
6088         * modules/wcpcpy: New file.
6089         * lib/wchar.in.h (wcpcpy): New declaration.
6090         * lib/wcpcpy.c: New file.
6091         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6092         * m4/wcpcpy.m4: New file.
6093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6095         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6096         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6097         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6098
6099 2011-02-05  Bruno Haible  <bruno@clisp.org>
6100
6101         New module 'wcscpy'.
6102         * modules/wcscpy: New file.
6103         * lib/wchar.in.h (wcscpy): New declaration.
6104         * lib/wcscpy.c: New file.
6105         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6106         * m4/wcscpy.m4: New file.
6107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6110         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6111         * doc/posix-functions/wcscpy.texi: Mention the new module.
6112
6113 2011-02-05  Bruno Haible  <bruno@clisp.org>
6114
6115         New module 'wcsnlen'.
6116         * modules/wcsnlen: New file.
6117         * lib/wchar.in.h (wcsnlen): New declaration.
6118         * lib/wcsnlen.c: New file.
6119         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6120         * m4/wcsnlen.m4: New file.
6121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6124         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6125         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6126
6127 2011-02-05  Bruno Haible  <bruno@clisp.org>
6128
6129         New module 'wcslen'.
6130         * modules/wcslen: New file.
6131         * lib/wchar.in.h (wcslen): New declaration.
6132         * lib/wcslen.c: New file.
6133         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6134         * m4/wcslen.m4: New file.
6135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6138         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6139         * doc/posix-functions/wcslen.texi: Mention the new module.
6140
6141 2011-02-05  Bruno Haible  <bruno@clisp.org>
6142
6143         New module 'wmemset'.
6144         * modules/wmemset: New file.
6145         * lib/wchar.in.h (wmemset): New declaration.
6146         * lib/wmemset.c: New file.
6147         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6148         * m4/wmemset.m4: New file.
6149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6151         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6152         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6153         * doc/posix-functions/wmemset.texi: Mention the new module.
6154
6155 2011-02-05  Bruno Haible  <bruno@clisp.org>
6156
6157         New module 'wmemmove'.
6158         * modules/wmemmove: New file.
6159         * lib/wchar.in.h (wmemmove): New declaration.
6160         * lib/wmemmove.c: New file.
6161         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6162         * m4/wmemmove.m4: New file.
6163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6165         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6166         HAVE_WMEMMOVE.
6167         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6168         * doc/posix-functions/wmemmove.texi: Mention the new module.
6169
6170 2011-02-05  Bruno Haible  <bruno@clisp.org>
6171
6172         New module 'wmemcpy'.
6173         * modules/wmemcpy: New file.
6174         * lib/wchar.in.h (wmemcpy): New declaration.
6175         * lib/wmemcpy.c: New file.
6176         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6177         * m4/wmemcpy.m4: New file.
6178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6180         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6181         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6182         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6183
6184 2011-02-05  Bruno Haible  <bruno@clisp.org>
6185
6186         New module 'wmemcmp'.
6187         * modules/wmemcmp: New file.
6188         * lib/wchar.in.h (wmemcmp): New declaration.
6189         * lib/wmemcmp.c: New file.
6190         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6191         * m4/wmemcmp.m4: New file.
6192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6194         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6195         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6196         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6197
6198 2011-02-07  Jim Meyering  <meyering@redhat.com>
6199
6200         di-set, ino-map: new modules, from coreutils
6201         * lib/di-set.c: New file.
6202         * lib/di-set.h: Likewise.
6203         * lib/ino-map.c: Likewise.
6204         * lib/ino-map.h: Likewise.
6205         * modules/di-set: Likewise.
6206         * modules/di-set-tests: Likewise.
6207         * modules/ino-map: Likewise.
6208         * modules/ino-map-tests: Likewise.
6209         * tests/test-di-set.c: Likewise.
6210         * tests/test-ino-map.c: Likewise.
6211
6212 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6213
6214         getloadavg: merge minor changes from Emacs
6215
6216         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6217         (getloadavg): Use memset, not bzero.
6218
6219         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6220         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6221         clash (bug#86).
6222
6223 2010-11-14  Bruno Haible  <bruno@clisp.org>
6224
6225         Allow multiple gnulib generated replacements to coexist.
6226         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6227         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6228         * lib/langinfo.in.h (nl_item): Likewise.
6229         * lib/math.in.h (_NaN, NAN): Likewise.
6230         * lib/netdb.in.h (struct addrinfo): Likewise.
6231         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6232         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6233         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6234         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6235         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6236         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6237         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6238         pthread_mutexattr_init, pthread_mutexattr_settype,
6239         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6240         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6241         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6242         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6243         * lib/sched.in.h (struct sched_param): Likewise.
6244         * lib/se-selinux.in.h (security_class_t, security_context_t,
6245         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6246         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6247         lsetfilecon, fsetfilecon, security_check_context,
6248         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6249         Likewise.
6250         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6251         Likewise.
6252         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6253         _gl_function_taking_int_returning_void_t, union sigval,
6254         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6255         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6256         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6257         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6258         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6259         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6260         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6261         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6262         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6263         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6264         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6265         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6266         socklen_t, rpl_fd_isset): Likewise.
6267         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6268         * lib/sys_time.in.h (struct timeval): Likewise.
6269         * lib/sys_times.in.h (struct tms): Likewise.
6270         * lib/sys_utsname.in.h (struct utsname):
6271         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6272         * lib/unistd.in.h (getpagesize): Likewise.
6273         * lib/wchar.in.h (mbstate_t): Likewise.
6274         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6275         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6276         towlower, towupper): Likewise.
6277         Reported by Sam Steingold <sds@gnu.org>.
6278
6279 2011-02-05  Eric Blake  <eblake@redhat.com>
6280
6281         unsetenv: work around Haiku issues
6282         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6283         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6284
6285 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6286
6287         libposix: avoid calling error() within libposix
6288         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6289         is defined.
6290
6291 2011-02-05  Eric Blake  <eblake@redhat.com>
6292
6293         strerror_r-posix: port to cygwin
6294         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6295         implementation.
6296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6297         * tests/test-strerror_r.c (main): Fix test.
6298         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6299         issue.
6300
6301 2011-02-05  Bruno Haible  <bruno@clisp.org>
6302
6303         New module 'wmemchr'.
6304         * modules/wmemchr: New file.
6305         * lib/wchar.in.h (wmemchr): New declaration.
6306         * lib/wmemchr.c: New file.
6307         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6308         * m4/wmemchr.m4: New file.
6309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6311         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6312         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6313         * doc/posix-functions/wmemchr.texi: Mention the new module.
6314
6315 2011-02-04  Eric Blake  <eblake@redhat.com>
6316
6317         fdopendir: detect FreeBSD bug
6318         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6319         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6320
6321 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6322
6323         stdbool: do not define HAVE_STDBOOL_H
6324         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6325         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6326         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6327         imported from the latest Autoconf git.  It was motivated by Emacs,
6328         which uses gnulib but does not need HAVE_STDBOOL_H.
6329
6330 2011-02-04  Bruno Haible  <bruno@clisp.org>
6331
6332         wcsnrtombs: Prepare for new module wwcsnrtombs.
6333         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6334         * lib/wcsnrtombs.c: Include it.
6335         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6336
6337         wcsrtombs: Prepare for new module wwcsrtombs.
6338         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6339         * lib/wcsrtombs.c: Include it.
6340         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6341
6342         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6343         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6344         * lib/mbsnrtowcs.c: Include it.
6345         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6346
6347         mbsrtowcs: Prepare for new module mbsrtowwcs.
6348         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6349         * lib/mbsrtowcs.c: Include it.
6350         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6351
6352 2011-02-04  Bruno Haible  <bruno@clisp.org>
6353
6354         vasnprintf: Reduce use of malloc for small format strings.
6355         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6356         (arguments): Add room for the first 7 arguments.
6357         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6358         (char_directives, u8_directives, u16_directives, u32_directives): Add
6359         room for the first 7 directives.
6360         * lib/printf-parse.c: Include <string.h>.
6361         (PRINTF_PARSE): Change memory handling code so that it uses the first
6362         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6363         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6364         Reported by Pádraig Brady <P@draigbrady.com>.
6365
6366 2011-01-31  Eric Blake  <eblake@redhat.com>
6367
6368         dup2: work around Haiku bug
6369         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6370         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6371         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6372         * tests/test-dup2.c (main): Enhance test.
6373
6374 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6375
6376         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6377         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6378         declared by eglibc 2.11.2.
6379         * lib/stdio.in.h: Likewise.
6380
6381 2011-01-31  Eric Blake  <eblake@redhat.com>
6382
6383         ignore-value: add missing test dependency
6384         * tests/test-ignore-value.c: Revert previous change; stdio.h
6385         provides off_t.
6386         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6387
6388 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6389
6390         mktime: clarify long_int width checking
6391         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6392         the top level, to make it clearer that the assumption about
6393         long_int width is being checked.  See
6394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6395
6396 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6397
6398         ignore-value: Fix self-test.
6399         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6400
6401 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6402
6403         TYPE_MAXIMUM: avoid theoretically undefined behavior
6404         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6405         negative number, which the C Standard says has undefined behavior.
6406         In practice this is not a problem, but might as well do it by the book.
6407         Reported by Rich Felker and Eric Blake; see
6408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6409         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6410         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6412         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6413         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6414         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6415
6416         mktime: #undef mktime before #defining it
6417         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6418
6419         mktime: systematically normalize tm_isdst comparisons
6420         * lib/mktime.c (isdst_differ): New function.
6421         (__mktime_internal): Use it systematically for all isdst comparisons.
6422         This completes the fix for libc BZ #6723, and removes the need for
6423         normalizing tm_isdst.  See
6424         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6425         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6426
6427         mktime: fix some integer overflow issues and sidestep the rest
6428
6429         This was prompted by a bug report by Benjamin Lindner for MinGW
6430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6431         His bug is due to signed integer overflow (0 - INT_MIN), and I
6432         I scanned through mktime.c looking for other integer overflow
6433         problems, fixing all the bugs I found.
6434
6435         Although the C Standard says the resulting code is still not safe
6436         in the presence of integer overflow, in practice it should be good
6437         enough for all real-world two's-complement implementations, except
6438         for debugging environments that deliberately trap on integer
6439         overflow (e.g., gcc -ftrapv).
6440
6441         * lib/mktime.c (WRAPV): New macro.
6442         (SHR): Also check that long_int and time_t shift right in the
6443         usual way, before using the fast-but-unportable method.
6444         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6445         used.  The code already assumed two's complement, so there's
6446         no need to test for alternatives.  All uses removed.
6447         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6448         the C standard.  Problem reported by Rich Felker in
6449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6450         (twos_complement_arithmetic): Also check long_int and time_t.
6451         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6452         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6453         (__mktime_internal): Avoid integer overflow with unary subtraction
6454         in two instances where -1 - X is an adequate replacement for -X,
6455         since the calculations are approximate.
6456
6457 2011-01-29  Eric Blake  <eblake@redhat.com>
6458
6459         mktime: avoid infinite loop
6460         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6461         type; behavior is still undefined but portable to all known targets.
6462         Reported by Rich Felker.
6463
6464 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6465
6466         rename, unlink, same-inode: Relicense.
6467         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6468         * modules/unlink (License): Likewise.
6469         * modules/same-inode (License): Likewise.
6470
6471 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6472
6473         mktime: avoid problems on NetBSD 5 / i386
6474         * lib/mktime.c (long_int): New type.  This works around a problem
6475         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6476         but time_t is 64 bits, and where I expect the existing code is
6477         wrong in some cases.
6478         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6479         (ydhms_diff): Bring back the compile-time check for wide-enough
6480         year and yday.
6481
6482         mktime: fix misspelling in comment
6483         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6484         This merges all recent glibc changes of importance.
6485
6486 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6487
6488         move-if-change: cope with concurrent mv of identical file.
6489         * build-aux/move-if-change (CMPPROG): Accept environment
6490         variable as an override for `cmp'.
6491         (usage): Document CMPPROG.
6492         Adjust comparison to drop stdout.  Cope with failure of mv if
6493         the target file exists and is identical to the source, for
6494         parallel builds.
6495         Report from H.J. Lu against binutils in PR binutils/12283.
6496
6497 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6498
6499         * users.txt: Mention sharutils.
6500
6501 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6502
6503         * users.txt: Mention OATH Toolkit.
6504
6505 2011-01-27  Bruno Haible  <bruno@clisp.org>
6506
6507         Prepare for supporting FreeBSD 10.
6508         * build-aux/config.libpath: Remove handling of freebsd1*.
6509
6510 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6511
6512         Prepare for supporting FreeBSD 10.
6513         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6514         match FreeBSD 10.0.
6515
6516 2011-01-27  Bruno Haible  <bruno@clisp.org>
6517
6518         vma-iter, get-rusage-as: Add OpenBSD support.
6519         * modules/vma-iter (configure.ac): Test for mquery.
6520         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6521         * lib/vma-iter.c: Include <sys/mman.h>.
6522         (vma_iterate): Add an implementation based on mquery().
6523         * lib/resource-ext.h (get_rusage_as): Update comments.
6524         * lib/get-rusage-as.c: Likewise.
6525         * lib/get-rusage-data.c: Likewise.
6526
6527 2011-01-26  Karl Berry  <karl@gnu.org>
6528
6529         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6530         variables to make it easier to override the makeinfo program used.
6531
6532 2011-01-26  Eric Blake  <eblake@redhat.com>
6533
6534         fcntl: work around Haiku F_DUPFD bugs
6535         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6536         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6537         cloexec bit on duplication.
6538         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6539
6540 2011-01-26  Bruno Haible  <bruno@clisp.org>
6541
6542         Enable memory leak tests on AIX.
6543         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6544         * tests/test-fprintf-posix3.c (main): Likewise.
6545
6546 2011-01-26  Bruno Haible  <bruno@clisp.org>
6547
6548         Tests for module 'get-rusage-data'.
6549         * modules/get-rusage-data-tests: New file.
6550         * tests/test-get-rusage-data.c: New file.
6551
6552         New module 'get-rusage-data'.
6553         * lib/resource-ext.h (get_rusage_data): New declaration.
6554         * lib/get-rusage-data.c: New file.
6555         * modules/get-rusage-data: New file.
6556
6557 2011-01-25  Bruno Haible  <bruno@clisp.org>
6558
6559         get-rusage-as: Allow for easier testing.
6560         * lib/resource-ext.h (get_rusage_as): Add comment.
6561         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6562         (main): New function for interactive testing.
6563
6564 2011-01-25  Bruno Haible  <bruno@clisp.org>
6565
6566         vma-iter: Treat Haiku like BeOS.
6567         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6568         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6569
6570 2011-01-25  Eric Blake  <eblake@redhat.com>
6571
6572         c-stack: fix regression on cygwin when libsigsegv is present
6573         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6574
6575 2011-01-24  Bruno Haible  <bruno@clisp.org>
6576
6577         vma-iter: Avoid empty intervals.
6578         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6579         on an empty interval.
6580
6581 2011-01-24  Jim Meyering  <meyering@redhat.com>
6582
6583         u64: remove unnecessary #include
6584         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6585
6586 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6587
6588         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6589         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6590
6591 2011-01-23  Bruno Haible  <bruno@clisp.org>
6592
6593         New module 'vma-iter'.
6594         * lib/vma-iter.h: New file.
6595         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6596         * modules/vma-iter: New file.
6597         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6598         for get_rusage_as_via_iterator.
6599         (vma_iterate_callback): New function.
6600         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6601         * modules/get-rusage-as (Depends-on): Add vma-iter.
6602
6603 2011-01-23  Bruno Haible  <bruno@clisp.org>
6604
6605         uninorm: Tweak includes.
6606         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6607         Reported by Jim Meyering.
6608
6609 2011-01-23  Bruno Haible  <bruno@clisp.org>
6610
6611         get-rusage-as: Improve on NetBSD.
6612         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6613         /proc, like on FreeBSD.
6614
6615 2011-01-23  Jim Meyering  <meyering@redhat.com>
6616
6617         xreadlink.h: remove unnecessary #include
6618         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6619
6620         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6621         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6622
6623 2011-01-23  Bruno Haible  <bruno@clisp.org>
6624
6625         get-rusage-as: Fix bug.
6626         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6627         original limit when aborting the first loop.
6628
6629 2011-01-23  Bruno Haible  <bruno@clisp.org>
6630
6631         wctype: Ensure valid C syntax.
6632         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6633         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6634
6635 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6636
6637         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6639         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6640         as they are needed only for configure's test case.
6641         This removes two unnecessary symbols from config.h.
6642
6643         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6644         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6646         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6647         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6648         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6649         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6650         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6651         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6652         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6653         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6655         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6657         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6659         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6660         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6661
6662 2011-01-21  Eric Blake  <eblake@redhat.com>
6663
6664         maintainer-makefile: work with older git for submodule check
6665         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6666         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6667         Reported by Matthias Bolte.
6668
6669         bootstrap: minor portability fixes
6670         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6671         (usage): Omit leading capital and trailing . on help phrases, per
6672         GNU Coding Standards.
6673         (check_versions, top level): Prefix messages with script name.
6674
6675 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6676
6677         bootstrap: support --no-git option
6678         * build-aux/bootstrap: Add --no-git option, to be used when
6679         --gnulib-srcdir points to the exact desired checkout.
6680
6681 2011-01-21  Eric Blake  <eblake@redhat.com>
6682
6683         strerror_r-posix: work with glibc 2.13
6684         * lib/strerror_r.c (strerror_r): Fix return type.
6685
6686 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6687             Bruno Haible  <bruno@clisp.org>
6688
6689         uN_strstr: New unit tests.
6690         * modules/unistr/u8-strstr-tests: New file.
6691         * modules/unistr/u16-strstr-tests: New file.
6692         * modules/unistr/u32-strstr-tests: New file.
6693         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6694         * tests/unistr/test-u8-strstr.c: New file.
6695         * tests/unistr/test-u16-strstr.c: New file.
6696         * tests/unistr/test-u32-strstr.c: New file.
6697
6698 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6699             Bruno Haible  <bruno@clisp.org>
6700
6701         Make uN_strstr functions O(n) worst-case.
6702         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6703         16-bit and 32-bit unit cases, use the unibyte algorithm from
6704         lib/mbsstr.c.
6705         * lib/unistr/u8-strstr.c: Include <string.h>.
6706         (UNIT_IS_UINT8_T): New macro.
6707         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6708         (U_STRLEN, U_STRNLEN): New macros.
6709         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6710         (U_STRLEN, U_STRNLEN): New macros.
6711         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6712         (configure.ac): Update required libunistring version.
6713         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6714         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6715         malloca.
6716         (configure.ac): Update required libunistring version.
6717         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6718         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6719         malloca.
6720         (configure.ac): Update required libunistring version.
6721
6722 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6723             Bruno Haible  <bruno@clisp.org>
6724
6725         Prepare for faster uN_strstr functions.
6726         * lib/str-kmp.h: Support definable UNITs.
6727         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6728         needle_len argument.
6729         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6730         * lib/mbscasestr.c (mbscasestr): Likewise.
6731
6732 2011-01-21  Pádraig Brady <P@draigBrady.com>
6733
6734         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6735         * tests/test-malloca.c (main): Unset the environment variable
6736         to greatly speed up the test.
6737         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6738         * modules/malloca-tests: Depend on unsetenv.
6739
6740 2011-01-21  Pádraig Brady <P@draigBrady.com>
6741
6742         ignore-value: remove stdint dependency
6743         * lib/ignore-value.h: Remove <stdint.h>
6744         * modules/ignore-value: Remove stdint dependency.
6745
6746 2011-01-21  Jim Meyering  <meyering@redhat.com>
6747
6748         maint.mk: adjust variable name to be consistent with other gl_ vars
6749         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6750         to be lower case.
6751
6752 2011-01-20  Jim Meyering  <meyering@redhat.com>
6753
6754         maint.mk: make "check" depend on public-submodule-commit by default
6755         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6756
6757 2011-01-20  Bruno Haible  <bruno@clisp.org>
6758
6759         mbfile, mbiter: Complete change from 2008-12-21.
6760         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6761         * m4/mbiter.m4 (gl_MBITER): Likewise.
6762
6763 2011-01-20  Jim Meyering  <meyering@redhat.com>
6764
6765         init.sh: insert space between each function name and "()"
6766         * tests/init.sh: Make it a little easier to see that a function's
6767         name is "warn_", and not "warn" when looking at the first part of
6768         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6769
6770 2011-01-20  Jim Meyering  <meyering@redhat.com>
6771
6772         mountlist: clean up code formatting
6773         * lib/mountlist.c (read_file_system_list): Split a long line,
6774         correct bracing style, use NULL in place of "(struct statfs *)0",
6775         don't parenthesize return value, add spaces around "=" and after
6776         ";-in-for-stmt".
6777
6778 2011-01-14  Markus Duft <mduft@gentoo.org>
6779
6780         mountlist: add support for Interix
6781         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6782         Apply statvfs to all entries of /dev/fs.
6783         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6784         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6785
6786 2011-01-20  Jim Meyering  <meyering@redhat.com>
6787
6788         maint.mk: improve the public-submodule-commit rule
6789         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6790         to suppress printing of its commands... unless V=1.
6791         Add git submodule's --quiet option to suppress printing of e.g.,
6792         "Entering gnulib" output.
6793         "cd" into $(srcdir) before running git submodule.
6794
6795 2011-01-20  Bruno Haible  <bruno@clisp.org>
6796
6797         include_next: Fix bug introduced on 2011-01-18.
6798         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6799         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6800         ac_cv_header_... variable if the second argument is not 'check'.
6801         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6802         gl_NEXT_HEADERS_INTERNAL.
6803
6804 2011-01-20  Bruno Haible  <bruno@clisp.org>
6805
6806         Allow the user to avoid the GNULIB_TEST_* macros.
6807         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6808         Suggested by Paul Eggert.
6809
6810 2011-01-14  Jim Meyering  <meyering@redhat.com>
6811
6812         bootstrap: avoid failure when there is no .gitmodules file
6813         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6814         has been assigned to, even when its value is the empty string.
6815         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6816         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6817         Reported by John W. Eaton <jwe@gnu.org>.
6818
6819 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6820
6821         assume <ctype.h>, ..., <time.h> exist
6822         For years gnulib has been assuming the existence of the headers
6823         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6824         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6825         them, since they don't appear to be needed.
6826         * README (Portability guidelines): Document this.
6827         * lib/flock.c: Assume <fcntl.h> exists.
6828         * lib/regex_internal.h: Assume <locale.h> exists.
6829         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6830         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6831         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6832         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6833         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6834         * m4/regex.m4 (gl_REGEX): Likewise.
6835         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6836         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6837         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6838         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6839         * tests/test-argp.c: Likewise.
6840         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6841
6842         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6843         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6844         AA_APPLE_UNIVERSAL_BUILD.  See
6845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6846         * NEWS: Document this.
6847
6848 2011-01-19  Eric Blake  <eblake@redhat.com>
6849
6850         c-stack: assume stack overflow if SA_SIGINFO unsupported
6851         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6852         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6853         sigaction will work.
6854         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6855         behavior match Linux.
6856         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6857
6858         stdbool-tests: accomodate Haiku
6859         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6860
6861         binary-io: fix O_TEXT on Haiku
6862         * modules/binary-io (Depends-on): Add fcntl-h.
6863         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6864         than blindly undefining O_TEXT.
6865         Reported by Scott McCreary.
6866
6867 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6868
6869         include_next: do not check for standard headers like stddef.h
6870
6871         I found this problem when modifying Emacs to use gnulib.
6872         I noticed that it added HAVE_STDDEF_H to config.h, even though
6873         gnulib always assumes <stddef.h> exists as per README and this
6874         symbol is unnecessary.
6875         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6876         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6877         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6878         faster for headers like stddef.h that are known to exist.
6879         (gl_CHECK_NEXT_HEADERS): Use it.
6880         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6881         rather than gl_CHECK_NEXT_HEADERS.
6882         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6883         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6884
6885 2011-01-18  Eric Blake  <eblake@redhat.com>
6886
6887         ansi-c++-opt: skip C++ dependency style if C++ is unused
6888         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6889         tests when we know C++ compilation is not desired.
6890         Reported by Scott McCreary.
6891
6892 2011-01-18  Bruno Haible  <bruno@clisp.org>
6893
6894         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6895         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6896         (main): Perform test also when getrlimit and setrlimit don't exist or
6897         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6898         limiting the address space size using setrlimit, compare the address
6899         space size before and after the the test.
6900         * tests/test-dprintf-posix2.c: Likewise.
6901         * tests/test-fprintf-posix3.sh: Update skip messages.
6902         * tests/test-dprintf-posix2.sh: Likewise.
6903         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6904         * modules/dprintf-posix-tests (Depends-on): Likewise.
6905         Reported by Bruce Korb <bkorb@gnu.org> and
6906         Gary V. Vaughan <gary@gnu.org>.
6907
6908 2011-01-18  Bruno Haible  <bruno@clisp.org>
6909
6910         get-rusage-as: Improvement for Cygwin.
6911         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6912         areas that are merely reserved.
6913
6914 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6915
6916         strftime: remove dependencies on multibyte modules
6917
6918         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6919         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6920         only if __osf__ is defined, and I suspect OSF doesn't need these
6921         other modules.  If my guess is wrong, we'll need to come up with a
6922         variant of strftime that doesn't need the multibyte modules.
6923
6924         I discovered this problem when attempting modify Emacs to use the
6925         strftime module.  With the previous gnulib, this caused Emacs to
6926         need 31 new files, ranging from lib/config.charset to
6927         m4/wint_t.m4.  This was overkill and I expect would be offputting
6928         to the Emacs maintainers.  After this change, only 6 new files are
6929         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6930         stdbool.m4, and tm_gmtoff.m4.
6931
6932         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6933         Suggested by Bruno Haible in
6934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6935         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6936         and do not check for wchar.h.
6937         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6938         (Depends-on): Remove mbrlen, mbsinit, wchar.
6939
6940 2011-01-18  Bruno Haible  <bruno@clisp.org>
6941
6942         Tests for module 'get-rusage-as'.
6943         * modules/get-rusage-as-tests: New file.
6944         * tests/test-get-rusage-as.c: New file.
6945
6946         New module 'get-rusage-as'.
6947         * modules/get-rusage-as: New file.
6948         * lib/resource-ext.h: New file.
6949         * lib/get-rusage-as.c: New file.
6950
6951 2011-01-17  Eric Blake  <eblake@redhat.com>
6952
6953         sigaction: relax license from LGPLv3+ to LGPLv2+
6954         * modules/sigaction (License): Relax to LGPLv2+.
6955
6956 2011-01-14  Bruno Haible  <bruno@clisp.org>
6957
6958         filemode: Make function declarations usable in C++ mode.
6959         * lib/filemode.h: Enclose function declarations in extern "C" block.
6960         Reported by John W. Eaton <jwe@gnu.org>.
6961
6962 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6963
6964         save-cwd: no longer include "xgetcwd.h"
6965         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6966         This avoids a compilation failure in projects that use save-cwd
6967         without also using the xgetcwd module.
6968
6969 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6970
6971         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6972         This is so that a program like Emacs, which needs only dtoastr,
6973         does not have to bother with distributing and compiling ftoastr
6974         and ldtoastr.
6975         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6976         * modules/dtoastr, modules/ldtoastr: New files.
6977         * modules/ftoastr: Now works just for 'float'.
6978         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6979         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6980         dtoastr.c, ldtoastr.c.
6981
6982 2011-01-11  Jim Meyering  <meyering@redhat.com>
6983
6984         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6985         There is no need to work around the lack of the fchdir function,
6986         since gnulib can now provide a replacement when required.
6987         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6988         * modules/save-cwd (Depends-on): Add fchdir.
6989
6990 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6991
6992         openat, save-cwd: avoid xmalloc
6993
6994         This removes a direct (but undocumented) dependency of openat on
6995         xalloc, along with an indirect dependency via save-cwd.  It also
6996         removes a dependency of save-cwd on xgetcwd, and thereby
6997         indirectly on xalloc.  This change causes the openat substitute
6998         to fall back on save_cwd when memory is tight, and for save_cwd to
6999         fail instead of dying when memory is tight, but that's good enough.
7000         Problem and initial idea for fix reported by Bastien Roucaries in
7001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7002
7003         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7004         xalloc.h (for xmalloc).
7005         (openat_proc_name): Use malloc, not xmalloc.
7006         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7007         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7008
7009         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7010         This avoids heap allocation for file names whose lengths are in
7011         the range 512..1023, with the upper bound increasing to at most
7012         4031 depending on the platform's PATH_MAX.  (We do not want
7013         pathmax.h here as it might supply a non-constant PATH_MAX.)
7014         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7015         Perhaps they should be moved to malloca.h?
7016         (OPENAT_BUFFER_SIZE): Use them.
7017
7018 2011-01-10  Bruno Haible  <bruno@clisp.org>
7019
7020         doc: Update users.txt.
7021         * users.txt: Add recutils.
7022
7023 2011-01-09  Karl Berry  <karl@gnu.org>
7024
7025         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7026
7027         * doc/configmake.texi: New file.
7028         * doc/gnulib.texi: Include it.
7029         * modules/configmake: Move documentation from here.
7030
7031 2011-01-09  Bruno Haible  <bruno@clisp.org>
7032
7033         Update to Unicode 6.0.0.
7034         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7035         (get_lbp): Update for Unicode 6.0.0.
7036         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7037         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7038         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7039         U+11001, U+11038..U+11046. Remove U+06DE.
7040         (uc_width): Fix bounds of planes.
7041         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7042         lib/uniwidth/width.c.
7043         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7044         trailing whitespace removed.
7045         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7046         without comments, but with the original copyright notice.
7047         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7048         * lib/unicase/ignorable.h: Likewise.
7049         * lib/unicase/tocasefold.h: Likewise.
7050         * lib/unicase/tolower.h: Likewise.
7051         * lib/unicase/totitle.h: Likewise.
7052         * lib/unicase/toupper.h: Likewise.
7053         * lib/unictype/bidi_of.h: Likewise.
7054         * lib/unictype/blocks.h: Likewise.
7055         * lib/unictype/categ_C.h: Likewise.
7056         * lib/unictype/categ_Cn.h: Likewise.
7057         * lib/unictype/categ_L.h: Likewise.
7058         * lib/unictype/categ_Ll.h: Likewise.
7059         * lib/unictype/categ_Lm.h: Likewise.
7060         * lib/unictype/categ_Lo.h: Likewise.
7061         * lib/unictype/categ_Lu.h: Likewise.
7062         * lib/unictype/categ_M.h: Likewise.
7063         * lib/unictype/categ_Mc.h: Likewise.
7064         * lib/unictype/categ_Me.h: Likewise.
7065         * lib/unictype/categ_Mn.h: Likewise.
7066         * lib/unictype/categ_N.h: Likewise.
7067         * lib/unictype/categ_Nd.h: Likewise.
7068         * lib/unictype/categ_No.h: Likewise.
7069         * lib/unictype/categ_P.h: Likewise.
7070         * lib/unictype/categ_Po.h: Likewise.
7071         * lib/unictype/categ_S.h: Likewise.
7072         * lib/unictype/categ_Sc.h: Likewise.
7073         * lib/unictype/categ_Sk.h: Likewise.
7074         * lib/unictype/categ_Sm.h: Likewise.
7075         * lib/unictype/categ_So.h: Likewise.
7076         * lib/unictype/categ_of.h: Likewise.
7077         * lib/unictype/combining.h: Likewise.
7078         * lib/unictype/ctype_alnum.h: Likewise.
7079         * lib/unictype/ctype_alpha.h: Likewise.
7080         * lib/unictype/ctype_graph.h: Likewise.
7081         * lib/unictype/ctype_lower.h: Likewise.
7082         * lib/unictype/ctype_print.h: Likewise.
7083         * lib/unictype/ctype_punct.h: Likewise.
7084         * lib/unictype/ctype_upper.h: Likewise.
7085         * lib/unictype/decdigit.h: Likewise.
7086         * lib/unictype/digit.h: Likewise.
7087         * lib/unictype/numeric.h: Likewise.
7088         * lib/unictype/pr_alphabetic.h: Likewise.
7089         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7090         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7091         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7092         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7093         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7094         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7095         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7096         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7097         * lib/unictype/pr_case_ignorable.h: Likewise.
7098         * lib/unictype/pr_cased.h: Likewise.
7099         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7100         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7101         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7102         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7103         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7104         * lib/unictype/pr_combining.h: Likewise.
7105         * lib/unictype/pr_composite.h: Likewise.
7106         * lib/unictype/pr_currency_symbol.h: Likewise.
7107         * lib/unictype/pr_decimal_digit.h: Likewise.
7108         * lib/unictype/pr_deprecated.h: Likewise.
7109         * lib/unictype/pr_format_control.h: Likewise.
7110         * lib/unictype/pr_grapheme_base.h: Likewise.
7111         * lib/unictype/pr_grapheme_extend.h: Likewise.
7112         * lib/unictype/pr_grapheme_link.h: Likewise.
7113         * lib/unictype/pr_id_continue.h: Likewise.
7114         * lib/unictype/pr_id_start.h: Likewise.
7115         * lib/unictype/pr_ideographic.h: Likewise.
7116         * lib/unictype/pr_lowercase.h: Likewise.
7117         * lib/unictype/pr_math.h: Likewise.
7118         * lib/unictype/pr_numeric.h: Likewise.
7119         * lib/unictype/pr_other_alphabetic.h: Likewise.
7120         * lib/unictype/pr_other_id_continue.h: Likewise.
7121         * lib/unictype/pr_other_math.h: Likewise.
7122         * lib/unictype/pr_punctuation.h: Likewise.
7123         * lib/unictype/pr_sentence_terminal.h: Likewise.
7124         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7125         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7126         * lib/unictype/pr_unified_ideograph.h: Likewise.
7127         * lib/unictype/pr_uppercase.h: Likewise.
7128         * lib/unictype/pr_xid_continue.h: Likewise.
7129         * lib/unictype/pr_xid_start.h: Likewise.
7130         * lib/unictype/scripts.h: Likewise.
7131         * lib/unictype/scripts_byname.gperf: Likewise.
7132         * lib/unictype/sy_java_ident.h: Likewise.
7133         * lib/unigbrk/gbrkprop.h: Likewise.
7134         * lib/unilbrk/lbrkprop1.h: Likewise.
7135         * lib/unilbrk/lbrkprop2.h: Likewise.
7136         * lib/uninorm/decomposition-table2.h: Likewise.
7137         * lib/uniwbrk/wbrkprop.h: Likewise.
7138         * tests/unicase/test-cased.c: Likewise.
7139         * tests/unicase/test-ignorable.c: Likewise.
7140         * tests/unicase/test-uc_tolower.c: Likewise.
7141         * tests/unicase/test-uc_totitle.c: Likewise.
7142         * tests/unicase/test-uc_toupper.c: Likewise.
7143         * tests/unictype/test-categ_C.c: Likewise.
7144         * tests/unictype/test-categ_Cn.c: Likewise.
7145         * tests/unictype/test-categ_L.c: Likewise.
7146         * tests/unictype/test-categ_Ll.c: Likewise.
7147         * tests/unictype/test-categ_Lm.c: Likewise.
7148         * tests/unictype/test-categ_Lo.c: Likewise.
7149         * tests/unictype/test-categ_Lu.c: Likewise.
7150         * tests/unictype/test-categ_M.c: Likewise.
7151         * tests/unictype/test-categ_Mc.c: Likewise.
7152         * tests/unictype/test-categ_Me.c: Likewise.
7153         * tests/unictype/test-categ_Mn.c: Likewise.
7154         * tests/unictype/test-categ_N.c: Likewise.
7155         * tests/unictype/test-categ_Nd.c: Likewise.
7156         * tests/unictype/test-categ_No.c: Likewise.
7157         * tests/unictype/test-categ_P.c: Likewise.
7158         * tests/unictype/test-categ_Po.c: Likewise.
7159         * tests/unictype/test-categ_S.c: Likewise.
7160         * tests/unictype/test-categ_Sc.c: Likewise.
7161         * tests/unictype/test-categ_Sk.c: Likewise.
7162         * tests/unictype/test-categ_Sm.c: Likewise.
7163         * tests/unictype/test-categ_So.c: Likewise.
7164         * tests/unictype/test-ctype_alnum.c: Likewise.
7165         * tests/unictype/test-ctype_alpha.c: Likewise.
7166         * tests/unictype/test-ctype_graph.c: Likewise.
7167         * tests/unictype/test-ctype_lower.c: Likewise.
7168         * tests/unictype/test-ctype_print.c: Likewise.
7169         * tests/unictype/test-ctype_punct.c: Likewise.
7170         * tests/unictype/test-ctype_upper.c: Likewise.
7171         * tests/unictype/test-decdigit.h: Likewise.
7172         * tests/unictype/test-digit.h: Likewise.
7173         * tests/unictype/test-numeric.h: Likewise.
7174         * tests/unictype/test-pr_alphabetic.c: Likewise.
7175         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7176         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7177         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7178         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7179         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7180         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7181         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7182         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7183         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7184         * tests/unictype/test-pr_cased.c: Likewise.
7185         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7186         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7187         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7188         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7189         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7190         * tests/unictype/test-pr_combining.c: Likewise.
7191         * tests/unictype/test-pr_composite.c: Likewise.
7192         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7193         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7194         * tests/unictype/test-pr_deprecated.c: Likewise.
7195         * tests/unictype/test-pr_format_control.c: Likewise.
7196         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7197         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7198         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7199         * tests/unictype/test-pr_id_continue.c: Likewise.
7200         * tests/unictype/test-pr_id_start.c: Likewise.
7201         * tests/unictype/test-pr_ideographic.c: Likewise.
7202         * tests/unictype/test-pr_lowercase.c: Likewise.
7203         * tests/unictype/test-pr_math.c: Likewise.
7204         * tests/unictype/test-pr_numeric.c: Likewise.
7205         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7206         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7207         * tests/unictype/test-pr_other_math.c: Likewise.
7208         * tests/unictype/test-pr_punctuation.c: Likewise.
7209         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7210         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7211         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7212         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7213         * tests/unictype/test-pr_uppercase.c: Likewise.
7214         * tests/unictype/test-pr_xid_continue.c: Likewise.
7215         * tests/unictype/test-pr_xid_start.c: Likewise.
7216         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7217         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7218         changes.
7219         * lib/unictype/categ_Cc.h: Likewise.
7220         * lib/unictype/categ_Cf.h: Likewise.
7221         * lib/unictype/categ_Co.h: Likewise.
7222         * lib/unictype/categ_Cs.h: Likewise.
7223         * lib/unictype/categ_Lt.h: Likewise.
7224         * lib/unictype/categ_Nl.h: Likewise.
7225         * lib/unictype/categ_Pc.h: Likewise.
7226         * lib/unictype/categ_Pd.h: Likewise.
7227         * lib/unictype/categ_Pe.h: Likewise.
7228         * lib/unictype/categ_Pf.h: Likewise.
7229         * lib/unictype/categ_Pi.h: Likewise.
7230         * lib/unictype/categ_Ps.h: Likewise.
7231         * lib/unictype/categ_Z.h: Likewise.
7232         * lib/unictype/categ_Zl.h: Likewise.
7233         * lib/unictype/categ_Zp.h: Likewise.
7234         * lib/unictype/categ_Zs.h: Likewise.
7235         * lib/unictype/ctype_blank.h: Likewise.
7236         * lib/unictype/ctype_cntrl.h: Likewise.
7237         * lib/unictype/ctype_digit.h: Likewise.
7238         * lib/unictype/ctype_space.h: Likewise.
7239         * lib/unictype/ctype_xdigit.h: Likewise.
7240         * lib/unictype/mirror.h: Likewise.
7241         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7242         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7243         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7244         * lib/unictype/pr_bidi_control.h: Likewise.
7245         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7246         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7247         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7248         * lib/unictype/pr_bidi_pdf.h: Likewise.
7249         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7250         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7251         * lib/unictype/pr_dash.h: Likewise.
7252         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7253         * lib/unictype/pr_diacritic.h: Likewise.
7254         * lib/unictype/pr_extender.h: Likewise.
7255         * lib/unictype/pr_hex_digit.h: Likewise.
7256         * lib/unictype/pr_hyphen.h: Likewise.
7257         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7258         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7259         * lib/unictype/pr_ignorable_control.h: Likewise.
7260         * lib/unictype/pr_iso_control.h: Likewise.
7261         * lib/unictype/pr_join_control.h: Likewise.
7262         * lib/unictype/pr_left_of_pair.h: Likewise.
7263         * lib/unictype/pr_line_separator.h: Likewise.
7264         * lib/unictype/pr_logical_order_exception.h: Likewise.
7265         * lib/unictype/pr_non_break.h: Likewise.
7266         * lib/unictype/pr_not_a_character.h: Likewise.
7267         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7268         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7269         * lib/unictype/pr_other_id_start.h: Likewise.
7270         * lib/unictype/pr_other_lowercase.h: Likewise.
7271         * lib/unictype/pr_other_uppercase.h: Likewise.
7272         * lib/unictype/pr_paired_punctuation.h: Likewise.
7273         * lib/unictype/pr_paragraph_separator.h: Likewise.
7274         * lib/unictype/pr_pattern_syntax.h: Likewise.
7275         * lib/unictype/pr_pattern_white_space.h: Likewise.
7276         * lib/unictype/pr_private_use.h: Likewise.
7277         * lib/unictype/pr_quotation_mark.h: Likewise.
7278         * lib/unictype/pr_radical.h: Likewise.
7279         * lib/unictype/pr_soft_dotted.h: Likewise.
7280         * lib/unictype/pr_space.h: Likewise.
7281         * lib/unictype/pr_titlecase.h: Likewise.
7282         * lib/unictype/pr_variation_selector.h: Likewise.
7283         * lib/unictype/pr_white_space.h: Likewise.
7284         * lib/unictype/pr_zero_width.h: Likewise.
7285         * lib/unictype/sy_c_ident.h: Likewise.
7286         * lib/unictype/sy_c_whitespace.h: Likewise.
7287         * lib/unictype/sy_java_whitespace.h: Likewise.
7288         * lib/uninorm/composition-table.gperf: Likewise.
7289         * lib/uninorm/decomposition-table1.h: Likewise.
7290         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7291         LB8.
7292         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7293         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7294         * modules/unictype/*: Bump version number of expected libunistring
7295         version.
7296
7297 2011-01-09  Bruno Haible  <bruno@clisp.org>
7298
7299         Update to Unicode 5.2.0.
7300         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7301         trailing whitespace removed.
7302
7303 2011-01-09  Bruno Haible  <bruno@clisp.org>
7304
7305         New Unicode character properties, from Unicode 5.2.0.
7306         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7307         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7308         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7309         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7310         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7311         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7312         uc_is_property_cased, uc_is_property_case_ignorable,
7313         uc_is_property_changes_when_lowercased,
7314         uc_is_property_changes_when_uppercased,
7315         uc_is_property_changes_when_titlecased,
7316         uc_is_property_changes_when_casefolded,
7317         uc_is_property_changes_when_casemapped): New declarations.
7318         * lib/unictype/pr_byname.gperf: Add the new properties.
7319         * modules/unictype/property-byname (Depends-on): Depend on the new
7320         properties modules.
7321         * modules/unictype/property-all (Depends-on): Likewise.
7322         * MODULES.html.sh (Unicode string functions): Add
7323         unictype/property-case-ignorable, unictype/property-cased,
7324         unictype/property-changes-when-casefolded,
7325         unictype/property-changes-when-casemapped,
7326         unictype/property-changes-when-lowercased,
7327         unictype/property-changes-when-titlecased,
7328         unictype/property-changes-when-uppercased.
7329
7330         New module 'unictype/property-changes-when-casemapped'.
7331         * modules/unictype/property-changes-when-casemapped: New file.
7332         * lib/unictype/pr_changes_when_casemapped.c: New file.
7333         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7334         generated by gen-uni-tables.
7335         * modules/unictype/property-changes-when-casemapped-tests: New file.
7336         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7337         automatically generated by gen-uni-tables.
7338
7339         New module 'unictype/property-changes-when-casefolded'.
7340         * modules/unictype/property-changes-when-casefolded: New file.
7341         * lib/unictype/pr_changes_when_casefolded.c: New file.
7342         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7343         generated by gen-uni-tables.
7344         * modules/unictype/property-changes-when-casefolded-tests: New file.
7345         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7346         automatically generated by gen-uni-tables.
7347
7348         New module 'unictype/property-changes-when-titlecased'.
7349         * modules/unictype/property-changes-when-titlecased: New file.
7350         * lib/unictype/pr_changes_when_titlecased.c: New file.
7351         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7352         generated by gen-uni-tables.
7353         * modules/unictype/property-changes-when-titlecased-tests: New file.
7354         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7355         automatically generated by gen-uni-tables.
7356
7357         New module 'unictype/property-changes-when-uppercased'.
7358         * modules/unictype/property-changes-when-uppercased: New file.
7359         * lib/unictype/pr_changes_when_uppercased.c: New file.
7360         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7361         generated by gen-uni-tables.
7362         * modules/unictype/property-changes-when-uppercased-tests: New file.
7363         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7364         automatically generated by gen-uni-tables.
7365
7366         New module 'unictype/property-changes-when-lowercased'.
7367         * modules/unictype/property-changes-when-lowercased: New file.
7368         * lib/unictype/pr_changes_when_lowercased.c: New file.
7369         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7370         generated by gen-uni-tables.
7371         * modules/unictype/property-changes-when-lowercased-tests: New file.
7372         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7373         automatically generated by gen-uni-tables.
7374
7375         New module 'unictype/property-case-ignorable'.
7376         * modules/unictype/property-case-ignorable: New file.
7377         * lib/unictype/pr_case_ignorable.c: New file.
7378         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7379         by gen-uni-tables.
7380         * modules/unictype/property-case-ignorable-tests: New file.
7381         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7382         generated by gen-uni-tables.
7383
7384         New module 'unictype/property-cased'.
7385         * modules/unictype/property-cased: New file.
7386         * lib/unictype/pr_cased.c: New file.
7387         * lib/unictype/pr_cased.h: New file, automatically generated by
7388         gen-uni-tables.
7389         * modules/unictype/property-cased-tests: New file.
7390         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7391         gen-uni-tables.
7392
7393 2011-01-09  Bruno Haible  <bruno@clisp.org>
7394
7395         Update to Unicode 5.2.0.
7396         * lib/gen-uni-tables.c (output_predicate, output_category,
7397         output_combclass, output_bidi_category, output_decimal_digit_test,
7398         output_decimal_digit, output_digit_test, output_digit,
7399         output_numeric_test, output_numeric, output_mirror, output_scripts,
7400         output_scripts_byname, output_blocks, output_ident_category): Fix
7401         comment header.
7402         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7403         get_wbp.
7404         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7405         items.
7406         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7407         Changes_When_Lowercased, Changes_When_Uppercased,
7408         Changes_When_Titlecased, Changes_When_Casefolded,
7409         Changes_When_Casemapped.
7410         (is_property_alphabetic, is_property_default_ignorable_code_point):
7411         Update for Unicode 5.2.0.
7412         (is_property_cased, is_property_case_ignorable,
7413         is_property_changes_when_lowercased,
7414         is_property_changes_when_uppercased,
7415         is_property_changes_when_titlecased,
7416         is_property_changes_when_casefolded,
7417         is_property_changes_when_casemapped): New functions.
7418         (output_properties): Output also the properties cased, case_ignorable,
7419         changes_when_lowercased, changes_when_uppercased,
7420         changes_when_titlecased, changes_when_casefolded,
7421         changes_when_casemapped.
7422         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7423         Unicode TR#11 revision 17 -> 19.
7424         (LBP_CP): New enumeration value.
7425         (LBP_*): Adjust values accordingly.
7426         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7427         TR#14 revision 22 -> 24.
7428         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7429         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7430         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7431         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7432         is_WBP_MIDLETTER.
7433         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7434         the code1 and code2 of each composition rule.
7435         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7436         * lib/unicase/ignorable.h: Likewise.
7437         * lib/unicase/tocasefold.h: Likewise.
7438         * lib/unicase/tolower.h: Likewise.
7439         * lib/unicase/totitle.h: Likewise.
7440         * lib/unicase/toupper.h: Likewise.
7441         * lib/unictype/bidi_of.h: Likewise.
7442         * lib/unictype/blocks.h: Likewise.
7443         * lib/unictype/categ_C.h: Likewise.
7444         * lib/unictype/categ_Cf.h: Likewise.
7445         * lib/unictype/categ_Cn.h: Likewise.
7446         * lib/unictype/categ_L.h: Likewise.
7447         * lib/unictype/categ_Ll.h: Likewise.
7448         * lib/unictype/categ_Lm.h: Likewise.
7449         * lib/unictype/categ_Lo.h: Likewise.
7450         * lib/unictype/categ_Lu.h: Likewise.
7451         * lib/unictype/categ_M.h: Likewise.
7452         * lib/unictype/categ_Mc.h: Likewise.
7453         * lib/unictype/categ_Mn.h: Likewise.
7454         * lib/unictype/categ_N.h: Likewise.
7455         * lib/unictype/categ_Nd.h: Likewise.
7456         * lib/unictype/categ_Nl.h: Likewise.
7457         * lib/unictype/categ_No.h: Likewise.
7458         * lib/unictype/categ_P.h: Likewise.
7459         * lib/unictype/categ_Pd.h: Likewise.
7460         * lib/unictype/categ_Po.h: Likewise.
7461         * lib/unictype/categ_S.h: Likewise.
7462         * lib/unictype/categ_Sc.h: Likewise.
7463         * lib/unictype/categ_So.h: Likewise.
7464         * lib/unictype/categ_of.h: Likewise.
7465         * lib/unictype/combining.h: Likewise.
7466         * lib/unictype/ctype_alnum.h: Likewise.
7467         * lib/unictype/ctype_alpha.h: Likewise.
7468         * lib/unictype/ctype_graph.h: Likewise.
7469         * lib/unictype/ctype_lower.h: Likewise.
7470         * lib/unictype/ctype_print.h: Likewise.
7471         * lib/unictype/ctype_punct.h: Likewise.
7472         * lib/unictype/ctype_upper.h: Likewise.
7473         * lib/unictype/decdigit.h: Likewise.
7474         * lib/unictype/digit.h: Likewise.
7475         * lib/unictype/numeric.h: Likewise.
7476         * lib/unictype/pr_alphabetic.h: Likewise.
7477         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7478         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7479         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7480         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7481         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7482         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7483         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7484         * lib/unictype/pr_combining.h: Likewise.
7485         * lib/unictype/pr_composite.h: Likewise.
7486         * lib/unictype/pr_currency_symbol.h: Likewise.
7487         * lib/unictype/pr_dash.h: Likewise.
7488         * lib/unictype/pr_decimal_digit.h: Likewise.
7489         * lib/unictype/pr_deprecated.h: Likewise.
7490         * lib/unictype/pr_diacritic.h: Likewise.
7491         * lib/unictype/pr_extender.h: Likewise.
7492         * lib/unictype/pr_grapheme_base.h: Likewise.
7493         * lib/unictype/pr_grapheme_extend.h: Likewise.
7494         * lib/unictype/pr_grapheme_link.h: Likewise.
7495         * lib/unictype/pr_id_continue.h: Likewise.
7496         * lib/unictype/pr_id_start.h: Likewise.
7497         * lib/unictype/pr_ideographic.h: Likewise.
7498         * lib/unictype/pr_ignorable_control.h: Likewise.
7499         * lib/unictype/pr_logical_order_exception.h: Likewise.
7500         * lib/unictype/pr_lowercase.h: Likewise.
7501         * lib/unictype/pr_numeric.h: Likewise.
7502         * lib/unictype/pr_other_alphabetic.h: Likewise.
7503         * lib/unictype/pr_punctuation.h: Likewise.
7504         * lib/unictype/pr_sentence_terminal.h: Likewise.
7505         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7506         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7507         * lib/unictype/pr_unified_ideograph.h: Likewise.
7508         * lib/unictype/pr_uppercase.h: Likewise.
7509         * lib/unictype/pr_xid_continue.h: Likewise.
7510         * lib/unictype/pr_xid_start.h: Likewise.
7511         * lib/unictype/pr_zero_width.h: Likewise.
7512         * lib/unictype/scripts.h: Likewise.
7513         * lib/unictype/scripts_byname.gperf: Likewise.
7514         * lib/unictype/sy_java_ident.h: Likewise.
7515         * lib/unigbrk/gbrkprop.h: Likewise.
7516         * lib/unilbrk/lbrkprop1.h: Likewise.
7517         * lib/unilbrk/lbrkprop2.h: Likewise.
7518         * lib/unilbrk/lbrktables.h: Likewise.
7519         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7520         LBP_CP. Implement rule LB30.
7521         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7522         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7523         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7524         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7525         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7526         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7527         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7528         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7529         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7530         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7531         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7532         bits instead of 16 bits in the code1 and code2 of each composition
7533         rule.
7534         (uc_composition): Update for Unicode 5.2.0.
7535         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7536         * lib/uninorm/decomposition-table2.h: Likewise.
7537         * lib/uniwbrk/wbrkprop.h: Likewise.
7538         * tests/unicase/test-cased.c: Likewise.
7539         * tests/unicase/test-ignorable.c: Likewise.
7540         * tests/unicase/test-uc_tolower.c: Likewise.
7541         * tests/unicase/test-uc_totitle.c: Likewise.
7542         * tests/unicase/test-uc_toupper.c: Likewise.
7543         * tests/unictype/test-categ_C.c: Likewise.
7544         * tests/unictype/test-categ_Cf.c: Likewise.
7545         * tests/unictype/test-categ_Cn.c: Likewise.
7546         * tests/unictype/test-categ_L.c: Likewise.
7547         * tests/unictype/test-categ_Ll.c: Likewise.
7548         * tests/unictype/test-categ_Lm.c: Likewise.
7549         * tests/unictype/test-categ_Lo.c: Likewise.
7550         * tests/unictype/test-categ_Lu.c: Likewise.
7551         * tests/unictype/test-categ_M.c: Likewise.
7552         * tests/unictype/test-categ_Mc.c: Likewise.
7553         * tests/unictype/test-categ_Mn.c: Likewise.
7554         * tests/unictype/test-categ_N.c: Likewise.
7555         * tests/unictype/test-categ_Nd.c: Likewise.
7556         * tests/unictype/test-categ_Nl.c: Likewise.
7557         * tests/unictype/test-categ_No.c: Likewise.
7558         * tests/unictype/test-categ_P.c: Likewise.
7559         * tests/unictype/test-categ_Pd.c: Likewise.
7560         * tests/unictype/test-categ_Po.c: Likewise.
7561         * tests/unictype/test-categ_S.c: Likewise.
7562         * tests/unictype/test-categ_Sc.c: Likewise.
7563         * tests/unictype/test-categ_So.c: Likewise.
7564         * tests/unictype/test-ctype_alnum.c: Likewise.
7565         * tests/unictype/test-ctype_alpha.c: Likewise.
7566         * tests/unictype/test-ctype_graph.c: Likewise.
7567         * tests/unictype/test-ctype_lower.c: Likewise.
7568         * tests/unictype/test-ctype_print.c: Likewise.
7569         * tests/unictype/test-ctype_punct.c: Likewise.
7570         * tests/unictype/test-ctype_upper.c: Likewise.
7571         * tests/unictype/test-decdigit.h: Likewise.
7572         * tests/unictype/test-digit.h: Likewise.
7573         * tests/unictype/test-numeric.h: Likewise.
7574         * tests/unictype/test-pr_alphabetic.c: Likewise.
7575         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7576         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7577         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7578         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7579         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7580         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7581         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7582         * tests/unictype/test-pr_combining.c: Likewise.
7583         * tests/unictype/test-pr_composite.c: Likewise.
7584         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7585         * tests/unictype/test-pr_dash.c: Likewise.
7586         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7587         * tests/unictype/test-pr_deprecated.c: Likewise.
7588         * tests/unictype/test-pr_diacritic.c: Likewise.
7589         * tests/unictype/test-pr_extender.c: Likewise.
7590         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7591         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7592         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7593         * tests/unictype/test-pr_id_continue.c: Likewise.
7594         * tests/unictype/test-pr_id_start.c: Likewise.
7595         * tests/unictype/test-pr_ideographic.c: Likewise.
7596         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7597         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7598         * tests/unictype/test-pr_lowercase.c: Likewise.
7599         * tests/unictype/test-pr_numeric.c: Likewise.
7600         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7601         * tests/unictype/test-pr_punctuation.c: Likewise.
7602         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7603         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7604         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7605         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7606         * tests/unictype/test-pr_uppercase.c: Likewise.
7607         * tests/unictype/test-pr_xid_continue.c: Likewise.
7608         * tests/unictype/test-pr_xid_start.c: Likewise.
7609         * tests/unictype/test-pr_zero_width.c: Likewise.
7610         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7611         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7612         changed behaviour: line breaking is now disallowed between a letter
7613         or '=' and '('.
7614         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7615         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7616         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7617         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7618         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7619         lib/uniwidth/width.c.
7620         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7621         without comments, but with the original copyright notice.
7622         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7623         changes.
7624         * lib/unictype/categ_Cc.h: Likewise.
7625         * lib/unictype/categ_Co.h: Likewise.
7626         * lib/unictype/categ_Cs.h: Likewise.
7627         * lib/unictype/categ_Lt.h: Likewise.
7628         * lib/unictype/categ_Me.h: Likewise.
7629         * lib/unictype/categ_Pc.h: Likewise.
7630         * lib/unictype/categ_Pe.h: Likewise.
7631         * lib/unictype/categ_Pf.h: Likewise.
7632         * lib/unictype/categ_Pi.h: Likewise.
7633         * lib/unictype/categ_Ps.h: Likewise.
7634         * lib/unictype/categ_Sk.h: Likewise.
7635         * lib/unictype/categ_Sm.h: Likewise.
7636         * lib/unictype/categ_Z.h: Likewise.
7637         * lib/unictype/categ_Zl.h: Likewise.
7638         * lib/unictype/categ_Zp.h: Likewise.
7639         * lib/unictype/categ_Zs.h: Likewise.
7640         * lib/unictype/ctype_blank.h: Likewise.
7641         * lib/unictype/ctype_cntrl.h: Likewise.
7642         * lib/unictype/ctype_digit.h: Likewise.
7643         * lib/unictype/ctype_space.h: Likewise.
7644         * lib/unictype/ctype_xdigit.h: Likewise.
7645         * lib/unictype/mirror.h: Likewise.
7646         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7647         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7648         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7649         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7650         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7651         * lib/unictype/pr_bidi_control.h: Likewise.
7652         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7653         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7654         * lib/unictype/pr_bidi_pdf.h: Likewise.
7655         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7656         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7657         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7658         * lib/unictype/pr_format_control.h: Likewise.
7659         * lib/unictype/pr_hex_digit.h: Likewise.
7660         * lib/unictype/pr_hyphen.h: Likewise.
7661         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7662         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7663         * lib/unictype/pr_iso_control.h: Likewise.
7664         * lib/unictype/pr_join_control.h: Likewise.
7665         * lib/unictype/pr_left_of_pair.h: Likewise.
7666         * lib/unictype/pr_line_separator.h: Likewise.
7667         * lib/unictype/pr_math.h: Likewise.
7668         * lib/unictype/pr_non_break.h: Likewise.
7669         * lib/unictype/pr_not_a_character.h: Likewise.
7670         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7671         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7672         * lib/unictype/pr_other_id_continue.h: Likewise.
7673         * lib/unictype/pr_other_id_start.h: Likewise.
7674         * lib/unictype/pr_other_lowercase.h: Likewise.
7675         * lib/unictype/pr_other_math.h: Likewise.
7676         * lib/unictype/pr_other_uppercase.h: Likewise.
7677         * lib/unictype/pr_paired_punctuation.h: Likewise.
7678         * lib/unictype/pr_paragraph_separator.h: Likewise.
7679         * lib/unictype/pr_pattern_syntax.h: Likewise.
7680         * lib/unictype/pr_pattern_white_space.h: Likewise.
7681         * lib/unictype/pr_private_use.h: Likewise.
7682         * lib/unictype/pr_quotation_mark.h: Likewise.
7683         * lib/unictype/pr_radical.h: Likewise.
7684         * lib/unictype/pr_soft_dotted.h: Likewise.
7685         * lib/unictype/pr_space.h: Likewise.
7686         * lib/unictype/pr_titlecase.h: Likewise.
7687         * lib/unictype/pr_variation_selector.h: Likewise.
7688         * lib/unictype/pr_white_space.h: Likewise.
7689         * lib/unictype/sy_c_ident.h: Likewise.
7690         * lib/unictype/sy_c_whitespace.h: Likewise.
7691         * lib/unictype/sy_java_whitespace.h: Likewise.
7692         * modules/uni*/*: Bump version number of expected libunistring version.
7693         Reported by Simon Josefsson.
7694
7695 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7696
7697         useless-if-before-free: fix typo in --help and make the internal,
7698         automatic version date update process work once again.
7699         --help output contained a NUL character instead of the
7700         backslash-zero that was intended.  Also, the "must lie within
7701         the first 8 lines" line is on line 9, and hence not getting
7702         automatically updated.
7703         * build-aux/useless-if-before-free: Fix the former by adding a
7704         backslash, and the latter by condensing the three lines of what-it-does
7705         to a single line, leaving one line of slack for the future.
7706
7707 2011-01-09  Bruno Haible  <bruno@clisp.org>
7708
7709         uniwidth/width: Fix width of U+1D173..U+1D17A.
7710         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7711         symbolic_width, output_width_property_test): New functions.
7712         (main): Invoke output_nonspacing_property, output_width_property_test.
7713         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7714         U+1D173..U+1D17A.
7715         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7716         1.
7717         * modules/uniwidth/*: Bump version number of expected libunistring
7718         version.
7719         * modules/unilbrk/*: Likewise.
7720
7721 2011-01-08  Bruno Haible  <bruno@clisp.org>
7722
7723         uninorm tests: Preserve copyright of Unicode data file.
7724         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7725         Mention modifications.
7726
7727 2011-01-08  Bruno Haible  <bruno@clisp.org>
7728
7729         gen-uni-tables: Prepare for Unicode 5.2.0.
7730         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7731         (debug_output_lbp, output_lbp): Update.
7732
7733 2011-01-08  Bruno Haible  <bruno@clisp.org>
7734
7735         unilbrk: Clarify gen-uni-tables.c code.
7736         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7737         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7738         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7739
7740 2011-01-07  Bruno Haible  <bruno@clisp.org>
7741
7742         strtod: Restore errno when successfully parsing Infinity or NaN.
7743         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7744         restore the original errno.
7745
7746 2011-01-07  Bruno Haible  <bruno@clisp.org>
7747
7748         remove test: Avoid failure on HP-UX 11.
7749         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7750
7751 2011-01-07  Bruno Haible  <bruno@clisp.org>
7752
7753         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7754         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7755         error code.
7756
7757 2011-01-07  Pádraig Brady <P@draigBrady.com>
7758
7759         ignore-value: fixup comments, and add Eric Blake
7760         as an author since he rewrote the macros.
7761         * lib/ignore-value.h (ignore_value):  State that
7762         we now support aggregates.  Also specify exactly
7763         when the GCC warn_unused_result feature was added.
7764
7765 2011-01-06  Eric Blake  <eblake@redhat.com>
7766
7767         ignore-value: support aggregate types
7768         * lib/ignore-value.h (ignore_value): Provide separate gcc
7769         definition.
7770         * modules/ignore-value-tests: New test module.
7771         * tests/test-ignore-value.c: New test.
7772
7773         maint.mk: improve sc_prohibit_strcmp regex
7774         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7775         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7776         definition of STRNEQ.
7777
7778         signal: work around Haiku issue with SIGBUS
7779         * lib/siglist.h: Add comment.
7780         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7781         strsignal's favoring of SIGSEGV.
7782         * tests/test-signal.c (main): Avoid test failure.
7783         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7784         Reported by Scott McCreary.
7785
7786         maint.mk: add pre-release check to ensure submodule commits are public
7787         * top/maint.mk (public-submodule-commit): New rule.
7788         (submodule-checks): New variable.
7789         (alpha beta stable): Depend on the variable.
7790
7791 2011-01-05  Pádraig Brady <P@draigBrady.com>
7792         and Jim Meyering  <meyering@redhat.com>
7793
7794         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7795         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7796         (ATTRIBUTE_DEPRECATED): Define.
7797         (_ignore_case): New function.
7798         (ignore_value): New macro, to replace the old function.
7799         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7800         * modules/ignore-value (Depends-on): Add stdint.
7801
7802 2011-01-04  Eric Blake  <eblake@redhat.com>
7803
7804         doc: regenerate INSTALL
7805         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7806         @firstparagraphindent support, now that autoconf dropped it.
7807         (INSTALL_PRELUDE): Reinstate old macro.
7808         * doc/install.texi: Resync from autoconf.
7809         * doc/INSTALL: Reflect recent autoconf update.
7810         * doc/INSTALL.ISO: Likewise.
7811         * doc/INSTALL.UTF-8: Likewise.
7812         Reported by Karl Berry.
7813
7814 2011-01-04  Bruce Korb  <address@hidden>
7815
7816         git-version-gen: avoid a sub-shell
7817         * build-aux/git-version-gen: Redirect stderr in `...` via
7818         "exec 2>...", rather than via an added sub-shell.
7819
7820 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7821
7822         git-version-gen: use (...) rather than sh -c '...'
7823         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7824         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7825
7826 2011-01-03  Jim Meyering  <meyering@redhat.com>
7827
7828         git-version-gen: convert leading TABs to spaces
7829         * build-aux/git-version-gen: Expand leading TABs.
7830
7831         git-version-gen: handle failed "git rev-list"
7832         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7833         from git and proceeding as if it had succeeded but printed no SHA1
7834         checksums, suppress the diagnostic and handle the failure.
7835         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7836
7837         git-version-gen: include command name in one more diagnostic
7838         * build-aux/git-version-gen: When the required .tarball-version file
7839         was missing or unreadable, you might see the diagnostic from "cat",
7840         but no trace of the name of the invoking script.  Now, you still see
7841         the diagnostic from cat, but also get one from "git-version-gen: ".
7842         Inspired by a patch from Bruce Korb.
7843
7844         update-copyright: adjust test to match changed code
7845         * tests/test-update-copyright.sh: Change test's expected output
7846         to match new actual output.
7847
7848 2011-01-02  Bruno Haible  <bruno@clisp.org>
7849
7850         getlogin_r: Avoid test failure on HP-UX 11.
7851         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7852         ERANGE when the second argument is zero.
7853         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7854         portability problem.
7855
7856 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7857
7858         * build-aux/update-copyright: doc Simon's changes
7859
7860 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7861
7862         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7863         environment variable.
7864
7865 2011-01-02  Bruno Haible  <bruno@clisp.org>
7866
7867         unigbrk: Avoid gcc warnings.
7868         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7869         unused variable.
7870         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7871         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7872         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7873         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7874         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7875         Change type of first argument to 'const char *'.
7876         (main): Remove unused variable.
7877         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7878         type of first argument to 'const char *'.
7879         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7880         Likewise.
7881         (main): Change type of variable 's'.
7882         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7883         to 'int'.
7884
7885 2011-01-02  Bruno Haible  <bruno@clisp.org>
7886
7887         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7888         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7889         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7890         bug.
7891         * lib/pwrite.c: Undo 2010-12-31 patch.
7892         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7893
7894 2011-01-02  Bruno Haible  <bruno@clisp.org>
7895
7896         pread: Fix test whether it works.
7897         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7898
7899 2011-01-02  Bruno Haible  <bruno@clisp.org>
7900
7901         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7902         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7903         ends in "6". Don't require a specific month name. Try also the locale
7904         names found on HP-UX 11 and Solaris 7.
7905
7906 2011-01-02  Bruno Haible  <bruno@clisp.org>
7907
7908         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7909         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7910         C linkage.
7911         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7912
7913 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7914
7915         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7916         for consistency, since the "cluster" term is not used elsewhere.
7917         * lib/unigbrk.in.h: Update name.
7918         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7919         * lib/unigbrk/u16-grapheme-next.c: Update name.
7920         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7921         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7922         * lib/unigbrk/u32-grapheme-next.c: Update name.
7923         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7924         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7925         * lib/unigbrk/u8-grapheme-next.c: Update name.
7926         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7927         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7928         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7929         Suggested by Bruno Haible.
7930
7931 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7932
7933         Remove module 'u8-grapheme-len' as too redundant with
7934         'u8-grapheme-next'.
7935         * modules/unigbrk/u8-grapheme-len: Delete file.
7936         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7937         * lib/unigbrk.in.h: Remove prototype for deleted function.
7938         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7939         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7940
7941         Remove module 'u16-grapheme-len' as too redundant with
7942         'u16-grapheme-next'.
7943         * modules/unigbrk/u16-grapheme-len: Delete file.
7944         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7945         * lib/unigbrk.in.h: Remove prototype for deleted function.
7946         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7947         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7948
7949         Remove module 'u32-grapheme-len' as too redundant with
7950         'u32-grapheme-next'.
7951         * modules/unigbrk/u32-grapheme-len: Delete file.
7952         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7953         * lib/unigbrk.in.h: Remove prototype for deleted function.
7954         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7955         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7956
7957         Suggested by Bruno Haible.
7958
7959 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7960
7961         * unigbrk.in.h: Fix typo: "ben" => "been".
7962         Reported by Bruno Haible.
7963
7964 2011-01-01  Jim Meyering  <meyering@redhat.com>
7965
7966         maint: update almost all copyright ranges to include 2011
7967         Run the new "make update-copyright" rule.
7968
7969 2011-01-01  Jim Meyering  <meyering@redhat.com>
7970
7971         maint: update-copyright: exempt doc/INSTALL*
7972         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7973         since they are generated.  Suggested by Bruno Haible.
7974
7975 2011-01-01  Jim Meyering  <meyering@redhat.com>
7976
7977         maint: refine the update-copyright rule
7978         * Makefile (update-copyright): Also exclude any file that includes
7979         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7980         code that merely generates the comment.
7981
7982 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7983
7984         New module 'u8-grapheme-len'.
7985         * modules/unigbrk/u8-grapheme-len: New file.
7986         * modules/unigbrk/u8-grapheme-len-tests: New file.
7987         * lib/unigbrk.in.h: Add prototype for new function.
7988         * lib/unigbrk/u8-grapheme-len.c: New file.
7989         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7990
7991         New module 'u16-grapheme-len'.
7992         * modules/unigbrk/u16-grapheme-len: New file.
7993         * modules/unigbrk/u16-grapheme-len-tests: New file.
7994         * lib/unigbrk.in.h: Add prototype for new function.
7995         * lib/unigbrk/u16-grapheme-len.c: New file.
7996         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7997
7998         New module 'u32-grapheme-len'.
7999         * modules/unigbrk/u32-grapheme-len: New file.
8000         * modules/unigbrk/u32-grapheme-len-tests: New file.
8001         * lib/unigbrk.in.h: Add prototype for new function.
8002         * lib/unigbrk/u32-grapheme-len.c: New file.
8003         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8004
8005         New module 'u8-grapheme-next'.
8006         * modules/unigbrk/u8-grapheme-next: New file.
8007         * modules/unigbrk/u8-grapheme-next-tests: New file.
8008         * lib/unigbrk.in.h: Add prototype for new function.
8009         * lib/unigbrk/u8-grapheme-next.c: New file.
8010         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8011
8012         New module 'u16-grapheme-next'.
8013         * modules/unigbrk/u16-grapheme-next: New file.
8014         * modules/unigbrk/u16-grapheme-next-tests: New file.
8015         * lib/unigbrk.in.h: Add prototype for new function.
8016         * lib/unigbrk/u16-grapheme-next.c: New file.
8017         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8018
8019         New module 'u32-grapheme-next'.
8020         * modules/unigbrk/u32-grapheme-next: New file.
8021         * modules/unigbrk/u32-grapheme-next-tests: New file.
8022         * lib/unigbrk.in.h: Add prototype for new function.
8023         * lib/unigbrk/u32-grapheme-next.c: New file.
8024         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8025
8026         New module 'u8-grapheme-prev'.
8027         * modules/unigbrk/u8-grapheme-prev: New file.
8028         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8029         * lib/unigbrk.in.h: Add prototype for new function.
8030         * lib/unigbrk/u8-grapheme-prev.c: New file.
8031         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8032
8033         New module 'u16-grapheme-prev'.
8034         * modules/unigbrk/u16-grapheme-prev: New file.
8035         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8036         * lib/unigbrk.in.h: Add prototype for new function.
8037         * lib/unigbrk/u16-grapheme-prev.c: New file.
8038         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8039
8040         New module 'u32-grapheme-prev'.
8041         * modules/unigbrk/u32-grapheme-prev: New file.
8042         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8043         * lib/unigbrk.in.h: Add prototype for new function.
8044         * lib/unigbrk/u32-grapheme-prev.c: New file.
8045         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8046
8047         New module 'u8-grapheme-breaks'.
8048         * modules/unigbrk/u8-grapheme-breaks: New file.
8049         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8050         * lib/unigbrk.in.h: Add prototype for new function.
8051         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8052         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8053
8054         New module 'u16-grapheme-breaks'.
8055         * modules/unigbrk/u16-grapheme-breaks: New file.
8056         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8057         * lib/unigbrk.in.h: Add prototype for new function.
8058         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8059         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8060
8061         New module 'u32-grapheme-breaks'.
8062         * modules/unigbrk/u32-grapheme-breaks: New file.
8063         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8064         * lib/unigbrk.in.h: Add prototype for new function.
8065         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8066         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8067
8068         New module 'ulc-grapheme-breaks'.
8069         * modules/unigbrk/ulc-grapheme-breaks: New file.
8070         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8071         * m4/locale-ar.m4: New file.
8072         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8073         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8074         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8075
8076 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8077
8078         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8079         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8080         modified how this file was generated before I initially submitted
8081         the module, but failed to regenerate it.  This meant that several
8082         of the level2 entries were wrong.
8083         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8084         Remove the division-by-2 that is folded into the table now that
8085         gbrkprop.h has been regenerated properly.  Now -1 entries are
8086         handled correctly.
8087
8088         New module 'unigbrk/uc-gbrk-prop-tests'.
8089         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8090         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8091         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8092         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8093
8094 2011-01-01  Bruno Haible  <bruno@clisp.org>
8095
8096         Avoid use of hexadecimal escapes.
8097         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8098         instead of hexadecimal escapes.
8099
8100 2011-01-01  Jim Meyering  <meyering@redhat.com>
8101
8102         maint: new rule to update copyright year ranges
8103         * Makefile (update-copyright): New rule.
8104
8105         maint: indent with TABs in Makefile
8106         * Makefile: Expand leading sequences of spaces to TABs
8107
8108         version-etc: update the copyright year it reports
8109         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8110
8111 2010-12-31  Bruno Haible  <bruno@clisp.org>
8112
8113         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8114         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8115         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8116         zero.
8117
8118 2010-12-31  Bruno Haible  <bruno@clisp.org>
8119
8120         pwrite: Work around HP-UX 11.11 bug.
8121         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8122         works and set REPLACE_PWRITE if not.
8123         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8124         function.
8125         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8126
8127 2010-12-31  Bruno Haible  <bruno@clisp.org>
8128
8129         pread: Work around HP-UX 11 bugs.
8130         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8131         and set REPLACE_PREAD if not.
8132         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8133
8134 2010-12-31  Eric Blake  <eblake@redhat.com>
8135
8136         nl_langinfo: fix YESEXPR on Irix 6.5
8137         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8138         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8139         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8140         it.
8141
8142 2010-12-31  Bruno Haible  <bruno@clisp.org>
8143
8144         iconv: Document HP-UX 11 bug.
8145         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8146
8147 2010-12-31  Bruno Haible  <bruno@clisp.org>
8148
8149         ldexpl: Fix link error on HP-UX 11.
8150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8151         LDEXPL_LIBM, using $ISNANL_LIBM.
8152
8153 2010-12-31  Eric Blake  <eblake@redhat.com>
8154
8155         ftello: avoid compilation failure with SunStudio c89
8156         * lib/ftello.c (ftello): Use lseek, not llseek.
8157
8158         tests: avoid failing coreutils tests on cygwin
8159         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8160         (create_exe_shims_): Return 0 when skipping.
8161
8162 2010-12-31  Bruno Haible  <bruno@clisp.org>
8163
8164         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8165         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8166
8167 2010-12-31  Bruno Haible  <bruno@clisp.org>
8168
8169         waitpid: Fix link error in C++ mode.
8170         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8171
8172 2010-12-31  Bruno Haible  <bruno@clisp.org>
8173
8174         isnan: Use GCC built-ins when possible.
8175         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8176         __builtin_isnan.
8177         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8178         (isnan): Define using GCC built-ins for GCC >= 4.0.
8179
8180 2010-12-31  Bruno Haible  <bruno@clisp.org>
8181
8182         isnand: Fix mistake.
8183         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8184         __builtin_isnand.
8185
8186 2010-12-31  Bruno Haible  <bruno@clisp.org>
8187
8188         open: Avoid C++ error on HP-UX 11.
8189         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8190
8191 2010-12-31  Bruno Haible  <bruno@clisp.org>
8192
8193         time_r: Add missing declarations on HP-UX 11.
8194         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8195         instead of HAVE_LOCALTIME_R.
8196         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8197         HAVE_LOCALTIME_R always.
8198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8199         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8200         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8201         HAVE_LOCALTIME_R.
8202         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8203         * doc/posix-functions/localtime_r.texi: Likewise.
8204
8205 2010-12-29  Eric Blake  <eblake@redhat.com>
8206
8207         mountlist: tweak previous commit
8208         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8209         Reported by Paul Eggert.
8210
8211         mountlist: fix local drive detection on cygwin
8212         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8213         that works for cygwin.
8214
8215 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8216
8217         ftoastr, snprintf: ftoastr + snprintf module
8218         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8219         since the snprintf module now should be good enough here.
8220         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8221         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8222         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8223         GNULIB_SNPRINTF only for the test directory, and the latter
8224         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8225         seems to suffice by itself.
8226
8227 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         alloca: one step towards thread-safety
8230         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8231         need for a static variable.  All callers changed.  This does not
8232         make the alloca replacement thread-safe, but it's one step.
8233
8234         tests: minor indenting change
8235         * tests/init.sh: Sync from coreutils housekeeping patch
8236         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8237         to keep lines within 80 columns.
8238
8239 2010-12-28  Jim Meyering  <meyering@redhat.com>
8240
8241         regex: don't infloop on persistent failing calloc
8242         * lib/regexec.c (build_trtable): Return failure indication upon
8243         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8244         In glibc, this was fixed for version 2.13:
8245         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8246
8247 2010-12-28  Bruno Haible  <bruno@clisp.org>
8248             Paul Eggert <eggert@cs.ucla.edu>
8249
8250         linkat: Make implementation robust against system behaviour variations.
8251         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8252         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8253         way, and to -2 if it needs a generic runtime test.
8254         * lib/linkat.c (solaris_optimized_link_immediate,
8255         solaris_optimized_link_follow): New functions.
8256         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8257         (check_same_link): Use it.
8258
8259 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8260
8261         New module 'unigbrk/base'.
8262         * modules/unigbrk/base: New file.
8263         * lib/unigbrk.in.h: New file.
8264
8265         New module 'unigbrk/uc-gbrk-prop'.
8266         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8267         * modules/unigbrk/uc-gbrk-prop: New file.
8268         * lib/unigbrk/gbrkprop.h: New file.
8269         * lib/unigbrk/uc-gbrk-prop.c: New file.
8270
8271         New module 'unigbrk/uc-is-grapheme-break'.
8272         * modules/unigbrk/uc-is-grapheme-break: New file.
8273         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8274         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8275         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8276         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8277         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8278
8279         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8280
8281 2010-12-27  Bruno Haible  <bruno@clisp.org>
8282
8283         linkat test: Avoid failure on Solaris 11 2010-11.
8284         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8285
8286 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8287
8288         utimens: work around glibc rounding bug on more platforms
8289         * lib/utimens.c (fdutimens): Work around rounding bug even if
8290         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8292
8293 2010-12-27  Bruno Haible  <bruno@clisp.org>
8294
8295         select tests: Improve comments.
8296         * tests/test-select.c (do_select): Add comments.
8297
8298 2010-12-27  Bruno Haible  <bruno@clisp.org>
8299
8300         select tests: Safer way of handling timeout.
8301         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8302         at every invocation.
8303
8304 2010-12-27  Bruno Haible  <bruno@clisp.org>
8305
8306         select tests: Use 'bool' where appropriate.
8307         * tests/test-select.c (connect_to_socket): Change argument type to
8308         'bool'.
8309
8310 2010-12-27  Bruno Haible  <bruno@clisp.org>
8311
8312         select tests: Use existing modules.
8313         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8314         (configure.ac): Don't test for unistd.h.
8315         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8316         declared in <unistd.h>.
8317
8318 2010-12-27  Bruno Haible  <bruno@clisp.org>
8319
8320         mbrtowc: Work around a Solaris 7 bug.
8321         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8322         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8323         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8324         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8325         MBRTOWC_NULL_ARG1_BUG.
8326         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8327         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8328         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8329         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8330
8331 2010-12-27  Jim Meyering  <meyering@redhat.com>
8332
8333         read-file.c: tweak syntax
8334         * lib/read-file.c (fread_file): Remove space after "*" in function
8335         definitions.
8336
8337 2010-12-27  Bruno Haible  <bruno@clisp.org>
8338
8339         times test: Avoid gcc warnings on OSF/1.
8340         * tests/test-times.c (main): Cast printf arguments from clock_t to
8341         'long int'.
8342
8343 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8344
8345         utimens: work around glibc rounding bug on older Linux kernels
8346         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8347         on Linux with a glibc whose utimes might not work, then work
8348         around a longstanding glibc bug involving rounding rather than
8349         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8351
8352 2010-12-26  Bruno Haible  <bruno@clisp.org>
8353
8354         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8355         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8356         _GL_CXXALIAS_SYS.
8357         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8358
8359 2010-12-26  Bruno Haible  <bruno@clisp.org>
8360
8361         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8362         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8363         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8364         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8365         looking for the declaration.
8366         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8367         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8368         problem.
8369         * doc/posix-functions/inet_pton.texi: Likewise.
8370
8371 2010-12-26  Bruno Haible  <bruno@clisp.org>
8372
8373         arpa_inet: Use the common idioms with C++ support.
8374         * lib/arpa_inet.in.h: Include c++defs.h.
8375         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8376         support.
8377         * modules/arpa_inet (Depends-on): Add c++defs.
8378         (Makefile.am): Substitute the contents of c++defs.h.
8379         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8380         * modules/arpa_inet-c++-tests: New file.
8381         * tests/test-arpa_inet-c++.cc: New file.
8382
8383 2010-12-25  Bruno Haible  <bruno@clisp.org>
8384
8385         Fix more C++ link errors on Solaris 8.
8386         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8387         $(LIB_EACCESS).
8388         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8389         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8390         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8391         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8392         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8393
8394 2010-12-25  Bruno Haible  <bruno@clisp.org>
8395
8396         printf-posix: Fix link error when a non-GCC compiler is used.
8397         * lib/stdio.in.h (printf): When not using GCC, override printf
8398         correctly.
8399         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8400
8401 2010-12-25  Bruno Haible  <bruno@clisp.org>
8402
8403         strerror_r-posix: Update doc.
8404         * doc/posix-functions/strerror_r.texi: Update doc about the return
8405         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8406
8407 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8408
8409         utimens: simplify the logic of the previous change
8410         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8411         This should not affect whether the test succeeds or fails.
8412
8413         utimens: configure better on hosts with NFS clock skew
8414         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8415         uses the clock of the local host.  It might use the clock of the
8416         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8418
8419 2010-12-25  Bruno Haible  <bruno@clisp.org>
8420
8421         ptsname test: Avoid failure on Solaris.
8422         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8423         open a pseudo-terminal; don't use BSD-style ptys.
8424         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8425
8426 2010-12-25  Bruno Haible  <bruno@clisp.org>
8427
8428         ptsname: Avoid ERANGE failure on some systems.
8429         * lib/ptsname.c (buffer): Increase size.
8430
8431 2010-12-25  Bruno Haible  <bruno@clisp.org>
8432
8433         rename, renameat: Avoid test failures at NFS mounted locations.
8434         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8435         so that subsequent mkdir calls succeed.
8436
8437 2010-12-25  Bruno Haible  <bruno@clisp.org>
8438
8439         iswblank: Fix C++ link error on Solaris 8.
8440         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8441         _GL_FUNCDECL_SYS.
8442
8443 2010-12-25  Bruno Haible  <bruno@clisp.org>
8444
8445         unistd: Fix C++ link error on Solaris 8.
8446         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8447
8448 2010-12-25  Bruno Haible  <bruno@clisp.org>
8449
8450         readlink doc: Mention an old glibc bug.
8451         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8452
8453 2010-12-25  Bruno Haible  <bruno@clisp.org>
8454
8455         fcntl-h: Fix for use of C++ on glibc systems.
8456         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8457         also on glibc systems in C++ mode.
8458         Reported by Gary V. Vaughan <gary@gnu.org>.
8459
8460 2010-12-25  Bruno Haible  <bruno@clisp.org>
8461
8462         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8463         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8464
8465 2010-12-25  Bruno Haible  <bruno@clisp.org>
8466
8467         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8468         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8469         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8470         test whether truncl works according to ISO C 99 with IEC 60559.
8471         * m4/truncl-ieee.m4: New file.
8472         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8473         m4/signbit.m4.
8474         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8475
8476 2010-12-25  Bruno Haible  <bruno@clisp.org>
8477
8478         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8479         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8480         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8481         test whether ceill works according to ISO C 99 with IEC 60559.
8482         * m4/ceill-ieee.m4: New file.
8483         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8484         m4/signbit.m4.
8485         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8486
8487 2010-12-25  Bruno Haible  <bruno@clisp.org>
8488
8489         Ensure all prerequisites of <wchar.h> are included.
8490         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8491         before <wchar.h>.
8492         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8493         gl_MBRLEN_NUL_RETVAL): Likewise.
8494         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8495         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8496         AC_FUNC_MBRTOWC): Likewise.
8497         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8498         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8499         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8500         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8501         Likewise.
8502         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8503         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8504         (gl_WCHAR_H): Improve comments.
8505         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8506
8507 2010-12-25  Bruno Haible  <bruno@clisp.org>
8508
8509         strtok_r: Fix C syntax error in autoconf macro.
8510         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8511         characters in test program.
8512
8513 2010-12-24  Bruno Haible  <bruno@clisp.org>
8514
8515         ceil, trunc, round: Fix gcc warnings.
8516         * lib/ceil.c (MIN): Undefine before redefining.
8517         * lib/trunc.c (MIN): Likewise.
8518         * lib/round.c (MIN): Likewise.
8519         Include <math.h> first.
8520
8521 2010-12-24  Bruno Haible  <bruno@clisp.org>
8522
8523         select tests: Avoid failures on OSF/1 5.1.
8524         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8525         failure of closing the last socket; it may fail with ECONNRESET.
8526
8527 2010-12-24  Eric Blake  <eblake@redhat.com>
8528
8529         stdint: avoid HP-UX 10.20 preprocessor bug
8530         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8531         than #if.
8532         * tests/test-floor2.c (main): Likewise.
8533         Reported by Peter O'Gorman.
8534
8535         pipe: make obsoletion transition easier
8536         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8537         * modules/pipe (Files): Include revived file.
8538         (Include): Drop reference, to mirror getdate's behavior.
8539
8540 2010-12-24  Bruno Haible  <bruno@clisp.org>
8541
8542         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8543         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8544         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8545         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8546
8547 2010-12-24  Bruno Haible  <bruno@clisp.org>
8548
8549         gethostname: Ensure declaration on NonStop Kernel.
8550         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8551         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8552
8553 2010-12-24  Bruno Haible  <bruno@clisp.org>
8554
8555         sys_select: Ensure all necessary types on NonStop Kernel.
8556         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8557         include <sys/time.h>.
8558         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8559         NonStop Kernel.
8560         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8561
8562 2010-12-24  Bruno Haible  <bruno@clisp.org>
8563
8564         sys_select: Remove unneeded include.
8565         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8566         have <sys/select.h>.
8567
8568 2010-12-24  Bruno Haible  <bruno@clisp.org>
8569
8570         gethostname: Provide a fallback for HOST_NAME_MAX.
8571         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8572         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8573         instead.
8574         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8575
8576 2010-12-24  Bruno Haible  <bruno@clisp.org>
8577
8578         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8579         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8580         (SA_RESTART): Likewise.
8581         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8582
8583 2010-12-24  Bruno Haible  <bruno@clisp.org>
8584
8585         signal: Define NSIG.
8586         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8587         * tests/test-signal.c (nsig): New variable.
8588         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8589
8590 2010-12-24  Bruno Haible  <bruno@clisp.org>
8591
8592         rename, renameat: Avoid test failures on OSF/1 5.1.
8593         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8594         alternative error codes.
8595         * tests/test-renameat.c (main): Likewise.
8596
8597 2010-12-24  Bruno Haible  <bruno@clisp.org>
8598
8599         *printf: Detect large precisions bug on Solaris 10/SPARC.
8600         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8601         by Paul Eggert.
8602         * tests/test-snprintf-posix.h (test_function): Add this test code here
8603         too.
8604         * tests/test-sprintf-posix.h (test_function): Likewise.
8605         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8606         * tests/test-vasprintf-posix.c (test_function): Likewise.
8607         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8608         around by gnulib.
8609         * doc/posix-functions/printf.texi: Likewise.
8610         * doc/posix-functions/snprintf.texi: Likewise.
8611         * doc/posix-functions/sprintf.texi: Likewise.
8612         * doc/posix-functions/vfprintf.texi: Likewise.
8613         * doc/posix-functions/vprintf.texi: Likewise.
8614         * doc/posix-functions/vsnprintf.texi: Likewise.
8615         * doc/posix-functions/vsprintf.texi: Likewise.
8616         * doc/posix-functions/dprintf.texi: Undo last commit.
8617         * doc/posix-functions/vdprintf.texi: Likewise.
8618
8619 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8620
8621         tests: port test-fdutimensat.c to Solaris 8
8622         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8623         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8624         On Solaris 8, it fails with errno == ENOSYS, because there is no
8625         futimens (so it can't use the fd), and there is no lutimens (so it
8626         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8627
8628         vsnprintf: make more consistent with snprintf; doc fixes
8629
8630         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8631         the byte count return problem was promoted from the snprintf-posix
8632         to the snprintf module.
8633         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8634         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8635         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8636         * tests/test-snprintf.c (main): Check the byte count returned.
8637         * tests/test-vsnprintf.c (main): Likewise.
8638
8639 2010-12-23  Eric Blake  <eblake@redhat.com>
8640
8641         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8642         * modules/sigpipe (License): Relax license.
8643
8644 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8645
8646         doc: document Solaris printf bug with large float precisions
8647         * doc/posix-functions/dprintf.texi (dprintf):
8648         * doc/posix-functions/fprintf.texi (fprintf):
8649         * doc/posix-functions/printf.texi (printf):
8650         * doc/posix-functions/snprintf.texi (snprintf):
8651         * doc/posix-functions/sprintf.texi (sprintf):
8652         * doc/posix-functions/vdprintf.texi (vdprintf):
8653         * doc/posix-functions/vfprintf.texi (vfprintf):
8654         * doc/posix-functions/vprintf.texi (vprintf):
8655         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8656         * doc/posix-functions/vsprintf.texi (vsprintf):
8657         Mention that these functions mishandle large floating point
8658         precisions on Solaris 10.  The same bug is also present in Solaris
8659         8, and I assume earlier.  This causes "cd gnulib-tests; make
8660         check" to fail on Solaris 8 (and I assume, later) when building
8661         the latest coreutils, in test-vasprintf-posix's call to
8662         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8663         the wide flavors (e.g., wprintf) so this patch just updates the
8664         documentation for the narrow ones.
8665
8666         test-posixtm.c: add two tests
8667         * tests/test-posixtm.c: Add two tests, to highlight the
8668         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8669         around this bug; this is merely to document it.
8670
8671 2010-12-22  Bruno Haible  <bruno@clisp.org>
8672
8673         getlogin_r: Work around portability problem on OSF/1.
8674         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8675         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8676         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8677         test for a truncated result.
8678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8679         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8680         * modules/getlogin_r (Depends-on): Add memchr.
8681         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8682
8683 2010-12-22  Bruno Haible  <bruno@clisp.org>
8684
8685         ptsname: Avoid test failure on OSF/1 5.1.
8686         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8687         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8688         (same_slave): New function.
8689         (main): Use it to compare ptsname's result with the expected file name.
8690
8691 2010-12-22  Bruno Haible  <bruno@clisp.org>
8692
8693         Port extended stdio modules to HP NonStop Kernel.
8694         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8695         macros.
8696         * lib/fbufmode.c: Update comments.
8697         * lib/fflush.c: Likewise.
8698         * lib/fpurge.c: Likewise.
8699         * lib/freadable.c: Likewise.
8700         * lib/freadahead.c: Likewise.
8701         * lib/freading.c: Likewise.
8702         * lib/freadptr.c: Likewise.
8703         * lib/freadseek.c: Likewise.
8704         * lib/fseeko.c: Likewise.
8705         * lib/fseterr.c: Likewise.
8706         * lib/fwritable.c: Likewise.
8707         * lib/fwriting.c: Likewise.
8708         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8709
8710 2010-12-22  Bruno Haible  <bruno@clisp.org>
8711
8712         ttyname_r: Work around bug on OSF/1 5.1.
8713         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8714         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8715         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8716         present.
8717         * lib/ttyname_r.c (ttyname_r): Update comments.
8718
8719 2010-12-22  Bruno Haible  <bruno@clisp.org>
8720
8721         round: Implement result sign according to IEEE 754.
8722         * lib/round.c (MIN, MINUS_ZERO): New macros.
8723         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8724         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8725         * tests/test-round-ieee.c (main): Likewise.
8726         * tests/test-roundl-ieee.c (main): Likewise.
8727
8728         trunc: Implement result sign according to IEEE 754.
8729         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8730         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8731         * tests/test-trunc2.c: Include minus-zero.h.
8732         (MINUS_ZERO): New macro.
8733         (trunc_reference): Keep in sync with lib/trunc.c.
8734         * tests/test-truncf2.c: Include minus-zero.h.
8735         (MINUS_ZERO): New macro.
8736         (truncf_reference): Keep in sync with lib/trunc.c.
8737         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8738         * tests/test-trunc-ieee.c (main): Likewise.
8739         * tests/test-truncl-ieee.c (main): Likewise.
8740
8741         ceil: Implement result sign according to IEEE 754.
8742         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8743         (FUNC): Return -0.0 for -1 < x < 0.
8744         * tests/test-ceil2.c: Include minus-zero.h.
8745         (MINUS_ZERO): New macro.
8746         (ceil_reference): Keep in sync with lib/ceil.c.
8747         * tests/test-ceilf2.c: Include minus-zero.h.
8748         (MINUS_ZERO): New macro.
8749         (ceilf_reference): Keep in sync with lib/ceil.c.
8750         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8751         * tests/test-ceil-ieee.c (main): Likewise.
8752         * tests/test-ceill-ieee.c (main): Likewise.
8753
8754         floor: Implement result sign according to IEEE 754.
8755         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8756         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8757         * tests/test-floorf2.c (floorf_reference): Likewise.
8758         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8759         * tests/test-floor-ieee.c (main): Likewise.
8760         * tests/test-floorl-ieee.c (main): Likewise.
8761
8762 2010-12-22  Bruno Haible  <bruno@clisp.org>
8763
8764         getaddrinfo: Update doc.
8765         * doc/posix-functions/gai_strerror.texi: Return type is also different
8766         on AIX and HP-UX.
8767
8768 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8769
8770         getaddrinfo, inet_ntop: Update doc for Solaris.
8771         * doc/posix-functions/gai_strerror.texi: Return type is also an
8772         issue on Solaris 9 and earlier.
8773         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8774         on Solaris 10 and earlier.
8775
8776 2010-12-21  Bruno Haible  <bruno@clisp.org>
8777
8778         New module 'roundl-ieee'.
8779         * modules/roundl-ieee: New file.
8780         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8781         test whether roundl works according to ISO C 99 with IEC 60559.
8782         * m4/roundl-ieee.m4: New file.
8783         * modules/roundl-ieee-tests: New file.
8784         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8785         * tests/test-roundl.c (main): Remove signbit tests.
8786         * modules/roundl-tests (Depends-on): Remove signbit.
8787         * doc/posix-functions/roundl.texi: Mention the new module.
8788
8789 2010-12-21  Bruno Haible  <bruno@clisp.org>
8790
8791         New module 'truncl-ieee'.
8792         * modules/truncl-ieee: New file.
8793         * modules/truncl-ieee-tests: New file.
8794         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8795         * tests/test-truncl.c (main): Remove signbit tests.
8796         * modules/truncl-tests (Depends-on): Remove signbit.
8797         * doc/posix-functions/truncl.texi: Mention the new module.
8798
8799 2010-12-21  Bruno Haible  <bruno@clisp.org>
8800
8801         New module 'ceill-ieee'.
8802         * modules/ceill-ieee: New file.
8803         * modules/ceill-ieee-tests: New file.
8804         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8805         * tests/test-ceill.c (main): Remove signbit tests.
8806         * modules/ceill-tests (Depends-on): Remove signbit.
8807         * doc/posix-functions/ceill.texi: Mention the new module.
8808
8809 2010-12-21  Bruno Haible  <bruno@clisp.org>
8810
8811         New module 'floorl-ieee'.
8812         * modules/floorl-ieee: New file.
8813         * modules/floorl-ieee-tests: New file.
8814         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8815         * tests/test-floorl.c (main): Remove signbit tests.
8816         * modules/floorl-tests (Depends-on): Remove signbit.
8817         * doc/posix-functions/floorl.texi: Mention the new module.
8818
8819 2010-12-21  Bruno Haible  <bruno@clisp.org>
8820
8821         New module 'round-ieee'.
8822         * modules/round-ieee: New file.
8823         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8824         whether round works according to ISO C 99 with IEC 60559.
8825         * m4/round-ieee.m4: New file.
8826         * modules/round-ieee-tests: New file.
8827         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8828         * tests/test-round1.c (main): Remove signbit tests.
8829         * modules/round-tests (Depends-on): Remove 'signbit'.
8830         * doc/posix-functions/round.texi: Mention the new module.
8831
8832 2010-12-21  Bruno Haible  <bruno@clisp.org>
8833
8834         New module 'trunc-ieee'.
8835         * modules/trunc-ieee: New file.
8836         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8837         whether trunc works according to ISO C 99 with IEC 60559.
8838         * m4/trunc-ieee.m4: New file.
8839         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8841         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8842         * modules/trunc-ieee-tests: New file.
8843         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8844         * tests/test-trunc1.c (main): Remove signbit tests.
8845         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8846         * doc/posix-functions/trunc.texi: Mention the new module.
8847
8848 2010-12-21  Bruno Haible  <bruno@clisp.org>
8849
8850         New module 'ceil-ieee'.
8851         * modules/ceil-ieee: New file.
8852         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8853         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8854         ISO C 99 with IEC 60559.
8855         * m4/ceil-ieee.m4: New file.
8856         * modules/ceil (Files): Add lib/ceil.c.
8857         (Depends-on): Add 'float'.
8858         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8859         * lib/math.in.h (ceil): New declaration.
8860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8861         REPLACE_CEIL.
8862         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8863         * modules/ceil-ieee-tests: New file.
8864         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8865         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8866         * doc/posix-functions/ceil.texi: Mention the new module.
8867
8868 2010-12-21  Bruno Haible  <bruno@clisp.org>
8869
8870         New module 'floor-ieee'.
8871         * modules/floor-ieee: New file.
8872         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8873         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8874         ISO C 99 with IEC 60559.
8875         * m4/floor-ieee.m4: New file.
8876         * modules/floor (Files): Add lib/floor.c.
8877         (Depends-on): Add 'float'.
8878         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8879         * lib/math.in.h (floor): New declaration.
8880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8881         REPLACE_FLOOR.
8882         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8883         * modules/floor-ieee-tests: New file.
8884         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8885         * tests/test-math-c++.cc: Check the signature of 'floor'.
8886         * doc/posix-functions/floor.texi: Mention the new module.
8887
8888 2010-12-21  Bruno Haible  <bruno@clisp.org>
8889
8890         New module 'roundf-ieee'.
8891         * modules/roundf-ieee: New file.
8892         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8893         test whether roundf works according to ISO C 99 with IEC 60559.
8894         * m4/roundf-ieee.m4: New file.
8895         * modules/roundf-ieee-tests: New file.
8896         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8897         * tests/test-roundf1.c (main): Remove signbit tests.
8898         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8899         * doc/posix-functions/roundf.texi: Mention the new module.
8900
8901 2010-12-21  Bruno Haible  <bruno@clisp.org>
8902
8903         New module 'truncf-ieee'.
8904         * modules/truncf-ieee: New file.
8905         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8906         test whether truncf works according to ISO C 99 with IEC 60559.
8907         * m4/truncf-ieee.m4: New file.
8908         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8910         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8911         * modules/truncf-ieee-tests: New file.
8912         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8913         * tests/test-truncf1.c (main): Remove signbit tests.
8914         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8915         * doc/posix-functions/truncf.texi: Mention the new module.
8916
8917 2010-12-21  Bruno Haible  <bruno@clisp.org>
8918
8919         New module 'ceilf-ieee'.
8920         * modules/ceilf-ieee: New file.
8921         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8922         test whether ceilf works according to ISO C 99 with IEC 60559.
8923         * m4/ceilf-ieee.m4: New file.
8924         * modules/ceilf-ieee-tests: New file.
8925         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8926         * tests/test-ceilf1.c (main): Remove signbit tests.
8927         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8928         * doc/posix-functions/ceilf.texi: Mention the new module.
8929
8930 2010-12-21  Bruno Haible  <bruno@clisp.org>
8931
8932         New module 'floorf-ieee'.
8933         * modules/floorf-ieee: New file.
8934         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8935         test whether floorf works according to ISO C 99 with IEC 60559.
8936         * m4/floorf-ieee.m4: New file.
8937         * modules/floorf-ieee-tests: New file.
8938         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8939         * tests/test-floorf1.c (main): Remove signbit tests.
8940         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8941         * doc/posix-functions/floorf.texi: Mention the new module.
8942
8943 2010-12-21  Bruno Haible  <bruno@clisp.org>
8944
8945         Support for minus zero in autoconf macros.
8946         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8947         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8948         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8949         * tests/minus-zero.h: Update comments.
8950
8951 2010-12-21  Bruno Haible  <bruno@clisp.org>
8952
8953         Tests for module 'ceil'.
8954         * modules/ceil-tests: New file.
8955         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8956         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8957
8958 2010-12-21  Bruno Haible  <bruno@clisp.org>
8959
8960         Tests for module 'floor'.
8961         * modules/floor-tests: New file.
8962         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8963         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8964
8965 2010-12-21  Bruno Haible  <bruno@clisp.org>
8966
8967         math: Fix indentation.
8968         * lib/math.in.h (floorf): Fix indentation.
8969
8970 2010-12-21  Bruno Haible  <bruno@clisp.org>
8971
8972         Fix cross-compilation guesses on Solaris.
8973         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8974         not match "solaris2.10".
8975         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8976         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8977         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8978
8979 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8980
8981         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8982         This fixes a problem observed with the latest coreutils snapshot
8983         that caused a test to fail on Solaris 8.  src/csplit.c's call
8984         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8985         earlier, instead of returning the number of bytes that would have
8986         been generated; this causes csplit to incorrectly report memory
8987         exhaustion.
8988         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8989         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8990         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8991         comments to match.
8992         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8993         Fix typo in matching older versions of Solaris: "solaris2.10"
8994         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8995         only for guessing while cross-compiling.
8996         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8997
8998 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8999
9000         ftoastr: fix comment again
9001         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9003         Also, simplify example a bit by using flags = 0.
9004
9005 2010-12-20  Bruno Haible  <bruno@clisp.org>
9006
9007         round*, trunc*: Update documentation regarding glibc.
9008         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9009         * doc/posix-functions/round.texi: Likewise.
9010         * doc/posix-functions/roundl.texi: Likewise.
9011         * doc/posix-functions/truncf.texi: Likewise.
9012         * doc/posix-functions/trunc.texi: Likewise.
9013         * doc/posix-functions/truncl.texi: Likewise.
9014
9015 2010-12-20  Bruno Haible  <bruno@clisp.org>
9016
9017         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9018         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9019         * doc/posix-functions/round.texi: Likewise.
9020         * doc/posix-functions/roundl.texi: Likewise.
9021
9022 2010-12-20  Bruno Haible  <bruno@clisp.org>
9023
9024         ttyname_r: Add missing declaration on HP-UX 11.
9025         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9026         HAVE_TTYNAME_R.
9027         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9028         declared. Set HAVE_TTYNAME_R always.
9029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9030         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9031         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9032         HAVE_TTYNAME_R.
9033         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9034
9035 2010-12-20  Bruno Haible  <bruno@clisp.org>
9036
9037         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9038         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9039         * doc/posix-functions/getlogin_r.texi: Likewise.
9040         * tests/test-getlogin.c: Include <errno.h>.
9041         (main): Avoid test failure on HP-UX 11.11.
9042         * tests/test-getlogin_r.c (main): Likewise.
9043
9044 2010-12-20  Bruno Haible  <bruno@clisp.org>
9045
9046         getlogin_r: Add missing declaration on HP-UX 11.
9047         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9048         declared also when it exists as a function.
9049         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9050
9051 2010-12-20  Bruno Haible  <bruno@clisp.org>
9052
9053         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9054         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9055         through wcrtomb.
9056
9057 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9058
9059         ftoastr: fix comment
9060         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9061         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9062
9063 2010-12-19  Bruno Haible  <bruno@clisp.org>
9064
9065         isnan: Ensure it is a macro.
9066         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9067         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9068         Solaris.
9069
9070 2010-12-19  Bruno Haible  <bruno@clisp.org>
9071
9072         ldexpl test: Fix link error on OSF/1 5.1.
9073         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9074
9075 2010-12-19  Bruno Haible  <bruno@clisp.org>
9076
9077         wctype: Make it work in C++ mode on OSF/1 5.1.
9078         * lib/wctype.in.h (iswblank): Declare but not define here.
9079         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9080         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9081         * modules/wctype (Files): Add lib/iswblank.c.
9082
9083 2010-12-19  Bruno Haible  <bruno@clisp.org>
9084
9085         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9086         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9087         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9088
9089 2010-12-19  Bruno Haible  <bruno@clisp.org>
9090
9091         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9092         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9093         _POSIX_PII_SOCKET.
9094         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9095         * doc/posix-functions/recvfrom.texi: Likewise.
9096         * doc/posix-functions/send.texi: Likewise.
9097         * doc/posix-functions/sendto.texi: Likewise.
9098
9099 2010-12-19  Bruno Haible  <bruno@clisp.org>
9100
9101         tcgetsid: Add missing declaration on OSF/1 5.1.
9102         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9103         HAVE_TCGETSID.
9104         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9105         Don't set HAVE_TCGETSID.
9106         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9107         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9108         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9109         HAVE_TCGETSID.
9110         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9111
9112 2010-12-19  Bruno Haible  <bruno@clisp.org>
9113
9114         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9115         * lib/stdio.in.h: During the include_next statement, let recursive
9116         includes of this file include only the system header file.
9117
9118 2010-12-19  Bruno Haible  <bruno@clisp.org>
9119
9120         iconv_open: Fix regression from 2010-12-04.
9121         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9122         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9123
9124 2010-12-19  Bruno Haible  <bruno@clisp.org>
9125
9126         stdbool test: Avoid a gcc warning.
9127         * tests/test-stdbool.c (main): Fail if e1 is false.
9128         Reported by Jim Meyering.
9129
9130 2010-12-19  Jim Meyering  <meyering@redhat.com>
9131
9132         setenv: restore to working order
9133         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9134         mistakenly removed.
9135         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9136         HAVE_SETENV.
9137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9138         HAVE_SETENV.
9139
9140 2010-12-19  Bruno Haible  <bruno@clisp.org>
9141
9142         Document some different function declarations on OSF/1 5.1.
9143         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9144         * doc/posix-functions/inet_ntop.texi: Likewise.
9145         * doc/posix-functions/gethostname.texi: Likewise.
9146         * lib/unistd.in.h (gethostname): Update comment.
9147
9148 2010-12-19  Bruno Haible  <bruno@clisp.org>
9149
9150         doc: Mention vasprintf-posix module.
9151         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9152         the 'vasprintf-posix' module.
9153         * doc/glibc-functions/vasprintf.texi: Likewise.
9154
9155 2010-12-19  Bruno Haible  <bruno@clisp.org>
9156
9157         unsetenv: Add missing declaration on OSF/1 5.1.
9158         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9159         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9160         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9162         not HAVE_UNSETENV.
9163         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9164         HAVE_UNSETENV.
9165         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9166
9167 2010-12-19  Bruno Haible  <bruno@clisp.org>
9168
9169         setenv: Add missing declaration on OSF/1 5.1.
9170         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9171         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9172         declared. Don't set HAVE_SETENV.
9173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9174         not HAVE_SETENV.
9175         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9176         HAVE_SETENV.
9177         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9178
9179 2010-12-19  Bruno Haible  <bruno@clisp.org>
9180
9181         nl_langinfo tests: Avoid gcc warning.
9182         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9183
9184 2010-12-19  Bruno Haible  <bruno@clisp.org>
9185
9186         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9187         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9188         _GL_CXXALIAS_SYS.
9189
9190 2010-12-19  Bruno Haible  <bruno@clisp.org>
9191
9192         stdbool: Relax test.
9193         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9194         address to 'bool' work in static initializer, for compilers other than
9195         GCC.
9196
9197 2010-12-19  Bruno Haible  <bruno@clisp.org>
9198
9199         ftello: Add missing declaration on OSF/1 5.1.
9200         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9201         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9203         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9204         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9205
9206 2010-12-19  Bruno Haible  <bruno@clisp.org>
9207
9208         fseeko: Add missing declaration on OSF/1 5.1.
9209         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9212         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9213         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9214
9215 2010-12-19  Bruno Haible  <bruno@clisp.org>
9216
9217         fchdir: Add missing declaration on OSF/1 5.1.
9218         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9221         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9222         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9223
9224 2010-12-19  Bruno Haible  <bruno@clisp.org>
9225
9226         relocatable-prog-wrapper: Separate from relocatable-prog.
9227         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9228         uninstall-relocwrapper rule here.
9229         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9230         Reported by Ian Beckwith <ianb@erislabs.net>.
9231
9232 2010-12-19  Bruno Haible  <bruno@clisp.org>
9233
9234         unistr/u8-mbsnlen: Add missing dependency.
9235         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9236         Reported by Ian Beckwith <ianb@erislabs.net>.
9237
9238 2010-12-19  Bruno Haible  <bruno@clisp.org>
9239
9240         iconv: Make it possible again to use this module without 'iconv-h'.
9241         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9242         if it is not defined.
9243         Reported by Ian Beckwith <ianb@erislabs.net>.
9244
9245 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9246
9247         acl: port to Solaris 8 when copying from tmpfs to ufs
9248         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9249         error number.  Problem observed on Solaris 8 with latest
9250         coreutils, with "mv A B", where A is on a tmpfs file system and B
9251         is on a ufs file system.  This caused coreutils' mv/part-symlink
9252         test to fail.
9253
9254         tests: set fail=0 at start
9255         * tests/init.sh (setup_): Move fail=0 initialization here ...
9256         (mktempd_): ... from here, so that tests can rely on fail being
9257         set to 0 initially.  This fixes a problem in coreutils; see:
9258         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9259
9260 2010-12-18  Bruno Haible  <bruno@clisp.org>
9261
9262         memmem-simple: Stylistic changes.
9263         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9264         Fix preprocessor directive indentation.
9265
9266 2010-12-15  Pádraig Brady <P@draigBrady.com>
9267
9268         memmem, memmem-simple: reorganize and expand empty needle check
9269         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9270         functional checks to memmem-simple so that one has a fully functional
9271         memmem by using just this module.
9272         Restrict the performance only check to the memmem module.
9273         Also expand the empty needle check to ensure the correct
9274         pointer is returned, not just a non NULL pointer.
9275         * doc/glibc-functions/memmem.texi: Rearrange the portability
9276         documentation to correlate with the rearranged checks.
9277         Clarify exactly how the memmem and memmem-simple modules
9278         relate to each other.
9279
9280 2010-12-15  Pádraig Brady <P@draigBrady.com>
9281             Bruno Haible  <bruno@clisp.org>
9282
9283         Improve cross-compilation guesses for uClibc.
9284         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9285         that uClibc does not have the glibc bug.
9286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9287         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9288
9289 2010-12-14  Eric Blake  <eblake@redhat.com>
9290
9291         configmake: provide fallbacks for oldest supported autotools
9292         * m4/configmake.m4: New file.
9293         * modules/configmake (Files): Ship it.
9294         (configure.ac): Use it to guarantee fallbacks.
9295
9296 2010-12-13  Pádraig Brady <P@draigBrady.com>
9297
9298         read-file: Improve handling of large files
9299         * lib/read-file.c (fread_file): Minimize realloc()s
9300         for regular files, and better manage sizes around SIZE_MAX.
9301
9302 2010-12-13  Eric Blake  <eblake@redhat.com>
9303
9304         cloexec, fcntl: relax license
9305         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9306         consent from all contributors.
9307         * modules/fcntl (License): Likewise.
9308
9309 2010-12-10  Bruno Haible  <bruno@clisp.org>
9310
9311         Tests for module 'pipe-posix'.
9312         * modules/pipe-posix-tests: New file.
9313         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9314
9315 2010-12-10  Bruno Haible  <bruno@clisp.org>
9316
9317         pipe-posix: Make it work in C++ mode.
9318         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9319         (pipe): Use common idiom, not a macro definition.
9320         * lib/pipe.c: New file.
9321         * m4/pipe.m4: New file.
9322         * modules/pipe-posix (Description): Enhance.
9323         (Files): Add lib/pipe.c, m4/pipe.m4.
9324         (configure.ac): Invoke gl_FUNC_PIPE.
9325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9326         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9327         * tests/test-unistd-c++.cc: Check the signature of pipe.
9328
9329 2010-12-10  Bruno Haible  <bruno@clisp.org>
9330
9331         Rename module 'pipe' to 'spawn-pipe'.
9332         * modules/spawn-pipe: New file, renamed from modules/pipe.
9333         (Files, configure.ac, Makefile.am): Update.
9334         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9335         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9336         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9337         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9338         "spawn-pipe.h" instead of "pipe.h".
9339         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9340         to gl_SPAWN_PIPE.
9341         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9342         (Files, Makefile.am): Update.
9343         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9344         Update.
9345         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9346         Include "spawn-pipe.h" instead of "pipe.h".
9347         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9348         * lib/javacomp.c: Likewise.
9349         * lib/javaversion.c: Likewise.
9350         * lib/pipe-filter-gi.c: Likewise.
9351         * lib/pipe-filter-ii.c: Likewise.
9352         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9353         * modules/javacomp (Depends-on): Likewise.
9354         * modules/javaversion (Depends-on): Likewise.
9355         * modules/pipe-filter-gi (Depends-on): Likewise.
9356         * modules/pipe-filter-ii (Depends-on): Likewise.
9357         * MODULES.html.sh (Executing programs): Update.
9358         * NEWS: Mention the change.
9359
9360 2010-12-10  Eric Blake  <eblake@redhat.com>
9361
9362         pipe-posix: new module
9363         * modules/pipe-posix: New file.
9364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9365         (gl_UNISTD_H): Check for declaration.
9366         * modules/unistd (Makefile.am): Substitute it.
9367         * lib/unistd.in.h (pipe): Provide it for mingw.
9368         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9369         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9370
9371 2010-12-07  Bruno Haible  <bruno@clisp.org>
9372
9373         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9374         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9375         u8_strcmp_gnu.
9376         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9377
9378 2010-12-06  Bruno Haible  <bruno@clisp.org>
9379
9380         Update internal documentation.
9381         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9382
9383 2010-12-04  Bruno Haible  <bruno@clisp.org>
9384
9385         Put more information about failed tests into the test return codes.
9386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9387         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9388         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9389         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9390         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9391         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9392         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9393         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9394         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9396         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9397         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9398         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9399         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9400         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9401         returns a bit mask.
9402         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9403         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9404         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9405         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9406         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9407         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9410         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9411         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9412         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9413         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9414         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9416         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9417         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9418         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9419         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9420         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9421         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9423         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9425         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9426         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9427         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9428         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9429         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9430         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9431         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9432         gl_PRINTF_PRECISION): Likewise.
9433         * m4/regex.m4 (gl_REGEX): Likewise.
9434         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9436         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9437         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9441         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9442         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9443         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9444         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9445         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9446         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9447         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9448         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9449         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9450         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9451         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9453         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9454         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9455         enumerated value.
9456         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9457
9458 2010-12-04  Bruno Haible  <bruno@clisp.org>
9459
9460         Update for Solaris 11 2010-11.
9461         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9462         Express, released in November 2010.
9463
9464 2010-12-04  Bruno Haible  <bruno@clisp.org>
9465
9466         nproc: Relax license.
9467         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9468         and Paul Eggert.
9469         Requested by Ludovic Courtès <ludo@gnu.org>.
9470
9471 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9472
9473         utimecmp: fine-grained src to nearby coarse-grained dest
9474
9475         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9476         and the source is on a file system with higher-resolution time
9477         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9478         not work, and the time stamps are close together, the algorithm to
9479         determine the exact resolution from the read-back mtime was buggy:
9480         it had a "!=" where it should have had an "==".  This bug has been
9481         in the code ever since it was introduced to gnulib.
9482         Problem reported by Dan Jacobson in
9483         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9484
9485 2010-11-30  Bruno Haible  <bruno@clisp.org>
9486
9487         strerror_r-posix: Fix autoconf test.
9488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9489
9490 2010-11-28  Bruno Haible  <bruno@clisp.org>
9491             Paul Eggert  <eggert@cs.ucla.edu>
9492
9493         Tests for module 'getdomainname'.
9494         * modules/getdomainname-tests: New file.
9495         * tests/test-getdomainname.c: New file, based on
9496         tests/test-gethostname.c.
9497
9498 2010-11-28  Bruno Haible  <bruno@clisp.org>
9499             Paul Eggert  <eggert@cs.ucla.edu>
9500
9501         getdomainname: Use the system function when possible.
9502         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9503         (getdomainname): Replace if needed. Provide the declaration if it is
9504         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9505         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9506         (getdomainname): When the system has getdomainname, call the system
9507         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9508         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9509         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9510         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9511         the function if its second argument is of type 'int' or if it is found
9512         in libnsl.
9513         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9514         <sys/systeminfo.h> and sysinfo().
9515         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9517         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9518         HAVE_GETDOMAINNAME.
9519         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9520         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9521         * doc/glibc-functions/getdomainname.texi: Document the problems with
9522         the getdomainname declaration.
9523
9524 2010-11-28  Bruno Haible  <bruno@clisp.org>
9525
9526         sys_socket: Ensure ss_family field on AIX.
9527         * lib/sys_socket.in.h (ss_family): New macro definition.
9528         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9529         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9530         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9531         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9532         * modules/sys_socket (Makefile.am): Substitute
9533         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9534         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9535
9536 2010-11-27  Bruno Haible  <bruno@clisp.org>
9537
9538         readline: Improve configure output.
9539         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9540         "checking for readline..." result understandable.
9541
9542 2010-11-27  Bruno Haible  <bruno@clisp.org>
9543
9544         *printf-posix: Detect a bug on Solaris 10/x86.
9545         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9546         for floating-point output.
9547         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9548         directive.
9549         * tests/test-snprintf-posix.h (test_function): Likewise.
9550         * tests/test-sprintf-posix.h (test_function): Likewise.
9551         * tests/test-vasprintf-posix.c (test_function): Likewise.
9552         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9553         * doc/posix-functions/printf.texi: Likewise.
9554         * doc/posix-functions/snprintf.texi: Likewise.
9555         * doc/posix-functions/sprintf.texi: Likewise.
9556         * doc/posix-functions/vfprintf.texi: Likewise.
9557         * doc/posix-functions/vprintf.texi: Likewise.
9558         * doc/posix-functions/vsnprintf.texi: Likewise.
9559         * doc/posix-functions/vsprintf.texi: Likewise.
9560         * doc/glibc-functions/obstack_printf.texi: Likewise.
9561         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9562
9563 2010-11-27  Bruno Haible  <bruno@clisp.org>
9564
9565         Fix link error when module libunistring-optional is in use.
9566         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9567         * modules/striconveha-tests (Makefile.am): Likewise.
9568
9569 2010-11-27  Bruno Haible  <bruno@clisp.org>
9570
9571         regex: Mention link dependencies.
9572         * modules/regex (Link): New section.
9573         * modules/rpmatch (Link): Likewise.
9574         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9575
9576 2010-11-27  Bruno Haible  <bruno@clisp.org>
9577
9578         ftoastr: Fix compilation error on Solaris.
9579         * lib/ftoastr.c: Include <config.h>.
9580
9581 2010-11-27  Bruno Haible  <bruno@clisp.org>
9582
9583         getloadavg: Update documentation.
9584         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9585
9586 2010-11-27  Bruno Haible  <bruno@clisp.org>
9587
9588         sys_socket: Fix test whether the functions are declared.
9589         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9590         not <sys/select.h>.
9591
9592 2010-11-27  Bruno Haible  <bruno@clisp.org>
9593
9594         getpass: Make sure to get system declaration on some platforms.
9595         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9596         gl_USE_SYSTEM_EXTENSIONS.
9597         * modules/getpass (Depends-on): Add extensions.
9598
9599 2010-11-26  Bruno Haible  <bruno@clisp.org>
9600
9601         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9602         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9603         'iconv' module is present.
9604         (ICONV_CONST): New macro.
9605         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9606         ICONV_CONST.
9607         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9608         set ICONV_CONST.
9609         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9610         here.
9611         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9612         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9613         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9614         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9615         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9616         present.
9617
9618 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9619
9620         ftoastr: comment fix
9621         * lib/ftoastr.c: "little" -> "little or no" in comment
9622
9623 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9624
9625         stdint: port to GCC 4.3 + OSX + Octave
9626         On this platform, stdint.h is buggy and defines int64_t to long
9627         long int.  The replacement defined it to long int, causing
9628         problems with C++ style name mangling.  Instead, trust the system
9629         definition if INT64_MAX is defined, and likewise for the unsigned
9630         variant.   Problem reported by Jarno Rajahalme in
9631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9632         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9633         and don't mess with int64_t and INT64_MAX in this case.
9634         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9635
9636 2010-11-24  Bruno Haible  <bruno@clisp.org>
9637
9638         doc: Corrections regarding MacOS X 10.4 and 10.5.
9639         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9640         MacOS X.
9641         Reported by Simon Josefsson.
9642
9643 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9644
9645         Uninstall ".bin" files installed by relocwrapper.
9646         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9647         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9648         unless it is already there.
9649
9650 2010-11-21  Bruno Haible  <bruno@clisp.org>
9651
9652         Update for NetBSD 5.0.
9653         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9654         NetBSD; the test fails on NetBSD 5.0.
9655         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9656         about NetBSD.
9657
9658 2010-11-21  Bruno Haible  <bruno@clisp.org>
9659
9660         Update for HP-UX 11.23 and HP-UX 11.31.
9661         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9662         HP-UX.
9663
9664 2010-11-21  Bruno Haible  <bruno@clisp.org>
9665
9666         Update for MacOS X 10.5.
9667         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9668         MacOS X; the test fails on MacOS X 10.5.8.
9669         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9670         about MacOS X.
9671
9672 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9673
9674         bootstrap: add bootstrap_sync option.
9675         See discussion at
9676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9678         * build-aux/bootstrap: Accept --bootstrap-sync to update
9679         bootstrap if it is not identical to the local gnulib's
9680         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9681         enable this by default.  Accept --no-bootstrap-sync to disable
9682         it.
9683
9684 2010-11-20  Bruno Haible  <bruno@clisp.org>
9685
9686         Ensure that <features.h> is included before __GLIBC__ is tested.
9687         * lib/printf-parse.h: Include <features.h>.
9688         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9689         Reported by Mike Frysinger <vapier@gentoo.org>.
9690
9691         Ensure that <features.h> is included before __GLIBC__ is tested.
9692         * lib/wchar.in.h: Include <features.h>.
9693         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9694         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9695         Reported by Mike Frysinger <vapier@gentoo.org>.
9696
9697         Ensure that <features.h> is included before __GLIBC__ is tested.
9698         * lib/arpa_inet.in.h: Include <features.h>.
9699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9700         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9701         Reported by Mike Frysinger <vapier@gentoo.org>.
9702
9703         Ensure that <features.h> is included before __GLIBC__ is tested.
9704         * build-aux/link-warning.h: Include <features.h>.
9705         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9706         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9707         Reported by Mike Frysinger <vapier@gentoo.org>.
9708
9709         Ensure that <features.h> is included before __GLIBC__ is tested.
9710         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9711         Reported by Mike Frysinger <vapier@gentoo.org>.
9712
9713 2010-11-20  Bruno Haible  <bruno@clisp.org>
9714
9715         memmem: Fix autoconf test.
9716         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9717
9718 2010-11-20  Bruno Haible  <bruno@clisp.org>
9719
9720         Port to uClibc.
9721         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9722         * lib/fcntl.in.h: Likewise.
9723         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9724         * lib/mbrtowc.c (mbrtowc): Likewise.
9725         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9726         * lib/strerror_r.c: Likewise.
9727         * lib/unistr/u8-strnlen.c: Likewise.
9728         * lib/vasnprintf.c (decimal_point_char): Likewise.
9729         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9730         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9732         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9733         * tests/test-sigaction.c (handler, main): Likewise.
9734         * lib/freading.h: Treat uClibc like a non-glibc platform.
9735         * lib/freading.c: Likewise.
9736         * lib/gettext.h: Likewise.
9737         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9738         Likewise.
9739         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9740         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9741         * lib/propername.c (proper_name_utf8): Likewise.
9742         * lib/spawn.in.h: Likewise.
9743         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9744         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9745         mem_cd_iconveh_internal): Likewise.
9746         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9747         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9748         strstr, strcasestr): Likewise.
9749         * lib/unicodeio.c (unicode_to_mb): Likewise.
9750         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9751         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9752         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9753         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9754         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9755         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9756         * lib/unistr/u8-stpncpy.c: Likewise.
9757         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9758         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9759         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9760         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9761         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9762         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9763         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9764         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9766         Likewise.
9767         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9768         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9770         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9771         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9772         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9773         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9774         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9775         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9776         * tests/test-striconveha.c (main): Likewise.
9777         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9778         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9779         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9780         * doc/posix-functions/getline.texi: Likewise.
9781         Reported by Mike Frysinger <vapier@gentoo.org>.
9782
9783 2010-11-20  Bruno Haible  <bruno@clisp.org>
9784
9785         nproc: Fix condition.
9786         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9787         HAVE_PTHREAD_AFFINITY_NP.
9788
9789 2010-11-20  Bruno Haible  <bruno@clisp.org>
9790
9791         Fix a comment.
9792         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9793
9794 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9795
9796         ftoastr: don't assume snprintf
9797         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9798         Implement a subset of snprintf here, by using sprintf safely.
9799         * modules/ftoastr (Depends-on): Remove snprintf.
9800
9801 2010-11-19  Jim Meyering  <meyering@redhat.com>
9802
9803         test-rename.h: fix compilation failure
9804         * tests/test-rename.h (test_rename): Add omitted "}".
9805
9806 2010-11-17  Jim Meyering  <meyering@redhat.com>
9807
9808         maint.mk: add a URL discussing the no-@acronym policy
9809         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9810
9811 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9812
9813         ftoastr: depend on snprintf, improve comments
9814         * lib/ftoastr.c: Also mention Loitsch's draft.
9815         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9816         needed in the current implementation, but it might simplify
9817         speeding up the code later.
9818         * modules/ftoastr: Depend on snprintf; this improves portability.
9819         Suggested by Bruno Haible in the same email.
9820
9821         ftoastr: port to hosts lacking strtof and strtold
9822         Problem reported by Bruno Haible in
9823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9824         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9825         environment and strtold (and presumably strtof) are not available.
9826         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9827         (configure.ac): Require gl_C99_STRTOLD.
9828
9829 2010-11-18  Bruno Haible  <bruno@clisp.org>
9830
9831         c-strtold: Avoid link error on AIX 7.
9832         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9833         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9834         (gl_C_STRTOLD): Test whether strtold_l exists.
9835         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9836
9837 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9838
9839         intprops: new macro INT_BITS_STRLEN_BOUND
9840         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9841         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9842         not exposed.  Also, it uses a slightly tighter bound than before;
9843         though this makes no practical difference, we might as well be as
9844         tight as we easily can.
9845
9846         ftoastr: new module, for lossless conversion of floats to short strings
9847         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9848         * modules/ftoastr: New files.
9849
9850 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9851
9852         bootstrap: port to Solaris sed
9853         * build-aux/bootstrap (get_version): Port to Solaris sed.
9854         See Ralf Wildenhues's note in
9855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9856
9857 2010-11-14  Jim Meyering  <meyering@redhat.com>
9858
9859         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9860         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9861         and move definition closer to sole use.
9862
9863 2010-11-13  Jim Meyering  <meyering@redhat.com>
9864
9865         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9866         Now we require at least autoconf-2.59, which means the work-around
9867         is no longer needed.
9868         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9869         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9870         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9871         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9872         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9873
9874 2010-11-13  Bruno Haible  <bruno@clisp.org>
9875
9876         rename, renameat: Avoid test failures at NFS mounted locations.
9877         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9878         functions.
9879         (test_rename): Use assert_nonexistent.
9880         * tests/test-rename.c: Include <dirent.h>.
9881         * tests/test-renameat.c: Likewise.
9882         Reported by Gary V. Vaughan <gary@gnu.org>.
9883
9884         rename, renameat: Document Linux bug with NFS
9885         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9886         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9887         * doc/posix-functions/renameat.texi: Likewise.
9888         Suggested by Eric Blake.
9889
9890 2010-11-13  Bruno Haible  <bruno@clisp.org>
9891
9892         rename test: Add comments.
9893         * tests/test-rename.h (test_rename): Add structure and comments.
9894
9895 2010-11-13  Eric Blake  <eblake@redhat.com>
9896
9897         maintainer-makefile: cover a few more files
9898         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9899         scripts generated within C files, for libvirt.
9900
9901 2010-11-13  Bruno Haible  <bruno@clisp.org>
9902
9903         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9904         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9905         character, return the number of bytes that belong together, not always
9906         1.
9907         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9908         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9909         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9910         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9911         number of bytes of an invalid character.
9912         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9913         (main): Invoke it.
9914         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9915         results.
9916         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9917         malformed byte sequences.
9918         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9919         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9920         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9921         Reported by Ben Pfaff and Paolo Bonzini.
9922
9923 2010-11-13  Bruno Haible  <bruno@clisp.org>
9924
9925         openat: Work around glibc bug with fchownat() and empty file names.
9926         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9927         (gl_FUNC_FCHOWNAT): Invoke it.
9928         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9929         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9930         Reported by Gary V. Vaughan <gary@gnu.org>.
9931
9932 2010-11-13  Bruno Haible  <bruno@clisp.org>
9933
9934         openat: Ensure autoconf macro ordering.
9935         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9936         gl_USE_SYSTEM_EXTENSIONS.
9937         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9938
9939 2010-11-13  Bruno Haible  <bruno@clisp.org>
9940
9941         Update comments.
9942         * lib/unistr/u8-check.c: Update file name in comments.
9943         * lib/unistr/u8-mblen.c: Likewise.
9944         * lib/unistr/u8-prev.c: Likewise.
9945         * lib/unistr/u8-strmblen.c: Likewise.
9946         * lib/unistr/u8-strmbtouc.c: Likewise.
9947
9948 2010-11-13  Jim Meyering  <meyering@redhat.com>
9949
9950         tests: avoid test failure on Solaris 10 due to lack of PATH export
9951         * tests/test-update-copyright.sh: Don't forget to export PATH.
9952
9953         init.sh: ensure that IFS is defined, just in case...
9954         * tests/init.sh (setup_): Ensure that IFS is defined,
9955         so that saving and restoring it works as expected.  This
9956         appears to be useful at least for an old version of dash
9957         from a long time ago (RH 6).  See here for details:
9958         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9959
9960         maint.mk: tighten "test a == b" check
9961         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9962         test to files that contain something like #!/bin/sh.
9963         Without this, coreutils would get two false positives in
9964         the comments of C source files.
9965
9966 2010-11-12  Eric Blake  <eblake@redhat.com>
9967
9968         bootstrap: fix typo in previous attempt
9969         * build-aux/bootstrap (buildreq): Correct the grouping.
9970         Reported by Paul Eggert.
9971
9972         maintainer-makefile: prohibit test x == x
9973         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9974         Based on a report by Matthias Bolte.
9975
9976         bootstrap: allow FreeBSD gzip
9977         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9978         which has no '.' and goes to stderr.
9979         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9980         Reported by Matthias Bolte.
9981
9982         maintainer-makefile: check for i18n setup
9983         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9984         will likely work.
9985
9986 2010-11-12  Bruno Haible  <bruno@clisp.org>
9987
9988         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9989         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9990         * lib/nanosleep.c (nanosleep): Likewise.
9991
9992 2010-11-11  Bruno Haible  <bruno@clisp.org>
9993
9994         fcntl-h: Fix for use of C++ on glibc systems.
9995         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9996         also on glibc systems in C++ mode.
9997         Reported by Gary V. Vaughan <gary@gnu.org>.
9998
9999 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10000
10001         mknod: avoid false failure with dash
10002         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10003
10004 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10005
10006         unlink: Fix "is it should" typo in diagnostic.
10007         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10009
10010 2010-11-11  Bruno Haible  <bruno@clisp.org>
10011
10012         Tests for module 'strerror_r-posix'.
10013         * modules/strerror_r-posix-tests: New file.
10014         * tests/test-strerror_r.c: New file.
10015         * tests/test-string-c++.cc: Check the signature of strerror_r.
10016
10017         New module 'strerror_r-posix'.
10018         * lib/string.in.h (strerror_r): New declaration.
10019         * lib/strerror_r.c: New file.
10020         * m4/strerror_r.m4: New file.
10021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10022         of strerror_r.
10023         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10024         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10025         * modules/strerror_r-posix: New file.
10026         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10027         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10028         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10029         portability problems.
10030
10031 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10032
10033         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10034         line is also considered for output. Quoted function name in shell
10035         command, so temporary files for functions like MyClass::operator()
10036         are removed correctly without errors.
10037
10038 2010-11-09  Bruno Haible  <bruno@clisp.org>
10039
10040         * doc/posix-functions/strerror.texi: List more failing platforms.
10041
10042         * doc/posix-functions/strerror.texi: Add a comment.
10043
10044 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10045
10046         fdopendir: fix bug on MacOS X when low on file descriptors
10047
10048         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10049         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10050         All callers changed.
10051         (fdopendir): Invoke save_cwd at the top level, not after using
10052         multiple dup() calls to use up file descriptors.  Then retry
10053         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10054         less than the maximum number of open file descriptors, because
10055         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10056         on Mac OS X 10.6.4 for tar 1.24
10057         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10058         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10059         and for tar 1.25
10060         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10061
10062 2010-11-07  Bruno Haible  <bruno@clisp.org>
10063
10064         vasnprintf: Support I flag on glibc systems.
10065         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10066         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10067         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10068         snprintf function.
10069         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10070         glibc systems.
10071         * tests/test-vasnprintf-posix3.c: New file.
10072         * modules/vasnprintf-posix-tests (Files): Add it.
10073         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10074
10075 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10076
10077         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10078         * MODULES.html.sh: For compiler warnings, use name
10079         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10080
10081 2010-11-05  Eric Blake  <eblake@redhat.com>
10082
10083         ceil, floor: avoid spurious failure with icc
10084         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10085         [denormals-as-zero] when optimizing without -mieee-fp option.
10086         * tests/test-floorf2.c (floorf_reference): Likewise.
10087         * tests/test-ceilf1.c (dummy): New function.
10088         (main): Use it to outsmart icc's optimization.
10089         * tests/test-floorf1.c (dummy, main): Likewise.
10090
10091         tests: require working signbit
10092         * modules/ceilf-tests (Depends-on): Add signbit.
10093         * modules/ceill-tests (Depends-on): Likewise.
10094         * modules/floorf-tests (Depends-on): Likewise.
10095         * modules/floorl-tests (Depends-on): Likewise.
10096         * modules/round-tests (Depends-on): Likewise.
10097         * modules/roundf-tests (Depends-on): Likewise.
10098         * modules/roundl-tests (Depends-on): Likewise.
10099         * modules/trunc-tests (Depends-on): Likewise.
10100         * modules/truncf-tests (Depends-on): Likewise.
10101         * modules/truncl-tests (Depends-on): Likewise.
10102
10103         strtod: work around icc bug
10104         * lib/strtod.c (minus_zero): Define to working value.
10105         (strtod): Use it to avoid icc bug.
10106
10107         copysign: enhance tests
10108         * modules/copysign-tests (Files): Add minus-zero.h.
10109         * tests/test-copysign.c (main): Also test zeros.
10110
10111 2010-11-04  Eric Blake  <eblake@redhat.com>
10112
10113         ceil, floor, round, trunc: enhance tests of -0
10114         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10115         * tests/test-ceill.c (main): Likewise.
10116         * tests/test-floorf1.c (main): Likewise.
10117         * tests/test-floorl.c (main): Likewise.
10118         * tests/test-round1.c (main): Likewise.
10119         * tests/test-roundf1.c (main): Likewise.
10120         * tests/test-roundl.c (main): Likewise.
10121         * tests/test-trunc1.c (main): Likewise.
10122         * tests/test-truncf1.c (main): Likewise.
10123         * tests/test-truncl.c (main): Likewise.
10124
10125 2010-11-04  Eric Blake  <eblake@redhat.com>
10126
10127         frexp, tests: work around ICC bug with -zero
10128         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10129         works with more compilers.
10130         * tests/minus-zero.h: New file.
10131         * modules/ceilf-tests (Files): Include it.
10132         * modules/ceill-tests (Files): Likewise.
10133         * modules/floorf-tests (Files): Likewise.
10134         * modules/floorl-tests (Files): Likewise.
10135         * modules/frexp-nolibm-tests (Files): Likewise.
10136         * modules/frexp-tests (Files): Likewise.
10137         * modules/frexpl-nolibm-tests (Files): Likewise.
10138         * modules/frexpl-tests (Files): Likewise.
10139         * modules/isnan-tests (Files): Likewise.
10140         * modules/isnand-nolibm-tests (Files): Likewise.
10141         * modules/isnand-tests (Files): Likewise.
10142         * modules/isnanf-nolibm-tests (Files): Likewise.
10143         * modules/isnanf-tests (Files): Likewise.
10144         * modules/isnanl-nolibm-tests (Files): Likewise.
10145         * modules/isnanl-tests (Files): Likewise.
10146         * modules/round-tests (Files): Likewise.
10147         * modules/roundf-tests (Files): Likewise.
10148         * modules/roundl-tests (Files): Likewise.
10149         * modules/ldexpl-tests (Files): Likewise.
10150         * modules/signbit-tests (Files): Likewise.
10151         * modules/snprintf-posix-tests (Files): Likewise.
10152         * modules/sprintf-posix-tests (Files): Likewise.
10153         * modules/strtod-tests (Files): Likewise.
10154         * modules/trunc-tests (Files): Likewise.
10155         * modules/truncf-tests (Files): Likewise.
10156         * modules/truncl-tests (Files): Likewise.
10157         * modules/vsnprintf-posix-tests (Files): Likewise.
10158         * modules/vsprintf-posix-tests (Files): Likewise.
10159         * modules/vasnprintf-posix-tests (Files): Likewise.
10160         * modules/vasprintf-posix-tests (Files): Likewise.
10161         * tests/test-ceilf1.c (main): Use it.
10162         * tests/test-ceill.c (main): Likewise.
10163         * tests/test-floorf1.c (main): Likewise.
10164         * tests/test-floorl.c (main): Likewise.
10165         * tests/test-frexp.c (main): Likewise.
10166         * tests/test-frexpl.c (main): Likewise.
10167         * tests/test-isnan.c (main): Likewise.
10168         * tests/test-isnand.h (main): Likewise.
10169         * tests/test-isnanf.h (main): Likewise.
10170         * tests/test-isnanl.h (main): Likewise.
10171         * tests/test-ldexpl.c (main): Likewise.
10172         * tests/test-round.c (main): Likewise.
10173         * tests/test-roundf.c (main): Likewise.
10174         * tests/test-roundl.c (main): Likewise.
10175         * tests/test-signbit.c (test_signbitf, test_signbitd)
10176         (test_signbitl): Likewise.
10177         * tests/test-snprintf-posix.h (test_function): Likewise.
10178         * tests/test-sprintf-posix.h (test_function): Likewise.
10179         * tests/test-strtod.c (main): Likewise.
10180         * tests/test-trunc1.c (main): Likewise.
10181         * tests/test-truncf1.c (main): Likewise.
10182         * tests/test-truncl.c (main): Likewise.
10183
10184         isnanl: work around icc bug
10185         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10186
10187 2010-11-03  Eric Blake  <eblake@redhat.com>
10188
10189         tests: fix compiler warnings
10190         * tests/test-getopt.h (test_getopt): Fix condition.
10191         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10192         * tests/test-pipe2.c (main): Likewise.
10193         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10194
10195         utimens: fix broken m4 test
10196         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10197
10198 2010-10-28  Bruno Haible  <bruno@clisp.org>
10199
10200         posix_spawn*, getdtablesize: Relax license.
10201         * modules/posix_spawn (License): Change to LGPLv2+.
10202         * modules/posix_spawnp (License): Likewise.
10203         * modules/posix_spawn-internal (License): Likewise.
10204         * modules/posix_spawnattr_init (License): Likewise.
10205         * modules/posix_spawnattr_getflags (License): Likewise.
10206         * modules/posix_spawnattr_setflags (License): Likewise.
10207         * modules/posix_spawnattr_getpgroup (License): Likewise.
10208         * modules/posix_spawnattr_setpgroup (License): Likewise.
10209         * modules/posix_spawnattr_getschedparam (License): Likewise.
10210         * modules/posix_spawnattr_setschedparam (License): Likewise.
10211         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10212         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10213         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10214         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10215         * modules/posix_spawnattr_getsigmask (License): Likewise.
10216         * modules/posix_spawnattr_setsigmask (License): Likewise.
10217         * modules/posix_spawnattr_destroy (License): Likewise.
10218         * modules/posix_spawn_file_actions_init (License): Likewise.
10219         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10220         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10221         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10222         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10223         * modules/getdtablesize (License): Likewise.
10224         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10225
10226 2010-10-26  Bruno Haible  <bruno@clisp.org>
10227
10228         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10229         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10230         Cygwin and mingw.
10231         Suggested by Eric Blake.
10232
10233 2010-10-26  Bruno Haible  <bruno@clisp.org>
10234
10235         stdio: Work around compilation error due to renameat() on Solaris 10.
10236         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10237         * lib/renameat.c: Don't include <unistd.h> here.
10238         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10239         Reported by Paul Eggert and Eric Blake.
10240
10241 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10242
10243         renameat: port to Solaris 10, which declares renameat in unistd.h
10244
10245         * lib/renameat.c: Include unistd.h before stdio.h, because
10246         Solaris 10 declares renameat in unistd.h.  Problem encountered
10247         when building GNU tar 1.24 on Solaris 10.
10248
10249 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10250
10251         fdopendir: fix C89 compilation
10252         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10253         compilers.
10254
10255 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         inttostr: simplify by removing unnecessary redundancy
10258         * lib/anytostr.c: Don't include verify.h.
10259         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10260         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10261         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10262         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10263         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10264         Likewise.
10265         * modules/inttostr (Depends-on): Remove 'verify'.
10266
10267 2010-10-23  Bruno Haible  <bruno@clisp.org>
10268
10269         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10270         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10271         Reported by Eric Blake.
10272
10273 2010-10-23  Bruno Haible  <bruno@clisp.org>
10274
10275         Tests: Fix LOCALE_JA on MirBSD 10.
10276         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10277         to an UTF-8 locale.
10278         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10280         Reported by Eric Blake.
10281
10282 2010-10-21  Bruno Haible  <bruno@clisp.org>
10283
10284         nl_langinfo test: Avoid test failure on NetBSD 5.
10285         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10286         Reported by Eric Blake.
10287
10288 2010-10-21  Eric Blake  <eblake@redhat.com>
10289
10290         c-stack: work around libsigsegv 2.8 bug
10291         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10292         overflow on at least PowerPC64.
10293
10294 2010-10-17  Bruno Haible  <bruno@clisp.org>
10295
10296         userspec: Drop redundant file.
10297         * modules/userspec (Files): Remove lib/inttostr.h.
10298
10299 2010-10-17  Bruno Haible  <bruno@clisp.org>
10300
10301         nl_langinfo tests: Silence some warnings.
10302         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10303         Reported by Jim Meyering.
10304
10305 2010-10-17  Bruno Haible  <bruno@clisp.org>
10306
10307         Make use of GCC's attribute __alloc_size__.
10308         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10309         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10310         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10311         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10312         __alloc_size__.
10313         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10314         Suggested by Jim Meyering.
10315
10316 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10317
10318         bootstrap: anchor .gitignore entries.
10319         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10320         with...
10321         (insert_vc_ignore): ... this new function, which prepends `/' to
10322         all .gitignore entries before passing them to
10323         insert_sorted_if_absent.
10324
10325 2010-10-16  Bruno Haible  <bruno@clisp.org>
10326
10327         nextafter: Fix configure check.
10328         * modules/nextafter (configure.ac): Correct expected prototype.
10329
10330 2010-10-16  Bruno Haible  <bruno@clisp.org>
10331
10332         termios: Update documentation.
10333         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10334
10335 2010-10-16  Bruno Haible  <bruno@clisp.org>
10336
10337         tests: Make them compile with TinyCC.
10338         * tests/test-strstr.c (main): Remove parentheses around array
10339         initializer.
10340
10341 2010-10-15  Eric Blake  <eblake@redhat.com>
10342
10343         ignore-value: make header idempotent
10344         * lib/ignore-value.h: Add double-inclusion guards.
10345         Reported by Stefan Berger.
10346
10347 2010-10-15  Jim Meyering  <meyering@redhat.com>
10348
10349         GNUmakefile: handle "stable" target, not "major"
10350         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10351         lists in maint.mk and announce-gen.  Without this, "make stable"
10352         would fail to ensure that $(VERSION) is up to date.
10353
10354 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10355
10356         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10357         & co.
10358
10359 2010-10-14  Bruno Haible  <bruno@clisp.org>
10360
10361         vasnprintf: Don't set errno to 0.
10362         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10363         block that sets it to 0.
10364         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10365
10366 2010-10-14  Bruno Haible  <bruno@clisp.org>
10367
10368         socketlib: Fix.
10369         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10370         gl_PREREQ_SYS_H_WINSOCK2.
10371         Reported by Ian Beckwith <ianb@erislabs.net>.
10372
10373 2010-10-13  Jim Meyering  <meyering@redhat.com>
10374
10375         test-select-stdin.c: avoid warn_unused_result warnings
10376         * tests/test-select-stdin.c: Include "macros.h".
10377         ASSERT that read and fflush succeed.
10378
10379 2010-10-13  Jim Meyering  <meyering@redhat.com>
10380
10381         git-version-gen: do require git-VC'd files in cwd
10382         * build-aux/git-version-gen: Reject a git version string
10383         if there are no commits associated with the current directory.
10384         This avoids an unlikely false-positive (unrelated dir whose parent
10385         repository also contains a tag matching v*), as pointed out
10386         by Giuseppe Scrivano in
10387         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10388
10389 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10390
10391         argv-iter: omit nonconforming declaration
10392         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10393         enum arg_iter_err declaration, which doesn't conform to C99.
10394         Solaris 10 cc warns about this.
10395
10396 2010-10-13  Eric Blake  <eblake@redhat.com>
10397
10398         termios: fix compilation on mingw
10399         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10400         (gl_TERMIOS_H): Adjust it on mingw.
10401         * modules/termios (Makefile.am): Substitute new key.
10402         * lib/termios.in.h (includes): Make include_next conditional.
10403         * doc/posix-headers/termios.texi (termios.h): Update
10404         documentation.
10405         Reported by Daniel P. Berrange.
10406
10407 2010-10-13  Jim Meyering  <meyering@redhat.com>
10408
10409         git-version-gen: don't require that .git/ be in the current dir
10410         * build-aux/git-version-gen: Adjust this script so that it works
10411         when run from any working directory beneath the top-level .git/-
10412         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10413         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10414
10415         test-select: avoid warn_unused_result warnings
10416         * tests/test-select.c: Include "macros.h".
10417         ASSERT that each call to read, write, and pipe succeeds.
10418         While not technically required, also check each "close".
10419         * modules/select-tests (Files): Add tests/macros.h.
10420
10421         test-symlinkat: remove declaration of unused local
10422         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10423
10424         test-inttostr: avoid shadowing warnings
10425         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10426         and use malloc rather than the stack for the same reason as
10427         mentioned in the comment justifying the other allocation.
10428
10429 2010-10-11  Bruno Haible  <bruno@clisp.org>
10430
10431         stdlib: Allow multiple gnulib generated replacements to coexist.
10432         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10433         Reported by Sam Steingold <sds@gnu.org>.
10434
10435 2010-10-11  Jim Meyering  <meyering@redhat.com>
10436
10437         fix a documentation typo
10438         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10439
10440 2010-10-11  Eric Blake  <eblake@redhat.com>
10441
10442         futimens: work around Solaris 11 bug
10443         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10444         * tests/test-futimens.h (test_futimens): Enhance, rather than
10445         weaken test.
10446         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10447
10448 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10449
10450         Indentation.
10451         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10452         higher-level operators more to the left.
10453
10454 2010-10-11  Jim Meyering  <meyering@redhat.com>
10455
10456         test-futimens: avoid unwarranted test failure on Solaris 5.11
10457         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10458         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10459         because it tries to dereference the NULL name argument.
10460
10461 2010-10-11  Bruno Haible  <bruno@clisp.org>
10462
10463         Indentation.
10464         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10465         indentation.
10466
10467 2010-10-11  Jim Meyering  <meyering@redhat.com>
10468
10469         spawn.in.h: make indentation consistent with parentheses
10470         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10471         Make indentation consistent with parentheses.
10472
10473 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10474
10475         Fix mismatched parens in previous commit
10476         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10477         parens.
10478
10479 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10480
10481         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10482
10483         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10484         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10485         * lib/malloca.c: Include "verify.h".
10486         (verify1): Remove, replacing with a verify call.
10487         * lib/relocwrapper.c (verify1): Likewise.
10488         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10489         Likewise.
10490         * modules/malloca (Depends-on): Add 'verify'.
10491         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10492         * modules/vasnprintf (Depends-on): Add 'verify'.
10493         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10494         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10495         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10496         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10497         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10498         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10499         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10500
10501         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10502
10503         Formerly the style was sometimes 2*X - 1, because the C standard
10504         was wrongly thought to disallow ?: in integral constant expressions.
10505         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10506         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10507         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10508         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10509         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10510         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10511         verify that time_t cannot be floating.
10512
10513 2010-10-08  Eric Blake  <eblake@redhat.com>
10514
10515         time: enforce recent POSIX ruling that time_t is integral
10516         * lib/time.in.h (__time_t_must_be_integral): Detect any
10517         problematic systems, allowing the rest of gnulib to assume POSIX.
10518
10519 2010-10-08  Jim Meyering  <meyering@redhat.com>
10520
10521         fdopendir: fix a bug on systems lacking openat and /proc support
10522         OpenBSD 4.7 is one such system.  The most noticeable effect was
10523         failure of any application making nontrivial use of fts: rm, du,
10524         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10525           ./rm: traversal failed: `a': Bad file descriptor
10526         Debugging that, you see that even though FD 6 was closed just
10527         prior to the opendir call in fd_clone_opendir, its resulting
10528         dir->dd_fd was 8, rather than the expected value of 6:
10529
10530         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10531         93                close (fd);
10532         (gdb) n
10533         94                dir = fd_clone_opendir (dupfd);
10534         (gdb) n
10535         95                saved_errno = errno;
10536         (gdb) p dir->dd_fd
10537         $11 = 8
10538
10539         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10540         The problem is that on OpenBSD, fd_clone_opendir has to resort
10541         to using the old-style save/restore CWD mechanism, due to its
10542         lack of openat/proc support, and *that* would steal the FD (6)
10543         that opendir was supposed to use.
10544
10545         The fix is to squirrel away the desired FD so that save_cwd uses a
10546         different one, and then free the dest FD right before calling opendir.
10547         That guarantees opendir will use the required file descriptor.
10548
10549         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10550
10551 2010-10-08  Bruno Haible  <bruno@clisp.org>
10552
10553         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10554         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10555
10556 2010-10-08  Bruno Haible  <bruno@clisp.org>
10557
10558         nanosleep: Make replacement POSIX compliant.
10559         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10560         is out of range.
10561         Reported by Jim Meyering.
10562
10563 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10564
10565         bootstrap: add hook for altering gnulib.mk, for Bison
10566         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10567         the Bison bootstrapping process can rewrite file names and variables
10568         in this file before later parts of 'bootstrap' use the file.
10569         Bison wants to include lib/gnulib.mk from the top-level makefile,
10570         so it needs the file names in this file to be relative to the top
10571         level, not relative to lib; plus it needs variable names to be
10572         rewritten.
10573         (slurp): Use the new function.
10574
10575         bootstrap: reformat for readability
10576         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10577
10578 2010-10-08  Eric Blake  <eblake@redhat.com>
10579
10580         docs: update cygwin progress
10581         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10582         1.7.7.
10583         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10584         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10585         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10586         * doc/posix-functions/carg.texi (carg): Likewise.
10587         * doc/posix-functions/cargf.texi (cargf): Likewise.
10588         * doc/posix-functions/casin.texi (casin): Likewise.
10589         * doc/posix-functions/casinf.texi (casinf): Likewise.
10590         * doc/posix-functions/casinh.texi (casinh): Likewise.
10591         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10592         * doc/posix-functions/catan.texi (catan): Likewise.
10593         * doc/posix-functions/catanf.texi (catanf): Likewise.
10594         * doc/posix-functions/catanh.texi (catanh): Likewise.
10595         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10596         * doc/posix-functions/ccos.texi (ccos): Likewise.
10597         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10598         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10599         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10600         * doc/posix-functions/cexp.texi (cexp): Likewise.
10601         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10602         * doc/posix-functions/cimag.texi (cimag): Likewise.
10603         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10604         * doc/posix-functions/clog.texi (clog): Likewise.
10605         * doc/posix-functions/clogf.texi (clogf): Likewise.
10606         * doc/posix-functions/conj.texi (conj): Likewise.
10607         * doc/posix-functions/conjf.texi (conjf): Likewise.
10608         * doc/posix-functions/cpow.texi (cpow): Likewise.
10609         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10610         * doc/posix-functions/cproj.texi (cproj): Likewise.
10611         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10612         * doc/posix-functions/creal.texi (creal): Likewise.
10613         * doc/posix-functions/crealf.texi (crealf): Likewise.
10614         * doc/posix-functions/csin.texi (csin): Likewise.
10615         * doc/posix-functions/csinf.texi (csinf): Likewise.
10616         * doc/posix-functions/csinh.texi (csinh): Likewise.
10617         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10618         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10619         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10620         * doc/posix-functions/ctan.texi (ctan): Likewise.
10621         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10622         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10623         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10624         * doc/posix-headers/complex.texi (complex.h): Likewise.
10625
10626 2010-10-07  Jim Meyering  <meyering@redhat.com>
10627
10628         parse-datetime: avoid compilation failure on OpenBSD 4.7
10629         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10630         This works around a compilation failure on OpenBSD 4.7:
10631         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10632
10633 2010-10-07  Eric Blake  <eblake@redhat.com>
10634
10635         docs: update cygwin progress
10636         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10637         1.7.6.
10638         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10639         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10640         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10641         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10642         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10643         Likewise.
10644         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10645         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10646         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10647         Likewise.
10648         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10649         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10650         Likewise.
10651         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10652         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10653         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10654         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10655         Likewise.
10656         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10657         Likewise.
10658         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10659
10660         docs: update parse-datetime history
10661         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10662         documentation of this function's history and alternatives.
10663
10664         cygwin: use more robust version check
10665         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10666         exclude an eventual cygwin 1.9.1.
10667         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10669         (gl_FUNC_STRCASESTR): Likewise.
10670         Reported by Bruno Haible.
10671
10672 2010-10-06  Bruno Haible  <bruno@clisp.org>
10673
10674         string, sys_select: Avoid #including large headers unless necessary.
10675         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10676         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10677         OSF/1, BeOS, Haiku.
10678         Reported by Jim Meyering.
10679
10680 2010-10-05  Eric Blake  <eblake@redhat.com>
10681
10682         memmem, strstr, strcasestr: fix bug with long periodic needle
10683         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10684         periodic needle having false positive.
10685         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10686         and cygwin 1.7.7.
10687         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10689         (gl_FUNC_STRCASESTR): Likewise.
10690         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10691         * tests/test-memmem.c (main): Expose the bug.
10692         * tests/test-strcasestr.c (main): Likewise.
10693         * tests/test-strstr.c (main): Likewise.
10694         * tests/test-c-strcasestr.c (main): Likewise.
10695         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10696         * doc/posix-functions/strstr.texi (strstr): Likewise.
10697         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10698         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10699
10700 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10701
10702         parse-datetime: do some more renaming
10703         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10704         parse_datetime, not get_date.  Mention the renaming.
10705         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10706         in comments.
10707         * m4/bison.m4: Likewise.
10708
10709 2010-10-05  Eric Blake  <eblake@redhat.com>
10710
10711         parse-datetime: better name than get_date
10712         * NEWS: Reword the deprecation notice.
10713         * modules/get_date: Rename to modules/parse-datetime.
10714         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10715         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10716         * lib/get_date.y: Rename to lib/parse-datetime.y.
10717         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10718         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10719         * doc/getdate.texi: Provide fallback wrapper.
10720         * lib/getdate.h: Move guts, and wrap...
10721         * lib/parse-datetime.h: ...new file.
10722         * lib/parse-datetime.y (get_date): Rename...
10723         (parse_datetime): ...to this.
10724         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10725         (gl_PARSE_DATETIME): ...to this.
10726         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10727         documentation.
10728         * modules/getdate (Files): Provide fallback docs and header.
10729         (Notice, Depends-on): Update references.
10730         * tests/test-parse-datetime.c: Likewise.
10731         * DEPENDENCIES: Likewise.
10732         * MODULES.html.sh (Date and time <time.h>): Likewise.
10733         * doc/parse-datetime.texi (Date input formats)
10734         (Authors of parse_datetime): Likewise.
10735         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10736         (Include): Likewise.
10737         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10738         * gnulib-tool: Likewise.
10739         * m4/bison.m4 (gl_BISON): Likewise.
10740         Suggested by Bruno Haible.
10741
10742 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10743
10744         more ports to Solaris tr, which needs [] around ranges
10745         * gnulib-tool: Solaris tr needs [] around ranges.
10746         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10747         * tests/test-pipe-filter-gi1.c (main): Likewise.
10748         * tests/test-pipe-filter-ii1.c (main): Likewise.
10749
10750 2010-10-05  Eric Blake  <eblake@redhat.com>
10751
10752         bootstrap: fix Solaris regression
10753         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10754         around ranges.
10755         Reported by Pádraig Brady.
10756
10757         bootstrap: work with pkg-config
10758         * build-aux/bootstrap (check_versions): Also transliterate - in
10759         prerequisite name.
10760         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10761         prerequisites that were already found, to avoid confusion.
10762         Reported by Justin Clift.
10763
10764         faccessat: remove unused wrappers
10765         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10766         presence of these wrappers dragged in -lgen on Solaris.
10767         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10768
10769 2010-10-05  Jim Meyering  <meyering@redhat.com>
10770
10771         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10772         * Makefile (sc_pragma_columns): New syntax-check rule.
10773
10774 2010-10-04  Bruno Haible  <bruno@clisp.org>
10775
10776         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10777         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10778         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10779         Reported by Bruce Korb and Eric Blake.
10780
10781 2010-10-04  Bruno Haible  <bruno@clisp.org>
10782
10783         threadlib: Make option --with-libpth-prefix work.
10784         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10785         use $LIBPTH, not just -lpth.
10786
10787 2010-10-04  Bruno Haible  <bruno@clisp.org>
10788
10789         Avoid line length limitation from HP NonStop system header files.
10790         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10791         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10792         * lib/ctype.in.h: Likewise.
10793         * lib/dirent.in.h: Likewise.
10794         * lib/errno.in.h: Likewise.
10795         * lib/fcntl.in.h: Likewise.
10796         * lib/float.in.h: Likewise.
10797         * lib/getopt.in.h: Likewise.
10798         * lib/iconv.in.h: Likewise.
10799         * lib/inttypes.in.h: Likewise.
10800         * lib/langinfo.in.h: Likewise.
10801         * lib/locale.in.h: Likewise.
10802         * lib/math.in.h: Likewise.
10803         * lib/netdb.in.h: Likewise.
10804         * lib/netinet_in.in.h: Likewise.
10805         * lib/poll.in.h: Likewise.
10806         * lib/pthread.in.h: Likewise.
10807         * lib/pty.in.h: Likewise.
10808         * lib/sched.in.h: Likewise.
10809         * lib/se-selinux.in.h: Likewise.
10810         * lib/search.in.h: Likewise.
10811         * lib/signal.in.h: Likewise.
10812         * lib/spawn.in.h: Likewise.
10813         * lib/stdarg.in.h: Likewise.
10814         * lib/stddef.in.h: Likewise.
10815         * lib/stdint.in.h: Likewise.
10816         * lib/stdio.in.h: Likewise.
10817         * lib/stdlib.in.h: Likewise.
10818         * lib/string.in.h: Likewise.
10819         * lib/strings.in.h: Likewise.
10820         * lib/sys_file.in.h: Likewise.
10821         * lib/sys_ioctl.in.h: Likewise.
10822         * lib/sys_select.in.h: Likewise.
10823         * lib/sys_socket.in.h: Likewise.
10824         * lib/sys_stat.in.h: Likewise.
10825         * lib/sys_time.in.h: Likewise.
10826         * lib/sys_times.in.h: Likewise.
10827         * lib/sys_utsname.in.h: Likewise.
10828         * lib/sys_wait.in.h: Likewise.
10829         * lib/sysexits.in.h: Likewise.
10830         * lib/termios.in.h: Likewise.
10831         * lib/time.in.h: Likewise.
10832         * lib/unistd.in.h: Likewise.
10833         * lib/wchar.in.h: Likewise.
10834         * lib/wctype.in.h: Likewise.
10835         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10836         * modules/ctype (Makefile.am): Likewise.
10837         * modules/dirent (Makefile.am): Likewise.
10838         * modules/errno (Makefile.am): Likewise.
10839         * modules/fcntl-h (Makefile.am): Likewise.
10840         * modules/float (Makefile.am): Likewise.
10841         * modules/getopt-posix (Makefile.am): Likewise.
10842         * modules/iconv-h (Makefile.am): Likewise.
10843         * modules/inttypes (Makefile.am): Likewise.
10844         * modules/langinfo (Makefile.am): Likewise.
10845         * modules/locale (Makefile.am): Likewise.
10846         * modules/math (Makefile.am): Likewise.
10847         * modules/netdb (Makefile.am): Likewise.
10848         * modules/netinet_in (Makefile.am): Likewise.
10849         * modules/poll-h (Makefile.am): Likewise.
10850         * modules/pthread (Makefile.am): Likewise.
10851         * modules/pty (Makefile.am): Likewise.
10852         * modules/sched (Makefile.am): Likewise.
10853         * modules/search (Makefile.am): Likewise.
10854         * modules/selinux-h (Makefile.am): Likewise.
10855         * modules/signal (Makefile.am): Likewise.
10856         * modules/spawn (Makefile.am): Likewise.
10857         * modules/stdarg (Makefile.am): Likewise.
10858         * modules/stddef (Makefile.am): Likewise.
10859         * modules/stdint (Makefile.am): Likewise.
10860         * modules/stdio (Makefile.am): Likewise.
10861         * modules/stdlib (Makefile.am): Likewise.
10862         * modules/string (Makefile.am): Likewise.
10863         * modules/strings (Makefile.am): Likewise.
10864         * modules/sys_file (Makefile.am): Likewise.
10865         * modules/sys_ioctl (Makefile.am): Likewise.
10866         * modules/sys_select (Makefile.am): Likewise.
10867         * modules/sys_socket (Makefile.am): Likewise.
10868         * modules/sys_stat (Makefile.am): Likewise.
10869         * modules/sys_time (Makefile.am): Likewise.
10870         * modules/sys_times (Makefile.am): Likewise.
10871         * modules/sys_utsname (Makefile.am): Likewise.
10872         * modules/sys_wait (Makefile.am): Likewise.
10873         * modules/sysexits (Makefile.am): Likewise.
10874         * modules/termios (Makefile.am): Likewise.
10875         * modules/time (Makefile.am): Likewise.
10876         * modules/unistd (Makefile.am): Likewise.
10877         * modules/wchar (Makefile.am): Likewise.
10878         * modules/wctype (Makefile.am): Likewise.
10879
10880 2010-10-04  Bruno Haible  <bruno@clisp.org>
10881
10882         read-file tests: Avoid a test failure on NonStop Kernel.
10883         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10884         a regular file.
10885         Reported by Joachim Schmitz <schmitz@hp.com>.
10886
10887 2010-10-03  Bruno Haible  <bruno@clisp.org>
10888
10889         gnulib-tool: Fixes for --create-testdir with --libtool.
10890         * gnulib-tool (func_get_automake_snippet): Don't augment
10891         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10892         an executable.
10893         (func_create_testdir): Handle module 'alloca' like func_import.
10894         Reported by Bruce Korb <bruce.korb@gmail.com>.
10895
10896 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10897
10898         Avoid some lines longer than 80 characters.
10899         * lib/stdint.in.h: Break long comment lines.
10900         * lib/math.in.h: Likewise.
10901         (_GL_NUM_UINT_WORDS): New macro, for readability.
10902         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10903         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10904         * lib/stdlib.in.h: Likewise.
10905         * lib/spawn.in.h: Likewise.
10906         * lib/sys_socket.in.h: Update an URL.
10907         * lib/sys_stat.in.h: Break long line.
10908
10909 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10910
10911         Improve pmccabe2html.
10912         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10913         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10914         when the sources change. Remove the line in the HTML about "Used
10915         ranges" (which implied that there might be other unused ranges),
10916         rename "Resume" to "Summary" (easier to understand for more users).
10917         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10918         styles, and some unnecessary blank lines.
10919
10920 2010-10-03  Bruno Haible  <bruno@clisp.org>
10921             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10922
10923         acl: Add support for ACLs on NonStop Kernel.
10924         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10925         Check whether the function aclsort() exists.
10926         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10927         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10928         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10929         (acl_nontrivial [HAVE_ACLSORT]: New function.
10930         (file_has_acl): Implement for NonStop Kernel.
10931         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10932         (qset_acl): Implement for NonStop Kernel.
10933         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10934         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10935         (main): Implement for NonStop Kernel.
10936         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10937         Kernel. Handle this flavor.
10938         * tests/test-set-mode-acl.sh: Likewise.
10939         * tests/test-copy-acl.sh: Likewise.
10940         * tests/test-copy-file.sh: Likewise.
10941
10942 2010-10-03  Bruno Haible  <bruno@clisp.org>
10943
10944         Info about ACLs on NonStop Kernel.
10945         * doc/acl-resources.txt: Add info about NonStop Kernel.
10946         References by Joachim Schmitz <schmitz@hp.com>.
10947
10948 2010-10-02  Bruno Haible  <bruno@clisp.org>
10949
10950         Define missing EDQUOT on NonStop Kernel.
10951         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10952         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10953         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10954         missing.
10955         * doc/posix-headers/errno.texi: Mention the NSK bug.
10956         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10957         Reported by Joachim Schmitz <schmitz@hp.com>.
10958
10959 2010-10-02  Bruno Haible  <bruno@clisp.org>
10960
10961         Update doc for POSIX:2008.
10962         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10963         Update URL of POSIX specification.
10964
10965 2010-10-02  Bruno Haible  <bruno@clisp.org>
10966
10967         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10968         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10969         from gnulib, not from Automake.
10970
10971 2010-10-02  Bruno Haible  <bruno@clisp.org>
10972
10973         New module 'system-posix'.
10974         * modules/system-posix: New file.
10975         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10976         module is present.
10977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10978         GNULIB_SYSTEM_POSIX.
10979         * modules/stdlib (Depends-on): Remove sys_wait.
10980         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10981         * doc/posix-functions/system.texi: Mention the new module.
10982         * doc/posix-headers/stdlib.texi: Likewise.
10983         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10984         define test_sys_wait_macros to a no-op.
10985         Reported by Sam Steingold <sds@gnu.org>.
10986
10987 2010-09-30  Bruno Haible  <bruno@clisp.org>
10988
10989         More renaming from 'getdate' to 'get_date'.
10990         * doc/get_date.texi: Renamed from doc/getdate.texi.
10991         * modules/get_date (Files): Update.
10992         * MODULES.html.sh (Date and time <time.h>): Update.
10993         * DEPENDENCIES: Update.
10994         * gnulib-tool: Update comment.
10995         * m4/bison.m4 (gl_BISON): Likewise.
10996         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10997
10998 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10999
11000         bootstrap: support ACLOCAL_FLAGS during aclocal
11001         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11002         can add additional -I dir for third-party .m4 files.
11003
11004 2010-09-30  Eric Blake  <eblake@redhat.com>
11005
11006         bootstrap: use glibtoolize on MacOS
11007         * build-aux/bootstrap (check_versions): Convert libtool into
11008         libtoolize.
11009         (tool search): Move libtool check earlier, and look for
11010         glibtoolize for MacOS.
11011         (gnulib_tool_options): Auto-add --libtool when appropriate.
11012         Reported by Justin Clift.
11013
11014         poll: fix typo that broke test on MacOS
11015         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11016         Reported by Justin Clift.
11017
11018         getdate: rename to get_date
11019         Note: getdate.h is not renamed, to minimize client impact.
11020         * modules/getdate: Mark obsolete.  Move old contents...
11021         * modules/get_date: ...to new module name.
11022         * modules/getdate-tests: Move...
11023         * modules/get_date-tests: ...here.
11024         * m4/getdate.m4: Move...
11025         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11026         * lib/getdate.y: Move...
11027         * lib/get_date.y: ...here.
11028         * tests/test-getdate.c: Move...
11029         * tests/test-get_date.c: ...here.
11030         * doc/posix-functions/getdate.texi (getdate): Update name.
11031         * NEWS: Mention the change.
11032
11033 2010-09-29  Bruno Haible  <bruno@clisp.org>
11034
11035         Separate the module 'waitpid' from the module 'sys_wait'.
11036         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11037         present.
11038         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11039         gl_MODULE_INDICATOR_FOR_TESTS.
11040         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11041         * modules/sys_wait (Depends-on): Remove waitpid.
11042         (Makefile.am): Substitute GNULIB_WAITPID.
11043         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11044         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11045         signature only if the 'waitpid' module is present.
11046         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11047         * NEWS: Mention the change.
11048         * modules/grantpt (Depends-on): Add waitpid.
11049         * modules/wait-process (Depends-on): Likewise.
11050
11051 2010-09-29  Bruno Haible  <bruno@clisp.org>
11052
11053         More tests for module 'sys_wait'.
11054         * modules/sys_wait-c++-tests: New file.
11055         * tests/test-sys_wait-c++.cc: New file.
11056         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11057         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11058
11059 2010-09-29  Bruno Haible  <bruno@clisp.org>
11060
11061         New module 'waitpid'.
11062         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11063         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11064         Don't include <process.h>.
11065         (waitpid): Declare only, using modern idiom.
11066         * m4/waitpid.m4: New file.
11067         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11068         * modules/waitpid: New file.
11069         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11070         (Makefile.am): Update.
11071         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11072
11073 2010-09-28  Bruno Haible  <bruno@clisp.org>
11074
11075         poll: Assume ANSI C.
11076         * lib/poll.c (poll): Use an ANSI C declaration.
11077
11078 2010-09-28  Bruno Haible  <bruno@clisp.org>
11079
11080         poll-h: Create poll.h on all platforms.
11081         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11082         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11083         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11084         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11085         (gl_REPLACE_POLL_H): Don't set POLL_H.
11086         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11087         * modules/poll-h (Depends-on): Add include_next.
11088         (Makefile.am): Create poll.h unconditionally. Substitute also
11089         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11090
11091 2010-09-28  Bruno Haible  <bruno@clisp.org>
11092
11093         Tests for module 'poll-h'.
11094         * modules/poll-h-c++-tests: New file.
11095         * tests/test-poll-h-c++.cc: New file.
11096
11097         Tests for module 'poll-h'.
11098         * modules/poll-h-tests: New file.
11099         * tests/test-poll-h.c: New file.
11100
11101 2010-09-28  Bruno Haible  <bruno@clisp.org>
11102
11103         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11104         * modules/poll-h (Depends-on): Add 'extensions'.
11105
11106 2010-09-28  Bruno Haible  <bruno@clisp.org>
11107
11108         New module 'poll-h'.
11109         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11110         (poll): Use modern idiom.
11111         * modules/poll-h: New file.
11112         * modules/poll (Files): Remove lib/poll.in.h.
11113         (Depends-on): Add poll-h.
11114         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11115         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11116         * m4/poll_h.m4: New file.
11117         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11118         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11119         and invoke gl_REPLACE_POLL_H.
11120         * lib/poll.c: Use common idiom.
11121         * tests/test-poll.c: Likewise.
11122         * doc/posix-headers/poll.texi: Mention the poll-h module.
11123         Suggested by Eric Blake.
11124
11125 2010-09-26  Bruno Haible  <bruno@clisp.org>
11126
11127         sys_wait: Implement WSTOPSIG.
11128         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11129         Reported by Simon Josefsson.
11130
11131 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11132
11133         stdlib, sys_wait: Avoid compilation error on mingw.
11134         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11135
11136 2010-09-26  Bruno Haible  <bruno@clisp.org>
11137
11138         stdlib tests: Avoid code duplication.
11139         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11140         * modules/sys_wait-tests (Files): Likewise.
11141         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11142         * tests/test-stdlib.c: Include test-sys_wait.h.
11143         (main): Invoke test_sys_wait_macros.
11144         * tests/test-sys_wait.c: Include test-sys_wait.h.
11145         (main): Invoke test_sys_wait_macros.
11146
11147 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11148
11149         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11150         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11151         sure Windows sockets are working before calling getaddrinfo.
11152         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11153         * doc/gnulib.texi (Windows sockets): Fix typo.
11154
11155 2010-09-25  Bruno Haible  <bruno@clisp.org>
11156
11157         Tests for module 'regex-quote'.
11158         * modules/regex-quote-tests: New file.
11159         * tests/test-regex-quote.c: New file.
11160
11161         New module 'regex-quote'.
11162         * lib/regex-quote.h: New file.
11163         * lib/regex-quote.c: New file.
11164         * modules/regex-quote: New file.
11165         Suggested by Reuben Thomas <rrt@sc3d.org>.
11166
11167 2010-09-24  Bruno Haible  <bruno@clisp.org>
11168
11169         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11170         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11171
11172 2010-09-23  Bruno Haible  <bruno@clisp.org>
11173
11174         setenv: Relax license.
11175         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11176         Blake.
11177         Requested by Eric Blake.
11178
11179 2010-09-22  Bruno Haible  <bruno@clisp.org>
11180
11181         termios: Relax license.
11182         * modules/termios (License): Change to LGPLv2+.
11183         Requested by Eric Blake.
11184
11185 2010-09-22  Bruno Haible  <bruno@clisp.org>
11186
11187         threadlib: Allow the package to change the default to 'no'.
11188         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11189         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11190         Reported by Paul Eggert.
11191
11192 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11193             Bruno Haible  <bruno@clisp.org>
11194
11195         Fix endless loop in mbmemcasecoll.
11196         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11197         byte.
11198         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11199
11200 2010-09-22  Bruno Haible  <bruno@clisp.org>
11201
11202         Tests for module 'memcoll'.
11203         * modules/memcoll-tests: New file.
11204         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11205
11206         memcoll, xmemcoll: Clarify size vs. length.
11207         * modules/memcoll.c (memcoll0): Clarify specification.
11208         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11209         passed to collate_error.
11210
11211 2010-09-22  Bruno Haible  <bruno@clisp.org>
11212
11213         Tests for module 'memcasecmp'.
11214         * modules/memcasecmp-tests: New file.
11215         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11216
11217 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11218
11219         * lib/pthread.in.h: Add split double-inclusion guard, and include
11220         system <pthread.h> if there is one.  Use @@-style as in other
11221         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11222         pthread.h doesn't.
11223         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11224         (pthread_mutexattr_settype, pthread_mutex_trylock):
11225         New static inline functions, if there's no system <pthread.h>.
11226         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11227         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11228         Approximate with mutexes if the system lacks spinlocks, as in
11229         MacOS.
11230         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11231         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11232         @@-style.  Check for spinlocks separately.
11233         (gl_PTHREAD_DEFAULTS): New macro.
11234         * modules/pthread: Redo to use a more typical style for in.h files.
11235
11236 2010-09-21  Eric Blake  <eblake@redhat.com>
11237
11238         net_if: enhance tests
11239         * tests/test-net_if.c (main): Move signature checks earlier.
11240         Print failures to stderr.
11241         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11242         Document the bug that we do not yet fix.
11243
11244 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11245
11246         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11247         about gnulib, not GSS.
11248
11249 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11250
11251         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11252         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11253         for Emacs.
11254         * build-aux/pmccabe2html: Make Makefile.am example code more
11255         cut-and-paste friendly.
11256
11257 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11258
11259         * tests/test-net_if.c: New file.
11260         * modules/net_if-tests: New file.
11261
11262 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         pthread: add pthread_spin_destroy
11265         * lib/pthread.in.h (pthread_spin_destroy): New function.
11266
11267 2010-09-19  Bruno Haible  <bruno@clisp.org>
11268
11269         gnulib-tool: Fix --help output.
11270         * gnulib-tool (func_usage): Fix help message.
11271         Reported by Reuben Thomas <rrt@sc3d.org>.
11272
11273 2010-09-18  Jim Meyering  <meyering@redhat.com>
11274
11275         maint.mk: avoid unexpanded \n in two diagnostics
11276         * top/maint.mk (sc_prohibit_always_true_header_tests):
11277         Don't use a literal \n in a halt=... assignment.  It would not be
11278         expanded, and the two \n bytes would appear in the diagnostic output
11279         rather than the desired newline.  Use halt=$$(printf ... instead.
11280         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11281
11282 2010-09-18  Bruno Haible  <bruno@clisp.org>
11283
11284         netinet_in: Doc tweak.
11285         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11286         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11287
11288 2010-09-18  Jim Meyering  <meyering@redhat.com>
11289
11290         init.sh: correct an outdated comment
11291         * tests/init.sh (create_exe_shims_):  s/function/alias/
11292
11293         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11294         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11295         a file named "*.exe" is removed between the glob expansion and the
11296         processing of that oddly named file.
11297
11298 2010-09-17  Eric Blake  <eblake@redhat.com>
11299
11300         mirbsd: add some more support
11301         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11302         in BSD family.
11303         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11304         devices as OpenBSD.
11305         * m4/host-os.m4 (mirbsd): Add MirBSD.
11306
11307         tests: fix unportable assumption on sys/wait.h
11308         * tests/test-sys_wait.c (main): Relax test.
11309         * tests/test-stdlib.c (main): Likewise.
11310
11311         init.sh: accomodate directory with no .exes
11312         * tests/init.sh: Accomodate directory containing only scripts.
11313
11314         tests: avoid compiler warning
11315         * tests/test-stdlib.c (main): Use the variable.
11316
11317         fdutimens, fdutimensat: update signature, again
11318         * lib/utimens.h (gl_futimens): Delete, and move signature...
11319         (fdutimens): ...here.
11320         (fdutimensat): Rearrange signature.
11321         (lutimensat): Rename variable for clarity.
11322         * lib/fdutimensat.c (fdutimensat): Update signature.
11323         * lib/utimens.c (fdutimens): Likewise.
11324         (gl_futimens): Delete.
11325         (utimens, lutimens): Update callers.
11326         * lib/futimens.c (futimens): Likewise.
11327         * tests/test-fdutimensat.c: Likewise.
11328         * tests/test-utimens.c: Likewise.
11329         * tests/test-futimens.h: Update comment.
11330         * NEWS: Mention this.
11331         Suggested by Paul Eggert.
11332
11333 2010-09-17  Bruno Haible  <bruno@clisp.org>
11334
11335         Take over the maintenance of some older macros from Autoconf.
11336         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11337         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11338         GNU Autoconf.
11339         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11340         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11341
11342 2010-09-17  Eric Blake  <eblake@redhat.com>
11343
11344         fdutimensat: drop atflag validation
11345         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11346         with valid fd, to close a race scenario where futimens is
11347         unsupported and FILE was replaced by a symlink.
11348         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11349         accordingly.
11350         Suggested by Paul Eggert.
11351
11352 2010-09-16  Bruno Haible  <bruno@clisp.org>
11353
11354         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11355         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11356
11357 2010-09-16  Bruno Haible  <bruno@clisp.org>
11358
11359         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11360         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11361         login_tty exists.
11362         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11363
11364 2010-09-16  Bruno Haible  <bruno@clisp.org>
11365
11366         login_tty: Make the replacement code work on BSD systems.
11367         * lib/login_tty.c: Include <sys/ioctl.h>.
11368         (login_tty): Use ioctl TIOCSCTTY when available.
11369         * modules/login_tty (Depends-on): Add sys_ioctl.
11370         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11371
11372 2010-09-16  Bruno Haible  <bruno@clisp.org>
11373
11374         login_tty: Stricter unit test.
11375         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11376         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11377         and tcgetsid() after login_tty.
11378         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11379
11380 2010-09-16  Bruno Haible  <bruno@clisp.org>
11381
11382         New module 'tcgetsid'.
11383         * lib/tcgetsid.c: New file.
11384         * m4/tcgetsid.m4: New file.
11385         * modules/tcgetsid: New file.
11386         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11387         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11388         GNULIB_TCGETSID, HAVE_TCGETSID.
11389         * lib/termios.in.h: Include <sys/types.h>.
11390         (tcgetsid): New declaration.
11391         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11392         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11393         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11394         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11395
11396 2010-09-16  Bruno Haible  <bruno@clisp.org>
11397
11398         Tests for module 'termios'.
11399         * modules/termios-c++-tests: New file.
11400         * modules/termios-tests: New file.
11401         * tests/test-termios-c++.cc: New file.
11402         * tests/test-termios.c: New file.
11403
11404         New module 'termios'.
11405         * modules/termios: New file.
11406         * lib/termios.in.h: New file.
11407         * m4/termios_h.m4: New file.
11408         * doc/posix-headers/termios.texi: Mention the new module.
11409
11410 2010-09-16  Eric Blake  <eblake@redhat.com>
11411
11412         fdutimensat: add an atflag parameter
11413         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11414         * lib/utimens.h (fdutimensat): Update prototype.
11415         * tests/test-fdutimensat.c: Adjust test to match.
11416         * NEWS: Document the change.
11417         Suggested by Paul Eggert.
11418
11419 2010-09-16  Bruno Haible  <bruno@clisp.org>
11420
11421         Fix typos in comments.
11422         * lib/striconveh.h: Fix typo in comment.
11423         * lib/login_tty.c (login_tty): Likewise.
11424
11425 2010-09-15  Bruno Haible  <bruno@clisp.org>
11426
11427         stdlib: clarify MirBSD WEXITSTATUS bug
11428         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11429         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11430
11431 2010-09-15  Eric Blake  <eblake@redhat.com>
11432
11433         stdlib: work around MirBSD WEXITSTATUS bug
11434         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11435         * modules/stdlib (Depends-on): Add sys_wait.
11436         * tests/test-sys_wait.c (main): Enhance test.
11437         * tests/test-stdlib.c (main): Likewise.
11438         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11439
11440         docs: mention MacOS issue with WEXITSTATUS(constant)
11441         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11442         issue.
11443         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11444
11445         strnlen: add tests
11446         * modules/strnlen-tests: New file.
11447         * tests/test-strnlen.c: Likewise.
11448
11449 2010-09-14  Bruno Haible  <bruno@clisp.org>
11450
11451         unistr/base: Avoid link errors when module 'libunistring' is also used.
11452         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11453         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11454         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11455         Declare also when HAVE_LIBUNISTRING is set.
11456         Reported by Pádraig Brady <P@draigbrady.com>.
11457
11458 2010-09-14  Eric Blake  <eblake@redhat.com>
11459
11460         test-rawmemchr: make more robust
11461         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11462         (Depends-on, configure.ac): Add needed prerequisites to use it.
11463         * modules/memchr-tests (Files, Depends-on, configure.ac):
11464         Likewise, to avoid implicit reliance on memchr module prereqs.
11465         * tests/test-memchr.c (main): Ensure proper masking.
11466         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11467         reads.
11468
11469         memchr: detect glibc Alpha bug
11470         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11471         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11472         Alpha.
11473         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11474         * tests/test-memchr.c (main): Enhance test.
11475         Reported by Nelson H. F. Beebe.
11476
11477 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11478
11479         fts, getcwd, glob: audit for dirfd returning -1
11480         * lib/fts.c (opendir): Remove #define; no longer used.
11481         (opendirat): New arg PDIR_FD.  All callers changed.
11482         (fts_build, _opendir2): Use new opendirat to avoid the need for
11483         dirfd, or for checking whether dirfd returns a negative value.
11484         Don't use opendir; always use openat followed by fdopendir.
11485         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11486         it.
11487         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11488         returns -1 here.
11489         * modules/fts (Depends-on): Remove dirfd.
11490         * modules/getcwd (Depends-on): Likewise.
11491
11492 2010-09-13  Eric Blake  <eblake@redhat.com>
11493
11494         float: fix broken MirBSD header
11495         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11496         * doc/posix-headers/float.texi (float.h): Document it.
11497
11498 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11499
11500         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11501         * lib/fts.c (opendirat): New arg extra_flags.
11502         (__opendir2): Use it to avoid following symlinks when opening
11503         a directory, if symlinks are not supposed to be followed.  See
11504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11505
11506         fdopendir: preserve argument fd before returning
11507         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11508         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11509         (fdopendir): Use them, arranging for FD to be open to the same
11510         directory that it was when it started.  (It might be temporarily
11511         closed while fdopendir is running, so this not thread- or
11512         signal-safe.)  Be careful to do the right thing even when file
11513         descriptors are scarce and dup fails with errno == EMFILE.  See
11514         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11515
11516 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11517
11518         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11519         * NEWS: Document change.
11520         * m4/regex.m4: Disable test for regoff_t size.
11521
11522 2010-09-13  Jim Meyering  <meyering@redhat.com>
11523
11524         fts: don't operate on an invalid file descriptor after failed dup
11525         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11526         negative file descriptor.
11527
11528 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11529
11530         savedir: add streamsavedir, deprecate fdsavedir
11531         * NEWS: Mention deprecation of fdsavedir.
11532         * lib/savedir.c (streamsavedir): New extern function, whose name
11533         ends in "savedir" to be consistent with the others.  This differs
11534         from savedirstream in that it doesn't close its argument.  The
11535         next version of GNU tar will use this instead of fdsavedir, to
11536         avoid some race conditions and conserve file descriptors.
11537         (savedirstream): Reimplement as a wrapper around streamsavedir.
11538         (fdsavedir): Add a comment deprecating this function.  As far as
11539         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11540         * lib/savedir.h (streamsavedir): New decl.
11541         (fdsavedir): Add a comment deprecating this.
11542
11543 2010-09-10  Bruno Haible  <bruno@clisp.org>
11544
11545         langinfo: Fix last commit.
11546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11547         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11549
11550 2010-09-10  Bruno Haible  <bruno@clisp.org>
11551
11552         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11553         * lib/progreloc.c (O_EXEC): Define fallback.
11554
11555 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11556
11557         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11558         * NEWS: Document recent changes to fcntl-h.
11559         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11560         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11561         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11562         Similarly for O_SEARCH; this last was already true, but not documented.
11563         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11564         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11565         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11566         Likewise.
11567         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11568         is zero, not whether it is defined.
11569         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11570         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11571         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11572
11573 2010-09-10  Bruno Haible  <bruno@clisp.org>
11574
11575         langinfo, nl_langinfo: Fix for IRIX 5.3.
11576         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11577         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11578         HAVE_LANGINFO_YESEXPR.
11579         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11580         HAVE_LANGINFO_YESEXPR.
11581         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11582         HAVE_LANGINFO_T_FMT_AMPM is 0.
11583         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11584         HAVE_LANGINFO_YESEXPR is 0.
11585         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11586         NOEXPR.
11587         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11588         * doc/posix-functions/nl_langinfo.texi: Likewise.
11589         Reported by Eric Blake.
11590
11591 2010-09-10  Bruno Haible  <bruno@clisp.org>
11592
11593         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11594         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11595         on FreeBSD 8.0 and OpenBSD 4.6.
11596         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11597         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11598         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11599         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11600         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11601         ac_includes_default.
11602         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11603
11604 2010-09-09  Eric Blake  <eblake@redhat.com>
11605
11606         strsignal: work around NetBSD bug
11607         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11608         * lib/string.in.h (includes): Likewise.
11609         * doc/posix-functions/strsignal.texi (strsignal): Document the
11610         bug.
11611         Reported by Nelson H. F. Beebe.
11612
11613         gnulib-tool: work with NetBSD /bin/sh
11614         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11615         (func_get_description, func_get_comment, func_get_status)
11616         (func_get_notice, func_get_applicability, func_get_filelist)
11617         (func_get_dependencies, func_get_autoconf_early_snippet)
11618         (func_get_autoconf_snippet, func_get_automake_snippet)
11619         (func_get_include_directive, func_get_link_directive)
11620         (func_get_license, func_get_maintainer, func_import): Avoid
11621         shell syntax errors from parsing syntax extensions.
11622
11623 2010-09-09  Bruno Haible  <bruno@clisp.org>
11624
11625         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11626         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11627         a reliable way to determine whether the 'alias' command works.
11628
11629 2010-09-08  Jim Meyering  <meyering@redhat.com>
11630
11631         init.sh: penalize a set-x-impaired shell; don't disqualify it
11632         * tests/init.sh: Too many shells corrupt application stderr when
11633         you set -x, so we can't afford to disqualify them, since at least
11634         on Irix-6.5, that would disqualify all bourne shells.
11635         Instead, use a two-pass approach.
11636         On the first pass, try to find a shell that meets the stricter
11637         condition that set -x does not corrupt stderr.
11638         If no shell meets the stricter condition, retest each candidate
11639         shell, but without that extra condition.  Finally, when
11640         VERBOSE=yes is requested and set -x might cause trouble, simply
11641         issue a warning and refrain from enabling debug output.
11642
11643 2010-09-08  Eric Blake  <eblake@redhat.com>
11644
11645         unsetenv: fix OpenBSD bug
11646         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11647         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11648         documentation.
11649         Reported by Jim Meyering.
11650
11651         strtod: work around IRIX 6.5 bug
11652         * lib/strtod.c (strtod): Reparse number on shorter string if
11653         exponent parse was invalid.
11654         * tests/test-strtod.c (main): Add check for "0x1p 2".
11655         Reported by Tom G. Christensen.
11656
11657         getopt: optimize previous patch
11658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11659         empty variable.  Speed up awk script.
11660         Reported by Paolo Bonzini.
11661
11662 2010-09-08  Jim Meyering  <meyering@redhat.com>
11663
11664         test.sh: disqualify shells for which set -x corrupts stderr
11665         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11666         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11667         appear in stderr output.  For example, this command:
11668             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11669         prints "P=1" on those two systems:
11670
11671 2010-09-08  Bruno Haible  <bruno@clisp.org>
11672
11673         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11674         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11675         commands, because some shells ignore redirections when there is an
11676         error in the command lookup.
11677         Reported by Eric Blake.
11678
11679 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11680
11681         * lib/regex.h: Fix a mention of `regex_compile' (should be
11682         `re_compile_pattern').
11683         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11684         (re_set_registers): Correct name of parameter in comment.
11685
11686         * doc/regex.texi: Add documentation for missing syntax flags.
11687         Remove commented-out documentation of defunct syntax option
11688         RE_NO_EMPTY_ALTS.
11689         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11690         Add documentation of re_set_registers.
11691         Document trick to re-use a pattern buffer by setting fastmap manually.
11692         Update documentation of struct re_pattern_buffer per public members.
11693         Uncomment documentation of equivalence class operators and
11694         collating symbol operators, since they are now implemented,
11695         Explain leftmost-longest matching in relation to alternatives.
11696         Tidy documentation of substring matching.
11697         Remove POSIX documentation, which is done better in
11698         glibc, and refer the reader there. Keep BSD API documentation, as
11699         that is not readily available elsewhere.
11700
11701 2010-09-07  Eric Blake  <eblake@redhat.com>
11702
11703         getopt: handle POSIXLY_CORRECT set but not exported
11704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11705         export state of POSIXLY_CORRECT, due to bash set -o posix.
11706         Reported by Dustin J. Mitchell.
11707
11708 2010-09-05  Bruno Haible  <bruno@clisp.org>
11709
11710         gnulib-tool: Highlight the changed options.
11711         * gnulib-tool (func_usage): Display the --import, --add-import,
11712         --remove-import explanations in bold font.
11713
11714 2010-09-06  Karl Berry  <karl@gnu.org>
11715
11716         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11717
11718 2010-09-05  Bruno Haible  <bruno@clisp.org>
11719
11720         uniwidth/width: Update comment.
11721         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11722         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11723
11724 2010-09-05  Bruno Haible  <bruno@clisp.org>
11725
11726         isinf, isnan: Relax license.
11727         * modules/isinf (License): Change from GPL to LGPL, with consent from
11728         Ben Pfaff.
11729         * modules/isnan (License): Likewise.
11730         Requested by Ludovic Courtès.
11731
11732 2010-09-04  Bruno Haible  <bruno@clisp.org>
11733
11734         gnulib-tool: Help migration from --import to --add-import or --update.
11735         * gnulib-tool: Emit a verbose error message when --import is used
11736         without any module name.
11737
11738 2010-09-04  Bruno Haible  <bruno@clisp.org>
11739
11740         Update doc about gnulib-tool.
11741         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11742         'gnulib-tool --update' in more detail.
11743         Reported by Eric Blake.
11744
11745 2010-09-04  Bruno Haible  <bruno@clisp.org>
11746
11747         gnulib-tool: Change --import. New options --add/remove-import.
11748         * gnulib-tool: New options --add-import, --remove-import.
11749         (func_usage): Document them.
11750         (have_associative): Define always.
11751         (func_import): In import mode, don't merge the specified settings with
11752         the cached settings. Implement remove-import mode.
11753         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11754         Explain when to use them versus --import.
11755         (Simple update): Use --add-import instead of --import.
11756         * NEWS: Mention the change.
11757
11758 2010-09-04  Bruno Haible  <bruno@clisp.org>
11759
11760         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11761         separate gnulib.mk.
11762
11763 2010-09-04  Bruno Haible  <bruno@clisp.org>
11764
11765         gnulib-tool: Don't talk about CVS any more.
11766         * gnulib-tool (func_usage, func_import): Write "version control"
11767         instead of CVS.
11768
11769 2010-09-04  Jim Meyering  <meyering@redhat.com>
11770
11771         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11772         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11773         false positives (whose names may be ill-chosen) when searching
11774         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11775         would cause a false-positive.
11776
11777         avoid coreutils "make distcheck" failure
11778         Coreutils tests with an absolute build directory name that contains
11779         a space.  Not quoting this directory name caused a failure.
11780         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11781         * tests/test-vc-list-files-cvs.sh: Likewise.
11782
11783 2010-09-04  Bruno Haible  <bruno@clisp.org>
11784
11785         gnulib-tool: Avoid error when run in a package without Makefile.am.
11786         * gnulib-tool: When collecting the m4dirs in a package that does not
11787         have a Makefile.am, eliminate those directories that contain no
11788         gnulib-cache.m4. Fix expression that counts these directories.
11789
11790 2010-09-04  Bruno Haible  <bruno@clisp.org>
11791
11792         update-copyright test: Improve output when perl is missing or too old.
11793         * tests/test-update-copyright.sh: Move test of Perl version down after
11794         the test whether Perl exists. Provide an explanation relating Perl's
11795         error message to Automake's SKIP: message.
11796
11797 2010-09-04  Bruno Haible  <bruno@clisp.org>
11798
11799         Don't augment PATH in TESTS_ENVIRONMENT.
11800         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11801         set abs_aux_dir instead of augmenting PATH.
11802         * modules/vc-list-files-tests (Makefile.am): Likewise.
11803         * tests/test-update-copyright.sh: Augment PATH here.
11804         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11805         path_prepend_.
11806         * tests/test-vc-list-files-git.sh: Likewise.
11807
11808 2010-09-04  Jim Meyering  <meyering@redhat.com>
11809
11810         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11811         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11812
11813 2010-09-04  Bruno Haible  <bruno@clisp.org>
11814
11815         strdup: Fix compilation error in C++ mode.
11816         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11817         the macro.
11818
11819 2010-09-04  Bruno Haible  <bruno@clisp.org>
11820
11821         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11822         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11823         macro into a function.
11824         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11825
11826 2010-09-04  Bruno Haible  <bruno@clisp.org>
11827
11828         Set PATH_SEPARATOR the same way autoconf does.
11829         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11830         the value of PATH_SEPARATOR the same way autoconf-generated configure
11831         scripts do.
11832         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11833         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11834
11835 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11836
11837         Set PATH_SEPARATOR the same way autoconf does.
11838         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11839         the same way autoconf-generated configure scripts do.
11840         * posix-modules: Likewise.
11841
11842 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11843
11844         hash: fix safe_hasher const typo
11845         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11846         const; otherwise, there is a type error later.
11847
11848 2010-09-02  Jim Meyering  <meyering@redhat.com>
11849
11850         test-update-copyright.sh: require perl 5.8.0
11851         * tests/test-update-copyright.sh: Require 5.8.0,
11852         which Tom G. Christensen has confirmed is adequate,
11853         while 5.6.1 is not.
11854
11855 2010-09-02  Eric Blake  <eblake@redhat.com>
11856
11857         tests: init.sh improvements for re-exec'ing with zsh
11858         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11859         -vx through shell re-exec.
11860         Reported by Tom G. Christensen.
11861
11862         wctype: fix typo in previous commit
11863         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11864         Reported by Ludovic Courtès.
11865
11866 2010-09-02  Jim Meyering  <meyering@redhat.com>
11867
11868         test-update-copyright.sh: skip test if Perl is too old
11869         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11870         Reported by Tom G. Christensen.
11871
11872 2010-09-02  Bruno Haible  <bruno@clisp.org>
11873
11874         wctype: Avoid compilation error on IRIX 6.5.30.
11875         * lib/wctype.in.h (iswblank): Declare with a replacement if
11876         REPLACE_ISWBLANK is set.
11877         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11878         declared. Set REPLACE_ISWBLANK.
11879         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11880         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11881         * doc/posix-headers/wctype.texi: Likewise.
11882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11883
11884 2010-09-01  Bruno Haible  <bruno@clisp.org>
11885
11886         New module 'socketlib'.
11887         * modules/socketlib: New file.
11888         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11889         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11890         * modules/sockets (Depends-on): Add socketlib.
11891         Suggested by Sam Steingold <sds@gnu.org>.
11892
11893 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11894
11895         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11896
11897         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11898         when one needs search access to a directory but not read access.
11899         On systems where it is available, it works in some cases where
11900         O_RDONLY does not, namely on directories that are searchable but
11901         not readable, and which need only to be searchable.  If O_SEARCH
11902         is not available, fall back to the traditional method of using
11903         O_RDONLY.
11904
11905         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11906         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11907         when opening a directory that needs only to be searchable.
11908         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11909         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11910         * lib/openat-proc.c (openat_proc_name): Likewise.
11911         * lib/openat.c (openat_needs_fchdir): Likewise.
11912         * lib/save-cwd.c (save_cwd): Likewise.
11913         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11914
11915 2010-08-28  Bruno Haible  <bruno@clisp.org>
11916
11917         New module 'host-cpu-c-abi'.
11918         * modules/host-cpu-c-abi: New file.
11919         * m4/host-cpu-c-abi.m4: New file, based on part of
11920         clisp/src/m4/general.m4.
11921         Requested by Sam Steingold <sds@gnu.org>.
11922
11923 2010-08-31  Eric Blake  <eblake@redhat.com>
11924         and Jim Meyering  <meyering@redhat.com>
11925
11926         hash: factor, and guard against misbehaving hasher function
11927         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11928         of table->hasher's return value.  Also protect against a hash value
11929         so large that adding it to table->bucket results in a NULL pointer.
11930         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11931         Use it in place of open-coded check-and-abort.
11932
11933 2010-08-30  Bruno Haible  <bruno@clisp.org>
11934
11935         hash: silence spurious clang warning
11936         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11937         Reported by Eric Blake.
11938
11939 2010-08-30  Eric Blake  <eblake@redhat.com>
11940
11941         strstr, memmem, strcasestr: avoid leaked shell message
11942         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11943         FreeBSD.
11944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11946
11947         tests: silence clang warning
11948         * tests/test-malloca.c (do_allocation): Avoid dead store.
11949
11950 2010-08-29  Bruno Haible  <bruno@clisp.org>
11951
11952         gettext: Fix recent mistake.
11953         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11954
11955 2010-08-29  Bruno Haible  <bruno@clisp.org>
11956
11957         selinux-h: Offer a --without-selinux option.
11958         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11959         --without-selinux was specified, skip all tests and define
11960         HAVE_SELINUX_SELINUX_H to 0.
11961         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11962         set LIB_SELINUX to empty.
11963         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11964         gl_LIBSELINUX. If --without-selinux was specified, replace
11965         selinux/context.h.
11966         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11967
11968 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11969             Bruno Haible  <bruno@clisp.org>
11970
11971         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11972         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11973         of HAVE_REALLOC.
11974         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11975         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11976         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11977         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11978
11979 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11980             Bruno Haible  <bruno@clisp.org>
11981
11982         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11983         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11984         HAVE_CALLOC.
11985         * lib/xmalloc.c: Update accordingly.
11986         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11987         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11988         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11989
11990 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11991             Bruno Haible  <bruno@clisp.org>
11992
11993         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11994         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11995         HAVE_MALLOC.
11996         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11997         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11998         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11999
12000 2010-08-29  Bruno Haible  <bruno@clisp.org>
12001
12002         Update modules list.
12003         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12004         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12005         (String handling <string.h>): Add astrxfrm.
12006         (File system functions): Add readlinkat.
12007
12008 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12009
12010         Tests for module 'realloc-gnu'.
12011         * modules/realloc-gnu-tests: New file.
12012         * tests/test-realloc-gnu.c: New file.
12013
12014         Tests for module 'calloc-gnu'.
12015         * modules/calloc-gnu-tests: New file.
12016         * tests/test-calloc-gnu.c: New file.
12017
12018         Tests for module 'malloc-gnu'.
12019         * modules/malloc-gnu-tests: New file.
12020         * tests/test-malloc-gnu.c: New file.
12021
12022 2010-08-28  Bruno Haible  <bruno@clisp.org>
12023
12024         Rename module 'realloc' -> 'realloc-gnu'.
12025         * modules/realloc-gnu: New file, copied from modules/realloc.
12026         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12027         obsolete.
12028         * modules/mgetgroups (Depends-on): Update.
12029         * doc/posix-functions/realloc.texi: Update.
12030         * NEWS: Mention the change.
12031
12032         Rename module 'calloc' -> 'calloc-gnu'.
12033         * modules/calloc-gnu: New file, copied from modules/calloc.
12034         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12035         obsolete.
12036         * doc/posix-functions/calloc.texi: Update.
12037         * NEWS: Mention the change.
12038
12039         Rename module 'malloc' -> 'malloc-gnu'.
12040         * modules/malloc-gnu: New file, copied from modules/malloc.
12041         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12042         obsolete.
12043         * modules/argp (Depends-on): Update.
12044         * modules/regex (Depends-on): Update.
12045         * doc/posix-functions/malloc.texi: Update.
12046         * NEWS: Mention the change.
12047
12048 2010-08-28  Eric Blake  <eblake@redhat.com>
12049
12050         pread, pwrite: add missing dependency
12051         * modules/pread (Depends-on): Add extensions.
12052         * modules/pwrite (Depends-on): Likewise.
12053
12054 2010-08-28  Bruno Haible  <bruno@clisp.org>
12055
12056         unistr/u*-strchr: Fix tests dependencies.
12057         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12058         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12059         Reported by Ian Beckwith <ianb@erislabs.net>.
12060
12061 2010-08-28  Bruno Haible  <bruno@clisp.org>
12062
12063         read-file: Don't occupy too much unused memory.
12064         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12065
12066 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12067             Eric Blake  <eblake@redhat.com>
12068             Bruno Haible  <bruno@clisp.org>
12069
12070         read-file: Avoid memory reallocations with regular files.
12071         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12072         (fread_file): With regular files, use the remaining length as the
12073         initial buffer size.  Check against overflow.
12074         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12075         sys_stat.
12076
12077 2010-08-28  Bruno Haible  <bruno@clisp.org>
12078
12079         ftello: Relax license.
12080         * modules/ftello (License): Relax to LGPLv2+.
12081         Reported by Eric Blake.
12082
12083 2010-08-28  Bruno Haible  <bruno@clisp.org>
12084
12085         Avoid relocwrapper link errors due to gnulib replacement functions.
12086         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12087         function.
12088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12089
12090 2010-08-28  Bruno Haible  <bruno@clisp.org>
12091
12092         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12093         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12094         defined.
12095         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12096         Suggested by Eric Blake.
12097
12098 2010-08-28  Bruno Haible  <bruno@clisp.org>
12099
12100         sys_socket, netdb: Ensure socklen_t gets defined.
12101         * modules/sys_socket (Depends-on): Add socklen.
12102         * modules/netdb (Depends-on): Likewise.
12103         * modules/getaddrinfo (Depends-on): Remove socklen.
12104         * modules/getsockopt (Depends-on): Likewise.
12105         * modules/setsockopt (Depends-on): Likewise.
12106         * tests/test-sys_socket.c: Check that socklen_t is defined.
12107         * tests/test-netdb.c: Likewise.
12108         * m4/socklen.m4: Update comments.
12109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12110
12111 2010-08-27  Eric Blake  <eblake@redhat.com>
12112
12113         login_tty: add missing dependency
12114         * modules/login_tty (Depends-on): Add pty.
12115
12116 2010-08-26  Eric Blake  <eblake@redhat.com>
12117
12118         lib-symbol-versions: fix m4 quoting
12119         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12120         format for AC_LINK_IFELSE.
12121
12122         glob: fix compile test
12123         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12124
12125         btowc: fix missing file
12126         * modules/btowc (Files): Also ship locale-fr.m4.
12127
12128         lseek: fix link test
12129         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12130         AC_LINK_IFELSE.
12131
12132         include_next: silence autoconf 2.68 warning
12133         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12134         AC_COMPILE_IFELSE as special.
12135         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12136         autoconf < 2.68.
12137
12138         acl: fix compilation test
12139         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12140         AC_COMPILE_IFELSE.
12141
12142 2010-08-26  Bruno Haible  <bruno@clisp.org>
12143
12144         Modernize AC_TRY_RUN invocations.
12145         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12146         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12147         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12148         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12149         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12150         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12151         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12152         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12153         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12154         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12156         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12157         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12158         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12159         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12160         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12161         gl_MBRLEN_NUL_RETVAL): Likewise.
12162         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12163         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12164         Likewise.
12165         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12166         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12167         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12168         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12169         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12170         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12171         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12172         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12173         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12174         Likewise.
12175         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12176         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12178         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12180         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12181         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12182         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12183         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12185
12186 2010-08-26  Bruno Haible  <bruno@clisp.org>
12187
12188         Modernize AC_TRY_LINK invocations.
12189         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12190         AC_TRY_LINK.
12191         * m4/argp.m4 (gl_ARGP): Likewise.
12192         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12193         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12194         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12195         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12196         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12197         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12198         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12199         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12200         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12202         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12203         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12204         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12205         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12206         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12207         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12208         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12209         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12210         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12211         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12212         Likewise.
12213         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12214         Likewise.
12215         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12216         Likewise.
12217         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12219         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12220         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12221         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12222         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12223         * m4/servent.m4 (gl_SERVENT): Likewise.
12224         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12225         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12226         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12227         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12228         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12229         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12230         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12231         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12232         * modules/tsearch-tests (configure.ac): Likewise.
12233
12234 2010-08-26  Bruno Haible  <bruno@clisp.org>
12235
12236         Modernize AC_TRY_COMPILE invocations.
12237         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12238         AC_TRY_COMPILE.
12239         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12240         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12241         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12242         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12243         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12244         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12245         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12246         * m4/lock.m4 (gl_LOCK): Likewise.
12247         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12248         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12249         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12250         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12251         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12252         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12253         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12255         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12256         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12257         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12258         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12259         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12260         extraneous semicolon.
12261
12262 2010-08-26  Jim Meyering  <meyering@redhat.com>
12263
12264         stat-time: relax license LGPL
12265         * modules/stat-time (License): Change from GPL to LGPL,
12266         with consent from all contributors, for use in libguile.
12267         Requested by Ludovic Courtès.
12268
12269 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12270
12271         poll: return immediately on POLLHUP.
12272         * lib/poll.c (poll): Always set timeout before wait_timeout is
12273         computed.
12274
12275 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12276
12277         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12278         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12279         rmdir ("dir/.//"), unlinkat.
12280
12281 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12282
12283         stdbool: avoid spurious failure with modern xlc
12284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12285
12286 2010-08-24  Bruno Haible  <bruno@clisp.org>
12287
12288         getloadavg: simplify code
12289         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12290         gl_have_func. Update comments.
12291
12292 2010-08-24  Eric Blake  <eblake@redhat.com>
12293
12294         getloadavg: don't define SVR4 on cygwin
12295         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12296         only define SVR4 when -lkvm is required.
12297         Reported by Yaakov Selkowitz.
12298
12299 2010-08-24  Bruno Haible  <bruno@clisp.org>
12300
12301         priv-set: fix comment
12302         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12303
12304 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12305
12306         priv-set: fix comments
12307         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12308         to match code, as suggested by David Bartley in:
12309         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12310
12311 2010-08-23  Eric Blake  <eblake@redhat.com>
12312
12313         stdbool: avoid rejecting clang
12314         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12315         * tests/test-stdbool.c: Enable more tests if using the system
12316         <stdbool.h> instead of the gnulib replacement.
12317         (main): Move xlc bug test to a runtime test for all compilers.
12318         Reported by Anders Kaseorg.
12319
12320         argz: fix shell quoting issue
12321         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12322         Reported by Charles Wilson.
12323
12324 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12325             Erik Faye-Lund <kusmabite@gmail.com>
12326
12327         poll, select: handle ERROR_BROKEN_PIPE.
12328         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12329         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12330         * lib/select.c (win32_compute_revents): Do not mark a pipe
12331         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12332
12333 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12334
12335         fts: allow compilation with C++
12336         * lib/fts_.h: Specify extern "C" linkage with C++.
12337
12338 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12339
12340         Fix gnulib-tool sed script de-commentation for AIX sed.
12341         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12342         sed.
12343
12344 2010-08-17  Eric Blake  <eblake@redhat.com>
12345
12346         test-stddef: test for (some) offsetof bugs
12347         * tests/test-stddef.c: Enhance test to ensure correct type of
12348         offsetof.
12349         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12350         that we are not fixing at this time.
12351
12352 2010-08-15  Bruno Haible  <bruno@clisp.org>
12353
12354         stpncpy: Allow stpncpy to be defined as a macro.
12355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12356         if it's already correctly declared.
12357         * lib/string.in.h (stpncpy): Undefine before redefining.
12358         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12359
12360 2010-08-14  Bruno Haible  <bruno@clisp.org>
12361
12362         Rename module 'memxfrm' to 'amemxfrm'.
12363         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12364         (amemxfrm): Renamed from memxfrm.
12365         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12366         (amemxfrm): Renamed from memxfrm.
12367         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12368         * NEWS: Mention the change.
12369         * MODULES.html.sh (String handling <string.h>): Update.
12370         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12371         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12372         * lib/unicase/u16-casexfrm.c: Likewise.
12373         * lib/unicase/u32-casexfrm.c: Likewise.
12374         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12375         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12376         * lib/uninorm/u16-normxfrm.c: Likewise.
12377         * lib/uninorm/u32-normxfrm.c: Likewise.
12378         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12379         memxfrm.
12380         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12381         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12382         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12383         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12384         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12385         Suggested by Paul Eggert.
12386
12387 2010-08-14  Bruno Haible  <bruno@clisp.org>
12388
12389         Tests for module 'astrxfrm'.
12390         * modules/astrxfrm-tests: New file.
12391         * tests/test-astrxfrm.c: New file.
12392
12393         New module 'astrxfrm'.
12394         * lib/astrxfrm.h: New file.
12395         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12396         * modules/astrxfrm: New file.
12397
12398 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12399
12400         regex: Tweak doc.
12401         * doc/regex.texi (Overview): Don't mention regex.c.
12402         (GNU Regular Expression Compiling): Likewise.
12403         (Match-end-of-line Operator): Mention 'not_eol'.
12404
12405 2010-08-14  Brian Gough  <bjg@gnu.org>
12406             Bruno Haible  <bruno@clisp.org>
12407
12408         git-merge-changelog: add doc relating to use with bzr and hg.
12409         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12410
12411 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12412
12413         pthread: fix pthread.h creation for srcdir != builddir
12414         * modules/pthread (Makefile.am): Fix the rule to work also in a
12415         non-srcdir build.
12416
12417 2010-08-13  Karl Berry  <karl@gnu.org>
12418
12419         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12420         * doc/posix-*/*: force line break before @url of POSIX
12421         specifications.
12422         Suggested by Werner Lemberg.
12423
12424 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12425
12426         strtod: fix const diagnostic
12427         * lib/strtod.c (strtod): Don't assign const char * to char *,
12428         as this elicits a warning from GCC when warnings are enabled.
12429
12430 2010-08-10  Pádraig Brady <P@draigbrady.com>
12431         and Eric Blake  <eblake@redhat.com>
12432
12433         copy-acl: ignore ENOTSUP on HP-UX
12434         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12435         so that it is available for HP-UX.
12436         * lib/copy-acl.c (qcopy_acl): Use it.
12437         Reported by Patrick M. Callahan.
12438
12439 2010-08-10  Eric Blake  <eblake@redhat.com>
12440
12441         open, chown: relax license
12442         * modules/open (License): Change to LGPLv2+, with consent by all
12443         authors, for use in augeas.
12444         * modules/chown (License): Likewise.
12445         * modules/lchown (Likewise): Likewise.
12446         Requested by Adam Stokes.
12447
12448 2010-08-09  Karl Berry  <karl@gnu.org>
12449
12450         * build-aux/ar-lib: new file, import from Automake.
12451         * config/srclist.txt: autocheck for updates.
12452
12453 2010-08-09  Eric Blake  <eblake@redhat.com>
12454
12455         readlinkat: adjust client modules
12456         * modules/areadlinkat (Depends-on): Use readlinkat, not
12457         symlinkat.
12458         * modules/areadlinkat-with-size (Depends-on): Likewise.
12459
12460         mknod: be more vocal about danger of running tests as root
12461         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12462         root, since that is just asking for problems.
12463         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12464
12465         readlinkat: split into its own module
12466         * modules/symlinkat: Split readlinkat...
12467         * modules/readlinkat: ...into separate module.
12468         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12469         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12470         * lib/symlinkat.c (readlinkat): Move...
12471         * lib/readlinkat.c: ...into new file.
12472         * modules/symlinkat-tests: Split readlinkat test...
12473         * modules/readlinkat-tests: ...into separate module.
12474         * tests/test-symlinkat.c: Split...
12475         * tests/test-readlinkat.c: ...into new file.
12476         * NEWS: Document the split.
12477         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12478         * lib/unistd.in.h (readlinkat): Likewise.
12479         Suggested by Bruno Haible.
12480
12481 2010-08-08  Bruno Haible  <bruno@clisp.org>
12482
12483         memxfrm: Speed up.
12484         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12485         that usually only one call to strxfrm is necessary for each string
12486         part.
12487         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12488
12489 2010-08-07  Karl Berry  <karl@gnu.org>
12490
12491         * doc/posix-headers/limits.texi,
12492         * doc/posix-functions/malloc.texi,
12493         * doc/posix-functions/strsignal.texi: missing @item.
12494         * doc/ld-version-script.texi: spurious leading i.
12495         * doc/regex.texi (Interval Operators): no commas inside @var.
12496
12497 2010-08-01  Bruno Haible  <bruno@clisp.org>
12498
12499         Integrate the regex documentation.
12500         * doc/gnulib.texi: Define 'cn' index.
12501         (Regular expressions): New a chapter that includes regex.texi and
12502         regexprops-generic.texi.
12503         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12504         syntax.
12505
12506         Whitespace cleanup.
12507         * doc/regex.texi: Remove trailing spaces.
12508
12509         Add regex documentation.
12510         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12511         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12512         Written by Kathy A. Hargreaves and Karl Berry.
12513
12514 2010-08-01  Bruno Haible  <bruno@clisp.org>
12515
12516         link: Update documentation.
12517         * doc/posix-functions/link.texi: Update regarding Solaris.
12518
12519 2010-07-31  Bruno Haible  <bruno@clisp.org>
12520
12521         Update modules list.
12522         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12523         (String handling <string.h>): Add memcmp2, memxfrm.
12524         (Container data structures): Add xlist, xsublist, xoset.
12525         (Core language properties): Add alignof, unused-parameter.
12526         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12527         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12528         (Unibyte characters <ctype.h>): New section.
12529         (String handling <string.h>): New section.
12530         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12531         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12532         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12533         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12534         tan, tanh, tanl, y0, y1, yn.
12535         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12536         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12537         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12538         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12539         unlockpt, vdprintf, vdprintf-posix.
12540         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12541         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12542         xconcat-filename.
12543         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12544         getdtablesize, pipe2, pipe2-safer.
12545         (Security): New section.
12546         (Networking functions): Add accept4.
12547         (Signal handling): Add sigpipe.
12548         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12549         mbmemcasecoll.
12550         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12551         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12552         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12553         pipe-filter-ii.
12554         (Misc): Add argp-version-etc, login_tty, parse-duration.
12555
12556 2010-07-31  Bruno Haible  <bruno@clisp.org>
12557
12558         Improve doc in MODULES.html.
12559         * modules/linkat (Description): Add the word "function".
12560         * modules/mkfifo (Description): Likewise.
12561         * modules/mknod (Description): Likewise.
12562         * modules/remove (Description): Likewise.
12563         * modules/renameat (Description): Likewise.
12564         * modules/stat (Description): Likewise.
12565         * modules/symlink (Description): Likewise.
12566         * modules/unlink (Description): Likewise.
12567
12568 2010-07-31  Bruno Haible  <bruno@clisp.org>
12569
12570         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12571         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12572         option --enable/disable-c++ instead of --enable/disable-cxx.
12573         * NEWS: Mention the change.
12574
12575 2010-07-31  Bruno Haible  <bruno@clisp.org>
12576
12577         readlink, areadlink: Relax test a bit.
12578         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12579         alternative to ENOTDIR.
12580         * tests/test-areadlink.h (test_areadlink): Likewise.
12581         Reported by Rainer Tammer.
12582
12583 2010-07-31  Bruno Haible  <bruno@clisp.org>
12584
12585         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12586         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12587         character, perform the search using U_STRCHR.
12588         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12589         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12590         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12591         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12592         Suggested by Paolo Bonzini.
12593
12594 2010-07-31  Bruno Haible  <bruno@clisp.org>
12595
12596         unistr/u*-strstr: Fix dependencies.
12597         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12598         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12599         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12600
12601 2010-07-31  Bruno Haible  <bruno@clisp.org>
12602
12603         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12604         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12605         the beginning of the loop.
12606         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12607         cases in 'switch' statement.
12608
12609         unistr/u8-strchr: Fix several bugs.
12610         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12611         the string. When not found, return NULL, not a pointer near the end.
12612
12613         More tests for unistr/u8-strchr.
12614         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12615         that the function does not read past the first occurrence of the byte
12616         being searched.
12617         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12618         * tests/unistr/test-u16-strchr.c (main): New function.
12619         * tests/unistr/test-u32-strchr.c (main): New function.
12620
12621 2010-07-31  Bruno Haible  <bruno@clisp.org>
12622
12623         posix-modules: Ignore backup files of documentation files.
12624         * posix-modules: grep only through files named *.texi.
12625
12626 2010-07-31  Bruno Haible  <bruno@clisp.org>
12627
12628         symlinkat: Fix documentation.
12629         * doc/posix-functions/readlinkat.texi: Fix module name.
12630
12631 2010-07-31  Bruno Haible  <bruno@clisp.org>
12632
12633         fchownat: Replace also when chown has the trailing slash bug.
12634         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12635         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12636         introduced on 2010-04-10.
12637         Reported by Rainer Tammer.
12638
12639 2010-07-31  Bruno Haible  <bruno@clisp.org>
12640
12641         linkat: Work around AIX 7.1 bug.
12642         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12643         whether linkat handles trailing slash correctly. If not, replace linkat
12644         and define LINKAT_TRAILING_SLASH_BUG.
12645         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12646         check whether (fd1,file1) points to a directory if file1 or file2 ends
12647         in a slash. Code taken from lib/link.c.
12648         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12649         Reported by Rainer Tammer.
12650
12651 2010-07-31  Bruno Haible  <bruno@clisp.org>
12652
12653         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12654         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12655         This disables an xlc optimization that was causing wrong test results.
12656         Reported by Rainer Tammer.
12657
12658 2010-07-31  Bruno Haible  <bruno@clisp.org>
12659
12660         iconv: Work around AIX 6.1..7.1 bug.
12661         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12662         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12663         cross-compiling, guess no on all versions of AIX.
12664         Reported by Rainer Tammer.
12665
12666 2010-07-31  Bruno Haible  <bruno@clisp.org>
12667
12668         readlink: Relax test a bit.
12669         * tests/test-readlink.h (test_readlink): Allow different errno value
12670         when readlink is called with a file name that ends in / and refers to
12671         a file.
12672         Suggested by Eric Blake.
12673         Reported by Rainer Tammer.
12674
12675 2010-07-31  Bruno Haible  <bruno@clisp.org>
12676
12677         copysign: Does not require -lm on glibc systems.
12678         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12679         gl_COMMON_DOUBLE_MATHFUNC.
12680         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12681
12682 2010-07-31  Bruno Haible  <bruno@clisp.org>
12683
12684         duplocale: Work around AIX 7.1 bug.
12685         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12686         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12687         * lib/duplocale.c (rpl_duplocale): Update comment.
12688         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12689         Reported by Rainer Tammer.
12690
12691 2010-07-30  Bruno Haible  <bruno@clisp.org>
12692
12693         dirfd: Avoid link error on AIX 7.1.
12694         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12695         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12696         exist, set REPLACE_DIRFD.
12697         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12698         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12699         * doc/posix-functions/dirfd.texi: Update.
12700         Reported by Rainer Tammer.
12701
12702 2010-07-30  Eric Blake  <eblake@redhat.com>
12703
12704         strtod: next round of AIX fixes
12705         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12706         exponent.
12707         * tests/test-strtod.c (main): Enhance tests.
12708         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12709         Reported by Rainer Tammer.
12710
12711         futimens: fix configure check
12712         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12713         Reported by Bruno Haible.
12714
12715 2010-07-30  Bruno Haible  <bruno@clisp.org>
12716
12717         getline: Update regarding AIX.
12718         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12719         Reported by Rainer Tammer.
12720
12721 2010-07-30  Bruno Haible  <bruno@clisp.org>
12722
12723         wcwidth: Drop replacement on AIX 7.
12724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12725         AIX 7.
12726         Reported by Rainer Tammer.
12727
12728 2010-07-30  Bruno Haible  <bruno@clisp.org>
12729
12730         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12731         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12732         a 'char *'.
12733         Reported by Rainer Tammer.
12734
12735 2010-07-30  Bruno Haible  <bruno@clisp.org>
12736
12737         unlink: Update regarding AIX.
12738         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12739         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12740         Reported by Rainer Tammer.
12741
12742 2010-07-30  Bruno Haible  <bruno@clisp.org>
12743
12744         symlink: Update regarding AIX.
12745         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12746         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12747         Reported by Rainer Tammer.
12748
12749 2010-07-30  Bruno Haible  <bruno@clisp.org>
12750
12751         strndup: Update regarding AIX.
12752         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12753         AIX 7.
12754         Reported by Rainer Tammer.
12755
12756 2010-07-30  Bruno Haible  <bruno@clisp.org>
12757
12758         stat: Update regarding AIX.
12759         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12760         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12761         Reported by Rainer Tammer.
12762
12763 2010-07-30  Bruno Haible  <bruno@clisp.org>
12764
12765         truncl: Fix autoconf test.
12766         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12767         whether truncl works.
12768         Reported by Rainer Tammer.
12769
12770 2010-07-30  Bruno Haible  <bruno@clisp.org>
12771
12772         round: Update regarding AIX.
12773         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12774         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12775         Reported by Rainer Tammer.
12776
12777 2010-07-30  Bruno Haible  <bruno@clisp.org>
12778
12779         rename: Update regarding AIX.
12780         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12781         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12782         Reported by Rainer Tammer.
12783
12784 2010-07-30  Bruno Haible  <bruno@clisp.org>
12785
12786         printf.m4: Update regarding AIX.
12787         * m4/printf.m4: Update comments regarding AIX.
12788         Reported by Rainer Tammer.
12789
12790 2010-07-30  Bruno Haible  <bruno@clisp.org>
12791
12792         iconv: Update regarding AIX.
12793         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12794         AIX 7.
12795         Reported by Rainer Tammer.
12796
12797 2010-07-30  Bruno Haible  <bruno@clisp.org>
12798
12799         getopt: Update regarding AIX.
12800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12801         no on AIX.
12802         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12803         Reported by Rainer Tammer.
12804
12805 2010-07-30  Bruno Haible  <bruno@clisp.org>
12806
12807         ldexpl; Update regarding AIX.
12808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12809         on AIX 7.
12810         Reported by Rainer Tammer.
12811
12812 2010-07-30  Bruno Haible  <bruno@clisp.org>
12813
12814         frexpl: Update regarding AIX.
12815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12816         on AIX 7.
12817         Reported by Rainer Tammer.
12818
12819 2010-07-30  Bruno Haible  <bruno@clisp.org>
12820
12821         open, fopen: Update regarding AIX.
12822         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12823         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12824         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12825         * doc/posix-functions/fopen.texi: Likewise.
12826         Reported by Rainer Tammer.
12827
12828 2010-07-30  Bruno Haible  <bruno@clisp.org>
12829
12830         chown: Update doc regarding AIX.
12831         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12832         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12833         Reported by Rainer Tammer.
12834
12835 2010-07-30  Eric Blake  <eblake@redhat.com>
12836
12837         strtod: fix bug in replacement function on AIX
12838         * lib/strtod.c (strtod): Special case broken "0x" parse in
12839         underlying strtod.
12840         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12841         * doc/posix-functions/strtod.texi (strtod): Likewise.
12842         Reported by Rainer Tammer.
12843
12844 2010-07-30  Bruno Haible  <bruno@clisp.org>
12845
12846         mbrlen: Fix cross-compilation guess for AIX.
12847         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12848         guess. Leftover from 2008-12-22.
12849
12850 2010-07-30  Bruno Haible  <bruno@clisp.org>
12851
12852         mbrtowc: Fix cross-compilation guess for AIX.
12853         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12854         guess. Leftover from 2008-12-21.
12855
12856 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12857
12858         init.sh: work around trap limitation of some shells
12859         * tests/init.sh (setup_): Move exit trap outside of shell function.
12860
12861 2010-07-29  Eric Blake  <eblake@redhat.com>
12862
12863         strtod: aid debugging
12864         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12865         understanding why strtod is rejected.
12866
12867 2010-07-28  Bruno Haible  <bruno@clisp.org>
12868
12869         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12870         * lib/unistr/u8-chr.c: Include <string.h>.
12871         * tests/unistr/test-u8-chr.c: Likewise.
12872         * tests/unistr/test-u16-chr.c: Likewise.
12873         * tests/unistr/test-u32-chr.c: Likewise.
12874         * tests/unistr/test-u8-strchr.c: Likewise.
12875         * tests/unistr/test-u16-strchr.c: Likewise.
12876         * tests/unistr/test-u32-strchr.c: Likewise.
12877         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12878         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12879         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12880         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12881
12882 2010-07-28  Bruno Haible  <bruno@clisp.org>
12883
12884         Use spaces for indentation, not tabs.
12885         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12886
12887 2010-07-27  Bruno Haible  <bruno@clisp.org>
12888
12889         mbspcasecmp: Fix function specification.
12890         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12891         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12892         Reported by Eric Blake <eblake@redhat.com>.
12893
12894 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12895
12896         timespec: use cast and not conditional, as truncation isn't possible
12897         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12898         instead of a conditional.  Comment about the situation in more detail.
12899         This undoes most of the 2009-10-29 patch.
12900
12901 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12902
12903         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12904         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12905         * lib/unistr/u8-strchr.c: Likewise.
12906         * modules/unistr/u8-chr: Depend on memchr.
12907
12908         unistr/u*-strchr: add tests
12909         * modules/unistr/u8-strchr-tests: New file.
12910         * modules/unistr/u16-strchr-tests: New file.
12911         * modules/unistr/u32-strchr-tests: New file.
12912         * tests/unistr/test-strchr.h: New file.
12913         * tests/unistr/test-u8-strchr.c: New file.
12914         * tests/unistr/test-u16-strchr.c: New file.
12915         * tests/unistr/test-u32-strchr.c: New file.
12916
12917         unistr/u*-chr: test multibyte sequences more
12918         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12919         test vector.
12920         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12921         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12922         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12923
12924         unistr/u*-chr: test multibyte sequences
12925         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12926
12927         unistr/u*-chr: prepare for multibyte tests
12928         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12929         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12930         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12931         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12932         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12933         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12934
12935 2010-07-18  Bruno Haible  <bruno@clisp.org>
12936
12937         unistr/u8-strchr: Optimize non-ASCII argument case.
12938         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12939         because the first byte often matches anyway.
12940         Reported by Pádraig Brady <P@draigbrady.com>.
12941
12942 2010-07-15  Karl Berry  <karl@gnu.org>
12943
12944         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12945
12946 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12947
12948         getcwd: on Solaris, work better if ancestors are inaccessible
12949         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12950         buffer and size, try again with a large buffer.  This works better
12951         on Solaris, since its getcwd succeeds even if the path to the root
12952         is inaccessible, and this is helpful in common cases such as .zfs
12953         hidden directories.  Problem reported by J Chapman Flack in
12954         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12955         Use system getcwd if it's declared, not merely if it's partly
12956         working; use the partly-working test only to avoid needless effort
12957         if the system getcwd fails.
12958         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12959         comment that was already obsolete and is now even more obsolete.
12960         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12961         now might call strdup.
12962
12963 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12964
12965         pthread: Add enough so that coreutils/src/sort.c compiles.
12966         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12967         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12968         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12969         Include <sys/types.h>, in case it defines pthread_t.
12970         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12971         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12972         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12973         (pthread_rwlockattr_t, pthread_spinlock_t):
12974         New typedefs, if HAVE_PTHREAD_T is not defined.
12975         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12976         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12977         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12978         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12979         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12980         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12981         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12982         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12983         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12984         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12985         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12986         New macros.
12987         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12988         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12989         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12990         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12991         (pthread_spin_unlock): New dummy functions.
12992         (pthread_create): Return EAGAIN; don't set errno.
12993         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12994         require AC_C_INLINE.
12995         * modules/pthread (Depends-on): Add sched, time.
12996         (pthread.h): Use AM_V_GEN.
12997
12998 2010-07-13  Bruno Haible  <bruno@clisp.org>
12999
13000         striconveh: Don't malloc memory if the result buffer is sufficient.
13001         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13002         buffer if its size is sufficient.
13003         Reported by Ludovic Courtès <ludo@gnu.org>.
13004
13005 2010-07-13  Bruno Haible  <bruno@clisp.org>
13006
13007         strtod: Add safety check.
13008         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13009
13010 2010-07-12  Bruno Haible  <bruno@clisp.org>
13011
13012         Unify tests that set gl_cv_func_ldexpl_no_libm.
13013         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13014         gl_FUNC_LDEXPL.
13015         (gl_FUNC_LDEXPL): Invoke it.
13016         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13017
13018 2010-07-12  Bruno Haible  <bruno@clisp.org>
13019
13020         Unify tests that set gl_cv_func_ldexp_no_libm.
13021         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13022         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13023         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13024         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13025         * modules/strtod (Files): Add m4/ldexp.m4.
13026
13027 2010-07-12  Bruno Haible  <bruno@clisp.org>
13028
13029         Unify tests that set gl_cv_func_frexpl_no_libm.
13030         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13031         gl_FUNC_FREXPL_NO_LIBM.
13032         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13034
13035 2010-07-12  Bruno Haible  <bruno@clisp.org>
13036
13037         Unify tests that set gl_cv_func_frexp_no_libm.
13038         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13039         gl_FUNC_FREXP_NO_LIBM.
13040         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13041         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13042
13043 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13044
13045         memcoll: clarify sizes versus lengths, document better, and tweak perf
13046         * lib/memcoll.c (strcoll_loop, memcoll0):
13047         Improve quality of descriptive comments.  Name variables
13048         consistently as to whether they are lengths (which do not include
13049         terminating null) versus sizes (which do).
13050         * lib/xmemcoll.c (xmemcoll0): Likewise.
13051         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13052         returned when s1size == 0; this is easier to compile and saves
13053         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13054
13055 2010-07-12  Bruno Haible  <bruno@clisp.org>
13056
13057         Tests for module '_Exit'.
13058         * modules/_Exit-tests: New file.
13059         * tests/test-_Exit.sh: New file.
13060         * tests/test-_Exit.c: New file.
13061
13062         New module '_Exit'.
13063         * lib/stdlib.in.h (__attribute__): New macro.
13064         (_Exit): New declaration.
13065         * lib/_Exit.c: New file.
13066         * m4/_Exit.m4: New file.
13067         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13068         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13069         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13070         * modules/_Exit: New file.
13071         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13072         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13073
13074 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13075
13076         strtod: make it more-accurate typically, and don't require libm
13077         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13078         Include limits.h.  Don't include string.h.
13079         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13080         (locale_isspace): New function, so that no casts are needed to
13081         check whether *s is a space.
13082         (ldexp): Provide an unused dummy if not available.
13083         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13084         (strtod): Use them.  This implementation prefers to use the
13085         underlying strtod if available, falling back on our own code
13086         only to fix known bugs.  This is more likely to produce an
13087         accurate result.  Also, it avoids the use of libm functions.
13088         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13089         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13090         was absent, but it caused a test failure with coreutils.
13091         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13092         with libm.
13093         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13094         * modules/strtod-tests (Makefile.am): Likewise.
13095
13096 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13097             Bruno Haible  <bruno@clisp.org>
13098
13099         unistr/u8-strchr: Optimize ASCII argument case.
13100         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13101
13102 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13103
13104         (x)memcoll: minor tweaks
13105         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13106         is after the type that it qualifies.
13107         (memcoll0): Likewise.
13108         * lib/memcoll.h (memcoll0): Likewise.
13109         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13110         * lib/xmemcoll.h (xmemcoll0): Likewise.
13111         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13112         differs from memcoll in that the NUL byte is part of the argument.
13113         Omit the abort-checks, as performance is a real issue here.  Plus,
13114         the checks were wrong anyway (an off-by-one error).  Omit local
13115         variable 'diff', as it's a bit clearer that way.
13116         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13117         no longer needed.
13118
13119 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13120
13121         (x)memcoll: speedup when input is known to be NUL delimited
13122         * lib/memcoll.c: Include stdlib.
13123         (memcoll0): New function.
13124         (strcoll_loop): New function, refactored for use in both memcoll
13125         and memcoll0.
13126         * lib/memcoll.h (memcoll0): Add prototype.
13127         * lib/xmemcoll.c (xmemcoll0): New function.
13128         (collate_error): New function, refactored for use in both xmemcoll
13129         and xmemcoll0.
13130         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13131         * m4/memcoll.m4: add inline invocation.
13132
13133 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13134
13135         * build-aux/bootstrap: Remove any local translations
13136         from the translation project synchronization directory,
13137         so that local only translations are not distributed.
13138
13139 2010-07-04  Bruno Haible  <bruno@clisp.org>
13140
13141         fsusage: Clarify which code applies to which platforms.
13142         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13143         platform.
13144         * lib/fsusage.c (get_fs_usage): Likewise.
13145
13146 2010-07-04  Bruno Haible  <bruno@clisp.org>
13147
13148         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13149         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13150         Reported by Martin Lambers <marlam@marlam.de>.
13151
13152 2010-07-04  Jim Meyering  <meyering@redhat.com>
13153
13154         hash: once again explicitly disallow insertion of NULL
13155         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13156         inserting a NULL pointer cannot work with these functions.
13157         Add a comment with details.
13158         This reverts part of the 2010-07-01 commit, 5bef1a35
13159         "hash: extend module to deal with non-pointer keys".
13160
13161 2010-07-01  Bruno Haible  <bruno@clisp.org>
13162
13163         stdbool: Update doc.
13164         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13165         Info from Christian Weisgerber <naddy@mips.inka.de>.
13166
13167 2010-07-01  Jim Meyering  <meyering@redhat.com>
13168
13169         hash: extend module to deal with non-pointer keys
13170         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13171         but that allows insertion of non-pointer entries.
13172         Do not disallow an ENTRY value of NULL.
13173         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13174         * lib/hash.h (hash_insert0): Declare.
13175
13176 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13177
13178         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13179         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13180         not present (i.e. with autoconf 2.59 and when using gettextize, not
13181         gnulib), require AC_GNU_SOURCE instead.
13182
13183 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13184
13185         idpriv-drop: Fix tests.
13186         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13187         not to the test-idpriv-droptemp program.
13188
13189 2010-06-29  Bruno Haible  <bruno@clisp.org>
13190
13191         string: Fix syntax error with g++ 2.96.
13192         * lib/string.in.h (__pure__): Remove definition.
13193         (_GL_ATTRIBUTE_PURE): New macro.
13194         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13195         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13196         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13197
13198 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13199
13200         unitypes: Fix bug introduced on 2010-05-18.
13201         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13202
13203 2010-06-22  Eric Blake  <eblake@redhat.com>
13204
13205         memmem: slight optimization
13206         * lib/str-two-way.h (critical_factorization): Update comments.
13207         Reduce work during factorization phase.
13208         Reported by Carlos Bueno <carlos@bueno.org>.
13209
13210 2010-06-21  Bruno Haible  <bruno@clisp.org>
13211
13212         Fix HAVE_CALLOC_POSIX misnomer.
13213         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13214         !HAVE_CALLOC_POSIX.
13215         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13216         HAVE_CALLOC_POSIX.
13217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13218         instead of HAVE_CALLOC_POSIX.
13219         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13220         HAVE_CALLOC_POSIX.
13221
13222         Use modern idiom for calloc() replacement.
13223         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13224         AC_FUNC_CALLOC.
13225         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13226         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13227         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13228         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13229         (gl_REPLACE_CALLOC): New macro.
13230
13231 2010-06-21  Bruno Haible  <bruno@clisp.org>
13232
13233         Fix HAVE_REALLOC_POSIX misnomer.
13234         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13235         !HAVE_REALLOC_POSIX.
13236         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13237         HAVE_REALLOC_POSIX.
13238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13239         instead of HAVE_REALLOC_POSIX.
13240         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13241         HAVE_REALLOC_POSIX.
13242
13243         Use modern idiom for realloc() replacement.
13244         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13245         AC_FUNC_REALLOC.
13246         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13247         Autoconf's AC_FUNC_REALLOC.
13248         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13249         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13250         (gl_REPLACE_REALLOC): New macro.
13251         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13252
13253 2010-06-21  Bruno Haible  <bruno@clisp.org>
13254
13255         Fix HAVE_MALLOC_POSIX misnomer.
13256         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13257         !HAVE_MALLOC_POSIX.
13258         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13259         HAVE_MALLOC_POSIX.
13260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13261         instead of HAVE_MALLOC_POSIX.
13262         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13263         HAVE_MALLOC_POSIX.
13264
13265         Use modern idiom for malloc() replacement.
13266         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13267         AC_FUNC_MALLOC.
13268         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13269         Autoconf's AC_FUNC_MALLOC.
13270         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13271         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13272         (gl_REPLACE_MALLOC): New macro.
13273         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13274
13275 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13276
13277         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13278         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13279         This macro takes 3 arguments, not 4.
13280
13281 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13282
13283         ipv6: fix detection under mingw
13284         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13285         in6_addr.
13286
13287 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13288
13289         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13290         that strtod() works when cross-compiling to a glibc version known
13291         to work.
13292
13293 2010-06-15  Bruno Haible  <bruno@clisp.org>
13294
13295         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13296
13297 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13298
13299         select: Correct timeout.
13300         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13301
13302 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13303
13304         git-version-gen: init shell var to avoid env var influence
13305         * build-aux/git-version-gen (v): Init shell var to empty.
13306
13307 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13308
13309         priv-set: Don't assume that priv.h exists merely because getppriv does.
13310         See Jan Andersen's bug report about AIX 5L in
13311         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13312         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13313         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13314         * lib/priv-set.h: Likewise.
13315         * tests/test-priv-set.c: Likewise.
13316
13317 2010-06-13  Bruno Haible  <bruno@clisp.org>
13318
13319         relocatable: Make it easier to test whether to install wrappers.
13320         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13321         RELOCATABLE_VIA_WRAPPER.
13322
13323 2010-06-13  Bruno Haible  <bruno@clisp.org>
13324
13325         gnulib-tool: Display specified modules and dependencies differently.
13326         * gnulib-tool (func_show_module_list): New function.
13327         (func_import, func_create_testdir): Invoke it.
13328         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13329
13330 2010-06-13  Bruno Haible  <bruno@clisp.org>
13331
13332         gnulib-tool: Align code of func_import and func_create_testdir.
13333         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13334         specified_modules.
13335
13336 2010-06-12  Jim Meyering  <meyering@redhat.com>
13337
13338         test-inttostr: avoid spurious failure on Solaris 9
13339         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13340         to accept "%ju".  Reported by Bruno Haible.
13341
13342 2010-06-11  Jim Meyering  <meyering@redhat.com>
13343
13344         test-sys_socket: mark variables as used more readably
13345         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13346         as "used" explicitly via (void) statement casts.  This is more
13347         readable than using them in an artificial return expression.
13348         Suggestion from Bruno Haible.
13349
13350 2010-06-11  Bruno Haible  <bruno@clisp.org>
13351
13352         Avoid some more warnings from "gcc -Wwrite-strings".
13353         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13354         to 'const char *'.
13355         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13356         * tests/test-c-strcasestr.c (main): Likewise.
13357         * tests/test-mbscasestr1.c (main): Likewise.
13358         * tests/test-mbscasestr2.c (main): Likewise.
13359         * tests/test-memmem.c (main): Likewise.
13360         * tests/test-strstr.c (main): Likewise.
13361         * tests/test-strcasestr.c (main): Likewise.
13362
13363 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13364
13365         init.sh: change framework_failure_ to fail with status 99, not 1
13366         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13367         automake's parallel-tests rule that this is an unexpected failure,
13368         even if the test is listed in XFAIL_TESTS.
13369
13370 2010-06-11  Jim Meyering  <meyering@redhat.com>
13371
13372         test-inttostr: avoid warnings about 4-6KB literal strings
13373         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13374         Include "macros.h", for its definition of ASSERT.
13375         (CK): s/assert/ASSERT/
13376         * modules/inttostr-tests (Files): Add macros.h.
13377
13378         init.sh: don't use $ME_ or skip_ before they are defined
13379         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13380         their first uses.  Also hoist their companions: warn_, fail_,
13381         framework_failure_, $stderr_fileno.  Prompted by a patch from
13382         Stefano Lattarini.
13383
13384         test-sys_socket: avoid set-but-not-used warnings from gcc
13385         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13386         avoid warning about set-but-not-used variables.
13387
13388         test-xvasprintf: avoid 'const' discard warnings
13389         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13390         "const" when assigning from literal strings.
13391         (test_xasprintf): Add "void" in function argument list to placate
13392         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13393
13394         tests: avoid compilation warnings in argmatch and exclude tests...
13395         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13396         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13397         Since it always exits, declare with the "noreturn" attribute.
13398         * tests/test-argmatch.c: Likewise.
13399
13400         tests: avoid 'const' discard warnings in mbsstr tests
13401         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13402         * tests/test-mbsstr2.c (main): Likewise.
13403
13404         test-verify: avoid warning from gcc's -Wmissing-declarations
13405         * tests/test-verify.c (function): Declare to be static.
13406
13407         test-inttostr.c: include <string.h> for use of strcmp
13408         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13409
13410         test-linkat: avoid failed assertion on "other" architectures
13411         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13412         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13413         sparc: https://bugs.launchpad.net/bugs/591968
13414
13415 2010-06-11  Jim Meyering  <meyering@redhat.com>
13416
13417         printf.m4: avoid autoconf's "Expanded Before Required" warning
13418         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13419         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13420         autoconf warning.
13421
13422 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13423
13424         Replacement header templates are now named with ".in", not "_".
13425         * doc/gnulib-intro.texi: Correct.
13426
13427 2010-06-10  Jim Meyering  <meyering@redhat.com>
13428
13429         inttostr-tests: depend on snprintf, not snprintf-posix
13430         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13431         snprintf-posix, to avoid this aclocal failure:
13432           missing file gnulib-tests/vasnprintf.c
13433           configure.ac:45: error: expected source file, required through \
13434           AC_LIBSOURCES, not found
13435
13436 2010-06-10  Jim Meyering  <meyering@redhat.com>
13437
13438         inttostr: add a new function, inttostr, and tests
13439         The namesake function was not available.  The existence of the
13440         template file, inttostr.c makes its addition nontrivial.
13441         * lib/anytostr.c: Rename from inttostr.c.
13442         (anytostr): Rename from inttostr.
13443         * lib/inttostr.c: New file.
13444         * modules/inttostr (Files): Add anytostr.c.
13445         (Makefile.am): Set lib_SOURCES instead of ...
13446         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13447         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13448         * lib/offtostr.c: Likewise.
13449         * lib/uinttostr.c: Likewise.
13450         * lib/umaxtostr.c: Likewise.
13451         * modules/inttostr-tests: New file.
13452         * tests/test-inttostr.c: New file.  Test these functions.
13453
13454 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13455             Bruno Haible  <bruno@clisp.org>
13456
13457         Add "Extending Gnulib" chapter to manual.
13458         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13459         chapter.
13460         (Extending Gnulib): New chapter.
13461         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13462         chapter.
13463
13464 2010-06-09  Bruno Haible  <bruno@clisp.org>
13465
13466         Avoid relocwrapper link errors due to gnulib replacement functions.
13467         * lib/areadlink.c: Use the system's malloc, realloc functions.
13468         (areadlink): Set errno to ENOMEM explicitly.
13469         * modules/areadlink (Depends-on): Remove malloc-posix.
13470         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13471
13472 2010-06-09  Bruno Haible  <bruno@clisp.org>
13473
13474         Avoid relocwrapper link errors due to gnulib replacement functions.
13475         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13476         * lib/malloca.c: Likewise.
13477         * lib/relocatable.c: Likewise.
13478         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13479         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13480         * lib/setenv.c: Use the system's malloc, realloc functions.
13481         * lib/strerror.c: Use the system's sprintf function.
13482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13483
13484 2010-06-04  Bruno Haible  <bruno@clisp.org>
13485
13486         Prefer documented low-level autoconf macro names.
13487         * m4/lib-link.m4: Use m4_translit instead of translit.
13488         * m4/environ.m4: Likewise.
13489         * m4/mathfunc.m4: Likewise.
13490         * m4/onceonly.m4: Likewise.
13491         * m4/stdint.m4: Likewise.
13492         Suggested by Eric Blake.
13493
13494 2010-06-04  Martin Lambers  <marlam@marlam.de>
13495             Bruno Haible  <bruno@clisp.org>
13496
13497         havelib: Allow library names with '+' characters.
13498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13499         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13500
13501 2010-06-09  Bruno Haible  <bruno@clisp.org>
13502
13503         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13504         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13505         realloc failed.
13506
13507 2010-06-08  Peter Simons  <simons@cryp.to>
13508
13509         maint.mk: make the news-check rule more configurable
13510         * top/maint.mk (news-check-lines-spec): New variable.
13511         (news-check): Use "sed -n 1,10p" in place of "head".
13512
13513 2010-06-07  Jim Meyering  <meyering@redhat.com>
13514
13515         do-release-commit-and-tag: fix typo in --help
13516         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13517
13518         regex: avoid new dead-code warning with gcc-4.6.0
13519         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13520         if-block containing a while-loop.  It's been unused for at least
13521         5 years.
13522
13523 2010-06-05  Bruno Haible  <bruno@clisp.org>
13524
13525         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13526         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13527
13528 2010-06-04  Bruno Haible  <bruno@clisp.org>
13529
13530         Update to GNU gettext 0.18.1.
13531         * modules/gettext (configure.ac): Require gettext infrastructure from
13532         version 0.18.1.
13533
13534 2010-06-03  Bruno Haible  <bruno@clisp.org>
13535
13536         Don't use AC_LIBOBJ with file names in subdirectories.
13537         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13538         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13539         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13540         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13541         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13542         gl_LIBUNISTRING_LIBSOURCE.
13543         (Makefile.am): Augment lib_SOURCES here, conditionally.
13544         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13545
13546 2010-06-03  Bruno Haible  <bruno@clisp.org>
13547
13548         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13549         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13550         expansion does not end with a newline.
13551         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13552         unnecessary newline.
13553
13554 2010-06-03  Bruno Haible  <bruno@clisp.org>
13555
13556         Reduce dependencies.
13557         * tests/test-quotearg.h: New file, extracted from
13558         tests/test-quotearg.c.
13559         * tests/test-quotearg-simple.c: New file, extracted from
13560         tests/test-quotearg.c.
13561         * tests/test-quotearg.c: Don't include <ctype.h>.
13562         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13563         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13564         use_quote_double_quotes, use_quotearg_colon): Moved to
13565         tests/test-quotearg.h.
13566         (results_g, flag_results, custom_quotes, custom_results): Moved
13567         to tests/test-quotearg-simple.c.
13568         (main): Moved the part that does not depend on gettext to
13569         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13570         performed.
13571         * modules/quotearg-simple: New file.
13572         * modules/quotearg-simple-tests: New file.
13573         * modules/quotearg (Depends-on): Add quotearg-simple.
13574         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13575         (Files): Add tests/test-quotearg.h.
13576         Reported by Paolo Bonzini.
13577
13578 2010-06-03  Bruno Haible  <bruno@clisp.org>
13579
13580         Reduce dependencies.
13581         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13582
13583 2010-06-03  Bruno Haible  <bruno@clisp.org>
13584
13585         time: Undefine more broken macros.
13586         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13587         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13588         Reported by Eric Blake.
13589
13590 2010-06-03  Bruno Haible  <bruno@clisp.org>
13591
13592         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13593         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13594         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13595         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13596         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13597         Reported by Ludovic Courtès <ludo@gnu.org>.
13598
13599 2010-06-02  Eric Blake  <eblake@redhat.com>
13600
13601         time: work with mingw + pthreads-win32 library
13602         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13603         if timespec is defined only in pthread.h.
13604         * modules/time (Makefile.am): Substitute it.
13605         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13606         <pthread.h>, when needed.
13607         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13608         from the library.
13609
13610 2010-05-31  Bruno Haible  <bruno@clisp.org>
13611
13612         Avoid expanding two macros in the wrong order.
13613         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13614         gl_LIBUNISTRING if it is defined.
13615         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13616         autoconf >= 2.64.
13617         Reported by Ludovic Courtès <ludo@gnu.org>.
13618
13619 2010-05-27  Jim Meyering  <meyering@redhat.com>
13620
13621         maint.mk: also prohibit "#undef" of always-defined symbols
13622         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13623         Allow more than one space before the symbol name.
13624         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13625         the regexp uses alternation.
13626
13627 2010-05-26  Eric Blake  <eblake@redhat.com>
13628
13629         maint.mk: avoid echo -e
13630         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13631         Convert all uses of echo -* to printf.
13632         Reported by Matthias Bolte.
13633
13634 2010-05-25  Bruno Haible  <bruno@clisp.org>
13635
13636         Update to GNU gettext 0.18, part 2.
13637         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13638         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13639
13640 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13641
13642         Add missing include in test-pwrite.c.
13643         * tests/test-pwrite.c: Include string.h, for strcmp.
13644
13645 2010-05-24  Bruno Haible  <bruno@clisp.org>
13646
13647         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13648
13649 2010-05-24  Bruno Haible  <bruno@clisp.org>
13650
13651         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13652         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13653         iconveh_error argument.
13654         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13655         U_STRCONV_TO_LOCALE.
13656         * lib/unistr/u16-strcoll.c: Likewise.
13657         * lib/unistr/u32-strcoll.c: Likewise.
13658         * modules/unistr/u8-strcoll (Depends-on): Add
13659         uniconv/u8-strconv-to-enc, localcharset. Remove
13660         uniconv/u8-strconv-to-locale.
13661         (configure.ac): Bump version number.
13662         * modules/unistr/u16-strcoll (Depends-on): Add
13663         uniconv/u16-strconv-to-enc, localcharset. Remove
13664         uniconv/u16-strconv-to-locale.
13665         (configure.ac): Bump version number.
13666         * modules/unistr/u32-strcoll (Depends-on): Add
13667         uniconv/u32-strconv-to-enc, localcharset. Remove
13668         uniconv/u32-strconv-to-locale.
13669         (configure.ac): Bump version number.
13670
13671 2010-05-24  Bruno Haible  <bruno@clisp.org>
13672
13673         Avoid a test failure on NetBSD 5.0.
13674         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13675         an iconv() bug.
13676
13677 2010-05-24  Bruno Haible  <bruno@clisp.org>
13678
13679         Adjust #include directive style.
13680         * modules/regex (Includes): Recommend to write <regex.h>.
13681
13682 2010-05-24  Bruno Haible  <bruno@clisp.org>
13683
13684         regex: Don't require alloca.
13685         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13686         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13687         only inside if (0).
13688
13689 2010-05-23  Jim Meyering  <meyering@redhat.com>
13690
13691         test-renameat.c: include <sys/stat.h>
13692         * tests/test-renameat.c: Include <sys/stat.h>; required for
13693         definition of S_IS* macros.
13694
13695 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13696
13697         Update maintainer documentation for 'relocatable-prog' module.
13698         * doc/relocatable-maint.texi: Update.
13699         Comments by Bruno Haible.
13700
13701 2010-05-23  Bruno Haible  <bruno@clisp.org>
13702
13703         git-merge-changelog: Enable --split-merged-entry by default.
13704         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13705         (usage): Don't mention this option any more.
13706         Reported by Ralf Wildenhues.
13707
13708 2010-05-23  Jim Meyering  <meyering@redhat.com>
13709
13710         test-pwrite: do not leave behind a test file named "out"
13711         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13712         The trivial-looking use of init.sh is really necessary.
13713         It ensures that the temporary file, "out", is created in
13714         a temporary directory, and removed upon termination.
13715         * tests/test-pwrite.sh: Re-add file.
13716         * modules/pwrite-tests: Reference it.
13717
13718 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13719
13720         Fix output redirection buglet in init.sh.
13721         * tests/init.sh: Fix redirection of stderr.
13722
13723 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13724
13725         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13726
13727 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13728
13729         * modules/valgrind-tests: New file.
13730         * m4/valgrind-tests.m4: New file.
13731         * doc/valgrind-tests.texi: New file.
13732         * doc/gnulib.texi (Running self-tests under valgrind): New
13733         section.
13734
13735 2010-05-19  Bruno Haible  <bruno@clisp.org>
13736
13737         Clean up dead code in recent commit.
13738         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13739         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13740         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13741         Suggested by Paolo Bonzini.
13742
13743 2010-05-19  Bruno Haible  <bruno@clisp.org>
13744
13745         Avoid valgrind error reports from libunistring.
13746         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13747         * modules/libunistring (Files): Add it.
13748         * modules/libunistring-optional (Files): Likewise.
13749
13750 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13751             Bruno Haible  <bruno@clisp.org>
13752
13753         New module 'libunistring-optional'.
13754         * modules/libunistring-optional: New file.
13755         * m4/libunistring-base.m4: New file.
13756         * m4/libunistring-optional.m4: New file.
13757         * lib/unicase.in.h: Renamed from lib/unicase.h.
13758         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13759         * lib/unictype.in.h: Renamed from lib/unictype.h.
13760         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13761         * lib/uniname.in.h: Renamed from lib/uniname.h.
13762         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13763         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13764         * lib/unistr.in.h: Renamed from lib/unistr.h.
13765         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13766         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13767         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13768         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13769         gl_LIBUNISTRING. If the library was found, determine the installed
13770         version and set LIBUNISTRING_VERSION.
13771         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13772         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13773         handle a configuration option --with-included-libunistring.
13774         * modules/libunistring (Files): Add m4/absolute-header.m4.
13775         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13776         Add m4/libunistring-base.m4.
13777         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13778         (Makefile.am): Build unicase.h from unicase.in.h.
13779         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13780         Add m4/libunistring-base.m4.
13781         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13782         (Makefile.am): Build uniconv.h from uniconv.in.h.
13783         * modules/unictype/base (Files): Use unictype.in.h instead of
13784         unictype.h. Add m4/libunistring-base.m4.
13785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13786         (Makefile.am): Build unictype.h from unictype.in.h.
13787         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13788         Add m4/libunistring-base.m4.
13789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13790         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13791         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13792         Add m4/libunistring-base.m4.
13793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13794         (Makefile.am): Build uniname.h from uniname.in.h.
13795         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13796         Add m4/libunistring-base.m4.
13797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13798         (Makefile.am): Build uninorm.h from uninorm.in.h.
13799         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13800         unistdio.h. Add m4/libunistring-base.m4.
13801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13802         (Makefile.am): Build unistdio.h from unistdio.in.h.
13803         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13804         Add m4/libunistring-base.m4.
13805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13806         (Makefile.am): Build unistr.h from unistr.in.h.
13807         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13808         Add m4/libunistring-base.m4.
13809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13810         (Makefile.am): Build unitypes.h from unitypes.in.h.
13811         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13812         Add m4/libunistring-base.m4.
13813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13814         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13815         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13816         uniwidth.h. Add m4/libunistring-base.m4.
13817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13818         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13819         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13820         instead of augmenting lib_SOURCES.
13821         * modules/unicase/empty-suffix-context: Likewise.
13822         * modules/unicase/locale-language: Likewise.
13823         * modules/unicase/tolower: Likewise.
13824         * modules/unicase/totitle: Likewise.
13825         * modules/unicase/toupper: Likewise.
13826         * modules/unicase/u8-casecmp: Likewise.
13827         * modules/unicase/u8-casecoll: Likewise.
13828         * modules/unicase/u8-casefold: Likewise.
13829         * modules/unicase/u8-casexfrm: Likewise.
13830         * modules/unicase/u8-ct-casefold: Likewise.
13831         * modules/unicase/u8-ct-tolower: Likewise.
13832         * modules/unicase/u8-ct-totitle: Likewise.
13833         * modules/unicase/u8-ct-toupper: Likewise.
13834         * modules/unicase/u8-is-cased: Likewise.
13835         * modules/unicase/u8-is-casefolded: Likewise.
13836         * modules/unicase/u8-is-lowercase: Likewise.
13837         * modules/unicase/u8-is-titlecase: Likewise.
13838         * modules/unicase/u8-is-uppercase: Likewise.
13839         * modules/unicase/u8-prefix-context: Likewise.
13840         * modules/unicase/u8-suffix-context: Likewise.
13841         * modules/unicase/u8-tolower: Likewise.
13842         * modules/unicase/u8-totitle: Likewise.
13843         * modules/unicase/u8-toupper: Likewise.
13844         * modules/unicase/u16-casecmp: Likewise.
13845         * modules/unicase/u16-casecoll: Likewise.
13846         * modules/unicase/u16-casefold: Likewise.
13847         * modules/unicase/u16-casexfrm: Likewise.
13848         * modules/unicase/u16-ct-casefold: Likewise.
13849         * modules/unicase/u16-ct-tolower: Likewise.
13850         * modules/unicase/u16-ct-totitle: Likewise.
13851         * modules/unicase/u16-ct-toupper: Likewise.
13852         * modules/unicase/u16-is-cased: Likewise.
13853         * modules/unicase/u16-is-casefolded: Likewise.
13854         * modules/unicase/u16-is-lowercase: Likewise.
13855         * modules/unicase/u16-is-titlecase: Likewise.
13856         * modules/unicase/u16-is-uppercase: Likewise.
13857         * modules/unicase/u16-prefix-context: Likewise.
13858         * modules/unicase/u16-suffix-context: Likewise.
13859         * modules/unicase/u16-tolower: Likewise.
13860         * modules/unicase/u16-totitle: Likewise.
13861         * modules/unicase/u16-toupper: Likewise.
13862         * modules/unicase/u32-casecmp: Likewise.
13863         * modules/unicase/u32-casecoll: Likewise.
13864         * modules/unicase/u32-casefold: Likewise.
13865         * modules/unicase/u32-casexfrm: Likewise.
13866         * modules/unicase/u32-ct-casefold: Likewise.
13867         * modules/unicase/u32-ct-tolower: Likewise.
13868         * modules/unicase/u32-ct-totitle: Likewise.
13869         * modules/unicase/u32-ct-toupper: Likewise.
13870         * modules/unicase/u32-is-cased: Likewise.
13871         * modules/unicase/u32-is-casefolded: Likewise.
13872         * modules/unicase/u32-is-lowercase: Likewise.
13873         * modules/unicase/u32-is-titlecase: Likewise.
13874         * modules/unicase/u32-is-uppercase: Likewise.
13875         * modules/unicase/u32-prefix-context: Likewise.
13876         * modules/unicase/u32-suffix-context: Likewise.
13877         * modules/unicase/u32-tolower: Likewise.
13878         * modules/unicase/u32-totitle: Likewise.
13879         * modules/unicase/u32-toupper: Likewise.
13880         * modules/unicase/ulc-casecmp: Likewise.
13881         * modules/unicase/ulc-casecoll: Likewise.
13882         * modules/unicase/ulc-casexfrm: Likewise.
13883         * modules/uniconv/u8-conv-from-enc: Likewise.
13884         * modules/uniconv/u8-conv-to-enc: Likewise.
13885         * modules/uniconv/u8-strconv-from-enc: Likewise.
13886         * modules/uniconv/u8-strconv-from-locale: Likewise.
13887         * modules/uniconv/u8-strconv-to-enc: Likewise.
13888         * modules/uniconv/u8-strconv-to-locale: Likewise.
13889         * modules/uniconv/u16-conv-from-enc: Likewise.
13890         * modules/uniconv/u16-conv-to-enc: Likewise.
13891         * modules/uniconv/u16-strconv-from-enc: Likewise.
13892         * modules/uniconv/u16-strconv-from-locale: Likewise.
13893         * modules/uniconv/u16-strconv-to-enc: Likewise.
13894         * modules/uniconv/u16-strconv-to-locale: Likewise.
13895         * modules/uniconv/u32-conv-from-enc: Likewise.
13896         * modules/uniconv/u32-conv-to-enc: Likewise.
13897         * modules/uniconv/u32-strconv-from-enc: Likewise.
13898         * modules/uniconv/u32-strconv-from-locale: Likewise.
13899         * modules/uniconv/u32-strconv-to-enc: Likewise.
13900         * modules/uniconv/u32-strconv-to-locale: Likewise.
13901         * modules/unictype/bidicategory-byname: Likewise.
13902         * modules/unictype/bidicategory-name: Likewise.
13903         * modules/unictype/bidicategory-of: Likewise.
13904         * modules/unictype/bidicategory-test: Likewise.
13905         * modules/unictype/block-list: Likewise.
13906         * modules/unictype/block-test: Likewise.
13907         * modules/unictype/category-C: Likewise.
13908         * modules/unictype/category-Cc: Likewise.
13909         * modules/unictype/category-Cf: Likewise.
13910         * modules/unictype/category-Cn: Likewise.
13911         * modules/unictype/category-Co: Likewise.
13912         * modules/unictype/category-Cs: Likewise.
13913         * modules/unictype/category-L: Likewise.
13914         * modules/unictype/category-Ll: Likewise.
13915         * modules/unictype/category-Lm: Likewise.
13916         * modules/unictype/category-Lo: Likewise.
13917         * modules/unictype/category-Lt: Likewise.
13918         * modules/unictype/category-Lu: Likewise.
13919         * modules/unictype/category-M: Likewise.
13920         * modules/unictype/category-Mc: Likewise.
13921         * modules/unictype/category-Me: Likewise.
13922         * modules/unictype/category-Mn: Likewise.
13923         * modules/unictype/category-N: Likewise.
13924         * modules/unictype/category-Nd: Likewise.
13925         * modules/unictype/category-Nl: Likewise.
13926         * modules/unictype/category-No: Likewise.
13927         * modules/unictype/category-P: Likewise.
13928         * modules/unictype/category-Pc: Likewise.
13929         * modules/unictype/category-Pd: Likewise.
13930         * modules/unictype/category-Pe: Likewise.
13931         * modules/unictype/category-Pf: Likewise.
13932         * modules/unictype/category-Pi: Likewise.
13933         * modules/unictype/category-Po: Likewise.
13934         * modules/unictype/category-Ps: Likewise.
13935         * modules/unictype/category-S: Likewise.
13936         * modules/unictype/category-Sc: Likewise.
13937         * modules/unictype/category-Sk: Likewise.
13938         * modules/unictype/category-Sm: Likewise.
13939         * modules/unictype/category-So: Likewise.
13940         * modules/unictype/category-Z: Likewise.
13941         * modules/unictype/category-Zl: Likewise.
13942         * modules/unictype/category-Zp: Likewise.
13943         * modules/unictype/category-Zs: Likewise.
13944         * modules/unictype/category-and: Likewise.
13945         * modules/unictype/category-and-not: Likewise.
13946         * modules/unictype/category-byname: Likewise.
13947         * modules/unictype/category-name: Likewise.
13948         * modules/unictype/category-none: Likewise.
13949         * modules/unictype/category-of: Likewise.
13950         * modules/unictype/category-or: Likewise.
13951         * modules/unictype/category-test: Likewise.
13952         * modules/unictype/combining-class: Likewise.
13953         * modules/unictype/ctype-alnum: Likewise.
13954         * modules/unictype/ctype-alpha: Likewise.
13955         * modules/unictype/ctype-blank: Likewise.
13956         * modules/unictype/ctype-cntrl: Likewise.
13957         * modules/unictype/ctype-digit: Likewise.
13958         * modules/unictype/ctype-graph: Likewise.
13959         * modules/unictype/ctype-lower: Likewise.
13960         * modules/unictype/ctype-print: Likewise.
13961         * modules/unictype/ctype-punct: Likewise.
13962         * modules/unictype/ctype-space: Likewise.
13963         * modules/unictype/ctype-upper: Likewise.
13964         * modules/unictype/ctype-xdigit: Likewise.
13965         * modules/unictype/decimal-digit: Likewise.
13966         * modules/unictype/digit: Likewise.
13967         * modules/unictype/mirror: Likewise.
13968         * modules/unictype/numeric: Likewise.
13969         * modules/unictype/property-alphabetic: Likewise.
13970         * modules/unictype/property-ascii-hex-digit: Likewise.
13971         * modules/unictype/property-bidi-arabic-digit: Likewise.
13972         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13973         * modules/unictype/property-bidi-block-separator: Likewise.
13974         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13975         * modules/unictype/property-bidi-common-separator: Likewise.
13976         * modules/unictype/property-bidi-control: Likewise.
13977         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13978         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13979         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13980         * modules/unictype/property-bidi-european-digit: Likewise.
13981         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13982         * modules/unictype/property-bidi-left-to-right: Likewise.
13983         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13984         * modules/unictype/property-bidi-other-neutral: Likewise.
13985         * modules/unictype/property-bidi-pdf: Likewise.
13986         * modules/unictype/property-bidi-segment-separator: Likewise.
13987         * modules/unictype/property-bidi-whitespace: Likewise.
13988         * modules/unictype/property-byname: Likewise.
13989         * modules/unictype/property-combining: Likewise.
13990         * modules/unictype/property-composite: Likewise.
13991         * modules/unictype/property-currency-symbol: Likewise.
13992         * modules/unictype/property-dash: Likewise.
13993         * modules/unictype/property-decimal-digit: Likewise.
13994         * modules/unictype/property-default-ignorable-code-point: Likewise.
13995         * modules/unictype/property-deprecated: Likewise.
13996         * modules/unictype/property-diacritic: Likewise.
13997         * modules/unictype/property-extender: Likewise.
13998         * modules/unictype/property-format-control: Likewise.
13999         * modules/unictype/property-grapheme-base: Likewise.
14000         * modules/unictype/property-grapheme-extend: Likewise.
14001         * modules/unictype/property-grapheme-link: Likewise.
14002         * modules/unictype/property-hex-digit: Likewise.
14003         * modules/unictype/property-hyphen: Likewise.
14004         * modules/unictype/property-id-continue: Likewise.
14005         * modules/unictype/property-id-start: Likewise.
14006         * modules/unictype/property-ideographic: Likewise.
14007         * modules/unictype/property-ids-binary-operator: Likewise.
14008         * modules/unictype/property-ids-trinary-operator: Likewise.
14009         * modules/unictype/property-ignorable-control: Likewise.
14010         * modules/unictype/property-iso-control: Likewise.
14011         * modules/unictype/property-join-control: Likewise.
14012         * modules/unictype/property-left-of-pair: Likewise.
14013         * modules/unictype/property-line-separator: Likewise.
14014         * modules/unictype/property-logical-order-exception: Likewise.
14015         * modules/unictype/property-lowercase: Likewise.
14016         * modules/unictype/property-math: Likewise.
14017         * modules/unictype/property-non-break: Likewise.
14018         * modules/unictype/property-not-a-character: Likewise.
14019         * modules/unictype/property-numeric: Likewise.
14020         * modules/unictype/property-other-alphabetic: Likewise.
14021         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14022         * modules/unictype/property-other-grapheme-extend: Likewise.
14023         * modules/unictype/property-other-id-continue: Likewise.
14024         * modules/unictype/property-other-id-start: Likewise.
14025         * modules/unictype/property-other-lowercase: Likewise.
14026         * modules/unictype/property-other-math: Likewise.
14027         * modules/unictype/property-other-uppercase: Likewise.
14028         * modules/unictype/property-paired-punctuation: Likewise.
14029         * modules/unictype/property-paragraph-separator: Likewise.
14030         * modules/unictype/property-pattern-syntax: Likewise.
14031         * modules/unictype/property-pattern-white-space: Likewise.
14032         * modules/unictype/property-private-use: Likewise.
14033         * modules/unictype/property-punctuation: Likewise.
14034         * modules/unictype/property-quotation-mark: Likewise.
14035         * modules/unictype/property-radical: Likewise.
14036         * modules/unictype/property-sentence-terminal: Likewise.
14037         * modules/unictype/property-soft-dotted: Likewise.
14038         * modules/unictype/property-space: Likewise.
14039         * modules/unictype/property-terminal-punctuation: Likewise.
14040         * modules/unictype/property-test: Likewise.
14041         * modules/unictype/property-titlecase: Likewise.
14042         * modules/unictype/property-unassigned-code-value: Likewise.
14043         * modules/unictype/property-unified-ideograph: Likewise.
14044         * modules/unictype/property-uppercase: Likewise.
14045         * modules/unictype/property-variation-selector: Likewise.
14046         * modules/unictype/property-white-space: Likewise.
14047         * modules/unictype/property-xid-continue: Likewise.
14048         * modules/unictype/property-xid-start: Likewise.
14049         * modules/unictype/property-zero-width: Likewise.
14050         * modules/unictype/scripts: Likewise.
14051         * modules/unictype/syntax-c-ident: Likewise.
14052         * modules/unictype/syntax-c-whitespace: Likewise.
14053         * modules/unictype/syntax-java-ident: Likewise.
14054         * modules/unictype/syntax-java-whitespace: Likewise.
14055         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14056         * modules/unilbrk/u8-width-linebreaks: Likewise.
14057         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14058         * modules/unilbrk/u16-width-linebreaks: Likewise.
14059         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14060         * modules/unilbrk/u32-width-linebreaks: Likewise.
14061         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14062         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14063         * modules/uniname/uniname: Likewise.
14064         * modules/uninorm/canonical-decomposition: Likewise.
14065         * modules/uninorm/composition: Likewise.
14066         * modules/uninorm/decomposing-form: Likewise.
14067         * modules/uninorm/decomposition: Likewise.
14068         * modules/uninorm/filter: Likewise.
14069         * modules/uninorm/nfc: Likewise.
14070         * modules/uninorm/nfd: Likewise.
14071         * modules/uninorm/nfkc: Likewise.
14072         * modules/uninorm/nfkd: Likewise.
14073         * modules/uninorm/u8-normalize: Likewise.
14074         * modules/uninorm/u8-normcmp: Likewise.
14075         * modules/uninorm/u8-normcoll: Likewise.
14076         * modules/uninorm/u8-normxfrm: Likewise.
14077         * modules/uninorm/u16-normalize: Likewise.
14078         * modules/uninorm/u16-normcmp: Likewise.
14079         * modules/uninorm/u16-normcoll: Likewise.
14080         * modules/uninorm/u16-normxfrm: Likewise.
14081         * modules/uninorm/u32-normalize: Likewise.
14082         * modules/uninorm/u32-normcmp: Likewise.
14083         * modules/uninorm/u32-normcoll: Likewise.
14084         * modules/uninorm/u32-normxfrm: Likewise.
14085         * modules/unistdio/u8-asnprintf: Likewise.
14086         * modules/unistdio/u8-asprintf: Likewise.
14087         * modules/unistdio/u8-snprintf: Likewise.
14088         * modules/unistdio/u8-sprintf: Likewise.
14089         * modules/unistdio/u8-u8-asnprintf: Likewise.
14090         * modules/unistdio/u8-u8-asprintf: Likewise.
14091         * modules/unistdio/u8-u8-snprintf: Likewise.
14092         * modules/unistdio/u8-u8-sprintf: Likewise.
14093         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14094         * modules/unistdio/u8-u8-vasprintf: Likewise.
14095         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14096         * modules/unistdio/u8-u8-vsprintf: Likewise.
14097         * modules/unistdio/u8-vasnprintf: Likewise.
14098         * modules/unistdio/u8-vasprintf: Likewise.
14099         * modules/unistdio/u8-vsnprintf: Likewise.
14100         * modules/unistdio/u8-vsprintf: Likewise.
14101         * modules/unistdio/u16-asnprintf: Likewise.
14102         * modules/unistdio/u16-asprintf: Likewise.
14103         * modules/unistdio/u16-snprintf: Likewise.
14104         * modules/unistdio/u16-sprintf: Likewise.
14105         * modules/unistdio/u16-u16-asnprintf: Likewise.
14106         * modules/unistdio/u16-u16-asprintf: Likewise.
14107         * modules/unistdio/u16-u16-snprintf: Likewise.
14108         * modules/unistdio/u16-u16-sprintf: Likewise.
14109         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14110         * modules/unistdio/u16-u16-vasprintf: Likewise.
14111         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14112         * modules/unistdio/u16-u16-vsprintf: Likewise.
14113         * modules/unistdio/u16-vasnprintf: Likewise.
14114         * modules/unistdio/u16-vasprintf: Likewise.
14115         * modules/unistdio/u16-vsnprintf: Likewise.
14116         * modules/unistdio/u16-vsprintf: Likewise.
14117         * modules/unistdio/u32-asnprintf: Likewise.
14118         * modules/unistdio/u32-asprintf: Likewise.
14119         * modules/unistdio/u32-snprintf: Likewise.
14120         * modules/unistdio/u32-sprintf: Likewise.
14121         * modules/unistdio/u32-u32-asnprintf: Likewise.
14122         * modules/unistdio/u32-u32-asprintf: Likewise.
14123         * modules/unistdio/u32-u32-snprintf: Likewise.
14124         * modules/unistdio/u32-u32-sprintf: Likewise.
14125         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14126         * modules/unistdio/u32-u32-vasprintf: Likewise.
14127         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14128         * modules/unistdio/u32-u32-vsprintf: Likewise.
14129         * modules/unistdio/u32-vasnprintf: Likewise.
14130         * modules/unistdio/u32-vasprintf: Likewise.
14131         * modules/unistdio/u32-vsnprintf: Likewise.
14132         * modules/unistdio/u32-vsprintf: Likewise.
14133         * modules/unistdio/ulc-asnprintf: Likewise.
14134         * modules/unistdio/ulc-asprintf: Likewise.
14135         * modules/unistdio/ulc-fprintf: Likewise.
14136         * modules/unistdio/ulc-snprintf: Likewise.
14137         * modules/unistdio/ulc-sprintf: Likewise.
14138         * modules/unistdio/ulc-vasnprintf: Likewise.
14139         * modules/unistdio/ulc-vasprintf: Likewise.
14140         * modules/unistdio/ulc-vfprintf: Likewise.
14141         * modules/unistdio/ulc-vsnprintf: Likewise.
14142         * modules/unistdio/ulc-vsprintf: Likewise.
14143         * modules/unistr/u8-check: Likewise.
14144         * modules/unistr/u8-chr: Likewise.
14145         * modules/unistr/u8-cmp: Likewise.
14146         * modules/unistr/u8-cmp2: Likewise.
14147         * modules/unistr/u8-cpy: Likewise.
14148         * modules/unistr/u8-cpy-alloc: Likewise.
14149         * modules/unistr/u8-endswith: Likewise.
14150         * modules/unistr/u8-mblen: Likewise.
14151         * modules/unistr/u8-mbsnlen: Likewise.
14152         * modules/unistr/u8-mbtouc: Likewise.
14153         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14154         * modules/unistr/u8-mbtoucr: Likewise.
14155         * modules/unistr/u8-move: Likewise.
14156         * modules/unistr/u8-next: Likewise.
14157         * modules/unistr/u8-prev: Likewise.
14158         * modules/unistr/u8-set: Likewise.
14159         * modules/unistr/u8-startswith: Likewise.
14160         * modules/unistr/u8-stpcpy: Likewise.
14161         * modules/unistr/u8-stpncpy: Likewise.
14162         * modules/unistr/u8-strcat: Likewise.
14163         * modules/unistr/u8-strchr: Likewise.
14164         * modules/unistr/u8-strcmp: Likewise.
14165         * modules/unistr/u8-strcoll: Likewise.
14166         * modules/unistr/u8-strcpy: Likewise.
14167         * modules/unistr/u8-strcspn: Likewise.
14168         * modules/unistr/u8-strdup: Likewise.
14169         * modules/unistr/u8-strlen: Likewise.
14170         * modules/unistr/u8-strmblen: Likewise.
14171         * modules/unistr/u8-strmbtouc: Likewise.
14172         * modules/unistr/u8-strncat: Likewise.
14173         * modules/unistr/u8-strncmp: Likewise.
14174         * modules/unistr/u8-strncpy: Likewise.
14175         * modules/unistr/u8-strnlen: Likewise.
14176         * modules/unistr/u8-strpbrk: Likewise.
14177         * modules/unistr/u8-strrchr: Likewise.
14178         * modules/unistr/u8-strspn: Likewise.
14179         * modules/unistr/u8-strstr: Likewise.
14180         * modules/unistr/u8-strtok: Likewise.
14181         * modules/unistr/u8-to-u16: Likewise.
14182         * modules/unistr/u8-to-u32: Likewise.
14183         * modules/unistr/u8-uctomb: Likewise.
14184         * modules/unistr/u16-check: Likewise.
14185         * modules/unistr/u16-chr: Likewise.
14186         * modules/unistr/u16-cmp: Likewise.
14187         * modules/unistr/u16-cmp2: Likewise.
14188         * modules/unistr/u16-cpy: Likewise.
14189         * modules/unistr/u16-cpy-alloc: Likewise.
14190         * modules/unistr/u16-endswith: Likewise.
14191         * modules/unistr/u16-mblen: Likewise.
14192         * modules/unistr/u16-mbsnlen: Likewise.
14193         * modules/unistr/u16-mbtouc: Likewise.
14194         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14195         * modules/unistr/u16-mbtoucr: Likewise.
14196         * modules/unistr/u16-move: Likewise.
14197         * modules/unistr/u16-next: Likewise.
14198         * modules/unistr/u16-prev: Likewise.
14199         * modules/unistr/u16-set: Likewise.
14200         * modules/unistr/u16-startswith: Likewise.
14201         * modules/unistr/u16-stpcpy: Likewise.
14202         * modules/unistr/u16-stpncpy: Likewise.
14203         * modules/unistr/u16-strcat: Likewise.
14204         * modules/unistr/u16-strchr: Likewise.
14205         * modules/unistr/u16-strcmp: Likewise.
14206         * modules/unistr/u16-strcoll: Likewise.
14207         * modules/unistr/u16-strcpy: Likewise.
14208         * modules/unistr/u16-strcspn: Likewise.
14209         * modules/unistr/u16-strdup: Likewise.
14210         * modules/unistr/u16-strlen: Likewise.
14211         * modules/unistr/u16-strmblen: Likewise.
14212         * modules/unistr/u16-strmbtouc: Likewise.
14213         * modules/unistr/u16-strncat: Likewise.
14214         * modules/unistr/u16-strncmp: Likewise.
14215         * modules/unistr/u16-strncpy: Likewise.
14216         * modules/unistr/u16-strnlen: Likewise.
14217         * modules/unistr/u16-strpbrk: Likewise.
14218         * modules/unistr/u16-strrchr: Likewise.
14219         * modules/unistr/u16-strspn: Likewise.
14220         * modules/unistr/u16-strstr: Likewise.
14221         * modules/unistr/u16-strtok: Likewise.
14222         * modules/unistr/u16-to-u32: Likewise.
14223         * modules/unistr/u16-to-u8: Likewise.
14224         * modules/unistr/u16-uctomb: Likewise.
14225         * modules/unistr/u32-check: Likewise.
14226         * modules/unistr/u32-chr: Likewise.
14227         * modules/unistr/u32-cmp: Likewise.
14228         * modules/unistr/u32-cmp2: Likewise.
14229         * modules/unistr/u32-cpy: Likewise.
14230         * modules/unistr/u32-cpy-alloc: Likewise.
14231         * modules/unistr/u32-endswith: Likewise.
14232         * modules/unistr/u32-mblen: Likewise.
14233         * modules/unistr/u32-mbsnlen: Likewise.
14234         * modules/unistr/u32-mbtouc: Likewise.
14235         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14236         * modules/unistr/u32-mbtoucr: Likewise.
14237         * modules/unistr/u32-move: Likewise.
14238         * modules/unistr/u32-next: Likewise.
14239         * modules/unistr/u32-prev: Likewise.
14240         * modules/unistr/u32-set: Likewise.
14241         * modules/unistr/u32-startswith: Likewise.
14242         * modules/unistr/u32-stpcpy: Likewise.
14243         * modules/unistr/u32-stpncpy: Likewise.
14244         * modules/unistr/u32-strcat: Likewise.
14245         * modules/unistr/u32-strchr: Likewise.
14246         * modules/unistr/u32-strcmp: Likewise.
14247         * modules/unistr/u32-strcoll: Likewise.
14248         * modules/unistr/u32-strcpy: Likewise.
14249         * modules/unistr/u32-strcspn: Likewise.
14250         * modules/unistr/u32-strdup: Likewise.
14251         * modules/unistr/u32-strlen: Likewise.
14252         * modules/unistr/u32-strmblen: Likewise.
14253         * modules/unistr/u32-strmbtouc: Likewise.
14254         * modules/unistr/u32-strncat: Likewise.
14255         * modules/unistr/u32-strncmp: Likewise.
14256         * modules/unistr/u32-strncpy: Likewise.
14257         * modules/unistr/u32-strnlen: Likewise.
14258         * modules/unistr/u32-strpbrk: Likewise.
14259         * modules/unistr/u32-strrchr: Likewise.
14260         * modules/unistr/u32-strspn: Likewise.
14261         * modules/unistr/u32-strstr: Likewise.
14262         * modules/unistr/u32-strtok: Likewise.
14263         * modules/unistr/u32-to-u16: Likewise.
14264         * modules/unistr/u32-to-u8: Likewise.
14265         * modules/unistr/u32-uctomb: Likewise.
14266         * modules/uniwbrk/u8-wordbreaks: Likewise.
14267         * modules/uniwbrk/u16-wordbreaks: Likewise.
14268         * modules/uniwbrk/u32-wordbreaks: Likewise.
14269         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14270         * modules/uniwbrk/wordbreak-property: Likewise.
14271         * modules/uniwidth/u8-strwidth: Likewise.
14272         * modules/uniwidth/u8-width: Likewise.
14273         * modules/uniwidth/u16-strwidth: Likewise.
14274         * modules/uniwidth/u16-width: Likewise.
14275         * modules/uniwidth/u32-strwidth: Likewise.
14276         * modules/uniwidth/u32-width: Likewise.
14277         * modules/uniwidth/width: Likewise.
14278         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14279         with $(LIBUNISTRING).
14280         * modules/unicase/ignorable-tests: Likewise.
14281         * modules/unicase/locale-language-tests: Likewise.
14282         * modules/unicase/tolower-tests: Likewise.
14283         * modules/unicase/totitle-tests: Likewise.
14284         * modules/unicase/toupper-tests: Likewise.
14285         * modules/unicase/u8-casecmp-tests: Likewise.
14286         * modules/unicase/u8-casecoll-tests: Likewise.
14287         * modules/unicase/u8-casefold-tests: Likewise.
14288         * modules/unicase/u8-is-cased-tests: Likewise.
14289         * modules/unicase/u8-is-casefolded-tests: Likewise.
14290         * modules/unicase/u8-is-lowercase-tests: Likewise.
14291         * modules/unicase/u8-is-titlecase-tests: Likewise.
14292         * modules/unicase/u8-is-uppercase-tests: Likewise.
14293         * modules/unicase/u8-tolower-tests: Likewise.
14294         * modules/unicase/u8-totitle-tests: Likewise.
14295         * modules/unicase/u8-toupper-tests: Likewise.
14296         * modules/unicase/u16-casecmp-tests: Likewise.
14297         * modules/unicase/u16-casecoll-tests: Likewise.
14298         * modules/unicase/u16-casefold-tests: Likewise.
14299         * modules/unicase/u16-is-cased-tests: Likewise.
14300         * modules/unicase/u16-is-casefolded-tests: Likewise.
14301         * modules/unicase/u16-is-lowercase-tests: Likewise.
14302         * modules/unicase/u16-is-titlecase-tests: Likewise.
14303         * modules/unicase/u16-is-uppercase-tests: Likewise.
14304         * modules/unicase/u16-tolower-tests: Likewise.
14305         * modules/unicase/u16-totitle-tests: Likewise.
14306         * modules/unicase/u16-toupper-tests: Likewise.
14307         * modules/unicase/u32-casecmp-tests: Likewise.
14308         * modules/unicase/u32-casecoll-tests: Likewise.
14309         * modules/unicase/u32-casefold-tests: Likewise.
14310         * modules/unicase/u32-is-cased-tests: Likewise.
14311         * modules/unicase/u32-is-casefolded-tests: Likewise.
14312         * modules/unicase/u32-is-lowercase-tests: Likewise.
14313         * modules/unicase/u32-is-titlecase-tests: Likewise.
14314         * modules/unicase/u32-is-uppercase-tests: Likewise.
14315         * modules/unicase/u32-tolower-tests: Likewise.
14316         * modules/unicase/u32-totitle-tests: Likewise.
14317         * modules/unicase/u32-toupper-tests: Likewise.
14318         * modules/unicase/ulc-casecmp-tests: Likewise.
14319         * modules/unicase/ulc-casecoll-tests: Likewise.
14320         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14321         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14322         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14323         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14324         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14325         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14326         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14327         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14328         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14329         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14330         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14331         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14332         * modules/unictype/bidicategory-byname-tests: Likewise.
14333         * modules/unictype/bidicategory-name-tests: Likewise.
14334         * modules/unictype/bidicategory-of-tests: Likewise.
14335         * modules/unictype/bidicategory-test-tests: Likewise.
14336         * modules/unictype/block-list-tests: Likewise.
14337         * modules/unictype/block-of-tests: Likewise.
14338         * modules/unictype/block-test-tests: Likewise.
14339         * modules/unictype/category-C-tests: Likewise.
14340         * modules/unictype/category-Cc-tests: Likewise.
14341         * modules/unictype/category-Cf-tests: Likewise.
14342         * modules/unictype/category-Cn-tests: Likewise.
14343         * modules/unictype/category-Co-tests: Likewise.
14344         * modules/unictype/category-Cs-tests: Likewise.
14345         * modules/unictype/category-L-tests: Likewise.
14346         * modules/unictype/category-Ll-tests: Likewise.
14347         * modules/unictype/category-Lm-tests: Likewise.
14348         * modules/unictype/category-Lo-tests: Likewise.
14349         * modules/unictype/category-Lt-tests: Likewise.
14350         * modules/unictype/category-Lu-tests: Likewise.
14351         * modules/unictype/category-M-tests: Likewise.
14352         * modules/unictype/category-Mc-tests: Likewise.
14353         * modules/unictype/category-Me-tests: Likewise.
14354         * modules/unictype/category-Mn-tests: Likewise.
14355         * modules/unictype/category-N-tests: Likewise.
14356         * modules/unictype/category-Nd-tests: Likewise.
14357         * modules/unictype/category-Nl-tests: Likewise.
14358         * modules/unictype/category-No-tests: Likewise.
14359         * modules/unictype/category-P-tests: Likewise.
14360         * modules/unictype/category-Pc-tests: Likewise.
14361         * modules/unictype/category-Pd-tests: Likewise.
14362         * modules/unictype/category-Pe-tests: Likewise.
14363         * modules/unictype/category-Pf-tests: Likewise.
14364         * modules/unictype/category-Pi-tests: Likewise.
14365         * modules/unictype/category-Po-tests: Likewise.
14366         * modules/unictype/category-Ps-tests: Likewise.
14367         * modules/unictype/category-S-tests: Likewise.
14368         * modules/unictype/category-Sc-tests: Likewise.
14369         * modules/unictype/category-Sk-tests: Likewise.
14370         * modules/unictype/category-Sm-tests: Likewise.
14371         * modules/unictype/category-So-tests: Likewise.
14372         * modules/unictype/category-Z-tests: Likewise.
14373         * modules/unictype/category-Zl-tests: Likewise.
14374         * modules/unictype/category-Zp-tests: Likewise.
14375         * modules/unictype/category-Zs-tests: Likewise.
14376         * modules/unictype/category-and-not-tests: Likewise.
14377         * modules/unictype/category-and-tests: Likewise.
14378         * modules/unictype/category-byname-tests: Likewise.
14379         * modules/unictype/category-name-tests: Likewise.
14380         * modules/unictype/category-none-tests: Likewise.
14381         * modules/unictype/category-of-tests: Likewise.
14382         * modules/unictype/category-or-tests: Likewise.
14383         * modules/unictype/category-test-withtable-tests: Likewise.
14384         * modules/unictype/combining-class-tests: Likewise.
14385         * modules/unictype/ctype-alnum-tests: Likewise.
14386         * modules/unictype/ctype-alpha-tests: Likewise.
14387         * modules/unictype/ctype-blank-tests: Likewise.
14388         * modules/unictype/ctype-cntrl-tests: Likewise.
14389         * modules/unictype/ctype-digit-tests: Likewise.
14390         * modules/unictype/ctype-graph-tests: Likewise.
14391         * modules/unictype/ctype-lower-tests: Likewise.
14392         * modules/unictype/ctype-print-tests: Likewise.
14393         * modules/unictype/ctype-punct-tests: Likewise.
14394         * modules/unictype/ctype-space-tests: Likewise.
14395         * modules/unictype/ctype-upper-tests: Likewise.
14396         * modules/unictype/ctype-xdigit-tests: Likewise.
14397         * modules/unictype/decimal-digit-tests: Likewise.
14398         * modules/unictype/digit-tests: Likewise.
14399         * modules/unictype/mirror-tests: Likewise.
14400         * modules/unictype/numeric-tests: Likewise.
14401         * modules/unictype/property-alphabetic-tests: Likewise.
14402         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14403         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14404         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14405         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14406         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14407         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14408         * modules/unictype/property-bidi-control-tests: Likewise.
14409         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14410         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14411         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14412         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14413         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14414         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14415         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14416         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14417         * modules/unictype/property-bidi-pdf-tests: Likewise.
14418         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14419         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14420         * modules/unictype/property-byname-tests: Likewise.
14421         * modules/unictype/property-combining-tests: Likewise.
14422         * modules/unictype/property-composite-tests: Likewise.
14423         * modules/unictype/property-currency-symbol-tests: Likewise.
14424         * modules/unictype/property-dash-tests: Likewise.
14425         * modules/unictype/property-decimal-digit-tests: Likewise.
14426         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14427         * modules/unictype/property-deprecated-tests: Likewise.
14428         * modules/unictype/property-diacritic-tests: Likewise.
14429         * modules/unictype/property-extender-tests: Likewise.
14430         * modules/unictype/property-format-control-tests: Likewise.
14431         * modules/unictype/property-grapheme-base-tests: Likewise.
14432         * modules/unictype/property-grapheme-extend-tests: Likewise.
14433         * modules/unictype/property-grapheme-link-tests: Likewise.
14434         * modules/unictype/property-hex-digit-tests: Likewise.
14435         * modules/unictype/property-hyphen-tests: Likewise.
14436         * modules/unictype/property-id-continue-tests: Likewise.
14437         * modules/unictype/property-id-start-tests: Likewise.
14438         * modules/unictype/property-ideographic-tests: Likewise.
14439         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14440         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14441         * modules/unictype/property-ignorable-control-tests: Likewise.
14442         * modules/unictype/property-iso-control-tests: Likewise.
14443         * modules/unictype/property-join-control-tests: Likewise.
14444         * modules/unictype/property-left-of-pair-tests: Likewise.
14445         * modules/unictype/property-line-separator-tests: Likewise.
14446         * modules/unictype/property-logical-order-exception-tests: Likewise.
14447         * modules/unictype/property-lowercase-tests: Likewise.
14448         * modules/unictype/property-math-tests: Likewise.
14449         * modules/unictype/property-non-break-tests: Likewise.
14450         * modules/unictype/property-not-a-character-tests: Likewise.
14451         * modules/unictype/property-numeric-tests: Likewise.
14452         * modules/unictype/property-other-alphabetic-tests: Likewise.
14453         * modules/unictype/property-other-default-ignorable-code-point-tests:
14454         Likewise.
14455         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14456         * modules/unictype/property-other-id-continue-tests: Likewise.
14457         * modules/unictype/property-other-id-start-tests: Likewise.
14458         * modules/unictype/property-other-lowercase-tests: Likewise.
14459         * modules/unictype/property-other-math-tests: Likewise.
14460         * modules/unictype/property-other-uppercase-tests: Likewise.
14461         * modules/unictype/property-paired-punctuation-tests: Likewise.
14462         * modules/unictype/property-paragraph-separator-tests: Likewise.
14463         * modules/unictype/property-pattern-syntax-tests: Likewise.
14464         * modules/unictype/property-pattern-white-space-tests: Likewise.
14465         * modules/unictype/property-private-use-tests: Likewise.
14466         * modules/unictype/property-punctuation-tests: Likewise.
14467         * modules/unictype/property-quotation-mark-tests: Likewise.
14468         * modules/unictype/property-radical-tests: Likewise.
14469         * modules/unictype/property-sentence-terminal-tests: Likewise.
14470         * modules/unictype/property-soft-dotted-tests: Likewise.
14471         * modules/unictype/property-space-tests: Likewise.
14472         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14473         * modules/unictype/property-test-tests: Likewise.
14474         * modules/unictype/property-titlecase-tests: Likewise.
14475         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14476         * modules/unictype/property-unified-ideograph-tests: Likewise.
14477         * modules/unictype/property-uppercase-tests: Likewise.
14478         * modules/unictype/property-variation-selector-tests: Likewise.
14479         * modules/unictype/property-white-space-tests: Likewise.
14480         * modules/unictype/property-xid-continue-tests: Likewise.
14481         * modules/unictype/property-xid-start-tests: Likewise.
14482         * modules/unictype/property-zero-width-tests: Likewise.
14483         * modules/unictype/scripts-tests: Likewise.
14484         * modules/unictype/syntax-c-ident-tests: Likewise.
14485         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14486         * modules/unictype/syntax-java-ident-tests: Likewise.
14487         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14488         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14489         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14490         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14491         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14492         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14493         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14494         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14495         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14496         * modules/uniname/uniname-tests: Likewise.
14497         * modules/uninorm/canonical-decomposition-tests: Likewise.
14498         * modules/uninorm/compat-decomposition-tests: Likewise.
14499         * modules/uninorm/composition-tests: Likewise.
14500         * modules/uninorm/decomposing-form-tests: Likewise.
14501         * modules/uninorm/decomposition-tests: Likewise.
14502         * modules/uninorm/filter-tests: Likewise.
14503         * modules/uninorm/nfc-tests: Likewise.
14504         * modules/uninorm/nfd-tests: Likewise.
14505         * modules/uninorm/nfkc-tests: Likewise.
14506         * modules/uninorm/nfkd-tests: Likewise.
14507         * modules/uninorm/u8-normcmp-tests: Likewise.
14508         * modules/uninorm/u8-normcoll-tests: Likewise.
14509         * modules/uninorm/u16-normcmp-tests: Likewise.
14510         * modules/uninorm/u16-normcoll-tests: Likewise.
14511         * modules/uninorm/u32-normcmp-tests: Likewise.
14512         * modules/uninorm/u32-normcoll-tests: Likewise.
14513         * modules/unistdio/u8-asnprintf-tests: Likewise.
14514         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14515         * modules/unistdio/u8-vasprintf-tests: Likewise.
14516         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14517         * modules/unistdio/u8-vsprintf-tests: Likewise.
14518         * modules/unistdio/u16-asnprintf-tests: Likewise.
14519         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14520         * modules/unistdio/u16-vasprintf-tests: Likewise.
14521         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14522         * modules/unistdio/u16-vsprintf-tests: Likewise.
14523         * modules/unistdio/u32-asnprintf-tests: Likewise.
14524         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14525         * modules/unistdio/u32-vasprintf-tests: Likewise.
14526         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14527         * modules/unistdio/u32-vsprintf-tests: Likewise.
14528         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14529         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14530         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14531         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14532         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14533         * modules/unistr/u8-check-tests: Likewise.
14534         * modules/unistr/u8-chr-tests: Likewise.
14535         * modules/unistr/u8-cmp-tests: Likewise.
14536         * modules/unistr/u8-cmp2-tests: Likewise.
14537         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14538         * modules/unistr/u8-cpy-tests: Likewise.
14539         * modules/unistr/u8-mblen-tests: Likewise.
14540         * modules/unistr/u8-mbsnlen-tests: Likewise.
14541         * modules/unistr/u8-mbtouc-tests: Likewise.
14542         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14543         * modules/unistr/u8-mbtoucr-tests: Likewise.
14544         * modules/unistr/u8-move-tests: Likewise.
14545         * modules/unistr/u8-next-tests: Likewise.
14546         * modules/unistr/u8-prev-tests: Likewise.
14547         * modules/unistr/u8-set-tests: Likewise.
14548         * modules/unistr/u8-stpcpy-tests: Likewise.
14549         * modules/unistr/u8-stpncpy-tests: Likewise.
14550         * modules/unistr/u8-strcat-tests: Likewise.
14551         * modules/unistr/u8-strcmp-tests: Likewise.
14552         * modules/unistr/u8-strcoll-tests: Likewise.
14553         * modules/unistr/u8-strcpy-tests: Likewise.
14554         * modules/unistr/u8-strdup-tests: Likewise.
14555         * modules/unistr/u8-strlen-tests: Likewise.
14556         * modules/unistr/u8-strmblen-tests: Likewise.
14557         * modules/unistr/u8-strmbtouc-tests: Likewise.
14558         * modules/unistr/u8-strncat-tests: Likewise.
14559         * modules/unistr/u8-strncmp-tests: Likewise.
14560         * modules/unistr/u8-strncpy-tests: Likewise.
14561         * modules/unistr/u8-strnlen-tests: Likewise.
14562         * modules/unistr/u8-to-u16-tests: Likewise.
14563         * modules/unistr/u8-to-u32-tests: Likewise.
14564         * modules/unistr/u8-uctomb-tests: Likewise.
14565         * modules/unistr/u16-check-tests: Likewise.
14566         * modules/unistr/u16-chr-tests: Likewise.
14567         * modules/unistr/u16-cmp-tests: Likewise.
14568         * modules/unistr/u16-cmp2-tests: Likewise.
14569         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14570         * modules/unistr/u16-cpy-tests: Likewise.
14571         * modules/unistr/u16-mblen-tests: Likewise.
14572         * modules/unistr/u16-mbsnlen-tests: Likewise.
14573         * modules/unistr/u16-mbtouc-tests: Likewise.
14574         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14575         * modules/unistr/u16-mbtoucr-tests: Likewise.
14576         * modules/unistr/u16-move-tests: Likewise.
14577         * modules/unistr/u16-next-tests: Likewise.
14578         * modules/unistr/u16-prev-tests: Likewise.
14579         * modules/unistr/u16-set-tests: Likewise.
14580         * modules/unistr/u16-stpcpy-tests: Likewise.
14581         * modules/unistr/u16-stpncpy-tests: Likewise.
14582         * modules/unistr/u16-strcat-tests: Likewise.
14583         * modules/unistr/u16-strcmp-tests: Likewise.
14584         * modules/unistr/u16-strcoll-tests: Likewise.
14585         * modules/unistr/u16-strcpy-tests: Likewise.
14586         * modules/unistr/u16-strdup-tests: Likewise.
14587         * modules/unistr/u16-strlen-tests: Likewise.
14588         * modules/unistr/u16-strmblen-tests: Likewise.
14589         * modules/unistr/u16-strmbtouc-tests: Likewise.
14590         * modules/unistr/u16-strncat-tests: Likewise.
14591         * modules/unistr/u16-strncmp-tests: Likewise.
14592         * modules/unistr/u16-strncpy-tests: Likewise.
14593         * modules/unistr/u16-strnlen-tests: Likewise.
14594         * modules/unistr/u16-to-u32-tests: Likewise.
14595         * modules/unistr/u16-to-u8-tests: Likewise.
14596         * modules/unistr/u16-uctomb-tests: Likewise.
14597         * modules/unistr/u32-check-tests: Likewise.
14598         * modules/unistr/u32-chr-tests: Likewise.
14599         * modules/unistr/u32-cmp-tests: Likewise.
14600         * modules/unistr/u32-cmp2-tests: Likewise.
14601         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14602         * modules/unistr/u32-cpy-tests: Likewise.
14603         * modules/unistr/u32-mblen-tests: Likewise.
14604         * modules/unistr/u32-mbsnlen-tests: Likewise.
14605         * modules/unistr/u32-mbtouc-tests: Likewise.
14606         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14607         * modules/unistr/u32-mbtoucr-tests: Likewise.
14608         * modules/unistr/u32-move-tests: Likewise.
14609         * modules/unistr/u32-next-tests: Likewise.
14610         * modules/unistr/u32-prev-tests: Likewise.
14611         * modules/unistr/u32-set-tests: Likewise.
14612         * modules/unistr/u32-stpcpy-tests: Likewise.
14613         * modules/unistr/u32-stpncpy-tests: Likewise.
14614         * modules/unistr/u32-strcat-tests: Likewise.
14615         * modules/unistr/u32-strcmp-tests: Likewise.
14616         * modules/unistr/u32-strcoll-tests: Likewise.
14617         * modules/unistr/u32-strcpy-tests: Likewise.
14618         * modules/unistr/u32-strdup-tests: Likewise.
14619         * modules/unistr/u32-strlen-tests: Likewise.
14620         * modules/unistr/u32-strmblen-tests: Likewise.
14621         * modules/unistr/u32-strmbtouc-tests: Likewise.
14622         * modules/unistr/u32-strncat-tests: Likewise.
14623         * modules/unistr/u32-strncmp-tests: Likewise.
14624         * modules/unistr/u32-strncpy-tests: Likewise.
14625         * modules/unistr/u32-strnlen-tests: Likewise.
14626         * modules/unistr/u32-to-u16-tests: Likewise.
14627         * modules/unistr/u32-to-u8-tests: Likewise.
14628         * modules/unistr/u32-uctomb-tests: Likewise.
14629         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14630         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14631         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14632         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14633         * modules/uniwidth/u8-strwidth-tests: Likewise.
14634         * modules/uniwidth/u8-width-tests: Likewise.
14635         * modules/uniwidth/u16-strwidth-tests: Likewise.
14636         * modules/uniwidth/u16-width-tests: Likewise.
14637         * modules/uniwidth/u32-strwidth-tests: Likewise.
14638         * modules/uniwidth/u32-width-tests: Likewise.
14639         * modules/uniwidth/width-tests: Likewise.
14640
14641 2010-05-18  Richard Jones  <rjones@redhat.com>
14642
14643         doc: users.txt: list hivex
14644         * users.txt: Add hivex.
14645
14646 2010-05-18  Richard Jones  <rjones@redhat.com>
14647
14648         doc: users.txt: list febootstrap
14649         * users.txt: Add febootstrap.
14650
14651 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14652
14653         bootstrap: fix an error when gnulib is not used as a git submodule
14654         * build-aux/bootstrap (gnulib_path): If its length is zero then
14655         assign "gnulib" to it.
14656         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14657
14658 2010-05-16  Bruno Haible  <bruno@clisp.org>
14659
14660         Avoid autoconf warnings about AM_ICONV.
14661         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14662         2.64.
14663
14664 2010-05-16  Bruno Haible  <bruno@clisp.org>
14665
14666         absolute-header: Make the macro usable in more situations.
14667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14668         from gl_ABSOLUTE_HEADER.
14669         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14670
14671 2010-05-16  James Youngman  <jay@gnu.org>
14672
14673         doc: update users.txt
14674         * users.txt: Add CSSC.
14675
14676 2010-05-16  Jim Meyering  <meyering@redhat.com>
14677
14678         init.sh: fix an error in the previous change; add more comments
14679         * tests/init.sh: Compare exit code in loop against 9, not 2.
14680         Patch by Bruno Haible.
14681         Make the two tests more similar by adding an empty "then" clause.
14682         Add comments.
14683
14684         init.sh: avoid unnecessary shell re-exec
14685         * tests/init.sh: Improve the re-exec-required check to first test the
14686         current shell.  If it passes the test, do not search for a shell that
14687         does pass, and do not re-exec.  This test is particularly contorted to
14688         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14689         of $(...) evokes a syntax error and causes immediate shell exit with
14690         status 2.  Bruno Haible reported that the re-exec made it impossible
14691         to single-step through any init.sh-using script.
14692
14693 2010-05-16  Bruno Haible  <bruno@clisp.org>
14694
14695         Fix collision between gnulib's and libintl's printf replacements.
14696         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14697         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14698         (printf): When using GNU C, map the __printf__ function to rpl_printf
14699         via __asm__. When not using GNU C, define rpl_printf instead of
14700         __printf__.
14701         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14702         commit.
14703         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14704         commit.
14705         * m4/asm-underscore.m4: New file.
14706         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14707         * modules/stdio (Files): Add m4/asm-underscore.m4.
14708         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14709         Reported by Ben Pfaff.
14710
14711 2010-05-16  Bruno Haible  <bruno@clisp.org>
14712
14713         verify: Avoid skipping the test on openSUSE 11.0.
14714         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14715
14716 2010-05-13  Bruno Haible  <bruno@clisp.org>
14717
14718         Avoid useless warnings from G++.
14719         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14720         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14721         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14722
14723 2010-05-11  Jim Meyering  <meyering@redhat.com>
14724
14725         maint.mk: tweak preceding change
14726         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14727         regexps tighter by anchoring at EOL, and make the new group "shy"
14728         for slightly decreased overhead.
14729
14730 2010-05-11  Eric Blake  <eblake@redhat.com>
14731
14732         maint.mk: gnulib doesn't guarantee NSIG
14733         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14734
14735 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14736
14737         test-pwrite.c: Remove unused variable declaration.
14738         * tests/test-pwrite.c (main): Remove read_buf declaration.
14739
14740         Remove useless test-pwrite.sh file.
14741         * tests/test-pwrite.sh: Delete file.
14742         * modules/pwrite-tests: Remove references.
14743         Reported by Bruno Haible.
14744
14745 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14746
14747         init.sh: fix a typo
14748         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14749
14750 2010-05-10  Jim Meyering  <meyering@redhat.com>
14751
14752         maint.mk: avoid using a temporary file in the always-defined-macros check
14753         * top/maint.mk (.re-defmac): Remove rule.
14754         (gl_trap_): Remove definition.
14755         (sc_prohibit_always-defined_macros): Rewrite not to create and
14756         depend on a temporary file.  Instead, depend on GNU grep's ability
14757         to read a list of regular expressions from stdin when given "-f -".
14758
14759 2010-05-09  Bruno Haible  <bruno@clisp.org>
14760
14761         Update to GNU gettext 0.18, part 1.
14762         * m4/gettext.m4: Update to GNU gettext 0.18.
14763         * m4/intl.m4: Likewise.
14764         * m4/po.m4: Likewise.
14765         * modules/gettext (Files): Add m4/fcntl-o.m4.
14766         (configure.ac): Require gettext infrastructure from version 0.18.
14767
14768 2010-05-09  Jim Meyering  <meyering@redhat.com>
14769
14770         init.sh: enable MALLOC_PERTURB_
14771         * tests/init.sh: Enable glibc's malloc-perturbing option.
14772
14773         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14774         With my recent change in init.sh from the two-line form:
14775             -#   : ${srcdir=.}
14776             -#   . "$srcdir/init.sh"; path_prepend_ .
14777             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14778         I noticed that using the one-line form would cause this test
14779         to fail with a false-positive, or to stop working altogether,
14780         depending on whether help-version changed or all the tests did.
14781         * top/maint.mk (_hv_regex): Remove this definition.
14782         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14783         (_hv_regex_strong): Use a stronger regex to check for conformance.
14784         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14785         Give a separate diagnostic for lack of conforming use.
14786
14787         maint.mk: prohibit definition of symbols defined by gnulib
14788         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14789         definition of symbols defined by gnulib.
14790
14791 2010-05-09  Bruno Haible  <bruno@clisp.org>
14792
14793         acl: Avoid test failure on Cygwin-hosted mingw.
14794         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14795
14796 2010-05-09  Bruno Haible  <bruno@clisp.org>
14797
14798         error: Use system's fcntl function.
14799         * lib/error.c (fcntl): Undefine.
14800
14801 2010-05-09  Jim Meyering  <meyering@redhat.com>
14802
14803         verify: adjust formatting to be more consistent
14804         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14805         argument-list '('s, and after one comma.
14806
14807 2010-05-09  Bruno Haible  <bruno@clisp.org>
14808
14809         error: More reliable output on mingw.
14810         * lib/error.c: Include <windows.h>.
14811         (is_open): New function.
14812         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14813         defined.
14814
14815 2010-05-09  Bruno Haible  <bruno@clisp.org>
14816
14817         vasnprintf: Fix syntax errors in libintl build on mingw.
14818         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14819         pad_ourselves and prec_ourselves after use.
14820
14821 2010-05-08  Bruno Haible  <bruno@clisp.org>
14822
14823         * lib/config.charset: Update comments for Cygwin 1.7.
14824         * lib/localcharset.c: Likewise.
14825
14826 2010-05-07  Jim Meyering  <meyering@redhat.com>
14827
14828         init.sh: improve comments
14829         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14830         . "${srcdir=.}/init.sh"; path_prepend_ .
14831         Add a note about path_prepend_ and the alternative of using
14832         TESTS_ENVIRONMENT.
14833
14834 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14835
14836         exclude: Unescape hashed patterns in wildcard mode.
14837         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14838         to the hash list.
14839         * tests/test-exclude8.sh: New test case.
14840         * modules/exclude-tests: Add new test.
14841
14842 2010-05-05  Eric Blake  <eblake@redhat.com>
14843
14844         verify: automate tests
14845         * modules/verify-tests: New module.
14846         * tests/test-verify.sh: New file.
14847         * tests/test-verify.c: Guard each negative test with a unique id.
14848         Also avoid warning about unused left hand of comma expressions.
14849
14850 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14851
14852         Further improvements to verify.h, suggested by Eric Blake.
14853         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14854         the GL_* versions, to avoid collision with OpenGL.
14855         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14856         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14857         than testing merely whether it's defined.
14858
14859         Modify verify.h to pacify gcc -Wredundant_decls.
14860         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14861         These use the prefix "GL_" since they're likely to be useful elsewhere.
14862         We may need to break them out into a different .h file.
14863         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14864         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14865         of verify_function__.
14866
14867 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14868
14869         Tests for module pwrite.
14870         * modules/pwrite-tests: New file.
14871         * tests/test-pwrite.sh: New file.
14872         * tests/test-pwrite.c: New file.
14873
14874         New module pwrite.
14875         * lib/unistd.in.h (pwrite): New declaration.
14876         * lib/pwrite.c: New file, from glibc with modifications.
14877         * m4/pwrite.m4: New file.
14878         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14879         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14880         REPLACE_PWRITE.
14881         * modules/pwrite: New file.
14882         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14883         REPLACE_PWRITE.
14884         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14885         * doc/posix-functions/pwrite.texi: Mention the new module.
14886
14887 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14888
14889         pread: Update documentation.
14890         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14891
14892 2010-05-04  Eric Blake  <eblake@redhat.com>
14893
14894         docs: update cygwin progress
14895         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14896         this bug.
14897         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14898         Added in cygwin 1.7.2.
14899         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14900         Likewise.
14901         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14902         Likewise.
14903         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14904         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14905         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14906         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14907         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14908         Mention nproc module.
14909         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14910         bug in cygwin 1.7.5 addition.
14911         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14912         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14913         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14914         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14915         1.7.5.
14916         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14917         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14918         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14919         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14920         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14921         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14922         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14923         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14924         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14925         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14926         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14927         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14928         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14929         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14930         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14931         Likewise.
14932         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14933         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14934         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14935         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14936         Likewise.
14937         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14938         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14939         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14940         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14941         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14942         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14943         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14944         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14945         Likewise.
14946         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14947         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14948         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14949         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14950         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14951         Likewise.
14952         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14953         Likewise.
14954         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14955         Likewise.
14956         * doc/glibc-functions/xdrrec_endofrecord.texi
14957         (xdrrec_endofrecord): Likewise.
14958         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14959         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14960         Likewise.
14961         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14962         Likewise.
14963
14964 2010-05-04  Jim Meyering  <meyering@redhat.com>
14965
14966         gendocs.sh: make its "-s FILE" option more useful
14967         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14968         $PACKAGE to reflect the probably-different basename of "FILE".
14969
14970 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14971
14972         bootstrap: don't ignore download_po_files failure
14973         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14974         failure.
14975
14976 2010-05-03  Jim Meyering  <meyering@redhat.com>
14977
14978         maint.mk: allow to pass options to gendocs.sh
14979         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14980         (gendocs_options_): New overridable variable.
14981
14982         gnu-web-doc-update: don't ignore configure or build failure
14983         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14984
14985         announce-gen: backslash-escape '@'s in --help output
14986         * build-aux/announce-gen: Fix syntax errors.
14987
14988         maint.mk, announce-gen: allow project-specific announcement mail headers
14989         * top/maint.mk (translation_project_): Define default.
14990         (announcement_Cc_, announcement_mail_headers_): Likewise.
14991         (announcement): Invoke announce-gen with new --mail-headers option.
14992         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14993
14994         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14995         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14996         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14997         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14998         line in the "err2" output file when running "make check" in verbose
14999         mode (i.e., with set -x enabled).
15000
15001 2010-05-03  Bruno Haible  <bruno@clisp.org>
15002
15003         wctob: Fix for weird platforms.
15004         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15005         argument value.
15006
15007 2010-05-03  Jim Meyering  <meyering@redhat.com>
15008
15009         maint.mk: prohibit unwarranted use of <strings.h>
15010         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15011         strings.h in a file that does not also use strcasecmp, strncasecmp,
15012         ffs or ffsll.
15013
15014         maint.mk: remove obsolete comments
15015         * top/maint.mk: Remove stale, commented-out rules.
15016
15017 2010-05-02  Bruno Haible  <bruno@clisp.org>
15018
15019         wcwidth: Declare also when it's aliased.
15020         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15021         macro.
15022
15023 2010-05-02  Bruno Haible  <bruno@clisp.org>
15024
15025         Fix regression from 2010-04-25.
15026         * gnulib-tool (func_modules_transitive_closure): Check the status of
15027         all modules, not only of the tests that are of the form foo-tests where
15028         foo is a module.
15029
15030 2010-05-02  Bruno Haible  <bruno@clisp.org>
15031
15032         wctob: Work around nasty Cygwin 1.7.2 bug.
15033         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15034         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15035
15036 2010-05-01  Bruno Haible  <bruno@clisp.org>
15037
15038         fpurge: Sharper test.
15039         * tests/test-fpurge.c (main): Add one more ftell check.
15040         * modules/fpurge-tests (Depends-on): Add ftell.
15041         Suggested by Eric Blake.
15042
15043 2010-05-01  Bruno Haible  <bruno@clisp.org>
15044
15045         ftello: Another test.
15046         * tests/test-ftello3.c: New file.
15047         * modules/ftello-tests (Files): Add it.
15048         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15049         MOSTLYCLEANFILES.
15050
15051         ftell: Another test.
15052         * tests/test-ftell3.c: New file.
15053         * modules/ftell-tests (Files): Add it.
15054         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15055         MOSTLYCLEANFILES.
15056
15057 2010-05-01  Bruno Haible  <bruno@clisp.org>
15058
15059         ftell, ftello: Work around Solaris bug.
15060         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15061         * lib/ftello.c: Include stdio-impl.h.
15062         (ftello): On Solaris, when _IOWRT is set, compute the result without
15063         looking at _IOREAD.
15064         * modules/ftello (Files): Add lib/stdio-impl.h.
15065         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15066         * doc/posix-functions/ftello.texi: Likewise.
15067         Reported by Eric Blake.
15068
15069 2010-05-01  Bruno Haible  <bruno@clisp.org>
15070
15071         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15072         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15073         the _IOWRT flag is also set.
15074
15075 2010-05-01  Bruno Haible  <bruno@clisp.org>
15076
15077         Fix doc about a HP-UX stdio bug.
15078         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15079         * doc/posix-functions/ftello.texi: Likewise.
15080
15081 2010-05-01  Bruno Haible  <bruno@clisp.org>
15082
15083         lseek test: Fix failure on Solaris.
15084         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15085         output.
15086
15087 2010-04-30  Jim Meyering  <meyering@redhat.com>
15088
15089         bootstrap: don't ignore failure to generate po*/Makevars
15090         * build-aux/bootstrap (with_gettext): Don't ignore failure
15091         to create po/Makevars or runtime-po/Makevars.
15092
15093 2010-04-29  Eric Blake  <eblake@redhat.com>
15094
15095         headers: relax license to LGPLv2+
15096         * modules/fcntl-h (License): Relax license.
15097         * modules/getopt-posix (License): Likewise.
15098         * modules/locale (License): Likewise.
15099         * modules/math (License): Likewise.
15100         * modules/pty (License): Likewise.
15101         * modules/sched (License): Likewise.
15102         * modules/search (License): Likewise.
15103         * modules/spawn (License): Likewise.
15104         * modules/stdarg (License): Likewise.
15105         * modules/sysexits (License): Likewise.
15106
15107 2010-04-29  Jim Meyering  <meyering@redhat.com>
15108
15109         inttypes: relax license to LGPLv2+
15110         * modules/inttypes (License): Relax license.
15111
15112 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15113
15114         * top/maint.mk (indent): Run twice to produce idempotent results.
15115
15116 2010-04-28  Bruno Haible  <bruno@clisp.org>
15117
15118         getdate: Generate getdate.c in the source directory.
15119         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15120         MOSTLYCLEANFILES.
15121         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15122
15123 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15124
15125         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15126         is not declared as a const *; avoid warnings in that case.
15127
15128 2010-04-28  Eric Blake  <eblake@redhat.com>
15129
15130         canonicalize-lgpl: avoid compiler warning
15131         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15132         declaration' / 'extraneous semicolon' warning with some compilers.
15133         Reported by Andreas Gruenbacher.
15134
15135 2010-04-28  Jim Meyering  <meyering@redhat.com>
15136
15137         init.sh: ensure a more reliable exit status when exiting via trap
15138         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15139         Inspired by patches from Dmitry V. Levin.
15140         Also trap on signal 3 (SIGQUIT).
15141
15142 2010-04-27  Bruno Haible  <bruno@clisp.org>
15143
15144         Update doc about utimes().
15145         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15146         'utimens' module.
15147         Reported by Andreas Gruenbacher <agruen@suse.de>.
15148
15149 2010-04-27  Eric Blake  <eblake@redhat.com>
15150
15151         full-read, full-write: relax license
15152         * modules/full-read (License): Drop to LGPLv2+.
15153         * modules/full-write (License): Likewise.
15154         * modules/safe-read (License): Likewise.
15155         * modules/safe-write (License): Likewise.
15156
15157         pthread: mention library for linking
15158         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15159
15160 2010-04-27  Jim Meyering  <meyering@redhat.com>
15161
15162         maint.mk: fix a bug introduced in last change
15163         * top/maint.mk (gl_assured_headers_): Now that all names are on
15164         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15165         is not anchored to end of word, it should be adequate.
15166
15167         maint.mk: avoid side-effect in latest syntax-check
15168         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15169         to run commands via $(shell...), and hence to incur cost only when
15170         the new rule is actually run.
15171
15172         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15173         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15174         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15175         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15176         (gl_assured_headers_, az_, AZ_): Define.
15177         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15178
15179 2010-04-26  Jim Meyering  <jim@meyering.net>
15180             Bruno Haible  <bruno@clisp.org>
15181
15182         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15183         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15184         Prompted by an exchange with Gilles Espinasse.
15185
15186 2010-04-26  Jim Meyering  <meyering@redhat.com>
15187
15188         git-version-gen: aesthetic tweak
15189         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15190         so that the command remains on a single line.
15191
15192 2010-04-26  Eric Blake  <eblake@redhat.com>
15193
15194         git-version-gen: allow use on EBCDIC hosts
15195         * build-aux/git-version-gen (dirty): Use literal rather than tying
15196         ourselves to ascii.
15197         Reported by Steve Goetze.
15198
15199 2010-04-25  Bruno Haible  <bruno@clisp.org>
15200
15201         netdb: Add support for GNULIB_POSIXCHECK.
15202         * lib/netdb.in.h: Include warn-on-use.h.
15203         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15204         functions are used when GNULIB_POSIXCHECK is defined and the
15205         getaddrinfo module is not in use.
15206         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15207         freeaddrinfo, gai_strerror, getnameinfo are declared.
15208         * modules/netdb (Depends-on): Add warn-on-use.
15209         (Makefile.am): Include warn-on-use.h in netdb.h.
15210
15211 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15212
15213         build: avoid "make check" failure without .git/ directory
15214         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15215         there is no .git/ directory.
15216
15217 2010-04-25  Bruno Haible  <bruno@clisp.org>
15218
15219         ptsname: Fix misuse of ttyname_r.
15220         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15221         of errno.
15222
15223 2010-04-25  Bruno Haible  <bruno@clisp.org>
15224
15225         ttyname_r: Make it work on Solaris 10.
15226         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15227         if the system function has the POSIX declaration. Test whether the
15228         function fails if the buffer is less than 128 bytes large.
15229         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15230         system's ttyname_r function. Provide a reasonably large buffer.
15231         * modules/ttyname_r (Depends-on): Add extensions.
15232         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15233
15234 2010-04-25  Bruno Haible  <bruno@clisp.org>
15235
15236         Use the 'extensions' module for some more functions on Solaris.
15237         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15238         module.
15239         * doc/posix-functions/ctime_r.texi: Likewise.
15240         * doc/posix-functions/getgrgid_r.texi: Likewise.
15241         * doc/posix-functions/getgrnam_r.texi: Likewise.
15242         * doc/posix-functions/getpwnam_r.texi: Likewise.
15243         * doc/posix-functions/getpwuid_r.texi: Likewise.
15244         * doc/posix-functions/readdir_r.texi: Likewise.
15245         * doc/posix-functions/sigwait.texi: Likewise.
15246         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15247         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15248
15249 2010-04-25  Bruno Haible  <bruno@clisp.org>
15250
15251         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15252         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15253         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15254         * lib/ttyname_r.c: Include <limits.h>.
15255         (ttyname_r): Define using the system's ttyname_r function, if it exists
15256         and not on Solaris.
15257         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15258         set.
15259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15260         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15261         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15262         Reported by Simon Josefsson.
15263
15264 2010-04-25  Bruno Haible  <bruno@clisp.org>
15265
15266         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15267         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15268         * doc/posix-functions/ctime_r.texi: Likewise.
15269         * doc/posix-functions/getgrgid_r.texi: Likewise.
15270         * doc/posix-functions/getgrnam_r.texi: Likewise.
15271         * doc/posix-functions/getlogin_r.texi: Likewise.
15272         * doc/posix-functions/getpwnam_r.texi: Likewise.
15273         * doc/posix-functions/getpwuid_r.texi: Likewise.
15274         * doc/posix-functions/readdir_r.texi: Likewise.
15275         * doc/posix-functions/sigwait.texi: Likewise.
15276         * doc/posix-functions/ttyname_r.texi: Likewise.
15277         Reported by Simon Josefsson.
15278
15279 2010-04-25  Bruno Haible  <bruno@clisp.org>
15280
15281         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15282         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15283         also to --create-testdir.
15284         (func_acceptable): Don't consider the status of *-tests modules here.
15285         (func_modules_transitive_closure): Consider it here, before including a
15286         test module.
15287         (func_import, func_create_testdir): Set inc_all_direct_tests,
15288         inc_all_indirect_tests.
15289         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15290         --create-testdir and --create-megatestdir.
15291
15292 2010-04-25  Bruno Haible  <bruno@clisp.org>
15293
15294         gnulib-tool: Add --without-*-tests options.
15295         * gnulib-tool (func_usage): Document the --without-*-tests options.
15296         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15297         excl_unportable_tests): New variables.
15298         Fail if they are specified with --import or --update.
15299         (func_acceptable): Respect the excl_*_tests variables.
15300         (func_import): Set the excl_*_tests variables to empty.
15301
15302 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15303             Bruno Haible  <bruno@clisp.org>
15304
15305         Work around a MacOS X 10.4 bug with openpty.
15306         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15307         * tests/test-openpty.c (main): Close the master side explicitly.
15308
15309 2010-04-25  Bruno Haible  <bruno@clisp.org>
15310
15311         strnlen: Fix a C++ test error on MacOS X and Solaris.
15312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15313         the function is not declared.
15314         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15315         Simon Josefsson.
15316
15317 2010-04-24  Bruno Haible  <bruno@clisp.org>
15318
15319         Avoid a gcc warning.
15320         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15321         of correct type for %08lx directive.
15322         Reported by Eric Blake.
15323
15324 2010-04-24  Bruno Haible  <bruno@clisp.org>
15325
15326         vasnprintf: Correct errno value in case of out-of-memory.
15327         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15328         or sprintf. Use the errno value from SNPRINTF or sprintf.
15329         Reported by Ian Beckwith <ianb@erislabs.net>.
15330
15331 2010-04-24  Bruno Haible  <bruno@clisp.org>
15332
15333         ansi-c++-opt: Find correct compiler when cross-compiling.
15334         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15335         AC_CHECK_PROGS.
15336         Reported by Simon Josefsson.
15337
15338 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15339
15340         vc-list-files: Add support for subversion
15341         * build-aux/vc-list-files: Use "svn list" to generate the list of
15342         files controlled by subversion.
15343
15344 2010-04-23  Jim Meyering  <meyering@redhat.com>
15345
15346         vc-list-files tests: convert to use init.sh
15347         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15348         path_prepend_.
15349         Use Exit, not exit.
15350         Use skip_ rather than open coding it.
15351         Remove trap set-up and compare definitions.
15352         * tests/test-vc-list-files-git.sh: Likewise.
15353         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15354
15355 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15356
15357         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15358         backup files.
15359
15360 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15361
15362         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15363
15364 2010-04-20  Eric Blake  <eblake@redhat.com>
15365
15366         tests: be robust to ignored SIGPIPE
15367         * tests/test-select-in.sh: Consume all output.
15368         * tests/test-lseek.sh: Check correct exit status, while avoiding
15369         EPIPE.
15370
15371 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15372             Bruno Haible  <bruno@clisp.org>
15373
15374         visibility: Don't use -fvisibility if it leads to a warning.
15375         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15376         yes, don't pretend that visibility works if it leads to a warning.
15377         Reported by Mike Gran <spk121@yahoo.com>.
15378
15379 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15380
15381         * build-aux/bootstrap: Use "git -h" for testing for supported options
15382         instead of "git --help".  The short-form option only shows a summary,
15383         and doesn't layout the full man page.  Grep for the full option name
15384         in the summary, too.
15385
15386 2010-04-19  Bruno Haible  <bruno@clisp.org>
15387
15388         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15389         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15390         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15391         mention of RELOCATABLE_STRIP.
15392         Reported by Sylvain Beucler <beuc@beuc.net>.
15393
15394 2010-04-19  Bruno Haible  <bruno@clisp.org>
15395
15396         * lib/diffseq.h: Fix typo in comment.
15397         Reported by Eric Blake.
15398
15399 2010-04-19  Bruno Haible  <bruno@clisp.org>
15400
15401         ioctl: Move autoconf macro to a .m4 file.
15402         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15403         * modules/ioctl (Files): Add it.
15404         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15405         Reported by Ian Beckwith <ianb@erislabs.net>.
15406
15407 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15408             Bruno Haible  <bruno@clisp.org>
15409
15410         diffseq: Accommodate use-case with abstract arrays.
15411         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15412         is not defined.
15413         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15414         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15415
15416 2010-04-18  Bruno Haible  <bruno@clisp.org>
15417
15418         * doc/posix-headers/stdbool.texi: More precise wording.
15419
15420 2010-04-17  Jim Meyering  <meyering@redhat.com>
15421
15422         maint.mk: use gnu-style indentation in an embedded perl script
15423         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15424         Rename variable: s/two/last_two_bytes/
15425
15426 2010-04-16  Eric Blake  <eblake@redhat.com>
15427
15428         test-stdbool: skip test that fails with Solaris CC
15429         * tests/test-stdbool.c (f): Skip test that causes compilation
15430         error under buggy C++ compiler.
15431         * lib/stdbool.in.h: Document the limitation.
15432         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15433
15434         setenv: allow compilation with C++
15435         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15436         register keyword.
15437
15438         stdint: allow test to pass with C++
15439         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15440
15441         getopt: allow compilation with C++
15442         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15443         struct.
15444         * lib/getopt.c (_getopt_internal_r): Use correct type.
15445         Reported by Dagobert Michelson, via Joel E. Denny.
15446
15447 2010-04-16  Bruno Haible  <bruno@clisp.org>
15448
15449         Override netdb.h always.
15450         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15451         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15452         Reported by Ludovic Courtès <ludo@gnu.org>.
15453
15454 2010-04-15  Bruno Haible  <bruno@clisp.org>
15455
15456         openpty: Fix mistake from 2010-03-21.
15457         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15458         Reported by Simon Josefsson.
15459
15460 2010-04-15  Eric Blake  <eblake@redhat.com>
15461
15462         test-forkpty: fix expected signature
15463         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15464         Reported by Simon Josefsson.
15465
15466 2010-04-15  Jim Meyering  <meyering@redhat.com>
15467
15468         maint.mk: texinfo_suffix_re_: correct the default regexp
15469         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15470
15471         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15472         make it configurable via texinfo_suffix_re_.
15473
15474 2010-04-14  Eric Blake  <eblake@redhat.com>
15475
15476         strtok_r: relax license to LGPLv2+
15477         * modules/strtok_r (License): Relax license.
15478         Reported by Matthias Bolte.
15479
15480 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15481
15482         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15483         version 1.4.4 by default instead of requiring the libgcrypt
15484         version used during build.  This makes it possible to use the
15485         application with older but still binary compatible libgcrypt
15486         versions.
15487
15488 2010-04-13  Eric Blake  <eblake@redhat.com>
15489
15490         getopt-gnu: match recent glibc fixes and posix ruling
15491         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15492         '+' handling, when requesting extensions.
15493         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15494         'W;' handling.
15495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15496         * doc/posix-functions/getopt.texi (getopt): Document this.
15497         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15498         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15499         Likewise.
15500
15501         getopt: merge bug fixes from glibc
15502         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15503         diagnostics.  Honor '+:' correctly.  Reject ';'.
15504
15505         getopt-posix: detect MacOS bug
15506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15507         optind when missing a required argument.
15508         * doc/posix-functions/getopt.texi (getopt): Document the bug.
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-posix: avoid spurious failure on Solaris
15514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15515         an indicator that setting optind=1 is sufficient for reset.
15516
15517         getopt-posix: avoid spurious failure on FreeBSD
15518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15519         in POSIX mode, since the m4 test uses it.
15520
15521         gnulib-tool: silence warning on BSD sh
15522         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15523
15524 2010-04-13  Jim Meyering  <meyering@redhat.com>
15525
15526         doc: users.txt: GNU patch now uses gnulib
15527         * users.txt: Add patch.
15528
15529 2010-04-12  Jim Meyering  <meyering@redhat.com>
15530
15531         maint.mk: generate more concise timing data for syntax-check rules
15532         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15533         " done" from each line that reports a syntax-check test duration.
15534
15535 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15536
15537         git-version-gen: use "git update-index..." rather than "git status"
15538         * build-aux/git-version-gen: Use git update-index --refresh, not
15539         "git status".  With some versions of git, "git status" would fail
15540         to update the index and result in an unwarranted "-dirty" suffix.
15541
15542 2010-04-11  Jim Meyering  <meyering@redhat.com>
15543
15544         openat: correct formatting (no semantic change)
15545         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15546         Suggested by Bruno Haible.
15547
15548 2010-04-11  Bruno Haible  <bruno@clisp.org>
15549
15550         Stricter declaration checking in testdirs.
15551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15552         If for_tests is true, augment AM_CPPFLAGS to define
15553         GNULIB_STRICT_CHECKING.
15554         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15555         GNULIB_STRICT_CHECKING is defined, verify that the function is
15556         declared.
15557
15558 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15559             Bruno Haible  <bruno@clisp.org>
15560
15561         libunistring: Improve configure output.
15562         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15563         Don't say "consider installing GNU libunistring" when checking again
15564         with libiconv.
15565
15566 2010-04-11  Bruno Haible  <bruno@clisp.org>
15567
15568         libunistring: Correct value of $LTLIBUNISTRING.
15569         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15570         correct the value of $LTLIBUNISTRING.
15571
15572 2010-04-11  Bruno Haible  <bruno@clisp.org>
15573
15574         havelib: Add static libraries to LIBS in the right order.
15575         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15576         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15577
15578 2010-04-11  Bruno Haible  <bruno@clisp.org>
15579
15580         libunistring: Detect libunistring also when it depends on libiconv.
15581         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15582         the second AC_LIB_HAVE_LINKFLAGS invocation.
15583
15584 2010-04-11  James Youngman  <jay@gnu.org>
15585
15586         close-stream: declare local scalars to be "const"
15587         * lib/close-stream.c (close_stream): Make boolean variables const
15588         to document the fact that we set but do not change them.
15589
15590 2010-04-11  Bruno Haible  <bruno@clisp.org>
15591
15592         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15593
15594 2010-04-11  Jim Meyering  <meyering@redhat.com>
15595
15596         maint.mk: don't include dist-check.mk
15597         * top/maint.mk: Remove bogus include directive.
15598
15599         maint.mk: improve empty-line-at-EOF check
15600         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15601         solution, rather than tail+Perl-based one.  The latter would read
15602         a few kilobytes from the end of each file, and did not handle empty
15603         files properly.
15604
15605         maint.mk: print the elapsed time for each syntax-check rule
15606         * top/maint.mk (sc_m_rules_): Save start time in a file.
15607         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15608         (local-check): Interpose the .z rules
15609
15610 2010-04-11  Jim Meyering  <meyering@redhat.com>
15611
15612         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15613         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15614         empty file with one that ends in an empty line.
15615
15616 2010-04-10  Bruno Haible  <bruno@clisp.org>
15617
15618         mkdir: Make it work on mingw64.
15619         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15620         * lib/mkdir.c: Update comment.
15621         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15622
15623 2010-04-10  Bruno Haible  <bruno@clisp.org>
15624
15625         Don't override improved macro from newer autoconf.
15626         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15627         autoconf >= 2.62.
15628         Reported by Joel E. Denny <jdenny@clemson.edu>.
15629
15630 2010-04-10  Jim Meyering  <meyering@redhat.com>
15631
15632         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15633         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15634
15635         maint.mk: correct a diagnostic
15636         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15637         in diagnostic; now use $prohibit.
15638
15639 2010-04-10  Bruno Haible  <address@hidden>
15640
15641         fchownat: Fix a C++ test error on Solaris 8.
15642         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15643         the function does not exist.
15644
15645 2010-04-10  Bruno Haible  <bruno@clisp.org>
15646
15647         vasnprintf: Add more tests.
15648         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15649         (test_function): Test converting an invalid wide string.
15650
15651         vasnprintf: Correct handling of unconvertible wide string arguments.
15652         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15653         VASNPRINTF.
15654         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15655         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15656         smaller than the expected maximum need for the directive. Set errno to
15657         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15658         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15660         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15661         * modules/vasnprintf (Files): Add m4/printf.m4.
15662         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15663
15664 2010-04-10  Bruno Haible  <bruno@clisp.org>
15665
15666         vasnprintf: Fix crash in %ls directive.
15667         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15668         string is passed as argument to %ls, with no precision and no width.
15669         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15670
15671 2010-04-10  Bruno Haible  <bruno@clisp.org>
15672
15673         vasnprintf: Fix multiple test failures on mingw.
15674         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15675         _snprintf, or snwprintf, not _snwprintf.
15676
15677 2010-04-10  Bruno Haible  <bruno@clisp.org>
15678
15679         write: Fix a C++ test error on mingw.
15680         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15681
15682 2010-04-10  Bruno Haible  <bruno@clisp.org>
15683
15684         vasnprintf test: Reduce code duplication.
15685         * tests/test-vasnprintf.c (test_function): New function, extracted from
15686         test_vasnprintf.
15687         (test_vasnprintf, test_asnprintf): Invoke it.
15688
15689 2010-04-10  Bruno Haible  <bruno@clisp.org>
15690
15691         strnlen: Fix warning in C++ mode on MacOS X.
15692         * lib/string.in.h (strnlen): Use the modern idiom.
15693         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15694         defining strnlen as a macro already in <config.h>.
15695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15696         REPLACE_STRNLEN.
15697         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15698         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15699
15700 2010-04-08  James Youngman  <jay@gnu.org>
15701
15702         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15703         the example.
15704
15705 2010-04-09  Jim Meyering  <meyering@redhat.com>
15706
15707         maint.mk: print better diagnostic when there is no $(_hv_file)
15708         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15709         announce that when $(_hv_file) (aka help-version) does not exist.
15710
15711         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15712         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15713         not try to interpret its random input bytes.  Jarno Rajahalme reported
15714         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15715         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15716         (mktempd_): Likewise, just in case.
15717
15718         ftruncate: add two years to projected module removal date: 2012
15719         * m4/ftruncate.m4: Adjust comments.
15720
15721         ftruncate: mark module as obsolete; even MinGW provides it, now
15722         * modules/ftruncate (Status): Obsolete.
15723         (Notice): Say that.
15724         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15725         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15726
15727 2010-04-08  Bruno Haible  <bruno@clisp.org>
15728
15729         Fix side effects from tests-related modules.
15730         * modules/dprintf-posix (Comment): New section.
15731         * modules/fprintf-posix (Comment): Likewise.
15732         * modules/obstack-printf-posix (Comment): Likewise.
15733         * modules/printf-posix (Comment): Likewise.
15734         * modules/snprintf-posix (Comment): Likewise.
15735         * modules/sprintf-posix (Comment): Likewise.
15736         * modules/vasnprintf-posix (Comment): Likewise.
15737         * modules/vasprintf-posix (Comment): Likewise.
15738         * modules/vdprintf-posix (Comment): Likewise.
15739         * modules/vfprintf-posix (Comment): Likewise.
15740         * modules/vprintf-posix (Comment): Likewise.
15741         * modules/vsnprintf-posix (Comment): Likewise.
15742         * modules/vsprintf-posix (Comment): Likewise.
15743         * modules/xprintf-posix (Comment): Likewise.
15744         * modules/xvasprintf-posix (Comment): Likewise.
15745         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15746         * modules/floorf-tests (Depends-on): Likewise.
15747         * modules/round-tests (Depends-on): Likewise.
15748         * modules/roundf-tests (Depends-on): Likewise.
15749         * modules/trunc-tests (Depends-on): Likewise.
15750         * modules/truncf-tests (Depends-on): Likewise.
15751         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15752         'fprintf-posix' module is not present.
15753         * tests/test-floorf2.c (check): Likewise.
15754         * tests/test-trunc2.c (check): Likewise.
15755         * tests/test-truncf2.c (check): Likewise.
15756         * tests/test-round2.c (equal): Likewise.
15757         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15758
15759 2010-04-07  Karl Berry  <karl@gnu.org>
15760
15761         * config/srclist.txt,
15762         * config/srclistvars.sh,
15763         * config/srclist-update: doc fixes.
15764
15765 2010-04-07  Jim Meyering  <meyering@redhat.com>
15766
15767         maint.mk: add a PATH crosschecking syntax-check rule
15768         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15769         Useful if you use a test like the one in help-version (coreutils,
15770         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15771         printed by prog --version.
15772
15773 2010-04-06  Bruno Haible  <bruno@clisp.org>
15774
15775         Fix link error on mingw.
15776         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15777         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15778
15779 2010-04-06  Bruno Haible  <bruno@clisp.org>
15780
15781         Assume rmdir exists.
15782         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15783
15784 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15785
15786         doc: update users.txt
15787         * users.txt: Add gcal.
15788
15789 2010-04-06  Jim Meyering  <meyering@redhat.com>
15790
15791         init.sh: simply unset TMPDIR rather than risking env -i
15792         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15793         although it probably works fine on all Unix-based systems, some
15794         systems (Cygwin?) cannot tolerate a totally cleared environment.
15795         Suggestion from Eric Blake.
15796
15797 2010-04-06  Jim Meyering  <meyering@redhat.com>
15798
15799         init.sh: portability fix: use env's POSIX-specified -i option not -u
15800         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15801         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15802
15803 2010-04-05  Bruno Haible  <bruno@clisp.org>
15804
15805         btowc: Work around Cygwin 1.7.2 bug.
15806         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15807         does not map NUL to 0.
15808         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15809
15810 2010-04-05  Bruno Haible  <bruno@clisp.org>
15811
15812         Make the multithread modules work on Cygwin 1.7.2.
15813         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15814         imported symbols can be declared weak, so that it returns "no" on
15815         Cygwin 1.7.2.
15816
15817 2010-04-05  Bruno Haible  <bruno@clisp.org>
15818
15819         Use the module 'strncat'.
15820         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15821
15822         Tests for module 'strncat'.
15823         * modules/strncat-tests: New file.
15824         * tests/test-strncat.c: New file.
15825
15826         New module 'strncat'.
15827         * lib/string.in.h (strncat): New declaration.
15828         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15829         * m4/strncat.m4: New file, based on m4/memchr.m4.
15830         * modules/strncat: New file.
15831         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15832         is declared.
15833         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15834         REPLACE_STRNCAT.
15835         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15836         REPLACE_STRNCAT.
15837         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15838         module.
15839         * tests/test-string-c++.cc: Check signature of strncat.
15840
15841 2010-04-05  Jim Meyering  <meyering@redhat.com>
15842
15843         xstrtoumax-tests: convert to use init.sh
15844         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15845         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15846         Use Exit, not exit.
15847         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15848
15849         xstrtoimax-tests: convert to use init.sh
15850         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15851         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15852         Use Exit, not exit.
15853         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15854
15855 2010-04-05  Bruno Haible  <bruno@clisp.org>
15856
15857         sys_socket: Avoid #define replacements in C++ mode.
15858         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15859         warning to the function if possible, rather than #defining the symbol
15860         to a dysfunctional alias.
15861
15862 2010-04-05  Bruno Haible  <bruno@clisp.org>
15863
15864         fseeko: Fix C++ test error on mingw.
15865         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15866         gl_FUNC_FSEEKO.
15867         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15868         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15869         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15870         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15871
15872 2010-04-05  Bruno Haible  <bruno@clisp.org>
15873
15874         duplocale: Improve test output.
15875         * tests/test-duplocale.c (main): Print reason for skipped test.
15876
15877 2010-04-05  Bruno Haible  <bruno@clisp.org>
15878
15879         Assume rmdir exists.
15880         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15881         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15882
15883 2010-04-05  Bruno Haible  <bruno@clisp.org>
15884
15885         Fix link error on Solaris 8 with cc.
15886         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15887
15888 2010-04-05  Bruno Haible  <bruno@clisp.org>
15889
15890         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15891         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15892
15893 2010-04-05  Bruno Haible  <bruno@clisp.org>
15894
15895         vasprintf: Update documentation.
15896         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15897
15898 2010-04-05  Bruno Haible  <bruno@clisp.org>
15899
15900         ptsname: Improve test.
15901         * tests/test-ptsname.c (main): Also try the various master names of BSD
15902         systems.
15903
15904 2010-04-05  Bruno Haible  <bruno@clisp.org>
15905
15906         memchr: Avoid a possible C++ test error.
15907         * lib/string.in.h (memchr): Provide declaration if function is missing.
15908         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15909         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15911         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15912
15913 2010-04-05  Bruno Haible  <bruno@clisp.org>
15914
15915         strtok_r: Improve idiom.
15916         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15917         AC_LIBOBJ is used.
15918
15919 2010-04-05  Bruno Haible  <bruno@clisp.org>
15920
15921         strdup: Improve idiom.
15922         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15923         AC_LIBOBJ is used.
15924         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15925         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15926         when AC_LIBOBJ is used.
15927
15928 2010-04-05  Bruno Haible  <bruno@clisp.org>
15929
15930         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15931         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15932         don't set REPLACE_MBSINIT to 1.
15933         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15934         don't set REPLACE_MBRTOWC to 1.
15935         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15936         exist, don't set REPLACE_MBSRTOWCS to 1.
15937         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15938         exist, don't set REPLACE_MBSNRTOWCS to 1.
15939         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15940         don't set REPLACE_WCRTOMB to 1.
15941         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15942         exist, don't set REPLACE_WCSRTOMBS to 1.
15943         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15944         exist, don't set REPLACE_WCSNRTOMBS to 1.
15945
15946 2010-04-05  Bruno Haible  <bruno@clisp.org>
15947
15948         ldexpl: Improve idiom.
15949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15950         make sure to set HAVE_DECL_LDEXPL to 0.
15951
15952 2010-04-05  Jim Meyering  <meyering@redhat.com>
15953
15954         xstrtol-tests: convert to use init.sh
15955         * modules/xstrtol-tests (Files): Add tests/init.sh.
15956         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15957         Use Exit, not exit.
15958         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15959
15960         atexit-tests: convert to use init.sh
15961         * modules/atexit-tests (Files): Add tests/init.sh.
15962         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15963         Use Exit, not exit.
15964         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15965
15966         init.sh: fix typo
15967         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15968
15969         init.sh: make it easier for a test script to write to the tty, ...
15970         when using automake's parallel-tests mode.
15971         * tests/init.sh (stderr_fileno_): Define overridable variable.
15972         (warn_): New function, to use it.
15973         (fail_, skip_, framework_failure_): Use warn_.
15974
15975 2010-04-04  Bruno Haible  <bruno@clisp.org>
15976
15977         btowc: Avoid warning.
15978         * lib/btowc.c: Include <stdlib.h>.
15979         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15980
15981 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15982             Bruno Haible  <bruno@clisp.org>
15983
15984         wchar: Port to NetBSD 1.5.
15985         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15986         * lib/wctype.in.h (WEOF): Likewise.
15987
15988 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15989             Bruno Haible  <bruno@clisp.org>
15990
15991         Port extended stdio to NetBSD 1.5.
15992         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15993         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15994         older.
15995
15996 2010-04-04  Bruno Haible  <bruno@clisp.org>
15997
15998         string: Remove unused substitution.
15999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16000         HAVE_DECL_STRERROR.
16001         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16002
16003 2010-04-04  Bruno Haible  <bruno@clisp.org>
16004
16005         strtod: Avoid a possible C++ test error.
16006         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16007         set REPLACE_STRTOD.
16008
16009 2010-04-04  Bruno Haible  <bruno@clisp.org>
16010
16011         strerror: Update documentation.
16012         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16013
16014 2010-04-04  Bruno Haible  <bruno@clisp.org>
16015
16016         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16017         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16018         _GL_CXXALIAS_SYS_CAST.
16019
16020 2010-04-04  Bruno Haible  <bruno@clisp.org>
16021
16022         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16023         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16024         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16025         REPLACE_FREXPL to 1.
16026         * doc/posix-functions/frexpl.texi: Update documentation.
16027
16028 2010-04-04  Bruno Haible  <bruno@clisp.org>
16029
16030         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16031         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16032
16033 2010-04-04  Bruno Haible  <bruno@clisp.org>
16034
16035         Implement nanosleep for native Windows.
16036         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16037
16038 2010-04-04  Bruno Haible  <bruno@clisp.org>
16039
16040         math: Fix some C++ test errors on Solaris 8.
16041         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16042
16043 2010-04-04  Bruno Haible  <bruno@clisp.org>
16044
16045         math: Fix some C++ test errors on Cygwin.
16046         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16047         truncl): Provide declaration if the system does not have it.
16048         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16049         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16050         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16051         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16052         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16053         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16054         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16055         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16056         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16057         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16058         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16059         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16060         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16061         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16062         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16063         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16065         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16066         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16067         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16068         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16069         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16070
16071 2010-04-04  Bruno Haible  <bruno@clisp.org>
16072
16073         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16074         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16075         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16076         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16077         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16078         * m4/isinf.m4 (gl_ISINF): Likewise.
16079         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16080
16081 2010-04-04  Bruno Haible  <bruno@clisp.org>
16082
16083         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16084         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16085
16086 2010-04-04  Bruno Haible  <bruno@clisp.org>
16087
16088         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16089         * modules/tmpfile (configure.ac): Update.
16090
16091         tmpfile: Fix C++ test error on mingw.
16092         * lib/stdio.in.h (tmpfile): New declaration.
16093         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16094         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16095         * modules/tmpfile (Depends-on): Add stdio.
16096         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16097         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16098         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16099         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16100         REPLACE_TMPFILE.
16101         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16102
16103 2010-04-04  Bruno Haible  <bruno@clisp.org>
16104
16105         ioctl: Fix C++ test error on mingw.
16106         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16107         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16108         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16109
16110 2010-04-03  Bruno Haible  <bruno@clisp.org>
16111
16112         wcwidth: Fix C++ test error on mingw.
16113         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16115         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16116
16117 2010-04-03  Bruno Haible  <bruno@clisp.org>
16118
16119         nanosleep: Fix C++ test error on mingw.
16120         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16121         * lib/time.in.h (nanosleep): Use modern idiom.
16122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16123         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16124         REPLACE_NANOSLEEP to 1.
16125         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16126         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16127
16128 2010-04-03  Bruno Haible  <bruno@clisp.org>
16129
16130         strptime: Fix C++ test error on mingw.
16131         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16132         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16133         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16134         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16135         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16136         not REPLACE_STRPTIME.
16137         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16138         REPLACE_STRPTIME.
16139
16140 2010-04-03  Bruno Haible  <bruno@clisp.org>
16141
16142         timegm: Fix C++ test error on mingw.
16143         * lib/time.in.h (timegm): Use modern idiom.
16144         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16145         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16146         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16147         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16148
16149 2010-04-03  Bruno Haible  <bruno@clisp.org>
16150
16151         timegm: Assume declaration if function exists.
16152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16153         if it exists. Don't clobber ac_cv_func_timegm.
16154
16155 2010-04-03  Bruno Haible  <bruno@clisp.org>
16156
16157         time_r: Fix C++ test error on mingw.
16158         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16159         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16160         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16161         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16162         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16163
16164 2010-04-03  Bruno Haible  <bruno@clisp.org>
16165
16166         time_r: Minor updates.
16167         * modules/time_r (Description): Mention the provided functions.
16168         * lib/time_r.c: Don't include <string.h>.
16169         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16170         * doc/posix-functions/localtime_r.texi: Likewise.
16171
16172 2010-04-03  Bruno Haible  <bruno@clisp.org>
16173
16174         time: Fix regression introduced on 2010-03-08.
16175         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16176         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16177
16178 2010-04-03  Jim Meyering  <meyering@redhat.com>
16179
16180         maint.mk: don't silently disable project-specific syntax-check rules
16181         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16182         that they need to convert their project-specific syntax-check rules
16183         to use the new _sc_search_regexp.
16184
16185 2010-04-03  Bruno Haible  <bruno@clisp.org>
16186
16187         fchdir: Fix regression introduced on 2010-03-08.
16188         * lib/unistd.in.h (fchdir): Fix declaration.
16189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16191         REPLACE_FCHDIR.
16192         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16193         REPLACE_FCHDIR.
16194
16195 2010-04-03  Bruno Haible  <bruno@clisp.org>
16196
16197         getpagesize: Fix C++ test error on mingw.
16198         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16199         system does not declare the function.
16200         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16201         declared.
16202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16203         HAVE_DECL_GETPAGESIZE.
16204         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16205
16206 2010-04-03  Bruno Haible  <bruno@clisp.org>
16207
16208         stdio: Make C++ tests work on mingw.
16209         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16210         does not declare the function.
16211
16212 2010-04-03  Bruno Haible  <bruno@clisp.org>
16213
16214         ftello: Fix C++ test error on mingw.
16215         * lib/stdio.in.h (ftello): Use modern idiom.
16216         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16217         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16218         is missing and that it needs to be replaced.
16219         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16221         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16222
16223 2010-04-03  Bruno Haible  <bruno@clisp.org>
16224
16225         fseeko: Fix C++ test error on mingw.
16226         * lib/stdio.in.h (fseeko): Use modern idiom.
16227         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16229         is missing and that it needs to be replaced.
16230         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16232         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16233
16234 2010-04-03  Bruno Haible  <bruno@clisp.org>
16235
16236         mkstemp: Fix C++ test error on mingw.
16237         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16239         function is missing and that it needs to be replaced.
16240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16241         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16242
16243 2010-04-03  Bruno Haible  <bruno@clisp.org>
16244
16245         stpncpy: Fix C++ test error on mingw.
16246         * lib/string.in.h (stpncpy): Use modern idiom.
16247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16248         function is missing and that it needs to be replaced.
16249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16250         REPLACE_STPNCPY.
16251         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16252
16253 2010-04-03  Bruno Haible  <bruno@clisp.org>
16254
16255         sys_stat: Fix C++ test error on mingw.
16256         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16257         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16258
16259 2010-04-03  Bruno Haible  <bruno@clisp.org>
16260
16261         pty: Update doc.
16262         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16263
16264 2010-04-03  Bruno Haible  <bruno@clisp.org>
16265
16266         unistd: Fix C++ test error on mingw.
16267         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16268
16269 2010-04-03  Bruno Haible  <bruno@clisp.org>
16270
16271         Update doc regarding mingw.
16272         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16273         * doc/glibc-functions/login_tty.texi: Likewise.
16274         * doc/glibc-functions/forkpty.texi: Likewise.
16275
16276 2010-04-03  Bruno Haible  <bruno@clisp.org>
16277
16278         stdlib: Avoid compilation failure of c-strtold on mingw.
16279         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16280
16281 2010-04-03  Bruno Haible  <bruno@clisp.org>
16282
16283         locale: Make C++ tests work on Cygwin and mingw.
16284         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16285         cannot provide the function.
16286         Reported by Simon Josefsson.
16287
16288 2010-04-03  Bruno Haible  <bruno@clisp.org>
16289
16290         localename: Port to MacOS X 10.6.
16291         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16292         memory layout of the locales in MacOS X 10.6 as well.
16293         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16294
16295 2010-04-02  Bruno Haible  <bruno@clisp.org>
16296
16297         gnulib-tool: Ensure that long-running tests are executed last.
16298         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16299         running tests after the one for the other tests.
16300
16301 2010-04-02  Bruno Haible  <bruno@clisp.org>
16302
16303         gnulib-tool: Ensure the tests in the main directory are executed first.
16304         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16305         start with the current directory.
16306
16307 2010-04-02  Bruno Haible  <bruno@clisp.org>
16308
16309         Tests for module 'havelib', moved here from GNU gettext.
16310         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16311         modifications.
16312         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16313         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16314         with modifications.
16315         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16316         modifications.
16317         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16318         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16319         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16320         with modifications.
16321         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16322         with modifications.
16323         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16324         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16325         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16326         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16327         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16328         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16329         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16330         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16331         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16332         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16333         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16334         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16335         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16336         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16337         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16338         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16339         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16340         with modifications.
16341         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16342         with modifications.
16343         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16344         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16345         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16346         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16347         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16348         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16349         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16350         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16351         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16352         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16353         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16354         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16355         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16356         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16357         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16358         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16359         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16360         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16361         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16362         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16363         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16364         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16365         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16366         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16367         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16368         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16369         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16370         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16371         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16372         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16373         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16374         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16375         * tests/havelib/rpathx/rpathx.c: New file, from
16376         gettext/autoconf-lib-link.
16377         * tests/havelib/rpathx/Makefile.am: New file, from
16378         gettext/autoconf-lib-link.
16379         * tests/havelib/rpathx/configure.ac: New file, from
16380         gettext/autoconf-lib-link with modifications.
16381         * tests/havelib/rpathy/rpathy.c: New file, from
16382         gettext/autoconf-lib-link.
16383         * tests/havelib/rpathy/Makefile.am: New file, from
16384         gettext/autoconf-lib-link.
16385         * tests/havelib/rpathy/configure.ac: New file, from
16386         gettext/autoconf-lib-link with modifications.
16387         * tests/havelib/rpathz/rpathz.c: New file, from
16388         gettext/autoconf-lib-link.
16389         * tests/havelib/rpathz/Makefile.am: New file, from
16390         gettext/autoconf-lib-link.
16391         * tests/havelib/rpathz/configure.ac: New file, from
16392         gettext/autoconf-lib-link with modifications.
16393         * tests/havelib/rpathlx/usex.c: New file, from
16394         gettext/autoconf-lib-link.
16395         * tests/havelib/rpathlx/Makefile.am: New file, from
16396         gettext/autoconf-lib-link.
16397         * tests/havelib/rpathlx/configure.ac: New file, from
16398         gettext/autoconf-lib-link with modifications.
16399         * tests/havelib/rpathly/usey.c: New file, from
16400         gettext/autoconf-lib-link.
16401         * tests/havelib/rpathly/Makefile.am: New file, from
16402         gettext/autoconf-lib-link.
16403         * tests/havelib/rpathly/configure.ac: New file, from
16404         gettext/autoconf-lib-link with modifications.
16405         * tests/havelib/rpathlz/usez.c: New file, from
16406         gettext/autoconf-lib-link.
16407         * tests/havelib/rpathlz/Makefile.am: New file, from
16408         gettext/autoconf-lib-link.
16409         * tests/havelib/rpathlz/configure.ac: New file, from
16410         gettext/autoconf-lib-link with modifications.
16411         * tests/havelib/rpathlyx/usey.c: New file, from
16412         gettext/autoconf-lib-link.
16413         * tests/havelib/rpathlyx/Makefile.am: New file, from
16414         gettext/autoconf-lib-link.
16415         * tests/havelib/rpathlyx/configure.ac: New file, from
16416         gettext/autoconf-lib-link with modifications.
16417         * tests/havelib/rpathlzyx/usez.c: New file, from
16418         gettext/autoconf-lib-link.
16419         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16420         gettext/autoconf-lib-link.
16421         * tests/havelib/rpathlzyx/configure.ac: New file, from
16422         gettext/autoconf-lib-link with modifications.
16423         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16424         with modifications.
16425
16426 2010-04-02  Bruno Haible  <bruno@clisp.org>
16427
16428         gnulib-tool: Create distributed built sources also for the tests.
16429         * gnulib-tool (func_create_testdir): Also generate distributed built
16430         sources in the tests directory.
16431
16432 2010-04-02  Bruno Haible  <bruno@clisp.org>
16433
16434         gnulib-tool: Obey user's environment variables.
16435         * gnulib-tool (func_create_testdir): When creating built sources,
16436         respect the environment variables for autoconf, automake, etc. given by
16437         the user.
16438
16439 2010-04-02  Bruno Haible  <bruno@clisp.org>
16440
16441         gnulib-tool: Provide the value of --m4-base to modules.
16442         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16443         of gl_m4_base.
16444
16445 2010-04-02  Eric Blake  <eblake@redhat.com>
16446
16447         maint.mk: fix some fallout
16448         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16449         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16450
16451 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16452
16453         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16454         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16455         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16456         (sc_cast_of_x_alloc_return_value): Likewise.
16457         (sc_cast_of_alloca_return_value): Likewise.
16458         (sc_space_tab): Likewise.
16459         (sc_prohibit_atoi_atof): Likewise.
16460         (sc_prohibit_magic_number_exit): Likewise.
16461         (sc_error_exit_success): Likewise.
16462         (sc_file_system): Likewise.
16463         (sc_prohibit_have_config_h): Likewise.
16464         (sc_require_config_h): Likewise.
16465         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16466         (sc_obsolete_symbols): Likewise.
16467         (sc_changelog): Likewise.
16468         (sc_program_name): Likewise.
16469         (sc_the_the): Likewise.
16470         (sc_trailing_blank): Likewise.
16471         (sc_two_space_separator_in_usage): Likewise.
16472         (sc_useless_cpp_parens): Likewise.
16473         (sc_GPL_version): Likewise.
16474         (sc_GFDL_version): Likewise.
16475         (sc_texinfo_acronym): Likewise.
16476         (sc_prohibit_cvs_keyword): Likewise.
16477         (sc_prohibit_stat_st_blocks): Likewise.
16478         (sc_prohibit_S_IS_definition): Likewise.
16479         (sc_redundant_const): Likewise.
16480         (sc_makefile_TAB_only_indentation): Likewise.
16481         (sc_m4_quote_check): Likewise.
16482         (sc_makefile_path_separator_check): Likewise.
16483         (sc_copyright_check): Likewise.
16484         (sc_Wundef_boolean): Likewise.
16485         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16486
16487         maint.mk: match 0 or more whitespace-before-function-call '('
16488         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16489         that have zero or two-and-more spaces between the function name
16490         and the open parenthesis.
16491         (sc_error_message_warn_fatal): Likewise.
16492         (sc_error_message_uppercase): Likewise.
16493         (sc_error_message_period): Likewise.
16494
16495 2010-03-31  Eric Blake  <eblake@redhat.com>
16496
16497         maint.mk: check for [ as well as test
16498         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16499         Based on a libvirt report by Matthias Bolte.
16500
16501         gnumakefile: don't squelch _version output
16502         * top/GNUmakefile (_version): Create one-shot dependency rather
16503         than using $(shell) when version must be regenerated.
16504         (_autoreconf): Run verbosely, by default.
16505
16506         sys_time: avoid compiler warnings
16507         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16508         unconditional, fixing regression from 2010-03-29.
16509         Reported by Simon Josefsson.
16510
16511 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16512
16513         maint.mk: s/_header_without_use/_sc_header_without_use/
16514         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16515         (sc_prohibit_assert_without_use): Use the new name.
16516         (sc_prohibit_close_stream_without_use): Likewise.
16517         (sc_prohibit_getopt_without_use): Likewise.
16518         (sc_prohibit_quotearg_without_use): Likewise.
16519         (sc_prohibit_quote_without_use): Likewise.
16520         (sc_prohibit_long_options_without_use): Likewise.
16521         (sc_prohibit_inttostr_without_use): Likewise.
16522         (sc_prohibit_ignore_value_without_use): Likewise.
16523         (sc_prohibit_error_without_use): Likewise.
16524         (sc_prohibit_xalloc_without_use): Likewise.
16525         (sc_prohibit_hash_without_use): Likewise.
16526         (sc_prohibit_hash_pjw_without_use): Likewise.
16527         (sc_prohibit_safe_read_without_use): Likewise.
16528         (sc_prohibit_argmatch_without_use): Likewise.
16529         (sc_prohibit_canonicalize_without_use): Likewise.
16530         (sc_prohibit_root_dev_ino_without_use): Likewise.
16531         (sc_prohibit_openat_without_use): Likewise.
16532         (sc_prohibit_c_ctype_without_use): Likewise.
16533         (sc_prohibit_signal_without_use): Likewise.
16534         (sc_prohibit_intprops_without_use): Likewise.
16535
16536 2010-03-30  Eric Blake  <eblake@redhat.com>
16537
16538         maint: improve module indicators
16539         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16540         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16541         columns, and avoid extra macro expansion.
16542
16543         fdopendir: work around FreeBSD bug
16544         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16545         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16546         * modules/dirent (Makefile.am): Substitute it.
16547         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16548         declaration.
16549         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16550         fix.
16551         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16552
16553 2010-03-29  Bruno Haible  <bruno@clisp.org>
16554
16555         Emit #pragma system_header after the inclusion guard, not before.
16556         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16557         guard that spans the entire file, not before. This enables an
16558         optimization in GCC's preprocessor.
16559         * lib/ctype.in.h: Likewise.
16560         * lib/dirent.in.h: Likewise.
16561         * lib/errno.in.h: Likewise.
16562         * lib/float.in.h: Likewise.
16563         * lib/getopt.in.h: Likewise.
16564         * lib/iconv.in.h: Likewise.
16565         * lib/langinfo.in.h: Likewise.
16566         * lib/locale.in.h: Likewise.
16567         * lib/math.in.h: Likewise.
16568         * lib/netdb.in.h: Likewise.
16569         * lib/netinet_in.in.h: Likewise.
16570         * lib/pty.in.h: Likewise.
16571         * lib/sched.in.h: Likewise.
16572         * lib/se-selinux.in.h: Likewise.
16573         * lib/search.in.h: Likewise.
16574         * lib/spawn.in.h: Likewise.
16575         * lib/stdarg.in.h: Likewise.
16576         * lib/stdint.in.h: Likewise.
16577         * lib/string.in.h: Likewise.
16578         * lib/strings.in.h: Likewise.
16579         * lib/sys_file.in.h: Likewise.
16580         * lib/sys_ioctl.in.h: Likewise.
16581         * lib/sys_time.in.h: Likewise.
16582         * lib/sys_times.in.h: Likewise.
16583         * lib/sys_utsname.in.h: Likewise.
16584         * lib/sys_wait.in.h: Likewise.
16585         * lib/sysexits.in.h: Likewise.
16586         * lib/wctype.in.h: Likewise.
16587
16588 2010-03-28  James Youngman  <jay@gnu.org>
16589
16590         save-cwd: don't leak a file descriptor when the caller execs.
16591         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16592         saved file descriptor.
16593         * modules/save-cwd (Depends-on): Depend on cloexec.
16594
16595 2010-03-29  Bruno Haible  <bruno@clisp.org>
16596
16597         Remove vestiges of fts-lgpl module.
16598         * lib/fts_.h: Assume GNULIB_FTS is 1.
16599         * lib/fts.c: Likewise.
16600         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16601
16602 2010-03-28  Bruno Haible  <bruno@clisp.org>
16603
16604         Fix definition of tests witness macro.
16605         * gnulib-tool (func_import): Fix definition of witness macro.
16606
16607 2010-03-28  Bruno Haible  <bruno@clisp.org>
16608
16609         Fix ioctl's protoype on glibc systems.
16610         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16611         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16612         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16613         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16614         signature. If not, arrange to replace the ioctl function.
16615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16616         REPLACE_IOCTL.
16617         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16618         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16619         Reported by Ludovic Courtès <ludo@gnu.org>.
16620
16621 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16622
16623         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16624         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16625         made it so grep -r --include=GLOB* ... did not work.
16626
16627 2010-03-26  Jim Meyering  <meyering@redhat.com>
16628             Eric Blake  <eblake@redhat.com>
16629
16630         maint.mk: prohibit use of test's -o and -a operators
16631         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16632
16633 2010-03-28  Bruno Haible  <bruno@clisp.org>
16634
16635         Remove unused GNULIB_XYZ macro definitions.
16636         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16637         invocation.
16638
16639 2010-03-28  Bruno Haible  <bruno@clisp.org>
16640
16641         Mark privileged tests modules.
16642         * modules/idpriv-drop-tests (Status): New section.
16643         * modules/idpriv-droptemp-tests (Status): New section.
16644
16645 2010-03-28  Bruno Haible  <bruno@clisp.org>
16646
16647         Split C++ tests into separate tests modules.
16648         * modules/dirent-c++-tests: New file, extracted from
16649         modules/dirent-tests.
16650         * modules/dirent-tests: Depend on it.
16651         * modules/fcntl-h-c++-tests: New file, extracted from
16652         modules/fcntl-h-tests.
16653         * modules/fcntl-h-tests: Depend on it.
16654         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16655         * modules/glob-tests: Depend on it.
16656         * modules/iconv-h-c++-tests: New file, extracted from
16657         modules/iconv-h-tests.
16658         * modules/iconv-h-tests: Depend on it.
16659         * modules/langinfo-c++-tests: New file, extracted from
16660         modules/langinfo-tests.
16661         * modules/langinfo-tests: Depend on it.
16662         * modules/locale-c++-tests: New file, extracted from
16663         modules/locale-tests.
16664         * modules/locale-tests: Depend on it.
16665         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16666         * modules/math-tests: Depend on it.
16667         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16668         * modules/pty-tests: Depend on it.
16669         * modules/search-c++-tests: New file, extracted from
16670         modules/search-tests.
16671         * modules/search-tests: Depend on it.
16672         * modules/signal-c++-tests: New file, extracted from
16673         modules/signal-tests.
16674         * modules/signal-tests: Depend on it.
16675         * modules/spawn-c++-tests: New file, extracted from
16676         modules/spawn-tests.
16677         * modules/spawn-tests: Depend on it.
16678         * modules/stdio-c++-tests: New file, extracted from
16679         modules/stdio-tests.
16680         * modules/stdio-tests: Depend on it.
16681         * modules/stdlib-c++-tests: New file, extracted from
16682         modules/stdlib-tests.
16683         * modules/stdlib-tests: Depend on it.
16684         * modules/string-c++-tests: New file, extracted from
16685         modules/string-tests.
16686         * modules/string-tests: Depend on it.
16687         * modules/sys_ioctl-c++-tests: New file, extracted from
16688         modules/sys_ioctl-tests.
16689         * modules/sys_ioctl-tests: Depend on it.
16690         * modules/sys_select-c++-tests: New file, extracted from
16691         modules/sys_select-tests.
16692         * modules/sys_select-tests: Depend on it.
16693         * modules/sys_socket-c++-tests: New file, extracted from
16694         modules/sys_socket-tests.
16695         * modules/sys_socket-tests: Depend on it.
16696         * modules/sys_stat-c++-tests: New file, extracted from
16697         modules/sys_stat-tests.
16698         * modules/sys_stat-tests: Depend on it.
16699         * modules/sys_time-c++-tests: New file, extracted from
16700         modules/sys_time-tests.
16701         * modules/sys_time-tests: Depend on it.
16702         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16703         * modules/time-tests: Depend on it.
16704         * modules/unistd-c++-tests: New file, extracted from
16705         modules/unistd-tests.
16706         * modules/unistd-tests: Depend on it.
16707         * modules/wchar-c++-tests: New file, extracted from
16708         modules/wchar-tests.
16709         * modules/wchar-tests: Depend on it.
16710         * modules/wctype-c++-tests: New file, extracted from
16711         modules/wctype-tests.
16712         * modules/wctype-tests: Depend on it.
16713         Reported by Simon Josefsson.
16714
16715 2010-03-28  Bruno Haible  <bruno@clisp.org>
16716
16717         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16718         * gnulib-tool (func_exists_module): New function, extracted from
16719         func_verify_module.
16720         (func_verify_module): Use it.
16721         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16722         'foo' only if 'foo' exists.
16723         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16724         module.
16725
16726 2010-03-28  Bruno Haible  <bruno@clisp.org>
16727
16728         gnulib-tool: Add support for special categories of tests.
16729         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16730         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16731         (func_usage): Document them.
16732         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16733         inc_unportable_tests, inc_all_tests): New variables.
16734         (func_acceptable): Consider these variables.
16735         (func_modules_transitive_closure): Make it work when the 'Status' field
16736         consists of multiple words.
16737         (func_import): Store and restore the values of inc_cxx_tests,
16738         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16739         inc_all_tests in gnulib-comp.m4.
16740         (func_create_testdir): Set inc_all_tests to true.
16741         * doc/gnulib.texi (Extra tests modules): New section.
16742         Suggested by Jim Meyering.
16743
16744 2010-03-28  Bruno Haible  <bruno@clisp.org>
16745
16746         ansi-c++-opt: Allow turning off the C++ build by default.
16747         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16748         gl_CXX_CHOICE_DEFAULT_NO is defined.
16749         Requested by Eric Blake.
16750
16751 2010-03-28  Bruno Haible  <bruno@clisp.org>
16752
16753         unistd: Avoid #define replacements in C++ mode.
16754         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16755         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16756         setsockopt, shutdown, select): In C++, attach a warning to the function
16757         if possible, rather than #defining the symbol to a dysfunctional alias.
16758         Reported by John W. Eaton <jwe@gnu.org>.
16759
16760 2010-03-28  Bruno Haible  <bruno@clisp.org>
16761
16762         Fix link errors on mingw.
16763         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16764         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16765         $(LIBSOCKET).
16766         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16767         $(LIBSOCKET).
16768
16769 2010-03-28  Bruno Haible  <bruno@clisp.org>
16770             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16771
16772         lib-ignore: Determine different options for different compilers.
16773         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16774         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16775         Add comments.
16776         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16777         * NEWS: Mention the change.
16778
16779 2010-03-27  Bruno Haible  <bruno@clisp.org>
16780
16781         Remove unused GNULIB_XYZ macro definitions.
16782         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16783         * modules/fseek (configure.ac): Likewise.
16784         * modules/ioctl (configure.ac): Likewise.
16785         * modules/open (configure.ac): Likewise.
16786         * modules/stdlib-safer (configure.ac): Likewise.
16787
16788 2010-03-27  Bruno Haible  <bruno@clisp.org>
16789
16790         Add a remark about certain modules.
16791         * modules/malloc (Comment): New section.
16792         * modules/realloc (Comment): Likewise.
16793         * modules/sigpipe (Comment): Likewise.
16794
16795 2010-03-27  Bruno Haible  <bruno@clisp.org>
16796
16797         Resolve conflict between the two kinds of module indicators.
16798         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16799         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16800         * modules/canonicalize (configure.ac): Invoke
16801         gl_MODULE_INDICATOR_FOR_TESTS.
16802         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16803         GNULIB_XYZ.
16804         * tests/test-dirent-c++.cc: Likewise.
16805         * tests/test-dirent-safer.c: Likewise.
16806         * tests/test-dup2.c: Likewise.
16807         * tests/test-fchdir.c: Likewise.
16808         * tests/test-fcntl-h-c++.cc: Likewise.
16809         * tests/test-getopt.c: Likewise.
16810         * tests/test-getopt.h: Likewise.
16811         * tests/test-langinfo-c++.cc: Likewise.
16812         * tests/test-locale-c++.cc: Likewise.
16813         * tests/test-math-c++.cc: Likewise.
16814         * tests/test-pty-c++.cc: Likewise.
16815         * tests/test-search-c++.cc: Likewise.
16816         * tests/test-signal-c++.cc: Likewise.
16817         * tests/test-spawn-c++.cc: Likewise.
16818         * tests/test-stdio-c++.cc: Likewise.
16819         * tests/test-stdlib-c++.cc: Likewise.
16820         * tests/test-string-c++.cc: Likewise.
16821         * tests/test-sys_ioctl-c++.cc: Likewise.
16822         * tests/test-sys_select-c++.cc: Likewise.
16823         * tests/test-sys_socket-c++.cc: Likewise.
16824         * tests/test-sys_stat-c++.cc: Likewise.
16825         * tests/test-sys_time-c++.cc: Likewise.
16826         * tests/test-time-c++.cc: Likewise.
16827         * tests/test-unistd-c++.cc: Likewise.
16828         * tests/test-wchar-c++.cc: Likewise.
16829         * tests/uninorm/test-u8-nfc.c: Likewise.
16830         * tests/uninorm/test-u8-nfd.c: Likewise.
16831         * tests/uninorm/test-u8-nfkc.c: Likewise.
16832         * tests/uninorm/test-u8-nfkd.c: Likewise.
16833         * tests/uninorm/test-u16-nfc.c: Likewise.
16834         * tests/uninorm/test-u16-nfd.c: Likewise.
16835         * tests/uninorm/test-u16-nfkc.c: Likewise.
16836         * tests/uninorm/test-u16-nfkd.c: Likewise.
16837         * tests/uninorm/test-u32-nfc.c: Likewise.
16838         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16839         * tests/uninorm/test-u32-nfd.c: Likewise.
16840         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16841         * tests/uninorm/test-u32-nfkc.c: Likewise.
16842         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16843         * tests/uninorm/test-u32-nfkd.c: Likewise.
16844         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16845         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16846
16847 2010-03-27  Bruno Haible  <bruno@clisp.org>
16848
16849         Distinguish two kinds of module indicators.
16850         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16851         gl_MODULE_INDICATOR.
16852         (gl_MODULE_INDICATOR): New macro.
16853         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16854         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16855         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16856         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16857         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16858         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16859         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16860         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16861         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16862         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16863         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16864         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16865         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16867         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16868         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16869         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16870         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16871         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16872         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16873         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16874         * modules/cloexec (configure.ac): Likewise.
16875         * modules/getopt-gnu (configure.ac): Likewise.
16876         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16877         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16878         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16879         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16880
16881 2010-03-27  Bruno Haible  <bruno@clisp.org>
16882
16883         New module description field 'Comment'.
16884         * gnulib-tool: New option --extract-comment.
16885         (func_usage): Document it.
16886         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16887         (func_get_comment): New function.
16888         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16889
16890 2010-03-27  Bruno Haible  <bruno@clisp.org>
16891
16892         Addendum to 2010-02-07 commit.
16893         * gnulib-tool (func_usage): Document --extract-applicability option.
16894
16895 2010-03-27  Bruno Haible  <bruno@clisp.org>
16896
16897         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16898         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16899         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16900         rather than link errors.
16901
16902 2010-03-27  Bruno Haible  <bruno@clisp.org>
16903
16904         Avoid side effects from tests-related modules on the compilation of lib.
16905         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16906         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16907         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16908         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16909         macro.
16910         (func_import): Define a witness macro. Assign it a value that depends
16911         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16912         tests-related modules.
16913         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16914         Reported by Jim Meyering.
16915
16916 2010-03-27  Bruno Haible  <bruno@clisp.org>
16917
16918         Factorize common .m4 code.
16919         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16920         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16921         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16922         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16923         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16924         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16925         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16926         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16927         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16928         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16929         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16930         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16931         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16932         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16933         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16934         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16935         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16936         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16937         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16938         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16939         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16940         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16941         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16942         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16943         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16944         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16945         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16946         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16947         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16948         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16949         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16950         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16951
16952 2010-03-27  Bruno Haible  <bruno@clisp.org>
16953
16954         Fix a compilation error on Cygwin with g++ >= 4.3.
16955         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16956         if it is undefined or if we alias it to chmod.
16957         (lstat): Don't warn about the use of this function if it is undefined
16958         or if we alias it to stat.
16959         Reported by Simon Josefsson.
16960
16961 2010-03-27  Bruno Haible  <bruno@clisp.org>
16962
16963         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16964         * modules/getlogin (configure.ac): Update.
16965
16966         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16967         * modules/getlogin_r (configure.ac): Update.
16968
16969         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16971         * modules/inet_ntop (configure.ac): Update.
16972
16973         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16974         * modules/inet_pton (configure.ac): Update.
16975
16976         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16977         * modules/mbslen (configure.ac): Update.
16978
16979         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16980         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16981         * modules/forkpty (configure.ac): Update.
16982         * modules/openpty (configure.ac): Update.
16983
16984 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16985
16986         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16987         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16988
16989 2010-03-25  Eric Blake  <eblake@redhat.com>
16990
16991         maint: use pragma consistently across replacement headers
16992         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16993         * lib/dirent.in.h (system_header): Likewise.
16994         * lib/errno.in.h (system_header): Likewise.
16995         * lib/float.in.h (system_header): Likewise.
16996         * lib/getopt.in.h (system_header): Likewise.
16997         * lib/iconv.in.h (system_header): Likewise.
16998         * lib/inttypes.in.h (system_header): Likewise.
16999         * lib/langinfo.in.h (system_header): Likewise.
17000         * lib/locale.in.h (system_header): Likewise.
17001         * lib/math.in.h (system_header): Likewise.
17002         * lib/netdb.in.h (system_header): Likewise.
17003         * lib/netinet_in.in.h (system_header): Likewise.
17004         * lib/pty.in.h (system_header): Likewise.
17005         * lib/sched.in.h (system_header): Likewise.
17006         * lib/se-selinux.in.h (system_header): Likewise.
17007         * lib/search.in.h (system_header): Likewise.
17008         * lib/spawn.in.h (system_header): Likewise.
17009         * lib/stdarg.in.h (system_header): Likewise.
17010         * lib/stdint.in.h (system_header): Likewise.
17011         * lib/string.in.h (system_header): Likewise.
17012         * lib/strings.in.h (system_header): Likewise.
17013         * lib/sys_file.in.h (system_header): Likewise.
17014         * lib/sys_ioctl.in.h (system_header): Likewise.
17015         * lib/sys_socket.in.h (system_header): Likewise.
17016         * lib/sys_times.in.h (system_header): Likewise.
17017         * lib/sys_utsname.in.h (system_header): Likewise.
17018         * lib/sys_wait.in.h (system_header): Likewise.
17019         * lib/sysexits.in.h (system_header): Likewise.
17020         * lib/unistd.in.h (system_header): Likewise.
17021         * lib/wctype.in.h (system_header): Likewise.
17022
17023         arpa/inet: fix mingw compilation warning
17024         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17025         Reported by Matthew Bolte.
17026
17027 2010-03-25  Bruno Haible  <bruno@clisp.org>
17028
17029         Avoid collision between gnulib wrapper and libintl wrapper.
17030         * lib/printf.c (printf): Don't define if a printf wrapper is already
17031         defined in intl/printf.c.
17032         Reported by Michel Boaventura <michel@michelboaventura.com>.
17033
17034 2010-03-25  Bruno Haible  <bruno@clisp.org>
17035
17036         Use ANSI C.
17037         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17038
17039 2010-03-25  Bruno Haible  <bruno@clisp.org>
17040
17041         Minor formatting changes.
17042         * lib/acosl.c: Insert space before function argument list.
17043         * lib/argz.c: Likewise.
17044         * lib/asinl.c: Likewise.
17045         * lib/expl.c: Likewise.
17046         * lib/gen-uni-tables.c: Likewise.
17047         * lib/gettext.h: Likewise.
17048         * lib/glthread/lock.h: Likewise.
17049         * lib/tanl.c: Likewise.
17050         * lib/uniname/uniname.c: Likewise.
17051         * tests/test-idpriv-drop.c: Likewise.
17052         * tests/test-idpriv-droptemp.c: Likewise.
17053         * tests/test-lock.c: Likewise.
17054         * tests/test-tls.c: Likewise.
17055         * lib/argp-help.c: Insert space before function-like macro argument
17056         list.
17057         * lib/memcmp.c: Likewise.
17058         * tests/test-base64.c: Likewise.
17059         * lib/localename.c: Insert space before sizeof's argument list.
17060         * lib/safe-alloc.h: Likewise.
17061         * lib/file-set.h: Insert space before macro argument list.
17062         * tests/test-argp.c: Likewise.
17063         * lib/argp-namefrob.h: Insert space before function parameter list.
17064         * lib/getaddrinfo.c: Likewise.
17065         * lib/netdb.in.h: Likewise.
17066         * lib/parse-duration.h: Likewise.
17067         * lib/parse-duration.c: Likewise.
17068         * lib/poll.c: Likewise.
17069         * lib/select.c: Likewise.
17070         * lib/trim.h: Likewise.
17071         * tests/test-usleep.c: Likewise.
17072         * lib/ldexpl.c: Insert space before function parameter list and before
17073         function argument list.
17074         * lib/logl.c: Likewise.
17075         * lib/sqrtl.c: Likewise.
17076         * lib/trim.c: Likewise.
17077         * lib/cosl.c: Use GNU style indentation. Insert space before function
17078         argument list.
17079         * lib/sinl.c: Likewise.
17080         * lib/tsearch.c: Insert space after 'for'.
17081         Reported by Jim Meyering.
17082
17083 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17084
17085         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17086         config header before grepping, as it's not present before
17087         autoreconf/configure are run.  Reported by Simon Josefsson.
17088
17089 2010-03-23  Bruno Haible  <bruno@clisp.org>
17090
17091         pt_chown: Make it work with automake < 1.11.
17092         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17093         Reported by Simon Josefsson.
17094
17095 2010-03-23  Bruno Haible  <bruno@clisp.org>
17096
17097         pt_chown: Don't depend on GPLed modules.
17098         * lib/pt_chown.c: Don't include idpriv.h.
17099         (main): Don't drop privileges.
17100         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17101         Reported by Simon Josefsson.
17102
17103 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17104
17105         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17106         suggestions from karl@freefriends.org (Karl Berry).
17107
17108 2010-03-22  Eric Blake  <eblake@redhat.com>
17109
17110         gethostname: further tweaks
17111         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17112         are overriding gethostname.
17113         Suggested by Bruno Haible.
17114
17115 2010-03-21  Bruno Haible  <bruno@clisp.org>
17116
17117         Fix comments.
17118         * lib/forkpty.c (rpl_forkpty): Fix comment.
17119         * lib/openpty.c (rpl_openpty): Likewise.
17120         Reported by Eric Blake.
17121
17122 2010-03-22  Eric Blake  <eblake@redhat.com>
17123
17124         gethostname: fix build on mingw
17125         * lib/unistd.in.h (includes): Work around fact that mingw
17126         <winsock2.h> re-includes <unistd.h>, by avoiding any
17127         redeclarations if we are being included by <winsock2.h>.
17128         Reported by Matthias Bolte.
17129
17130 2010-03-21  Bruno Haible  <bruno@clisp.org>
17131
17132         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17133         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17134         modifications.
17135         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17136         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17137         provide the replacement.
17138         * modules/forkpty (Depends-on): Add openpty, login_tty.
17139         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17140         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17141         * doc/glibc-functions/forkpty.texi: More supported platforms.
17142         * config/srclist.txt: Add forkpty.c (commented).
17143
17144 2010-03-21  Bruno Haible  <bruno@clisp.org>
17145
17146         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17147         (Makefile.am): Verify that PTY_LIB is defined.
17148
17149         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17150
17151 2010-03-21  Bruno Haible  <bruno@clisp.org>
17152
17153         Tests for module 'login_tty'.
17154         * modules/login_tty-tests: New file.
17155         * tests/test-login_tty.c: New file.
17156
17157         New module 'login_tty'.
17158         * lib/login_tty.c: New file.
17159         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17160         * modules/login_tty: New file.
17161         * doc/glibc-functions/login_tty.texi: Mention the new module.
17162
17163 2010-03-21  Bruno Haible  <bruno@clisp.org>
17164
17165         login_tty: Documentation.
17166         * doc/glibc-functions/login_tty.texi: New file.
17167         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17168
17169 2010-03-21  Bruno Haible  <bruno@clisp.org>
17170
17171         pty: Consistent macro naming.
17172         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17173         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17174         * modules/pty (configure.ac): Update.
17175
17176 2010-03-21  Bruno Haible  <bruno@clisp.org>
17177
17178         Tests for openpty: Make stricter.
17179         * tests/test-openpty.c (main): Add test of canonical processing and
17180         erase.
17181         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17182
17183         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17184         * lib/openpty.c (openpty): New replacement function.
17185         * lib/pty.in.h: Include <termios.h>.
17186         (openpty): Update declaration. Add comments.
17187         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17188         is not declared, arrange to provide the replacement. Check for _getpty
17189         and posix_openpt.
17190         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17191         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17192         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17193         * modules/pty-tests (test_pty_c___LDADD): New variable.
17194         * doc/glibc-functions/openpty.texi: More supported platforms.
17195
17196 2010-03-21  Bruno Haible  <bruno@clisp.org>
17197
17198         setenv: Tweaks.
17199         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17200         the test program.
17201         * doc/posix-functions/setenv.texi: Update platforms list.
17202
17203 2010-03-21  Bruno Haible  <bruno@clisp.org>
17204
17205         New module 'unlockpt'.
17206         * lib/unlockpt.c: New file, from glibc with modifications.
17207         * m4/unlockpt.m4: New file.
17208         * modules/unlockpt: New file.
17209         * lib/stdlib.in.h (unlockpt): New declaration.
17210         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17211         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17212         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17213         HAVE_UNLOCKPT.
17214         * doc/posix-functions/unlockpt.texi: Mention the new module.
17215         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17216         * config/srclist.txt: Add unlockpt.c (commented).
17217
17218 2010-03-21  Jim Meyering  <meyering@redhat.com>
17219
17220         maint.mk: prohibit inclusion of "intprops.h" without use
17221         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17222
17223 2010-03-21  Bruno Haible  <bruno@clisp.org>
17224
17225         New module 'grantpt'.
17226         * lib/grantpt.c: New file, from glibc with modifications.
17227         * m4/grantpt.m4: New file.
17228         * modules/grantpt: New file.
17229         * lib/stdlib.in.h (grantpt): New declaration.
17230         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17231         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17232         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17233         HAVE_GRANTPT.
17234         * doc/posix-functions/grantpt.texi: Mention the new module.
17235         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17236         * config/srclist.txt: Add grantpt.c (commented).
17237
17238 2010-03-21  Bruno Haible  <bruno@clisp.org>
17239
17240         New module 'pt_chown'.
17241         * lib/pt_chown.c: New file, from glibc with modifications.
17242         * lib/pty-private.h: New file, from glibc with modifications.
17243         * modules/pt_chown: New file.
17244         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17245
17246 2010-03-21  Bruno Haible  <bruno@clisp.org>
17247
17248         Tests for module 'ptsname'.
17249         * modules/ptsname-tests: New file.
17250         * tests/test-ptsname.c: New file.
17251
17252         New module 'ptsname'.
17253         * lib/ptsname.c: New file, from glibc with modifications.
17254         * m4/ptsname.m4: New file.
17255         * modules/ptsname: New file.
17256         * lib/stdlib.in.h (ptsname): New declaration.
17257         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17258         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17259         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17260         HAVE_PTSNAME.
17261         * doc/posix-functions/ptsname.texi: Mention the new module.
17262         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17263         * config/srclist.txt: Add ptsname.c (commented).
17264
17265 2010-03-21  Bruno Haible  <bruno@clisp.org>
17266
17267         Tests for module 'ttyname_r'.
17268         * modules/ttyname_r-tests: New file.
17269         * tests/test-ttyname_r.c: New file.
17270
17271         New module 'ttyname_r'.
17272         * lib/ttyname_r.c: New file.
17273         * m4/ttyname_r.m4: New file.
17274         * modules/ttyname_r: New file.
17275         * lib/unistd.in.h (ttyname_r): New declaration.
17276         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17277         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17278         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17279         HAVE_TTYNAME_R.
17280         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17281         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17282
17283 2010-03-20  Bruno Haible  <bruno@clisp.org>
17284
17285         signal: Undefine macro definitions in C++ mode.
17286         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17287         sigfillset): Undefine macro definitions from the system header in C++
17288         mode.
17289         Reported by John W. Eaton <jwe@gnu.org>.
17290
17291 2010-03-20  Bruno Haible  <bruno@clisp.org>
17292
17293         Ensure no #include statements inside extern "C" { ... }.
17294         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17295         contain #include statements.
17296         * lib/time.in.h: Likewise.
17297
17298 2010-03-20  Bruno Haible  <bruno@clisp.org>
17299
17300         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17301         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17302         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17303         Reported by John W. Eaton <jwe@gnu.org>.
17304
17305 2010-03-20  Bruno Haible  <bruno@clisp.org>
17306
17307         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17308         Reported by Jim Meyering.
17309
17310 2010-03-20  Bruno Haible  <bruno@clisp.org>
17311
17312         pipe: Set errno upon failure.
17313         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17314         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17315         errno value in error message.
17316
17317 2010-03-20  Bruno Haible  <bruno@clisp.org>
17318             Jim Meyering  <meyering@redhat.com>
17319
17320         lchown: Avoid "unused variable" warning.
17321         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17322
17323 2010-03-20  Bruno Haible  <bruno@clisp.org>
17324
17325         Work around unlink() bug on MacOS X 10.5.6.
17326         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17327         attempting to unlink a parent directory.
17328         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17329         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17330         activate for the replacement function.
17331         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17332
17333 2010-03-20  Bruno Haible  <bruno@clisp.org>
17334
17335         Fix link errors on Solaris 8.
17336         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17337         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17338
17339 2010-03-19  Jim Meyering  <meyering@redhat.com>
17340
17341         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17342         The _LIBC implementation of build_range_exp correctly honors the
17343         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17344         However, the non-_LIBC implementation would ignore that syntax-bit
17345         flag and return REG_ERANGE unconditionally.
17346         This change makes it honor that flag.
17347         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17348         Make two pointer parameters "const".
17349         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17350         (parse_bracket_exp): Update caller.
17351
17352         regex.m4: correct the reversed range endpoint ([b-a]) test
17353         * m4/regex.m4: When requiring that [b-a] evoke failure,
17354         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17355         test pass once again for x86-based systems.
17356
17357 2010-03-19  Bruno Haible  <bruno@clisp.org>
17358
17359         scandir: Fix link error on Solaris 8.
17360         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17361         macros.
17362
17363 2010-03-19  Bruno Haible  <bruno@clisp.org>
17364
17365         getusershell: Fix documentation.
17366         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17367         module.
17368         * doc/glibc-functions/setusershell.texi: Likewise.
17369
17370         getusershell: Provide declaration, missing on Solaris 9.
17371         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17372         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17373         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17374         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17376         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17377         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17378         HAVE_GETUSERSHELL.
17379         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17380
17381 2010-03-19  Bruno Haible  <bruno@clisp.org>
17382
17383         wctype: Provide iswblank function.
17384         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17385         exists and is fine.
17386         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17387         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17388         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17389         * doc/posix-functions/iswblank.texi: Update.
17390
17391 2010-03-19  Bruno Haible  <bruno@clisp.org>
17392
17393         Tests of module 'pty' in C++ mode.
17394         * modules/pty-tests: New file.
17395         * tests/test-pty-c++.cc: New file.
17396         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17397
17398 2010-03-19  Eric Blake  <eblake@redhat.com>
17399
17400         logb: fix documentation
17401         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17402         1.5 declaration bug.
17403
17404         forkpty, openpty: prefer glibc's const-safe prototype
17405         * lib/forkpty.c (rpl_forkpty): New file.
17406         * lib/openpty.c (rpl_openpty): Likewise.
17407         * modules/forkpty (Files): Distribute it.
17408         * modules/openpty (Files): Likewise.
17409         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17410         check...
17411         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17412         replacement for for non-const BSD signature.
17413         * modules/pty (Makefile.am): Substitute witnesses.
17414         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17415         * tests/test-forkpty.c: Update signature check.
17416         * tests/test-openpty.c: Likewise.
17417         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17418         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17419
17420         forkpty, openpty: split functions into new modules
17421         * modules/pty (Makefile.am): Substitute new witnesses.
17422         (Libraries): Move library detection...
17423         * modules/forkpty: ...into new module.
17424         * modules/openpty: Another new module.
17425         * modules/pty-tests: Rename and split...
17426         * modules/forkpty-tests: ...to this...
17427         * modules/openpty-tests: ...and this.
17428         * tests/test-pty.c: Rename and split...
17429         * tests/test-forkpty.c: ...to this...
17430         * tests/test-openpty.c: ...and this.
17431         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17432         (gl_PTY): Split library searching...
17433         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17434         (gl_FORKPTY, gl_OPENPTY): New macros.
17435         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17436         * NEWS: Mention the split.
17437         * MODULES.html.sh (Misc): Document the modules.
17438         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17439         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17440
17441         pty: improve replacement header
17442         * lib/pty.in.h: New file.
17443         * modules/pty (Files): Ship it.
17444         (Makefile.am): Always build replacement.
17445         * m4/pty.m4: Rename...
17446         * m4/pty_h.m4: ...to this.
17447         (gl_PTY): Modernize setting of witness macros; update check of
17448         forkpty to take proper advantage of cache.
17449         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17450
17451         getopt: avoid compiler warning
17452         * lib/getopt.c (attribute_hidden): Remove unused macro.
17453
17454 2010-03-18  Bruno Haible  <bruno@clisp.org>
17455
17456         Fix link errors on Solaris 8.
17457         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17458         * modules/search-tests (test_search_c___LDADD): Likewise.
17459         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17460         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17461         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17462         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17463         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17464         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17465         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17466
17467 2010-03-18  Bruno Haible  <bruno@clisp.org>
17468
17469         Fix bug introduced on 2010-03-14.
17470         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17471         (gl_SPAWN_H): Require it.
17472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17473         Reported by Simon Josefsson.
17474
17475 2010-03-18  Bruno Haible  <bruno@clisp.org>
17476
17477         Fix typo introduced on 2009-12-31.
17478         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17479         posix_spawn_file_actions_adddup2.
17480
17481 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17482         and Eric Blake  <eblake@redhat.com>
17483
17484         test-vc-list-files-git: make more robust
17485         * tests/test-vc-list-files-git.sh: Unset problematic environment
17486         variables.  Chain commands together.
17487
17488 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17489
17490         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17491         `AC_CHECK_DECL' invocation.
17492
17493 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17494
17495         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17496         appears before executable statements. Suggested by Petr Sumbera
17497         <Petr.Sumbera@Sun.COM>.
17498
17499 2010-03-14  Bruno Haible  <bruno@clisp.org>
17500
17501         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17502         portability problems. Instead use a simpler test.
17503         (main): Check that invalid arguments are rejected only on Linux.
17504
17505 2010-03-14  Bruno Haible  <bruno@clisp.org>
17506
17507         Fix bug introduced on 2009-12-31.
17508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17509         gl_PREREQ_SYS_H_WINSOCK2 always.
17510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17511         SYS_SOCKET_H variable.
17512         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17513         Update comments.
17514         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17515         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17516         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17518         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17519
17520 2010-03-14  Bruno Haible  <bruno@clisp.org>
17521
17522         Fix values returned by sinl, cosl.
17523         * lib/trigl.h: Add specification comments.
17524         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17525         that combines the values from the precomputed table with the values of
17526         the Chebyshev polynomials.
17527
17528 2010-03-14  Bruno Haible  <bruno@clisp.org>
17529
17530         Fix compilation error when modules 'posix_spawn[p]' are not used.
17531         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17533
17534 2010-03-14  Bruno Haible  <bruno@clisp.org>
17535
17536         Fix compilation error on mingw when module 'time_r' is not used.
17537         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17538         is 1.
17539         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17540         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17541         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17542         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17543
17544 2010-03-14  Bruno Haible  <bruno@clisp.org>
17545
17546         Fix compilation error with Sun C.
17547         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17548         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17549         instead of GCC specific ULONG_LONG_MAX.
17550         * lib/xstrtoll.c: Likewise.
17551         * lib/xstrtoull.c: Likewise.
17552
17553 2010-03-13  Bruno Haible  <bruno@clisp.org>
17554
17555         Allow the user to disable C++ code and tests.
17556         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17557         (gl_PROG_ANSI_CXX): Require it.
17558
17559 2010-03-13  Bruno Haible  <bruno@clisp.org>
17560
17561         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17562         cases.
17563
17564 2010-03-13  Bruno Haible  <bruno@clisp.org>
17565
17566         Test that gnulib does not break the standard C++ headers.
17567         * tests/test-locale-c++2.cc: New file.
17568         * modules/locale-tests (Files): Add it.
17569         (Makefile.am): Compile it for test-locale-c++.
17570         * tests/test-math-c++2.cc: New file.
17571         * modules/math-tests (Files): Add it.
17572         (Makefile.am): Compile it for test-math-c++.
17573         * tests/test-signal-c++2.cc: New file.
17574         * modules/signal-tests (Files): Add it.
17575         (Makefile.am): Compile it for test-signal-c++.
17576         * tests/test-stdio-c++2.cc: New file.
17577         * modules/stdio-tests (Files): Add it.
17578         (Makefile.am): Compile it for test-stdio-c++.
17579         * tests/test-stdlib-c++2.cc: New file.
17580         * modules/stdlib-tests (Files): Add it.
17581         (Makefile.am): Compile it for test-stdlib-c++.
17582         * tests/test-string-c++2.cc: New file.
17583         * modules/string-tests (Files): Add it.
17584         (Makefile.am): Compile it for test-string-c++.
17585         * tests/test-time-c++2.cc: New file.
17586         * modules/time-tests (Files): Add it.
17587         (Makefile.am): Compile it for test-time-c++.
17588         Reported by John W. Eaton <jwe@gnu.org>.
17589
17590 2010-03-13  Bruno Haible  <bruno@clisp.org>
17591
17592         * gnulib-tool (func_usage): Clarify which options are available for
17593         --create-testdir and --create-megatestdir.
17594
17595 2010-03-13  Bruno Haible  <bruno@clisp.org>
17596
17597         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17598         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17599         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17600         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17601         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17602         when appropriate.
17603         Reported by Jim Meyering.
17604
17605 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17606
17607         * gnulib-tool (func_import): Explain origin of code.
17608
17609 2010-03-12  Bruno Haible  <bruno@clisp.org>
17610
17611         Fix problem with automake's definition of CXXLINK.
17612         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17613         Reported by Simon Josefsson and Ludovic Courtès.
17614
17615 2010-03-12  Bruno Haible  <bruno@clisp.org>
17616
17617         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17618         stable releases.
17619
17620 2010-03-11  Bruno Haible  <bruno@clisp.org>
17621
17622         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17623         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17624         whether the system provides one variant or multiple variants of the
17625         function.
17626         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17627         C++ compilers.
17628         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17629         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17630         Reported by Jim Meyering.
17631
17632 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17633
17634         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17635
17636 2010-03-08  Bruno Haible  <bruno@clisp.org>
17637
17638         gnulib-tool: Add support for --libtool in --create-testdir.
17639         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17640         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17641
17642 2010-03-08  Eric Blake  <eblake@redhat.com>
17643
17644         gnulib-tool.texi: mention possibility of git submodule
17645         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17646         submodules.
17647         * doc/.gitignore: Ignore another generated file.
17648
17649 2010-03-08  Karl Berry  <karl@gnu.org>
17650
17651         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17652         of committing gnulib files while skipping others.
17653
17654 2010-03-07  Bruno Haible  <bruno@clisp.org>
17655
17656         Tests of module 'wctype' in C++ mode.
17657         * tests/test-wctype-c++.cc: New file.
17658         * modules/wctype-tests (Files): Add it and tests/signature.h.
17659         (Depends-on): Add ansi-c++-opt.
17660         (Makefile.am): Arrange to compile and run test-wctype-c++.
17661
17662         Tests of module 'wchar' in C++ mode.
17663         * tests/test-wchar-c++.cc: New file.
17664         * modules/wchar-tests (Files): Add it and tests/signature.h.
17665         (Depends-on): Add ansi-c++-opt.
17666         (Makefile.am): Arrange to compile and run test-wchar-c++.
17667         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17668         gl_MODULE_INDICATOR.
17669
17670         Tests of module 'unistd' in C++ mode.
17671         * tests/test-unistd-c++.cc: New file.
17672         * modules/unistd-tests (Files): Add it and tests/signature.h.
17673         (Depends-on): Add ansi-c++-opt.
17674         (Makefile.am): Arrange to compile and run test-unistd-c++.
17675         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17676         gl_MODULE_INDICATOR.
17677
17678         Tests of module 'time' in C++ mode.
17679         * tests/test-time-c++.cc: New file.
17680         * modules/time-tests (Files): Add it and tests/signature.h.
17681         (Depends-on): Add ansi-c++-opt.
17682         (Makefile.am): Arrange to compile and run test-time-c++.
17683         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17684
17685         Tests of module 'sys_time' in C++ mode.
17686         * tests/test-sys_time-c++.cc: New file.
17687         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17688         (Depends-on): Add ansi-c++-opt.
17689         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17690         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17691         gl_MODULE_INDICATOR.
17692
17693         Tests of module 'sys_stat' in C++ mode.
17694         * tests/test-sys_stat-c++.cc: New file.
17695         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17696         (Depends-on): Add ansi-c++-opt.
17697         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17698         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17699         gl_MODULE_INDICATOR.
17700
17701         Tests of module 'sys_socket' in C++ mode.
17702         * tests/test-sys_socket-c++.cc: New file.
17703         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17704         (Depends-on): Add ansi-c++-opt.
17705         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17707         gl_MODULE_INDICATOR.
17708
17709         Tests of module 'sys_select' in C++ mode.
17710         * tests/test-sys_select-c++.cc: New file.
17711         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17712         (Depends-on): Add ansi-c++-opt.
17713         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17714         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17715         gl_MODULE_INDICATOR.
17716
17717         Tests of module 'sys_ioctl' in C++ mode.
17718         * tests/test-sys_ioctl-c++.cc: New file.
17719         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17720         (Depends-on): Add ansi-c++-opt.
17721         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17722         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17723         gl_MODULE_INDICATOR.
17724
17725         Tests of module 'string' in C++ mode.
17726         * tests/test-string-c++.cc: New file.
17727         * modules/string-tests (Files): Add it and tests/signature.h.
17728         (Depends-on): Add ansi-c++-opt.
17729         (Makefile.am): Arrange to compile and run test-string-c++.
17730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17731         gl_MODULE_INDICATOR.
17732
17733         Tests of module 'stdlib' in C++ mode.
17734         * tests/test-stdlib-c++.cc: New file.
17735         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17736         (Depends-on): Add ansi-c++-opt.
17737         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17738         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17739         gl_MODULE_INDICATOR.
17740
17741         Tests of module 'stdio' in C++ mode.
17742         * tests/test-stdio-c++.cc: New file.
17743         * modules/stdio-tests (Files): Add it and tests/signature.h.
17744         (Depends-on): Add ansi-c++-opt.
17745         (Makefile.am): Arrange to compile and run test-stdio-c++.
17746         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17747         gl_MODULE_INDICATOR.
17748
17749         Tests of module 'spawn' in C++ mode.
17750         * tests/test-spawn-c++.cc: New file.
17751         * modules/spawn-tests (Files): Add it and tests/signature.h.
17752         (Depends-on): Add ansi-c++-opt.
17753         (Makefile.am): Arrange to compile and run test-spawn-c++.
17754         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17755         gl_MODULE_INDICATOR.
17756
17757         Tests of module 'signal' in C++ mode.
17758         * tests/test-signal-c++.cc: New file.
17759         * modules/signal-tests (Files): Add it and tests/signature.h.
17760         (Depends-on): Add ansi-c++-opt.
17761         (Makefile.am): Arrange to compile and run test-signal-c++.
17762         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17763         gl_MODULE_INDICATOR.
17764
17765         Tests of module 'search' in C++ mode.
17766         * tests/test-search-c++.cc: New file.
17767         * modules/search-tests (Files): Add it and tests/signature.h.
17768         (Depends-on): Add ansi-c++-opt.
17769         (Makefile.am): Arrange to compile and run test-search-c++.
17770         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17771         gl_MODULE_INDICATOR.
17772
17773         Tests of module 'math' in C++ mode.
17774         * tests/test-math-c++.cc: New file.
17775         * modules/math-tests (Files): Add it and tests/signature.h.
17776         (Depends-on): Add ansi-c++-opt.
17777         (Makefile.am): Arrange to compile and run test-math-c++.
17778         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17779
17780         Tests of module 'locale' in C++ mode.
17781         * tests/test-locale-c++.cc: New file.
17782         * modules/locale-tests (Files): Add it and tests/signature.h.
17783         (Depends-on): Add ansi-c++-opt.
17784         (Makefile.am): Arrange to compile and run test-locale-c++.
17785         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17786         gl_MODULE_INDICATOR.
17787
17788         Tests of module 'langinfo' in C++ mode.
17789         * tests/test-langinfo-c++.cc: New file.
17790         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17791         (Depends-on): Add ansi-c++-opt.
17792         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17793         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17794         gl_MODULE_INDICATOR.
17795
17796         Tests of module 'iconv-h' in C++ mode.
17797         * tests/test-iconv-h-c++.cc: New file.
17798         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17799         (Depends-on): Add ansi-c++-opt.
17800         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17801
17802         Tests of module 'glob' in C++ mode.
17803         * tests/test-glob-c++.cc: New file.
17804         * modules/glob-tests (Files): Add it.
17805         (Depends-on): Add ansi-c++-opt.
17806         (Makefile.am): Arrange to compile and run test-glob-c++.
17807
17808         Tests of module 'fcntl-h' in C++ mode.
17809         * tests/test-fcntl-h-c++.cc: New file.
17810         * modules/fcntl-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-fcntl-h-c++.
17813         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17814         gl_MODULE_INDICATOR.
17815
17816         Tests of module 'dirent' in C++ mode.
17817         * tests/test-dirent-c++.cc: New file.
17818         * modules/dirent-tests (Files): Add it and tests/signature.h.
17819         (Depends-on): Add ansi-c++-opt.
17820         (Makefile.am): Arrange to compile and run test-dirent-c++.
17821         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17822         gl_MODULE_INDICATOR.
17823
17824         New module 'ansi-c++-opt'.
17825         * modules/ansi-c++-opt: New file.
17826         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17827
17828         Document C++ namespace mode.
17829         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17830
17831         wctype: Avoid #define replacements in C++ mode.
17832         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17833         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17834         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17835         In C++, define a namespaced alias symbol.
17836         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17837         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17838         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17839         rule.
17840
17841         wchar: Avoid #define replacements in C++ mode.
17842         * lib/wchar.in.h: Include c++defs.h.
17843         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17844         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17845         symbol.
17846         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17847         * modules/wchar (Depends-on): Add c++defs.
17848         (Makefile.am): Update wchar.h rule.
17849
17850         unistd: Avoid #define replacements in C++ mode.
17851         * lib/unistd.in.h: Include c++defs.h.
17852         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17853         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17854         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17855         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17856         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17857         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17858         symbol.
17859         (environ): Update.
17860         * modules/unistd (Depends-on): Add c++defs.
17861         (Makefile.am): Update unistd.h rule.
17862
17863         time: Avoid #define replacements in C++ mode.
17864         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17865         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17866         define a namespaced alias symbol.
17867         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17868         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17869         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17870         * modules/time (Depends-on): Add c++defs, warn-on-use.
17871         (Makefile.am): Update time.h rule.
17872         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17873         * modules/nanosleep (configure.ac): Likewise.
17874         * modules/strptime (configure.ac): Likewise.
17875         * modules/timegm (configure.ac): Likewise.
17876
17877         sys_time: Avoid #define replacements in C++ mode.
17878         * lib/sys_time.in.h: Include c++defs.h.
17879         (gettimeofday): In C++, define a namespaced alias symbol.
17880         * modules/sys_time (Depends-on): Add c++defs.
17881         (Makefile.am): Update sys/time.h rule.
17882
17883         sys_stat: Avoid #define replacements in C++ mode.
17884         * lib/sys_stat.in.h: Include c++defs.h.
17885         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17886         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17887         namespaced alias symbol.
17888         In C++, define a namespaced alias symbol.
17889         * modules/sys_stat (Depends-on): Add c++defs.
17890         (Makefile.am): Update sys/stat.h rule.
17891
17892         sys_socket: Avoid #define replacements in C++ mode.
17893         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17894         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17895         definitions also when the system has a <sys/socket.h>.
17896         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17897         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17898         In C++, define a namespaced alias symbol.
17899         * modules/sys_socket (Depends-on): Add c++defs.
17900         (Makefile.am): Update sys/socket.h rule.
17901
17902         sys_select: Avoid #define replacements in C++ mode.
17903         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17904         definitions also when the system has a <sys/select.h>.
17905         (select): In C++, define a namespaced alias symbol.
17906         * modules/sys_select (Depends-on): Add c++defs.
17907         (Makefile.am): Update sys/select.h rule.
17908
17909         sys_ioctl: Avoid #define replacements in C++ mode.
17910         * lib/sys_ioctl.in.h: Include c++defs.h.
17911         (ioctl): In C++, define a namespaced alias symbol.
17912         * modules/sys_ioctl (Depends-on): Add c++defs.
17913         (Makefile.am): Update sys/ioctl.h rule.
17914
17915         string: Avoid #define replacements in C++ mode.
17916         * lib/string.in.h: Include c++defs.h.
17917         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17918         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17919         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17920         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17921         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17922         * modules/string (Depends-on): Add c++defs.
17923         (Makefile.am): Update string.h rule.
17924
17925         stdlib: Avoid #define replacements in C++ mode.
17926         * lib/stdlib.in.h: Include c++defs.h.
17927         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17928         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17929         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17930         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17931         symbol.
17932         * modules/stdlib (Depends-on): Add c++defs.
17933         (Makefile.am): Update stdlib.h rule.
17934
17935         stdio: Avoid #define replacements in C++ mode.
17936         * lib/stdio.in.h: Include c++defs.h.
17937         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17938         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17939         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17940         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17941         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17942         namespaced alias symbol.
17943         * modules/stdio (Depends-on): Add c++defs.
17944         (Makefile.am): Update stdio.h rule.
17945
17946         spawn: Avoid #define replacements in C++ mode.
17947         * lib/spawn.in.h: Include c++defs.h.
17948         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17949         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17950         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17951         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17952         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17953         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17954         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17955         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17956         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17957         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17958         In C++, define a namespaced alias symbol.
17959         * modules/spawn (Depends-on): Add c++defs.
17960         (Makefile.am): Update spawn.h rule.
17961
17962         signal: Avoid #define replacements in C++ mode.
17963         * lib/signal.in.h: Include c++defs.h.
17964         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17965         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17966         namespaced alias symbol.
17967         * modules/signal (Depends-on): Add c++defs.
17968         (Makefile.am): Update signal.h rule.
17969
17970         search: Avoid #define replacements in C++ mode.
17971         * lib/search.in.h: Include c++defs.h.
17972         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17973         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17974         symbol.
17975         * modules/search (Depends-on): Add c++defs.
17976         (Makefile.am): Update search.h rule.
17977
17978         math: Avoid #define replacements in C++ mode.
17979         * lib/math.in.h: Include c++defs.h.
17980         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17981         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17982         trunc, truncl): In C++, define a namespaced alias symbol.
17983         * modules/math (Depends-on): Add c++defs.
17984         (Makefile.am): Update math.h rule.
17985
17986         locale: Avoid #define replacements in C++ mode.
17987         * lib/locale.in.h: Include c++defs.h.
17988         (duplocale): In C++, define a namespaced alias symbol.
17989         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17990         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17991         * modules/locale (Depends-on): Add c++defs.
17992         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17993
17994         langinfo: Avoid #define replacements in C++ mode.
17995         * lib/langinfo.in.h: Include c++defs.h.
17996         (nl_langinfo): In C++, define a namespaced alias symbol.
17997         * modules/langinfo (Depends-on): Add c++defs.
17998         (Makefile.am): Update langinfo.h rule.
17999
18000         iconv-h: Avoid #define replacements in C++ mode.
18001         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18002         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18003         symbol.
18004         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18005         whenever iconv is present.
18006         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18007         (Makefile.am): Update iconv.h rule.
18008
18009         glob: Avoid #define replacements in C++ mode.
18010         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18011         (_gl_glob_errfunc_fn): New type.
18012         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18013         symbol.
18014         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18015         (Makefile.am): Update glob.h rule.
18016
18017         fcntl-h: Avoid #define replacements in C++ mode.
18018         * lib/fcntl.in.h: Include c++defs.h.
18019         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18020         * modules/fcntl-h (Depends-on): Add c++defs.
18021         (Makefile.am): Update fcntl.h rule.
18022
18023         dirent: Avoid #define replacements in C++ mode.
18024         * lib/dirent.in.h: Include c++defs.h.
18025         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18026         namespaced alias symbol.
18027         (dirfd): Update declaration.
18028         * modules/dirent (Depends-on): Add c++defs.
18029         (Makefile.am): Update dirent.h rule.
18030
18031         ctype: Make it usable in C++ code.
18032         * lib/ctype.in.h: Include c++defs.h.
18033         (isblank): Declare as extern "C".
18034         * modules/ctype (Depends-on): Add c++defs.
18035         (Makefile.am): Update ctype.h rule.
18036
18037         New module 'c++defs'.
18038         * modules/c++defs: New file.
18039         * build-aux/c++defs.h: New file.
18040         Reported by John W. Eaton <jwe@gnu.org>.
18041
18042 2010-03-07  Bruno Haible  <bruno@clisp.org>
18043
18044         logb: Provide missing declaration for Cygwin.
18045         * lib/math.in.h (logb): New declaration.
18046         * m4/logb.m4: New file.
18047         * modules/logb (Files): Add m4/logb.m4.
18048         (Depends-on): Add math.
18049         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18050         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18052         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18053         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18054
18055 2010-03-07  Bruno Haible  <bruno@clisp.org>
18056
18057         Fix test-cond link error.
18058         * tests/test-cond.c: Include <stdio.h>.
18059
18060 2010-03-07  Bruno Haible  <bruno@clisp.org>
18061
18062         Fix test-dirent-safer link error.
18063         * modules/dirent-safer-tests (Makefile.am): Define
18064         test_dirent_safer_LDADD.
18065
18066 2010-03-07  Bruno Haible  <bruno@clisp.org>
18067
18068         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18069         among default module list.
18070
18071 2010-03-07  Bruno Haible  <bruno@clisp.org>
18072
18073         Fix link error on platforms with GNU libiconv.
18074         * modules/unistr/u8-strcoll-tests (Makefile): Define
18075         test_u8_strcoll_LDADD.
18076         * modules/unistr/u16-strcoll-tests (Makefile): Define
18077         test_u16_strcoll_LDADD.
18078         * modules/unistr/u32-strcoll-tests (Makefile): Define
18079         test_u32_strcoll_LDADD.
18080
18081 2010-03-07  Bruno Haible  <bruno@clisp.org>
18082
18083         Use POSIX declarations for socket functions.
18084         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18085         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18086         rpl_sendto): Change declaration to match POSIX.
18087         * lib/connect.c (rpl_connect): Likewise.
18088         * lib/accept.c (rpl_accept): Likewise.
18089         * lib/bind.c (rpl_bind): Likewise.
18090         * lib/getpeername.c (rpl_getpeername): Likewise.
18091         * lib/getsockname.c (rpl_getsockname): Likewise.
18092         * lib/recv.c (rpl_recv): Likewise.
18093         * lib/send.c (rpl_send): Likewise.
18094         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18095         * lib/sendto.c (rpl_sendto): Likewise.
18096
18097 2010-03-06  Bruno Haible  <bruno@clisp.org>
18098
18099         Clarify access, euidaccess, faccessat.
18100         * doc/posix-functions/faccessat.texi: Mention security problem under
18101         "Other problems", not "Portability problems".
18102         * doc/posix-functions/access.texi: Likewise. Mention a related security
18103         problem.
18104         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18105         * lib/euidaccess.c: Add comments about platforms.
18106         * lib/unistd.in.h (access, euidaccess): Add warnings.
18107
18108 2010-03-07  Bruno Haible  <bruno@clisp.org>
18109
18110         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18111         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18112         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18113         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18114         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18115         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18116         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18117         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18118         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18119         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18120         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18121         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18122         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18123         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18124         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18125         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18126         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18127         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18128         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18129         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18130         Likewise.
18131         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18132         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18133         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18134         Likewise.
18135         * tests/test-spawn.c (main): Make it work when
18136         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18137
18138 2010-03-07  Bruno Haible  <bruno@clisp.org>
18139
18140         Fix incorrect Makefile.am generation in German locale.
18141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18142         Execute sed command with character range in C locale.
18143
18144 2010-03-06  Bruno Haible  <bruno@clisp.org>
18145
18146         Tests for module 'iconv-h'.
18147         * modules/iconv-h-tests: New file.
18148         * tests/test-iconv-h.c: New file.
18149
18150         New module 'iconv-h'.
18151         * modules/iconv-h: New file.
18152         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18153         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18154         (configure.ac): Remove gl_ICONV_H.
18155         (Makefile.am): Remove rule for iconv.h.
18156
18157 2010-03-06  Bruno Haible  <bruno@clisp.org>
18158
18159         More consistent naming of *.m4 files.
18160         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18161         * modules/wctype (Files): Update.
18162
18163         More consistent naming of *.m4 files.
18164         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18165         * modules/wchar (Files): Update.
18166
18167 2010-03-06  Jim Meyering  <meyering@redhat.com>
18168
18169         euidaccess: relax license to LGPLv2+
18170         * modules/euidaccess (License): Relax to LGPLv2+.
18171
18172 2010-03-06  Bruno Haible  <bruno@clisp.org>
18173
18174         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18175         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18176         (Makefile.am): Augment lib_SOURCES instead.
18177
18178 2010-03-04  Jim Meyering  <meyering@redhat.com>
18179
18180         utime: remove obsolete module
18181         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18182         unnecessary for years, and has been marked as obsolete for 10 months.
18183         * modules/utime: Remove file.
18184         * lib/utime.c: Remove file.
18185         * m4/utime.m4: Remove file.
18186         * m4/utimes-null.m4: Remove file.
18187         * doc/posix-functions/utime.texi (utime): Remove reference to
18188         the module.  Move the sole "fixed by gnulib" item into the
18189         "problems not fixed by Gnulib" list.
18190         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18191
18192 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18193
18194         * modules/exit (License): Relax license to LGPLv2+.
18195         (Status): Mark as obsolete.
18196         * NEWS: Mention deprecated 'exit' module.
18197         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18198         of now obsolete 'exit'.
18199
18200 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18201
18202         fts-lgpl: remove unused module
18203         * modules/fts-lgpl: Remove.
18204         * MODULES.html.sh (func_all_modules): Adjust.
18205         * check-module (find_included_lib_files): Adjust.
18206         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18207
18208 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18209
18210         copy-acl: enhance Solaris ACL error handling
18211         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18212         * lib/set-mode-acl.c (qset_acl): Likewise.
18213
18214 2010-03-02  Bruno Haible  <bruno@clisp.org>
18215
18216         spawn: Don't override the system defined values on FreeBSD 8.
18217         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18218         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18219         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18220         if HAVE_POSIX_SPAWN is 1.
18221         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18222
18223 2010-03-01  Bruno Haible  <bruno@clisp.org>
18224
18225         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18226         regarding Automake.
18227
18228 2010-02-25  Bruno Haible  <bruno@clisp.org>
18229
18230         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18231         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18232         setting, not afterwards.
18233         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18234
18235 2010-02-24  Eric Blake  <eblake@redhat.com>
18236
18237         bootstrap, git-version-gen: use timestamp
18238         * build-aux/git-version-gen (scriptversion): Force UTC.
18239         * build-aux/bootstrap (scriptversion): New variable.
18240
18241         bootstrap: allow older git
18242         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18243         older than 1.6.4.  Requested by the libvirt project.
18244
18245 2010-02-23  Eric Blake  <eblake@redhat.com>
18246
18247         warn-on-use: work with old autoconf
18248         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18249         AS_VAR semantics of autoconf 2.60.
18250         Reported by Bruno Haible.
18251
18252         bootstrap: improve some comments
18253         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18254         clarification comments.
18255
18256         gettimeofday: provide correct function
18257         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18258         when replacement is declared, otherwise provide gettimeofday.
18259         Reported by Michael Goffioul.
18260
18261 2010-02-23  Jim Meyering  <meyering@redhat.com>
18262
18263         lib-ignore: relax license to "unlimited", not LGPLv2+
18264         * modules/lib-ignore (License): Relax to "unlimited".
18265
18266 2010-02-23  Jim Meyering  <meyering@redhat.com>
18267
18268         lib-ignore: relax license to LGPLv2+
18269         * modules/lib-ignore (License): Relax to LGPLv2+.
18270
18271 2010-02-22  Eric Blake  <eblake@redhat.com>
18272
18273         lseek: avoid bash 3.2 broken pipe bug
18274         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18275         warning from bash 3.2.
18276         Reported by Ben Pfaff, with analysis from Bruno Haible.
18277
18278         bootstrap: support non-FSF copyright holder
18279         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18280         bootstrap.conf override of COPYRIGHT_HOLDER.
18281         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18282
18283         bootstrap: interoperate with gettext 0.14.1
18284         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18285
18286         bootstrap: allow for alternate submodule location
18287         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18288         hardcoding submodule location.
18289         (gnulib_mk): Allow direct use of Makefile.am.
18290
18291         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18292         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18293         rather than reconfiguring where the submodule points.
18294
18295         gettimeofday: restore support for platforms that lack function
18296         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18297         replacement if function is missing.
18298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18299         * modules/sys_time (Makefile.am): Substitute it.
18300         * lib/sys_time.in.h (gettimeofday): Check it.
18301         Reported by Michael Goffioul.
18302
18303 2010-02-21  Bruno Haible  <bruno@clisp.org>
18304
18305         * lib/stdio.in.h (obstack_printf): Fix typo.
18306
18307 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18308
18309         vc-list-files: use bzr ls's -R option
18310         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18311         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18312
18313 2010-02-21  Jim Meyering  <meyering@redhat.com>
18314
18315         init.sh: fix EXEEXT shims to work also for names like test-prog
18316         * tests/init.sh: Re-exec a better shell, when needed.
18317         If the current shell lacks support for posix $(...), an init.sh-using
18318         test will now try to find a shell that supports that.  If EXEEXT is
18319         nonempty, we also require support for hyphen-in-alias-name and shell
18320         substitutions like ${var#glob}.  Failure to find such a shell results
18321         in a skipped test.
18322
18323 2010-02-21  Bruno Haible  <bruno@clisp.org>
18324
18325         Really work around around "broken pipe" error message from bash 3.2.
18326         * gnulib-tool (func_reset_sigpipe): Remove function.
18327         (echo): In bash 3.2, define to a function that uses printf.
18328         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18329
18330 2010-02-20  Bruno Haible  <bruno@clisp.org>
18331
18332         Restore support for automake 1.9.6 with autoconf 2.61.
18333         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18334         Reported by James Youngman <jay@gnu.org>.
18335
18336 2010-02-20  Bruno Haible  <bruno@clisp.org>
18337
18338         Improve *printf warning condition.
18339         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18340         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18341         and the function is overridden due to SIGPIPE emulation.
18342
18343 2010-02-20  Bruno Haible  <bruno@clisp.org>
18344
18345         * lib/stdio.in.h: Tweak comments.
18346
18347 2010-02-19  Bruno Haible  <bruno@clisp.org>
18348
18349         Make it easier to find modules. New gnulib-tool option '--find'.
18350         * gnulib-tool: New option --find.
18351         (func_usage): Document it.
18352         (func_sanitize_modulelist): New function, extracted from
18353         func_all_modules.
18354         (func_all_modules): Invoke it.
18355         * doc/gnulib-tool.texi (Which modules?): New node.
18356
18357 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18358
18359         * lib/sys_select.in.h: Provide select replacement even if
18360         sys/select.h exists on a system, for Interix.
18361
18362 2010-02-18  Jim Meyering  <meyering@redhat.com>
18363
18364         init.sh: don't use $(...) just yet
18365         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18366         to accommodate e.g., Solaris' /bin/sh.
18367
18368 2010-02-17  Bruno Haible  <bruno@clisp.org>
18369
18370         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18371         Reported by Ludovic Courtès <ludo@gnu.org>.
18372
18373 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18374
18375         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18376         linking with -lintl.
18377
18378 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18379
18380         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18381         if not provided by the system's netdb.h.  Reported by
18382         ludo@gnu.org (Ludovic Courtès).
18383
18384 2010-02-15  Jim Meyering  <meyering@redhat.com>
18385
18386         init.sh: improve portability and efficiency
18387         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18388         "dummy" in a for loop.
18389         Use '!', not '^' to select the complement of a character set used
18390         in a "case" statement.
18391         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18392         Suggestions from Eric Blake.
18393
18394         init.sh: automatically accommodate programs with the .exe suffix
18395         Automatically arrange for an invocation of "prog" to execute the
18396         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18397         may use the simpler "prog", yet still work when built on a system
18398         that requires specifying the added suffix.
18399         Do this by constructing a function named "prog" that invokes
18400         "prog.exe" for each .exe file in selected directories.
18401         * tests/init.sh (find_exe_basenames_): New function.
18402         (create_exe_shim_functions_): New function.
18403         (path_prepend_): Use it.
18404
18405         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18406         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18407         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18408
18409 2010-02-14  Jim Meyering  <meyering@redhat.com>
18410
18411         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18412         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18413         (sc_prohibit_hash_pjw_without_use): New rule.
18414
18415         maint.mk: allow the default upload destination dir to be overridden
18416         * top/maint.mk (upload_dest_dir_): Define with a default that
18417         preserves the status quo.
18418         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18419         Reported by Peter Simons.
18420
18421         maint.mk: prohibit inclusion of "hash.h" without_use
18422         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18423
18424 2010-02-10  Jim Meyering  <meyering@redhat.com>
18425
18426         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18427         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18428
18429 2010-02-09  Eric Blake  <ebb9@byu.net>
18430         and Bruno Haible  <bruno@clisp.org>
18431
18432         obstack-printf-posix: ensure declaration
18433         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18434         extracted from gl_FUNC_OBSTACK_PRINTF.
18435         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18436         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18437         Likewise.
18438         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18439         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18440         0.
18441
18442 2010-02-08  Bruno Haible  <bruno@clisp.org>
18443
18444         gnulib-tool: Fix typo in 2010-02-07 commit.
18445         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18446         Reported by Eric Blake.
18447
18448 2010-02-07  Bruno Haible  <bruno@clisp.org>
18449
18450         gnulib-tool: Fix up caching patches.
18451         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18452         option --no-cache. Use associative arrays when supported by the shell.
18453         (sed_comments): New variable.
18454         (modcache): Renamed from do_cache.
18455         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18456         abbreviate unnecessarily.
18457         (have_associative): New variable.
18458         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18459         way also for ksh and zsh.
18460         (func_init_sed_convert_to_cache_statements): New function, extracted
18461         from func_cache_lookup_module. Add support for associative arrays.
18462         Don't set the c_MODULE_cached variable here. Ignore all lines before
18463         the first field header. Remove only the final newline, not all trailing
18464         newlines. Support empty fields correctly. Limit the use of 'eval' to
18465         assignments.
18466         (func_get_description, func_get_status, func_get_notice,
18467         func_get_applicability, func_get_filelist, func_get_dependencies,
18468         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18469         func_get_automake_snippet, func_get_include_directive,
18470         func_get_link_directive, func_get_license, func_get_maintainer):
18471         Update documentation. List the unoptimized code first. Add support for
18472         associative arrays. Limit the use of 'eval' to assignments.
18473         (func_get_applicability): Undo stylistic pessimisations.
18474         (func_get_automake_snippet, func_get_include_directive): Reduce code
18475         duplication.
18476         (func_modules_transitive_closure, func_modules_add_dummy,
18477         func_modules_notice, func_modules_to_filelist, func_add_file,
18478         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18479         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18480         func_create_testdir, func_create_megatestdir): Update documentation.
18481
18482 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18483
18484         * gnulib-tool (func_cache_lookup_module): Store the module name
18485         belonging to the cache variable; error out if two different
18486         module names map to the same cache variable name.
18487
18488 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18489
18490         gnulib-tool: Make caching optional.
18491         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18492         Update matching short versions of --no-changelog.
18493         (func_usage): Update.
18494         (sed_extract_cache_prog): Renamed from ...
18495         (sed_extract_prog): ... this; revert to old extraction script.
18496         (func_get_description, func_get_status)
18497         (func_get_notice, func_get_applicability, func_get_filelist)
18498         (func_get_dependencies, func_get_autoconf_early_snippet)
18499         (func_get_autoconf_snippet, func_get_automake_snippet)
18500         (func_get_include_directive, func_get_link_directive)
18501         (func_get_license, func_get_maintainer): If $do_cache is false,
18502         use old, non-caching extraction scripts.
18503         Suggestion by Bruno Haible.
18504
18505 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18506
18507         gnulib-tool: cache module metainformation.
18508         * gnulib-tool (sed_extract_prog): Match newline before each
18509         header, and rewrite header to a shell variable suffix.
18510         (func_cache_var, func_cache_lookup_module): New functions,
18511         to turn a module name into a cache variable prefix, and to
18512         look up and cache module metainformation.
18513         (func_get_description, func_get_status)
18514         (func_get_notice, func_get_applicability, func_get_filelist)
18515         (func_get_dependencies, func_get_autoconf_early_snippet)
18516         (func_get_autoconf_snippet, func_get_automake_snippet)
18517         (func_get_include_directive, func_get_link_directive)
18518         (func_get_license, func_get_maintainer): Use
18519         func_cache_lookup_module.
18520
18521 2010-02-07  Bruno Haible  <bruno@clisp.org>
18522
18523         fnctl: Fix missing dependency.
18524         * modules/fcntl (Depends-on): Add getdtablesize.
18525         Reported by John W. Eaton <jwe@gnu.org>.
18526
18527 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18528
18529         Argp: fix recognition of short alias options.
18530
18531         * lib/argp-parse.c (convert_options): Fix improper use of
18532         `|' between character values.
18533         * tests/test-argp.c (group1_option): New alias option
18534         --read (-r).
18535         (group1_parser): Special handling for 'r'.
18536         (test15): New test case.
18537         (test_fun): Add test15.
18538         * tests/test-argp-2.sh: Update expected --help and --usage
18539         outputs.
18540
18541 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18542
18543         * tests/test-argp.c: Fix indentation.
18544
18545 2010-02-04  Eric Blake  <ebb9@byu.net>
18546
18547         gettimeofday: expose type of second argument
18548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18549         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18550         * tests/test-gettimeofday.c: Use it to silence warning.
18551         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18552         the issue.
18553
18554 2010-02-03  Jim Meyering  <meyering@redhat.com>
18555
18556         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18557         * lib/regcomp.c (TYPE_SIGNED): Define.
18558         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18559
18560         regcomp.c: avoid a new -Wshadow warning
18561         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18562
18563 2010-02-01  Jim Meyering  <meyering@redhat.com>
18564
18565         removing useless parentheses in cpp #define directives
18566         For motivation, see commit c0221df4, "define STREQ(a,b)
18567         consistently, removing useless parentheses"
18568         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18569         * lib/mountlist.c (MNT_IGNORE): Likewise.
18570         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18571
18572 2010-02-01  Eric Blake  <ebb9@byu.net>
18573
18574         sys_time: use link-warning
18575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18576         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18577         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18578         * modules/sys_time (Depends-on): Add warn-on-use.
18579         (Makefile.am): Always build replacement.
18580         (configure.ac): Update substitutions.
18581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18582         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18583         bother with SYS_TIME_H.
18584         * modules/gettimeofday (configure.ac): Declare indicator.
18585         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18586         in use.
18587
18588         closein-tests: silence compiler warning
18589         * tests/test-closein.c (main): Ignore fread result.
18590         * modules/closein-tests (Depends-on): Add ignore-value.
18591
18592         tests: silence warning about system return
18593         * tests/test-areadlink-with-size.c (main): Ignore system result.
18594         * tests/test-areadlink.c (main): Likewise.
18595         * tests/test-areadlinkat-with-size.c (main): Likewise.
18596         * tests/test-areadlinkat.c (main): Likewise.
18597         * tests/test-canonicalize-lgpl.c (main): Likewise.
18598         * tests/test-canonicalize.c (main): Likewise.
18599         * tests/test-chown.c (main): Likewise.
18600         * tests/test-fchownat.c (main): Likewise.
18601         * tests/test-fdutimensat.c (main): Likewise.
18602         * tests/test-fstatat.c (main): Likewise.
18603         * tests/test-futimens.c (main): Likewise.
18604         * tests/test-lchown.c (main): Likewise.
18605         * tests/test-link.c (main): Likewise.
18606         * tests/test-linkat.c (main): Likewise.
18607         * tests/test-lstat.c (main): Likewise.
18608         * tests/test-mkdir.c (main): Likewise.
18609         * tests/test-mkdirat.c (main): Likewise.
18610         * tests/test-mkfifo.c (main): Likewise.
18611         * tests/test-mkfifoat.c (main): Likewise.
18612         * tests/test-mknod.c (main): Likewise.
18613         * tests/test-readlink.c (main): Likewise.
18614         * tests/test-remove.c (main): Likewise.
18615         * tests/test-rename.c (main): Likewise.
18616         * tests/test-renameat.c (main): Likewise.
18617         * tests/test-rmdir.c (main): Likewise.
18618         * tests/test-symlink.c (main): Likewise.
18619         * tests/test-symlinkat.c (main): Likewise.
18620         * tests/test-unlink.c (main): Likewise.
18621         * tests/test-unlinkat.c (main): Likewise.
18622         * tests/test-utimens.c (main): Likewise.
18623         * tests/test-utimensat.c (main): Likewise.
18624         * modules/areadlink-tests (Depends-on): Add ignore-value.
18625         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18626         * modules/areadlinkat-tests (Depends-on): Likewise.
18627         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18628         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18629         * modules/canonicalize-tests (Depends-on): Likewise.
18630         * modules/chown-tests (Depends-on): Likewise.
18631         * modules/fdutimensat-tests (Depends-on): Likewise.
18632         * modules/futimens-tests (Depends-on): Likewise.
18633         * modules/lchown-tests (Depends-on): Likewise.
18634         * modules/link-tests (Depends-on): Likewise.
18635         * modules/linkat-tests (Depends-on): Likewise.
18636         * modules/lstat-tests (Depends-on): Likewise.
18637         * modules/mkdir-tests (Depends-on): Likewise.
18638         * modules/mkfifo-tests (Depends-on): Likewise.
18639         * modules/mkfifoat-tests (Depends-on): Likewise.
18640         * modules/mknod-tests (Depends-on): Likewise.
18641         * modules/openat-tests (Depends-on): Likewise.
18642         * modules/readlink-tests (Depends-on): Likewise.
18643         * modules/remove-tests (Depends-on): Likewise.
18644         * modules/rename-tests (Depends-on): Likewise.
18645         * modules/renameat-tests (Depends-on): Likewise.
18646         * modules/rmdir-tests (Depends-on): Likewise.
18647         * modules/symlink-tests (Depends-on): Likewise.
18648         * modules/symlinkat-tests (Depends-on): Likewise.
18649         * modules/unlink-tests (Depends-on): Likewise.
18650         * modules/utimens-tests (Depends-on): Likewise.
18651         * modules/utimensat-tests (Depends-on): Likewise.
18652
18653 2010-01-31  Bruno Haible  <bruno@clisp.org>
18654
18655         Perform the same test for many <math.h> functions.
18656         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18657         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18658         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18659         of gl_MATHFUNC.
18660         * modules/acos (configure.ac): Likewise.
18661         * modules/asin (configure.ac): Likewise.
18662         * modules/atan (configure.ac): Likewise.
18663         * modules/atan2 (configure.ac): Likewise.
18664         * modules/cbrt (configure.ac): Likewise.
18665         * modules/copysign (configure.ac): Likewise.
18666         * modules/cos (configure.ac): Likewise.
18667         * modules/cosh (configure.ac): Likewise.
18668         * modules/erf (configure.ac): Likewise.
18669         * modules/erfc (configure.ac): Likewise.
18670         * modules/exp (configure.ac): Likewise.
18671         * modules/fmod (configure.ac): Likewise.
18672         * modules/hypot (configure.ac): Likewise.
18673         * modules/j0 (configure.ac): Likewise.
18674         * modules/j1 (configure.ac): Likewise.
18675         * modules/jn (configure.ac): Likewise.
18676         * modules/lgamma (configure.ac): Likewise.
18677         * modules/log (configure.ac): Likewise.
18678         * modules/log10 (configure.ac): Likewise.
18679         * modules/log1p (configure.ac): Likewise.
18680         * modules/pow (configure.ac): Likewise.
18681         * modules/remainder (configure.ac): Likewise.
18682         * modules/sin (configure.ac): Likewise.
18683         * modules/sinh (configure.ac): Likewise.
18684         * modules/tan (configure.ac): Likewise.
18685         * modules/tanh (configure.ac): Likewise.
18686         * modules/y0 (configure.ac): Likewise.
18687         * modules/y1 (configure.ac): Likewise.
18688         * modules/yn (configure.ac): Likewise.
18689         Suggested by Paolo Bonzini.
18690
18691 2010-01-31  Bruno Haible  <bruno@clisp.org>
18692
18693         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18694
18695 2010-01-31  Bruno Haible  <bruno@clisp.org>
18696
18697         Work around getdelim() bug on FreeBSD 8.0.
18698         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18699         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18700         not work.
18701         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18702         is 1.
18703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18704         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18705         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18706         a non-zero size.
18707         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18708
18709 2010-01-31  Bruno Haible  <bruno@clisp.org>
18710
18711         Work around getline() bug on FreeBSD 8.0.
18712         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18713         and a non-zero size.
18714         * tests/test-getline.c (main): Likewise.
18715         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18716         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18717
18718 2010-01-28  Eric Blake  <ebb9@byu.net>
18719
18720         regex: fix build failure
18721         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18722         platforms.
18723
18724 2010-01-28  Jim Meyering  <meyering@redhat.com>
18725
18726         regex: do not ignore memory allocation failure
18727         * lib/regex_internal.c (create_cd_newstate): Detect
18728         re_node_set_init_copy failure.   Extracted from glibc commit
18729         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18730
18731         regex: sync more white-space changes from libc
18732         * lib/regex_internal.c: White-space only changes.
18733         * lib/regexec.c: Likewise.
18734
18735         regex: add many uses of __attribute_warn_unused_result__
18736         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18737         * lib/regexec.c: Likewise.
18738         Extracted from a messy glibc commit.
18739
18740         regcomp.c: spelling and merge-artifact from glibc
18741         * lib/regcomp.c: Merge remainder of glibc's
18742         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18743
18744         regcomp.c: sync white-space changes from glibc
18745         * lib/regcomp.c: Merge to accommodate white space
18746         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18747
18748         regcomp.c: do not ignore internal return values
18749         * lib/regcomp.c: Do not ignore internal return values.
18750         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18751         but without its white-space changes and spelling fixes.
18752
18753         regex_internal.h: define __attribute_warn_unused_result__
18754         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18755
18756         maint: add a syntax-check rule to check for vulnerable Makefile.in
18757         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18758
18759 2010-01-27  Jim Meyering  <meyering@redhat.com>
18760
18761         ncftpput-ftp: clean up spaces
18762         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18763         Remove trailing blanks.
18764
18765 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18766
18767         * build-aux/git-version-gen: Fix copyright statement.
18768         * build-aux/gnupload: Likewise.
18769         * tests/test-arcfour.c: Likewise.
18770         * tests/test-arctwo.c: Likewise.
18771         * tests/test-count-one-bits.c: Likewise.
18772         * tests/test-crc.c: Likewise.
18773         * tests/test-des.c: Likewise.
18774         * tests/test-gc-arcfour.c: Likewise.
18775         * tests/test-gc-arctwo.c: Likewise.
18776         * tests/test-gc-des.c: Likewise.
18777         * tests/test-gc-hmac-md5.c: Likewise.
18778         * tests/test-gc-hmac-sha1.c: Likewise.
18779         * tests/test-gc-md2.c: Likewise.
18780         * tests/test-gc-md4.c: Likewise.
18781         * tests/test-gc-md5.c: Likewise.
18782         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18783         * tests/test-gc-rijndael.c: Likewise.
18784         * tests/test-gc-sha1.c: Likewise.
18785         * tests/test-gc.c: Likewise.
18786         * tests/test-gethostname.c: Likewise.
18787         * tests/test-gettimeofday.c: Likewise.
18788         * tests/test-hash.c: Likewise.
18789         * tests/test-hmac-md5.c: Likewise.
18790         * tests/test-hmac-sha1.c: Likewise.
18791         * tests/test-md2.c: Likewise.
18792         * tests/test-md4.c: Likewise.
18793         * tests/test-md5.c: Likewise.
18794         * tests/test-memchr.c: Likewise.
18795         * tests/test-memchr2.c: Likewise.
18796         * tests/test-memcmp.c: Likewise.
18797         * tests/test-memmem.c: Likewise.
18798         * tests/test-memrchr.c: Likewise.
18799         * tests/test-rawmemchr.c: Likewise.
18800         * tests/test-read-file.c: Likewise.
18801         * tests/test-rijndael.c: Likewise.
18802         * tests/test-sockets.c: Likewise.
18803         * tests/test-strchrnul.c: Likewise.
18804         * tests/test-strstr.c: Likewise.
18805         * tests/test-strtod.c: Likewise.
18806         * build-aux/ncftpput-ftp: Likewise.
18807
18808 2010-01-26  Eric Blake  <ebb9@byu.net>
18809
18810         ignore-value: update recommended header name
18811         * modules/ignore-value (Include): Only use <> for headers that
18812         exist in glibc.
18813
18814 2010-01-26  Jim Meyering  <meyering@redhat.com>
18815
18816         test-userspec.c: avoid compiler warnings
18817         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18818         and "initialization discards qualifiers..." warnings.
18819         Put the first "uid" in its own scope, and make char* members "const".
18820
18821 2010-01-25  Bruno Haible  <bruno@clisp.org>
18822
18823         gnulib-tool: Make warning diagnostics consistent.
18824         * gnulib-tool (func_warning): New function.
18825         Use it everywhere where gnulib-tool produces output to stderr and it is
18826         not a fatal error.
18827
18828 2010-01-25  Bruno Haible  <bruno@clisp.org>
18829
18830         Fix test dependencies.
18831         * modules/xstrtol-tests (Depends-on): Add inttypes.
18832         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18833
18834 2010-01-25 Pádraig Brady <P@draigBrady.com>
18835
18836         syntax-check: detect incorrect boolean macro values in config.h
18837         * modules/maintainer-makefile (configure.ac): Parameterize the location
18838         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18839         The logic is from Eric Blake and the location indicated by Jim Meyering.
18840         Note the more natural CONFIG_HEADER name is prohibited by automake
18841         for backwards compatibility reasons.
18842         * top/maint.mk (sc_Wundef_boolean): New rule.
18843
18844 2010-01-25  Jim Meyering  <meyering@redhat.com>
18845
18846         bootstrap: detect MacOS 10.6's shasum, too
18847         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18848         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18849
18850 2010-01-23  Jim Meyering  <meyering@redhat.com>
18851
18852         xstrtoll: new module
18853         * modules/xstrtoll: New file.
18854         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18855         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18856         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18857         ./configure fails if you use this module and lack "long long".
18858         * modules/xstrtoll-tests: New module.
18859         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18860         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18861         new init.sh-based test framework.
18862
18863 2010-01-24  Bruno Haible  <bruno@clisp.org>
18864
18865         Tests for module 'yn'.
18866         * modules/yn-tests: New file.
18867         * tests/test-yn.c: New file.
18868
18869         Tests for module 'y1'.
18870         * modules/y1-tests: New file.
18871         * tests/test-y1.c: New file.
18872
18873         Tests for module 'y0'.
18874         * modules/y0-tests: New file.
18875         * tests/test-y0.c: New file.
18876
18877         Tests for module 'tanh'.
18878         * modules/tanh-tests: New file.
18879         * tests/test-tanh.c: New file.
18880
18881         Tests for module 'tan'.
18882         * modules/tan-tests: New file.
18883         * tests/test-tan.c: New file.
18884
18885         Tests for module 'sqrt'.
18886         * modules/sqrt-tests: New file.
18887         * tests/test-sqrt.c: New file.
18888
18889         Tests for module 'sinh'.
18890         * modules/sinh-tests: New file.
18891         * tests/test-sinh.c: New file.
18892
18893         Tests for module 'sin'.
18894         * modules/sin-tests: New file.
18895         * tests/test-sin.c: New file.
18896
18897         Tests for module 'rint'.
18898         * modules/rint-tests: New file.
18899         * tests/test-rint.c: New file.
18900
18901         Tests for module 'remainder'.
18902         * modules/remainder-tests: New file.
18903         * tests/test-remainder.c: New file.
18904
18905         Tests for module 'pow'.
18906         * modules/pow-tests: New file.
18907         * tests/test-pow.c: New file.
18908
18909         Tests for module 'nextafter'.
18910         * modules/nextafter-tests: New file.
18911         * tests/test-nextafter.c: New file.
18912
18913         Tests for module 'modf'.
18914         * modules/modf-tests: New file.
18915         * tests/test-modf.c: New file.
18916
18917         Tests for module 'logb'.
18918         * modules/logb-tests: New file.
18919         * tests/test-logb.c: New file.
18920
18921         Tests for module 'log1p'.
18922         * modules/log1p-tests: New file.
18923         * tests/test-log1p.c: New file.
18924
18925         Tests for module 'log10'.
18926         * modules/log10-tests: New file.
18927         * tests/test-log10.c: New file.
18928
18929         Tests for module 'log'.
18930         * modules/log-tests: New file.
18931         * tests/test-log.c: New file.
18932
18933         Tests for module 'lgamma'.
18934         * modules/lgamma-tests: New file.
18935         * tests/test-lgamma.c: New file.
18936
18937         Tests for module 'ldexp'.
18938         * modules/ldexp-tests: New file.
18939         * tests/test-ldexp.c: New file.
18940
18941         Tests for module 'jn'.
18942         * modules/jn-tests: New file.
18943         * tests/test-jn.c: New file.
18944
18945         Tests for module 'j1'.
18946         * modules/j1-tests: New file.
18947         * tests/test-j1.c: New file.
18948
18949         Tests for module 'j0'.
18950         * modules/j0-tests: New file.
18951         * tests/test-j0.c: New file.
18952
18953         Tests for module 'hypot'.
18954         * modules/hypot-tests: New file.
18955         * tests/test-hypot.c: New file.
18956
18957         Tests for module 'fmod'.
18958         * modules/fmod-tests: New file.
18959         * tests/test-fmod.c: New file.
18960
18961         Tests for module 'fabs'.
18962         * modules/fabs-tests: New file.
18963         * tests/test-fabs.c: New file.
18964
18965         Tests for module 'exp'.
18966         * modules/exp-tests: New file.
18967         * tests/test-exp.c: New file.
18968
18969         Tests for module 'erfc'.
18970         * modules/erfc-tests: New file.
18971         * tests/test-erfc.c: New file.
18972
18973         Tests for module 'erf'.
18974         * modules/erf-tests: New file.
18975         * tests/test-erf.c: New file.
18976
18977         Tests for module 'cosh'.
18978         * modules/cosh-tests: New file.
18979         * tests/test-cosh.c: New file.
18980
18981         Tests for module 'cos'.
18982         * modules/cos-tests: New file.
18983         * tests/test-cos.c: New file.
18984
18985         Tests for module 'copysign'.
18986         * modules/copysign-tests: New file.
18987         * tests/test-copysign.c: New file.
18988
18989         Tests for module 'cbrt'.
18990         * modules/cbrt-tests: New file.
18991         * tests/test-cbrt.c: New file.
18992
18993         Tests for module 'atan2'.
18994         * modules/atan2-tests: New file.
18995         * tests/test-atan2.c: New file.
18996
18997         Tests for module 'atan'.
18998         * modules/atan-tests: New file.
18999         * tests/test-atan.c: New file.
19000
19001         Tests for module 'asin'.
19002         * modules/asin-tests: New file.
19003         * tests/test-asin.c: New file.
19004
19005         Tests for module 'acos'.
19006         * modules/acos-tests: New file.
19007         * tests/test-acos.c: New file.
19008
19009 2010-01-24  Bruno Haible  <bruno@clisp.org>
19010
19011         Fix tests for common <math.h> functions.
19012         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19013         code snippet that references the function pointer, rather than merely
19014         calling the function. Substitute the FUNC_LIBM variable.
19015         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19016         * modules/acos (configure.ac): Likewise.
19017         * modules/asin (configure.ac): Likewise.
19018         * modules/atan (configure.ac): Likewise.
19019         * modules/atan2 (configure.ac): Likewise.
19020         * modules/cbrt (configure.ac): Likewise.
19021         * modules/copysign (configure.ac): Likewise.
19022         * modules/cos (configure.ac): Likewise.
19023         * modules/cosh (configure.ac): Likewise.
19024         * modules/erf (configure.ac): Likewise.
19025         * modules/erfc (configure.ac): Likewise.
19026         * modules/exp (configure.ac): Likewise.
19027         * modules/fabs (configure.ac): Likewise.
19028         * modules/fmod (configure.ac): Likewise.
19029         * modules/hypot (configure.ac): Likewise.
19030         * modules/j0 (configure.ac): Likewise.
19031         * modules/j1 (configure.ac): Likewise.
19032         * modules/jn (configure.ac): Likewise.
19033         * modules/ldexp (configure.ac): Likewise.
19034         * modules/lgamma (configure.ac): Likewise.
19035         * modules/log (configure.ac): Likewise.
19036         * modules/log10 (configure.ac): Likewise.
19037         * modules/log1p (configure.ac): Likewise.
19038         * modules/logb (configure.ac): Likewise.
19039         * modules/modf (configure.ac): Likewise.
19040         * modules/nextafter (configure.ac): Likewise.
19041         * modules/pow (configure.ac): Likewise.
19042         * modules/remainder (configure.ac): Likewise.
19043         * modules/rint (configure.ac): Likewise.
19044         * modules/sin (configure.ac): Likewise.
19045         * modules/sinh (configure.ac): Likewise.
19046         * modules/tan (configure.ac): Likewise.
19047         * modules/tanh (configure.ac): Likewise.
19048         * modules/y0 (configure.ac): Likewise.
19049         * modules/y1 (configure.ac): Likewise.
19050         * modules/yn (configure.ac): Likewise.
19051
19052 2010-01-24  Bruno Haible  <bruno@clisp.org>
19053
19054         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19055         * tests/test-acosl.c (x): New variable.
19056         (main): Store argument in x and fetch it from x.
19057         * tests/test-asinl.c (x): New variable.
19058         (main): Store argument in x and fetch it from x.
19059         * tests/test-atanl.c (x): New variable.
19060         (main): Store argument in x and fetch it from x.
19061         * tests/test-cosl.c (x): New variable.
19062         (main): Store argument in x and fetch it from x.
19063         * tests/test-expl.c (x): New variable.
19064         (main): Store argument in x and fetch it from x.
19065         * tests/test-logl.c (x): New variable.
19066         (main): Store argument in x and fetch it from x.
19067         * tests/test-sinl.c (x): New variable.
19068         (main): Store argument in x and fetch it from x.
19069         * tests/test-sqrtl.c (x): New variable.
19070         (main): Store argument in x and fetch it from x.
19071         * tests/test-tanl.c (x): New variable.
19072         (main): Store argument in x and fetch it from x.
19073
19074 2010-01-24  Bruno Haible  <bruno@clisp.org>
19075
19076         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19077         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19078         assignments to the initial TESTS_ENVIRONMENT.
19079         * doc/gnulib.texi (Unit test modules): Document it.
19080         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19081         TESTS_ENVIRONMENT.
19082         * modules/btowc-tests (Makefile.am): Likewise.
19083         * modules/c-stack-tests (Makefile.am): Likewise.
19084         * modules/c-strcase-tests (Makefile.am): Likewise.
19085         * modules/copy-file-tests (Makefile.am): Likewise.
19086         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19087         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19088         * modules/mbrtowc-tests (Makefile.am): Likewise.
19089         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19090         * modules/mbscasestr-tests (Makefile.am): Likewise.
19091         * modules/mbschr-tests (Makefile.am): Likewise.
19092         * modules/mbscspn-tests (Makefile.am): Likewise.
19093         * modules/mbsinit-tests (Makefile.am): Likewise.
19094         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19095         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19096         * modules/mbspbrk-tests (Makefile.am): Likewise.
19097         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19098         * modules/mbsrchr-tests (Makefile.am): Likewise.
19099         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19100         * modules/mbsspn-tests (Makefile.am): Likewise.
19101         * modules/mbsstr-tests (Makefile.am): Likewise.
19102         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19103         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19104         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19105         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19106         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19107         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19108         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19109         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19110         * modules/wcrtomb-tests (Makefile.am): Likewise.
19111         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19112         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19113         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19114         assignments from TESTS_ENVIRONMENT.
19115         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19116         augmentation.
19117         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19118         * modules/atexit-tests (Makefile.am): Likewise.
19119         * modules/binary-io-tests (Makefile.am): Likewise.
19120         * modules/closein-tests (Makefile.am): Likewise.
19121         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19122         * modules/exclude-tests (Makefile.am): Likewise.
19123         * modules/fflush-tests (Makefile.am): Likewise.
19124         * modules/fpending-tests (Makefile.am): Likewise.
19125         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19126         * modules/freadahead-tests (Makefile.am): Likewise.
19127         * modules/freadptr-tests (Makefile.am): Likewise.
19128         * modules/freadseek-tests (Makefile.am): Likewise.
19129         * modules/fseek-tests (Makefile.am): Likewise.
19130         * modules/fseeko-tests (Makefile.am): Likewise.
19131         * modules/ftell-tests (Makefile.am): Likewise.
19132         * modules/ftello-tests (Makefile.am): Likewise.
19133         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19134         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19135         * modules/lseek-tests (Makefile.am): Likewise.
19136         * modules/parse-duration-tests (Makefile.am): Likewise.
19137         * modules/perror-tests (Makefile.am): Likewise.
19138         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19139         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19140         * modules/pipe-tests (Makefile.am): Likewise.
19141         * modules/pread-tests (Makefile.am): Likewise.
19142         * modules/printf-posix-tests (Makefile.am): Likewise.
19143         * modules/select-tests (Makefile.am): Likewise.
19144         * modules/sigpipe-tests (Makefile.am): Likewise.
19145         * modules/tsearch-tests (Makefile.am): Likewise.
19146         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19147         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19148         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19149         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19150         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19151         * modules/version-etc-tests (Makefile.am): Likewise.
19152         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19153         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19154         * modules/xalloc-die-tests (Makefile.am): Likewise.
19155         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19156         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19157         * modules/xstrtol-tests (Makefile.am): Likewise.
19158         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19159         * modules/yesno-tests (Makefile.am): Likewise.
19160         Suggested by Jim Meyering.
19161
19162 2010-01-24  Bruno Haible  <bruno@clisp.org>
19163
19164         More documentation.
19165         * doc/gnulib.texi (Writing modules): New chapter.
19166         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19167         the new chapter.
19168
19169 2010-01-24  Jim Meyering  <meyering@redhat.com>
19170
19171         maint.mk: do not prepend "./" after filtering
19172         * top/maint.mk (_prepend_srcdir_prefix): New variable
19173         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19174         "./" when $(srcdir) is ".".
19175
19176         define STREQ(a,b) consistently, removing useless parentheses
19177         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19178         since the only risk is that "a" or "b" contains an unparenthesized
19179         comma, but if either did that, STREQ would have 3 or more arguments.
19180         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19181         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19182         * lib/hash-triple.c (STREQ): Likewise.
19183         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19184         * lib/getugroups.c (STREQ): Likewise.
19185
19186 2010-01-23  Jim Meyering  <meyering@redhat.com>
19187
19188         maint.mk: fix syntax-check in a non-srcdir build directory
19189         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19190         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19191
19192 2010-01-22  Jim Meyering  <meyering@redhat.com>
19193
19194         userspec: add unit tests
19195         * tests/test-userspec.c: New file.
19196         * modules/userspec-tests: Likewise.
19197
19198 2010-01-21  Jim Meyering  <meyering@redhat.com>
19199
19200         maint.mk: handle source file names containing "." robustly
19201         * top/maint.mk (_dot_escaped_srcdir): Define.
19202         (VC_LIST): Use it in LHS of sed substitution.
19203
19204 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19205
19206         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19207         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19208         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19209         from a non-srcdir build.
19210
19211 2010-01-20  Eric Blake  <ebb9@byu.net>
19212
19213         warn-on-use: use instead of link-warning
19214         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19215         * modules/unistd (Depends-on, Makefile.am): Likewise.
19216         * modules/arpa_inet (Depends-on): Replace link-warning with
19217         warn-on-use.
19218         (Makefile.am): Update rules accordingly.
19219         * modules/ctype (Depends-on, Makefile.am): Likewise.
19220         * modules/dirent (Depends-on, Makefile.am): Likewise.
19221         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19222         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19223         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19224         * modules/locale (Depends-on, Makefile.am): Likewise.
19225         * modules/math (Depends-on, Makefile.am): Likewise.
19226         * modules/search (Depends-on, Makefile.am): Likewise.
19227         * modules/signal (Depends-on, Makefile.am): Likewise.
19228         * modules/spawn (Depends-on, Makefile.am): Likewise.
19229         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19230         * modules/string (Depends-on, Makefile.am): Likewise.
19231         * modules/strings (Depends-on, Makefile.am): Likewise.
19232         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19233         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19234         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19235         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19236         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19237         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19238         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19239         * modules/wchar (Depends-on, Makefile.am): Likewise.
19240         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19241         should be poisoned.
19242         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19243         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19244         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19245         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19246         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19247         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19248         * m4/math_h.m4 (gl_MATH_H): Likewise.
19249         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19250         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19251         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19252         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19253         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19254         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19255         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19256         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19257         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19259         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19260         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19261         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19262         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19264         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19265         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19266         GL_LINK_WARNING.
19267         * lib/ctype.in.h: Likewise.
19268         * lib/dirent.in.h: Likewise.
19269         * lib/fcntl.in.h: Likewise.
19270         * lib/inttypes.in.h: Likewise.
19271         * lib/langinfo.in.h: Likewise.
19272         * lib/locale.in.h: Likewise.
19273         * lib/math.in.h: Likewise.
19274         * lib/search.in.h: Likewise.
19275         * lib/signal.in.h: Likewise.
19276         * lib/spawn.in.h: Likewise.
19277         * lib/stdio.in.h: Likewise.
19278         * lib/stdlib.in.h: Likewise.
19279         * lib/string.in.h: Likewise.
19280         * lib/strings.in.h: Likewise.
19281         * lib/sys_file.in.h: Likewise.
19282         * lib/sys_ioctl.in.h: Likewise.
19283         * lib/sys_select.in.h: Likewise.
19284         * lib/sys_socket.in.h: Likewise.
19285         * lib/sys_stat.in.h: Likewise.
19286         * lib/sys_times.in.h: Likewise.
19287         * lib/sys_utsname.in.h: Likewise.
19288         * lib/unistd.in.h: Likewise.
19289         * lib/wchar.in.h: Likewise.
19290
19291 2010-01-20  Bruno Haible  <bruno@clisp.org>
19292
19293         Avoid duplicate -lm.
19294         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19295         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19298         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19299         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19300         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19301         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19302         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19303         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19304         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19305         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19306         Reported by Paolo Bonzini.
19307
19308 2010-01-19  Bruno Haible  <bruno@clisp.org>
19309
19310         langinfo, nl_langinfo: Relicense under LGPLv2+.
19311         * modules/langinfo (License): Change to LGPLv2+.
19312         * modules/nl_langinfo (License): Likewise.
19313         Patch by David Lutterkort <lutter@redhat.com>.
19314
19315 2010-01-19  Bruno Haible  <bruno@clisp.org>
19316
19317         Avoid compilation error with cc on OSF/1 5.1.
19318         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19319         statement, not before.
19320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19321
19322 2010-01-18  Bruno Haible  <bruno@clisp.org>
19323
19324         Avoid a link error due to the __printf__ symbol.
19325         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19326         and 2.6.x.
19327         (__format__, __printf__): Remove definitions.
19328         * lib/argp-fmtstream.h: Likewise.
19329         * lib/argp.h: Likewise.
19330         * lib/error.h: Likewise.
19331         * lib/vasnprintf.h: Likewise.
19332         * lib/xprintf.h: Likewise.
19333         * lib/xvasprintf.h: Likewise.
19334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19335
19336 2010-01-18  Bruno Haible  <bruno@clisp.org>
19337
19338         Tests for module 'tanl'.
19339         * modules/tanl-tests: New file.
19340         * tests/test-tanl.c: New file.
19341
19342         Tests for module 'sqrtl'.
19343         * modules/sqrtl-tests: New file.
19344         * tests/test-sqrtl.c: New file.
19345
19346         Tests for module 'sinl'.
19347         * modules/sinl-tests: New file.
19348         * tests/test-sinl.c: New file.
19349
19350         Tests for module 'logl'.
19351         * modules/logl-tests: New file.
19352         * tests/test-logl.c: New file.
19353
19354         Tests for module 'expl'.
19355         * modules/expl-tests: New file.
19356         * tests/test-expl.c: New file.
19357
19358         Tests for module 'cosl'.
19359         * modules/cosl-tests: New file.
19360         * tests/test-cosl.c: New file.
19361
19362         Tests for module 'atanl'.
19363         * modules/atanl-tests: New file.
19364         * tests/test-atanl.c: New file.
19365
19366         Tests for module 'asinl'.
19367         * modules/asinl-tests: New file.
19368         * tests/test-asinl.c: New file.
19369
19370         Tests for module 'acosl'.
19371         * modules/acosl-tests: New file.
19372         * tests/test-acosl.c: New file.
19373
19374         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19375         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19376         tanl): Use the standard gnulib idiom.
19377         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19378         * lib/sinl.c: Likewise.
19379         * lib/tanl.c: Don't include trigl.c.
19380         (kernel_tanl): Make static.
19381         * lib/sincosl.c: Include trigl.h first.
19382         * lib/trigl.c: Likewise.
19383         * m4/acosl.m4: New file.
19384         * m4/asinl.m4: New file.
19385         * m4/atanl.m4: New file.
19386         * m4/cosl.m4: New file.
19387         * m4/expl.m4: New file.
19388         * m4/logl.m4: New file.
19389         * m4/sinl.m4: New file.
19390         * m4/sqrtl.m4: New file.
19391         * m4/tanl.m4: New file.
19392         * m4/mathl.m4: Remove file.
19393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19394         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19395         Don't initialize GNULIB_MATHL.
19396         * modules/acosl: New file.
19397         * modules/asinl: New file.
19398         * modules/atanl: New file.
19399         * modules/cosl: New file.
19400         * modules/expl: New file.
19401         * modules/logl: New file.
19402         * modules/sinl: New file.
19403         * modules/sqrtl: New file.
19404         * modules/tanl: New file.
19405         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19406         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19407         substitute GNULIB_MATHL.
19408         * modules/mathl: Rewritten.
19409         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19410         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19411         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19412         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19413         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19414         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19415         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19416         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19417         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19418
19419 2010-01-18  Bruno Haible  <bruno@clisp.org>
19420
19421         sqrt: Make gl_FUNC_SQRT requirable.
19422         * m4/sqrt.m4: New file.
19423         * modules/sqrt (Files): Add it.
19424         (configure.ac): Invoke gl_FUNC_SQRT.
19425
19426 2010-01-18  Bruno Haible  <bruno@clisp.org>
19427
19428         New modules for common <math.h> functions.
19429         * m4/mathfunc.m4: New file.
19430         * modules/acos: New file.
19431         * modules/asin: New file.
19432         * modules/atan: New file.
19433         * modules/atan2: New file.
19434         * modules/cbrt: New file.
19435         * modules/copysign: New file.
19436         * modules/cos: New file.
19437         * modules/cosh: New file.
19438         * modules/erf: New file.
19439         * modules/erfc: New file.
19440         * modules/exp: New file.
19441         * modules/fabs: New file.
19442         * modules/fmod: New file.
19443         * modules/hypot: New file.
19444         * modules/j0: New file.
19445         * modules/j1: New file.
19446         * modules/jn: New file.
19447         * modules/ldexp: New file.
19448         * modules/lgamma: New file.
19449         * modules/log: New file.
19450         * modules/log10: New file.
19451         * modules/log1p: New file.
19452         * modules/logb: New file.
19453         * modules/modf: New file.
19454         * modules/nextafter: New file.
19455         * modules/pow: New file.
19456         * modules/remainder: New file.
19457         * modules/rint: New file.
19458         * modules/sin: New file.
19459         * modules/sinh: New file.
19460         * modules/sqrt: New file.
19461         * modules/tan: New file.
19462         * modules/tanh: New file.
19463         * modules/y0: New file.
19464         * modules/y1: New file.
19465         * modules/yn: New file.
19466         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19467         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19468         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19469         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19470         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19471         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19472         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19473         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19474         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19475         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19476         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19477         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19478         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19479         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19480         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19481         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19482         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19483         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19484         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19485         * doc/posix-functions/log.texi: Mention the 'log' module.
19486         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19487         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19488         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19489         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19490         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19491         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19492         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19493         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19494         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19495         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19496         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19497         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19498         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19499         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19500         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19501         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19502
19503 2010-01-18  Jim Meyering  <meyering@redhat.com>
19504
19505         ignore-value: relax license to LGPLv2+
19506         * modules/ignore-value (License): Relax to LGPLv2+.
19507
19508         getdate: don't leak when TZ contains two or more '"'s
19509         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19510         double quote in TZ after the first one.
19511
19512         readtokens: do not leak internal token_lengths buffer
19513         * lib/readtokens.c (readtokens): Free the local, lengths,
19514         when the supplied "token_lengths" parameter is NULL.
19515
19516 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19517
19518         Fix a couple of missing LIBTHREAD link failures on AIX.
19519         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19520         $(LIBTHREAD).
19521         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19522
19523         Link test-poll against INET_PTON_LIB.
19524         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19525         for inet_pton on Solaris 10.
19526
19527 2010-01-17  Bruno Haible  <bruno@clisp.org>
19528
19529         unistdio/*-sprintf: Fix typo in module description.
19530         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19531         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19532         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19533         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19534         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19535         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19536         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19538
19539 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19540
19541         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19542         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19543         variables in shell case patterns, for AIX and HP-UX ksh.
19544
19545         Split large sed scripts, for HP-UX sed.
19546         * modules/stdio: Split sed scripts around 50 sed commands,
19547         to avoid HP-UX limit of 99 commands, in the near future.
19548         * modules/string: Likewise.
19549         * modules/unistd: Likewise.
19550
19551         gnulib-tool: avoid writing in the current directory.
19552         * gnulib-tool (func_emit_lib_Makefile_am)
19553         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19554         not in the current directory, so concurrent gnulib-tool
19555         instances do not interfere.
19556
19557 2010-01-16  Jim Meyering  <meyering@redhat.com>
19558
19559         doc: update users.txt
19560         * users.txt: Add grep.
19561         (diffutils, gzip): Update URLs.
19562
19563 2010-01-12  Bruno Haible  <bruno@clisp.org>
19564
19565         posix_spawn: Avoid test failure on Cygwin.
19566         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19567         characters.
19568         Reported by Simon Josefsson.
19569
19570 2010-01-12  Bruno Haible  <bruno@clisp.org>
19571
19572         * tests/test-cond.c (main): When skipping the test, show the reason.
19573
19574 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19575
19576         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19577
19578 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19579
19580         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19581         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19582
19583 2010-01-12  Eric Blake  <ebb9@byu.net>
19584
19585         build: guarantee AS_VAR_IF
19586         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19587         (gl_AS_VAR_IF): Move...
19588         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19589         Reported by Simon Josefsson.
19590
19591 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19592
19593         * lib/stdio.in.h: Fix typo.
19594
19595 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19596
19597         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19598         libgpg-error.
19599
19600 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19601
19602         * tests/test-xalloc-die.sh: Use $EXEEXT.
19603
19604 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19605             Bruno Haible  <bruno@clisp.org>
19606
19607         getlogin, getlogin_r: Avoid test failure.
19608         * tests/test-getlogin.c: Include <stdio.h>.
19609         (main): Skip the test when the function fails because stdin is not a
19610         tty.
19611         * tests/test-getlogin_r.c: Include <stdio.h>.
19612         (main): Skip the test when the function fails because stdin is not a
19613         tty.
19614
19615 2010-01-11  Eric Blake  <ebb9@byu.net>
19616
19617         tests: avoid more large file warnings
19618         * tests/test-fflush.c: Avoid warning about ftell use.
19619         * tests/test-fseek.c: Avoid warning about fseek use.
19620
19621 2010-01-10  Bruno Haible  <bruno@clisp.org>
19622
19623         nproc: Work better on Linux when /proc and /sys are not mounted.
19624         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19625         as lower bound when, on glibc/Linux systems,
19626         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19627         Suggested by Pádraig Brady <P@draigbrady.com>.
19628         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19629
19630         nproc: Refactor.
19631         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19632         extracted from num_processors.
19633         (num_processors): Call it.
19634
19635 2010-01-11  Jim Meyering  <meyering@redhat.com>
19636
19637         utimecmp: avoid new warning from upcoming gcc-4.5.0
19638         * lib/utimecmp.c (BILLION): Define using #define rather than an
19639         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19640
19641 2010-01-11  Eric Blake  <ebb9@byu.net>
19642
19643         math: add portability warnings for classification macros
19644         * modules/math (Depends-on): Add warn-on-use.
19645         (Makefile.am): Provide new substitutions.
19646         * m4/math_h.m4 (gl_MATH_H): Require inline.
19647         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19648         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19649         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19650         implement warnings.
19651
19652         unistd: warn on use of environ without module
19653         * modules/unistd (Depends-on): Add warn-on-use.
19654         (Makefile.am): Provide new substitutions.
19655         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19656         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19657
19658         stdio: warn on suspicious uses
19659         * modules/stdio (Depends-on): Add warn-on-use.
19660         (Makefile.am): Provide new substitutions.
19661         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19662         fseeko.
19663         * lib/stdio.in.h (gets): Always warn on use.
19664         (fseek, ftell): Adjust when warnings are issued, and honor
19665         _GL_NO_LARGE_FILES as a way to silence the warning.
19666         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19667         any warning about large file offsets.
19668         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19669         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19670         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19671         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19672         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19673         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19674         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19675         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19676
19677         warn-on-use: new module
19678         * modules/warn-on-use: New file.
19679         * build-aux/warn-on-use.h: Likewise.
19680         * m4/warn-on-use.m4: Likewise.
19681         * MODULES.html.sh (Support for building): Mention it.
19682
19683 2010-01-10  Bruno Haible  <bruno@clisp.org>
19684
19685         Tests for module 'unistr/u32-strdup'.
19686         * modules/unistr/u32-strdup-tests: New file.
19687         * tests/unistr/test-u32-strdup.c: New file.
19688
19689         Tests for module 'unistr/u16-strdup'.
19690         * modules/unistr/u16-strdup-tests: New file.
19691         * tests/unistr/test-u16-strdup.c: New file.
19692
19693         Tests for module 'unistr/u8-strdup'.
19694         * modules/unistr/u8-strdup-tests: New file.
19695         * tests/unistr/test-u8-strdup.c: New file.
19696         * tests/unistr/test-strdup.h: New file.
19697
19698         Tests for module 'unistr/u32-strncmp'.
19699         * modules/unistr/u32-strncmp-tests: New file.
19700         * tests/unistr/test-u32-strncmp.c: New file.
19701
19702         Tests for module 'unistr/u16-strncmp'.
19703         * modules/unistr/u16-strncmp-tests: New file.
19704         * tests/unistr/test-u16-strncmp.c: New file.
19705
19706         Tests for module 'unistr/u8-strncmp'.
19707         * modules/unistr/u8-strncmp-tests: New file.
19708         * tests/unistr/test-u8-strncmp.c: New file.
19709         * tests/unistr/test-strncmp.h: New file.
19710
19711         Tests for module 'unistr/u32-strcoll'.
19712         * modules/unistr/u32-strcoll-tests: New file.
19713         * tests/unistr/test-u32-strcoll.c: New file.
19714
19715         Tests for module 'unistr/u16-strcoll'.
19716         * modules/unistr/u16-strcoll-tests: New file.
19717         * tests/unistr/test-u16-strcoll.c: New file.
19718
19719         Tests for module 'unistr/u8-strcoll'.
19720         * modules/unistr/u8-strcoll-tests: New file.
19721         * tests/unistr/test-u8-strcoll.c: New file.
19722
19723         Tests for module 'unistr/u32-strcmp'.
19724         * modules/unistr/u32-strcmp-tests: New file.
19725         * tests/unistr/test-u32-strcmp.c: New file.
19726         * tests/unistr/test-u32-strcmp.h: New file.
19727
19728         Tests for module 'unistr/u16-strcmp'.
19729         * modules/unistr/u16-strcmp-tests: New file.
19730         * tests/unistr/test-u16-strcmp.c: New file.
19731         * tests/unistr/test-u16-strcmp.h: New file.
19732
19733         Tests for module 'unistr/u8-strcmp'.
19734         * modules/unistr/u8-strcmp-tests: New file.
19735         * tests/unistr/test-u8-strcmp.c: New file.
19736         * tests/unistr/test-u8-strcmp.h: New file.
19737         * tests/unistr/test-strcmp.h: New file.
19738
19739         Tests for module 'unistr/u32-strncat'.
19740         * modules/unistr/u32-strncat-tests: New file.
19741         * tests/unistr/test-u32-strncat.c: New file.
19742
19743         Tests for module 'unistr/u16-strncat'.
19744         * modules/unistr/u16-strncat-tests: New file.
19745         * tests/unistr/test-u16-strncat.c: New file.
19746
19747         Tests for module 'unistr/u8-strncat'.
19748         * modules/unistr/u8-strncat-tests: New file.
19749         * tests/unistr/test-u8-strncat.c: New file.
19750         * tests/unistr/test-strncat.h: New file.
19751
19752         Tests for module 'unistr/u32-strcat'.
19753         * modules/unistr/u32-strcat-tests: New file.
19754         * tests/unistr/test-u32-strcat.c: New file.
19755
19756         Tests for module 'unistr/u16-strcat'.
19757         * modules/unistr/u16-strcat-tests: New file.
19758         * tests/unistr/test-u16-strcat.c: New file.
19759
19760         Tests for module 'unistr/u8-strcat'.
19761         * modules/unistr/u8-strcat-tests: New file.
19762         * tests/unistr/test-u8-strcat.c: New file.
19763         * tests/unistr/test-strcat.h: New file.
19764
19765         Tests for module 'unistr/u32-stpncpy'.
19766         * modules/unistr/u32-stpncpy-tests: New file.
19767         * tests/unistr/test-u32-stpncpy.c: New file.
19768
19769         Tests for module 'unistr/u16-stpncpy'.
19770         * modules/unistr/u16-stpncpy-tests: New file.
19771         * tests/unistr/test-u16-stpncpy.c: New file.
19772
19773         Tests for module 'unistr/u8-stpncpy'.
19774         * modules/unistr/u8-stpncpy-tests: New file.
19775         * tests/unistr/test-u8-stpncpy.c: New file.
19776         * tests/unistr/test-stpncpy.h: New file.
19777
19778         Tests for module 'unistr/u32-strncpy'.
19779         * modules/unistr/u32-strncpy-tests: New file.
19780         * tests/unistr/test-u32-strncpy.c: New file.
19781
19782         Tests for module 'unistr/u16-strncpy'.
19783         * modules/unistr/u16-strncpy-tests: New file.
19784         * tests/unistr/test-u16-strncpy.c: New file.
19785
19786         Tests for module 'unistr/u8-strncpy'.
19787         * modules/unistr/u8-strncpy-tests: New file.
19788         * tests/unistr/test-u8-strncpy.c: New file.
19789         * tests/unistr/test-strncpy.h: New file.
19790
19791         Tests for module 'unistr/u32-stpcpy'.
19792         * modules/unistr/u32-stpcpy-tests: New file.
19793         * tests/unistr/test-u32-stpcpy.c: New file.
19794
19795         Tests for module 'unistr/u16-stpcpy'.
19796         * modules/unistr/u16-stpcpy-tests: New file.
19797         * tests/unistr/test-u16-stpcpy.c: New file.
19798
19799         Tests for module 'unistr/u8-stpcpy'.
19800         * modules/unistr/u8-stpcpy-tests: New file.
19801         * tests/unistr/test-u8-stpcpy.c: New file.
19802         * tests/unistr/test-stpcpy.h: New file.
19803
19804         Tests for module 'unistr/u32-strcpy'.
19805         * modules/unistr/u32-strcpy-tests: New file.
19806         * tests/unistr/test-u32-strcpy.c: New file.
19807
19808         Tests for module 'unistr/u16-strcpy'.
19809         * modules/unistr/u16-strcpy-tests: New file.
19810         * tests/unistr/test-u16-strcpy.c: New file.
19811
19812         Tests for module 'unistr/u8-strcpy'.
19813         * modules/unistr/u8-strcpy-tests: New file.
19814         * tests/unistr/test-u8-strcpy.c: New file.
19815         * tests/unistr/test-strcpy.h: New file.
19816
19817         Tests for module 'unistr/u32-strnlen'.
19818         * modules/unistr/u32-strnlen-tests: New file.
19819         * tests/unistr/test-u32-strnlen.c: New file.
19820
19821         Tests for module 'unistr/u16-strnlen'.
19822         * modules/unistr/u16-strnlen-tests: New file.
19823         * tests/unistr/test-u16-strnlen.c: New file.
19824
19825         Tests for module 'unistr/u8-strnlen'.
19826         * modules/unistr/u8-strnlen-tests: New file.
19827         * tests/unistr/test-u8-strnlen.c: New file.
19828         * tests/unistr/test-strnlen.h: New file.
19829
19830         Tests for module 'unistr/u32-strlen'.
19831         * modules/unistr/u32-strlen-tests: New file.
19832         * tests/unistr/test-u32-strlen.c: New file.
19833
19834         Tests for module 'unistr/u16-strlen'.
19835         * modules/unistr/u16-strlen-tests: New file.
19836         * tests/unistr/test-u16-strlen.c: New file.
19837
19838         Tests for module 'unistr/u8-strlen'.
19839         * modules/unistr/u8-strlen-tests: New file.
19840         * tests/unistr/test-u8-strlen.c: New file.
19841
19842         Tests for module 'unistr/u32-prev'.
19843         * modules/unistr/u32-prev-tests: New file.
19844         * tests/unistr/test-u32-prev.c: New file.
19845
19846         Tests for module 'unistr/u16-prev'.
19847         * modules/unistr/u16-prev-tests: New file.
19848         * tests/unistr/test-u16-prev.c: New file.
19849
19850         Tests for module 'unistr/u8-prev'.
19851         * modules/unistr/u8-prev-tests: New file.
19852         * tests/unistr/test-u8-prev.c: New file.
19853
19854         Tests for module 'unistr/u32-next'.
19855         * modules/unistr/u32-next-tests: New file.
19856         * tests/unistr/test-u32-next.c: New file.
19857
19858         Tests for module 'unistr/u16-next'.
19859         * modules/unistr/u16-next-tests: New file.
19860         * tests/unistr/test-u16-next.c: New file.
19861
19862         Tests for module 'unistr/u8-next'.
19863         * modules/unistr/u8-next-tests: New file.
19864         * tests/unistr/test-u8-next.c: New file.
19865
19866         Tests for module 'unistr/u32-strmbtouc'.
19867         * modules/unistr/u32-strmbtouc-tests: New file.
19868         * tests/unistr/test-u32-strmbtouc.c: New file.
19869
19870         Tests for module 'unistr/u16-strmbtouc'.
19871         * modules/unistr/u16-strmbtouc-tests: New file.
19872         * tests/unistr/test-u16-strmbtouc.c: New file.
19873
19874         Tests for module 'unistr/u8-strmbtouc'.
19875         * modules/unistr/u8-strmbtouc-tests: New file.
19876         * tests/unistr/test-u8-strmbtouc.c: New file.
19877
19878         Tests for module 'unistr/u32-strmblen'.
19879         * modules/unistr/u32-strmblen-tests: New file.
19880         * tests/unistr/test-u32-strmblen.c: New file.
19881
19882         Tests for module 'unistr/u16-strmblen'.
19883         * modules/unistr/u16-strmblen-tests: New file.
19884         * tests/unistr/test-u16-strmblen.c: New file.
19885
19886         Tests for module 'unistr/u8-strmblen'.
19887         * modules/unistr/u8-strmblen-tests: New file.
19888         * tests/unistr/test-u8-strmblen.c: New file.
19889
19890         Tests for module 'unistr/u32-cpy-alloc'.
19891         * modules/unistr/u32-cpy-alloc-tests: New file.
19892         * tests/unistr/test-u32-cpy-alloc.c: New file.
19893
19894         Tests for module 'unistr/u16-cpy-alloc'.
19895         * modules/unistr/u16-cpy-alloc-tests: New file.
19896         * tests/unistr/test-u16-cpy-alloc.c: New file.
19897
19898         Tests for module 'unistr/u8-cpy-alloc'.
19899         * modules/unistr/u8-cpy-alloc-tests: New file.
19900         * tests/unistr/test-u8-cpy-alloc.c: New file.
19901         * tests/unistr/test-cpy-alloc.h: New file.
19902
19903         Tests for module 'unistr/u32-mbsnlen'.
19904         * modules/unistr/u32-mbsnlen-tests: New file.
19905         * tests/unistr/test-u32-mbsnlen.c: New file.
19906
19907         Tests for module 'unistr/u16-mbsnlen'.
19908         * modules/unistr/u16-mbsnlen-tests: New file.
19909         * tests/unistr/test-u16-mbsnlen.c: New file.
19910
19911         Tests for module 'unistr/u8-mbsnlen'.
19912         * modules/unistr/u8-mbsnlen-tests: New file.
19913         * tests/unistr/test-u8-mbsnlen.c: New file.
19914
19915         Tests for module 'unistr/u32-chr'.
19916         * modules/unistr/u32-chr-tests: New file.
19917         * tests/unistr/test-u32-chr.c: New file.
19918
19919         Tests for module 'unistr/u16-chr'.
19920         * modules/unistr/u16-chr-tests: New file.
19921         * tests/unistr/test-u16-chr.c: New file.
19922
19923         Tests for module 'unistr/u8-chr'.
19924         * modules/unistr/u8-chr-tests: New file.
19925         * tests/unistr/test-u8-chr.c: New file.
19926         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19927
19928         Tests for module 'unistr/u32-cmp2'.
19929         * modules/unistr/u32-cmp2-tests: New file.
19930         * tests/unistr/test-u32-cmp2.c: New file.
19931
19932         Tests for module 'unistr/u16-cmp2'.
19933         * modules/unistr/u16-cmp2-tests: New file.
19934         * tests/unistr/test-u16-cmp2.c: New file.
19935
19936         Tests for module 'unistr/u8-cmp2'.
19937         * modules/unistr/u8-cmp2-tests: New file.
19938         * tests/unistr/test-u8-cmp2.c: New file.
19939         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19940
19941         Tests for module 'unistr/u32-cmp'.
19942         * modules/unistr/u32-cmp-tests: New file.
19943         * tests/unistr/test-u32-cmp.c: New file.
19944
19945         Tests for module 'unistr/u16-cmp'.
19946         * modules/unistr/u16-cmp-tests: New file.
19947         * tests/unistr/test-u16-cmp.c: New file.
19948
19949         Tests for module 'unistr/u8-cmp'.
19950         * modules/unistr/u8-cmp-tests: New file.
19951         * tests/unistr/test-u8-cmp.c: New file.
19952         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19953
19954         Tests for module 'unistr/u32-set'.
19955         * modules/unistr/u32-set-tests: New file.
19956         * tests/unistr/test-u32-set.c: New file.
19957
19958         Tests for module 'unistr/u16-set'.
19959         * modules/unistr/u16-set-tests: New file.
19960         * tests/unistr/test-u16-set.c: New file.
19961
19962         Tests for module 'unistr/u8-set'.
19963         * modules/unistr/u8-set-tests: New file.
19964         * tests/unistr/test-u8-set.c: New file.
19965         * tests/unistr/test-set.h: New file.
19966
19967         Tests for module 'unistr/u32-move'.
19968         * modules/unistr/u32-move-tests: New file.
19969         * tests/unistr/test-u32-move.c: New file.
19970
19971         Tests for module 'unistr/u16-move'.
19972         * modules/unistr/u16-move-tests: New file.
19973         * tests/unistr/test-u16-move.c: New file.
19974
19975         Tests for module 'unistr/u8-move'.
19976         * modules/unistr/u8-move-tests: New file.
19977         * tests/unistr/test-u8-move.c: New file.
19978         * tests/unistr/test-move.h: New file.
19979
19980         Tests for module 'unistr/u32-cpy'.
19981         * modules/unistr/u32-cpy-tests: New file.
19982         * tests/unistr/test-u32-cpy.c: New file.
19983
19984         Tests for module 'unistr/u16-cpy'.
19985         * modules/unistr/u16-cpy-tests: New file.
19986         * tests/unistr/test-u16-cpy.c: New file.
19987
19988         Tests for module 'unistr/u8-cpy'.
19989         * modules/unistr/u8-cpy-tests: New file.
19990         * tests/unistr/test-u8-cpy.c: New file.
19991         * tests/unistr/test-cpy.h: New file.
19992
19993 2010-01-09  Bruno Haible  <bruno@clisp.org>
19994
19995         Tests for module 'unistr/u32-uctomb'.
19996         * modules/unistr/u32-uctomb-tests: New file.
19997         * tests/unistr/test-u32-uctomb.c: New file.
19998
19999         Tests for module 'unistr/u16-uctomb'.
20000         * modules/unistr/u16-uctomb-tests: New file.
20001         * tests/unistr/test-u16-uctomb.c: New file.
20002
20003         Tests for module 'unistr/u8-uctomb'.
20004         * modules/unistr/u8-uctomb-tests: New file.
20005         * tests/unistr/test-u8-uctomb.c: New file.
20006
20007         Tests for module 'unistr/u32-mbtoucr'.
20008         * modules/unistr/u32-mbtoucr-tests: New file.
20009         * tests/unistr/test-u32-mbtoucr.c: New file.
20010
20011         Tests for module 'unistr/u16-mbtoucr'.
20012         * modules/unistr/u16-mbtoucr-tests: New file.
20013         * tests/unistr/test-u16-mbtoucr.c: New file.
20014
20015         Tests for module 'unistr/u8-mbtoucr'.
20016         * modules/unistr/u8-mbtoucr-tests: New file.
20017         * tests/unistr/test-u8-mbtoucr.c: New file.
20018
20019         Tests for module 'unistr/u32-mbtouc'.
20020         * modules/unistr/u32-mbtouc-tests: New file.
20021         * tests/unistr/test-u32-mbtouc.c: New file.
20022
20023         Tests for module 'unistr/u16-mbtouc'.
20024         * modules/unistr/u16-mbtouc-tests: New file.
20025         * tests/unistr/test-u16-mbtouc.c: New file.
20026
20027         Tests for module 'unistr/u8-mbtouc'.
20028         * modules/unistr/u8-mbtouc-tests: New file.
20029         * tests/unistr/test-u8-mbtouc.c: New file.
20030
20031         Tests for module 'unistr/u32-mbtouc-unsafe'.
20032         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20033         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20034         * tests/unistr/test-u32-mbtouc.h: New file.
20035
20036         Tests for module 'unistr/u16-mbtouc-unsafe'.
20037         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20038         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20039         * tests/unistr/test-u16-mbtouc.h: New file.
20040
20041         Tests for module 'unistr/u8-mbtouc-unsafe'.
20042         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20043         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20044         * tests/unistr/test-u8-mbtouc.h: New file.
20045
20046         Tests for module 'unistr/u32-mblen'.
20047         * modules/unistr/u32-mblen-tests: New file.
20048         * tests/unistr/test-u32-mblen.c: New file.
20049
20050         Tests for module 'unistr/u16-mblen'.
20051         * modules/unistr/u16-mblen-tests: New file.
20052         * tests/unistr/test-u16-mblen.c: New file.
20053
20054         Tests for module 'unistr/u8-mblen'.
20055         * modules/unistr/u8-mblen-tests: New file.
20056         * tests/unistr/test-u8-mblen.c: New file.
20057
20058         Tests for module 'unistr/u32-to-u16'.
20059         * modules/unistr/u32-to-u16-tests: New file.
20060         * tests/unistr/test-u32-to-u16.c: New file.
20061
20062         Tests for module 'unistr/u32-to-u8'.
20063         * modules/unistr/u32-to-u8-tests: New file.
20064         * tests/unistr/test-u32-to-u8.c: New file.
20065
20066         Tests for module 'unistr/u16-to-u32'.
20067         * modules/unistr/u16-to-u32-tests: New file.
20068         * tests/unistr/test-u16-to-u32.c: New file.
20069
20070         Tests for module 'unistr/u16-to-u8'.
20071         * modules/unistr/u16-to-u8-tests: New file.
20072         * tests/unistr/test-u16-to-u8.c: New file.
20073
20074         Tests for module 'unistr/u8-to-u32'.
20075         * modules/unistr/u8-to-u32-tests: New file.
20076         * tests/unistr/test-u8-to-u32.c: New file.
20077
20078         Tests for module 'unistr/u8-to-u16'.
20079         * modules/unistr/u8-to-u16-tests: New file.
20080         * tests/unistr/test-u8-to-u16.c: New file.
20081
20082         Tests for module 'unistr/u32-check'.
20083         * modules/unistr/u32-check-tests: New file.
20084         * tests/unistr/test-u32-check.c: New file.
20085
20086         Tests for module 'unistr/u16-check'.
20087         * modules/unistr/u16-check-tests: New file.
20088         * tests/unistr/test-u16-check.c: New file.
20089
20090         Tests for module 'unistr/u8-check'.
20091         * modules/unistr/u8-check-tests: New file.
20092         * tests/unistr/test-u8-check.c: New file.
20093
20094         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20095         (category_equals): New function.
20096         (main): Add more tests.
20097         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20098
20099         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20100
20101 2010-01-10  Bruno Haible  <bruno@clisp.org>
20102
20103         unistr/u*-strcoll: Try harder to distinguish different strings.
20104         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20105         compare s1 and s2 to see if they are different.
20106
20107 2010-01-10  Bruno Haible  <bruno@clisp.org>
20108
20109         unistr/u*-stpncpy: Fix the return value.
20110         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20111         description of the return value consistent with stpncpy in glibc.
20112         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20113         written non-NUL unit.
20114
20115 2010-01-10  Bruno Haible  <bruno@clisp.org>
20116
20117         unistr/u*-next: Add missing dependencies.
20118         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20119         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20120         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20121
20122 2010-01-10  Bruno Haible  <bruno@clisp.org>
20123
20124         unistr/u8-mbsnlen: Fix return value for incomplete character.
20125         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20126         u8_mblen.
20127         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20128         Remove unistr/u8-mblen.
20129         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20130         u16_mblen.
20131         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20132         Remove unistr/u16-mblen.
20133
20134 2010-01-10  Bruno Haible  <bruno@clisp.org>
20135
20136         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20137         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20138         Reported by Brian Gough <bjg@gnu.org> and
20139         Chris Clayton <chris2553@googlemail.com> via
20140         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20141
20142 2010-01-09  Bruno Haible  <bruno@clisp.org>
20143
20144         unistr/u16-to-u32: Reject invalid input.
20145         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20146         u16_mbtouc.
20147         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20148         Remove unistr/u16-mbtouc.
20149
20150         unistr/u16-to-u8: Reject invalid input.
20151         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20152         u16_mbtouc.
20153         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20154         Remove unistr/u16-mbtouc.
20155
20156         unistr/u8-to-u32: Reject invalid input.
20157         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20158         u8_mbtouc.
20159         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20160         Remove unistr/u8-mbtouc.
20161
20162         unistr/u8-to-u16: Reject invalid input.
20163         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20164         u8_mbtouc.
20165         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20166         Remove unistr/u8-mbtouc.
20167
20168 2010-01-09  Bruno Haible  <bruno@clisp.org>
20169
20170         Tests for module 'getlogin'.
20171         * modules/getlogin-tests: New file.
20172         * tests/test-getlogin.c: New file.
20173
20174         New module 'getlogin'.
20175         * lib/unistd.in.h (getlogin): New declaration.
20176         * lib/getlogin.c: New file.
20177         * m4/getlogin.m4: New file.
20178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20179         HAVE_GETLOGIN.
20180         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20181         HAVE_GETLOGIN.
20182         * modules/getlogin: New file.
20183         * doc/posix-functions/getlogin.texi: Mention the new module.
20184         Reported by John W. Eaton <jwe@gnu.org>.
20185
20186 2010-01-09  Bruno Haible  <bruno@clisp.org>
20187
20188         getlogin_r: Support for native Windows.
20189         * lib/getlogin_r.c: Include <windows.h>
20190         (getlogin_r): Implement for native Windows.
20191         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20192         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20193         via John W. Eaton <jwe@gnu.org>.
20194
20195 2010-01-09  Bruno Haible  <bruno@clisp.org>
20196
20197         getlogin_r: Small fixes.
20198         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20199         succeeds.
20200         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20201         before testing whether getlogin_r is declared. No need to set
20202         HAVE_DECL_GETLOGIN_R to 1.
20203         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20204
20205 2010-01-09  Bruno Haible  <bruno@clisp.org>
20206
20207         * lib/unistd.in.h (getlogin_r): Add comment.
20208
20209 2010-01-09  Bruno Haible  <bruno@clisp.org>
20210
20211         Tests for module 'getlogin_r'.
20212         * modules/getlogin_r-tests: New file.
20213         * tests/test-getlogin_r.c: New file.
20214
20215 2010-01-09  Jim Meyering  <meyering@redhat.com>
20216
20217         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20218         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20219         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20220
20221 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20222
20223         * lib/dup2.c (rpl_dup2): Improve comment.
20224
20225 2010-01-08  Eric Blake  <ebb9@byu.net>
20226
20227         maint.mk: allow packages to add makefile @@ exceptions
20228         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20229         (sc_makefile_check): Rename...
20230         (sc_makefile_at_at_check): ...to this, and use hook.
20231
20232         dup2: work around mingw bug
20233         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20234         Reported by Simon Josefsson.
20235
20236 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20237
20238         glob: Fix C++ compilation.
20239         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20240         C++.
20241
20242 2010-01-07  Bruno Haible  <bruno@clisp.org>
20243
20244         Fix indentation of wctype.in.h, broken since 2007-01-06.
20245         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20246
20247 2010-01-07  Bruno Haible  <bruno@clisp.org>
20248
20249         mbslen: Avoid collision with system function.
20250         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20251         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20252         * m4/mbslen.m4: New file.
20253         * modules/mbslen (Files): Add it.
20254         (configure.ac): Invoke gl_MBSLEN.
20255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20256         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20257         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20258         via Ian Beckwith <ianb@erislabs.net>.
20259
20260 2010-01-07  Bruno Haible  <bruno@clisp.org>
20261
20262         dirent: Document the last fix.
20263         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20264
20265 2010-01-07  Bruno Haible  <bruno@clisp.org>
20266
20267         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20268         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20269         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20270         va_list are defined.
20271         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20272         Reported by Eric Blake.
20273
20274 2010-01-07  Bruno Haible  <bruno@clisp.org>
20275
20276         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20277         * modules/xlist (Depends-on): Add 'list',
20278         * modules/xoset (Depends-on): Add 'oset'.
20279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20280
20281 2010-01-07  Bruno Haible  <bruno@clisp.org>
20282
20283         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20284         * doc/posix-functions/strncasecmp.texi: Likewise.
20285
20286 2010-01-07  Bruno Haible  <bruno@clisp.org>
20287
20288         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20289
20290 2010-01-07  John W. Eaton  <jwe@octave.org>
20291
20292         wctype: allow C++ use
20293         * lib/wctype.in.h: Add extern "C" block for C++.
20294
20295 2010-01-06  Eric Blake  <ebb9@byu.net>
20296
20297         maint.mk: detect incorrect GFDL usage
20298         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20299
20300 2010-01-06  Jim Meyering  <meyering@redhat.com>
20301         and Eric Blake  <ebb9@byu.net>
20302
20303         maint.mk: ignore multi-line copyright in NEWS
20304         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20305
20306 2010-01-06  Eric Blake  <ebb9@byu.net>
20307
20308         select: add missing dependency
20309         * modules/select-tests (Depends-on): Move sockets dependency...
20310         * modules/select (Depends-on): ...here.
20311         Reported by Ian Beckwith.
20312
20313         doc: regenerate INSTALL
20314         * doc/INSTALL: Reflect recent autoconf update.
20315         * doc/INSTALL.ISO: Likewise.
20316         * doc/INSTALL.UTF-8: Likewise.
20317
20318         pread: fix compilation on glibc
20319         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20320         Reported by Ralf Wildenhues.
20321
20322         dirent: fix test failure
20323         * lib/dirent.in.h (includes): Guarantee ino_t.
20324         Reported by Ralf Wildenhues.
20325
20326 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20327
20328         linkat, renameat: avoid bad free
20329         * lib/at-func2.c (at_func2): Fix typo.
20330         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20331
20332 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20333
20334         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20335         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20336         to avoid failure of symlink test later.
20337
20338 2010-01-06  Eric Blake  <ebb9@byu.net>
20339
20340         stdio, unistd: guarantee ssize_t
20341         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20342         2008 are exposed when needed.
20343         * lib/stdio.in.h (includes): Likewise.
20344         Reported by Ralf Wildenhues.
20345
20346 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20347
20348         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20349         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20350         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20351
20352 2010-01-06  Jim Meyering  <meyering@redhat.com>
20353
20354         readtokens: this module *does* require xalloc.h
20355         It uses only functions that were omitted by the old syntax-check rule.
20356         * lib/readtokens.c: Include "xalloc.h" once again.
20357         * modules/readtokens (Depends-on): Add xalloc.
20358         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20359
20360 2010-01-05  Eric Blake  <ebb9@byu.net>
20361
20362         maint: support 'make announcement' from a VPATH build
20363         * top/maint.mk (announcement): Look for correct NEWS file.
20364
20365 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20366
20367         utimens (fdutimens): ignore a negative FD, per contract
20368         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20369         when we have a valid file descriptor.  Otherwise, using a brand
20370         new glibc (with just-patched futimens that now fails with EBADF)
20371         would cause this function to fail with ENOSYS.
20372         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20373         See also http://bugzilla.redhat.com/552320.
20374
20375 2010-01-05  Eric Blake  <ebb9@byu.net>
20376
20377         strcase: document what it provides
20378         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20379         gnulib module.
20380         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20381         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20382
20383 2010-01-05  Jim Meyering  <meyering@redhat.com>
20384
20385         maint: remove useless inclusions of "xalloc.h"
20386         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20387         * lib/readtokens.c: Likewise.
20388         * lib/same.c: Likewise.
20389         * modules/getloadavg (Depends-on): Remove xalloc.
20390         * modules/readtokens: Likewise.
20391         * modules/same: Likewise.
20392
20393         maint.mk: include 4 more function names in alloca.h-checking regexp
20394         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20395         regexp.  Before, we would give a false-positive (saying alloca.h
20396         is included unnecessarily) when the only uses involved omitted symbols.
20397
20398         xalloc.h: use consistent formatting
20399         * lib/xalloc.h: Move declarations to start in the first column.
20400
20401 2010-01-05  Eric Blake  <ebb9@byu.net>
20402
20403         mkdir: avoid xalloc
20404         * lib/mkdir.c (includes): Drop unused header.
20405         Reported by John W. Eaton.
20406
20407 2010-01-04  Jim Meyering  <meyering@redhat.com>
20408
20409         nl_langinfo: avoid configure-time syntax error
20410         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20411         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20412         the empty string.  Don't let that provoke a shell syntax error.
20413
20414         regcomp, regexec, fnmatch: avoid array bounds read error
20415         * lib/regcomp.c (build_equiv_class): From glibc:
20416         Use only the low 24 bits of a findidx return value as an index
20417         into the weights array.  Patch by Ulrich Drepper:
20418         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20419         * lib/regexec.c (check_node_accept_bytes): Likewise.
20420         * lib/fnmatch_loop.c (FCT): Likewise.
20421
20422         regcomp: skip collseq lookup when there are no rules
20423         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20424         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20425
20426         regcomp: recognize ill-formed { } expressions
20427         * lib/regcomp.c (parse_dup_op): From glibc:
20428         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20429
20430         regcomp: fix typo in comment
20431         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20432         s/satisfy/satisfies/.
20433
20434         regcomp: sync from glibc: remove dead store
20435         * lib/regcomp.c (duplicate_node_closure): Remove useless
20436         search_duplicated_node call and dead store.
20437
20438         regcomp: sync from glibc; always use nl_langinfo
20439         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20440         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20441         * modules/regex (Depends-on): Add nl_langinfo.
20442
20443 2010-01-04  Eric Blake  <ebb9@byu.net>
20444
20445         fdopendir: fix configure test
20446         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20447
20448 2010-01-01  Bruno Haible  <bruno@clisp.org>
20449
20450         wchar: Remove unused configure check.
20451         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20452
20453 2010-01-01  Eric Blake  <ebb9@byu.net>
20454
20455         headers: make check of system header explicit
20456         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20457         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20458         ourselves.
20459         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20461         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20462         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20463         internals.
20464         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20465         missing.
20466         Suggested by Bruno Haible.
20467
20468 2010-01-01  Jim Meyering  <meyering@redhat.com>
20469
20470         ChangeLog: tweak to eliminate unnecessary copyright line
20471         * ChangeLog: Remove a copyright line that was mistakenly updated
20472         by today's update-copyright run.  Reported by Eric Blake.
20473
20474         test-update-copyright: don't let envvar setting cause test failure
20475         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20476
20477 2010-01-01  Bruno Haible  <bruno@clisp.org>
20478
20479         localename: Avoid gcc warning.
20480         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20481         function if it is not used.
20482
20483 2010-01-01  Jim Meyering  <meyering@redhat.com>
20484
20485         update nearly all FSF copyright year lists to include 2010
20486         Use the same procedure as for 2009, outlined in
20487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20488
20489         version-etc: set COPYRIGHT_YEAR to 2010
20490         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20491
20492 2009-12-31  Eric Blake  <ebb9@byu.net>
20493
20494         doc: correct availability of cygwin 1.5.x getopt
20495         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20496         variables.
20497         * doc/posix-functions/opterr.texi (opterr): Likewise.
20498         * doc/posix-functions/optind.texi (optind): Likewise.
20499         * doc/posix-functions/optopt.texi (optopt): Likewise.
20500         * doc/posix-functions/tzname.texi (tzname): Likewise.
20501
20502         openat: update maintainer
20503         * modules/openat (Maintainer): Add myself.
20504
20505         utimens: avoid shadowing warning
20506         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20507         buffers into one, to avoid shadowing, as well as avoiding a
20508         redundant stat.
20509         Reported by Jim Meyering.
20510
20511         test-dup2: avoid compiler warning
20512         * tests/test-dup2.c (is_inheritable): Only define if used.
20513
20514 2010-01-01  Bruno Haible  <bruno@clisp.org>
20515
20516         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20517         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20518         defined, use wctomb instead of wcrtomb.
20519
20520 2010-01-01  Bruno Haible  <bruno@clisp.org>
20521
20522         iconv: Reject native Solaris iconv.
20523         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20524         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20525
20526 2009-12-31  Bruno Haible  <bruno@clisp.org>
20527
20528         * tests/test-signal.c (main): Remove test of 'SIG'.
20529
20530 2009-12-31  Bruno Haible  <bruno@clisp.org>
20531
20532         spawn: Fix incomplete fix.
20533         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20534         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20535         warnings for GNULIB_POSIXCHECK again.
20536         Reported by Eric Blake.
20537
20538 2009-12-31  Bruno Haible  <bruno@clisp.org>
20539
20540         Avoid namespace pollution on glibc systems.
20541         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20542         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20543         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20544         glibc systems.
20545
20546 2009-12-31  Bruno Haible  <bruno@clisp.org>
20547
20548         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20549         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20550         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20551         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20552         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20553         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20554         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20555
20556 2009-12-31  Bruno Haible  <bruno@clisp.org>
20557
20558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20559         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20560         afterwards.
20561
20562 2009-12-31  Bruno Haible  <bruno@clisp.org>
20563
20564         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20565         SYS_UTSNAME_H.
20566
20567 2009-12-31  Bruno Haible  <bruno@clisp.org>
20568
20569         spawn: Fix misapplied patch.
20570         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20571         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20572         warnings for GNULIB_POSIXCHECK.
20573
20574 2009-12-31  Bruno Haible  <bruno@clisp.org>
20575
20576         times: Update after sys_times changed.
20577         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20578         * modules/times (Files): Add it.
20579         (configure.ac): Invoke gl_FUNC_TIMES.
20580
20581 2009-12-31  Bruno Haible  <bruno@clisp.org>
20582
20583         Use AC_C_INLINE where necessary.
20584         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20585         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20587         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20588         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20589         * m4/mbiter.m4 (gl_MBITER): Likewise.
20590         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20591         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20592         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20593         * modules/u64 (configure.ac): Likewise.
20594
20595 2009-12-31  Bruno Haible  <bruno@clisp.org>
20596
20597         Use AC_C_INLINE instead of module 'inline' where possible.
20598         * modules/inline (Description): Clarify purpose.
20599         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20600         * modules/count-one-bits (Depends-on): Remove inline.
20601         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20602         * modules/openat (Depends-on): Remove inline.
20603         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20604         instead of depending on module 'inline'.
20605         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20606         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20607         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20608         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20609         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20610         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20611         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20612         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20613         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20614         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20615         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20616         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20617         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20618         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20619         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20620         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20621         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20622         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20623         Likewise.
20624         * modules/unictype/property-ascii-hex-digit (Depends-on,
20625         configure.ac): Likewise.
20626         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20627         configure.ac): Likewise.
20628         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20629         configure.ac): Likewise.
20630         * modules/unictype/property-bidi-block-separator (Depends-on,
20631         configure.ac): Likewise.
20632         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20633         configure.ac): Likewise.
20634         * modules/unictype/property-bidi-common-separator (Depends-on,
20635         configure.ac): Likewise.
20636         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20637         Likewise.
20638         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20639         configure.ac): Likewise.
20640         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20641         configure.ac): Likewise.
20642         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20643         configure.ac): Likewise.
20644         * modules/unictype/property-bidi-european-digit (Depends-on,
20645         configure.ac): Likewise.
20646         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20647         configure.ac): Likewise.
20648         * modules/unictype/property-bidi-left-to-right (Depends-on,
20649         configure.ac): Likewise.
20650         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20651         configure.ac): Likewise.
20652         * modules/unictype/property-bidi-other-neutral (Depends-on,
20653         configure.ac): Likewise.
20654         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20655         Likewise.
20656         * modules/unictype/property-bidi-segment-separator (Depends-on,
20657         configure.ac): Likewise.
20658         * modules/unictype/property-bidi-whitespace (Depends-on,
20659         configure.ac): Likewise.
20660         * modules/unictype/property-combining (Depends-on, configure.ac):
20661         Likewise.
20662         * modules/unictype/property-composite (Depends-on, configure.ac):
20663         Likewise.
20664         * modules/unictype/property-currency-symbol (Depends-on,
20665         configure.ac): Likewise.
20666         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20667         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20668         Likewise.
20669         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20670         configure.ac): Likewise.
20671         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20672         Likewise.
20673         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20674         Likewise.
20675         * modules/unictype/property-extender (Depends-on, configure.ac):
20676         Likewise.
20677         * modules/unictype/property-format-control (Depends-on, configure.ac):
20678         Likewise.
20679         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20680         Likewise.
20681         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20682         Likewise.
20683         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20684         Likewise.
20685         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20686         Likewise.
20687         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20688         Likewise.
20689         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20690         Likewise.
20691         * modules/unictype/property-id-start (Depends-on, configure.ac):
20692         Likewise.
20693         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20694         Likewise.
20695         * modules/unictype/property-ids-binary-operator (Depends-on,
20696         configure.ac): Likewise.
20697         * modules/unictype/property-ids-trinary-operator (Depends-on,
20698         configure.ac): Likewise.
20699         * modules/unictype/property-ignorable-control (Depends-on,
20700         configure.ac): Likewise.
20701         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20702         Likewise.
20703         * modules/unictype/property-join-control (Depends-on, configure.ac):
20704         Likewise.
20705         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20706         Likewise.
20707         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20708         Likewise.
20709         * modules/unictype/property-logical-order-exception (Depends-on,
20710         configure.ac): Likewise.
20711         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20712         Likewise.
20713         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20714         * modules/unictype/property-non-break (Depends-on, configure.ac):
20715         Likewise.
20716         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20717         Likewise.
20718         * modules/unictype/property-numeric (Depends-on, configure.ac):
20719         Likewise.
20720         * modules/unictype/property-other-alphabetic (Depends-on,
20721         configure.ac): Likewise.
20722         * modules/unictype/property-other-default-ignorable-code-point
20723         (Depends-on, configure.ac): Likewise.
20724         * modules/unictype/property-other-grapheme-extend (Depends-on,
20725         configure.ac): Likewise.
20726         * modules/unictype/property-other-id-continue (Depends-on,
20727         configure.ac): Likewise.
20728         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20729         Likewise.
20730         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20731         Likewise.
20732         * modules/unictype/property-other-math (Depends-on, configure.ac):
20733         Likewise.
20734         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20735         Likewise.
20736         * modules/unictype/property-paired-punctuation (Depends-on,
20737         configure.ac): Likewise.
20738         * modules/unictype/property-paragraph-separator (Depends-on,
20739         configure.ac): Likewise.
20740         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20741         Likewise.
20742         * modules/unictype/property-pattern-white-space (Depends-on,
20743         configure.ac): Likewise.
20744         * modules/unictype/property-private-use (Depends-on, configure.ac):
20745         Likewise.
20746         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20747         Likewise.
20748         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20749         Likewise.
20750         * modules/unictype/property-radical (Depends-on, configure.ac):
20751         Likewise.
20752         * modules/unictype/property-sentence-terminal (Depends-on,
20753         configure.ac): Likewise.
20754         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20755         Likewise.
20756         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20757         * modules/unictype/property-terminal-punctuation (Depends-on,
20758         configure.ac): Likewise.
20759         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20760         Likewise.
20761         * modules/unictype/property-unassigned-code-value (Depends-on,
20762         configure.ac): Likewise.
20763         * modules/unictype/property-unified-ideograph (Depends-on,
20764         configure.ac): Likewise.
20765         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20766         Likewise.
20767         * modules/unictype/property-variation-selector (Depends-on,
20768         configure.ac): Likewise.
20769         * modules/unictype/property-white-space (Depends-on, configure.ac):
20770         Likewise.
20771         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20772         Likewise.
20773         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20774         Likewise.
20775         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20776         Likewise.
20777         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20778         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20779         Likewise.
20780
20781 2009-12-31  Bruno Haible  <bruno@clisp.org>
20782
20783         Remove unnecessary AC_C_INLINE invocation.
20784         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20785         since 2009-08-21.
20786
20787 2009-12-31  Jim Meyering  <meyering@redhat.com>
20788
20789         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20790         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20791         With this change, we can all remove the gpg_key_ID = ... definition
20792         from our respective cfg.mk files.
20793
20794         maint.mk: create announcement template in ~/, not in /tmp
20795         * top/maint.mk (emit_upload_commands): Adjust.
20796         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20797         Remove temporary file, .ci-msg.
20798
20799 2009-12-31  Eric Blake  <ebb9@byu.net>
20800
20801         link-warning: always build headers with link warnings
20802         * modules/arpa_inet (Makefile.am): Always build replacement
20803         header.
20804         * modules/ctype (Makefile.am): Likewise.
20805         * modules/dirent (Makefile.am): Likewise.
20806         * modules/inttypes (Makefile.am): Likewise.
20807         * modules/langinfo (Makefile.am): Likewise.
20808         * modules/locale (Makefile.am): Likewise.
20809         * modules/spawn (Makefile.am): Likewise.
20810         * modules/sys_file (Makefile.am): Likewise.
20811         * modules/sys_ioctl (Makefile.am): Likewise.
20812         * modules/sys_select (Makefile.am): Likewise.
20813         * modules/sys_socket (Makefile.am): Likewise.
20814         * modules/sys_times (Makefile.am): Likewise.
20815         * modules/sys_utsname (Makefile.am): Likewise.
20816         * modules/sys_wait (Makefile.am): Likewise.
20817         * modules/wchar (Makefile.am): Likewise.
20818         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20819         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20820         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20821         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20822         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20823         Likewise.
20824         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20825         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20826         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20827         Likewise.
20828         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20829         Likewise.
20830         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20832         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20834         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20835         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20836         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20837         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20838         (gl_WCHAR_H_DEFAULTS): Likewise.
20839
20840 2009-12-31  Eric Blake  <ebb9@byu.net>
20841
20842         signal, spawn: use link warnings
20843         * lib/signal.in.h (sigset_t): Make unconditional.
20844         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20845         (sigpending, sigprocmask, sigaction): Add link warnings.
20846         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20847         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20848         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20849         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20850         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20851         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20852         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20853         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20854         (posix_spawn_file_actions_destroy)
20855         (posix_spawn_file_actions_addopen)
20856         (posix_spawn_file_actions_addclose)
20857         (posix_spawn_file_actions_adddup2): Likewise.
20858         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20859         * tests/test-signal.c (main): Enhance test.
20860
20861         spawn: improve wrapper support
20862         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20863         (gl_SPAWN_H_DEFAULTS): New defaults.
20864         * modules/spawn (Makefile.am): Substitute them.
20865         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20866         Only declare if missing or broken.
20867
20868         sys_times, sys_utsname: use include_next
20869         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20870         header.
20871         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20872         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20873         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20874         * modules/sys_times (Depends-on): Add include_next.
20875         (Makefile.am): Substitute additional values.
20876         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20877         * lib/sys_times.in.h (includes): Include native header, if
20878         available.
20879         * lib/sys_utsname.in.h (includes): Likewise.
20880         * tests/test-sys_times.c (main): Enhance test.
20881
20882         fdutimensat: revert prior patch
20883         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20884         utimens.h.
20885         Reported by Bruno Haible.
20886
20887 2009-12-30  Eric Blake  <ebb9@byu.net>
20888
20889         sys_wait: drop link-warning dependency
20890         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20891         link-warning efforts.
20892         * lib/sys_wait.in.h: Likewise.
20893
20894         fdutimensat: remove bogus dependency
20895         * modules/fdutimensat (Depends-on): Drop inline.
20896
20897         unistd: fix typo
20898         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20899
20900 2009-12-30  Bruno Haible  <bruno@clisp.org>
20901
20902         Fix compilation error with Solaris cc.
20903         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20904         * lib/unicase/u16-is-invariant.c: Likewise.
20905         * lib/unicase/u32-is-invariant.c: Likewise.
20906         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20907
20908 2009-12-30  Bruno Haible  <bruno@clisp.org>
20909
20910         Fix test crash.
20911         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20912         locales.
20913         Reported by Simon Josefsson <simon@josefsson.org>.
20914
20915 2009-12-30  Bruno Haible  <bruno@clisp.org>
20916
20917         Fix compilation error on most platforms.
20918         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20919         Reported by Simon Josefsson <simon@josefsson.org>
20920         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20921
20922 2009-12-30  Eric Blake  <ebb9@byu.net>
20923
20924         futimens, utimensat: work around ntfs-3g bug
20925         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20926         a ctime bug is present, and expand workaround to cover ntfs-3g.
20927         * lib/utimens.c (fdutimens, lutimens): Likewise.
20928         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20929         (validate_timespec): Adjust return value.
20930         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20931         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20932         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20933
20934 2009-12-29  Eric Blake  <ebb9@byu.net>
20935
20936         link-warning: make usage consistent
20937         * modules/ctype (Depends-on): Add link-warning.
20938         (Makefile.am): Update rules accordingly.
20939         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20940         * modules/locale (Depends-on, Makefile.am): Likewise.
20941         * modules/sys_file (Makefile.am): Likewise.
20942         * modules/getopt-posix (Makefile.am): Delete unused link warning
20943         efforts.
20944         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20945         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20946         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20947         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20948
20949         stdio: remove unused variables
20950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20952         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20953
20954         tests: test more substitute headers
20955         * modules/ctype-tests: New file.
20956         * modules/dirent-tests: Likewise.
20957         * modules/spawn-tests: Likewise.
20958         * modules/sys_file-tests: Likewise.
20959         * modules/sys_ioctl-tests: Likewise.
20960         * modules/sys_wait-tests: Likewise.
20961         * tests/test-ctype.c: Likewise.
20962         * tests/test-dirent.c: Likewise.
20963         * tests/test-spawn.c: Likewise.
20964         * tests/test-sys_file.c: Likewise.
20965         * tests/test-sys_ioctl.c: Likewise.
20966         * tests/test-sys_wait.c: Likewise.
20967         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20968         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20969         whether or not flock is in use.
20970
20971         tests: remove License section from module
20972         * modules/arpa_inet-tests: Remove unneeded section.
20973         * modules/byteswap-tests: Likewise.
20974         * modules/ceilf-tests: Likewise.
20975         * modules/ceill-tests: Likewise.
20976         * modules/crypto/des-tests: Likewise.
20977         * modules/crypto/gc-arcfour-tests: Likewise.
20978         * modules/crypto/gc-arctwo-tests: Likewise.
20979         * modules/crypto/gc-des-tests: Likewise.
20980         * modules/crypto/gc-hmac-md5-tests: Likewise.
20981         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20982         * modules/crypto/gc-md2-tests: Likewise.
20983         * modules/crypto/gc-md4-tests: Likewise.
20984         * modules/crypto/gc-md5-tests: Likewise.
20985         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20986         * modules/crypto/gc-rijndael-tests: Likewise.
20987         * modules/crypto/gc-sha1-tests: Likewise.
20988         * modules/crypto/gc-tests: Likewise.
20989         * modules/crypto/md2-tests: Likewise.
20990         * modules/crypto/md4-tests: Likewise.
20991         * modules/fcntl-h-tests: Likewise.
20992         * modules/floorf-tests: Likewise.
20993         * modules/floorl-tests: Likewise.
20994         * modules/frexp-nolibm-tests: Likewise.
20995         * modules/frexp-tests: Likewise.
20996         * modules/frexpl-nolibm-tests: Likewise.
20997         * modules/frexpl-tests: Likewise.
20998         * modules/getaddrinfo-tests: Likewise.
20999         * modules/inttypes-tests: Likewise.
21000         * modules/isfinite-tests: Likewise.
21001         * modules/isinf-tests: Likewise.
21002         * modules/ldexpl-tests: Likewise.
21003         * modules/locale-tests: Likewise.
21004         * modules/math-tests: Likewise.
21005         * modules/netdb-tests: Likewise.
21006         * modules/netinet_in-tests: Likewise.
21007         * modules/printf-frexp-tests: Likewise.
21008         * modules/printf-frexpl-tests: Likewise.
21009         * modules/priv-set-tests: Likewise.
21010         * modules/random_r-tests: Likewise.
21011         * modules/round-tests: Likewise.
21012         * modules/roundf-tests: Likewise.
21013         * modules/roundl-tests: Likewise.
21014         * modules/search-tests: Likewise.
21015         * modules/select-tests: Likewise.
21016         * modules/signal-tests: Likewise.
21017         * modules/stdbool-tests: Likewise.
21018         * modules/stddef-tests: Likewise.
21019         * modules/stdint-tests: Likewise.
21020         * modules/stdio-tests: Likewise.
21021         * modules/stdlib-tests: Likewise.
21022         * modules/string-tests: Likewise.
21023         * modules/strings-tests: Likewise.
21024         * modules/sys_select-tests: Likewise.
21025         * modules/sys_socket-tests: Likewise.
21026         * modules/sys_stat-tests: Likewise.
21027         * modules/sys_time-tests: Likewise.
21028         * modules/sys_utsname-tests: Likewise.
21029         * modules/sysexits-tests: Likewise.
21030         * modules/time-tests: Likewise.
21031         * modules/trunc-tests: Likewise.
21032         * modules/truncf-tests: Likewise.
21033         * modules/truncl-tests: Likewise.
21034         * modules/tsearch-tests: Likewise.
21035         * modules/unistd-tests: Likewise.
21036         * modules/wchar-tests: Likewise.
21037         * modules/wctype-tests: Likewise.
21038
21039         tests: fix license on several tests
21040         * tests/test-des.c: Update to GPLv3+.
21041         * tests/test-flock.c: Likewise.
21042         * tests/test-fsync.c: Likewise.
21043         * tests/test-futimens.h: Likewise.
21044         * tests/test-gc-arcfour.c: Likewise.
21045         * tests/test-gc-arctwo.c: Likewise.
21046         * tests/test-gc-des.c: Likewise.
21047         * tests/test-gc-hmac-md5.c: Likewise.
21048         * tests/test-gc-hmac-sha1.c: Likewise.
21049         * tests/test-gc-md2.c: Likewise.
21050         * tests/test-gc-md4.c: Likewise.
21051         * tests/test-gc-md5.c: Likewise.
21052         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21053         * tests/test-gc-rijndael.c: Likewise.
21054         * tests/test-gc-sha1.c: Likewise.
21055         * tests/test-gc.c: Likewise.
21056         * tests/test-getcwd.c: Likewise.
21057         * tests/test-link.c: Likewise.
21058         * tests/test-link.h: Likewise.
21059         * tests/test-lutimens.h: Likewise.
21060         * tests/test-md2.c: Likewise.
21061         * tests/test-md4.c: Likewise.
21062         * tests/test-mkdir.h: Likewise.
21063         * tests/test-rename.c: Likewise.
21064         * tests/test-rename.h: Likewise.
21065         * tests/test-safe-alloc.c: Likewise.
21066         * tests/test-utimens-common.h: Likewise.
21067         * tests/test-utimens.h: Likewise.
21068
21069         maint: sync license texts
21070         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21071         * doc/gpl-3.0.texi: Revert copyright year update.
21072         * doc/lgpl-3.0.texi: Likewise.
21073
21074 2009-12-29  Jim Meyering  <meyering@redhat.com>
21075
21076         update nearly all FSF copyright year lists to include 2009
21077         The files named by the following are exempted:
21078             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21079               test -f "$dst" && { echo "$dst"; continue; }
21080               test -d "$dst" || continue
21081               echo "$dst"/$(basename "$src")
21082             done > exempt
21083             git ls-files tests/unictype >> exempt
21084         In the remaining files, convert to all-interval notation if
21085         - there is already at least one year interval like 2000-2003
21086         - the file is maintained by me
21087         - the file is in lib/uni*/, where that style already prevails
21088         Otherwise, use update-copyright's default.
21089
21090 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21091         and Eric Blake  <ebb9@byu.net>
21092
21093         tests: don't require debug system() to pass
21094         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21095         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21096         * tests/test-unlink.h (test_unlink_func): Likewise.
21097         * tests/test-fstatat.c (main): ...into callers.
21098         * tests/test-lstat.c (main): Likewise.
21099         * tests/test-rmdir.c (main): Likewise.
21100         * tests/test-unlink.c (main): Likewise.
21101         * tests/test-unlinkat.c (main): Likewise.
21102         * tests/test-areadlink-with-size.c (main): Don't require a
21103         debug-only system call to pass, aiding cross-testing to mingw.
21104         * tests/test-areadlink.c (main): Likewise.
21105         * tests/test-areadlinkat-with-size.c (main): Likewise.
21106         * tests/test-areadlinkat.c (main): Likewise.
21107         * tests/test-canonicalize-lgpl.c (main): Likewise.
21108         * tests/test-canonicalize.c (main): Likewise.
21109         * tests/test-chown.c (main): Likewise.
21110         * tests/test-fchownat.c (main): Likewise.
21111         * tests/test-lchown.c (main): Likewise.
21112         * tests/test-fdutimensat.c (main): Likewise.
21113         * tests/test-futimens.c (main): Likewise.
21114         * tests/test-link.c (main): Likewise.
21115         * tests/test-linkat.c (main): Likewise.
21116         * tests/test-mkdir.c (main): Likewise.
21117         * tests/test-mkdirat.c (main): Likewise.
21118         * tests/test-mkfifo.c (main): Likewise.
21119         * tests/test-mkfifoat.c (main): Likewise.
21120         * tests/test-mknod.c (main): Likewise.
21121         * tests/test-readlink.c (main): Likewise.
21122         * tests/test-remove.c (main): Likewise.
21123         * tests/test-rename.c (main): Likewise.
21124         * tests/test-renameat.c (main): Likewise.
21125         * tests/test-symlink.c (main): Likewise.
21126         * tests/test-symlinkat.c (main): Likewise.
21127         * tests/test-utimens.c (main): Likewise.
21128         * tests/test-utimensat.c (main): Likewise.
21129
21130 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21131
21132         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21133         on $(UNUSED_PARAMETER_H) to avoid build failure.
21134
21135 2009-12-28  Jim Meyering  <meyering@redhat.com>
21136
21137         update-copyright: you may specify a max. line length other than 72
21138         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21139
21140         maint: use consistent FSF copyright line syntax
21141         * lib/posixtm.c: Add missing comma in FSF copyright line.
21142         * lib/posixtm.h: Likewise.
21143         * lib/getugroups.c: Add missing ", Inc.".
21144
21145         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21146         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21147         FSF copyright line.  Remove trailing blanks.
21148
21149 2009-12-28  Eric Blake  <ebb9@byu.net>
21150
21151         test-dup2: reduce dependencies
21152         * modules/cloexec (Configure.ac): Set witness.
21153         * modules/dup2-tests (Depends-on): Drop cloexec.
21154         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21155         not present.
21156         Suggested by Bruno Haible.
21157
21158 2009-12-26  Bruno Haible  <bruno@clisp.org>
21159
21160         Remove an unneeded dependency.
21161         * modules/fseterr (Depends-on): Remove dup2.
21162
21163 2009-12-26  Eric Blake  <ebb9@byu.net>
21164
21165         tests: use macros.h in more places
21166         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21167         (ASSERT_STREAM): Provide default of stderr.
21168         * tests/test-dirent-safer.c: Include macros.h, using alternate
21169         stream for assertions.
21170         * tests/test-dup-safer.c: Likewise.
21171         * tests/test-freopen-safer.c: Likewise.
21172         * tests/test-getopt.c: Likewise.
21173         * tests/test-openat-safer.c: Likewise.
21174         * tests/test-pipe.c: Likewise.
21175         * tests/test-popen-safer.c: Likewise.
21176         * modules/dirent-safer-tests (Files): Include macros.h.
21177         * modules/unistd-safer-tests (Files): Likewise.
21178         * modules/freopen-safer-tests (Files): Likewise.
21179         * modules/getopt-posix-tests (Files): Likewise.
21180         * modules/openat-safer-tests (Files): Likewise.
21181         * modules/pipe-tests (Files): Likewise.
21182
21183 2009-12-26  Bruno Haible  <bruno@clisp.org>
21184
21185         javacomp: Portability fix.
21186         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21187         that it also works on Solaris.
21188
21189 2009-12-26  Bruno Haible  <bruno@clisp.org>
21190
21191         localename: Fix storage allocation of gl_locale_name_thread's result.
21192         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21193         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21194         all platforms that have 'uselocale'.
21195         (gl_locale_name_thread_unsafe): New function, extracted from
21196         gl_locale_name_thread.
21197         (gl_locale_name_thread): Call struniq on all platforms that have
21198         'uselocale'.
21199         * tests/test-localename.c (test_locale_name_thread): Check that the
21200         resulting strings are permanently allocated.
21201         * modules/localename-tests (Depends-on): Add strdup.
21202
21203 2009-12-26  Bruno Haible  <bruno@clisp.org>
21204
21205         * tests/test-localename.c (categories): Fill in the strings.
21206
21207 2009-12-26  Jim Meyering  <meyering@redhat.com>
21208
21209         isdir: complete the removal of m4/isdir.m4
21210         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21211
21212         isdir: clean up, since at least grep still uses it
21213         * lib/isdir.c: Include "isdir.h".
21214         (S_ISDIR): Remove now-unneeded definition.
21215         * modules/isdir (Files): Add lib/isdir.h.
21216         * lib/isdir.h: New file, with declaration.
21217         * m4/isdir.m4: Remove file -- unneeded.
21218
21219 2009-12-25  Bruno Haible  <bruno@clisp.org>
21220
21221         selinux-h: Make generated .h files standalone.
21222         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21223         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21224         * lib/se-selinux.in.h: Likewise.
21225         * modules/selinux-h (Depends-on): Add unused-parameter.
21226         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21227         selinux/selinux.h and selinux/context.h.
21228         Suggested by Eric Blake.
21229
21230 2009-12-25  Bruno Haible  <bruno@clisp.org>
21231
21232         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21233         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21234         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21235         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21236         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21237
21238 2009-12-24  Bruno Haible  <bruno@clisp.org>
21239
21240         openat: Fix warning.
21241         * lib/openat-proc.c: Include <unistd.h>.
21242
21243 2009-12-24  Bruno Haible  <bruno@clisp.org>
21244
21245         New module 'unused-parameter'.
21246         * build-aux/unused-parameter.h: New file, extracted from earlier
21247         gnulib-common.m4.
21248         * modules/unused-parameter: New file.
21249         * lib/unistr.h: Include unused-parameter.h.
21250         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21251         _GL_UNUSED.
21252         * modules/unistr/base (Depends-on): Add unused-parameter.
21253
21254 2009-12-24  Bruno Haible  <bruno@clisp.org>
21255
21256         Add missing dependencies to 'extensions' module.
21257         * m4/extensions.m4: Add comment.
21258         * modules/accept4 (Depends-on): Add extensions.
21259         * modules/dup3 (Depends-on): Likewise.
21260         * modules/fcntl (Depends-on): Likewise.
21261         * modules/futimens (Depends-on): Likewise.
21262         * modules/mknod (Depends-on): Likewise.
21263         * modules/pipe2 (Depends-on): Likewise.
21264         * modules/stat-time (Depends-on): Likewise.
21265         * modules/strcasestr-simple (Depends-on): Likewise.
21266         * modules/strsignal (Depends-on): Likewise.
21267         * modules/utimensat (Depends-on): Likewise.
21268         * modules/localcharset (Depends-on): Likewise. Needed because of
21269         gl_FCNTL_O_FLAGS.
21270         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21271         AC_TYPE_MBSTATE_T.
21272         * modules/wcsnrtombs (Depends-on): Likewise.
21273         * modules/wcsrtombs (Depends-on): Likewise.
21274
21275 2009-12-24  Bruno Haible  <bruno@clisp.org>
21276
21277         binary-io: Avoid gcc warning due to SET_BINARY.
21278         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21279         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21280
21281 2009-12-24  Bruno Haible  <bruno@clisp.org>
21282
21283         Avoid future namespace pollution on glibc systems.
21284         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21285         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21286         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21287         glibc systems.
21288
21289 2009-12-24  Bruno Haible  <bruno@clisp.org>
21290
21291         Refactor common macros used in tests.
21292         * tests/macros.h: New file.
21293         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21294         and/or <stdlib.h>, if appropriate.
21295         (ASSERT, SIZEOF): Remove macros.
21296         * tests/test-areadlink-with-size.c: Likewise.
21297         * tests/test-areadlinkat.c: Likewise.
21298         * tests/test-areadlinkat-with-size.c: Likewise.
21299         * tests/test-argmatch.c: Likewise.
21300         * tests/test-argv-iter.c: Likewise.
21301         * tests/test-array-mergesort.c: Likewise.
21302         * tests/test-array_list.c: Likewise.
21303         * tests/test-array_oset.c: Likewise.
21304         * tests/test-avltree_list.c: Likewise.
21305         * tests/test-avltree_oset.c: Likewise.
21306         * tests/test-avltreehash_list.c: Likewise.
21307         * tests/test-base64.c: Likewise.
21308         * tests/test-binary-io.c: Likewise.
21309         * tests/test-bitrotate.c: Likewise.
21310         * tests/test-btowc.c: Likewise.
21311         * tests/test-byteswap.c: Likewise.
21312         * tests/test-c-ctype.c: Likewise.
21313         * tests/test-c-stack.c: Likewise.
21314         * tests/test-c-strcasecmp.c: Likewise.
21315         * tests/test-c-strcasestr.c: Likewise.
21316         * tests/test-c-strncasecmp.c: Likewise.
21317         * tests/test-c-strstr.c: Likewise.
21318         * tests/test-canonicalize-lgpl.c: Likewise.
21319         * tests/test-canonicalize.c: Likewise.
21320         * tests/test-carray_list.c: Likewise.
21321         * tests/test-ceilf1.c: Likewise.
21322         * tests/test-ceilf2.c: Likewise.
21323         * tests/test-ceill.c: Likewise.
21324         * tests/test-chown.c: Likewise.
21325         * tests/test-cloexec.c: Likewise.
21326         * tests/test-copy-acl.c: Likewise.
21327         * tests/test-copy-file.c: Likewise.
21328         * tests/test-count-one-bits.c: Likewise.
21329         * tests/test-dprintf-posix.c: Likewise.
21330         * tests/test-dup2.c: Likewise.
21331         * tests/test-dup3.c: Likewise.
21332         * tests/test-duplocale.c: Likewise.
21333         * tests/test-fbufmode.c: Likewise.
21334         * tests/test-fchdir.c: Likewise.
21335         * tests/test-fchownat.c: Likewise.
21336         * tests/test-fcntl-safer.c: Likewise.
21337         * tests/test-fcntl.c: Likewise.
21338         * tests/test-fdopendir.c: Likewise.
21339         * tests/test-fdutimensat.c: Likewise.
21340         * tests/test-fflush2.c: Likewise.
21341         * tests/test-file-has-acl.c: Likewise.
21342         * tests/test-filevercmp.c: Likewise.
21343         * tests/test-flock.c: Likewise.
21344         * tests/test-floorf1.c: Likewise.
21345         * tests/test-floorf2.c: Likewise.
21346         * tests/test-floorl.c: Likewise.
21347         * tests/test-fnmatch.c: Likewise.
21348         * tests/test-fopen.h: Likewise.
21349         * tests/test-fpending.c: Likewise.
21350         * tests/test-fprintf-posix.c: Likewise.
21351         * tests/test-fpurge.c: Likewise.
21352         * tests/test-freadable.c: Likewise.
21353         * tests/test-freadahead.c: Likewise.
21354         * tests/test-freading.c: Likewise.
21355         * tests/test-freadptr.c: Likewise.
21356         * tests/test-freadptr2.c: Likewise.
21357         * tests/test-freadseek.c: Likewise.
21358         * tests/test-freopen.c: Likewise.
21359         * tests/test-frexp.c: Likewise.
21360         * tests/test-frexpl.c: Likewise.
21361         * tests/test-fseek.c: Likewise.
21362         * tests/test-fseeko.c: Likewise.
21363         * tests/test-fstatat.c: Likewise.
21364         * tests/test-fstrcmp.c: Likewise.
21365         * tests/test-fsync.c: Likewise.
21366         * tests/test-ftell.c: Likewise.
21367         * tests/test-ftello.c: Likewise.
21368         * tests/test-func.c: Likewise.
21369         * tests/test-futimens.c: Likewise.
21370         * tests/test-fwritable.c: Likewise.
21371         * tests/test-fwriting.c: Likewise.
21372         * tests/test-getcwd.c: Likewise.
21373         * tests/test-getdate.c: Likewise.
21374         * tests/test-getdelim.c: Likewise.
21375         * tests/test-getdtablesize.c: Likewise.
21376         * tests/test-getgroups.c: Likewise.
21377         * tests/test-getline.c: Likewise.
21378         * tests/test-getndelim2.c: Likewise.
21379         * tests/test-glob.c: Likewise.
21380         * tests/test-hash.c: Likewise.
21381         * tests/test-i-ring.c: Likewise.
21382         * tests/test-iconv-utf.c: Likewise.
21383         * tests/test-iconv.c: Likewise.
21384         * tests/test-idpriv-drop.c: Likewise.
21385         * tests/test-idpriv-droptemp.c: Likewise.
21386         * tests/test-inet_ntop.c: Likewise.
21387         * tests/test-inet_pton.c: Likewise.
21388         * tests/test-isblank.c: Likewise.
21389         * tests/test-isfinite.c: Likewise.
21390         * tests/test-isinf.c: Likewise.
21391         * tests/test-isnan.c: Likewise.
21392         * tests/test-isnand.h: Likewise.
21393         * tests/test-isnanf.h: Likewise.
21394         * tests/test-isnanl.h: Likewise.
21395         * tests/test-lchown.c: Likewise.
21396         * tests/test-ldexpl.c: Likewise.
21397         * tests/test-link.c: Likewise.
21398         * tests/test-linkat.c: Likewise.
21399         * tests/test-linked_list.c: Likewise.
21400         * tests/test-linkedhash_list.c: Likewise.
21401         * tests/test-localename.c: Likewise.
21402         * tests/test-lseek.c: Likewise.
21403         * tests/test-lstat.c: Likewise.
21404         * tests/test-mbmemcasecmp.c: Likewise.
21405         * tests/test-mbmemcasecoll.c: Likewise.
21406         * tests/test-mbrtowc.c: Likewise.
21407         * tests/test-mbscasecmp.c: Likewise.
21408         * tests/test-mbscasestr1.c: Likewise.
21409         * tests/test-mbscasestr2.c: Likewise.
21410         * tests/test-mbscasestr3.c: Likewise.
21411         * tests/test-mbscasestr4.c: Likewise.
21412         * tests/test-mbschr.c: Likewise.
21413         * tests/test-mbscspn.c: Likewise.
21414         * tests/test-mbsinit.c: Likewise.
21415         * tests/test-mbsncasecmp.c: Likewise.
21416         * tests/test-mbsnrtowcs.c: Likewise.
21417         * tests/test-mbspbrk.c: Likewise.
21418         * tests/test-mbspcasecmp.c: Likewise.
21419         * tests/test-mbsrchr.c: Likewise.
21420         * tests/test-mbsrtowcs.c: Likewise.
21421         * tests/test-mbsspn.c: Likewise.
21422         * tests/test-mbsstr1.c: Likewise.
21423         * tests/test-mbsstr2.c: Likewise.
21424         * tests/test-mbsstr3.c: Likewise.
21425         * tests/test-memchr.c: Likewise.
21426         * tests/test-memchr2.c: Likewise.
21427         * tests/test-memcmp.c: Likewise.
21428         * tests/test-memmem.c: Likewise.
21429         * tests/test-memrchr.c: Likewise.
21430         * tests/test-mkdir.c: Likewise.
21431         * tests/test-mkdirat.c: Likewise.
21432         * tests/test-mkfifo.c: Likewise.
21433         * tests/test-mkfifoat.c: Likewise.
21434         * tests/test-mknod.c: Likewise.
21435         * tests/test-nanosleep.c: Likewise.
21436         * tests/test-nl_langinfo.c: Likewise.
21437         * tests/test-obstack-printf.c: Likewise.
21438         * tests/test-open.c: Likewise.
21439         * tests/test-openat.c: Likewise.
21440         * tests/test-pipe-filter-gi1.c: Likewise.
21441         * tests/test-pipe-filter-gi2-main.c: Likewise.
21442         * tests/test-pipe-filter-ii1.c: Likewise.
21443         * tests/test-pipe-filter-ii2-main.c: Likewise.
21444         * tests/test-pipe2.c: Likewise.
21445         * tests/test-popen.h: Likewise.
21446         * tests/test-posixtm.c: Likewise.
21447         * tests/test-pread.c: Likewise.
21448         * tests/test-printf-frexp.c: Likewise.
21449         * tests/test-printf-frexpl.c: Likewise.
21450         * tests/test-printf-posix.c: Likewise.
21451         * tests/test-priv-set.c: Likewise.
21452         * tests/test-quotearg.c: Likewise.
21453         * tests/test-random_r.c: Likewise.
21454         * tests/test-rawmemchr.c: Likewise.
21455         * tests/test-rbtree_list.c: Likewise.
21456         * tests/test-rbtree_oset.c: Likewise.
21457         * tests/test-rbtreehash_list.c: Likewise.
21458         * tests/test-readlink.c: Likewise.
21459         * tests/test-remove.c: Likewise.
21460         * tests/test-rename.c: Likewise.
21461         * tests/test-renameat.c: Likewise.
21462         * tests/test-rmdir.c: Likewise.
21463         * tests/test-round1.c: Likewise.
21464         * tests/test-roundf1.c: Likewise.
21465         * tests/test-roundl.c: Likewise.
21466         * tests/test-safe-alloc.c: Likewise.
21467         * tests/test-sameacls.c: Likewise.
21468         * tests/test-set-mode-acl.c: Likewise.
21469         * tests/test-setenv.c: Likewise.
21470         * tests/test-sigaction.c: Likewise.
21471         * tests/test-signbit.c: Likewise.
21472         * tests/test-sleep.c: Likewise.
21473         * tests/test-snprintf-posix.c: Likewise.
21474         * tests/test-snprintf.c: Likewise.
21475         * tests/test-sprintf-posix.c: Likewise.
21476         * tests/test-stat-time.c: Likewise.
21477         * tests/test-stat.c: Likewise.
21478         * tests/test-strcasestr.c: Likewise.
21479         * tests/test-strchrnul.c: Likewise.
21480         * tests/test-strerror.c: Likewise.
21481         * tests/test-striconv.c: Likewise.
21482         * tests/test-striconveh.c: Likewise.
21483         * tests/test-striconveha.c: Likewise.
21484         * tests/test-strsignal.c: Likewise.
21485         * tests/test-strstr.c: Likewise.
21486         * tests/test-strtod.c: Likewise.
21487         * tests/test-strverscmp.c: Likewise.
21488         * tests/test-symlink.c: Likewise.
21489         * tests/test-symlinkat.c: Likewise.
21490         * tests/test-trunc1.c: Likewise.
21491         * tests/test-trunc2.c: Likewise.
21492         * tests/test-truncf1.c: Likewise.
21493         * tests/test-truncf2.c: Likewise.
21494         * tests/test-truncl.c: Likewise.
21495         * tests/test-uname.c: Likewise.
21496         * tests/test-unlink.c: Likewise.
21497         * tests/test-unlinkat.c: Likewise.
21498         * tests/test-unsetenv.c: Likewise.
21499         * tests/test-usleep.c: Likewise.
21500         * tests/test-utimens.c: Likewise.
21501         * tests/test-utimensat.c: Likewise.
21502         * tests/test-vasnprintf-posix.c: Likewise.
21503         * tests/test-vasnprintf-posix2.c: Likewise.
21504         * tests/test-vasnprintf.c: Likewise.
21505         * tests/test-vasprintf-posix.c: Likewise.
21506         * tests/test-vasprintf.c: Likewise.
21507         * tests/test-vdprintf-posix.c: Likewise.
21508         * tests/test-vfprintf-posix.c: Likewise.
21509         * tests/test-vprintf-posix.c: Likewise.
21510         * tests/test-vsnprintf-posix.c: Likewise.
21511         * tests/test-vsnprintf.c: Likewise.
21512         * tests/test-vsprintf-posix.c: Likewise.
21513         * tests/test-wcrtomb.c: Likewise.
21514         * tests/test-wcsnrtombs.c: Likewise.
21515         * tests/test-wcsrtombs.c: Likewise.
21516         * tests/test-wctype.c: Likewise.
21517         * tests/test-wcwidth.c: Likewise.
21518         * tests/test-xfprintf-posix.c: Likewise.
21519         * tests/test-xmemdup0.c: Likewise.
21520         * tests/test-xprintf-posix.c: Likewise.
21521         * tests/test-xvasprintf.c: Likewise.
21522         * tests/unicase/test-locale-language.c: Likewise.
21523         * tests/unicase/test-mapping-part1.h: Likewise.
21524         * tests/unicase/test-predicate-part1.h: Likewise.
21525         * tests/unicase/test-u8-casecmp.c: Likewise.
21526         * tests/unicase/test-u8-casecoll.c: Likewise.
21527         * tests/unicase/test-u8-casefold.c: Likewise.
21528         * tests/unicase/test-u8-is-cased.c: Likewise.
21529         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21530         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21531         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21532         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21533         * tests/unicase/test-u8-tolower.c: Likewise.
21534         * tests/unicase/test-u8-totitle.c: Likewise.
21535         * tests/unicase/test-u8-toupper.c: Likewise.
21536         * tests/unicase/test-u16-casecmp.c: Likewise.
21537         * tests/unicase/test-u16-casecoll.c: Likewise.
21538         * tests/unicase/test-u16-casefold.c: Likewise.
21539         * tests/unicase/test-u16-is-cased.c: Likewise.
21540         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21541         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21542         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21543         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21544         * tests/unicase/test-u16-tolower.c: Likewise.
21545         * tests/unicase/test-u16-totitle.c: Likewise.
21546         * tests/unicase/test-u16-toupper.c: Likewise.
21547         * tests/unicase/test-u32-casecmp.c: Likewise.
21548         * tests/unicase/test-u32-casecoll.c: Likewise.
21549         * tests/unicase/test-u32-casefold.c: Likewise.
21550         * tests/unicase/test-u32-is-cased.c: Likewise.
21551         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21552         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21553         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21554         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21555         * tests/unicase/test-u32-tolower.c: Likewise.
21556         * tests/unicase/test-u32-totitle.c: Likewise.
21557         * tests/unicase/test-u32-toupper.c: Likewise.
21558         * tests/unicase/test-ulc-casecmp.c: Likewise.
21559         * tests/unicase/test-ulc-casecoll.c: Likewise.
21560         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21561         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21562         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21563         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21564         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21565         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21566         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21567         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21568         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21569         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21570         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21571         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21572         * tests/unictype/test-bidi_byname.c: Likewise.
21573         * tests/unictype/test-bidi_name.c: Likewise.
21574         * tests/unictype/test-bidi_of.c: Likewise.
21575         * tests/unictype/test-bidi_test.c: Likewise.
21576         * tests/unictype/test-block_list.c: Likewise.
21577         * tests/unictype/test-block_of.c: Likewise.
21578         * tests/unictype/test-block_test.c: Likewise.
21579         * tests/unictype/test-categ_and.c: Likewise.
21580         * tests/unictype/test-categ_and_not.c: Likewise.
21581         * tests/unictype/test-categ_byname.c: Likewise.
21582         * tests/unictype/test-categ_name.c: Likewise.
21583         * tests/unictype/test-categ_none.c: Likewise.
21584         * tests/unictype/test-categ_of.c: Likewise.
21585         * tests/unictype/test-categ_or.c: Likewise.
21586         * tests/unictype/test-categ_test_withtable.c: Likewise.
21587         * tests/unictype/test-combining.c: Likewise.
21588         * tests/unictype/test-decdigit.c: Likewise.
21589         * tests/unictype/test-digit.c: Likewise.
21590         * tests/unictype/test-mirror.c: Likewise.
21591         * tests/unictype/test-numeric.c: Likewise.
21592         * tests/unictype/test-pr_byname.c: Likewise.
21593         * tests/unictype/test-pr_test.c: Likewise.
21594         * tests/unictype/test-predicate-part1.h: Likewise.
21595         * tests/unictype/test-scripts.c: Likewise.
21596         * tests/unictype/test-sy_c_ident.c: Likewise.
21597         * tests/unictype/test-sy_java_ident.c: Likewise.
21598         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21599         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21600         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21601         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21602         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21603         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21604         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21605         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21606         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21607         * tests/uninorm/test-compat-decomposition.c: Likewise.
21608         * tests/uninorm/test-composition.c: Likewise.
21609         * tests/uninorm/test-decomposing-form.c: Likewise.
21610         * tests/uninorm/test-decomposition.c: Likewise.
21611         * tests/uninorm/test-u8-nfc.c: Likewise.
21612         * tests/uninorm/test-u8-nfd.c: Likewise.
21613         * tests/uninorm/test-u8-nfkc.c: Likewise.
21614         * tests/uninorm/test-u8-nfkd.c: Likewise.
21615         * tests/uninorm/test-u8-normcmp.c: Likewise.
21616         * tests/uninorm/test-u8-normcoll.c: Likewise.
21617         * tests/uninorm/test-u16-nfc.c: Likewise.
21618         * tests/uninorm/test-u16-nfd.c: Likewise.
21619         * tests/uninorm/test-u16-nfkc.c: Likewise.
21620         * tests/uninorm/test-u16-nfkd.c: Likewise.
21621         * tests/uninorm/test-u16-normcmp.c: Likewise.
21622         * tests/uninorm/test-u16-normcoll.c: Likewise.
21623         * tests/uninorm/test-u32-nfc.c: Likewise.
21624         * tests/uninorm/test-u32-nfd.c: Likewise.
21625         * tests/uninorm/test-u32-nfkc.c: Likewise.
21626         * tests/uninorm/test-u32-nfkd.c: Likewise.
21627         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21628         * tests/uninorm/test-u32-normcmp.c: Likewise.
21629         * tests/uninorm/test-u32-normcoll.c: Likewise.
21630         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21631         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21632         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21633         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21634         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21635         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21636         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21637         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21638         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21639         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21640         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21641         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21642         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21643         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21644         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21645         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21646         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21647         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21648         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21649         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21650         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21651         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21652         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21653         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21654         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21655         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21656         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21657         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21658         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21659         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21660         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21661         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21662         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21663         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21664         * tests/uniwidth/test-u8-width.c: Likewise.
21665         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21666         * tests/uniwidth/test-u16-width.c: Likewise.
21667         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21668         * tests/uniwidth/test-u32-width.c: Likewise.
21669         * tests/uniwidth/test-uc_width.c: Likewise.
21670         * tests/uniwidth/test-uc_width2.c: Likewise.
21671         * modules/acl-tests (Files): Add tests/macros.h.
21672         * modules/areadlink-tests (Files): Likewise.
21673         * modules/areadlink-with-size-tests (Files): Likewise.
21674         * modules/areadlinkat-tests (Files): Likewise.
21675         * modules/areadlinkat-with-size-tests (Files): Likewise.
21676         * modules/argmatch-tests (Files): Likewise.
21677         * modules/argv-iter-tests (Files): Likewise.
21678         * modules/array-list-tests (Files): Likewise.
21679         * modules/array-mergesort-tests (Files): Likewise.
21680         * modules/array-oset-tests (Files): Likewise.
21681         * modules/avltree-list-tests (Files): Likewise.
21682         * modules/avltree-oset-tests (Files): Likewise.
21683         * modules/avltreehash-list-tests (Files): Likewise.
21684         * modules/base64-tests (Files): Likewise.
21685         * modules/binary-io-tests (Files): Likewise.
21686         * modules/bitrotate-tests (Files): Likewise.
21687         * modules/btowc-tests (Files): Likewise.
21688         * modules/byteswap-tests (Files): Likewise.
21689         * modules/c-ctype-tests (Files): Likewise.
21690         * modules/c-stack-tests (Files): Likewise.
21691         * modules/c-strcase-tests (Files): Likewise.
21692         * modules/c-strcasestr-tests (Files): Likewise.
21693         * modules/c-strstr-tests (Files): Likewise.
21694         * modules/canonicalize-lgpl-tests (Files): Likewise.
21695         * modules/canonicalize-tests (Files): Likewise.
21696         * modules/carray-list-tests (Files): Likewise.
21697         * modules/ceilf-tests (Files): Likewise.
21698         * modules/ceill-tests (Files): Likewise.
21699         * modules/chown-tests (Files): Likewise.
21700         * modules/cloexec-tests (Files): Likewise.
21701         * modules/copy-file-tests (Files): Likewise.
21702         * modules/count-one-bits-tests (Files): Likewise.
21703         * modules/dprintf-posix-tests (Files): Likewise.
21704         * modules/dup2-tests (Files): Likewise.
21705         * modules/dup3-tests (Files): Likewise.
21706         * modules/duplocale-tests (Files): Likewise.
21707         * modules/fbufmode-tests (Files): Likewise.
21708         * modules/fchdir-tests (Files): Likewise.
21709         * modules/fcntl-safer-tests (Files): Likewise.
21710         * modules/fcntl-tests (Files): Likewise.
21711         * modules/fdopendir-tests (Files): Likewise.
21712         * modules/fdutimensat-tests (Files): Likewise.
21713         * modules/fflush-tests (Files): Likewise.
21714         * modules/filevercmp-tests (Files): Likewise.
21715         * modules/flock-tests (Files): Likewise.
21716         * modules/floorf-tests (Files): Likewise.
21717         * modules/floorl-tests (Files): Likewise.
21718         * modules/fnmatch-tests (Files): Likewise.
21719         * modules/fopen-safer-tests (Files): Likewise.
21720         * modules/fopen-tests (Files): Likewise.
21721         * modules/fpending-tests (Files): Likewise.
21722         * modules/fprintf-posix-tests (Files): Likewise.
21723         * modules/fpurge-tests (Files): Likewise.
21724         * modules/freadable-tests (Files): Likewise.
21725         * modules/freadahead-tests (Files): Likewise.
21726         * modules/freading-tests (Files): Likewise.
21727         * modules/freadptr-tests (Files): Likewise.
21728         * modules/freadseek-tests (Files): Likewise.
21729         * modules/freopen-tests (Files): Likewise.
21730         * modules/frexp-nolibm-tests (Files): Likewise.
21731         * modules/frexp-tests (Files): Likewise.
21732         * modules/frexpl-nolibm-tests (Files): Likewise.
21733         * modules/frexpl-tests (Files): Likewise.
21734         * modules/fseek-tests (Files): Likewise.
21735         * modules/fseeko-tests (Files): Likewise.
21736         * modules/fstrcmp-tests (Files): Likewise.
21737         * modules/fsync-tests (Files): Likewise.
21738         * modules/ftell-tests (Files): Likewise.
21739         * modules/ftello-tests (Files): Likewise.
21740         * modules/func-tests (Files): Likewise.
21741         * modules/futimens-tests (Files): Likewise.
21742         * modules/fwritable-tests (Files): Likewise.
21743         * modules/fwriting-tests (Files): Likewise.
21744         * modules/getcwd-tests (Files): Likewise.
21745         * modules/getdate-tests (Files): Likewise.
21746         * modules/getdelim-tests (Files): Likewise.
21747         * modules/getdtablesize-tests (Files): Likewise.
21748         * modules/getgroups-tests (Files): Likewise.
21749         * modules/getline-tests (Files): Likewise.
21750         * modules/getndelim2-tests (Files): Likewise.
21751         * modules/glob-tests (Files): Likewise.
21752         * modules/hash-tests (Files): Likewise.
21753         * modules/i-ring-tests (Files): Likewise.
21754         * modules/iconv-tests (Files): Likewise.
21755         * modules/iconv_open-utf-tests (Files): Likewise.
21756         * modules/idpriv-drop-tests (Files): Likewise.
21757         * modules/idpriv-droptemp-tests (Files): Likewise.
21758         * modules/inet_ntop-tests (Files): Likewise.
21759         * modules/inet_pton-tests (Files): Likewise.
21760         * modules/isblank-tests (Files): Likewise.
21761         * modules/isfinite-tests (Files): Likewise.
21762         * modules/isinf-tests (Files): Likewise.
21763         * modules/isnan-tests (Files): Likewise.
21764         * modules/isnand-nolibm-tests (Files): Likewise.
21765         * modules/isnand-tests (Files): Likewise.
21766         * modules/isnanf-nolibm-tests (Files): Likewise.
21767         * modules/isnanf-tests (Files): Likewise.
21768         * modules/isnanl-nolibm-tests (Files): Likewise.
21769         * modules/isnanl-tests (Files): Likewise.
21770         * modules/lchown-tests (Files): Likewise.
21771         * modules/ldexpl-tests (Files): Likewise.
21772         * modules/link-tests (Files): Likewise.
21773         * modules/linkat-tests (Files): Likewise.
21774         * modules/linked-list-tests (Files): Likewise.
21775         * modules/linkedhash-list-tests (Files): Likewise.
21776         * modules/localename-tests (Files): Likewise.
21777         * modules/lseek-tests (Files): Likewise.
21778         * modules/lstat-tests (Files): Likewise.
21779         * modules/mbmemcasecmp-tests (Files): Likewise.
21780         * modules/mbmemcasecoll-tests (Files): Likewise.
21781         * modules/mbrtowc-tests (Files): Likewise.
21782         * modules/mbscasecmp-tests (Files): Likewise.
21783         * modules/mbscasestr-tests (Files): Likewise.
21784         * modules/mbschr-tests (Files): Likewise.
21785         * modules/mbscspn-tests (Files): Likewise.
21786         * modules/mbsinit-tests (Files): Likewise.
21787         * modules/mbsncasecmp-tests (Files): Likewise.
21788         * modules/mbsnrtowcs-tests (Files): Likewise.
21789         * modules/mbspbrk-tests (Files): Likewise.
21790         * modules/mbspcasecmp-tests (Files): Likewise.
21791         * modules/mbsrchr-tests (Files): Likewise.
21792         * modules/mbsrtowcs-tests (Files): Likewise.
21793         * modules/mbsspn-tests (Files): Likewise.
21794         * modules/mbsstr-tests (Files): Likewise.
21795         * modules/memchr-tests (Files): Likewise.
21796         * modules/memchr2-tests (Files): Likewise.
21797         * modules/memcmp-tests (Files): Likewise.
21798         * modules/memmem-tests (Files): Likewise.
21799         * modules/memrchr-tests (Files): Likewise.
21800         * modules/mkdir-tests (Files): Likewise.
21801         * modules/mkfifo-tests (Files): Likewise.
21802         * modules/mkfifoat-tests (Files): Likewise.
21803         * modules/mknod-tests (Files): Likewise.
21804         * modules/nanosleep-tests (Files): Likewise.
21805         * modules/nl_langinfo-tests (Files): Likewise.
21806         * modules/obstack-printf-tests (Files): Likewise.
21807         * modules/open-tests (Files): Likewise.
21808         * modules/openat-tests (Files): Likewise.
21809         * modules/pipe-filter-gi-tests (Files): Likewise.
21810         * modules/pipe-filter-ii-tests (Files): Likewise.
21811         * modules/pipe2-tests (Files): Likewise.
21812         * modules/popen-safer-tests (Files): Likewise.
21813         * modules/popen-tests (Files): Likewise.
21814         * modules/posixtm-tests (Files): Likewise.
21815         * modules/pread-tests (Files): Likewise.
21816         * modules/printf-frexp-tests (Files): Likewise.
21817         * modules/printf-frexpl-tests (Files): Likewise.
21818         * modules/printf-posix-tests (Files): Likewise.
21819         * modules/priv-set-tests (Files): Likewise.
21820         * modules/quotearg-tests (Files): Likewise.
21821         * modules/random_r-tests (Files): Likewise.
21822         * modules/rawmemchr-tests (Files): Likewise.
21823         * modules/rbtree-list-tests (Files): Likewise.
21824         * modules/rbtree-oset-tests (Files): Likewise.
21825         * modules/rbtreehash-list-tests (Files): Likewise.
21826         * modules/readlink-tests (Files): Likewise.
21827         * modules/remove-tests (Files): Likewise.
21828         * modules/rename-tests (Files): Likewise.
21829         * modules/renameat-tests (Files): Likewise.
21830         * modules/rmdir-tests (Files): Likewise.
21831         * modules/round-tests (Files): Likewise.
21832         * modules/roundf-tests (Files): Likewise.
21833         * modules/roundl-tests (Files): Likewise.
21834         * modules/safe-alloc-tests (Files): Likewise.
21835         * modules/setenv-tests (Files): Likewise.
21836         * modules/sigaction-tests (Files): Likewise.
21837         * modules/signbit-tests (Files): Likewise.
21838         * modules/sleep-tests (Files): Likewise.
21839         * modules/snprintf-posix-tests (Files): Likewise.
21840         * modules/snprintf-tests (Files): Likewise.
21841         * modules/sprintf-posix-tests (Files): Likewise.
21842         * modules/stat-tests (Files): Likewise.
21843         * modules/stat-time-tests (Files): Likewise.
21844         * modules/strcasestr-tests (Files): Likewise.
21845         * modules/strchrnul-tests (Files): Likewise.
21846         * modules/strerror-tests (Files): Likewise.
21847         * modules/striconv-tests (Files): Likewise.
21848         * modules/striconveh-tests (Files): Likewise.
21849         * modules/striconveha-tests (Files): Likewise.
21850         * modules/strsignal-tests (Files): Likewise.
21851         * modules/strstr-tests (Files): Likewise.
21852         * modules/strtod-tests (Files): Likewise.
21853         * modules/strverscmp-tests (Files): Likewise.
21854         * modules/symlink-tests (Files): Likewise.
21855         * modules/symlinkat-tests (Files): Likewise.
21856         * modules/trunc-tests (Files): Likewise.
21857         * modules/truncf-tests (Files): Likewise.
21858         * modules/truncl-tests (Files): Likewise.
21859         * modules/uname-tests (Files): Likewise.
21860         * modules/unicase/cased-tests (Files): Likewise.
21861         * modules/unicase/ignorable-tests (Files): Likewise.
21862         * modules/unicase/locale-language-tests (Files): Likewise.
21863         * modules/unicase/tolower-tests (Files): Likewise.
21864         * modules/unicase/totitle-tests (Files): Likewise.
21865         * modules/unicase/toupper-tests (Files): Likewise.
21866         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21867         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21868         * modules/unicase/u8-casefold-tests (Files): Likewise.
21869         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21870         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21871         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21872         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21873         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21874         * modules/unicase/u8-tolower-tests (Files): Likewise.
21875         * modules/unicase/u8-totitle-tests (Files): Likewise.
21876         * modules/unicase/u8-toupper-tests (Files): Likewise.
21877         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21878         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21879         * modules/unicase/u16-casefold-tests (Files): Likewise.
21880         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21881         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21882         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21883         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21884         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21885         * modules/unicase/u16-tolower-tests (Files): Likewise.
21886         * modules/unicase/u16-totitle-tests (Files): Likewise.
21887         * modules/unicase/u16-toupper-tests (Files): Likewise.
21888         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21889         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21890         * modules/unicase/u32-casefold-tests (Files): Likewise.
21891         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21892         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21893         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21894         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21895         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21896         * modules/unicase/u32-tolower-tests (Files): Likewise.
21897         * modules/unicase/u32-totitle-tests (Files): Likewise.
21898         * modules/unicase/u32-toupper-tests (Files): Likewise.
21899         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21900         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21901         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21902         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21903         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21904         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21905         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21906         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21907         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21908         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21909         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21910         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21911         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21912         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21913         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21914         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21915         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21916         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21917         * modules/unictype/block-list-tests (Files): Likewise.
21918         * modules/unictype/block-of-tests (Files): Likewise.
21919         * modules/unictype/block-test-tests (Files): Likewise.
21920         * modules/unictype/category-C-tests (Files): Likewise.
21921         * modules/unictype/category-Cc-tests (Files): Likewise.
21922         * modules/unictype/category-Cf-tests (Files): Likewise.
21923         * modules/unictype/category-Cn-tests (Files): Likewise.
21924         * modules/unictype/category-Co-tests (Files): Likewise.
21925         * modules/unictype/category-Cs-tests (Files): Likewise.
21926         * modules/unictype/category-L-tests (Files): Likewise.
21927         * modules/unictype/category-Ll-tests (Files): Likewise.
21928         * modules/unictype/category-Lm-tests (Files): Likewise.
21929         * modules/unictype/category-Lo-tests (Files): Likewise.
21930         * modules/unictype/category-Lt-tests (Files): Likewise.
21931         * modules/unictype/category-Lu-tests (Files): Likewise.
21932         * modules/unictype/category-M-tests (Files): Likewise.
21933         * modules/unictype/category-Mc-tests (Files): Likewise.
21934         * modules/unictype/category-Me-tests (Files): Likewise.
21935         * modules/unictype/category-Mn-tests (Files): Likewise.
21936         * modules/unictype/category-N-tests (Files): Likewise.
21937         * modules/unictype/category-Nd-tests (Files): Likewise.
21938         * modules/unictype/category-Nl-tests (Files): Likewise.
21939         * modules/unictype/category-No-tests (Files): Likewise.
21940         * modules/unictype/category-P-tests (Files): Likewise.
21941         * modules/unictype/category-Pc-tests (Files): Likewise.
21942         * modules/unictype/category-Pd-tests (Files): Likewise.
21943         * modules/unictype/category-Pe-tests (Files): Likewise.
21944         * modules/unictype/category-Pf-tests (Files): Likewise.
21945         * modules/unictype/category-Pi-tests (Files): Likewise.
21946         * modules/unictype/category-Po-tests (Files): Likewise.
21947         * modules/unictype/category-Ps-tests (Files): Likewise.
21948         * modules/unictype/category-S-tests (Files): Likewise.
21949         * modules/unictype/category-Sc-tests (Files): Likewise.
21950         * modules/unictype/category-Sk-tests (Files): Likewise.
21951         * modules/unictype/category-Sm-tests (Files): Likewise.
21952         * modules/unictype/category-So-tests (Files): Likewise.
21953         * modules/unictype/category-Z-tests (Files): Likewise.
21954         * modules/unictype/category-Zl-tests (Files): Likewise.
21955         * modules/unictype/category-Zp-tests (Files): Likewise.
21956         * modules/unictype/category-Zs-tests (Files): Likewise.
21957         * modules/unictype/category-and-not-tests (Files): Likewise.
21958         * modules/unictype/category-and-tests (Files): Likewise.
21959         * modules/unictype/category-byname-tests (Files): Likewise.
21960         * modules/unictype/category-name-tests (Files): Likewise.
21961         * modules/unictype/category-none-tests (Files): Likewise.
21962         * modules/unictype/category-of-tests (Files): Likewise.
21963         * modules/unictype/category-or-tests (Files): Likewise.
21964         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21965         * modules/unictype/combining-class-tests (Files): Likewise.
21966         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21967         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21968         * modules/unictype/ctype-blank-tests (Files): Likewise.
21969         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21970         * modules/unictype/ctype-digit-tests (Files): Likewise.
21971         * modules/unictype/ctype-graph-tests (Files): Likewise.
21972         * modules/unictype/ctype-lower-tests (Files): Likewise.
21973         * modules/unictype/ctype-print-tests (Files): Likewise.
21974         * modules/unictype/ctype-punct-tests (Files): Likewise.
21975         * modules/unictype/ctype-space-tests (Files): Likewise.
21976         * modules/unictype/ctype-upper-tests (Files): Likewise.
21977         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21978         * modules/unictype/decimal-digit-tests (Files): Likewise.
21979         * modules/unictype/digit-tests (Files): Likewise.
21980         * modules/unictype/mirror-tests (Files): Likewise.
21981         * modules/unictype/numeric-tests (Files): Likewise.
21982         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21983         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21984         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21985         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21986         Likewise.
21987         * modules/unictype/property-bidi-block-separator-tests (Files):
21988         Likewise.
21989         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21990         Likewise.
21991         * modules/unictype/property-bidi-common-separator-tests (Files):
21992         Likewise.
21993         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21994         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21995         Likewise.
21996         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21997         Likewise.
21998         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21999         Likewise.
22000         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22001         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22002         Likewise.
22003         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22004         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22005         Likewise.
22006         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22007         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22008         * modules/unictype/property-bidi-segment-separator-tests (Files):
22009         Likewise.
22010         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22011         * modules/unictype/property-byname-tests (Files): Likewise.
22012         * modules/unictype/property-combining-tests (Files): Likewise.
22013         * modules/unictype/property-composite-tests (Files): Likewise.
22014         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22015         * modules/unictype/property-dash-tests (Files): Likewise.
22016         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22017         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22018         Likewise.
22019         * modules/unictype/property-deprecated-tests (Files): Likewise.
22020         * modules/unictype/property-diacritic-tests (Files): Likewise.
22021         * modules/unictype/property-extender-tests (Files): Likewise.
22022         * modules/unictype/property-format-control-tests (Files): Likewise.
22023         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22024         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22025         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22026         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22027         * modules/unictype/property-hyphen-tests (Files): Likewise.
22028         * modules/unictype/property-id-continue-tests (Files): Likewise.
22029         * modules/unictype/property-id-start-tests (Files): Likewise.
22030         * modules/unictype/property-ideographic-tests (Files): Likewise.
22031         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22032         * modules/unictype/property-ids-trinary-operator-tests (Files):
22033         Likewise.
22034         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22035         * modules/unictype/property-iso-control-tests (Files): Likewise.
22036         * modules/unictype/property-join-control-tests (Files): Likewise.
22037         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22038         * modules/unictype/property-line-separator-tests (Files): Likewise.
22039         * modules/unictype/property-logical-order-exception-tests (Files):
22040         Likewise.
22041         * modules/unictype/property-lowercase-tests (Files): Likewise.
22042         * modules/unictype/property-math-tests (Files): Likewise.
22043         * modules/unictype/property-non-break-tests (Files): Likewise.
22044         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22045         * modules/unictype/property-numeric-tests (Files): Likewise.
22046         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22047         * modules/unictype/property-other-default-ignorable-code-point-tests
22048         (Files): Likewise.
22049         * modules/unictype/property-other-grapheme-extend-tests (Files):
22050         Likewise.
22051         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22052         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22053         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22054         * modules/unictype/property-other-math-tests (Files): Likewise.
22055         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22056         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22057         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22058         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22059         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22060         * modules/unictype/property-private-use-tests (Files): Likewise.
22061         * modules/unictype/property-punctuation-tests (Files): Likewise.
22062         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22063         * modules/unictype/property-radical-tests (Files): Likewise.
22064         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22065         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22066         * modules/unictype/property-space-tests (Files): Likewise.
22067         * modules/unictype/property-terminal-punctuation-tests (Files):
22068         Likewise.
22069         * modules/unictype/property-test-tests (Files): Likewise.
22070         * modules/unictype/property-titlecase-tests (Files): Likewise.
22071         * modules/unictype/property-unassigned-code-value-tests (Files):
22072         Likewise.
22073         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22074         * modules/unictype/property-uppercase-tests (Files): Likewise.
22075         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22076         * modules/unictype/property-white-space-tests (Files): Likewise.
22077         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22078         * modules/unictype/property-xid-start-tests (Files): Likewise.
22079         * modules/unictype/property-zero-width-tests (Files): Likewise.
22080         * modules/unictype/scripts-tests (Files): Likewise.
22081         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22082         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22083         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22084         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22085         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22086         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22087         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22088         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22089         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22090         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22091         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22092         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22093         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22094         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22095         * modules/uninorm/composition-tests (Files): Likewise.
22096         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22097         * modules/uninorm/decomposition-tests (Files): Likewise.
22098         * modules/uninorm/filter-tests (Files): Likewise.
22099         * modules/uninorm/nfc-tests (Files): Likewise.
22100         * modules/uninorm/nfd-tests (Files): Likewise.
22101         * modules/uninorm/nfkc-tests (Files): Likewise.
22102         * modules/uninorm/nfkd-tests (Files): Likewise.
22103         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22104         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22105         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22106         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22107         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22108         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22109         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22110         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22111         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22112         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22113         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22114         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22115         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22116         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22117         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22118         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22119         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22120         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22121         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22122         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22123         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22124         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22125         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22126         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22127         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22128         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22129         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22130         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22131         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22132         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22133         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22134         * modules/uniwidth/u8-width-tests (Files): Likewise.
22135         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22136         * modules/uniwidth/u16-width-tests (Files): Likewise.
22137         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22138         * modules/uniwidth/u32-width-tests (Files): Likewise.
22139         * modules/uniwidth/width-tests (Files): Likewise.
22140         * modules/unlink-tests (Files): Likewise.
22141         * modules/unsetenv-tests (Files): Likewise.
22142         * modules/usleep-tests (Files): Likewise.
22143         * modules/utimens-tests (Files): Likewise.
22144         * modules/utimensat-tests (Files): Likewise.
22145         * modules/vasnprintf-posix-tests (Files): Likewise.
22146         * modules/vasnprintf-tests (Files): Likewise.
22147         * modules/vasprintf-posix-tests (Files): Likewise.
22148         * modules/vasprintf-tests (Files): Likewise.
22149         * modules/vdprintf-posix-tests (Files): Likewise.
22150         * modules/vfprintf-posix-tests (Files): Likewise.
22151         * modules/vprintf-posix-tests (Files): Likewise.
22152         * modules/vsnprintf-posix-tests (Files): Likewise.
22153         * modules/vsnprintf-tests (Files): Likewise.
22154         * modules/vsprintf-posix-tests (Files): Likewise.
22155         * modules/wcrtomb-tests (Files): Likewise.
22156         * modules/wcsnrtombs-tests (Files): Likewise.
22157         * modules/wcsrtombs-tests (Files): Likewise.
22158         * modules/wctype-tests (Files): Likewise.
22159         * modules/wcwidth-tests (Files): Likewise.
22160         * modules/xmemdup0-tests (Files): Likewise.
22161         * modules/xprintf-posix-tests (Files): Likewise.
22162         * modules/xvasprintf-tests (Files): Likewise.
22163
22164 2009-12-24  Eric Blake  <ebb9@byu.net>
22165
22166         test-nanosleep: fix typo
22167         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22168         patch.
22169         Reported by Bruno Haible.
22170
22171 2009-12-24  Bruno Haible  <bruno@clisp.org>
22172
22173         Reduce namespace pollution on glibc systems.
22174         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22175         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22176         systems.
22177         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22178         <getopt.h> on glibc systems.
22179         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22180         systems.
22181         * lib/fcntl.c: Include <unistd.h> here instead.
22182
22183 2009-12-24  Bruno Haible  <bruno@clisp.org>
22184
22185         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22186
22187 2009-12-24  Eric Blake  <ebb9@byu.net>
22188
22189         tests: add signature checks
22190         * tests/signature.h (SIGNATURE_CHECK): New file.
22191         * modules/atexit-tests (Files): Use it.
22192         * modules/btowc-tests (Files): Likewise.
22193         * modules/canonicalize-lgpl-tests (Files): Likewise.
22194         * modules/ceilf-tests (Files): Likewise.
22195         * modules/ceill-tests (Files): Likewise.
22196         * modules/chown-tests (Files): Likewise.
22197         * modules/dprintf-posix-tests (Files): Likewise.
22198         * modules/dup2-tests (Files): Likewise.
22199         * modules/dup3-tests (Files): Likewise.
22200         * modules/duplocale-tests (Files): Likewise.
22201         * modules/fchdir-tests (Files): Likewise.
22202         * modules/fcntl-tests (Files): Likewise.
22203         * modules/fdopendir-tests (Files): Likewise.
22204         * modules/fflush-tests (Files): Likewise.
22205         * modules/flock-tests (Files): Likewise.
22206         * modules/floorf-tests (Files): Likewise.
22207         * modules/floorl-tests (Files): Likewise.
22208         * modules/fnmatch-tests (Files): Likewise.
22209         * modules/fopen-tests (Files): Likewise.
22210         * modules/fprintf-posix-tests (Files): Likewise.
22211         * modules/freopen-tests (Files): Likewise.
22212         * modules/frexp-nolibm-tests (Files): Likewise.
22213         * modules/frexp-tests (Files): Likewise.
22214         * modules/frexpl-nolibm-tests (Files): Likewise.
22215         * modules/frexpl-tests (Files): Likewise.
22216         * modules/fseek-tests (Files): Likewise.
22217         * modules/fseeko-tests (Files): Likewise.
22218         * modules/fsync-tests (Files): Likewise.
22219         * modules/ftell-tests (Files): Likewise.
22220         * modules/ftello-tests (Files): Likewise.
22221         * modules/futimens-tests (Files): Likewise.
22222         * modules/getaddrinfo-tests (Files): Likewise.
22223         * modules/getcwd-tests (Files): Likewise.
22224         * modules/getdelim-tests (Files): Likewise.
22225         * modules/getdtablesize-tests (Files): Likewise.
22226         * modules/getgroups-tests (Files): Likewise.
22227         * modules/gethostname-tests (Files): Likewise.
22228         * modules/getline-tests (Files): Likewise.
22229         * modules/getopt-posix-tests (Files): Likewise.
22230         * modules/gettimeofday-tests (Files): Likewise.
22231         * modules/glob-tests (Files): Likewise.
22232         * modules/iconv-tests (Files): Likewise.
22233         * modules/inet_ntop-tests (Files): Likewise.
22234         * modules/inet_pton-tests (Files): Likewise.
22235         * modules/isblank-tests (Files): Likewise.
22236         * modules/lchown-tests (Files): Likewise.
22237         * modules/ldexpl-tests (Files): Likewise.
22238         * modules/link-tests (Files): Likewise.
22239         * modules/linkat-tests (Files): Likewise.
22240         * modules/lseek-tests (Files): Likewise.
22241         * modules/lstat-tests (Files): Likewise.
22242         * modules/mbrtowc-tests (Files): Likewise.
22243         * modules/mbsinit-tests (Files): Likewise.
22244         * modules/mbsnrtowcs-tests (Files): Likewise.
22245         * modules/mbsrtowcs-tests (Files): Likewise.
22246         * modules/memchr-tests (Files): Likewise.
22247         * modules/memcmp-tests (Files): Likewise.
22248         * modules/memmem-tests (Files): Likewise.
22249         * modules/memrchr-tests (Files): Likewise.
22250         * modules/mkdir-tests (Files): Likewise.
22251         * modules/mkfifo-tests (Files): Likewise.
22252         * modules/mkfifoat-tests (Files): Likewise.
22253         * modules/mknod-tests (Files): Likewise.
22254         * modules/nanosleep-tests (Files): Likewise.
22255         * modules/nl_langinfo-tests (Files): Likewise.
22256         * modules/obstack-printf-tests (Files): Likewise.
22257         * modules/open-tests (Files): Likewise.
22258         * modules/openat-tests (Files): Likewise.
22259         * modules/perror-tests (Files): Likewise.
22260         * modules/pipe2-tests (Files): Likewise.
22261         * modules/poll-tests (Files): Likewise.
22262         * modules/popen-tests (Files): Likewise.
22263         * modules/posix_spawn-tests (Files): Likewise.
22264         * modules/posix_spawnp-tests (Files): Likewise.
22265         * modules/pread-tests (Files): Likewise.
22266         * modules/printf-posix-tests (Files): Likewise.
22267         * modules/pty-tests (Files): Likewise.
22268         * modules/random_r-tests (Files): Likewise.
22269         * modules/rawmemchr-tests (Files): Likewise.
22270         * modules/readlink-tests (Files): Likewise.
22271         * modules/remove-tests (Files): Likewise.
22272         * modules/rename-tests (Files): Likewise.
22273         * modules/renameat-tests (Files): Likewise.
22274         * modules/rmdir-tests (Files): Likewise.
22275         * modules/round-tests (Files): Likewise.
22276         * modules/roundf-tests (Files): Likewise.
22277         * modules/roundl-tests (Files): Likewise.
22278         * modules/select-tests (Files): Likewise.
22279         * modules/setenv-tests (Files): Likewise.
22280         * modules/sigaction-tests (Files): Likewise.
22281         * modules/sleep-tests (Files): Likewise.
22282         * modules/snprintf-posix-tests (Files): Likewise.
22283         * modules/snprintf-tests (Files): Likewise.
22284         * modules/sprintf-posix-tests (Files): Likewise.
22285         * modules/stat-tests (Files): Likewise.
22286         * modules/strcasestr-tests (Files): Likewise.
22287         * modules/strchrnul-tests (Files): Likewise.
22288         * modules/strerror-tests (Files): Likewise.
22289         * modules/strsignal-tests (Files): Likewise.
22290         * modules/strstr-tests (Files): Likewise.
22291         * modules/strtod-tests (Files): Likewise.
22292         * modules/strverscmp-tests (Files): Likewise.
22293         * modules/symlink-tests (Files): Likewise.
22294         * modules/symlinkat-tests (Files): Likewise.
22295         * modules/times-tests (Files): Likewise.
22296         * modules/trunc-tests (Files): Likewise.
22297         * modules/truncf-tests (Files): Likewise.
22298         * modules/truncl-tests (Files): Likewise.
22299         * modules/tsearch-tests (Files): Likewise.
22300         * modules/uname-tests (Files): Likewise.
22301         * modules/unlink-tests (Files): Likewise.
22302         * modules/unsetenv-tests (Files): Likewise.
22303         * modules/usleep-tests (Files): Likewise.
22304         * modules/utimensat-tests (Files): Likewise.
22305         * modules/vasprintf-tests (Files): Likewise.
22306         * modules/vdprintf-posix-tests (Files): Likewise.
22307         * modules/vfprintf-posix-tests (Files): Likewise.
22308         * modules/vprintf-posix-tests (Files): Likewise.
22309         * modules/vsnprintf-posix-tests (Files): Likewise.
22310         * modules/vsnprintf-tests (Files): Likewise.
22311         * modules/vsprintf-posix-tests (Files): Likewise.
22312         * modules/wcrtomb-tests (Files): Likewise.
22313         * modules/wcsnrtombs-tests (Files): Likewise.
22314         * modules/wcsrtombs-tests (Files): Likewise.
22315         * modules/wcwidth-tests (Files): Likewise.
22316         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22317         * tests/test-isinf.c (isinf): Likewise.
22318         * tests/test-isnan.c (isnan): Likewise.
22319         * tests/test-signbit.c (signbit): Likewise.
22320         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22321         declaration, either as macro or with correct signature.
22322         (select): Ensure function under test is declared with correct
22323         signature in correct header.
22324         * tests/test-atexit.c (atexit): Likewise.
22325         * tests/test-btowc.c (btowc): Likewise.
22326         * tests/test-canonicalize-lgpl.c (realpath)
22327         (canonicalize_file_name): Likewise.
22328         * tests/test-ceilf1.c (ceilf): Likewise.
22329         * tests/test-ceill.c (ceill): Likewise.
22330         * tests/test-chown.c (chown): Likewise.
22331         * tests/test-dprintf-posix.c (dprintf): Likewise.
22332         * tests/test-dup2.c (dup2): Likewise.
22333         * tests/test-dup3.c (dup3): Likewise.
22334         * tests/test-duplocale.c (duplocale): Likewise.
22335         * tests/test-fchdir.c (fchdir): Likewise.
22336         * tests/test-fchownat.c (fchownat): Likewise.
22337         * tests/test-fcntl.c (fcntl): Likewise.
22338         * tests/test-fdopendir.c (fdopendir): Likewise.
22339         * tests/test-fflush.c (fflush): Likewise.
22340         * tests/test-flock.c (flock): Likewise.
22341         * tests/test-floorf1.c (floorf): Likewise.
22342         * tests/test-floorl.c (floorl): Likewise.
22343         * tests/test-fnmatch.c (fnmatch): Likewise.
22344         * tests/test-fopen.c (fopen): Likewise.
22345         * tests/test-fprintf-posix.c (fprintf): Likewise.
22346         * tests/test-freopen.c (freopen): Likewise.
22347         * tests/test-frexp.c (frexp): Likewise.
22348         * tests/test-frexpl.c (frexpl): Likewise.
22349         * tests/test-fseek.c (fseek): Likewise.
22350         * tests/test-fseeko.c (fseeko): Likewise.
22351         * tests/test-fstatat.c (fstatat): Likewise.
22352         * tests/test-fsync.c (fsync): Likewise.
22353         * tests/test-ftell.c (ftell): Likewise.
22354         * tests/test-ftello.c (ftello): Likewise.
22355         * tests/test-futimens.c (futimens): Likewise.
22356         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22357         (gai_strerror): Likewise.
22358         * tests/test-getcwd.c (getcwd): Likewise.
22359         * tests/test-getdelim.c (getdelim): Likewise.
22360         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22361         * tests/test-getgroups.c (getgroups): Likewise.
22362         * tests/test-gethostname.c (gethostname): Likewise.
22363         * tests/test-getline.c (getline): Likewise.
22364         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22365         Likewise.
22366         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22367         * tests/test-glob.c (glob, globfree): Likewise.
22368         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22369         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22370         * tests/test-inet_pton.c (inet_pton): Likewise.
22371         * tests/test-isblank.c (isblank): Likewise.
22372         * tests/test-lchown.c (lchown): Likewise.
22373         * tests/test-ldexpl.c (ldexpl): Likewise.
22374         * tests/test-link.c (link): Likewise.
22375         * tests/test-linkat.c (linkat): Likewise.
22376         * tests/test-lseek.c (lseek): Likewise.
22377         * tests/test-lstat.c (lstat): Likewise.
22378         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22379         * tests/test-mbsinit.c (mbsinit): Likewise.
22380         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22381         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22382         * tests/test-memchr.c (memchr): Likewise.
22383         * tests/test-memcmp.c (memcmp): Likewise.
22384         * tests/test-memmem.c (memmem): Likewise.
22385         * tests/test-memrchr.c (memrchr): Likewise.
22386         * tests/test-mkdir.c (mkdir): Likewise.
22387         * tests/test-mkdirat.c (mkdirat): Likewise.
22388         * tests/test-mkfifo.c (mkfifo): Likewise.
22389         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22390         * tests/test-mknod.c (mknod): Likewise.
22391         * tests/test-nanosleep.c (nanosleep): Likewise.
22392         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22393         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22394         Likewise.
22395         * tests/test-open.c (open): Likewise.
22396         * tests/test-openat.c (openat): Likewise.
22397         * tests/test-perror.c (perror): Likewise.
22398         * tests/test-pipe2.c (pipe2): Likewise.
22399         * tests/test-poll.c (poll): Likewise.
22400         * tests/test-popen.c (popen, pclose): Likewise.
22401         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22402         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22403         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22404         (posix_spawn_file_actions_destroy)
22405         (posix_spawn_file_actions_addclose)
22406         (posix_spawn_file_actions_addopen)
22407         (posix_spawn_file_actions_adddup2): Likewise.
22408         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22409         * tests/test-pread.c (pread): Likewise.
22410         * tests/test-printf-posix.c (printf): Likewise.
22411         * tests/test-pty.c (openpty, forkpty): Likewise.
22412         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22413         (random_r): Likewise.
22414         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22415         * tests/test-readlink.c (readlink): Likewise.
22416         * tests/test-remove.c (remove): Likewise.
22417         * tests/test-rename.c (rename): Likewise.
22418         * tests/test-renameat.c (renameat): Likewise.
22419         * tests/test-rmdir.c (rmdir): Likewise.
22420         * tests/test-round1.c (round): Likewise.
22421         * tests/test-roundf1.c (roundf): Likewise.
22422         * tests/test-roundl.c (roundl): Likewise.
22423         * tests/test-setenv.c (setenv): Likewise.
22424         * tests/test-sigaction.c (sigaction): Likewise.
22425         * tests/test-sleep.c (sleep): Likewise.
22426         * tests/test-snprintf.c (snprintf): Likewise.
22427         * tests/test-sprintf-posix.c (sprintf): Likewise.
22428         * tests/test-stat.c (stat): Likewise.
22429         * tests/test-stpncpy.c (stpncpy): Likewise.
22430         * tests/test-strcasestr.c (strcasestr): Likewise.
22431         * tests/test-strchrnul.c (strchrnul): Likewise.
22432         * tests/test-strerror.c (strerror): Likewise.
22433         * tests/test-strsignal.c (strsignal): Likewise.
22434         * tests/test-strstr.c (strstr): Likewise.
22435         * tests/test-strtod.c (strtod): Likewise.
22436         * tests/test-strverscmp.c (strverscmp): Likewise.
22437         * tests/test-symlink.c (symlink): Likewise.
22438         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22439         * tests/test-times.c (times): Likewise.
22440         * tests/test-trunc1.c (trunc): Likewise.
22441         * tests/test-truncf1.c (truncf): Likewise.
22442         * tests/test-truncl.c (truncl): Likewise.
22443         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22444         Likewise.
22445         * tests/test-uname.c (uname): Likewise.
22446         * tests/test-unlink.c (unlink): Likewise.
22447         * tests/test-unlinkat.c (unlinkat): Likewise.
22448         * tests/test-unsetenv.c (unsetenv): Likewise.
22449         * tests/test-usleep.c (usleep): Likewise.
22450         * tests/test-utimensat.c (utimensat): Likewise.
22451         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22452         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22453         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22454         * tests/test-vprintf-posix.c (vprintf): Likewise.
22455         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22456         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22457         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22458         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22459         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22460         * tests/test-wcwidth.c (wcwidth): Likewise.
22461
22462         build: pull in conditional headers during GNULIB_POSIXCHECK
22463         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22464         definitions from any conditionally-included headers.
22465         * lib/stdlib.in.h (includes): Likewise.
22466         * lib/unistd.in.h (includes): Likewise.
22467
22468 2009-12-24  Bruno Haible  <bruno@clisp.org>
22469
22470         * tests/test-argv-iter.c: Include header file being tested immediately
22471         after config.h.
22472         * tests/test-base64.c: Likewise.
22473         * tests/test-flock.c: Likewise.
22474         * tests/test-fsync.c: Likewise.
22475         * tests/test-getdate.c: Likewise.
22476         * tests/test-getndelim2.c: Likewise.
22477         * tests/test-isfinite.c: Likewise.
22478         * tests/test-isinf.c: Likewise.
22479         * tests/test-strerror.c: Likewise.
22480         * tests/test-strsignal.c: Likewise.
22481
22482 2009-12-23  Eric Blake  <ebb9@byu.net>
22483
22484         unistd: work around cygwin bug
22485         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22486         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22487         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22488
22489 2009-12-23  Bruno Haible  <bruno@clisp.org>
22490
22491         localename: More tests.
22492         * tests/test-localename.c (SIZEOF): New macro.
22493         (categories): New variable.
22494         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22495         test_locale_name_default): Add test w.r.t. thread locale.
22496         (test_locale_name_thread): New function.
22497         (main): Invoke it.
22498
22499         localename: Make aware of thread locale.
22500         * lib/localename.h (gl_locale_name_thread): New declaration.
22501         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22502         behaviour with respect to thread locale.
22503         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22504         <langinfo.h>, glthread/lock.h.
22505         (SIZE_BITS): New macro.
22506         (string_hash): New function.
22507         (struct hash_node): New type.
22508         (HASH_TABLE_SIZE): New macro.
22509         (struniq_hash_table, struniq_lock): New variables.
22510         (struniq): New function.
22511         (gl_locale_name_thread): New function.
22512         (gl_locale_name): Invoke it.
22513         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22514         * modules/localename (Depends-on): Add lock.
22515         Reported by Mike Gran <spk121@yahoo.com>.
22516
22517 2009-12-23  Eric Blake  <ebb9@byu.net>
22518
22519         va-args: new module
22520         * modules/va-args: New file.
22521         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22522         * MODULES.html.sh (Core language properties): Mention it.
22523
22524         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22525         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22526         named alias for __attribute__((__unused__)).
22527         * lib/chown.c: Update client.
22528         * lib/fchmodat.c: Likewise.
22529         * lib/fts.c: Likewise.
22530         * lib/getdate.y: Likewise.
22531         * lib/getgroups.c: Likewise.
22532         * lib/getopt.c: Likewise.
22533         * lib/getugroups.c: Likewise.
22534         * lib/mkdir.c: Likewise.
22535         * lib/mkfifo.c: Likewise.
22536         * lib/mkfifoat.c: Likewise.
22537         * lib/mknod.c: Likewise.
22538         * lib/mknodat.c: Likewise.
22539         * lib/readlink.c: Likewise.
22540         * lib/se-context.in.h: Likewise.
22541         * lib/se-selinux.in.h: Likewise.
22542         * lib/sockets.c: Likewise.
22543         * lib/symlink.c: Likewise.
22544         * lib/symlinkat.c: Likewise.
22545         * lib/unicodeio.c: Likewise.
22546         * lib/unistr.h: Likewise.
22547         * tests/test-areadlink.c: Likewise.
22548         * tests/test-areadlinkat.c: Likewise.
22549         * tests/test-filenamecat.c: Likewise.
22550         * tests/test-fseeko.c: Likewise.
22551         * tests/test-ftello.c: Likewise.
22552         * tests/test-getdate.c: Likewise.
22553         * tests/test-getgroups.c: Likewise.
22554         * tests/test-gethostname.c: Likewise.
22555         * tests/test-quotearg.c: Likewise.
22556         * tests/test-version-etc.c: Likewise.
22557         * tests/test-xalloc-die.c: Likewise.
22558         * tests/test-xfprintf-posix.c: Likewise.
22559         * tests/test-xprintf-posix.c: Likewise.
22560         * tests/test-xvasprintf.c: Likewise.
22561
22562         tests: avoid compiler warnings
22563         * tests/test-fcntl.c (main): Delete unused parameters.
22564         * tests/test-freopen-safer.c (main): Likewise.
22565         * tests/test-xalloc-die.c (main): Mark unused parameters.
22566         * tests/test-fseeko.c (main): Likewise.
22567         * tests/test-ftello.c (main): Likewise.
22568         * tests/test-nanosleep.c (main): Avoid declaration warning.
22569         * tests/test-sleep.c (main): Likewise.
22570         * tests/test-unsetenv.c (main): Silence warning about string
22571         literal.
22572         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22573
22574 2009-12-23  Bruno Haible  <bruno@clisp.org>
22575
22576         * tests/test-localename.c (test_locale_name): New function, extracted
22577         from main. Also test mixed situations.
22578         (test_locale_name_posix, test_locale_name_environ,
22579         test_locale_name_default): New functions.
22580         (main): Invoke them all.
22581         * modules/localename-tests (configure.ac): Test for newlocale.
22582
22583 2009-12-23  Bruno Haible  <bruno@clisp.org>
22584
22585         unistd: Ensure getcwd gets declared before being overridden.
22586         * lib/unistd.in.h: Conditionally include <io.h>.
22587
22588 2009-12-22  Bruno Haible  <bruno@clisp.org>
22589
22590         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22591         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22592         (gl_WCHAR_H): Invoke it.
22593         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22594         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22595         Reported by Karl Berry <karl@freefriends.org>.
22596
22597 2009-12-22  Eric Blake  <ebb9@byu.net>
22598
22599         math, unistd: avoid redundant includes
22600         * lib/math.in.h (isnan): No need to re-include <math.h>.
22601         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22602
22603         getsubopt: work around cygwin bug
22604         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22605         avoid conflicting with system getsubopt.
22606         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22607         bug.
22608
22609         getopt: synchronize from glibc
22610         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22611         parameter order.  Adjust all callers.
22612         (_getopt_internal_r, main): Adjust quoting in error messages.
22613         Drop considerations for outdated POSIX 1003.2 error message.
22614         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22615         callers.
22616         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22617
22618         test-getopt: test stderr behavior
22619         * modules/getopt-posix-tests (Depends-on): Add dup2.
22620         * tests/test-getopt.c (ASSERT): Avoid stderr.
22621         (main): Move stderr to a temporary file.
22622         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22623         Instead, add parameter to inform caller if output occurred.
22624         (test_getopt): Adjust all existing tests to expect silence, and
22625         add new tests of leading ":".
22626         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22627         glibc shortcomings with leading "-:" or "+:" in optstring.
22628         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22629         Likewise.
22630         * doc/posix-functions/getopt.texi (getopt): Likewise.
22631
22632         test-getopt: enhance test
22633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22634         supports optind=0.
22635         * tests/test-getopt.c (OPTIND_MIN): Move...
22636         * tests/test-getopt.h (OPTIND_MIN): ...here.
22637         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22638         Require that optind=0 works, since modern BSD supports it in
22639         addition to optreset, and since coreutils expects it.
22640         (test_getopt_long_only): New test.
22641         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22642         glibc shortcomings with 'W;', and enforcement of optind=0.
22643         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22644         Likewise.
22645
22646 2009-12-21  Bruno Haible  <bruno@clisp.org>
22647
22648         localename: Improvements for MacOS X and Cygwin.
22649         * lib/localename.h (gl_locale_name_environ): New declaration.
22650         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22651         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22652         (gl_locale_name_posix): Invoke it.
22653         (gl_locale_name_default): Add comments. Use Windows native API also on
22654         Cygwin.
22655
22656 2009-12-21  Bruno Haible  <bruno@clisp.org>
22657
22658         Update list of Win32 locale ids.
22659         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22660         (LANG_SAMI): Renamed from LANG_SAAMI.
22661         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22662         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22663         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22664         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22665         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22666         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22667         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22668         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22669         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22670         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22671         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22672         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22673         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22674         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22675         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22676         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22677         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22678         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22679         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22680         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22681         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22682         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22683         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22684         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22685         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22686         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22687         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22688         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22689         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22690         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22691         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22692         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22693         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22694         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22695         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22696         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22697         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22698         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22699         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22700         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22701         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22702         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22703         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22704         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22705         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22706         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22707         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22708         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22709         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22710         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22711         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22712         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22713         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22714         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22715         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22716         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22717         Add more languages and countries for Sami, Sorbian. Add more countries
22718         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22719         for Pashto. Change country for Syriac, Tswana.
22720
22721 2009-12-21  Eric Blake  <ebb9@byu.net>
22722
22723         test-utimens: avoid spurious failure
22724         * tests/test-chown.h (nap): Factor...
22725         * tests/nap.h: ...into new file.
22726         * tests/test-lchown.h (nap): Avoid duplication.
22727         * tests/test-utimens-common.h (nap): Use shared implementation,
22728         necessary on file systems with 1-second resolution.
22729         * modules/chown-tests (Files): Include new file.
22730         * modules/fdutimensat-tests (Files): Likewise.
22731         * modules/futimens-tests (Files): Likewise.
22732         * modules/lchown-tests (Files): Likewise.
22733         * modules/openat-tests (Files): Likewise.
22734         * modules/utimens-tests (Files): Likewise.
22735         * modules/utimensat-tests (Files): Likewise.
22736
22737 2009-12-19  Eric Blake  <ebb9@byu.net>
22738
22739         futimens, utimensat: work around Linux bug
22740         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22741         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22742         * lib/utimensat.c (rpl_utimensat): Work around it.
22743         * lib/futimens.c (rpl_futimens): Adjust comment.
22744
22745         utimens: work around Linux ctime bug
22746         * lib/utimens.c (detect_ctime_bug): New helper function.
22747         (update_timespec): Differentiate between workaround needed for
22748         this bug vs. what is needed for systems that lack utimensat.
22749         (fdutimens, lutimens): Work around bug.
22750
22751         utimens: check for ctime update
22752         * tests/test-utimens-common.h (check_ctime): Define.
22753         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22754         * tests/test-futimens.h (test_futimens): Likewise.
22755         * tests/test-lutimens.h (test_lutimens): Likewise.
22756         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22757         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22758
22759 2009-12-19  Bruno Haible  <bruno@clisp.org>
22760
22761         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22762         * tests/test-dprintf-posix2.sh: New file.
22763         * tests/test-dprintf-posix2.c: New file.
22764         * modules/dprintf-posix-tests (Files): Add them.
22765         (configure.ac): Check for getrlimit and setrlimit.
22766         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22767
22768 2009-12-19  Bruno Haible  <bruno@clisp.org>
22769
22770         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22771         * tests/test-fprintf-posix3.sh: New file.
22772         * tests/test-fprintf-posix3.c: New file.
22773         * modules/fprintf-posix-tests (Files): Add them.
22774         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22775
22776 2009-12-19  Eric Blake  <ebb9@byu.net>
22777
22778         dirfd: fix prototype
22779         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22780         * lib/dirfd.c (dirfd): Likewise.
22781
22782         canonicalize: reduce memory usage
22783         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22784         allocation to size.
22785         Reported by Solar Designer <solar@openwall.com>.
22786
22787 2009-12-19  Bruno Haible  <bruno@clisp.org>
22788
22789         New module attribute 'Applicability'.
22790         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22791         * gnulib-tool: New option --extract-applicability.
22792         (func_usage): Document it.
22793         (sed_extract_prog): Recognize it.
22794         (func_get_applicability): New function.
22795         (func_import): Generalize handling of 'link-warning' module.
22796         * modules/link-warning (Applicability): New section.
22797         * modules/arg-nonnull (Applicability): New section.
22798         Repoted by Simon Josefsson <simon@josefsson.org>.
22799
22800 2009-12-19  Bruno Haible  <bruno@clisp.org>
22801
22802         fflush: tweak
22803         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22804         * lib/fseeko.c (rpl_fseeko): Likewise.
22805
22806 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22807
22808         * lib/gl_list.h: Fix typo in comment.
22809
22810 2009-12-16  Eric Blake  <ebb9@byu.net>
22811
22812         fcntl: use to simplify other modules
22813         * modules/cloexec (Depends-on): Add fcntl.
22814         * modules/fchdir (Depends-on): Likewise.
22815         * modules/fd-safer-flag (Depends-on): Likewise.
22816         * modules/unistd-safer (Depends-on): Likewise.
22817         * modules/dup3 (configure.ac): Set module indicator.
22818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22819         missing.
22820         * lib/fchdir.c (_gl_register_dup): Fix comment.
22821         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22822         * lib/dup-safer.c (dup_safer): Likewise.
22823         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22824         * lib/dup3.c (dup3): Likewise.
22825         * tests/test-fchdir.c (main): Enhance test.
22826         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22827
22828         fcntl: port portions of fcntl to mingw
22829         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22830         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22831         replacement for mingw.
22832         * modules/fcntl (Description): Update.
22833         (Depends-on): Add dup2.
22834         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22835         * modules/fcntl-h (Makefile.am): Substitute it.
22836         * lib/fcntl.in.h (fcntl): Update declaration.
22837         (F_DUPFD, F_GETFD): New macros, when needed.
22838         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22839         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22840         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22841         we now guarantee.
22842
22843         fcntl: work around cygwin bug in F_DUPFD
22844         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22845         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22846         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22847         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22848         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22849
22850         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22851         * modules/fcntl (Files): List new files.
22852         (configure.ac): Run a test.
22853         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22854         * lib/fcntl.c (rpl_fcntl): Likewise.
22855         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22856         (gl_FCNTL_H): Always replace fcntl.h.
22857         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22858         * lib/fcntl.in.h (fcntl): Declare replacement.
22859         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22860         needed, plus a witness.
22861         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22862         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22863         * tests/test-fcntl.c: New file.
22864         * modules/fcntl-tests: Likewise.
22865
22866         binary-io: avoid potential compilation warning
22867         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22868         directives.
22869
22870         fflush: avoid compilation error on NetBSD
22871         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22872         between off_t and fpos_t, since the latter is sometimes a struct.
22873         * lib/fseeko.c (rpl_fseeko): Likewise.
22874         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22875
22876 2009-12-15  Eric Blake  <ebb9@byu.net>
22877
22878         fcntl-h, stdio, sys_ioctl: fix declarations
22879         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22880         function must not take arguments.
22881         * lib/sys_ioctl.in.h (ioctl): Likewise.
22882         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22883         (open): Add a link warning.
22884
22885 2009-12-15  Jim Meyering  <meyering@redhat.com>
22886
22887         areadlink, areadlink-with-size: relax license to LGPLv2+
22888         * modules/areadlink (License): Relax to LGPLv2+.
22889         * modules/areadlink-with-size (License): Likewise.
22890
22891 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22892             Bruno Haible  <bruno@clisp.org>
22893
22894         *printf: Fix memory leak.
22895         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22896         * lib/vfprintf.c (vfprintf): Likewise.
22897         * lib/dprintf.c (dprintf): Likewise.
22898         * lib/vdprintf.c (vdprintf): Likewise.
22899
22900 2009-12-14  Eric Blake  <ebb9@byu.net>
22901
22902         accept4: adjust module dependencies
22903         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22904
22905         utimens: one more try at avoiding compiler warning
22906         * lib/utimens.c (lutimens): Lower scope of result.
22907
22908 2009-12-13  Bruno Haible  <bruno@clisp.org>
22909
22910         Move the malloc checking from module 'list' to new module 'xlist'.
22911         * modules/xlist: New file.
22912         * lib/gl_xlist.h: New file.
22913         * lib/gl_xlist.c: New file.
22914         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22915         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22916         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22917         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22918         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22919         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22920         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22921         gl_sortedlist_nx_add): New declarations.
22922         (struct gl_list_implementation): Rename and change methods accordingly.
22923         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22924         (gl_list_nx_create): Renamed from gl_list_create.
22925         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22926         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22927         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22928         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22929         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22930         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22931         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22932         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22933         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22934         gl_list_create_empty.
22935         (gl_list_nx_create): Renamed from gl_list_create.
22936         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22937         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22938         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22939         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22940         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22941         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22942         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22943         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22944         * lib/gl_array_list.c: Don't include xalloc.h.
22945         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22946         NULL upon out-of-memory.
22947         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22948         out-of-memory.
22949         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22950         Change return type to 'int'.
22951         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22952         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22953         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22954         upon out-of-memory.
22955         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22956         upon out-of-memory.
22957         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22958         upon out-of-memory.
22959         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22960         upon out-of-memory.
22961         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22962         out-of-memory.
22963         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22964         Update.
22965         (gl_array_list_implementation): Update.
22966         * lib/gl_carray_list.c: Don't include xalloc.h.
22967         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22968         Return NULL upon out-of-memory.
22969         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22970         out-of-memory.
22971         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22972         Change return type to 'int'.
22973         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22974         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22975         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22976         upon out-of-memory.
22977         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22978         upon out-of-memory.
22979         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22980         out-of-memory.
22981         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22982         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22983         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22984         Update.
22985         (gl_carray_list_implementation): Update.
22986         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22987         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22988         gl_linked_create_empty. Return NULL upon out-of-memory.
22989         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22990         out-of-memory.
22991         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22992         Change return type to 'int'. Return -1 upon out-of-memory.
22993         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22994         out-of-memory.
22995         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22996         upon out-of-memory.
22997         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22998         upon out-of-memory.
22999         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23000         NULL upon out-of-memory.
23001         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23002         upon out-of-memory.
23003         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23004         out-of-memory.
23005         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23006         Update.
23007         * lib/gl_linked_list.c: Don't include xalloc.h.
23008         (gl_linked_list_implementation): Update.
23009         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23010         (add_to_bucket): Change return type to 'int'.
23011         (gl_linkedhash_list_implementation): Update.
23012         * lib/gl_anytree_list1.h (free_subtree): New function.
23013         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23014         gl_tree_create_empty. Return NULL upon out-of-memory.
23015         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23016         Change return type to 'int'. Return -1 upon out-of-memory.
23017         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23018         out-of-memory.
23019         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23020         (gl_tree_remove_node): New function, moved here from
23021         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23022         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23023         Update.
23024         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23025         malloc, not xmalloc. Return NULL upon out-of-memory.
23026         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23027         out-of-memory.
23028         (gl_tree_remove_node_from_tree): New function, extracted from
23029         gl_tree_remove_node.
23030         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23031         upon out-of-memory.
23032         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23033         out-of-memory.
23034         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23035         upon out-of-memory.
23036         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23037         upon out-of-memory.
23038         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23039         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23040         not xmalloc. Return NULL upon out-of-memory.
23041         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23042         out-of-memory.
23043         (gl_tree_remove_node_from_tree): New function, extracted from
23044         gl_tree_remove_node.
23045         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23046         upon out-of-memory.
23047         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23048         out-of-memory.
23049         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23050         upon out-of-memory.
23051         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23052         upon out-of-memory.
23053         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23054         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23055         gl_anytree_list1.h before gl_anyavltree_list2.h.
23056         (gl_avltree_list_implementation): Update.
23057         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23058         gl_anytree_list1.h before gl_anyavltree_list2.h.
23059         (gl_rbtree_list_implementation): Update.
23060         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23061         Change return type to 'int'. Return -1 upon out-of-memory. Use
23062         __builtin_expect.
23063         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23064         (gl_avltreehash_list_implementation): Update.
23065         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23066         (gl_rbtreehash_list_implementation): Update.
23067         * modules/array-list (Depends-on): Remove xalloc.
23068         * modules/carray-list (Depends-on): Likewise.
23069         * modules/linked-list (Depends-on): Likewise.
23070         * modules/linkedhash-list (Depends-on): Likewise.
23071         * modules/avltree-list (Depends-on): Likewise.
23072         * modules/rbtree-list (Depends-on): Likewise.
23073         * modules/avltreehash-list (Depends-on): Likewise.
23074         * modules/rbtreehash-list (Depends-on): Likewise.
23075
23076         * modules/xsublist: New file.
23077         * lib/gl_xsublist.h: New file.
23078         * lib/gl_xsublist.c: New file.
23079         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23080         (gl_sublist_nx_create): New declaration.
23081         * lib/gl_sublist.c: Don't include xalloc.h.
23082         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23083         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23084         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23085         Change return type to 'int'. Return -1 upon out-of-memory.
23086         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23087         upon out-of-memory.
23088         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23089         NULL upon out-of-memory.
23090         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23091         upon out-of-memory.
23092         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23093         NULL upon out-of-memory.
23094         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23095         NULL upon out-of-memory.
23096         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23097         upon out-of-memory.
23098         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23099         (gl_sublist_list_implementation): Update.
23100         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23101         upon out-of-memory.
23102         * modules/sublist (Depends-on): Remove xalloc.
23103
23104         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23105         * tests/test-carray_list.c: Likewise.
23106         * tests/test-linked_list.c: Likewise.
23107         * tests/test-linkedhash_list.c: Likewise.
23108         * tests/test-avltree_list.c: Likewise.
23109         * tests/test-rbtree_list.c: Likewise.
23110         * tests/test-avltreehash_list.c: Likewise.
23111         * tests/test-rbtreehash_list.c: Likewise.
23112         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23113         * modules/carray-list-tests (Makefile.am): Likewise.
23114         * modules/linked-list-tests (Makefile.am): Likewise.
23115         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23116         * modules/avltree-list-tests (Makefile.am): Likewise.
23117         * modules/rbtree-list-tests (Makefile.am): Likewise.
23118         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23119         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23120
23121         * NEWS: Mention the changes.
23122
23123         * lib/clean-temp.c: Include gl_xlist.h.
23124         * modules/clean-temp (Depends-on): Add xlist.
23125
23126         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23127         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23128
23129         * tests/test-array_oset.c: Include gl_xlist.h.
23130         * modules/array-oset-tests (Depends-on): Add xlist.
23131
23132         Reported by José E. Marchesi <jemarch@gnu.org>.
23133
23134 2009-12-13  Bruno Haible  <bruno@clisp.org>
23135
23136         Move the malloc checking from module 'oset' to new module 'xoset'.
23137         * modules/xoset: New file.
23138         * lib/gl_xoset.h: New file.
23139         * lib/gl_xoset.c: New file.
23140         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23141         declarations.
23142         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23143         (struct gl_oset_implementation): Rename and change methods accordingly.
23144         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23145         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23146         'int'. Mark as __warn_unused_result__.
23147         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23148         gl_oset_create_empty.
23149         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23150         'int'.
23151         * lib/gl_array_oset.c: Don't include xalloc.h.
23152         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23153         malloc, not xmalloc.
23154         (grow): Change return type to 'int'. Don't call xalloc_die.
23155         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23156         to 'int'.
23157         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23158         'int'.
23159         (gl_array_oset_implementation): Update.
23160         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23161         gl_tree_create_empty.
23162         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23163         'int'.
23164         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23165         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23166         xmalloc.
23167         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23168         not xmalloc.
23169         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23170         xmalloc.
23171         (gl_avltree_oset_implementation): Update.
23172         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23173         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23174         xmalloc.
23175         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23176         not xmalloc.
23177         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23178         xmalloc.
23179         (gl_rbtree_oset_implementation): Update.
23180         * modules/array-oset (Depends-on): Remove xalloc.
23181         * modules/avltree-oset (Depends-on): Likewise.
23182         * modules/rbtree-oset (Depends-on): Likewise.
23183         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23184         * tests/test-avltree_oset.c: Likewise.
23185         * tests/test-rbtree_oset.c: Likewise.
23186         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23187         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23188         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23189         * NEWS: Mention the change.
23190
23191 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23192
23193         maint.mk: allow a project to override release-prep commands
23194         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23195         commands into a new rule.
23196         (release-prep): New rule.
23197         (release-prep-hook): New overridable variable.
23198
23199 2009-12-13  Bruno Haible  <bruno@clisp.org>
23200
23201         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23202
23203 2009-12-13  Jim Meyering  <meyering@redhat.com>
23204
23205         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23206         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23207
23208 2009-12-12  Bruno Haible  <bruno@clisp.org>
23209
23210         duplocale: Tweak.
23211         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23212
23213 2009-12-12  Karl Berry  <karl@gnu.org>
23214
23215         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23216
23217 2009-12-12  Bruno Haible  <bruno@clisp.org>
23218
23219         * m4/po.m4: Undo incorrect untabification.
23220
23221 2009-12-12  Bruno Haible  <bruno@clisp.org>
23222
23223         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23224         * modules/c-strtod (Depends-on): Add locale.
23225         * modules/c-strtold (Depends-on): Likewise.
23226
23227 2009-12-12  Bruno Haible  <bruno@clisp.org>
23228
23229         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23230
23231 2009-12-11  Eric Blake  <ebb9@byu.net>
23232
23233         setenv: relax requirement in light of POSIX ruling
23234         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23235         not NULL.
23236         * tests/test-setenv.c (main): Relax test.
23237         * tests/test-unsetenv.c (main): Likewise.
23238         * doc/posix-functions/setenv.texi (setenv): Document this.
23239         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23240
23241 2009-12-11  Bruno Haible  <bruno@clisp.org>
23242
23243         New module 'fd-safer-flag'.
23244         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23245         * lib/dup-safer.c (dup_safer_flag): Remove function.
23246         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23247         * lib/fd-safer.c (fd_safer_flag): Remove function.
23248         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23249         * modules/cloexec (configure.ac): Drop indicator macro.
23250         * modules/fd-safer-flag: New file.
23251         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23252         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23253         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23254
23255 2009-12-11  Bruno Haible  <bruno@clisp.org>
23256
23257         Tests for module 'nl_langinfo'.
23258         * modules/nl_langinfo-tests: New file.
23259         * tests/test-nl_langinfo.sh: New file.
23260         * tests/test-nl_langinfo.c: New file.
23261
23262         New module 'nl_langinfo'.
23263         * lib/nl_langinfo.c: New file.
23264         * m4/nl_langinfo.m4: New file.
23265         * modules/nl_langinfo: New file.
23266         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23267
23268 2009-12-11  Bruno Haible  <bruno@clisp.org>
23269
23270         Tests for module 'langinfo'.
23271         * modules/langinfo-tests: New file.
23272         * tests/test-langinfo.c: New file.
23273
23274         New module 'langinfo'.
23275         * lib/langinfo.in.h: New file.
23276         * m4/langinfo_h.m4: New file.
23277         * modules/langinfo: New file.
23278         * doc/posix-headers/langinfo.texi: Mention the new module.
23279
23280 2009-12-11  Bruno Haible  <bruno@clisp.org>
23281
23282         * lib/config.charset: Untabify.
23283
23284 2009-12-11  Bruno Haible  <bruno@clisp.org>
23285
23286         * modules/unistd-safer (configure.ac): Drop indicator macro.
23287
23288 2009-12-11  Bruno Haible  <bruno@clisp.org>
23289
23290         Move pipe2-safer code to its own file.
23291         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23292         * lib/pipe-safer.c (pipe2_safer): Remove function.
23293         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23294         (Makefile.am): Add it to lib_SOURCES.
23295
23296 2009-12-10  Bruno Haible  <bruno@clisp.org>
23297
23298         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23299
23300 2009-12-10  Bruno Haible  <bruno@clisp.org>
23301
23302         Declare which arguments expect non-NULL values, for GCC and clang.
23303         * build-aux/arg-nonnull.h: New file.
23304         * modules/arg-nonnull: New file.
23305         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23306         (inet_ntop, inet_pton): Use it.
23307         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23308         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23309         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23310         (open, openat): Use it.
23311         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23312         (fnmatch): Use it.
23313         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23314         (getopt, getopt_long, getopt_long_only): Use it.
23315         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23316         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23317         Use it.
23318         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23319         (iconv_open): Use it.
23320         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23321         (strtoimax, strtoumax): Use it.
23322         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23323         (duplocale): Use it.
23324         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23325         (frexp, frexpl): Use it.
23326         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23327         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23328         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23329         (tsearch, tfind, tdelete, twalk): Use it.
23330         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23331         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23332         sigpending): Use it.
23333         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23334         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23335         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23336         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23337         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23338         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23339         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23340         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23341         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23342         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23343         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23344         Use it.
23345         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23346         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23347         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23348         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23349         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23350         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23351         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23352         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23353         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23354         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23355         strtoull, unsetenv): Use it.
23356         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23357         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23358         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23359         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23360         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23361         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23362         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23363         (strcasecmp, strncasecmp): Use it.
23364         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23365         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23366         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23367         rpl_setsockopt): Use it.
23368         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23369         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23370         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23371         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23372         (gettimeofday): Use it.
23373         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23374         (times): Use it.
23375         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23376         (uname): Use it.
23377         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23378         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23379         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23380         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23381         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23382         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23383         unlinkat, write): Use it.
23384         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23385         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23386         * lib/argv-iter.h: Include arg-nonnull.h.
23387         (_ATTRIBUTE_NONNULL_): Remove macro.
23388         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23389         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23390         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23391         optimization.
23392         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23393         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23394         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23395         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23396         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23397         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23398         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23399         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23400         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23401         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23402         * modules/dirent (Depends-on): Add arg-nonnull.
23403         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23404         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23405         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23406         * modules/fnmatch (Depends-on): Add arg-nonnull.
23407         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23408         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23409         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23410         * modules/glob (Depends-on): Add arg-nonnull.
23411         (Makefile.am): Insert arg-nonnull.h into glob.h.
23412         * modules/iconv_open (Depends-on): Add arg-nonnull.
23413         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23414         * modules/inttypes (Depends-on): Add arg-nonnull.
23415         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23416         * modules/locale (Depends-on): Add arg-nonnull.
23417         (Makefile.am): Insert arg-nonnull.h into locale.h.
23418         * modules/math (Depends-on): Add arg-nonnull.
23419         (Makefile.am): Insert arg-nonnull.h into math.h.
23420         * modules/netdb (Depends-on): Add arg-nonnull.
23421         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23422         * modules/search (Depends-on): Add arg-nonnull.
23423         (Makefile.am): Insert arg-nonnull.h into search.h.
23424         * modules/signal (Depends-on): Add arg-nonnull.
23425         (Makefile.am): Insert arg-nonnull.h into signal.h.
23426         * modules/spawn (Depends-on): Add arg-nonnull.
23427         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23428         * modules/stdio (Depends-on): Add arg-nonnull.
23429         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23430         * modules/stdlib (Depends-on): Add arg-nonnull.
23431         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23432         * modules/string (Depends-on): Add arg-nonnull.
23433         (Makefile.am): Insert arg-nonnull.h into string.h.
23434         * modules/strings (Depends-on): Add arg-nonnull.
23435         (Makefile.am): Insert arg-nonnull.h into strings.h.
23436         * modules/sys_socket (Depends-on): Add arg-nonnull.
23437         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23438         * modules/sys_stat (Depends-on): Add arg-nonnull.
23439         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23440         * modules/sys_time (Depends-on): Add arg-nonnull.
23441         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23442         * modules/sys_times (Depends-on): Add arg-nonnull.
23443         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23444         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23445         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23446         * modules/time (Depends-on): Add arg-nonnull.
23447         (Makefile.am): Insert arg-nonnull.h into time.h.
23448         * modules/unistd (Depends-on): Add arg-nonnull.
23449         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23450         * modules/wchar (Depends-on): Add arg-nonnull.
23451         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23452         * modules/argv-iter (Depends-on): Add arg-nonnull.
23453         * tests/test-canonicalize.c (null_ptr): New function.
23454         (main): Use it.
23455         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23456         (main): Use it.
23457         * tests/test-memmem.c (null_ptr): New function.
23458         (main): Use it.
23459         Reported by Jim Meyering.
23460
23461 2009-12-10  Bruno Haible  <bruno@clisp.org>
23462
23463         Use spaces for indentation, not tabs.
23464         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23465         * m4/*.m4: Untabify.
23466         * build-aux/*.h: Untabify.
23467         * tests/**/*.[hc]: Untabify.
23468         * README: New section "Indent with spaces, not TABs", based on
23469         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23470         * NEWS: Mention the change.
23471
23472 2009-12-10  Bruno Haible  <bruno@clisp.org>
23473
23474         pty test: Fix link error.
23475         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23476         test_pty_LDADD.
23477
23478 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23479
23480         * modules/pty: New file.
23481         * modules/pty-tests: New file.
23482         * m4/pty.m4: New file.
23483         * tests/test-pty.c: New file.
23484         * doc/glibc-headers/pty.texi: Modified.
23485         * doc/glibc-functions/forkpty.texi: Modified.
23486         * doc/glibc-functions/openpty.texi: Modified.
23487
23488 2009-12-10  Bruno Haible  <bruno@clisp.org>
23489
23490         Avoid syntax error in C++ mode.
23491         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23492
23493 2009-12-10  Bruno Haible  <bruno@clisp.org>
23494
23495         Use sed with option -e.
23496         * gnulib-tool (func_version, func_emit_copyright_notice,
23497         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23498         option -e to sed.
23499         * modules/link-warning (Makefile.am): Likewise.
23500
23501 2009-12-10  Jim Meyering  <meyering@redhat.com>
23502
23503         mgetgroups: do not write bytes beyond end of malloc'd buffer
23504         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23505         username, we call getgroups with a one-element-shorter buffer,
23506         but still told it the length was original, max_n_groups.
23507
23508 2009-12-09  Eric Blake  <ebb9@byu.net>
23509
23510         cloexec: relax license
23511         * modules/cloexec (Maintainer): Add myself.
23512         (License): Use LGPL, not GPL.
23513
23514         link-warning: optimize generation
23515         * modules/link-warning (Makefile.am): Reduce process usage.
23516
23517 2009-12-09  Bruno Haible  <bruno@clisp.org>
23518
23519         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23520         workaround was added on 2009-11-17.
23521
23522 2009-12-09  Jim Meyering  <meyering@redhat.com>
23523             Bruno Haible  <bruno@clisp.org>
23524
23525         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23526         * modules/link-warning (Makefile.am): Make the comment-removing sed
23527         command more robust in the face of bootstrap-prepended comment lines.
23528
23529 2009-12-09  Bruno Haible  <bruno@clisp.org>
23530
23531         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23532         most one group.
23533
23534 2009-12-09  Simon Josefsson <simon@josefsson.org>
23535             Bruno Haible  <bruno@clisp.org>
23536
23537         * build-aux/link-warning.h: Add copyright notice.
23538         * modules/link-warning (Makefile.am): Generate link-warning.h from
23539         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23540         * NEWS: Mention change in link-warning module.
23541         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23542         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23543         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23544         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23545         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23546         * modules/math (Makefile.am): Add dependency to math.h.
23547         * modules/search (Makefile.am): Add dependency to search.h.
23548         * modules/signal (Makefile.am): Add dependency to signal.h.
23549         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23550         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23551         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23552         * modules/string (Makefile.am): Add dependency to string.h.
23553         * modules/strings (Makefile.am): Add dependency to strings.h.
23554         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23555         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23556         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23557         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23558         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23559         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23560         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23561         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23562         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23563
23564 2009-12-09  Bruno Haible  <bruno@clisp.org>
23565
23566         fchdir: Optimize away rpl_fstat when possible.
23567         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23568         REPLACE_OPEN_DIRECTORY.
23569         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23570
23571 2009-12-09  Bruno Haible  <bruno@clisp.org>
23572
23573         * lib/fchdir.c: Update comment.
23574
23575 2009-12-09  Bruno Haible  <bruno@clisp.org>
23576
23577         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23578
23579 2009-12-08  Eric Blake  <ebb9@byu.net>
23580
23581         fchdir: avoid memory leak on re-registration.
23582         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23583
23584 2009-12-08  Jim Meyering  <meyering@redhat.com>
23585
23586         init.sh: avoid Solaris 10 /bin/sh portability problem
23587         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23588         sourced script:
23589           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23590           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23591           bar
23592         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23593         and two tests used that idiom.
23594         * tests/init.sh: Update suggested usage comments.
23595         (path_prepend_): New function, to be used in place
23596         of the --src-path=DIR option.
23597         (setup_): Move PATH-prepending code into path_prepend_.
23598         * tests/test-pread.sh: Adapt to new usage.
23599         * tests/test-xalloc-die.sh: Likewise.
23600
23601 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23602
23603         * doc/gnulib.texi (Glibc pty.h): Add.
23604         * doc/glibc-functions/forkpty.texi: Add.
23605         * doc/glibc-functions/openpty.texi: Add.
23606         Suggested by Bruno Haible.
23607
23608 2009-12-08  Eric Blake  <ebb9@byu.net>
23609
23610         fchdir: fix logic bugs
23611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23612         * tests/test-fchdir.c (main): Enhance test.
23613         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23614         is in use.
23615
23616         dup2: fix logic bugs
23617         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23618         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23619         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23620         exists.
23621         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23622
23623 2009-12-07  Eric Blake  <ebb9@byu.net>
23624
23625         unlink: fix m4 detection
23626         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23627
23628         unistd-safer: add unit test
23629         * modules/unistd-safer-tests: New file.
23630         * tests/test-dup-safer.c: Likewise.
23631         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23632         * tests/test-dup2.c (setmode): Likewise.
23633         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23634
23635         cloexec: preserve text vs. binary across dup_cloexec
23636         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23637         mode.
23638         * modules/dup2-tests (Depends-on): Add binary-io.
23639         * modules/cloexec-tests (Depends-on): Likewise.
23640         * tests/test-dup2.c (setmode, is_mode): New helpers.
23641         (main): Add tests that translation mode is preserved.
23642         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23643         Reported by Bruno Haible.
23644
23645         mgetgroups: reduce duplicate listings
23646         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23647         resulting array.
23648         * tests/test-chown.h (test_chown): Simplify client.
23649         * tests/test-lchown.h (test_lchown): Likewise.
23650
23651 2009-12-06  Bruno Haible  <bruno@clisp.org>
23652
23653         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23654         value.
23655
23656 2009-12-06  Bruno Haible  <bruno@clisp.org>
23657
23658         * lib/progname.c: Include stdio.h, stdlib.h.
23659         (set_program_name): Reject a NULL argument.
23660
23661 2009-12-05  Eric Blake  <ebb9@byu.net>
23662
23663         pipe2-safer: new module
23664         * modules/pipe2-safer: New file.
23665         * lib/unistd-safer.h (pipe2_safer): New prototype.
23666         * lib/unistd--.h (pipe2): New wrapper.
23667         * lib/pipe-safer.c (pipe2_safer): New function.
23668         * modules/pipe (Depends-on): Add pipe2-safer.
23669         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23670
23671         stdlib-safer: preserve cloexec flag for mkostemp[s]
23672         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23673         fd_safer_flag.
23674
23675         unistd-safer: allow preservation of cloexec status via flag
23676         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23677         prototypes.
23678         * lib/dup-safer.c (dup_safer_flag): New function.
23679         * lib/fd-safer.c (fd_safer_flag): Likewise.
23680         * modules/cloexec (configure.ac): Set witness.
23681
23682         test-dup2: enhance test
23683         * modules/dup2-tests (Depends-on): Add cloexec.
23684         * tests/test-dup2.c (main): Enhance test.
23685
23686         cloexec: add dup_cloexec
23687         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23688         header and comments.
23689         * lib/cloexec.c (set_cloexec_flag): Add comments.
23690         (dup_cloexec): New function, with mingw implementation borrowed
23691         from...
23692         * lib/w32spawn.h (dup_noinherit): ...here.
23693         * modules/execute (Depends-on): Add cloexec.
23694         * modules/pipe (Depends-on): Likewise.
23695         * modules/cloexec (Depends-on): Add dup2.
23696         * modules/cloexec-tests (Files): New file.
23697         * tests/test-cloexec.c: Likewise.
23698
23699         test-xalloc-die: fix test for mingw
23700         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23701         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23702         directory and .exe suffix off argv[0] output.
23703
23704         test-fseeko: fix test for mingw
23705         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23706         than undefining fseek, so test will pass on mingw.
23707
23708 2009-12-05  Bruno Haible  <bruno@clisp.org>
23709
23710         * lib/progname.h (set_program_name): Clarify specification.
23711         * lib/progname.c (set_program_name): Likewise.
23712         Reported by Jim Meyering.
23713
23714 2009-12-05  Jim Meyering  <meyering@redhat.com>
23715
23716         maint.mk: backslash-escape parens in default regexp
23717         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23718         backslash-escape the literal parentheses.
23719
23720         maint.mk: news-date-check: use grep -E
23721         * top/maint.mk (today): Define a Make variable, not a...
23722         (news-date-check): ...shell variable.
23723         (news-date-regexp): Use the Make variable.
23724         Use grep's -E option.  Change the failing diagnostic to mention
23725         the variable, $(news-date-regexp).
23726
23727 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23728
23729         maintainer-makefile: allow customization of NEWS entry format
23730         * top/maint.mk (news-date-regexp): New overridable variable.
23731         (news-date-check): Use it.
23732
23733 2009-12-04  Eric Blake  <ebb9@byu.net>
23734
23735         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23736         * lib/mgetgroups.h (xgetgroups): New prototype.
23737         * lib/mgetgroups.c (xgetgroups): New wrapper.
23738         (mgetgroups): Handle ENOSYS.
23739         * modules/mgetgroups (Depends-on): Add realloc.
23740         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23741
23742         mgetgroups: avoid argument promotion issues with -1
23743         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23744         for invalid gid_t.
23745         * tests/test-chown.h (getegid, test_chown): Likewise.
23746         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23747
23748 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23749
23750         exclude: Fix header file problems.
23751         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23752
23753 2009-12-01  Jim Meyering  <meyering@redhat.com>
23754
23755         fts: fts_open: do not let an empty string cause immediate failure
23756         This is required in support of GNU rm, for which the command
23757         "rm A '' B" must process and remove both A and B, in spite of
23758         the empty string argument.
23759         * lib/fts.c (fts_open): Do not let the presence of an empty string
23760         cause fts_open to fail immediately.  Most fts-using tools must be
23761         able to process all arguments, in order, and can be expected to
23762         diagnose such arguments themselves.
23763
23764 2009-11-30  Eric Blake  <ebb9@byu.net>
23765
23766         utimens: fix compilation error
23767         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23768         Declare variable at right scope.
23769
23770 2009-11-29  Jim Meyering  <meyering@redhat.com>
23771
23772         bootstrap: handle perl-5.11's changed --version output
23773         * build-aux/bootstrap (get_version): Handle perl separately,
23774         since perl-5.11's --version output is different.
23775
23776 2009-11-28  Jim Meyering  <meyering@redhat.com>
23777
23778         userspec: depend on the inttostr module, too
23779         * modules/userspec (Depends-on): Add inttostr.
23780
23781         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23782         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23783         number of MAXUID when it evaluates to (uid_t) -1.
23784         Likewise for group ID.  Reported by Matt McCutchen in
23785         <http://savannah.gnu.org/bugs/?28113>
23786
23787         userspec: reformat to use spaces, not TABs
23788         * lib/userspec.c: Expand TABs to spaces.
23789         Add Emacs' "indent-tabs-mode: nil" hint.
23790
23791 2009-11-27  Eric Blake  <ebb9@byu.net>
23792
23793         getopt-gnu: flush out another BSD bug
23794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23795         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23796         flush out BSD bug.
23797         * tests/test-getopt.h (test_getopt): End lists with NULL.
23798         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23799         (test_getopt_long_posix): Enhance test.
23800         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23801         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23802         getopt-gnu.
23803         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23804         Likewise.
23805
23806 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23807
23808         * modules/idpriv-droptemp-tests (Notice): Fix text.
23809
23810 2009-11-27  Jim Meyering  <meyering@redhat.com>
23811
23812         test-xalloc-die: avoid spurious failure due to libtool argv difference
23813         In a libtool-enabled project, this test would fail due to a difference
23814         in the emitted program name, e.g.,
23815         -test-xalloc-die: memory exhausted
23816         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23817         Use program to avoid that.
23818         * modules/xalloc-die-tests (Depends-on): Add progname.
23819         * tests/test-xalloc-die.c: Include progname.h".
23820         (program_name): Remove decl.
23821         (main): Call set_program_name.
23822         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23823
23824 2009-11-26  Richard Jones  <rjones@redhat.com>
23825
23826         w32sock: leave win32 error in place.
23827         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23828
23829 2009-11-26  Eric Blake  <ebb9@byu.net>
23830
23831         init.sh: suggest to use skip_ and fail_ functions in comments
23832         * tests/init.sh: Add a sentence.
23833
23834 2009-11-25  Bruno Haible  <bruno@clisp.org>
23835
23836         init.sh: add documentation in comments
23837         * tests/init.sh: Add some developer and user documentation.
23838
23839 2009-11-26  Jim Meyering  <meyering@redhat.com>
23840
23841         init.sh: accommodate even those who specify bogus srcdir manually
23842         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23843         configure-time tests to be sanitized, so that there is no need to
23844         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23845         (with no double quotes) suffices.  However, since tests may be
23846         invoked manually, and since you may explicitly set srcdir to the
23847         name of a directory containing spaces, do quote its uses here.
23848         * tests/test-pread.sh: Likewise.
23849         Suggested by Bruno Haible.
23850
23851         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23852         * tests/test-pread.sh: Write no data into the pipe, because
23853         test-pread actually reads none.  This avoids a diagnostic,
23854         "bash: echo: write error: Broken pipe", that arises in the unusual
23855         event something is ignoring SIGPIPE, and might be interpreted
23856         as some sort of failure.  Reported by Bruno Haible.
23857
23858 2009-11-25  Jim Meyering  <meyering@redhat.com>
23859
23860         test-pread: cover failure with ESPIPE and EINVAL
23861         * tests/test-pread.c (main): Test for failure, too.
23862         * tests/test-pread.sh: Invoke with stdin on a pipe.
23863         Suggested by Eric Blake.
23864
23865         pread: improvement and fix
23866         * modules/pread (Depends-on): Depend on lseek, for portability to
23867         e.g., mingw.  Suggested by Eric Blake.
23868         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23869
23870         unistd.in.h: correct declaration of pread
23871         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23872         Reported by Richard W.M. Jones.
23873
23874         test-pread.sh: distribute the test script
23875         * modules/pread-tests (Files): Include test-pread.sh.
23876
23877         test-pread.sh: clean up
23878         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23879         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23880         That is unnecessary, since it's always ".".
23881         Suggestion from Eric Blake.
23882
23883         test-pread.sh: make executable
23884         * tests/test-pread.sh: Set executable bit.
23885         Reported by Eric Blake.
23886
23887         correct typo in test-pread.sh
23888         * tests/test-pread.sh: Add #! line.
23889
23890         test pread
23891         * tests/test-pread.c: New file.
23892         * tests/test-pread.sh: Likewise.
23893         * modules/pread-tests: Likewise.
23894
23895         pread: new module
23896         * modules/pread: New file.
23897         * lib/unistd.in.h (pread): Define/declare.
23898         * lib/pread.c (pread): New file.
23899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23900         * modules/unistd (Makefile.am): Substitute witnesses.
23901         * doc/posix-functions/pread.texi (pread): Update.
23902         * MODULES.html.sh: Add pread.
23903
23904 2009-11-25  Jim Meyering  <meyering@redhat.com>
23905
23906         tests/init.sh: new file to be used via most *.sh tests
23907         * tests/init.sh: New file.
23908
23909 2009-11-25  Eric Blake  <ebb9@byu.net>
23910
23911         utimens: work around older Linux failure with symlinks
23912         * lib/utimens.c (lutimensat_works_really): New variable.
23913         (fdutimens, lutimens): Use it to manage kernels that support
23914         nanosecond times on files, but not on symlinks.
23915         Reported by OndÅ™ej Vašík.
23916
23917         utimes: fix configure grammar
23918         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23919
23920 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23921
23922         regex: Fix fastmap for multibyte character ranges.
23923         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23924         characters when a multibyte character range is included.
23925
23926 2009-11-22  Andy Wingo  <wingo@pobox.com>
23927
23928         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23929         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23930
23931 2009-11-24  Bruno Haible  <bruno@clisp.org>
23932
23933         doc: Most *_l functions exist in MacOS X 10.5.
23934         * doc/posix-functions/duplocale.texi: Update platforms list.
23935         * doc/posix-functions/freelocale.texi: Likewise.
23936         * doc/posix-functions/newlocale.texi: Likewise.
23937         * doc/posix-functions/uselocale.texi: Likewise.
23938         * doc/posix-functions/isalnum_l.texi: Likewise.
23939         * doc/posix-functions/isalpha_l.texi: Likewise.
23940         * doc/posix-functions/isblank_l.texi: Likewise.
23941         * doc/posix-functions/iscntrl_l.texi: Likewise.
23942         * doc/posix-functions/isdigit_l.texi: Likewise.
23943         * doc/posix-functions/isgraph_l.texi: Likewise.
23944         * doc/posix-functions/islower_l.texi: Likewise.
23945         * doc/posix-functions/isprint_l.texi: Likewise.
23946         * doc/posix-functions/ispunct_l.texi: Likewise.
23947         * doc/posix-functions/isspace_l.texi: Likewise.
23948         * doc/posix-functions/isupper_l.texi: Likewise.
23949         * doc/posix-functions/iswalnum_l.texi: Likewise.
23950         * doc/posix-functions/iswalpha_l.texi: Likewise.
23951         * doc/posix-functions/iswblank_l.texi: Likewise.
23952         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23953         * doc/posix-functions/iswctype_l.texi: Likewise.
23954         * doc/posix-functions/iswdigit_l.texi: Likewise.
23955         * doc/posix-functions/iswgraph_l.texi: Likewise.
23956         * doc/posix-functions/iswlower_l.texi: Likewise.
23957         * doc/posix-functions/iswprint_l.texi: Likewise.
23958         * doc/posix-functions/iswpunct_l.texi: Likewise.
23959         * doc/posix-functions/iswspace_l.texi: Likewise.
23960         * doc/posix-functions/iswupper_l.texi: Likewise.
23961         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23962         * doc/posix-functions/isxdigit_l.texi: Likewise.
23963         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23964         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23965         * doc/posix-functions/strcoll_l.texi: Likewise.
23966         * doc/posix-functions/strfmon_l.texi: Likewise.
23967         * doc/posix-functions/strftime_l.texi: Likewise.
23968         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23969         * doc/posix-functions/strxfrm_l.texi: Likewise.
23970         * doc/posix-functions/tolower_l.texi: Likewise.
23971         * doc/posix-functions/toupper_l.texi: Likewise.
23972         * doc/posix-functions/towctrans_l.texi: Likewise.
23973         * doc/posix-functions/towlower_l.texi: Likewise.
23974         * doc/posix-functions/towupper_l.texi: Likewise.
23975         * doc/posix-functions/wcscoll_l.texi: Likewise.
23976         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23977         * doc/posix-functions/wctrans_l.texi: Likewise.
23978         * doc/posix-functions/wctype_l.texi: Likewise.
23979         * doc/glibc-functions/strptime_l.texi: Likewise.
23980         * doc/glibc-functions/strtod_l.texi: Likewise.
23981         * doc/glibc-functions/strtof_l.texi: Likewise.
23982         * doc/glibc-functions/strtol_l.texi: Likewise.
23983         * doc/glibc-functions/strtold_l.texi: Likewise.
23984         * doc/glibc-functions/strtoll_l.texi: Likewise.
23985         * doc/glibc-functions/strtoul_l.texi: Likewise.
23986         * doc/glibc-functions/strtoull_l.texi: Likewise.
23987         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23988         * doc/glibc-functions/wcstod_l.texi: Likewise.
23989         * doc/glibc-functions/wcstof_l.texi: Likewise.
23990         * doc/glibc-functions/wcstol_l.texi: Likewise.
23991         * doc/glibc-functions/wcstold_l.texi: Likewise.
23992         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23993         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23994         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23995
23996 2009-11-24  Bruno Haible  <bruno@clisp.org>
23997
23998         duplocale: Fix logic bug.
23999         * lib/duplocale.c: Don't include <langinfo.h>.
24000         (_NL_LOCALE_NAME): Remove macro.
24001         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24002         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24003
24004 2009-11-23  Jim Meyering  <meyering@redhat.com>
24005
24006         test-update-copyright: don't hard-code /usr/bin/perl
24007         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24008         perl to print the current year.  Gilles Espinasse reported that
24009         the replaced use of perl was hard-coded as /usr/bin/perl.
24010
24011 2009-11-23  Bruno Haible  <bruno@clisp.org>
24012
24013         duplocale: Add support for glibc 2.3.x.
24014         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24015
24016 2009-11-22  Bruno Haible  <bruno@clisp.org>
24017
24018         vasnprintf: Tiny optimization.
24019         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24020         MacOS X.
24021
24022 2009-11-22  Bruno Haible  <bruno@clisp.org>
24023
24024         Tests for module 'duplocale'.
24025         * modules/duplocale-tests: New file.
24026         * tests/test-duplocale.c: New file.
24027
24028         New module 'duplocale'.
24029         * m4/duplocale.m4: New file.
24030         * lib/locale.in.h (duplocale): New declaration.
24031         * lib/duplocale.c: New file.
24032         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24033         gl_LOCALE_H_DEFAULTS): New macros.
24034         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24035         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24036         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24037         REPLACE_DUPLOCALE.
24038         * modules/duplocale: New file.
24039         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24040
24041 2009-11-22  Bruno Haible  <bruno@clisp.org>
24042
24043         * modules/locale-tests (configure.ac): Test for newlocale function.
24044         * tests/test-locale.c: When the system has extended locale functions,
24045         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24046
24047         locale: Make locale_t available when possible.
24048         * lib/locale.in.h: Include <xlocale.h> when it exists.
24049         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24050         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24051         * modules/locale (Depends-on): Add extensions.
24052         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24053         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24054
24055 2009-11-22  Bruno Haible  <bruno@clisp.org>
24056
24057         Add comments.
24058         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24059         invocation.
24060         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24061         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24062         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24063
24064 2009-11-22  Bruno Haible  <bruno@clisp.org>
24065
24066         error: account for the possibility of freopen (stdout).
24067         * lib/error.c: Include <unistd.h>.
24068         (flush_stdout): New function, extracted from error and error_at_line.
24069         Determine stdout's fd dynamically.
24070         (error, error_at_line): Invoke flush_stdout.
24071         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24072         * modules/error (Depends-on): Add unistd.
24073
24074 2009-11-22  Bruno Haible  <bruno@clisp.org>
24075
24076         diffseq: Add comment.
24077         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24078
24079 2009-11-22  Jim Meyering  <meyering@redhat.com>
24080
24081         c-stack: avoid defining an unused static function
24082         * lib/c-stack.c (find_stack_direction): Do not define this function
24083         when it will not be used.
24084
24085         diffseq: avoid spurious gcc warnings
24086         * lib/diffseq.h (IF_LINT2): Define.
24087         (compareseq): Use it to initialize two members of "part".
24088         This avoids two used-uninitialized warnings.
24089
24090 2009-11-21  Jim Meyering  <meyering@redhat.com>
24091
24092         c-stack: avoid "ignoring return value of `write'" warning
24093         * lib/c-stack.c: Include "ignore-value.h".
24094         (die): Explicitly ignore each write return value.
24095         * modules/c-stack (Depends-on): Add ignore-value.
24096
24097 2009-11-21  Bruno Haible  <bruno@clisp.org>
24098
24099         diffseq: reduce scope of variable 'best'.
24100         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24101         variable, earlier used for two different purposes.
24102
24103 2009-11-21  Jim Meyering  <meyering@redhat.com>
24104
24105         diffseq: remove useless assignment to "best"
24106         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24107         assignment.  At that point "best" is already guaranteed to be zero.
24108
24109 2009-11-20  Eric Blake  <ebb9@byu.net>
24110
24111         build: mention ftp redirector in release announcements
24112         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24113         values that used to come from cfg.mk; mention FTP redirect URL.
24114         * build-aux/announce-gen: Mention the mirror list.
24115         Suggested by Karl Berry.
24116
24117         nanosleep: improve port to mingw
24118         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24120         LIB_NANOSLEEP, but only when needed.
24121         * modules/select (Link): Document LIBSOCKET.
24122         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24123         enough.
24124
24125         nanosleep: work around cygwin bug
24126         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24127         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24128         bug.
24129         (getnow): Delete, not needed.
24130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24131         LIB_CLOCK_GETTIME.
24132         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24133         clock-time, gettime.
24134         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24135         bug.
24136         * modules/nanosleep-tests: New test.
24137         * tests/test-nanosleep.c: New file.
24138
24139         sleep: work around cygwin bug
24140         * lib/sleep.c (rpl_sleep): Work around the bug.
24141         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24142         (gl_PREREQ_SLEEP): Delete unused macro.
24143         * modules/sleep (Depends-on): Add verify.
24144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24145         * modules/unistd (Makefile.am): Substitute witness.
24146         * lib/unistd.in.h (sleep): Update prototype.
24147         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24148         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24149         * modules/sleep-tests (Depends-on): Check for alarm.
24150
24151 2009-11-20  Jim Meyering  <meyering@redhat.com>
24152
24153         maint.mk: improve sc_prohibit_magic_number_exit
24154         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24155         so it does not match uses like System.exit(1).
24156         Add comments showing how to correct all offenders.
24157
24158 2009-11-19  Eric Blake  <ebb9@byu.net>
24159
24160         xalloc-die-tests: add missing library
24161         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24162
24163         test-xvasprintf: silence compiler warnings
24164         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24165         empty string from gcc.
24166
24167 2009-11-19  Jim Meyering  <meyering@redhat.com>
24168
24169         xfreopen: new module, from coreutils
24170         * modules/xfreopen: New module.
24171         * lib/xfreopen.c: New file.
24172         * lib/xfreopen.h: New file.
24173         * MODULES.html.sh (File stream based Input/Output"): Add it.
24174
24175 2009-11-19  Eric Blake  <ebb9@byu.net>
24176
24177         manywarnings: depend on warnings
24178         * modules/manywarnings (Depends-on): Add warnings.
24179
24180         build: avoid compiler warnings
24181         * lib/select.c (rpl_select): Delete unused variable.
24182         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24183
24184 2009-11-18  Eric Blake  <ebb9@byu.net>
24185
24186         tests: avoid false negative with --with-packager
24187         * tests/test-version-etc.sh: Discard packager information.
24188         * tests/test-argp-version-etc-1.sh: Likewise.
24189         Reported by Mike Frysinger.
24190
24191         utimens: fix regression on Solaris
24192         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24193         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24194         can only change fd timestamps via futimesat.  Instead, use an
24195         additional witness macro to avoid BSD bug.
24196         Reported by Jim Meyering.
24197
24198 2009-11-17  Eric Blake  <ebb9@byu.net>
24199
24200         usleep: use it to simplify tests
24201         * modules/stat-time-tests (Depends-on): Add usleep.
24202         (configure.ac): Drop usleep check.
24203         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24204         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24205         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24206         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24207         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24208         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24209         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24210         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24211         Likewise.
24212         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24213         * tests/test-lchown.h (nap): Likewise.
24214         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24215         * tests/test-stat-time.c (nap): Likewise.
24216         * tests/test-utimens-common.h (nap): Update comments.
24217
24218         usleep: new module
24219         * modules/usleep: New file.
24220         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24221         * lib/usleep.c (usleep): Likewise.
24222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24223         * modules/unistd (Makefile.am): Substitute witnesses.
24224         * lib/unistd.in.h (usleep): Add declaration.
24225         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24226         * MODULES.html.sh (Date and time): Likewise.
24227         * modules/usleep-tests (Depends-on): New test.
24228         * tests/test-usleep.c: New file.
24229
24230         chown: work around OpenBSD bug
24231         * lib/chown.c (rpl_chown): Work around the bug.
24232         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24233         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24234         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24235         * modules/chown (Depends-on): Add stdbool.
24236         * modules/lchown (Depends-on): Likewise.
24237         * doc/posix-functions/chown.texi (chown): Document the bug.
24238         * doc/posix-functions/lchown.texi (lchown): Likewise.
24239         * tests/test-lchown.h (test_chown): Relax test.
24240
24241         mkstemp: avoid conflict with C++ keyword template
24242         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24243         * lib/mkostemp.c (mkostemp): Likewise.
24244         * lib/mkostemps.c (mkostemps): Likewise.
24245         * lib/mkstemp.c (mkstemp): Likewise.
24246         * lib/mkstemps.c (mkstemps): Likewise.
24247
24248         xalloc-die-tests: optimize
24249         * tests/test-xalloc-die.sh: Reduce number of processes.
24250
24251 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24252
24253         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24254         patch from ludo@gnu.org (Ludovic Courtès).
24255
24256 2009-11-17  Jim Meyering  <meyering@redhat.com>
24257
24258         version-etc: use proper license string
24259         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24260         * modules/version-etc-fsf: Likewise.
24261
24262 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24263
24264         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24265         printed to stdout.  Deal with EOL differences.
24266
24267 2009-11-17  Eric Blake  <ebb9@byu.net>
24268
24269         unsetenv: work around Solaris bug
24270         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24271         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24272         Reported by Jim Meyering.
24273
24274         vasnprintf: avoid compiler warnings
24275         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24276         variables.
24277         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24278
24279 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24280
24281         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24282         settings since xalloc-die is no longer the self test,
24283         xalloc-die.sh is.
24284
24285 2009-11-17  Jim Meyering  <meyering@redhat.com>
24286
24287         test-xalloc-die.sh: make the code agree with the commit log
24288         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24289         at the end, just in case you happen to have a test-xalloc-die
24290         program in some other PATH directory.
24291
24292         test-xalloc-die.sh: fix a portability bug
24293         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24294         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24295         Otherwise, argv[0] (as often seen in diagnostics) would be too
24296         system-dependent, sometimes with, and sometimes without the leading "./".
24297
24298         version-etc-fsf: relax license to LGPLv3+
24299         * modules/version-etc-fsf (License): Relax license.
24300
24301 2009-11-16  Eric Blake  <ebb9@byu.net>
24302
24303         xalloc-die-tests: avoid printing null pointer
24304         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24305         shell script.
24306         * tests/test-xalloc-die.c (program_name): Declare.
24307         * tests/test-xalloc-die.sh (tmpfiles): New file.
24308
24309         setenv, unsetenv: work around various bugs
24310         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24311         (setenv) [HAVE_SETENV]: Work around bugs.
24312         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24313         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24314         for bugs.
24315         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24316         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24318         * modules/stdlib (Makefile.am): Update substitutions.
24319         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24320         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24321         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24322         * modules/setenv-tests: New test.
24323         * modules/unsetenv-tests: Likewise.
24324         * tests/test-setenv.c: New file.
24325         * tests/test-unsetenv.c: Likewise.
24326
24327 2009-11-16  Jim Meyering  <meyering@redhat.com>
24328
24329         version-etc: relax license to LGPLv3+
24330         * modules/version-etc (License): Relax license.
24331
24332         better AC_REQUIRE expanded-before-required-warning avoidance
24333         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24334         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24335         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24336         which is no longer needed.
24337
24338 2009-11-16  Eric Blake  <ebb9@byu.net>
24339
24340         test-freading: clean up temporary file
24341         * tests/test-freading.c (main): Remove file on success, and use
24342         ASSERT more liberally.
24343         Reported by Jim Meyering.
24344
24345 2009-11-16  Jim Meyering  <meyering@redhat.com>
24346
24347         avoid new AC_REQUIRE expanded-before-required warnings
24348         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24349         merely using it.
24350         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24351         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24352
24353 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24354
24355         * tests/test-xalloc-die.c: New file.
24356         * modules/xalloc-die-tests: New file.
24357         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24358         XFAIL_TESTS so it can be appended by modules.
24359
24360 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24361
24362         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24363         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24364
24365 2009-11-14  Eric Blake  <ebb9@byu.net>
24366
24367         fnmatch: avoid compiler warning
24368         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24369         to silence compiler warning about mismatch signedness in ?:.
24370         Reported by Robert Millan.
24371
24372         intprops: add double-inclusion guard
24373         * lib/intprops.h: Allow idempotent includes.
24374         Suggested by Bruce Korb.
24375
24376         openat: detect Solaris fchownat bug
24377         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24378         penalizing glibc chownat when only lchownat is broken.
24379         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24380         trailing slash bugs.
24381         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24382         * modules/openat-tests (Files): Include more files.
24383         (Depends-on): Add mgetgroups, sleep, stat-time.
24384         (configure.ac): Add additional checks.
24385         (Makefile.am): Build new test.
24386         * tests/test-fchownat.c: New file.
24387
24388         lchown: detect Solaris and FreeBSD bug
24389         * lib/lchown.c (rpl_lchown): Work around bug.
24390         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24392         * modules/unistd (Makefile.am): Populate it.
24393         * lib/unistd.in.h (lchown): Update declaration.
24394         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24395         * modules/lchown-tests: New file.
24396         * tests/test-lchown.h (test_lchown): Likewise.
24397         * tests/test-lchown.c (main): Likewise.
24398
24399         chown: detect Solaris and FreeBSD bug
24400         * lib/chown.c (rpl_chown): Work around bug.
24401         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24402         (gl_PREREQ_CHOWN): Delete.
24403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24404         * modules/unistd (Makefile.am): Populate it.
24405         * lib/unistd.in.h (chown): Update declaration.
24406         * lib/lchown.c (chown): Update client.
24407         * modules/lchown (Depends-on): Add lstat.
24408         * doc/posix-functions/chown.texi (chown): Document the bug.
24409         * doc/posix-functions/getgroups.texi (getgroups): Document
24410         getgroups pitfall.
24411         * modules/chown-tests: New file.
24412         * tests/test-chown.h (test_chown): Likewise.
24413         * tests/test-chown.c (main): Likewise.
24414
24415 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24416
24417         gnulib-tool: correctly detect absence of m4 directories
24418         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24419
24420 2009-11-14  Jim Meyering  <meyering@redhat.com>
24421
24422         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24423         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24424
24425 2009-11-14  John W. Eaton  <jwe@gnu.org>
24426
24427         strftime.h: wrap funtion declaration in extern "C" block
24428         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24429
24430 2009-11-13  Eric Blake  <ebb9@byu.net>
24431
24432         getgroups: avoid compiler warning
24433         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24434
24435         getgroups: work around FreeBSD bug
24436         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24437         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24438         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24439         * tests/test-getgroups.c (main): Fix buffer overrun.
24440
24441         getgroups: avoid compilation failure
24442         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24443         * modules/getgroups (Depends-on): Add stdint.
24444
24445 2009-11-13  Jim Meyering  <meyering@redhat.com>
24446
24447         test-getgroups: avoid compilation failure
24448         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24449
24450 2009-11-13  Eric Blake  <ebb9@byu.net>
24451
24452         mgetgroups: new module, taken from coreutils
24453         * modules/mgetgroups: New file.
24454         * lib/mgetgroups.h: Likewise.
24455         * lib/mgetgroups.c (mgetgroups): Likewise.
24456         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24457         * MODULES.html.sh (Users and groups): Mention it.
24458
24459         getgroups: don't expose GETGROUPS_T to user
24460         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24461         an element at a time if GETGROUPS_T is wrong size.
24462         * lib/getugroups.h (getugroups): Change signature.
24463         * lib/unistd.in.h (getgroups): Likewise.
24464         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24465         signature needs fixing.
24466         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24467         AC_TYPE_GETGROUPS.
24468         * modules/group-member (Depends-on): Add getgroups.
24469         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24470         (group_member): Rely on getgroups replacement.
24471         * lib/getugroups.c (getugroups): Use gid_t.
24472         * tests/test-getgroups.c (main): Likewise.
24473         * NEWS: Mention the signature change.
24474         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24475         problem with signature.
24476         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24477         GETGROUPS_T is still useful for setgroups.
24478
24479         getgroups, getugroups: provide stubs for mingw
24480         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24481         * lib/getugroups.c (getugroups): Likewise.
24482         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24483         function.  Modernize replacement scheme.
24484         (gl_PREREQ_GETGROUPS): Delete.
24485         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24486         * modules/getgroups (configure.ac): Declare witness.
24487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24488         * modules/unistd (Depends-on): Substitute witness.
24489         * lib/unistd.in.h (getgroups): Declare replacement.
24490
24491         getgroups: avoid calling exit
24492         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24493         drop xalloc.
24494         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24495         dependencies.
24496         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24497         exiting, in the rare case of malloc failure.
24498
24499         getgroups: fix logic error
24500         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24501         has more than 20 groups.
24502         * modules/getgroups-tests: New test.
24503         * tests/test-getgroups.c: New file.
24504
24505 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24506
24507         * tests/test-base64.c: Improve.
24508
24509 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24510
24511         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24512         Blake <ebb9@byu.net>.
24513
24514 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24515
24516         * tests/test-xvasprintf.c: Add %s%s related checks.
24517
24518 2009-11-12  Eric Blake  <ebb9@byu.net>
24519
24520         version-etc: match standards.texi style
24521         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24522         and use <> only for URLs.
24523
24524 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24525
24526         fts: do not fail on a submount during traversal
24527         * lib/fts.c (fts_build): Read the stat info again after opening
24528         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24529         Original report at http://bugzilla.redhat.com/501848.
24530
24531 2009-11-12  Jim Meyering  <meyering@redhat.com>
24532
24533         bootstrap: sync from coreutils
24534         * build-aux/bootstrap (bootstrap_epilogue): New function.
24535         Use git_modules_config in one more place.  This make bootstrap's
24536         --gnulib-srcdir option more useful for testing.
24537
24538         bootstrap: generalize autoheader check
24539         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24540         AC_CONFIG_HEADERS.
24541
24542 2009-11-11  Eric Blake  <ebb9@byu.net>
24543
24544         mkfifoat: use new modules for Solaris and BSD bugs
24545         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24546         * lib/mkfifoat.c (mknodat): Split...
24547         * lib/mknodat.c (mknodat): ...into new file.
24548         * modules/mkfifoat (Files): Ship new file.
24549         (Depends-on): Add mkfifo, mknod.
24550         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24551         (Depends-on): Add symlink.
24552         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24553         redundant with test_mkfifo.h.
24554         (do_mkfifoat, do_mknodat): New helpers.
24555
24556         mknod: new module
24557         * modules/mknod: New file.
24558         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24559         * lib/mknod.c (mknod): Likewise.
24560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24561         defaults.
24562         * modules/sys_stat (Makefile.am): Substitute them.
24563         * lib/sys_stat.in.h (mknod): Declare replacement.
24564         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24565         Document it.
24566         * doc/posix-functions/mknod.texi (mknod): Likewise.
24567         * modules/mknod-tests: New test.
24568         * tests/test-mknod.c: Likewise.
24569
24570         mkfifo: new module
24571         * modules/mkfifo: New file.
24572         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24573         * lib/mkfifo.c (mkfifo): Likewise.
24574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24575         defaults.
24576         * modules/sys_stat (Makefile.am): Substitute them.
24577         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24578         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24579         Document it.
24580         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24581         * modules/mkfifo-tests: New test.
24582         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24583         from test-mkfifoat.c.
24584         * tests/test-mkfifo.c: New file.
24585
24586         readlink: detect FreeBSD bug
24587         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24588         slash on symlink.
24589         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24590         * tests/test-readlink.h (test_readlink): Enhance test.
24591
24592         symlink: detect FreeBSD bug
24593         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24594         slash on symlink.
24595         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24596         * tests/test-symlink.h (test_symlink): Enhance test.
24597
24598 2009-11-10  Eric Blake  <ebb9@byu.net>
24599
24600         link: detect FreeBSD bug
24601         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24602         symlink.
24603         * doc/posix-functions/link.texi (link): Document the bug.
24604         * tests/test-link.h (test_link): Enhance test.
24605         * tests/test-linkat.c (main): Update caller.
24606
24607         unlink, remove: detect FreeBSD bug
24608         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24609         slash on symlink.
24610         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24611         * doc/posix-functions/remove.texi (remove): Likewise.
24612         * tests/test-unlink.h (test_unlink): Enhance test.
24613         * tests/test-remove.c (main): Likewise.
24614
24615 2009-11-09  Eric Blake  <ebb9@byu.net>
24616
24617         rename: detect FreeBSD bug
24618         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24619         slash on symlink.
24620         * modules/renameat-tests (Depends-on): Add filenamecat.
24621         * tests/test-rename.h (test_rename): Allow one more errno.
24622         * tests/test-renameat.c (main): Likewise.
24623         * doc/posix-functions/rename.texi (rename): Document the bug.
24624
24625         open: detect FreeBSD bug
24626         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24627         symlink.
24628         * doc/posix-functions/open.texi (open): Document the bug.
24629         * doc/posix-functions/utimes.texi (utimes): Likewise.
24630         * tests/test-open.h (test_open): Add parameters, and test symlink
24631         handling.
24632         * tests/test-open.c (main): Adjust caller.
24633         * tests/test-fcntl-safer.c (main): Likewise.
24634         * modules/open-tests (Depends-on): Add stdbool, symlink.
24635         * modules/fcntl-safer-tests (Depends-on): Likewise.
24636         * tests/test-openat.c (main): Add test-open tests.
24637
24638         stat: detect FreeBSD bug
24639         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24640         symlink.
24641         * doc/posix-functions/stat.texi (stat): Document the bug.
24642         * tests/test-stat.h (test_stat_func): Add argument.
24643         * tests/test-stat.c (main): Adjust caller.
24644         * tests/test-fstatat.c (main): Likewise.
24645         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24646         Reported by Jim Meyering.
24647
24648 2009-11-09  James Youngman  <jay@gnu.org>
24649
24650         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24651         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24652
24653 2009-11-08  Jim Meyering  <meyering@redhat.com>
24654
24655         utimens: remove invalid futimesat call
24656         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24657         It used the file descriptor of the target file as the DIR_FD
24658         parameter and NULL as the file name.  That caused failure with
24659         errno == EFAULT on FreeBSD-8.0-rc2
24660
24661 2009-11-07  Eric Blake  <ebb9@byu.net>
24662
24663         fflush, freadseek: use fseeko, not fseek
24664         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24665         (clear_ungetc_buffer): Avoid potential problems on large files.
24666         * lib/freadseek.c (freadseek): Likewise.
24667         * modules/freadseek (Depends-on): Add fseeko.
24668         * modules/fseek (configure.ac): Set a witness.
24669         * tests/test-fflush.c (main): Use fseeko.
24670         * tests/test-fpurge.c (fseek): Disable link warning.
24671         * tests/test-freadable.c (fseek): Likewise.
24672         * tests/test-freading.c (fseek): Likewise.
24673         * tests/test-fseeko.c (fseek): Likewise.
24674         * tests/test-ftell.c (fseek): Likewise.
24675         * tests/test-ftello.c (fseek): Likewise.
24676         * tests/test-fwritable.c (fseek): Likewise.
24677         * tests/test-fwriting.c (fseek): Likewise.
24678
24679 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24680
24681         * modules/memchr (Depends-on): Drop getpagesize dependency.
24682
24683 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24684
24685         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24686         Reported by Ludovic Courtès.
24687         * build-aux/pmccabe2html: Improve example usage.
24688         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24689
24690 2009-11-06  Jim Meyering  <meyering@redhat.com>
24691
24692         do-release-commit-and-tag: New module.
24693         Automate the release-commit and tag process.
24694         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24695         * modules/do-release-commit-and-tag: New file.
24696         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24697
24698 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24699
24700         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24701         because test-select.c uses inet_pton.
24702
24703 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24704
24705         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24706         GETADDRINFO_LIB.  Bump serial number.
24707         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24708         Suggested by Eric Blake <ebb9@byu.net>.
24709
24710 2009-11-05  Eric Blake  <ebb9@byu.net>
24711
24712         strtod: detect darwin bug
24713         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24714         Reported by Leo Davis.
24715
24716         freopen-safer: new module
24717         * modules/freopen-safer: New module.
24718         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24719         * lib/freopen-safer.c (freopen_safer): New file.
24720         * lib/stdio-safer.h (freopen_safer): New declaration.
24721         * lib/stdio--.h (freopen): New override.
24722         * MODULES.html.sh (File stream based Input/Output): Mention it.
24723         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24724         freopen-safer module.
24725         * doc/posix-functions/stderr.texi (stderr): Likewise.
24726         * doc/posix-functions/stdin.texi (stdin): Likewise.
24727         * doc/posix-functions/stdout.texi (stdout): Likewise.
24728         * modules/freopen-safer-tests: New test.
24729         * tests/test-reopen-safer.c: New file.
24730
24731 2009-11-05  Jim Meyering  <meyering@redhat.com>
24732
24733         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24734         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24735
24736 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24737
24738         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24739
24740 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24741
24742         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24743
24744 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24745
24746         Fix link error.
24747         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24748         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24749
24750 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24751
24752         * tests/test-func.c: Also test value of __func__.
24753
24754 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24755
24756         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24757         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24758
24759 2009-11-05  Bruno Haible  <bruno@clisp.org>
24760
24761         Fix link error.
24762         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24763         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24764         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24765
24766 2009-11-05  Bruno Haible  <bruno@clisp.org>
24767
24768         Tests for module 'inet_pton'.
24769         * modules/inet_pton-tests: New file.
24770         * tests/test-inet_pton.c: New file.
24771
24772 2009-11-05  Bruno Haible  <bruno@clisp.org>
24773
24774         Tests for module 'inet_ntop'.
24775         * modules/inet_ntop-tests: New file.
24776         * tests/test-inet_ntop.c: New file.
24777
24778 2009-11-04  Eric Blake  <ebb9@byu.net>
24779
24780         stdlib-safer: wrap all mkstemp variants
24781         * modules/mkostemp (configure.ac): Set witness.
24782         * modules/mkostemps (configure.ac): Likewise.
24783         * modules/mkstemps (configure.ac): Likewise.
24784         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24785         (mkstemps_safer): Wrap more functions.
24786         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24787         wrapping.
24788         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24789         (mkstemps_safer): Implement the wrappers.
24790
24791         mkstemps, mkostemps: new modules
24792         * modules/mkostemps: New module.
24793         * modules/mkstemps: Likewise.
24794         * lib/mkostemps.c (mkostemps): New file.
24795         * lib/mkstemps.c (mkstemps): Likewise.
24796         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24797         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24799         * modules/stdlib (Makefile.am): Substitute them.
24800         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24801         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24802         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24803         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24804         * MODULES.html.sh (File system functions): Mention them.
24805
24806         tempname: resync from glibc
24807         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24808         same values for __GT_FILE as glibc.  Abort even when assertions
24809         are disabled.
24810         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24811         match its value otherwise.  Allow idempotent inclusion.
24812         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24813         * lib/mkostemp.c (mkostemp): Likewise.
24814         * lib/mkstemp.c (mkstemp): Likewise.
24815         * lib/tmpfile.c (tmpfile): Likewise.
24816         * NEWS: Document this.
24817
24818         utimens: fix use of futimens on older Linux
24819         * lib/utimens.c (fdutimens): Use updated, rather than original,
24820         timespec to avoid bug in older Linux kernel.
24821         Reported by Simon Josefsson.
24822
24823 2009-11-04  Bruno Haible  <bruno@clisp.org>
24824
24825         Make num_processors more flexible and consistent.
24826         * lib/nproc.h (enum nproc_query): New type.
24827         (num_processors): Add a 'query' argument.
24828         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24829         (num_processors): Add a 'query' argument. Test the value of the
24830         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24831         mingw, count the number of CPUs available for the current process.
24832         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24833         Check for sched_getaffinity and sched_getaffinity_np.
24834         * modules/nproc (Depends-on): Add c-ctype, extensions.
24835         * NEWS: Mention the change.
24836
24837 2009-11-03  Bruno Haible  <bruno@clisp.org>
24838
24839         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24840
24841 2009-11-03  Jim Meyering  <meyering@redhat.com>
24842
24843         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24844         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24845         if it is defined.
24846
24847 2009-11-02  Eric Blake  <ebb9@byu.net>
24848
24849         mktime, timegm: share common declaration
24850         * lib/mktime-internal.h: New file.
24851         * lib/mktime.c: Use it rather than open-coding a declaration.
24852         * lib/timegm.c: Likewise.
24853         * modules/mktime (Files): Ship it.
24854         * modules/timegm (Files): Likewise.
24855         Suggested by Bruno Haible.
24856
24857         test-update-copyright: update test to match script changes
24858         * tests/test-update-copyright.sh: Avoid hard-coding perl
24859         location.  Don't update *.bak created by earlier runs.
24860
24861 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24862             Simon Josefsson  <simon@josefsson.org>
24863             Bruno Haible  <bruno@clisp.org>
24864
24865         Fix link error on Solaris 8.
24866         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24867         also in libnsl. Define also INET_PTON_LIB.
24868         * modules/inet_pton (Link): New section.
24869
24870 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24871             Bruno Haible  <bruno@clisp.org>
24872
24873         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24874         * modules/inet_ntop (Link): New section.
24875         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24876
24877 2009-11-02  Eric Blake  <ebb9@byu.net>
24878
24879         maint: avoid compiler warnings in m4 macros
24880         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24882
24883 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24884
24885         * m4/pmccabe2html.m4: Remove file.
24886         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24887         function.  Change maintainer.
24888         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24889         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24890         Courtès).
24891
24892 2009-10-31  Eric Blake  <ebb9@byu.net>
24893
24894         fseeko: fix m4 regression
24895         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24896         regression from 2009-10-27.
24897         Reported by Ralf Wildenhues.
24898
24899 2009-10-31  Jim Meyering  <meyering@redhat.com>
24900
24901         inttostr: aesthetics and improved (compile-time) safety
24902         Define inttype_is_signed rather than inttype_is_unsigned,
24903         since the sole use is via "#if inttype_is_signed".
24904         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24905         inttype_is_unsigned.
24906         * lib/offtostr.c (inttype_is_signed): Likewise.
24907         * lib/uinttostr.c (inttype_is_signed): Likewise.
24908         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24909         * lib/inttostr.c (inttostr): Use verify to cross-check the
24910         inttype_is_signed value and the signedness of the actual type.
24911         * modules/inttostr (Depends-on): Add verify.
24912
24913 2009-10-30  Eric Blake  <ebb9@byu.net>
24914
24915         build: avoid compiler warnings
24916         * lib/fchmodat.c (lchmod): Mark unused variables.
24917         * lib/getopt.c (_getopt_initialize): Likewise.
24918         * lib/mktime.c (__mktime_internal): Provide prototype.
24919         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24920         older gcc that do not understand #pragma GCC diagnostic.
24921         * lib/uinttostr.c (inttype_is_unsigned): Define.
24922         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24923
24924 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24925
24926         stat: fix compilation on AIX
24927         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24928         only see struct stat64.
24929
24930 2009-10-30  Eric Blake  <ebb9@byu.net>
24931
24932         exclude: make more robust
24933         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24934         rather than masking a coding bug.
24935         Suggested by Bruno Haible.
24936
24937 2009-10-30  Jim Meyering  <meyering@redhat.com>
24938
24939         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24940         Rather than putting #!/usr/bin/perl on the first line,
24941         start with a variant of what's recommended by "man perlrun" that
24942         invokes the first "perl" program from your shell's search path.
24943         * build-aux/gitlog-to-changelog: Replace #!... as above.
24944         Add a "Local Variables" perl mode setting.
24945         Prompted by a patch from Ludovic Courtès.
24946         Improved by Eric Blake.
24947         * build-aux/useless-if-before-free: Likewise.
24948         * build-aux/announce-gen: Likewise.
24949         * build-aux/update-copyright: Likewise.
24950
24951 2009-10-29  Eric Blake  <ebb9@byu.net>
24952
24953         filenamecat-lgpl: adjust clients
24954         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24955         filenamecat.
24956         * modules/renameat (Depends-on): Likewise.
24957
24958         filenamecat: split into filenamecat-lgpl
24959         * modules/filenamecat-lgpl: New module.
24960         * modules/filenamecat (Files): Move library-safe files into
24961         filenamecat-lgpl.
24962         (Depends-on): Add filenamecat-lgpl.
24963         (configure.ac): Declare witness.
24964         * lib/filenamecat.h (file_name_concat): Only declare when using
24965         GPL module.
24966         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24967         Move...
24968         * lib/filenamecat-lgpl.c: ...into new file.
24969         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24970         (gl_FILE_NAME_CONCAT): Use it.
24971         * MODULES.html.sh (File system functions): Mention new module.
24972
24973         argp: avoid memory leak
24974         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24975         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24976         base_name, since the latter malloc()s and can call exit().
24977         Leak introduced 2006-07-03.
24978
24979         dirname-lgpl: adjust clients that don't need full dirname
24980         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24981         * modules/filenamecat (Depends-on): Likewise.
24982         * modules/linkat (Depends-on): Likewise.
24983         * modules/mkancesdirs (Depends-on): Likewise.
24984         * modules/mkdir (Depends-on): Likewise.
24985         * modules/openat (Depends-on): Likewise.
24986         * modules/savewd (Depends-on): Likewise.
24987         * modules/rename (Depends-on): Likewise.
24988         (License): Relax license.
24989         * modules/mkdir-tests (Depends-on): Drop progname.
24990         (Makefile.am): Delete unneeded LDADD.
24991         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24992
24993         dirname: split into dirname-lgpl
24994         * modules/dirname-lgpl: New module.
24995         * modules/dirname (Files): Move library-safe files into
24996         dirname-lgpl.
24997         (Depends-on): Add dirname-lgpl.
24998         (configure.ac): Declare witness.
24999         * modules/double-slash-root (License): Relax license.
25000         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25001         module.
25002         * lib/dirname.c (dir_len, mdir_name): Move...
25003         * lib/dirname-lgpl.c: ...into new file.
25004         * lib/basename.c (last_component, base_len): Move...
25005         * lib/basename-lgpl.c: ...into new file.
25006         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25007         (gl_DIRNAME): Use it.
25008         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25009         Mention new module.
25010         * modules/dirname-tests (Depends-on): Add progname.
25011         * tests/test-dirname.c (program_name): Delete.
25012
25013         mkdir: make safe for libraries
25014         * modules/mkdir (Depends-on): Drop xalloc.
25015         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25016         exit.
25017
25018         tests: avoid some compiler warnings
25019         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25020         literals.
25021         * tests/test-memchr.c (main): Avoid type mismatch.
25022         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25023         * tests/test-base64.c (main): Likewise.
25024         * tests/test-getdelim.c (main): Likewise.
25025         * tests/test-gethostname.c (main): Likewise.
25026         * tests/test-getline.c (main): Likewise.
25027         * tests/test-netinet_in.c (main): Likewise.
25028         * tests/test-select.c (open_server_socket, main): Likewise.
25029         * tests/test-select-stdin.c (main): Likewise.
25030         * tests/test-sockets.c (main): Likewise.
25031         * tests/test-strsignal.c (main): Likewise.
25032         * tests/test-sys_select.c (main): Likewise.
25033         * tests/test-sys_socket.c (main): Likewise.
25034         * tests/test-u64.c (main): Likewise.
25035         * tests/test-xfprintf-posix.c (main): Likewise.
25036         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25037
25038         sockets: avoid compiler warning
25039         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25040
25041         maint: detect usage(1) and other suspicious exits
25042         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25043
25044 2009-10-29  Jim Meyering  <meyering@redhat.com>
25045
25046         timespec: long-to-int truncation could make timespec_cmp malfunction
25047         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25048         a multiple of 2^32 nanoseconds as no difference.
25049
25050 2009-10-28  Jim Meyering  <meyering@redhat.com>
25051
25052         fprintftime: wrap macro code argument in "do {...} while(0)"
25053         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25054         cpy macro must be a statement that can be followed by a semicolon.
25055         Now that the else clause contains a comment and is hence longer
25056         than one line, I require curly braces.  That in turn requires
25057         that we wrap this code block in the standard do...while(0).
25058
25059         fprintftime: remove stray semicolon from previous change
25060         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25061
25062         fprintftime: avoid a warning about ignored fwrite return value
25063         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25064         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25065         that is unsafe.
25066         * modules/fprintftime (Depends-on): Add ignore-value.
25067
25068         exclude: avoid an unwarranted warning
25069         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25070
25071 2009-10-27  Eric Blake  <ebb9@byu.net>
25072
25073         fseek: avoid compilation failure when fflush is replaced
25074         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25075         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25076         module is in use.
25077         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25078         module is not in use; since REPLACE_FSEEK worked otherwise.
25079         (GNULIB_FTELLO): Likewise for ftell.
25080         Reported by Ian Beckwith and others.
25081
25082 2009-10-27  Bruno Haible  <bruno@clisp.org>
25083
25084         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25085         Reported by Jim Meyering.
25086
25087 2009-10-27  Jim Meyering  <jim@meyering.net>
25088             Bruno Haible  <bruno@clisp.org>
25089
25090         Avoid warning despite dropping the return value of fwrite.
25091         * lib/unicodeio.c: Include ignore-value.h.
25092         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25093         * modules/unicodeio (Depends-on): Add ignore-value.
25094
25095 2009-10-26  Eric Blake  <ebb9@byu.net>
25096
25097         areadlinkat: fix fallback path
25098         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25099         pointer and zero.
25100
25101 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25102
25103         Use a better IO block size for modern systems
25104         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25105         * lib/md2.c: Likewise.
25106         * lib/md4.c: Likewise.
25107         * lib/md5.c: Likewise.
25108         * lib/sha1.c: Likewise.
25109         * lib/sha256.c: Likewise.
25110         * lib/sha512.c: Likewise.
25111
25112 2009-10-22  Eric Blake  <ebb9@byu.net>
25113
25114         tests: avoid several compiler warnings
25115         * tests/test-getcwd.c (main): Avoid buffer underflow.
25116         * tests/test-getdate.c (main): String literals are not safe with
25117         putenv, so use setenv.  Declare unused argument.
25118         * modules/getdate-tests (Depends-on): Add setenv.
25119         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25120         problems with string literals in char *.
25121         * tests/test-hash.c (main): Avoid shadowing declaration.
25122         (insert_new): Treat string literals as char const *.
25123         * tests/test-getopt.h (test_getopt): Likewise.
25124         (getopt_loop): Alter types to minimize casting elsewhere.
25125         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25126         (test_getopt_long_posix): Likewise.
25127         (do_getopt_long): Add wrapper to minimize casting.
25128         * tests/test-atexit.c (clear_temp_file): Use void.
25129         * tests/test-areadlink-with-size.c (main): Declare unused
25130         arguments.
25131         * tests/test-areadlink.c (main): Likewise.
25132         * tests/test-areadlinkat-with-size.c (main): Likewise.
25133         * tests/test-areadlinkat.c (main): Likewise.
25134         * tests/test-canonicalize-lgpl.c (main): Likewise.
25135         * tests/test-canonicalize.c (main): Likewise.
25136         * tests/test-dirent-safer.c (main): Likewise.
25137         * tests/test-dirname.c (main): Likewise.
25138         * tests/test-dup2.c (main): Likewise.
25139         * tests/test-fchdir.c (main): Likewise.
25140         * tests/test-fcntl-h.c (main): Likewise.
25141         * tests/test-fcntl-safer.c (main): Likewise.
25142         * tests/test-fdopendir.c (main): Likewise.
25143         * tests/test-fdutimensat.c (main): Likewise.
25144         * tests/test-fflush.c (main): Likewise.
25145         * tests/test-filenamecat.c (main): Likewise.
25146         * tests/test-filevercmp.c (main): Likewise.
25147         * tests/test-fopen-safer.c (main): Likewise.
25148         * tests/test-fopen.c (main): Likewise.
25149         * tests/test-fpending.c (main): Likewise.
25150         * tests/test-fpurge.c (main): Likewise.
25151         * tests/test-freading.c (main): Likewise.
25152         * tests/test-fstatat.c (main): Likewise.
25153         * tests/test-fsync.c (main): Likewise.
25154         * tests/test-futimens.c (main): Likewise.
25155         * tests/test-getndelim2.c (main): Likewise.
25156         * tests/test-gettimeofday.c (main): Likewise.
25157         * tests/test-getopt.c (main): Likewise.
25158         * tests/test-i-ring.c (main): Likewise.
25159         * tests/test-inttypes.c (main): Likewise.
25160         * tests/test-link.c (main): Likewise.
25161         * tests/test-lstat.c (main): Likewise.
25162         * tests/test-math.c (main): Likewise.
25163         * tests/test-md5.c (main): Likewise.
25164         * tests/test-memchr2.c (main): Likewise.
25165         * tests/test-memrchr.c (main): Likewise.
25166         * tests/test-mkdir.c (main): Likewise.
25167         * tests/test-mkdirat.c (main): Likewise.
25168         * tests/test-mkfifoat.c (main): Likewise.
25169         * tests/test-open.c (main): Likewise.
25170         * tests/test-openat-safer.c (main): Likewise.
25171         * tests/test-openat.c (main): Likewise.
25172         * tests/test-quotearg.c (main): Likewise.
25173         * tests/test-rawmemchr.c (main): Likewise.
25174         * tests/test-readlink.c (main): Likewise.
25175         * tests/test-remove.c (main): Likewise.
25176         * tests/test-rename.c (main): Likewise.
25177         * tests/test-renameat.c (main): Likewise.
25178         * tests/test-rmdir.c (main): Likewise.
25179         * tests/test-sha1.c (main): Likewise.
25180         * tests/test-signal.c (main): Likewise.
25181         * tests/test-sigaction.c (main): Likewise.
25182         * tests/test-stat.c (main): Likewise.
25183         * tests/test-stat-time.c (main): Likewise.
25184         * tests/test-stddef.c (main): Likewise.
25185         * tests/test-stdint.c (main): Likewise.
25186         * tests/test-stdio.c (main): Likewise.
25187         * tests/test-stdlib.c (main): Likewise.
25188         * tests/test-strchrnul.c (main): Likewise.
25189         * tests/test-strerror.c (main): Likewise.
25190         * tests/test-string.c (main): Likewise.
25191         * tests/test-strtod.c (main): Likewise.
25192         * tests/test-strverscmp.c (main): Likewise.
25193         * tests/test-symlink.c (main): Likewise.
25194         * tests/test-symlinkat.c (main): Likewise.
25195         * tests/test-sys_stat.c (main): Likewise.
25196         * tests/test-sys_time.c (main): Likewise.
25197         * tests/test-time.c (main): Likewise.
25198         * tests/test-unistd.c (main): Likewise.
25199         * tests/test-unlink.c (main): Likewise.
25200         * tests/test-unlinkat.c (main): Likewise.
25201         * tests/test-utimens.c (main): Likewise.
25202         * tests/test-utimensat.c (main): Likewise.
25203         * tests/test-version-etc.c (main): Likewise.
25204         * tests/test-wchar.c (main): Likewise.
25205         * tests/test-wctype.c (main): Likewise.
25206         * tests/test-xprintf-posix.c (main): Likewise.
25207         * tests/test-posixtm.c (main): Likewise.
25208         (STREQ): Delete unused macro.
25209         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25210         shadowed variables.
25211         * tests/test-memchr.c (main): Likewise.
25212
25213 2009-10-21  Eric Blake  <ebb9@byu.net>
25214
25215         areadlinkat: avoid failure on older glibc
25216         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25217         rather than mis-comparing 0 against FUNC_RESULT of char*.
25218
25219 2009-10-21  Bruno Haible  <bruno@clisp.org>
25220
25221         * modules/stpncpy (License): Relicense under LGPLv2+.
25222         Reported by David Lutterkort <lutter@redhat.com>.
25223
25224 2009-10-20  Eric Blake  <ebb9@byu.net>
25225
25226         utimensat: work around Solaris 9 bug
25227         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25228         has trailing slash bugs.
25229         * tests/test-lutimens.h (test_lutimens): Enhance test.
25230         * tests/test-utimens.h (test_utimens): Likewise.
25231         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25232         * doc/posix-functions/utimes.texi (utimes): Likewise.
25233         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25234         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25235         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25236         * doc/posix-functions/futimens.texi (futimens): Likewise.
25237
25238         fdutimensat: new module
25239         * modules/fdutimensat: New file.
25240         * lib/fdutimensat.c (fdutimensat): Likewise.
25241         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25242         * MODULES.html.sh (File system functions): Mention module.
25243         * modules/fdutimensat-tests: New test.
25244         * tests/test-fdutimensat.c: Likewise.
25245
25246         doc: regenerate INSTALL
25247         * doc/INSTALL: Reflect recent autoconf update.
25248         * doc/INSTALL.ISO: Likewise.
25249         * doc/INSTALL.UTF-8: Likewise.
25250
25251 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25252
25253         acl: warn if ACL support is not detected
25254         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25255
25256 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25257
25258         * lib/nproc.h: Add extern "C" block for C++.
25259
25260 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25261             Bruno Haible  <bruno@clisp.org>
25262
25263         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25264         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25265         * doc/posix-functions/isalpha.texi: Likewise.
25266         * doc/posix-functions/isblank.texi: Likewise.
25267         * doc/posix-functions/iscntrl.texi: Likewise.
25268         * doc/posix-functions/isdigit.texi: Likewise.
25269         * doc/posix-functions/isgraph.texi: Likewise.
25270         * doc/posix-functions/islower.texi: Likewise.
25271         * doc/posix-functions/isprint.texi: Likewise.
25272         * doc/posix-functions/ispunct.texi: Likewise.
25273         * doc/posix-functions/isspace.texi: Likewise.
25274         * doc/posix-functions/isupper.texi: Likewise.
25275         * doc/posix-functions/isxdigit.texi: Likewise.
25276
25277 2009-10-18  Bruno Haible  <bruno@clisp.org>
25278
25279         Tests for module 'isblank'.
25280         * modules/isblank-tests: New file.
25281         * tests/test-isblank.c: New file.
25282
25283         New module 'isblank'.
25284         * lib/isblank.c: New file.
25285         * m4/isblank.m4: New file.
25286         * modules/isblank: New file.
25287         * doc/posix-functions/isblank.texi: Mention the new module.
25288
25289 2009-10-18  Bruno Haible  <bruno@clisp.org>
25290
25291         New module 'ctype'.
25292         * lib/ctype.in.h: New file.
25293         * m4/ctype.m4: New file.
25294         * modules/ctype: New file.
25295         * doc/posix-headers/ctype.texi: Mention the new module.
25296
25297 2009-10-18  Jim Meyering  <meyering@redhat.com>
25298
25299         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25300         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25301         right after its initialization, rather than farther down.
25302         Keeping these in close proximity makes it easier to ensure
25303         that each such variable is initialized.  E.g.,
25304
25305             LIB_CLOCK_GETTIME=
25306             AC_SUBST([LIB_CLOCK_GETTIME])
25307
25308         This change also increments these serial numbers.
25309         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25310         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25312
25313 2009-10-18  Bruno Haible  <bruno@clisp.org>
25314
25315         Don't let environment variables perturb build.
25316         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25317         (gl_PREREQ_GETHRXTIME): ... not here.
25318
25319 2009-10-18  Bruno Haible  <bruno@clisp.org>
25320
25321         Avoid symlink attack in localcharset module.
25322         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25323         (O_NOFOLLOW): Define fallback.
25324         (get_charset_aliases): Don't open the file if it is a symbolic link.
25325         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25326         gl_FCNTL_H.
25327         (gl_FCNTL_H): Require it.
25328         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25329         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25330         Reported by Fergal Glynn <fglynn@veracode.com>.
25331
25332 2009-10-18  Bruno Haible  <bruno@clisp.org>
25333
25334         Implement nproc for mingw.
25335         * lib/nproc.c: Include <windows.h>
25336         (num_processors): On native Windows platforms, try GetSystemInfo.
25337
25338 2009-10-18  Bruno Haible  <bruno@clisp.org>
25339
25340         Implement nproc for IRIX.
25341         * lib/nproc.c: Include <sys/sysmp.h>.
25342         (num_processors): On IRIX systems, try sysmp.
25343         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25344
25345 2009-10-18  Bruno Haible  <bruno@clisp.org>
25346
25347         Implement nproc for HP-UX.
25348         * lib/nproc.c: Include <sys/pstat.h>
25349         (num_processors): On HP-UX systems, try pstat_getdynamic.
25350         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25351         pstat_getdynamic.
25352
25353 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25354             Bruno Haible  <bruno@clisp.org>
25355
25356         Implement nproc for NetBSD, OpenBSD.
25357         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25358         (ARRAY_SIZE): New macro.
25359         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25360         * m4/nproc.m4: New file.
25361         * modules/nproc (Files): Add m4/nproc.m4.
25362         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25363         (Makefile.am): Instead, augment lib_SOURCES.
25364
25365 2009-10-18  Bruno Haible  <bruno@clisp.org>
25366
25367         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25368         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25369         sys/param.h.
25370
25371 2009-10-16  Eric Blake  <ebb9@byu.net>
25372
25373         utimensat: new module
25374         * modules/utimensat: New file.
25375         * lib/utimensat.c (utimensat): Likewise.
25376         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25377         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25378         so we can work around Linux bugs.
25379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25380         * modules/sys_stat (Makefile.am): Substitute them.
25381         * lib/sys_stat.in.h (utimensat): Declare it.
25382         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25383         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25384         * modules/utimensat-tests: New test.
25385         * tests/test-utimensat.c: Likewise.
25386
25387         utimens: let lutimens work on non-symlinks
25388         * lib/utimens.c (lutimens): Fall back to utimens rather than
25389         failing with ENOSYS, when file is not a symlink.
25390         (utimens): Reduce redirection.
25391         * tests/test-lutimens.h (test_lutimens): Update test to cover
25392         non-symlinks.
25393         * tests/test-utimens.h (test_utimens): Update test to cover
25394         symlinks.
25395         * tests/test-utimens.c (main): Update caller.
25396
25397         utimens: cache whether utimensat syscall works
25398         * lib/utimens.c (utimensat_works_really): New cache variable.
25399         (fdutimens, lutimens): Use it to avoid failing syscall.
25400
25401         test-stat-time, test-utimens: improve portability
25402         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25403         ext4 on alpha, and for cygwin.
25404         * tests/test-utimens-common.h: New file.
25405         (nap): Factor delays into single function.
25406         * tests/test-lutimens.h (test_lutimens): Use new header.
25407         * tests/test-futimens.h (test_futimens): Likewise.
25408         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25409         timestamps to occur from same machine, as was done previously for
25410         test_utimens.
25411         * modules/utimens-tests (Files): Ship new file.
25412         * modules/futimens-tests (Files): Likewise.
25413         Reported in part by Jim Meyering.
25414
25415         sys_stat: sort replacement declarations
25416         * lib/sys_stat.in.h: Sort declarations.
25417         * lib/futimens.c (futimens): Fix typo.
25418
25419 2009-10-15  Jim Meyering  <meyering@redhat.com>
25420
25421         don't let environment settings perturb build
25422         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25423         could cause a configure-time and/or build-time malfunction.
25424         Typically, a configure-time function-in-library test is performed
25425         via code like this:
25426
25427           LIB_VAR=
25428           AC_SUBST([LIB_VAR])
25429           prefix_saved_LIBS=$LIBS
25430             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25431                        [test "$ac_cv_search_FUNC" = "none required" ||
25432                         LIB_VAR=$ac_cv_search_FUNC])
25433           LIBS=$prefix_saved_LIBS
25434
25435         However, in each of the files affected by this change, the LIB_VAR=
25436         initialization was omitted.  Thus, when set in the environment, its
25437         value would propagate into generated Makefiles when FUNC is not found
25438         in LIB_NAME.
25439         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25440         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25442
25443 2009-10-14  Eric Blake  <ebb9@byu.net>
25444
25445         fchdir: avoid infinite recursion in mingw
25446         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25447         recursing.
25448
25449         test-stat-time: port to mingw
25450         * tests/test-stat-time.c (force_unlink): Return a value.
25451         (test_ctime) [W32]: Fix compilation error.
25452         (nap): Don't call usleep with too large an argument.  Use
25453         force_unlink.
25454         * doc/pastposix-functions/usleep.texi (usleep): Document the
25455         portability issue.
25456
25457 2009-10-13  Jim Meyering  <meyering@redhat.com>
25458
25459         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25460         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25461         * modules/pipe-filter-ii: Likewise.
25462         * modules/sys_socket-tests: Likewise.
25463         * modules/tsearch-tests: Likewise.
25464         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25465         (check): Depend on it.
25466
25467 2009-10-12  Eric Blake  <ebb9@byu.net>
25468
25469         utimens-tests: port to NFS file systems
25470         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25471         comparisons to avoid spurious failures from timestamp drift
25472         between NFS machines.
25473
25474 2009-10-12  Eric Blake  <ebb9@byu.net>
25475
25476         stat-time-tests: minor cleanups
25477         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25478         * tests/test-stat-time.c (nap): Separate assignment from call.
25479         Suggested by Paolo Bonzini and Bruno Haible.
25480
25481         sys_stat: guarantee struct timespec
25482         * lib/sys_stat.in.h (includes): Always include <time.h>
25483         * modules/sys_stat (Depends-on): Add time.
25484         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25485         mode_t permission values.
25486         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25487         get at subsecond timestamps.
25488
25489 2009-10-10  Eric Blake  <ebb9@byu.net>
25490
25491         futimens: new module
25492         * modules/futimens: New file.
25493         * lib/futimens.c (futimens): Likewise.
25494         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25495         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25496         we can work around Linux bugs.
25497         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25498         * modules/sys_stat (Makefile.am): Substitute them.
25499         * lib/sys_stat.in.h (futimens): Declare it.
25500         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25501         * doc/posix-functions/futimens.texi (futimens): Likewise.
25502         * modules/futimens-tests: New test.
25503         * tests/test-futimens.c: Likewise.
25504
25505         utimens: introduce fdutimens
25506         * lib/utimens.h (fdutimens): New prototype.
25507         * lib/utimens.c (gl_futimens): Move guts...
25508         (fdutimens): ...to new interface.
25509         * tests/test-utimens.c (do_fdutimens): Use it.
25510
25511         utimens: add UTIME_NOW and UTIME_OMIT support
25512         * lib/utimens.c (validate_timespec, update_timespec): New helper
25513         functions.
25514         (gl_futimens, lutimens): Use them.
25515         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25516         stdbool, sys_stat.
25517         (Link): Mention resulting library dependency.
25518         * modules/utimecmp (Link): Likewise.
25519         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25520         (Makefile.am): Pick up library dependency.
25521         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25522         definition.
25523         * tests/test-sys_stat.c: Test the definitions.
25524         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25525         * NEWS: Document library dependency.
25526
25527         utimecmp: support symlink timestamps
25528         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25529         hashing when possible.  Use pathconf when available.
25530         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25531         * modules/utimecmp (Depends-on): Add lstat.
25532
25533         utimens: add lutimens interface
25534         * lib/utimens.c (lutimens): New function.
25535         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25536         * lib/utimens.h (lutimens): Declare new interface.
25537         * tests/test-utimens.c (main): Enhance test.
25538         * tests/test-lutimens.h (test_lutimens): New file.
25539         * modules/utimens-tests (Files): Distribute it.
25540         (Depends-on): Add symlink.
25541         (configure.ac): Check for usleep.
25542
25543         utimens: validate futimens usage
25544         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25545         fewer syscalls on failure later on.  Avoid compiler warning on
25546         mingw.
25547         * modules/utimens (Depends-on): Add dup2.
25548
25549         utimens: add test
25550         * modules/utimens-tests: New test.
25551         * tests/test-utimens.h: New file.
25552         * tests/test-futimens.h: Likewise.
25553         * tests/test-utimens.c: Likewise.
25554
25555         doc: mention timestamp portability issues
25556         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25557         instead.
25558         * doc/posix-functions/utime.texi (utime): Likewise.
25559         * doc/posix-functions/utimes.texi (utimes): Likewise.
25560         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25561         instead.
25562         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25563         module.
25564         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25565         Mention weakness with symlink timestamps.
25566         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25567         to utimensat/futimens instead.
25568         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25569
25570         test-dup2: enhance test
25571         * tests/test-dup2.c (main): Also check AT_FDCWD.
25572
25573         test-stat-time: avoid more spurious failures
25574         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25575         xfs; and avoid race if the two timestamps cross quantization edge.
25576
25577         relocatable: prefer 'file system' over 'filesystem'
25578         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25579         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25580         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25581         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25582         * lib/relocatable.c (compute_curr_prefix): Likewise.
25583
25584 2009-10-10  Jim Meyering  <meyering@redhat.com>
25585
25586         stat-time-tests: check for the usleep function
25587         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25588
25589 2009-10-10  Bruno Haible  <bruno@clisp.org>
25590
25591         * modules/xnanosleep: Put the Link section after the Include section.
25592
25593 2009-10-09  Eric Blake  <ebb9@byu.net>
25594
25595         dup2: work around FreeBSD 6.1 bug
25596         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25597         * doc/posix-functions/dup2.texi (dup2): Document it.
25598         Reported by Nelson H. F. Beebe and Jim Meyering.
25599
25600         test-stat-time: port to buggy NFS clients
25601         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25602         (test_ctime): Also skip test if mtime and ctime are skewed.
25603
25604         maint: prefer 'file system' over 'filesystem'
25605         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25606         * doc/posix-functions/lstat.texi (lstat): Likewise.
25607         * lib/file-has-acl.c (file_has_acl): Likewise.
25608         * lib/fwriteerror.c [TEST]: Likewise.
25609         * tests/test-areadlink.h (test_areadlink): Likewise.
25610         * tests/test-areadlinkat-with-size.c (main): Likewise.
25611         * tests/test-areadlinkat.c (main): Likewise.
25612         * tests/test-canonicalize-lgpl.c (main): Likewise.
25613         * tests/test-canonicalize.c (main): Likewise.
25614         * tests/test-fstatat.c (main): Likewise.
25615         * tests/test-linkat.c (main): Likewise.
25616         * tests/test-lstat.h (test_lstat_func): Likewise.
25617         * tests/test-mkdir.h (test_mkdir): Likewise.
25618         * tests/test-readlink.h (test_readlink): Likewise.
25619         * tests/test-remove.c (main): Likewise.
25620         * tests/test-rename.h (test_rename): Likewise.
25621         * tests/test-renameat.c (main): Likewise.
25622         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25623         * tests/test-symlink.h (test_symlink): Likewise.
25624         * tests/test-symlinkat.c (main): Likewise.
25625         * tests/test-unlink.h (test_unlink_func): Likewise.
25626         * tests/test-unlinkat.c (main): Likewise.
25627
25628         maint: make realtime library usage explicit
25629         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25630         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25631         * modules/settime (Link): Likewise.
25632         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25633
25634         test-stat-time: speed up execution
25635         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25636         warning on mingw.
25637         (nap): New helper function.
25638         (prepare_test): Use it to reduce sleep time.
25639         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25640         execution.
25641         * modules/stat-time-tests (configure.ac): Check for usleep.
25642
25643 2009-10-09  Jim Meyering  <meyering@redhat.com>
25644
25645         selinux-h: always use getfilecon wrappers
25646         * lib/getfilecon.c: New file.
25647         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25648         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25649         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25650         (fgetfilecon): Provide a stub.
25651         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25652         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25653         file unconditionally.
25654         When <selinux/selinux.h> is found, arrange to use wrappers.
25655         * modules/selinux-h (Files): Add getfilecon.c.
25656         (Makefile.am): Substitute include-next-related bits
25657         into the now-always-generated selinux/selinux.h file.
25658         * doc/glibc-functions/lgetfilecon.texi: New file.
25659         * doc/glibc-functions/fgetfilecon.texi: New file.
25660         * doc/glibc-functions/getfilecon.texi: New file.
25661         * doc/glibc-functions/getfilecon-desc.texi: New file.
25662         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25663         which to pull in the new files.
25664         * MODULES.html.sh (Misc): Add selinux-h.
25665
25666 2009-10-08  Jim Meyering  <meyering@redhat.com>
25667
25668         unistd: fix comment typo
25669         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25670
25671 2009-10-08  Eric Blake  <ebb9@byu.net>
25672
25673         areadlink: use SIZE_MAX consistently
25674         * modules/areadlink (Depends-on): Add stdint.
25675         * modules/areadlink-with-size (Depends-on): Likewise.
25676         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25677         gives NULL; drop sys/types, since unistd gives size_t; and add
25678         stdint for SIZE_MAX.
25679         (SIZE_MAX): Rely on headers.
25680         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25681         and add stdint.
25682         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25683         (SIZE_MAX): Likewise.
25684         (INITIAL_BUF_SIZE): Turn into enum.
25685         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25686
25687 2009-10-08  Jim Meyering  <meyering@redhat.com>
25688
25689         areadlinkat: avoid compilation failure
25690         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25691         Fix typo in comment.
25692
25693 2009-10-07  Eric Blake  <ebb9@byu.net>
25694
25695         areadlinkat-with-size: new module
25696         * modules/areadlinkat-with-size: New module.
25697         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25698         * lib/areadlink.h (areadlinkat): Declare it.
25699         * MODULES.html.sh (File system functions): Mention it.
25700         * modules/areadlinkat-with-size-tests: New test.
25701         * tests/test-areadlinkat-with-size.c: New file.
25702
25703         xreadlinkat: new module
25704         * modules/xreadlinkat: New module.
25705         * lib/xreadlinkat.c (xreadlinkat): New file.
25706         * lib/xreadlink.h (xreadlinkat): Declare it.
25707         * MODULES.html.sh (File system functions): Mention it.
25708
25709         areadlinkat: new module
25710         * lib/at-func.c (FUNC_FAIL): New define.
25711         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25712         * modules/areadlinkat: New module.
25713         * lib/linkat.c (areadlinkat): Move...
25714         * lib/areadlinkat.c (areadlinkat): ...to new file.
25715         * lib/areadlink.h (areadlinkat): Declare it.
25716         * modules/linkat (Depends-on): Add areadlinkat.
25717         * MODULES.html.sh (File system functions): Mention it.
25718         * modules/areadlinkat-tests: New test.
25719         * tests/test-areadlinkat.c: New file.
25720
25721         areadlink, areadlink-with-size: add tests
25722         * modules/areadlink-tests: New test.
25723         * modules/areadlink-with-size-tests: Likewise.
25724         * tests/test-areadlink.h: New file.
25725         * tests/test-areadlink.c: Likewise.
25726         * tests/test-areadlink-with-size.c: Likewise.
25727
25728         maint: minor cleanups
25729         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25730         _UNUSED_PARAMETER_ instead.
25731         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25732         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25733         * modules/linkat-tests (Files): Distribute test-link.h.
25734
25735         openat, utimens: whitespace cleanup
25736         * lib/openat.c: Prefer space throughout, rather than mix of 8
25737         spaces vs. tabs.
25738         * lib/at-func.c: Likewise.
25739         * lib/utimens.c: Likewise.
25740
25741         openat: avoid using wrong fd
25742         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25743         working directory chooses same fd.
25744         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25745
25746         mkdir, mkdirat: fix cygwin 1.5.x bug
25747         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25748         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25749         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25750         bug.
25751         (gl_PREREQ_MKDIR): Delete unused macro.
25752         * modules/mkdir (Files): Track file rename.
25753         (configure.ac): Update macro name.
25754         * modules/openat (Depends-on): Add mkdir.
25755         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25756
25757         mkdir, mkdirat: add tests
25758         * modules/mkdir-tests: New test.
25759         * tests/test-mkdir.h: New file.
25760         * tests/test-mkdir.c: Likewise.
25761         * tests/test-mkdirat.c: Likewise.
25762         * modules/openat-tests (Files): Add new files.
25763         (Makefile.am): Run new test.
25764
25765 2009-10-06  Eric Blake  <ebb9@byu.net>
25766
25767         doc: tweak *at function documentation
25768         * doc/posix-functions/faccessat.texi (faccessat): Mention
25769         known issue with replacement.
25770         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25771         * doc/posix-functions/linkat.texi (linkat): Likewise.
25772         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25773         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25774         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25775         * doc/posix-functions/renameat.texi (renameat): Likewise.
25776         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25777
25778         openat: fix GNU/Hurd bug in unlinkat
25779         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25780         broken.
25781         * doc/posix-functions/unlink.texi (unlink): Document this.
25782         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25783
25784         fdopendir: fix GNU/Hurd bug
25785         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25786         allowing non-directory fds.
25787         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25789         * modules/dirent (Makefile.am): Substitute it.
25790         * lib/dirent.in.h (fdopendir): Declare replacement.
25791         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25792         * tests/test-fdopendir.c (main): Test something other than
25793         /dev/null, since on Hurd that behaves like a directory.
25794
25795         test-symlink: port to GNU/Hurd
25796         * tests/test-symlink.h (test_symlink): Relax expected errno.
25797
25798         doc: tweak more cygwin information
25799         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25800         now compatible with glibc.
25801         * doc/posix-functions/getopt.texi (getopt): Likewise.
25802
25803         getopt-gnu: add another test
25804         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25805         guarantee behavior relied on by m4.
25806         * tests/test-getopt.c (main): Use it.
25807         * modules/getopt-posix-tests (Depends-on): Add setenv.
25808         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25809
25810         getopt: fix compilation on darwin
25811         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25812         include.
25813         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25814         Reported by Ludovic Courtès.
25815
25816 2009-10-06  Bruno Haible  <bruno@clisp.org>
25817
25818         * modules/size_max (Description): Discourage its use.
25819         Reported by Simon Josefsson.
25820
25821 2009-10-06  Jim Meyering  <meyering@redhat.com>
25822
25823         linkat: avoid compilation failure
25824         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25825
25826 2009-10-05  Eric Blake  <ebb9@byu.net>
25827
25828         linkat: support Linux 2.6.17
25829         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25830         linkat on Linux, but allow cache variable override.
25831         * lib/linkat.c (rpl_linkat): Define override.
25832         * modules/linkat (Depends-on): Add symlinkat.
25833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25834         * modules/unistd (Makefile.am): Substitute it.
25835         * lib/unistd.in.h (linkat): Declare replacement.
25836         Reported by Pádraig Brady.
25837
25838         quotearg: port test to systems with C.UTF-8 locale
25839         * tests/test-quotearg.c (struct result_strings): Add another
25840         member, differentiating between C.ASCII and C.UTF-8 handling.
25841         (compare_strings): Add parameter.
25842         (main): Adjust all callers.
25843
25844         getopt: avoid clash with FreeBSD _getopt_internal
25845         * lib/getopt.in.h (_getopt_internal): Override the name.
25846         * lib/getopt_int.h (includes): Pick up any overrides.
25847         Reported by Reuben Thomas.
25848
25849         hash: allow C89 compilation
25850         * lib/hash.c (check_tuning): Move declaration before statement.
25851         Reported by Reuben Thomas.
25852
25853 2009-10-05  Karl Berry  <karl@gnu.org>
25854
25855         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25856
25857 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25858             Bruno Haible  <bruno@clisp.org>
25859
25860         * lib/uname.c (uname): Use a table-driven algorithm to compute
25861         Windows NT versions.
25862
25863 2009-10-04  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25866         program_invocation_short_name.
25867         * modules/progname (configure.ac): Test for presence of
25868         program_invocation_short_name.
25869         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25870
25871 2009-10-04  Bruno Haible  <bruno@clisp.org>
25872
25873         * lib/progname.c (set_program_name): Fix comment.
25874         Reported by Jim Meyering.
25875
25876 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25877             Bruno Haible  <bruno@clisp.org>
25878
25879         * lib/uname.c: Include <string.h>.
25880         (uname): Do only one call to GetVersionEx in the common case.
25881
25882 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25883             Bruno Haible  <bruno@clisp.org>
25884
25885         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25886         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25887         (uname): Add support for Windows CE and various non-x86 CPU types.
25888
25889 2009-10-03  Bruno Haible  <bruno@clisp.org>
25890
25891         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25892         invocation to tests/configure.ac.
25893         Reported by Ian Beckwith <ianb@erislabs.net>.
25894
25895 2009-10-02  Eric Blake  <ebb9@byu.net>
25896
25897         fchdir: avoid compiler warning
25898         * lib/fchdir.c (canonicalize_file_name)
25899         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25900
25901         test-open: support mingw errno values
25902         * tests/test-open.h (test_open): Relax test.
25903         * tests/test-fopen.h (test_fopen): Likewise.
25904         * tests/test-openat-safer.c (main): Likewise.
25905
25906         open: fix opening directory on mingw
25907         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25908
25909         test-open: on GNU/Hurd, /dev/null is a directory
25910         * tests/test-fopen.h (main): Rename...
25911         (test_fopen): ...to this.  Use a guaranteed non-directory when
25912         confirming open behavior on trailing slash.
25913         * tests/test-openat-safer.c (main): Likewise.
25914         * tests/test-open.h (main): Likewise....
25915         (test_open): ...to this.
25916         * tests/test-fopen.c (main): Adjust caller.
25917         * tests/test-fopen-safer.c (main): Likewise.
25918         * tests/test-open.c (main): Likewise.
25919         * tests/test-fcntl-safer.c (main): Likewise.
25920         Reported by Samuel Thibault.
25921
25922         rename, fchdir: don't ignore chdir failure
25923         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25924         * lib/rename.c (rpl_rename) [W32]: Likewise.
25925         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25926         an empty destination directory if source cannot be renamed,
25927         although there is still possibility for failure.
25928         * doc/posix-functions/rename.texi (rename): Document the race.
25929         Reported by Jim Meyering.
25930
25931         maint: cleanup whitespace in recent commits
25932         * lib/rename.c (rpl_rename): Remove tabs.
25933         * tests/test-link.h (test_link): Likewise.
25934         * lib/fchdir.c (get_name): Likewise.
25935         Reported by Jim Meyering.
25936
25937 2009-10-02  Ben Pfaff  <blp@gnu.org>
25938
25939         relocatable-prog-wrapper: Add missing dependency on
25940         double-slash-root.
25941         * modules/relocatable-prog-wrapper: Add dependency.
25942         Reported by Ian Beckwith <ianb@erislabs.net>.
25943
25944 2009-10-02  Eric Blake  <ebb9@byu.net>
25945
25946         renameat: fix Solaris bugs
25947         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25948         needed fixing.
25949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25950         * modules/stdio (Makefile.am): Substitute it.
25951         * lib/stdio.in.h (renameat): Declare replacement.
25952         * lib/renameat.c (rpl_renameat): Implement fix.
25953
25954         renameat: new module
25955         * modules/renameat: New file.
25956         * lib/renameat.c (renameat): Likewise.
25957         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25959         * modules/stdio (Makefile.am): Substitute them.
25960         * lib/stdio.in.h (renameat): Declare it.
25961         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25962         * doc/posix-functions/renameat.texi (renameat): Likewise.
25963         * modules/renameat-tests: New test.
25964         * tests/test-renameat.c: Likewise.
25965
25966         rename: fix mingw bugs
25967         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25968         directory overwrite bugs.
25969
25970         rename: fix another cygwin 1.5 bug
25971         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25972         checks.
25973         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25974         unnecessary cygwin workarounds.  Also work around bug with moving
25975         full directory onto an empty one.
25976         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25977
25978         rename-dest-slash: merge into rename module
25979         * modules/rename-dest-slash (Status): Mark obsolete.
25980         (Depends-on): Add rename.
25981         (Files): Let rename do it all.
25982         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25983         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25984         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25985         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25986         * lib/rename.c (rpl_rename): Update comments.
25987
25988         rename: fix cygwin 1.5.x bugs
25989         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25990         * lib/rename.c (rpl_rename): Work around them.
25991         * modules/rename (Depends-on): Add same-inode.
25992
25993         rename: fix Solaris 10 bug
25994         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25995         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25996         was the only bug.
25997
25998         rename: fix Solaris 9 bug
25999         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26000         on non-directory.  Avoid calling exit.
26001         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26002         strdup.
26003         * modules/rename-tests (Depends-on): Drop lstat.
26004         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26005         (gl_PREREQ_RENAME): Delete unused macro.
26006
26007         rename-dest-slash: fix NetBSD bug
26008         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26009         links.
26010         * modules/rename-dest-slash (Depends-on): Add same-inode.
26011
26012         rename-tests: new test, exposes several platform bugs
26013         * modules/rename-tests: New file.
26014         * tests/test-rename.h: Likewise.
26015         * tests/test-rename.c: Likewise.
26016         * doc/posix-functions/rename.texi (rename): Improve documentation,
26017         including bugs that will eventually be fixed in gnulib.
26018
26019 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26020
26021         * lib/uname.c: Include <stdlib.h>
26022         (uname): Assume version info is available.
26023
26024 2009-10-02  Jim Meyering  <meyering@redhat.com>
26025
26026         gnu-web-doc-update: correct --help output
26027         * build-aux/gnu-web-doc-update: Make --help output relevant.
26028
26029         gnu-web-doc-update: add standard options
26030         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26031
26032         gnu-web-doc-update: New module.
26033         Use this script to automatically update the on-line web documentation
26034         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26035         * modules/gnu-web-doc-update: New file, from coreutils.
26036         * build-aux/gnu-web-doc-update: New script.
26037
26038 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26039
26040         link: LoadLibrary is not needed.
26041         * lib/link.c: Use GetModuleHandle.
26042
26043 2009-10-01  Eric Blake  <ebb9@byu.net>
26044
26045         getopt: bump serial number
26046         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26047         change.
26048
26049         tests: tighten link, rmdir, and remove tests
26050         * tests/test-link.h (includes): No need to use <config.h> here.
26051         Clean up if directory hard link was created, otherwise test for
26052         trailing '.'.
26053         * tests/test-linkat.c (main): Simplify.
26054         * tests/test-remove.c (main): Enhance test for trailing '.'.
26055         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26056
26057 2009-10-01  Jim Meyering  <meyering@redhat.com>
26058
26059         maint.mk: requiring "make major" was annoying, for a "minor" release.
26060         What is intended is "stable", to contrast with alpha and beta,
26061         so require "make stable", not "make major".
26062         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26063         (get_tool_versions): Likewise.
26064         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26065
26066 2009-09-30  Ben Pfaff  <blp@gnu.org>
26067
26068         Fix broken build of replacement for Windows tmpfile().
26069         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26070         flags argument added along with the 'mkostemp' module.
26071
26072 2009-09-28  Bruno Haible  <bruno@clisp.org>
26073
26074         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26075         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26076         to 'remove_elt'.
26077         (gl_list_remove): Update.
26078         * lib/gl_list.c (gl_list_remove): Update.
26079         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26080         to 'remove_elt'.
26081         (gl_oset_remove): Update.
26082         * lib/gl_list.c (gl_oset_remove): Update.
26083         Reported by Eric Blake.
26084
26085 2009-09-28  Eric Blake  <ebb9@byu.net>
26086
26087         doc: mention yet more cygwin 1.7 status
26088         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26089         cygwin.
26090         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26091         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26092
26093         argp: fix test failure
26094         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26095         that are not upper-case.  Pass correct range to tolower.
26096
26097 2009-09-27  Jim Meyering  <meyering@redhat.com>
26098
26099         test-yesno: work around sparc-dash here-document infelicity
26100         Without this change, the literal \177 byte in a here document
26101         would make dash 0.5.5.1-3 access uninitialized memory.
26102         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26103         Instead, use a marker, "@", and filter through tr to create the desired
26104         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26105
26106 2009-09-27  Bruno Haible  <bruno@clisp.org>
26107
26108         Disable untested support for new flavours of ACLs on AIX.
26109         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26110         progress.
26111         * lib/set-mode-acl.c (qset_acl): Likewise.
26112
26113 2008-12-07  Bruno Haible  <bruno@clisp.org>
26114
26115         Add support for new flavours of ACLs on AIX. (Untested.)
26116         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26117         (file_has_acl): Add support for newer AIX.
26118         * lib/set-mode-acl.c (qset_acl): Likewise.
26119         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26120         Rainer Tammer <tammer@tammer.net>.
26121
26122 2009-09-26  Eric Blake  <ebb9@byu.net>
26123
26124         argp: fix compilation of getopt
26125         * lib/getopt.in.h (includes): Use different guard than glibc.
26126         Reported by Sergey Poznyakoff.
26127
26128         doc: mention more cygwin 1.7 status
26129         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26130         bug.
26131         * doc/posix-functions/execl.texi (execl): Likewise.
26132         * doc/posix-functions/execle.texi (execle): Likewise.
26133         * doc/posix-functions/execlp.texi (execlp): Likewise.
26134         * doc/posix-functions/execv.texi (execv): Likewise.
26135         * doc/posix-functions/execve.texi (execve): Likewise.
26136         * doc/posix-functions/execvp.texi (execvp): Likewise.
26137         * doc/glibc-functions/canonicalize_file_name.texi
26138         (canonicalize_file_name): Cygwin 1.7 now provides this.
26139         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26140         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26141         on AT_SYMLINK_NOFOLLOW.
26142
26143 2009-09-24  Eric Blake  <ebb9@byu.net>
26144
26145         test-linkat: make test more robust
26146         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26147
26148         getopt: fix inclusion guards for cygwin
26149         * modules/getopt-posix (Depends-on): Add include-next.
26150         (Makefile.am): Substitute more items in replacement header.
26151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26152         <getopt.h>.
26153         * lib/getopt.in.h (includes): Use split inclusion guard, and
26154         prefer <getopt.h> over include <unistd.h> when one is present.
26155         (option): Also override name of 'struct option'.
26156
26157         same-inode: revert prior change; it is not yet ready
26158         * NEWS: Undo mention of this change.
26159         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26160         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26161         * lib/cycle-check.c (cycle_check): Likewise.
26162         * lib/same.c (same_name): Likewise.
26163         * lib/at-func2.c (at_func2): Likewise.
26164
26165 2009-09-23  Eric Blake  <ebb9@byu.net>
26166
26167         linkat: new module
26168         * modules/linkat: New file.
26169         * lib/at-func2.c (at_func2): Likewise.
26170         * lib/linkat.c (linkat): Likewise.
26171         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26172         * lib/openat-priv.h (at_func2): Add declaration.
26173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26174         * modules/unistd (Makefile.am): Substitute them.
26175         * lib/unistd.in.h (linkat): Declare it.
26176         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26177         * doc/posix-functions/linkat.texi (linkat): Likewise.
26178         * doc/posix-functions/link.texi (link): Tweak wording.
26179         * tests/test-link.c (main): Move guts...
26180         * tests/test-link.h (test_link): ...into new file.
26181         * modules/linkat-tests: New test.
26182         * tests/test-linkat.c: Likewise.
26183         * modules/link-tests (Files): Ship new file.
26184         (Depends-on): Add stdbool.
26185
26186         dirname: add library-safe mdir_name
26187         * lib/dirname.h (mdir_name): New prototype.
26188         * lib/dirname.c (dir_name): Move guts...
26189         (mdir_name): ...to new function that avoids xalloc_die.
26190
26191         fchdir: another mingw fix
26192         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26193         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26194         on mingw (where it has not yet been ported), and make it optional
26195         elsewhere.
26196         (_gl_register_fd): Use it.
26197
26198         same-inode: make SAME_INODE tri-state, to port to mingw
26199         * NEWS: Mention this change.
26200         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26201         st_ino always being 0.
26202         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26203         * lib/cycle-check.c (cycle_check): Likewise.
26204         * lib/same.c (same_name): Likewise.
26205
26206         lstat: avoid mingw compilation error
26207         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26208         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26209         lstat ourselves.
26210         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26211         was adequate.
26212         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26213         the checks for lstat.
26214         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26215
26216         link: fix test failure on Solaris 9
26217         * lib/link.c (rpl_link): Don't assume link will catch bogus
26218         trailing slash on source.
26219
26220         test-symlinkat: enhance test
26221         * tests/test-readlink.c (main): Move guts...
26222         * tests/test-readlink.h (test_readlink): ...into new file.
26223         * tests/test-symlink.c (main): Move guts...
26224         * tests/test-symlink.h (test_symlink): ...into new file.
26225         * tests/test-symlinkat.c (main): Use new files for further
26226         coverage.
26227         (do_symlink, do_readlink): New helper functions.
26228         * modules/symlink-tests (Files): Ship new file.
26229         (Depends-on): Add stdbool.
26230         * modules/readlink-tests (Files): Ship new file.
26231         (Depends-on): Add stdbool.
26232         * modules/symlinkat-tests (Files): Use new files.
26233
26234 2009-09-23  Eric Blake  <ebb9@byu.net>
26235
26236         readlink: document portability issue with symlink length
26237         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26238         systems have bogus st_size on symlinks, and mention the
26239         areadlink-with-size module.
26240         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26241         * doc/posix-functions/readlink.texi (readlink): Mention the
26242         areadlink module, and ERANGE failure.
26243         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26244         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26245
26246         readlink: fix Solaris 9 bug with trailing slash
26247         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26248         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26249         * doc/posix-functions/readlink.texi (readlink): Document this.
26250         * modules/readlink-tests: New test.
26251         * tests/test-readlink.c: Likewise.
26252
26253         readlink: fix cygwin 1.5.x bug with return type
26254         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26255         * lib/unistd.in.h (readlink): Use ssize_t.
26256         * lib/readlink.c (readlink): Likewise.
26257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26258         * modules/unistd (Makefile.am): Substitute it.
26259         * lib/unistd.in.h (readlink): Declare replacement.
26260         * doc/posix-functions/readlink.texi (readlink): Document this.
26261
26262         symlink: use throughout gnulib
26263         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26264         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26265         symlink is not used.
26266         * modules/symlinkat (Depends-on): Add symlink.
26267         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26268         * modules/canonicalize-tests (Depends-on): Likewise.
26269         * modules/lstat-tests (Depends-on): Likewise.
26270         * modules/openat-tests (Depends-on): Likewise.
26271         * modules/remove-tests (Depends-on): Likewise.
26272         * modules/rmdir-tests (Depends-on): Likewise.
26273         * modules/unlink-tests (Depends-on): Likewise.
26274         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26275         * tests/test-canonicalize.c (symlink): Likewise.
26276         * tests/test-fstatat.c (symlink): Likewise.
26277         * tests/test-lstat.c (symlink): Likewise.
26278         * tests/test-remove.c (symlink): Likewise.
26279         * tests/test-rmdir.c (symlink): Likewise.
26280         * tests/test-unlink.c (symlink): Likewise.
26281         * tests/test-unlinkat.c (symlink): Likewise.
26282
26283         symlink: new module, for Solaris 9 bug
26284         * modules/symlink: New file.
26285         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26286         * lib/symlink.c: Likewise.
26287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26288         * modules/unistd (Makefile.am): Substitute them.
26289         * lib/unistd.in.h (symlink): Declare replacement.
26290         * MODULES.html.sh (File system functions): Mention it.
26291         * doc/posix-functions/symlink.texi (symlink): Likewise.
26292         * modules/symlink-tests: New test.
26293         * tests/test-symlink.c: Likewise.
26294
26295 2009-09-23  Bruno Haible  <bruno@clisp.org>
26296
26297         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26298         when needed.
26299         Test case: gnulib-tool --import --with-tests atexit inttypes.
26300         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26301
26302 2009-09-23  Bruno Haible  <bruno@clisp.org>
26303
26304         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26305         subcommand, not in a subshell.
26306
26307 2009-09-22  Eric Blake  <ebb9@byu.net>
26308
26309         unistd: sort replacement declarations
26310         * lib/unistd.in.h: Sort declarations.
26311
26312         open, openat: minor optimization
26313         * lib/open.c (open): If open succeeded, len is non-zero.
26314         * lib/openat.c (rpl_openat): Likewise.
26315
26316         link-follow: ensure correct result
26317         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26318         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26319         distinguish between possible failures.
26320
26321 2009-09-21  Eric Blake  <ebb9@byu.net>
26322
26323         fts: avoid compiler warning
26324         * lib/fts.c (dirent_inode_sort_may_be_useful)
26325         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26326
26327 2009-09-19  Bruno Haible  <bruno@clisp.org>
26328
26329         * lib/progreloc.c (canonicalize_file_name): New declaration.
26330
26331 2009-09-19  Eric Blake  <ebb9@byu.net>
26332
26333         link: fix quoting
26334         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26335
26336         openat: fix openat bugs on Solaris 9
26337         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26338         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26339         * modules/openat (Depends-on): Add open.
26340         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26341         * modules/fcntl-h (Makefile.am): Substitute it.
26342         * lib/fcntl.in.h (openat): Declare replacement.
26343         * doc/posix-functions/openat.texi (openat): Document this.
26344
26345         openat: move fstatat and unlinkat into correct files
26346         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26347         compiled.
26348         * lib/openat.c (fstatat, unlinkat): Move...
26349         * lib/fstatat.c (fstatat): ...into correct files.
26350         * lib/unlinkat.c (unlinkat): Likewise.
26351
26352         openat: fix unlinkat bugs on Solaris 9
26353         * lib/unlinkat.c (unlinkat): New file.
26354         * modules/openat (Depends-on): Add unlink.
26355         (Files): Distribute it.
26356         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26357         trailing slash behavior is broken.
26358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26359         * modules/unistd (Makefile.am): Substitute it.
26360         * lib/unistd.in.h (unlinkat): Declare replacement.
26361         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26362
26363         openat: fix fstatat bugs on Solaris 9
26364         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26365         stat.
26366         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26367
26368         test-unlinkat: enhance test, to expose Solaris 9 bug
26369         * tests/test-unlink.c (main): Factor guts...
26370         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26371         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26372         * tests/test-rmdir.c (main): Adjust caller.
26373         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26374         (unlinker): New helper function.
26375         (rmdirat): Enhance check.
26376         * modules/rmdir-tests (Depends-on): Add stdbool.
26377         * modules/unlink-tests (Depends-on): Likewise.
26378         (Files): Add test-unlink.h.
26379         * modules/openat-tests (Files): Likewise.
26380         (Depends-on): Add unlinkdir.
26381
26382         test-fstatat: new test, to expose Solaris 9 bugs
26383         * tests/test-stat.c (main): Factor guts...
26384         * tests/test-stat.h (test_stat_func): ...into new file.
26385         * tests/test-lstat.c (main): Factor guts...
26386         * tests/test-lstat.h (test_lstat_func): ...into new file.
26387         * tests/test-fstatat.c: New file.
26388         * modules/stat-tests (Files): Add test-stat.h.
26389         * modules/lstat-tests (Files): Add test-lstat.h.
26390         (Depends-on): Add stdbool.
26391         * modules/openat-tests (Depends-on): Add pathmax.
26392         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26393         (Makefile.am): Run new test.
26394
26395         remove: new module, for mingw and Solaris 9 bugs
26396         * modules/remove: New file.
26397         * lib/remove.c: Likewise.
26398         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26400         * modules/stdio (Makefile.am): Use them.
26401         * lib/stdio.in.h (remove): Declare replacement.
26402         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26403         * doc/posix-functions/remove.texi (remove): Likewise.
26404         * modules/remove-tests: New test.
26405         * tests/test-remove.c: Likewise.
26406
26407         unlink: new module, for Solaris 9 bug
26408         * modules/unlink: New file.
26409         * lib/unlink.c: Likewise.
26410         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26412         * modules/unistd (Makefile.am): Use them.
26413         * lib/unistd.in.h (stat): Declare replacement.
26414         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26415         * doc/posix-functions/unlink.texi (unlink): Likewise.
26416         * modules/unlink-tests: New test.
26417         * tests/test-unlink.c: Likewise.
26418
26419         lstat: fix Solaris 9 bug
26420         * lib/lstat.c (lstat): Also check for trailing slash on
26421         non-symlink, non-directories.  Use stat module to simplify logic.
26422         * doc/posix-functions/lstat.texi (lstat): Document it.
26423         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26424         (configure.ac): Check for symlink.
26425         * tests/test-lstat.c (main): Add more tests.
26426
26427         stat: add as dependency to other modules
26428         * modules/chown (Depends-on): Add stat.
26429         * modules/euidaccess (Depends-on): Likewise.
26430         * modules/fchdir (Depends-on): Likewise.
26431         * modules/isdir (Depends-on): Likewise.
26432         * modules/link (Depends-on): Likewise.
26433         * modules/lstat (Depends-on): Likewise.
26434         * modules/mkdir-p (Depends-on): Likewise.
26435         * modules/modechange (Depends-on): Likewise.
26436         * modules/open (Depends-on): Likewise.
26437         * modules/readlink (Depends-on): Likewise.
26438         * modules/same (Depends-on): Likewise.
26439
26440         stat: fix Solaris 9 bug
26441         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26442         slash.
26443         * lib/stat.c (rpl_stat): Work around it.
26444         * doc/posix-functions/stat.texi (stat): Update documentation.
26445
26446         stat: new module, for mingw bug
26447         * modules/stat: New file.
26448         * lib/stat.c: Likewise.
26449         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26450         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26451         * modules/sys_stat (Makefile.am): Use them.
26452         * lib/sys_stat.in.h (stat): Declare replacement.
26453         * lib/openat.c (fstatat): Deal with lstat and stat being function
26454         macros.
26455         * modules/openat (Depends-on): Add inline.
26456         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26457         * doc/posix-functions/stat.texi (stat): Likewise.
26458         * modules/stat-tests: New test.
26459         * tests/test-stat.c: Likewise.
26460
26461 2009-09-19  Jim Meyering  <meyering@redhat.com>
26462
26463         syntax-check: detect unnecessary inclusion of canonicalize.h
26464         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26465
26466 2009-09-19  Eric Blake  <ebb9@byu.net>
26467
26468         canonicalize-lgpl: adjust clients to use correct header
26469         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26470         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26471         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26472         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26473         * lib/progreloc.c (includes): Likewise.
26474
26475 2009-09-19  Jim Meyering  <meyering@redhat.com>
26476
26477         test-posixtm.c: correct a comment
26478         * tests/test-posixtm.c: Correct first-line comment.
26479         Spotted by Eric Blake.
26480
26481 2009-09-16  Jim Meyering  <meyering@redhat.com>
26482
26483         posixtm-tests: make T const-correct; add a test case
26484         * tests/test-posixtm.c (T): Declare const.
26485         Add a test for -(2^31+1).
26486         Remove useless can-succeed-only-in-2002 test.
26487
26488         posixtm-tests: adjust the sole failing test
26489         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26490         expected output matches what mktime now produces.  Cross-checked via
26491         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26492
26493         posixtm: move #ifdef'd tests into a new module
26494         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26495         * tests/test-posixtm.c: ... this new file.
26496         * modules/posixtm-tests: New module.
26497
26498 2009-09-19  Eric Blake  <ebb9@byu.net>
26499
26500         openat: simplify use of at-func.c
26501         * lib/at-func.c (includes): Include prerequisites here, to
26502         simplify requirements on client files.
26503         * lib/openat-priv.h: Add double-inclusion guard.
26504         * lib/faccessat.c (includes): Simplify.
26505         * lib/fchmodat.c (includes): Likewise.
26506         * lib/fchownat.c (includes): Likewise.
26507         * lib/mkdirat.c (includes): Likewise.
26508         * lib/mkfifoat.c (includes): Likewise.
26509         * lib/symlinkat.c (includes): Likewise.
26510
26511         openat: allow return of fd 0
26512         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26513         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26514         unistd-safer.
26515         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26516         <fcntl.h>; this module does not leak fds.
26517         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26518         must be allowed to return 0, leaving openat_safer to add the
26519         safety.
26520         (openat_permissive): Avoid writing to just-opened fd 2 if
26521         restoring the current directory fails.
26522         * lib/openat-die.c (openat_restore_fail): Add comment.
26523         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26524         (save_cwd): Guarantee safe fd, but without use of open_safer.
26525         * tests/test-openat.c: New test.
26526         * modules/openat-tests (Files, Makefile.am): Distribute and build
26527         new file.
26528
26529         relocatable-prog-wrapper: fix build
26530         * modules/relocatable-prog-wrapper (Files): Update name of
26531         canonicalize m4 file, broken on 2009-09-17.
26532         Reported by emad hajjar <aleppos@hotmail.com>.
26533
26534 2009-09-19  Bruno Haible  <bruno@clisp.org>
26535
26536         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26537         * lib/safe-alloc.c: Likewise.
26538         Reported by Ian Beckwith <ianb@erislabs.net>.
26539
26540 2009-09-18  Bruno Haible  <bruno@clisp.org>
26541
26542         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26543         Reported by <erobles@sensacd.com.mx>.
26544
26545 2009-09-17  Eric Blake  <ebb9@byu.net>
26546
26547         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26548         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26549         slashes when checking if last component is missing.
26550         * tests/test-canonicalize.c (main): Test this.
26551
26552         canonicalize, canonicalize-lgpl: honor // if distinct from /
26553         * modules/canonicalize (Files): Add double-slash-root.m4.
26554         * modules/canonicalize-lgpl (Files): Likewise.
26555         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26556         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26557         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26558         fallback definition.
26559         (canonicalize_filename_mode): Use it to protect //.
26560         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26561         (__realpath): Likewise.
26562         * tests/test-canonicalize.c (main): Test this.
26563         * tests/test-canonicalize-lgpl.c (main): Likewise.
26564         * modules/canonicalize-tests (Depends-on): Add same-inode.
26565         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26566
26567         canonicalize-lgpl: fix glibc bug with trailing slash
26568         * m4/canonicalize-lgpl.m4: Move contents...
26569         * m4/canonicalize.m4: ...here.
26570         (gl_CANONICALIZE_LGPL): Factor realpath check...
26571         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26572         glibc 2.3.5 bug, fixed 2005-04-27.
26573         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26574         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26575         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26576         * modules/canonicalize-lgpl (Files): Manage file rename.
26577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26578         * modules/stdlib (Makefile.am): Substitute witness.
26579         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26580         is needed.
26581         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26582         replacement is required.
26583         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26584         * doc/glibc-functions/canonicalize_file_name.texi
26585         (canonicalize_file_name): Document this.
26586         * doc/posix-functions/realpath.texi (realpath): Likewise.
26587
26588         canonicalize-lgpl: reject non-directory with trailing slash
26589         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26590         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26591         catches failures in glibc 2.3.5.
26592         * tests/test-canonicalize.c (main): Likewise.
26593
26594         canonicalize-lgpl: use native realpath if it works
26595         * lib/canonicalize-lgpl.c (realpath): Guard with
26596         FUNC_REALPATH_WORKS.
26597         * lib/stdlib.in.h (realpath): Make declaration optional based on
26598         HAVE_REALPATH.
26599         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26600         native realpath works.
26601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26602         * modules/stdlib (Makefile.am): Substitute witness.
26603
26604         canonicalize, canonicalize-lgpl: use <stdlib.h>
26605         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26606         (Include): Mention <stdlib.h>.
26607         (configure.ac): Mention functions we provide.
26608         * modules/canonicalize (configure.ac): Likewise.
26609         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26610         realpath if canonicalize_file_name is missing.
26611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26612         * modules/stdlib (Makefile.am): Substitute witnesses.
26613         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26614         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26615         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26616         * NEWS: Document this.
26617         * doc/glibc-functions/canonicalize_file_name.texi
26618         (canonicalize_file_name): Likewise.
26619         * doc/posix-functions/realpath.texi (realpath): Likewise.
26620         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26621
26622         test-canonicalize: consolidate into single C program
26623         * tests/test-canonicalize.sh: Delete; move setup into...
26624         * tests/test-canonicalize.c (main): ...the program, making it
26625         easier to run in debugger.  Add some tests.
26626         * modules/canonicalize-tests (Files): Remove unused file.
26627         (Depends-on): Add progname.
26628         (configure.ac, Makefile.am): Simplify.
26629
26630         test-canonicalize-lgpl: consolidate into single C program
26631         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26632         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26633         easier to run in debugger.  Add some tests.
26634         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26635         (configure.ac, Makefile.am): Simplify.
26636
26637         canonicalize: avoid resolvepath
26638         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26639         unnecessary checks.
26640         * lib/canonicalize.c (includes): Simplify.
26641         (canonicalize_file_name): Drop resolvepath implementation.
26642         * modules/canonicalize (Depends-on): Drop filenamecat.
26643
26644         canonicalize: don't lose errno
26645         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26646         over calls to free.
26647
26648         canonicalize: simplify errno handling
26649         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26650         assignment.
26651
26652         canonicalize, canonicalize-lgpl: update module dependencies
26653         * modules/canonicalize (Depends-on): Add extensions, lstat,
26654         pathmax, stdlib.
26655         (Files): Drop pathmax.h.
26656         (configure.ac): Adjust macro name.
26657         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26658         lstat, stdlib, sys_stat.
26659         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26660         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26661         extensions.
26662         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26663         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26664         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26665         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26666         declaration, if available.
26667         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26668         we can rely on the readlink module.
26669         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26670         (includes): Use <unistd.h> unconditionally.
26671
26672 2009-09-17  Eric Blake  <ebb9@byu.net>
26673
26674         maint: make Include sections of modules consistent
26675         * modules/alloca: Use only header name; no need to list #include.
26676         * modules/alloca-opt: Likewise.
26677         * modules/arpa_inet: Likewise.
26678         * modules/canon-host: Likewise.
26679         * modules/configmake: Likewise.
26680         * modules/dirent: Likewise.
26681         * modules/eealloc: Likewise.
26682         * modules/environ: Likewise.
26683         * modules/fchdir: Likewise.
26684         * modules/fcntl: Likewise.
26685         * modules/fcntl-h: Likewise.
26686         * modules/gethrxtime: Likewise.
26687         * modules/gettime: Likewise.
26688         * modules/ignore-value: Likewise.
26689         * modules/inet_ntop: Likewise.
26690         * modules/inet_pton: Likewise.
26691         * modules/inttypes: Likewise.
26692         * modules/isnand-nolibm: Likewise.
26693         * modules/isnanf-nolibm: Likewise.
26694         * modules/mbchar: Likewise.
26695         * modules/mbfile: Likewise.
26696         * modules/mbiter: Likewise.
26697         * modules/mbuiter: Likewise.
26698         * modules/netdb: Likewise.
26699         * modules/netinet_in: Likewise.
26700         * modules/nproc: Likewise.
26701         * modules/pagealign_alloc: Likewise.
26702         * modules/poll: Likewise.
26703         * modules/printf-frexp: Likewise.
26704         * modules/pthread: Likewise.
26705         * modules/putenv: Likewise.
26706         * modules/random_r: Likewise.
26707         * modules/relocatable-prog: Likewise.
26708         * modules/search: Likewise.
26709         * modules/select: Likewise.
26710         * modules/selinux-h: Likewise.
26711         * modules/settime: Likewise.
26712         * modules/signal: Likewise.
26713         * modules/size_max: Likewise.
26714         * modules/socklen: Likewise.
26715         * modules/ssize_t: Likewise.
26716         * modules/stdarg: Likewise.
26717         * modules/stdbool: Likewise.
26718         * modules/stddef: Likewise.
26719         * modules/stdint: Likewise.
26720         * modules/stdio: Likewise.
26721         * modules/stdlib: Likewise.
26722         * modules/string: Likewise.
26723         * modules/strings: Likewise.
26724         * modules/sys_file: Likewise.
26725         * modules/sys_ioctl: Likewise.
26726         * modules/sys_select: Likewise.
26727         * modules/sys_socket: Likewise.
26728         * modules/sys_stat: Likewise.
26729         * modules/sys_time: Likewise.
26730         * modules/sys_times: Likewise.
26731         * modules/sys_utsname: Likewise.
26732         * modules/sys_wait: Likewise.
26733         * modules/sysexits: Likewise.
26734         * modules/time: Likewise.
26735         * modules/times: Likewise.
26736         * modules/tmpfile: Likewise.
26737         * modules/trim: Likewise.
26738         * modules/unistd: Likewise.
26739         * modules/wchar: Likewise.
26740         * modules/wctype: Likewise.
26741
26742 2009-09-17  Bruno Haible  <bruno@clisp.org>
26743
26744         Make getdate.y compile on QNX and NetBSD 5 / i386.
26745         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26746         TIME_T_FITS_IN_LONG_INT.
26747         * lib/getdate.y (long_time_t): New type.
26748         (relative_time): Change type of 'seconds' field to long_time_t.
26749         (get_date): Update types of local variables. Check against overflow
26750         during conversion from long_time_t to time_t.
26751         Reported by Matt Kraai <kraai@ftbfs.org>
26752         and Hasso Tepper <hasso@netbsd.org>.
26753
26754 2009-09-17  Bruno Haible  <bruno@clisp.org>
26755
26756         * modules/COPYING: Update copyright years.
26757         * modules/README: Likeiwse.
26758         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26759         Reported by Ian Beckwith <ianb@erislabs.net>.
26760
26761 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26762
26763         * users.txt: Update references for gnuit package.
26764
26765 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26766
26767         * m4/getdelim.m4: Fix typo in copyright line.
26768
26769 2009-09-17  Bruno Haible  <bruno@clisp.org>
26770
26771         * lib/atoll.c: Use the standard header with GPL copyright.
26772         * lib/argz.in.h: Likewise.
26773         * lib/glob.c: Likewise.
26774         * lib/glob-libc.h: Likewise.
26775         * lib/random_r.c: Likewise.
26776         * lib/siglist.h: Likewise.
26777         * lib/strsignal.c: Likewise.
26778         Reported by Ian Beckwith <ianb@erislabs.net>.
26779
26780 2009-09-17  Eric Blake  <ebb9@byu.net>
26781
26782         rmdir: ensure correct dependency order
26783         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26784
26785 2009-09-17  Bruno Haible  <bruno@clisp.org>
26786
26787         Disable assertion that fails on NetBSD 5 / i386.
26788         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26789         Reported by Sam Steingold <sds@gnu.org>
26790         and Hasso Tepper <hasso@netbsd.org>.
26791
26792 2009-09-16  Eric Blake  <ebb9@byu.net>
26793
26794         unlinkdir: port to mingw
26795         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26796         on which no one can unlink a directory.
26797
26798         stdlib: sort witness names
26799         * modules/stdlib (Makefile.am): Sort replacements.
26800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26801         * lib/stdlib.in.h: Likewise.
26802
26803         parse-duration-tests: avoid link failure
26804         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26805         LIBINTL.
26806         Reported by Tom G. Christensen.
26807
26808         openat-tests: ensure unlinkat behaves like rmdir
26809         * tests/test-rmdir.c (main): Factor guts...
26810         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26811         * modules/rmdir-tests (Files): Ship new file.
26812         * modules/openat-tests: New test.
26813         * tests/test-unlinkat.c: Likewise.
26814
26815         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26816         * modules/rmdir-errno (Status, Notice): Now obsolete.
26817
26818         rmdir: work around cygwin 1.5.x and mingw bugs
26819         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26820         * lib/rmdir.c (rmdir): Work around it.
26821         * modules/rmdir (Status, Notice): No longer obsolete.
26822         (Files): Add dos.m4.
26823         (Depends-on): Add unistd.
26824         (configure.ac): Set witnesses.
26825         (License): Relax to LGPLv2+.
26826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26827         * modules/unistd (Makefile.am): Substitute witnesses.
26828         * lib/unistd.in.h (rmdir): Declare replacement.
26829         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26830         * modules/rmdir-tests: New tests.
26831         * tests/test-rmdir.c: Likewise.
26832
26833 2009-09-15  Eric Blake  <ebb9@byu.net>
26834
26835         fchdir: improve use of replacement functions
26836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26838         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26839         REPLACE_CLOSEDIR.
26840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26841         * modules/sys_stat (Makefile.am): Substitute correct witness.
26842         * modules/dirent (Makefile.am): Likewise.
26843         * modules/unistd (Makefile.am): Likewise.
26844         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26845         * lib/unistd.in.h (dup): Likewise.
26846         * lib/sys_stat.in.h (fstat): Likewise.
26847
26848         maint: ignore gnulib-tool temp files
26849         * .gitignore: Ignore files created during gnulib-tool --test.
26850
26851 2009-09-13  Jim Meyering  <meyering@redhat.com>
26852
26853         posixtm: don't reject a time that specify "60" as the number of seconds
26854         * lib/posixtm.c (posixtime): The code to reject invalid dates
26855         would also reject a time specified with the .60 suffix.
26856         But POSIX allows that, in order to accommodate leap seconds.
26857         So don't reject it.
26858         (main): Adjust tests accordingly.
26859         * modules/posixtm (Depends-on): Add stpcpy.
26860
26861 2009-09-11  Jim Meyering  <meyering@redhat.com>
26862
26863         announce-gen: include [$release_type] in emitted Subject:
26864         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26865         e.g., [stable] in the emitted Subject: line.
26866
26867 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26868
26869         Remove obsolete macros from several modules.
26870         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26871         obsolete Autoconf macros with their modern counterparts.
26872         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26873         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26874         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26875         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26877         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26879         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26880         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26881         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26882         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26883         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26884         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26885         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26886         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26887         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26888         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26889         * m4/time_r.m4 (gl_TIME_R): Likewise.
26890         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26891         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26892         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26893
26894         Fix copyright header in build-aux scripts.
26895         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26896         recommendation.
26897         * build-aux/ncftpput-ftp: Likewise.
26898         * build-aux/update-copyright: Likewise.
26899
26900 2009-09-09  Eric Blake  <ebb9@byu.net>
26901
26902         test-link: allow Linux choice of errno
26903         * tests/test-link.c (main): Relax test for alternate error.
26904
26905         strndup: fix improper m4 caching
26906         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26907         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26908         (gl_PREREQ_STRNDUP): Delete.
26909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26910         * modules/string (Makefile.am): Substitute it.
26911         * lib/string.in.h (strndup): Modernize prototype.
26912
26913         getcwd: port to mingw
26914         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26915         different from the POSIX assumptions made throughout the getcwd
26916         module; fortunately, the mingw getcwd does not need replacement.
26917         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26918         * modules/getcwd-tests: New test.
26919         * tests/test-getcwd.c: Likewise.
26920
26921         link: fix platform bugs
26922         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26923         * lib/link.c (link): Work around them.  Fix related mingw bug.
26924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26925         * modules/unistd (Makefile.am): Substitute it.
26926         * lib/unistd.in.h (link): Declare replacement.
26927         * doc/posix-functions/link.texi (link): Document this.
26928         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26929
26930         test-link: consolidate into single C program, test more cases
26931         * tests/test-link.sh: Delete.
26932         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26933         at least Cygwin and Solaris.
26934         * modules/link-tests (Files): Remove unused file.
26935         (Depends-on): Add errno, sys_stat.
26936         (Makefile.am): Simplify.
26937
26938 2009-09-08  Bruno Haible  <bruno@clisp.org>
26939
26940         Work around towlower, towupper bug on mingw.
26941         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26942         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26943         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26944         * doc/posix-functions/towupper.texi: Likewise.
26945         Reported by Eric Blake.
26946
26947 2009-09-08  Jim Meyering  <meyering@redhat.com>
26948
26949         build: don't try to run autoheader if we don't use it
26950         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26951         is not used in configure.ac.
26952
26953 2009-09-08  Eric Blake  <ebb9@byu.net>
26954
26955         euidaccess: fix compilation error
26956         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26957
26958         rawmemchr: relax license
26959         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26960         okay.
26961         Reported by Jim Meyering.
26962
26963         mkfifoat: new module
26964         * modules/mkfifoat: New file.
26965         * lib/mkfifoat.c: Likewise.
26966         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26967         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26968         * modules/sys_stat (Makefile.am): Use them.
26969         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26970         * MODULES.html.sh (File system functions): Mention module.
26971         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26972         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26973         * modules/mkfifoat-tests: New test.
26974         * tests/test-mkfifoat.c: Likewise.
26975
26976         strchrnul: relax license
26977         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26978         okay.
26979         Reported by Jim Meyering.
26980
26981 2009-09-08  Eric Blake  <ebb9@byu.net>
26982
26983         fstatat: fix compilation on Solaris
26984         * lib/fstatat.c (includes): Add fcntl.h.
26985         Reported by Pádraig Brady.
26986
26987 2009-09-07  Eric Blake  <ebb9@byu.net>
26988
26989         rename: modernize replacement
26990         * modules/rename (Depends-on): Add stdio.
26991         (configure.ac): Declare witness.
26992         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26993         stdio take care of replacement.
26994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26995         * modules/stdio (Makefile.am): Substitute them.
26996         * lib/stdio.in.h (rename): Declare replacement.
26997         * lib/rename.c (includes): Allow cross-compilation to non-windows
26998         machines.
26999         * doc/posix-functions/rename.texi (rename): Improve
27000         documentation.
27001
27002         stdio: sort witness names
27003         * modules/stdio (Makefile.am): Sort replacements.
27004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27005         * lib/stdio.in.h: Likewise.
27006
27007         getcwd: minor cleanups
27008         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27009         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27010
27011         openat: provide more convenience names
27012         * modules/faccessat (configure.ac): Add C witness.
27013         * lib/unistd.in.h (readlinkat): Fix typo.
27014         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27015         convenience wrappers.
27016         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27017         wrappers in syntax checks.
27018
27019 2009-09-06  Eric Blake  <ebb9@byu.net>
27020
27021         doc: fix comments in recent patches
27022         * lib/faccessat.c: Mention correct function.
27023         * lib/fchmodat.c: Likewise.
27024         * lib/fchownat.c: Likewise.
27025         * lib/symlinkat.c: Likewise.
27026         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27027         constants.
27028
27029         faccessat, symlinkat: continue cleanup of previous patch
27030         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27031         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27032         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27034         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27035         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27036         set.
27037
27038 2009-09-06  Bruno Haible  <bruno@clisp.org>
27039
27040         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27041         (fstatat): Declare if GNULIB_FSTATAT is set.
27042         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27043         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27044         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27045         * modules/fcntl-h (Files): Remove m4/openat.m4.
27046         * modules/sys_stat (Files): Remove m4/openat.m4.
27047         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27048         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27049         * modules/unistd (Files): Remove m4/openat.m4.
27050         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27051         GNULIB_OPENAT.
27052         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27053         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27055         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27056         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27057         gl_OPENAT_DEFAULTS.
27058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27059         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27060         Don't require gl_OPENAT_DEFAULTS.
27061         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27062         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27063         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27064         (gl_OPENAT_DEFAULTS): Remove macro.
27065
27066 2009-09-06  Bruno Haible  <bruno@clisp.org>
27067
27068         * modules/openat (configure.ac): Remove unneeded witness.
27069
27070 2009-09-06  Bruno Haible  <bruno@clisp.org>
27071
27072         Set errno to ENOSYS when a function is entirely unsupported.
27073         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27074         EOPNOTSUPP.
27075         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27076         * modules/chown (Depends-on): Remove errno.
27077
27078 2009-09-06  Bruno Haible  <bruno@clisp.org>
27079
27080         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27081
27082 2009-09-06  Bruno Haible  <bruno@clisp.org>
27083
27084         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27085
27086 2009-09-06  Ben Pfaff  <blp@gnu.org>
27087             Bruno Haible  <bruno@clisp.org>
27088
27089         Work around a glibc bug in strtok_r.
27090         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27091         Undefine if UNDEFINE_STRTOK_R is set.
27092         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27094         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27095         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27096         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27097         UNDEFINE_STRTOK_R.
27098         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27099
27100 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27101
27102         exclude: minor fix
27103         * lib/exclude.c: Include wctype.h
27104
27105 2009-09-06  Akim Demaille  <demaille@gostai.com>
27106
27107         bootstrap: improve error message
27108         * build-aux/bootstrap (find_tool): Upon failure, report the list
27109         of candidates.
27110         Honor the initial value of the envvar.
27111
27112 2009-09-05  Eric Blake  <ebb9@byu.net>
27113
27114         symlinkat: new module
27115         * modules/symlinkat: New file.
27116         * lib/symlinkat.c: Likewise.
27117         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27119         * modules/unistd (Makefile.am): Use them.
27120         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27121         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27122         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27123         * MODULES.html.sh (File system functions): Mention module.
27124         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27125         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27126         * modules/symlinkat-tests: New test.
27127         * tests/test-symlinkat.c: Likewise.
27128
27129         test-openat-safer: add more checks
27130         * tests/test-openat-safer.c (main): Check more code paths.
27131
27132 2009-09-05  Jim Meyering  <meyering@redhat.com>
27133
27134         syntax-check: detect unnecessary inclusion of openat.h
27135         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27136
27137 2009-09-05  Bruno Haible  <bruno@clisp.org>
27138
27139         Support towlower, towupper.
27140         * doc/posix-functions/towlower.texi: Mention module wctype.
27141         * doc/posix-functions/towupper.texi: Likewise.
27142         * lib/wctype.in.h (towlower, towupper): New functions.
27143         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27144         (ASSERT): New macro.
27145         (e): New variable.
27146         (main): Test also towlower, towupper. Test WEOF argument.
27147         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27148
27149 2009-09-05  Bruno Haible  <bruno@clisp.org>
27150
27151         Fix conversion behaviour when the input is invalid.
27152         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27153         mark occurring in first pass of indirect conversion.
27154         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27155         input.
27156         Found by clang's static analyzer.
27157
27158 2009-09-05  Bruno Haible  <bruno@clisp.org>
27159
27160         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27161         where direct conversion is possible.
27162
27163 2009-09-04  Eric Blake  <ebb9@byu.net>
27164
27165         openat: fail with ENOENT on empty name
27166         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27167         buffer.
27168
27169         link-follow: fix logic bug in prior patch
27170         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27171         reversed sense of yes and no in prior patch.  Avoid confusing
27172         compilation failure with desired semantics.
27173
27174         link-follow: accomodate mingw and cross-compilation
27175         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27176         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27177         cross-compilation results to -1, to make linkat easier to
27178         implement when cross-compiling.  Trivially support mingw.
27179         * modules/link-follow (configure.ac): Call new name.
27180         * NEWS: Mention this.
27181
27182 2009-09-03  Eric Blake  <ebb9@byu.net>
27183
27184         faccessat: compile replacement
27185         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27186         needed.
27187
27188         fts: fix compilation error
27189         * lib/fts.c (includes): Re-add "openat.h", for
27190         openat_needs_fchdir.
27191
27192         faccessat: new module
27193         * modules/faccessat: New file.
27194         * lib/faccessat.c: Likewise.
27195         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27197         * modules/unistd (Makefile.am): Use it.
27198         * lib/unistd.in.h (faccessat): Declare it.
27199         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27200         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27201         * MODULES.html.sh (File system functions): Mention it.
27202         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27203         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27204
27205         euidaccess: prefer POSIX over non-standard implementation
27206         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27207         * lib/euidaccess.c (euidaccess): Use it if available.
27208
27209         openat: make template easier to use
27210         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27211         AT_FUNC_F2 to be undefined.
27212         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27213         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27214         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27215         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27216         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27217         Likewise.
27218         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27219         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27220         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27221         Likewise.
27222
27223         openat: declare in POSIX headers
27224         * NEWS: Mention this.
27225         * modules/openat (configure.ac): Declare witnesses.
27226         (Depends-on): Add fcntl-h, sys_stat, unistd.
27227         (Include): Mention correct headers.
27228         * modules/fcntl-h (Depends-on): Add link-warning.
27229         (Files): Add openat.m4.
27230         (Makefile.am): Substitute witnesses.
27231         * modules/sys_stat (Files, Makefile.am): Likewise.
27232         * modules/unistd (Files, Makefile.am): Likewise.
27233         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27234         (gl_OPENAT_DEFAULTS): New macro.
27235         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27237         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27238         (SYS_STAT_H): Remove unused variable.
27239         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27240         * lib/fcntl--.h (includes): Remove unneeded header.
27241         * lib/openat-safer.c (includes): Likewise.
27242         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27243         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27244         appropriate headers.
27245         (__OPENAT_PREFIX): Delete.
27246         * lib/fcntl.in.h (openat): Provide declaration.
27247         (AT_FDCWD): Fix Solaris bug.
27248         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27249         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27250         * lib/fchmodat.c (includes):  Adjust to find declaration.
27251         * lib/fchownat.c (includes): Likewise.
27252         * lib/mkdirat.c (includes): Likewise.
27253         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27254         still visible.
27255
27256 2009-09-02  Eric Blake  <ebb9@byu.net>
27257
27258         errno: use consistently
27259         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27260         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27261         * lib/canonicalize.c (ELOOP): Likewise.
27262         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27263         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27264         * lib/lchown.c (EOPNOTSUPP): Likewise.
27265         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27266         * lib/savewd.c (ESTALE): Likewise.
27267         * lib/settime.c (ENOSYS): Likewise.
27268         * lib/utimens.c (ENOSYS): Likewise.
27269         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27270         * lib/chdir-safer.c (ELOOP): Likewise.
27271         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27272         * modules/c-stack (Depends-on): Add errno.
27273         * modules/canonicalize (Depends-on): Likewise.
27274         * modules/chdir-safer (Depends-on): Likewise.
27275         * modules/fdopendir (Depends-on): Likewise.
27276         * modules/inet_ntop (Depends-on): Likewise.
27277         * modules/inet_pton (Depends-on): Likewise.
27278         * modules/lchown (Depends-on): Likewise.
27279         * modules/openat (Depends-on): Likewise.
27280         * modules/savewd (Depends-on): Likewise.
27281         * modules/settime (Depends-on): Likewise.
27282         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27283
27284         fts: avoid leaking fds
27285         * modules/fts (Depends-on): Add cloexec.
27286         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27287         flag.
27288
27289         fts: make directory fds more robust
27290         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27291         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27292
27293         backupfile, chdir-long, fts, savedir: make safer
27294         * lib/backupfile.c (includes): Use "dirent--.h", since
27295         numbered_backup can write to stderr during readdir.
27296         * lib/savedir.c (includes): Likewise.
27297         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27298         emulation can write to stderr on failure.
27299         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27300         * lib/getcwd.c: Document why opendir_safer is unused.
27301         * lib/glob.c: Likewise.
27302         * lib/scandir.c: Likewise.
27303         * lib/openat-proc.c: Likewise, for open_safer.
27304         * modules/backupfile (Depends-on): Add dirent-safer.
27305         * modules/savedir (Depends-on): Likewise.
27306         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27307         * modules/chdir-long (Depends-on): Add openat-safer.
27308
27309         openat-safer: new module
27310         * modules/openat-safer: New file.
27311         * lib/openat-safer.c: Likewise.
27312         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27313         * lib/fcntl-safer.h (openat_safer): Declare.
27314         * lib/fcntl--.h (openat): Override.
27315         * MODULES.html.sh (File descriptor based I/O): Mention it.
27316         * lib/openat.h: Add double-inclusion guards.
27317         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27318         "fcntl--.h", so we can implement openat.
27319         * modules/openat-safer-tests: New test.
27320         * tests/test-openat-safer.c: New file.
27321
27322         dirent-safer: new module
27323         * modules/dirent-safer: New file.
27324         * lib/dirent--.h: Likewise.
27325         * lib/dirent-safer.h: Likewise.
27326         * lib/opendir-safer.c: Likewise.
27327         * m4/dirent-safer.m4: Likewise.
27328         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27329         * modules/dirent-safer-tests: New test.
27330         * tests/test-dirent-safer.c: New file.
27331         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27332
27333         fdopendir: optimize on mingw
27334         * lib/unistd.in.h (_gl_directory_name): New prototype.
27335         * lib/fchdir.c (_gl_directory_name): Implement it.
27336         (fchdir): Use it to simplify implementation.
27337         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27338         fchdir, when available, to avoid calling [f]chdir().
27339
27340         fdopendir: split into its own module
27341         * lib/openat.c (fdopendir): Move...
27342         * lib/fdopendir.c: ...into new file.
27343         * modules/fdopendir: New module.
27344         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27345         * modules/openat (Depends-on): Add fdopendir.
27346         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27347         fdopendir here.
27348         * modules/savedir (Depends-on): Only need fdopendir, not full
27349         openat.
27350         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27351         * lib/openat.h (fdopendir): Drop prototype.
27352         * lib/dirent.in.h (fdopendir): Provide prototype.
27353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27354         * modules/dirent (Makefile.am): Substitute them.
27355         * MODULES.html.sh (File system functions): Mention it.
27356         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27357         * modules/fdopendir-tests: New file.
27358         * tests/test-fdopendir.c: Likewise.
27359
27360         fchdir: use more consistent macro convention
27361         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27362         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27363         REPLACE_FCHDIR, rather than relying on config.h macros.
27364         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27365         inside a single make-time REPLACE_FCHDIR block, rather than using
27366         the config.h FCHDIR_REPLACEMENT.
27367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27368         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27369         Manage fstat replacement.
27370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27371         REPLACE_FCHDIR.
27372         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27373         (Makefile.am): Substitute REPLACE_FCHDIR.
27374         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27375         FCHDIR_REPLACEMENT.
27376         * lib/dup-safer.c (dup_safer): Likewise.
27377         * lib/dup2.c (rpl_dup2): Likewise.
27378         * lib/dup3.c (rpl_dup3): Likewise.
27379         * lib/open.c (rpl_open): Likewise.
27380
27381         fchdir: simplify error handling, and support dup3
27382         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27383         stdbool, malloc-posix, realloc-posix.
27384         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27385         (ensure_dirs_slot): Return false on allocation failure.
27386         (rpl_dup2): Delete.
27387         (_gl_register_dup): New function.
27388         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27389         (_gl_register_fd): Close fd on allocation failure.
27390         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27391         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27392         prototype.
27393         (rpl_dup2_fchdir): Delete prototype.
27394         * lib/open.c (open): Update caller.
27395         * lib/dup2.c (dup2): Track fchdir metadata.
27396         * lib/dup3.c (dup3): Likewise.
27397         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27399
27400 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27401
27402         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27403         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27404         don't pass arguments to AC_OUTPUT.
27405
27406 2009-09-02  Bruno Haible  <bruno@clisp.org>
27407
27408         * modules/mkdtemp (License): Relicense under LGPLv2+.
27409         Reported by Paolo Bonzini.
27410
27411 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27412
27413         Replace uses of obsolete autoconf macros in Jim's modules.
27414         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27415         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27416         can evoke a warning from autoconf when run with -Wobsolete
27417         enabled.  They were declared obsolete for good reasons (see
27418         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27419         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27420         should not continue using the deprecated macros.
27421         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27422         obsolete Autoconf macros with modern counterparts.
27423         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27424         * m4/dos.m4 (gl_AC_DOS): Likewise.
27425         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27427         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27428         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27429         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27430         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27431         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27432         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27433         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27434         Likewise.
27435         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27436         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27437         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27438         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27439         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27440         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27441
27442 2009-09-01  Eric Blake  <ebb9@byu.net>
27443
27444         fchdir: fix off-by-one bug in previous patch
27445         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27446         (_gl_unregister_fd): Delete useless if.
27447
27448 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27449
27450         maint.mk: sort the list of syntax-check rules
27451         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27452         easier to get a sense of progress when the rules are run sequentially
27453         and take a long time.
27454
27455 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27456
27457         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27458         * modules/netinet_in: Likewise.
27459         * modules/sys_file: Likewise.
27460         * modules/sys_ioctl: Likewise.
27461         * modules/sys_select: Likewise.
27462         * modules/sys_socket: Likewise.
27463         * modules/sys_stat: Likewise.
27464         * modules/sys_time: Likewise.
27465         * modules/sys_times: Likewise.
27466         * modules/sys_utsname: Likewise.
27467         * modules/sys_wait: Likewise.
27468
27469 2009-09-01  Jim Meyering  <meyering@redhat.com>
27470
27471         fts: help ensure that return values are not ignored
27472         * lib/fts_.h (__GNUC_PREREQ): Define.
27473         (__attribute_warn_unused_result__): Define.
27474         (fts_children, fts_close, fts_open, fts_read): Declare with
27475         __attribute_warn_unused_result__.
27476
27477         fts: fts_close now fails also when closing a dir file descriptor fails
27478         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27479         and propagate to caller, along with errno.
27480
27481         announce-gen: correct formatting in --help output
27482         * build-aux/announce-gen (usage): Move the one-line description in
27483         --help output "up", to where it belongs, just after Usage:.
27484
27485 2009-08-31  Eric Blake  <ebb9@byu.net>
27486
27487         fchdir: port to mingw
27488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27489         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27490         opened, then use a substitute.
27491         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27492         replacement.
27493         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27494         (_gl_register_fd): No need to check stat if open already filters
27495         all directories.
27496         (fchdir): Fix error condition to match POSIX.
27497         * modules/fchdir (Depends-on): Add sys_stat.
27498         * doc/posix-functions/open.texi (open): Document the limitation.
27499         * modules/fchdir-tests: New file.
27500         * tests/test-fchdir.c: Likewise.
27501
27502         canonicalize: allow cross-testing from cygwin to mingw
27503         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27504         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27505         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27506         Likewise.
27507         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27508         target does not support symlinks.
27509         * tests/test-canonicalize-lgpl.sh: Likewise.
27510
27511         chown: avoid compilation warning on mingw
27512         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27513         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27514         mingw.
27515         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27516         * modules/chown (Depends-on): Add errno.
27517
27518 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27519
27520         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27521         command.
27522
27523 2009-08-31  Jim Meyering  <meyering@redhat.com>
27524
27525         canonicalize: remove useless initialization
27526         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27527         initialization of local, "end".
27528
27529 2009-08-30  Bruno Haible  <bruno@clisp.org>
27530
27531         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27532         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27533         ENOSYS.
27534
27535 2009-08-30  Bruno Haible  <bruno@clisp.org>
27536
27537         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27538         /usr/xpg4/bin/tr when it exists.
27539         * tests/test-pipe-filter-gi1.sh: Likewise.
27540
27541 2009-08-30  Bruno Haible  <bruno@clisp.org>
27542
27543         Work around deficient /usr/bin/id program on Solaris.
27544         * tests/test-file-has-acl.sh (ID): New variable.
27545         * tests/test-set-mode-acl.sh (ID): Likewise.
27546         * tests/test-copy-acl.sh (ID): Likewise.
27547         * tests/test-copy-file.sh (ID): Likewise.
27548
27549 2009-08-30  Bruno Haible  <bruno@clisp.org>
27550
27551         New module 'xstriconveh'.
27552         * lib/xstriconveh.h: New file.
27553         * lib/xstriconveh.c: New file.
27554         * modules/xstriconveh: New file.
27555
27556 2009-08-30  Bruno Haible  <bruno@clisp.org>
27557
27558         Make it easier to use mem_cd_iconveh.
27559         * lib/striconveh.h (iconveh_t): New type.
27560         (iconveh_open, iconveh_close): New declarations.
27561         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27562         with a single 'const iconveh_t *' argument.
27563         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27564         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27565         with a single 'const iconveh_t *' argument.
27566         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27567         * tests/test-striconveh.c (main): Update.
27568         * NEWS: Mention the change.
27569
27570 2009-08-30  Bruno Haible  <bruno@clisp.org>
27571
27572         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27573         problem.
27574
27575 2009-08-30  Bruno Haible  <bruno@clisp.org>
27576
27577         Work around iconv_open problem on Solaris.
27578         * lib/iconv_open-solaris.gperf: New file.
27579         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27580         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27581         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27582         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27583         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27584         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27585
27586 2009-08-29  Jim Meyering  <meyering@redhat.com>
27587
27588         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27589         * top/maint.mk (cvs-check): Remove target; it was just an alias
27590         to the better-named vc-diff-check.
27591         (maintainer-distcheck): Remove rule.  It was used only from
27592         the (alpha/beta/major) target, and all of its commands but one
27593         were coreutils-specific.
27594         (vc-dist): Remove rule.
27595         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27596         Run vc-diff-check, not vc-dist.
27597         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27598
27599 2009-08-27  Bruno Haible  <bruno@clisp.org>
27600
27601         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27602         of 0.
27603
27604 2009-08-27  Bruno Haible  <bruno@clisp.org>
27605
27606         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27607         compilers.
27608         * doc/func.texi: Document the SunPRO C bug.
27609
27610 2009-08-27  Bruno Haible  <bruno@clisp.org>
27611
27612         Fix link error on Solaris.
27613         * tests/test-parse-duration.c (xstrdup): Remove function.
27614
27615 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27616
27617         ignore-value: handle pointer types, too
27618         * lib/ignore-value.h (__attribute__): Remove definition.
27619         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27620         of a more concise and more-often effective "(void) i" statement.
27621         (ignore_ptr): New function to suppress warnings from functions that
27622         return pointers, and to make it explicit that one function doesn't
27623         handle all cases.
27624
27625 2009-08-25  Bruno Haible  <bruno@clisp.org>
27626
27627         dup2: work around a Linux bug.
27628         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27629         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27630         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27631         Reported by Simon Josefsson.
27632
27633 2009-08-25  Jim Meyering  <meyering@redhat.com>
27634
27635         libguestfs uses gnulib
27636         * users.txt: Add libguestfs.
27637
27638 2009-08-24  Eric Blake  <ebb9@byu.net>
27639
27640         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27641         * lib/pipe2.c (includes): Add binary-io.h.
27642         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27643
27644 2009-08-24  Bruno Haible  <bruno@clisp.org>
27645
27646         Tolerate declared but missing accept4 syscall.
27647         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27648         available.
27649         * lib/sys_socket.in.h (accept4): If the function is already present,
27650         override it.
27651         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27652         * modules/accept4 (Makefile.am): Compile accept4.c always.
27653         Reported by Paolo Bonzini and Eric Blake.
27654
27655 2009-08-23  Bruno Haible  <bruno@clisp.org>
27656
27657         New module 'accept4'.
27658         * lib/sys_socket.in.h (accept4): New declaration.
27659         * lib/accept4.c: New file.
27660         * m4/accept4.m4: New file.
27661         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27662         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27663         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27664         HAVE_ACCEPT4.
27665         * modules/accept4: New file.
27666         * doc/glibc-functions/accept4.texi: Mention the new module.
27667
27668 2009-08-24  Jim Meyering  <meyering@redhat.com>
27669
27670         progname: also set global program_invocation_name, when possible
27671         Before this change, a libtool-enabled program that calls glibc's
27672         error function would report the program name as
27673         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27674         * modules/progname (configure.ac): Check for a declaration of
27675         program_invocation_name.
27676         * lib/progname.c:  Include <errno.h>.
27677         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27678         Set program_invocation_name.
27679
27680 2009-08-23  Bruno Haible  <bruno@clisp.org>
27681
27682         * lib/dup3.c: Include <string.h>.
27683
27684 2009-08-23  Bruno Haible  <bruno@clisp.org>
27685
27686         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27687         * lib/pipe2.c (pipe2): Likewise.
27688         Suggested by Eric Blake.
27689
27690 2009-08-23  Bruno Haible  <bruno@clisp.org>
27691
27692         Tolerate declared but missing dup3 syscall.
27693         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27694         * lib/unistd.in.h (dup3): If the function is already present,
27695         override it.
27696         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27697         * modules/dup3 (Makefile.am): Compile dup3.c always.
27698         Reported by Paolo Bonzini.
27699
27700 2009-08-23  Bruno Haible  <bruno@clisp.org>
27701
27702         Tolerate declared but missing pipe2 syscall.
27703         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27704         available.
27705         * lib/unistd.in.h (pipe2): If the function is already present,
27706         override it.
27707         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27708         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27709         Reported by Paolo Bonzini.
27710
27711 2009-08-23  Bruno Haible  <bruno@clisp.org>
27712
27713         * lib/pipe2.c (pipe2): Move #ifs inside function.
27714
27715 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27716
27717         quotearg: document limitations of quote_these_too
27718         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27719         those limitations are created.
27720         * lib/quotearg.h (set_char_quoting): Document that digits and
27721         letters that are special after backslash are not permitted.
27722         (quotearg_char): Cross-reference set_char_quoting documentation.
27723
27724 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27725
27726         quotearg: implement custom_quoting_style
27727         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27728         right_quote fields.
27729         (set_custom_quoting): New public function.
27730         (quotearg_buffer_restyled): Add left_quote and right_quote
27731         arguments, handle them very much like locale quoting, and update
27732         all uses.
27733         (quotearg_n_custom): New public function.
27734         (quotearg_n_custom_mem): New public function.
27735         (quotearg_custom): New public function.
27736         (quotearg_custom_mem): New public function.
27737         * lib/quotearg.h: Prototype and document new public functions.
27738         (enum quoting_style): For escape_quoting_style and
27739         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27740         ignored even though they're otherwise like c_quoting_style.
27741         Add custom_quoting_style member and document with comparison to
27742         clocale_quoting_style.
27743         * tests/test-quotearg.c (custom_quotes): New array.
27744         (custom_results): New array.
27745         (main): Extend to test custom quoting.
27746
27747 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27748
27749         quotearg: fix right quote escaping when it's in quote_these_too
27750         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27751         quote, be sure to prepend only one backslash.
27752         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27753         (main): Test it.
27754
27755 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27756
27757         quotearg-tests: test escaping of embedded locale quotes
27758         * tests/test-quotearg.c (struct result_strings): Add member for
27759         new input.
27760         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27761         (inputs): Add new input.
27762         (results_g): Add expected results.
27763         (flag_results): Likewise.
27764         (locale_results): Likewise.
27765         (compare_strings): Check those.
27766
27767 2009-08-23  Bruno Haible  <bruno@clisp.org>
27768
27769         Tests for module 'dup3'.
27770         * modules/dup3-tests: New file.
27771         * tests/test-dup3.c: New file.
27772
27773         New module 'dup3'.
27774         * lib/unistd.in.h (dup3): New declaration.
27775         * lib/dup3.c: New file.
27776         * m4/dup3.m4: New file.
27777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27778         HAVE_DUP3.
27779         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27780         * modules/dup3: New file.
27781         * doc/glibc-functions/dup3.texi: Mention the new module.
27782
27783 2009-08-23  Bruno Haible  <bruno@clisp.org>
27784
27785         Tweak the dup2 test.
27786         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27787         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27788         the test file is still empty. Fix argument order of lseek.
27789
27790 2009-08-23  Bruno Haible  <bruno@clisp.org>
27791
27792         Avoid test link errors when the modules getopt-gnu, gettext are used.
27793         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27795
27796 2009-08-23  Bruno Haible  <bruno@clisp.org>
27797
27798         Fix getdtablesize() on mingw.
27799         * lib/getdtablesize.c (getdtablesize): Implement differently.
27800         * lib/unistd.in.h (getdtablesize): Improve comment.
27801
27802 2009-08-23  Bruno Haible  <bruno@clisp.org>
27803
27804         New module 'mkostemp'.
27805         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27806         * lib/stdlib.in.h (mksotemp): New declaration.
27807         * lib/mkostemp.c: New file, from glibc with modifications.
27808         * lib/tempname.h (GT_FILE): Remove outdated comment.
27809         (gen_tempname): Add flags argument.
27810         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27811         (__GT_FILE): Map to 1.
27812         (small_open, large_open): Remove macros.
27813         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27814         * lib/mkstemp.c (mkstemp): Update.
27815         * lib/mkdtemp.c (mkdtemp): Likewise.
27816         * m4/mkostemp.m4: New file.
27817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27818         HAVE_MKOSTEMP.
27819         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27820         HAVE_MKOSTEMP.
27821         * modules/mkostemp: New file, based on modules/mkstemp.
27822         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27823         * NEWS: Mention the change.
27824
27825 2009-08-23  Bruno Haible  <bruno@clisp.org>
27826
27827         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27828         Reported by Eric Blake.
27829
27830 2009-08-23  Bruno Haible  <bruno@clisp.org>
27831
27832         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27833         Reported by Eric Blake.
27834
27835 2009-08-23  Bruno Haible  <bruno@clisp.org>
27836
27837         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27838         * modules/pipe2 (Depends-on): Likewise.
27839
27840 2009-08-23  Eric Blake  <ebb9@byu.net>
27841
27842         fcntl-h: add O_TTY_INIT support
27843         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27844         * tests/test-fcntl-h.c (o): Test it.
27845         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27846
27847         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27848         * modules/fcntl: Move <fcntl.h> header replacement...
27849         * modules/fcntl-h: ...to new name, so as not to collide with
27850         like-named function.
27851         * tests/test-fcntl.c: Rename...
27852         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27853         * modules/fcntl-tests: Rename...
27854         * modules/fcntl-h-tests: ...to this.  Update test file name.
27855         * modules/chdir-long (Depends-on): Update clients.
27856         * modules/chdir-safer (Depends-on): Likewise.
27857         * modules/fcntl-safer (Depends-on): Likewise.
27858         * modules/fts (Depends-on): Likewise.
27859         * modules/mkancesdirs (Depends-on): Likewise.
27860         * modules/mkdir-p (Depends-on): Likewise.
27861         * modules/open (Depends-on): Likewise.
27862         * modules/savewd (Depends-on): Likewise.
27863         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27864         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27865
27866 2009-08-22  Bruno Haible  <bruno@clisp.org>
27867
27868         * modules/binary-io (License): Relicense under LGPL.
27869         * modules/pipe2 (License): Likewise.
27870
27871 2009-08-22  Bruno Haible  <bruno@clisp.org>
27872
27873         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27874         return value.
27875         * lib/pipe-filter-gi.c (filter_init): Likewise.
27876         Reported by Eric Blake.
27877
27878 2009-08-22  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27881         * modules/pipe (Depends-on): Add pipe2.
27882
27883 2009-08-22  Bruno Haible  <bruno@clisp.org>
27884
27885         Tests for module 'pipe2'.
27886         * modules/pipe2-tests: New file.
27887         * tests/test-pipe2.c: New file.
27888
27889         New module 'pipe2'.
27890         * lib/unistd.in.h (pipe2): New declaration.
27891         * lib/pipe2.c: New file.
27892         * m4/pipe2.m4: New file.
27893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27894         HAVE_PIPE2.
27895         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27896         * modules/pipe2: New file.
27897         * doc/glibc-functions/pipe2.texi: Mention the new module.
27898
27899 2009-08-22  Bruno Haible  <bruno@clisp.org>
27900
27901         Reference some new glibc functions.
27902         * doc/glibc-functions/accept4.texi: New file.
27903         * doc/glibc-functions/dup3.texi: New file.
27904         * doc/glibc-functions/mkostemp.texi: New file.
27905         * doc/glibc-functions/pipe2.texi: New file.
27906         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27907         (Glibc sys/socket.h): Refer to accept4.
27908         (Glibc unistd.h): Refer to dup3, pipe2.
27909         Reported by Eric Blake.
27910
27911 2009-08-22  Jim Meyering  <meyering@redhat.com>
27912             Bruno Haible  <bruno@clisp.org>
27913
27914         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27915         This makes it so packages using automake-1.11's silent-rules option
27916         can print e.g., a single "GEN    configmake.h" line, rather than
27917         the 30+ statements that perform the job.  If you want to see the
27918         actual commands, you can still run "make V=1".
27919         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27920         so that make output is abbreviated when those variables are defined
27921         appropriately.
27922         * modules/argz: Likewise.
27923         * modules/arpa_inet: Likewise.
27924         * modules/byteswap: Likewise.
27925         * modules/configmake: Likewise.
27926         * modules/dirent: Likewise.
27927         * modules/errno: Likewise.
27928         * modules/fcntl: Likewise.
27929         * modules/float: Likewise.
27930         * modules/fnmatch: Likewise.
27931         * modules/getopt-posix: Likewise.
27932         * modules/glob: Likewise.
27933         * modules/iconv_open: Likewise.
27934         * modules/inttypes: Likewise.
27935         * modules/localcharset: Likewise.
27936         * modules/locale: Likewise.
27937         * modules/math: Likewise.
27938         * modules/netdb: Likewise.
27939         * modules/netinet_in: Likewise.
27940         * modules/poll: Likewise.
27941         * modules/posix_spawnp-tests: Likewise.
27942         * modules/sched: Likewise.
27943         * modules/search: Likewise.
27944         * modules/selinux-h: Likewise.
27945         * modules/signal: Likewise.
27946         * modules/spawn: Likewise.
27947         * modules/stdarg: Likewise.
27948         * modules/stdbool: Likewise.
27949         * modules/stddef: Likewise.
27950         * modules/stdint: Likewise.
27951         * modules/stdio: Likewise.
27952         * modules/stdlib: Likewise.
27953         * modules/string: Likewise.
27954         * modules/strings: Likewise.
27955         * modules/sys_file: Likewise.
27956         * modules/sys_ioctl: Likewise.
27957         * modules/sys_select: Likewise.
27958         * modules/sys_socket: Likewise.
27959         * modules/sys_stat: Likewise.
27960         * modules/sys_time: Likewise.
27961         * modules/sys_times: Likewise.
27962         * modules/sys_utsname: Likewise.
27963         * modules/sys_wait: Likewise.
27964         * modules/sysexits: Likewise.
27965         * modules/time: Likewise.
27966         * modules/unistd: Likewise.
27967         * modules/wchar: Likewise.
27968         * modules/wctype: Likewise.
27969
27970 2009-08-22  Jim Meyering  <meyering@redhat.com>
27971
27972         announce-gen: detect write failure
27973         * build-aux/announce-gen: Add Coda at end.
27974         Remove equivalent-but-more-verbose block at top.
27975
27976 2009-08-19  Akim Demaille  <demaille@gostai.com>
27977
27978         bootstrap: --help to stdout.
27979         * bootstrap (usage): Don't send --help to stderr.
27980         Use a here doc instead of a long string.
27981
27982 2009-08-21  Eric Blake  <ebb9@byu.net>
27983
27984         test-popen-safer: split from test-popen
27985         * tests/test-popen.c (main): Move...
27986         * tests/test-popen.h: ...into new file.
27987         * tests/test-popen-safer2.c: New file.
27988         * modules/popen-tests (Files): Add test-popen.h.
27989         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27990         Suggested by Bruno Haible.
27991
27992         test-fcntl-safer: split from test-open
27993         * tests/test-open.c (main): Move...
27994         * tests/test-open.h: ...into new file.
27995         * tests/test-fcntl-safer.c: New file.
27996         * modules/open-tests (Files): Add test-open.h.
27997         * modules/fcntl-safer-tests: New file.
27998         Suggested by Bruno Haible.
27999
28000         test-fopen-safer: split from test-fopen
28001         * tests/test-fopen.c (main): Move...
28002         * tests/test-fopen.h: ...into new file.
28003         * tests/test-fopen-safer.c: New file.
28004         * modules/fopen-tests (Files): Add test-fopen.h.
28005         * modules/fopen-safer-tests: New file.
28006         Suggested by Bruno Haible.
28007
28008 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28009
28010         popen-safer: test O_CLOEXEC at run-time.
28011         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28012
28013 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28014
28015         fcntl: move more flags to the header
28016         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28017         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28018         * lib/fcntl.in.h: Do both things here.
28019
28020 2009-08-21  Jim Meyering  <meyering@redhat.com>
28021
28022         consistently remove $@-t before redirecting to it
28023         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28024         * modules/alloca-opt: Likewise.
28025         * modules/byteswap: Likewise.
28026         * modules/fnmatch: Likewise.
28027         * modules/getopt-posix: Likewise.
28028         * modules/glob: Likewise.
28029         * modules/poll: Likewise.
28030         * modules/posix_spawnp-tests: Likewise.
28031         * modules/sys_socket: Likewise.
28032         * modules/sysexits: Likewise.
28033
28034 2009-08-21  Eric Blake  <ebb9@byu.net>
28035
28036         popen: simplify access to original popen
28037         * lib/popen.c (rpl_popen): No need to worry about popen being a
28038         macro.
28039         Reported by Bruno Haible.
28040
28041 2009-08-20  Eric Blake  <ebb9@byu.net>
28042
28043         build: avoid some compiler warnings
28044         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28045         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28046         type.
28047         (new_exclude_segment, excluded_file_pattern_p)
28048         (excluded_file_name_p): Reduce scope.
28049         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28050         old-style declaration.
28051
28052 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28053
28054         * tests/test-exclude1.sh: Handle Windows EOL.
28055         * tests/test-exclude2.sh: Likewise.
28056         * tests/test-exclude3.sh: Likewise.
28057         * tests/test-exclude4.sh: Likewise.
28058         * tests/test-exclude5.sh: Likewise.
28059         * tests/test-exclude6.sh: Likewise.
28060         * tests/test-exclude7.sh: Likewise.
28061
28062 2009-08-19  Akim Demaille  <demaille@gostai.com>
28063
28064         bootstrap: find sha1sum when named gsha1sum.
28065         * bootstrap (find_tool): New.
28066         ($SHA1SUM): New.
28067         Use it.
28068
28069 2009-08-20  Jim Meyering  <meyering@redhat.com>
28070
28071         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28072         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28073         expression that converts "." in a file name to "\." in the resulting
28074         regexp.  Start with a dummy statement, so that prior shell variable
28075         definitions are expanded portably.  Reported by Simon Josefsson.
28076
28077 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28078
28079         Fix polling for writeability of a screen buffer.
28080         * lib/poll.c: Distinguish input and screen buffers for the
28081         Win32 implementation.
28082         * lib/select.c: Likewise.
28083
28084 2009-08-19  Eric Blake  <ebb9@byu.net>
28085
28086         popen-safer: prevent popen from clobbering std descriptors
28087         * modules/popen-safer: New file.
28088         * lib/popen-safer.c: Likewise.
28089         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28090         * lib/stdio--.h (popen): Provide override.
28091         * lib/stdio-safer.h (popen_safer): Provide declaration.
28092         * tests/test-popen.c (includes): Partially test this.
28093         * modules/popen-safer-tests: New file, for more tests.
28094         * tests/test-popen-safer.c: Likewise.
28095         * MODULES.html.sh (file stream based Input/Output): Mention it.
28096
28097         tests: test some of the *-safer modules
28098         * modules/fopen-safer (Depends-on): Add fopen.
28099         * modules/fcntl-safer (Depends-on): Add fcntl.
28100         * modules/stdlib-safer (Depends-on): Add stdlib.
28101         (configure.ac): Set indicator.
28102         * modules/unistd-safer (configure.ac): Likewise.
28103         * modules/tmpfile-safer (configure.ac): Likewise.
28104         (Depends-on): Add tmpfile.
28105         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28106         active.
28107         * tests/test-fopen.c (includes): Test safer versions when they are
28108         in use.
28109         * tests/test-open.c (includes): Likewise.
28110
28111         popen: fix cygwin 1.5 bug when stdin closed
28112         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28113         * modules/popen: New file.
28114         * modules/popen-tests: Likewise.
28115         * tests/test-popen.c: Likewise.
28116         * m4/popen.m4: Likewise.
28117         * lib/popen.c: Likewise.
28118         * lib/stdio.in.h (popen): New declaration.
28119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28120         * modules/stdio (Makefile.am): Likewise.
28121         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28122
28123 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28124
28125         maint.mk: give full control over update-copyright exclusions
28126         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28127         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28128         (update-copyright): Don't force inclusion of top-level
28129         ChangeLog.  Don't force exclusion of all COPYING files, but make
28130         them the default exclusion instead.
28131
28132 2009-08-16  Bruno Haible  <bruno@clisp.org>
28133
28134         Fix test failures on Solaris 10.
28135         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28136         tests when Solaris iconv() is used.
28137         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28138         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28139         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28140         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28141         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28142
28143 2009-08-16  Bruno Haible  <bruno@clisp.org>
28144
28145         Fix test failures on Solaris 10.
28146         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28147         'tr' program and pass it as first argument.
28148         * tests/test-pipe-filter-gi1.sh: Likewise.
28149         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28150         program as first argument.
28151         * tests/test-pipe-filter-gi1.c (main): Likewise.
28152
28153 2009-08-16  Eric Blake  <ebb9@byu.net>
28154
28155         fpurge: fix previous commits
28156         * modules/fpurge (Makefile.am): Make replacement conditional,
28157         partially reverting 2007-04-29 change; missed in previous
28158         attempt.
28159         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28160         is missing.
28161
28162 2009-08-16  Bruno Haible  <bruno@clisp.org>
28163
28164         Clarify fpurge's effect on the file position.
28165         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28166         * tests/test-fpurge.c (main): Make a second pass for checking the file
28167         position.
28168
28169 2009-08-16  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28172         declaration of fpurge is missing.
28173         * tests/test-fpurge.c (main): Check that the file has not more contents
28174         than expected. Close the file before removing it.
28175
28176 2009-08-15  Eric Blake  <ebb9@byu.net>
28177
28178         fpurge: don't wrap working cygwin implementation
28179         * lib/fpurge.c (fpurge): Fix comment typo.
28180         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28181         1.7 to avoid replacement.
28182         * tests/test-fpurge.c (main): Enhance test.
28183
28184 2009-08-15  Eric Blake  <ebb9@byu.net>
28185         and Jim Meyering  <meyering@redhat.com>
28186
28187         test-update-copyright: skip if perl is insufficient
28188         * tests/test-update-copyright.sh: Failure to run maintainer tool
28189         should not cause testsuite failure on cygwin 1.5.
28190
28191 2009-08-14  Eric Blake  <ebb9@byu.net>
28192
28193         doc: mention more functions added in cygwin 1.7.0
28194         * doc/posix-headers/limits.texi (limits.h): Update for recent
28195         cygwin additions.
28196         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28197         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28198         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28199         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28200         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28201
28202 2009-08-14  Eric Blake  <ebb9@byu.net>
28203
28204         maint.mk: simplify update-copyright rule
28205         * top/maint.mk (update-copyright-local): Delete, and document how
28206         to do it in cfg.mk instead.
28207         (update-copyright-exclude-regexp): Delete, and document how to do
28208         it in .x-update-copyright instead.
28209         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28210         exclude ChangeLog.
28211
28212 2009-08-14  Bruno Haible  <bruno@clisp.org>
28213
28214         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28215
28216 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28217
28218         maint.mk: support update-copyright-env
28219         * top/maint.mk (update-copyright-env): Define place-holder.
28220         (update-copyright): Expand $(update-copyright-env) before
28221         invoking update-copyright.
28222
28223 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28224
28225         update-copyright: implement forced reformatting
28226         * build-aux/update-copyright: Implement and document
28227         UPDATE_COPYRIGHT_FORCE.
28228         * tests/test-update-copyright.sh: Test it.
28229
28230 2009-08-14  Eric Blake  <ebb9@byu.net>
28231         and Bruno Haible  <bruno@clisp.org>
28232
28233         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28234         * tests/test-locale.c: Revert previous patch related to NULL.
28235         * tests/test-stdio.c: Likewise.
28236         * tests/test-stdlib.c: Likewise.
28237         * tests/test-string.c: Likewise.
28238         * tests/test-unistd.c: Likewise.
28239         * modules/time-tests (Depends-on): Add verify.
28240         * modules/wchar-tests (Depends-on): Likewise.
28241         * tests/test-time.c: Test for NULL compliance.
28242         * tests/test-wchar.c: Likewise.
28243         * modules/locale (Depends-on): Add stddef.
28244         * modules/stdio (Depends-on): Likewise.
28245         * modules/stdlib (Depends-on): Likewise.
28246         * modules/string (Depends-on): Likewise.
28247         * modules/time (Depends-on): Likewise.
28248         * modules/unistd (Depends-on): Likewise.
28249         * modules/wchar (Depends-on): Likewise.
28250         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28251         * lib/stdlib.in.h (includes): Likewise.
28252         * lib/string.in.h (includes): Likewise.
28253         * lib/time.in.h (includes): Likewise.
28254         * lib/unistd.in.h (includes): Likewise.
28255         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28256         replaced.
28257         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28258         * m4/stddef_h.m4: New file.
28259         * modules/stddef: Likewise.
28260         * lib/stddef.in.h: Likewise.
28261         * modules/stddef-tests: Likewise.
28262         * tests/test-stddef.c: Likewise.
28263         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28264         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28265         * doc/posix-headers/locale.texi (locale.h): Likewise.
28266         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28267         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28268         * doc/posix-headers/string.texi (string.h): Likewise.
28269         * doc/posix-headers/time.texi (time.h): Likewise.
28270         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28271         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28272
28273 2009-08-14  Eric Blake  <ebb9@byu.net>
28274
28275         doc: improve git diff of texinfo files
28276         * .gitattributes: Add rule for *.texi files, with hint on how to
28277         use it.
28278         Copied from m4, and based on a report by Bruno Haible.
28279
28280 2009-08-14  Bruno Haible  <bruno@clisp.org>
28281
28282         Disable multithread support by default on Cygwin 1.5.x for real.
28283         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28284
28285 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28286
28287         update-copyright: much ado about intervals
28288         * build-aux/update-copyright: Implement and document
28289         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28290         of copyright year intervals.
28291         Also, document UPDATE_COPYRIGHT_YEAR.
28292         * tests/test-update-copyright.sh: Test it.
28293
28294         update-copyright: convert 2-digit to 4-digit years
28295         * build-aux/update-copyright: Implement and document.
28296         * tests/test-update-copyright.sh: Update.
28297
28298 2009-08-14  Jim Meyering  <meyering@redhat.com>
28299
28300         test-exclude: avoid coreutils "make check" failure
28301         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28302         just as in test-argmatch.c.
28303
28304 2009-08-13  Eric Blake  <ebb9@byu.net>
28305
28306         test-dup2: fix bad assumption
28307         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28308         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28309
28310         test-version-etc: fix CRLF portability issue
28311         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28312         recognize \r.
28313         * tests/test-argp-version-etc-1.sh: Likewise.
28314
28315         getopt: update client modules
28316         * modules/argp (Depends-on): Use getopt-gnu.
28317         * modules/git-merge-changelog (Depends-on): Likewise.
28318         * modules/long-options (Depends-on): Likewise.
28319         * modules/xstrtol (Depends-on): Likewise.
28320
28321 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28322
28323         * tests/test-version-etc.sh: Don't fail on different
28324         project/version.  Don't fail on CRLF differences.  Rewrite to use
28325         multiple -e instead of multiple sed forks, suggested by Eric Blake
28326         <ebb9@byu.net>.
28327         * tests/test-argp-version-etc-1.sh: Likewise.
28328
28329 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28330
28331         * tests/test-version-etc.sh: Don't fail on different
28332         project/version.
28333
28334 2009-08-12  Bruno Haible  <bruno@clisp.org>
28335
28336         Tests for modules 'getopt-posix', 'getopt-gnu'.
28337         * modules/getopt-posix-tests: New file.
28338         * tests/test-getopt.c: New file.
28339         * tests/test-getopt.h: New file.
28340         * tests/test-getopt_long.h: New file.
28341
28342         New modules 'getopt-posix', 'getopt-gnu'.
28343         * modules/getopt-gnu: New file, renamed from modules/getopt.
28344         * modules/getopt-posix: New file.
28345         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28346         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28347         (gl_GETOPT): Remove macro.
28348         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28349         Disable the test against BSD systems that declare optreset. Test
28350         against mingw bug. Test against lack of support of optional arguments
28351         on many platforms.
28352         * doc/glibc-headers/getopt.texi: Update module name and list of
28353         relevant platforms.
28354         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28355         'getopt-gnu' and more portability problems.
28356         * NEWS: Mention the changes.
28357
28358 2009-08-12  Bruno Haible  <bruno@clisp.org>
28359
28360         Ensure that optarg etc. get declared by <unistd.h>.
28361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28362         AC_USE_SYSTEM_EXTENSIONS.
28363         * modules/getopt (Depends-on): Add 'extensions'.
28364
28365 2009-08-12  Bruno Haible  <bruno@clisp.org>
28366
28367         Avoid test link errors.
28368         * modules/pipe-filter-ii-tests (Makefile.am): Define
28369         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28370         * modules/pipe-filter-gi-tests (Makefile.am): Define
28371         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28373
28374 2009-08-12  Bruno Haible  <bruno@clisp.org>
28375
28376         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28377         gl_GETOPT_SUBSTITUTE before.
28378         (gl_GETOPT): Use it.
28379         * m4/argp.m4 (gl_ARGP): Update.
28380         Reported by Sergey Poznyakoff.
28381
28382         * m4/getopt.m4: Reorder macros.
28383         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28384         (gl_GETOPT_SUBSTITUTE): Remove macro.
28385
28386 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28387
28388         Minor improvement in gitlog-to-changelog
28389
28390         * build-aux/gitlog-to-changelog: New option `--format' makes
28391         output format string configurable.
28392
28393 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28394
28395         Optimize exclude: use hash tables for non-wildcard patterns.
28396
28397         * lib/exclude.c: Include hash.h and mbuiter.h
28398         (struct exclude_pattern, exclude_segment): New data types.
28399         (struct exclude): Rewrite.
28400         (fnmatch_pattern_has_wildcards): New function.
28401         (new_exclude_segment, free_exclude_segment): New functions.
28402         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28403         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28404         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28405         * modules/exclude: Depend on hash and mbuiter.
28406
28407         * modules/exclude-tests: New file.
28408         * tests/test-exclude.c: New file.
28409         * tests/test-exclude1.sh: New file.
28410         * tests/test-exclude2.sh: New file.
28411         * tests/test-exclude3.sh: New file.
28412         * tests/test-exclude4.sh: New file.
28413         * tests/test-exclude5.sh: New file.
28414         * tests/test-exclude6.sh: New file.
28415         * tests/test-exclude7.sh: New file.
28416
28417 2009-08-12  Bruno Haible  <bruno@clisp.org>
28418
28419         Ensure that getopt() gets declared by <unistd.h>.
28420         * lib/unistd.in.h: Conditionally include getopt.h.
28421         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28422         Set GNULIB_UNISTD_H_GETOPT.
28423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28424         GNULIB_UNISTD_H_GETOPT.
28425         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28426
28427 2009-08-12  Bruno Haible  <bruno@clisp.org>
28428
28429         Clarify logic.
28430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28431         gl_replace_getopt instead of GETOPT_H.
28432
28433 2009-08-12  Bruno Haible  <bruno@clisp.org>
28434
28435         * m4/getopt.m4: Add comments.
28436
28437 2009-08-12  Bruno Haible  <bruno@clisp.org>
28438
28439         Disable multithread support by default on Cygwin 1.5.x.
28440         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28441         set gl_use_threads=no if not specified otherwise.
28442
28443 2009-08-11  Bruno Haible  <bruno@clisp.org>
28444
28445         Avoid compilation error on NetBSD 5.0.
28446         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28447         * tests/test-stdio.c: Likewise.
28448         * tests/test-stdlib.c: Likewise.
28449         * tests/test-string.c: Likewise.
28450         * tests/test-unistd.c: Likewise.
28451         Reported by Greg Troxel <gdt@ir.bbn.com>
28452         at <https://savannah.gnu.org/support/?106973>.
28453
28454 2009-08-11  Bruno Haible  <bruno@clisp.org>
28455
28456         * modules/dup2-tests (Depends-on): Remove close.
28457
28458         Undo 2009-07-19 commit.
28459         * modules/acl-tests (Depends-on): Remove close.
28460         * modules/binary-io-tests (Depends-on): Likewise.
28461         * modules/closein-tests (Depends-on): Likewise.
28462         * modules/flock-tests (Depends-on): Likewise.
28463         * modules/fsync-tests (Depends-on): Likewise.
28464         * modules/lseek-tests (Depends-on): Likewise.
28465         * modules/pipe-tests (Depends-on): Likewise.
28466         * modules/posix_spawn-tests (Depends-on): Likewise.
28467         * modules/posix_spawnp-tests (Depends-on): Likewise.
28468         * modules/stat-time-tests (Depends-on): Likewise.
28469         * modules/yesno-tests (Depends-on): Likewise.
28470
28471 2009-08-10  Bruno Haible  <bruno@clisp.org>
28472
28473         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28474
28475 2009-08-10  Bruno Haible  <bruno@clisp.org>
28476
28477         Fix a gcc warning.
28478         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28479
28480 2009-08-10  Bruno Haible  <bruno@clisp.org>
28481
28482         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28483         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28484         not only the first time.
28485         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28486         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28487         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28488         is 1, not only the the first time.
28489
28490 2009-08-10  Bruno Haible  <bruno@clisp.org>
28491
28492         Make it possible to use module 'gethostname' without module 'close'.
28493         * lib/unistd.in.h (close): Evoke a link error only if
28494         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28496         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28497         * modules/unistd (Makefile.am): Substitute
28498         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28499         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28500         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28501         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28502         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28503         * modules/sys_ioctl (Makefile.am): Substitute
28504         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28505         * modules/socket (configure.ac): On native Windows, set
28506         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28507         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28508         Reported by Sam Steingold <sds@gnu.org>.
28509
28510 2009-08-10  Bruno Haible  <bruno@clisp.org>
28511
28512         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28513         * modules/ioctl (configure.ac): Likewise.
28514
28515 2009-08-10  Bruno Haible  <bruno@clisp.org>
28516
28517         Avoid collision between gnulib wrapper and libintl wrapper.
28518         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28519         already defined in intl/printf.c.
28520         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28521         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28522
28523 2009-08-09  Bruno Haible  <bruno@clisp.org>
28524
28525         Make <sys/select.h> really self-contained, also on Solaris 10.
28526         * lib/sys_select.in.h: Include <string.h>.
28527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28528         Solaris 10 problem.
28529         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28530         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28531         Reported by Jim Meyering.
28532
28533 2009-08-09  Bruno Haible  <bruno@clisp.org>
28534
28535         Avoid warnings from 'aclocal' that are due to a use of macro name
28536         AM_XGETTEXT_OPTION that is not defined in automake.
28537         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28538         automake.
28539         * modules/error (configure.ac): Likewise.
28540         * modules/propername (configure.ac): Likewise.
28541         * modules/vasprintf (configure.ac): Likewise.
28542         * modules/verror (configure.ac): Likewise.
28543         * modules/xprintf (configure.ac): Likewise.
28544         * modules/xvasprintf (configure.ac): Likewise.
28545
28546 2009-08-08  Bruno Haible  <bruno@clisp.org>
28547
28548         Avoid compilation error in C++ mode.
28549         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28550         Reported by Sam Steingold <sds@gnu.org>.
28551
28552 2009-08-08  Bruno Haible  <bruno@clisp.org>
28553
28554         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28555         for the various Unix platforms.
28556         * doc/posix-headers/limits.texi: Update platforms list regarding
28557         HOST_NAME_MAX.
28558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28559
28560 2009-08-07  Jim Meyering  <meyering@redhat.com>
28561
28562         selinux-at: fix typo in a comment
28563         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28564         Spotted by Paolo Bonzini.
28565
28566         selinux-at: remove redundant m4 code, add documentation
28567         * modules/selinux-at (configure.ac): Remove redundant code.
28568         LIB_SELINUX is already set via the dependent module, selinux-h.
28569         (Include): Add quotes around selinux-at.h.
28570         * lib/selinux-at.h: Add documentation.
28571         Reported by Bruno Haible in
28572         http://marc.info/?l=gnulib-bug&m=124958988300749
28573
28574 2009-08-07  Bruno Haible  <bruno@clisp.org>
28575
28576         Avoid link error on MacOS X 10.3 and 10.4.
28577         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28578         on non-ELF systems.
28579         * lib/argp-pv.c (argp_program_version): Likewise.
28580         Reported by Simon Josefsson.
28581
28582 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28583
28584         * tests/test-version-etc.sh: Use $EXEEXT.
28585
28586 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28587
28588         update-copyright: update documentation to point to maint.mk
28589         * build-aux/update-copyright: Here.
28590
28591 2009-08-06  Jim Meyering  <meyering@redhat.com>
28592
28593         maint.mk: support update-copyright-local
28594         * top/maint.mk (update-copyright-local): Define place-holder.
28595         (update-copyright): Depend on $(update-copyright-local).
28596
28597 2009-08-06  Jim Meyering  <meyering@redhat.com>
28598
28599         selinux-at: new module
28600         Initially written for coreutils, this module will soon be
28601         used by findutils, too.
28602         * MODULES.html.sh [Misc]: Add selinux-at.
28603         * lib/selinux-at.h: New file, from coreutils.
28604         * lib/selinux-at.c: Likewise.
28605         * modules/selinux-at: Likewise.
28606         (License): Change from LGPL to GPL, since it depends
28607         on the GPL'd openat module.
28608
28609         doc: update README
28610         * README: Remove references to cogito.
28611         Remove cvs-repo-updating instructions from 2007.
28612         Don't imply that CVS is better if you have limited disk space.
28613
28614 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28615
28616         update-copyright: support C-style comments
28617         * build-aux/update-copyright: Implement and document.
28618         * tests/test-update-copyright.sh: Test.
28619
28620 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28621
28622         update-copyright: support omitted "(C)"
28623         * build-aux/update-copyright: Implement and document.  Also,
28624         allow variable whitespace before "(C)".
28625         * tests/test-update-copyright.sh: Test.
28626
28627 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28628
28629         update-copyright: don't trip on non-FSF copyright statements
28630         * build-aux/update-copyright: Fix so that the first correctly
28631         formatted FSF copyright statement is recognized no matter what
28632         appears before it.  Update documentation.
28633         * tests/test-update-copyright.sh: Test that.
28634
28635 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28636
28637         update-copyright: clean up code a little
28638         * build-aux/update-copyright: Append "_re" to the name of any
28639         variable holding a regular expression.
28640         Replace "old" and "new" with "stmt" in variable names.
28641         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28642         handled correctly.
28643         Format code more consistently.
28644
28645 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28646
28647         update-copyright-tests: improve portability
28648         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28649         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28650
28651 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28652
28653         update-copyright: support @copyright{} and &copy;
28654         * build-aux/update-copyright: Implement and document.
28655         * tests/test-update-copyright.sh: Test.
28656
28657 2009-08-04  Jim Meyering  <meyering@redhat.com>
28658
28659         update-copyright-tests: correctly test EOL=\r\n handling
28660         * tests/test-update-copyright.sh: Put \r at the end of some lines
28661         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28662
28663         maint.mk: make update-copyright exclusion list more configurable
28664         * top/maint.mk (update-copyright): Default to excluding COPYING,
28665         but allow an override, in case someone does want to update that file.
28666
28667         maint.mk: don't update copyright date in COPYING
28668         * top/maint.mk (update-copyright): Exclude COPYING.
28669
28670         maint.mk: add a copyright-updating rule
28671         * top/maint.mk (update-copyright): New rule.
28672         Derived from coreutils/Makefile.am.
28673
28674         update-copyright: rename some variables
28675         * build-aux/update-copyright: Rename a few variables for clarity.
28676         Tweak syntax.  List Joel E. Denny as coauthor.
28677
28678 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28679
28680         update-copyright: fix bug for 2-digit last year and add tests
28681         * build-aux/update-copyright: Fix bug.
28682         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28683         specified.
28684         * modules/update-copyright-tests: New
28685         * tests/test-update-copyright.sh: New.
28686
28687 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28688
28689         update-copyright: handle leading tabs in line prefix
28690         * build-aux/update-copyright: Count leading tabs as 8 spaces
28691         when computing margin.  This helps with the formatting of
28692         ChangeLogs, for example.
28693         Fix documentation a little.
28694
28695 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28696
28697         update-copyright: support EOL=\r\n
28698         * build-aux/update-copyright: Implement that.
28699
28700 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28701
28702         update-copyright: automatically format copyright statements
28703         * build-aux/update-copyright: Implement that.
28704         Also, be a little more predictable and safer by always failing
28705         when the full copyright format is not perfectly recognized as an
28706         unbroken whole.  Discussed at
28707         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28708         Rewrite documentation.
28709
28710 2009-08-03  Bruno Haible  <bruno@clisp.org>
28711
28712         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28713
28714 2009-08-02  Bruno Haible  <bruno@clisp.org>
28715
28716         Tests for module 'uname'.
28717         * modules/uname-tests: New file.
28718         * tests/test-uname.c: New file.
28719
28720         New module 'uname'.
28721         * lib/uname.c: New file.
28722         * m4/uname.m4: New file.
28723         * modules/uname: New file.
28724         * doc/posix-functions/uname.texi: Mention the new module.
28725
28726 2009-08-02  Bruno Haible  <bruno@clisp.org>
28727
28728         Tests for module 'sys_utsname'.
28729         * modules/sys_utsname-tests: New file.
28730         * tests/test-sys_utsname.c: New file.
28731
28732         New module 'sys_utsname'.
28733         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28734         * m4/sys_utsname_h.m4: New file.
28735         * modules/sys_utsname: New file.
28736         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28737
28738 2009-08-02  Bruno Haible  <bruno@clisp.org>
28739
28740         Implicitly initialize the sockets library.
28741         * lib/gethostname.c: Include sockets.h.
28742         (rpl_gethostname): Invoke gl_sockets_startup.
28743         * lib/socket.c: Include sockets.h.
28744         (rpl_socket): Invoke gl_sockets_startup.
28745         * modules/gethostname (Depends-on): Add sockets.
28746         * modules/socket (Depends-on): Likewise.
28747         * tests/test-poll.c: Don't include sockets.h.
28748         (main): Don't invoke gl_sockets_startup.
28749         * tests/test-select.c: Don't include sockets.h.
28750         (main): Don't invoke gl_sockets_startup.
28751
28752 2009-08-02  Bruno Haible  <bruno@clisp.org>
28753
28754         Allow multiple calls to gl_sockets_startup.
28755         * lib/sockets.c (initialized_sockets_version): New variable.
28756         (gl_sockets_startup): Do nothing if already called for this or a higher
28757         version.
28758         (gl_sockets_cleanup): Reset initialized_sockets_version.
28759
28760 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28761
28762         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28763         different project/version.
28764
28765 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28766             Bruno Haible  <bruno@clisp.org>
28767
28768         Tests for module 'pipe-filter-gi'.
28769         * modules/pipe-filter-gi-tests: New file.
28770         * tests/test-pipe-filter-gi1.sh: New file.
28771         * tests/test-pipe-filter-gi1.c: New file.
28772         * tests/test-pipe-filter-gi2.sh: New file.
28773         * tests/test-pipe-filter-gi2-main.c: New file.
28774         * tests/test-pipe-filter-gi2-child.c: New file.
28775
28776         New module 'pipe-filter-gi'.
28777         * lib/pipe-filter-gi.c: New file.
28778         * modules/pipe-filter-gi: New file.
28779
28780 2009-08-02  Bruno Haible  <bruno@clisp.org>
28781             Paolo Bonzini  <bonzini@gnu.org>
28782
28783         Tests for module 'pipe-filter-ii'.
28784         * modules/pipe-filter-ii-tests: New file.
28785         * tests/test-pipe-filter-ii1.sh: New file.
28786         * tests/test-pipe-filter-ii1.c: New file.
28787         * tests/test-pipe-filter-ii2.sh: New file.
28788         * tests/test-pipe-filter-ii2-main.c: New file.
28789         * tests/test-pipe-filter-ii2-child.c: New file.
28790
28791         New module 'pipe-filter-ii'.
28792         * lib/pipe-filter.h: New file.
28793         * lib/pipe-filter-ii.c: New file.
28794         * lib/pipe-filter-aux.h: New file.
28795         * modules/pipe-filter-ii: New file.
28796
28797 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28798
28799         * lib/gc-libgcrypt.c: Change copyright to FSF.
28800         * lib/gc-gnulib.c: Likewise.
28801
28802 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28803
28804         * lib/gethostname.c: Include limits.h.
28805
28806 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28807             Bruno Haible  <bruno@clisp.org>
28808
28809         Ensure HOST_NAME_MAX as part of the gethostname module.
28810         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28811         define also HOST_NAME_MAX.
28812         * tests/test-gethostname.c: Include <limits.h>.
28813         (main): Check also HOST_NAME_MAX.
28814         * doc/posix-headers/limits.texi: Document the mingw problem.
28815
28816 2009-08-02  Bruno Haible  <bruno@clisp.org>
28817
28818         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28819         Add comments.
28820
28821 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28822
28823         * lib/gethostname.c: Add Windows wrapper.
28824         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28825         * modules/gethostname: Depend on sys_socket & errno, for also
28826         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28827         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28828
28829 2009-07-31  Jim Meyering  <meyering@redhat.com>
28830
28831         getloadavg: fix symbol name in comment
28832         * lib/getloadavg.c: Correct a typo I introduced when adding
28833         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28834         Matt Kraai spotted the problem.
28835
28836 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28837
28838         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28839         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28840         code also if ! defined N_NAME_POINTER.
28841         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28842         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28843         but the n_name member is a 12-byte array.
28844
28845 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28846
28847         update-copyright: generalize comment handling
28848         * build-aux/update-copyright: Handle copyright statements
28849         within more comment styles.
28850         Document usage.
28851         Report any file with an external copyright holder or parse failure.
28852
28853 2009-07-29  Jim Meyering  <meyering@redhat.com>
28854
28855         mktime: correct setting of REPLACE_MKTIME
28856         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28857
28858         update-copyright: new module
28859         * modules/update-copyright: New file.
28860         * build-aux/update-copyright: New file.
28861         * MODULES.html.sh (maint+release support): Add update-copyright.
28862
28863 2009-07-27  Bruno Haible  <bruno@clisp.org>
28864
28865         Fix compilation error when <ctime> is used and mktime is replaced.
28866         * lib/time.in.h (mktime): New declaration.
28867         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28868         REPLACE_MKTIME instead of defining mktime in config.h.
28869         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28870         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28871         Reported by Ross McFarland <rwmcfa1@neces.com>.
28872
28873 2009-07-27  Bruno Haible  <bruno@clisp.org>
28874
28875         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28876         Reported by Matt Kraai <mkraai@beckman.com>.
28877
28878 2009-07-25  Jim Meyering  <meyering@redhat.com>
28879
28880         maint.mk: avoid warnings about missing files
28881         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28882         diagnostic when .prev-version does not exist.
28883         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28884         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28885         nonexistent cfg.mk.
28886         Suggestions from Simon Josefsson.
28887
28888 2009-07-25  Bruno Haible  <bruno@clisp.org>
28889
28890         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28891         defined as macros. Needed on QNX 6.4.1.
28892         Reported by Matt Kraai <mkraai@beckman.com>.
28893
28894 2009-07-23  Jim Meyering  <meyering@redhat.com>
28895
28896         maint.mk: invoke "make dist" with a working value of XZ_OPT
28897         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28898
28899 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28900
28901         Make fseeko.c compile on QNX.
28902         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28903
28904 2009-07-22  Peter Simons  <simons@cryp.to>
28905
28906         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28907         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28908         * lib/md4.h: Likewise.
28909         * lib/md5.h: Likewise.
28910         * lib/sha1.h: Likewise.
28911         * lib/sha256.h: Likewise.
28912         * lib/sha512.h: Likewise.
28913
28914         tests-sha1: don't assign literal string to 'char *' variable
28915         * tests/test-sha1.c (main): Declare locals with "const" to match
28916         attributes of the right hand side.
28917
28918 2009-07-21  Eric Blake  <ebb9@byu.net>
28919
28920         dup2: fix more mingw problems
28921         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28922         fd to itself.
28923         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28924         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28925         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28926         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28927         care of mingw bugs.
28928
28929 2009-07-21  Jim Meyering  <meyering@redhat.com>
28930
28931         vc-list-files: avoid failure when /bin/sh is dash
28932         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28933         On some Debian based systems, /bin/sh is a symlink to dash, and running
28934         this command would omit the "/" following each 'tests' prefix:
28935           dash -x build-aux/vc-list-files -C . tests
28936         That is because bash and dash work differently:
28937           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28938           bash ok
28939           dash odd
28940
28941 2009-07-21  Eric Blake  <ebb9@byu.net>
28942
28943         dup2-tests: test previous patch
28944         * modules/dup2-tests: New file.
28945         * tests/test-dup2.c: Likewise.
28946         * tests/test-open.c (main): Avoid unspecified behavior.
28947         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28948         test.
28949
28950         dup2: work around mingw and cygwin 1.5 bug
28951         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28953         * modules/unistd (Makefile.am): Substitute it.
28954         * lib/unistd.in.h (dup2): Declare the replacement.
28955         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28956         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28957         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28958         * modules/execute (Depends-on): Add dup2.
28959         * modules/fseterr (Depends-on): Likewise.
28960         * modules/pipe (Depends-on): Likewise.
28961         * modules/posix_spawn-internal (Depends-on): Likewise.
28962
28963 2009-07-21  Bruno Haible  <bruno@clisp.org>
28964
28965         * modules/.gitattributes: New file.
28966
28967 2009-07-20  Bruno Haible  <bruno@clisp.org>
28968
28969         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28970         (main): Use it.
28971
28972 2009-07-20  Eric Blake  <ebb9@byu.net>
28973
28974         test-pipe: make a bit more robust.
28975         * tests/test-pipe.c (myerr): Allow error messages regardless of
28976         what we do to stderr.
28977         (test_pipe): Rearrange to avoid deadlock.
28978         (child_main): Try a larger read, to ensure we avoided deadlock.
28979         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28980         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28981         if misused.
28982
28983 2009-07-19  Jim Meyering  <meyering@redhat.com>
28984
28985         fts: avoid false-positive cycle-detection
28986         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28987         for each new command line argument.
28988
28989 2009-07-19  Bruno Haible  <bruno@clisp.org>
28990
28991         Fix build error on mingw with the modules sys_select and unistd.
28992         * modules/acl-tests (Depends-on): Add close.
28993         * modules/binary-io-tests (Depends-on): Likewise.
28994         * modules/closein-tests (Depends-on): Likewise.
28995         * modules/flock-tests (Depends-on): Likewise.
28996         * modules/fsync-tests (Depends-on): Likewise.
28997         * modules/lseek-tests (Depends-on): Likewise.
28998         * modules/pipe-tests (Depends-on): Likewise.
28999         * modules/posix_spawn-tests (Depends-on): Likewise.
29000         * modules/posix_spawnp-tests (Depends-on): Likewise.
29001         * modules/stat-time-tests (Depends-on): Likewise.
29002         * modules/yesno-tests (Depends-on): Likewise.
29003
29004 2009-07-19  Bruno Haible  <bruno@clisp.org>
29005
29006         Unify conditionals.
29007         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29008         macros, not at the compiler macros.
29009         * lib/pipe.c: Likewise.
29010         * lib/execute.c: Likewise.
29011         * lib/spawni.c: Likewise.
29012
29013 2009-07-19  Bruno Haible  <bruno@clisp.org>
29014
29015         Fix handling of closed stdin/stdout/stderr on mingw.
29016         * lib/w32spawn.h: Include unistd.h.
29017         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29018         file descriptor with O_NOINHERIT flag.
29019         (fd_safer_noinherit): New function, based on fd-safer.c.
29020         (dup_safer_noinherit): New function, based on dup-safer.c.
29021         (undup_safer_noinherit): New function.
29022         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29023         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29024         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29025         instead of fd_safer.
29026         * tests/test-pipe.c: Include <windows.h>.
29027         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29028         result.
29029
29030         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29031         from main.
29032         (test_pipe): Pass an extra argument for disambiguation.
29033         (main): Invoke parent_main or child_main.
29034
29035         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29036         consistently.
29037
29038 2009-07-18  Eric Blake  <ebb9@byu.net>
29039
29040         test-pipe: fix mingw build
29041         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29042
29043 2009-07-18  Bruno Haible  <bruno@clisp.org>
29044
29045         * modules/pipe-tests (Makefile.am): Fix typo.
29046
29047 2009-07-18  Eric Blake  <ebb9@byu.net>
29048
29049         error: fix mingw build
29050         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29051         Reported by Bruno Haible.
29052
29053         error: avoid undefined use of stdout
29054         * lib/error.c (error, error_at_line): Check that fd 1 is open
29055         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29056         is handling faults and the close_stdout module wants to report the
29057         detection of closed stdout as an error.
29058
29059 2009-07-17  Eric Blake  <ebb9@byu.net>
29060
29061         pipe: be robust in face of closed fds
29062         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29063         should cause child to misbehave.
29064         * modules/pipe-tests: New module.
29065         * tests/test-pipe.c: New file.
29066         * tests/test-pipe.sh: New file.
29067         Reported by Akim Demaille.
29068
29069 2009-07-14  Bruno Haible  <bruno@clisp.org>
29070
29071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29072         Reported by anonymous kc.
29073
29074 2009-07-07  Jim Meyering  <meyering@redhat.com>
29075
29076         maint.mk: don't look for translatable strings in *.m4 or *.mk
29077         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29078         when searching for translatable strings.
29079
29080 2009-07-05  Jim Meyering  <meyering@redhat.com>
29081
29082         remove superfluous parentheses in STREQ definition
29083         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29084         * lib/getugroups.c (STREQ): Likewise.
29085         * lib/fnmatch.c (STREQ): Likewise.
29086         Spotted by Bruno Haible.
29087
29088 2009-07-04  Jim Meyering  <meyering@redhat.com>
29089
29090         argv-iter: new module
29091         * MODULES.html.sh: Add argv-iter.
29092         * lib/argv-iter.c, lib/argv-iter.h: New files.
29093         * modules/argv-iter: New file.
29094         * modules/argv-iter-tests: New file.
29095         * tests/test-argv-iter.c: Test it.
29096
29097 2009-07-04  Bruno Haible  <bruno@clisp.org>
29098
29099         Fix assertion.
29100         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29101         contains more exact copies of a given entry than file2, leave the extra
29102         copies unpaired rather than aborting.
29103         Reported by Eric Blake.
29104
29105 2009-07-02  Bruno Haible  <bruno@clisp.org>
29106
29107         Speedup git-merge-changelog for git cherry-pick.
29108         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29109         (entries_mapping_get): New function, extracted from compute_mapping.
29110         (entries_mapping_reverse_get): New function.
29111         (compute_mapping): Add a 'full' argument. Return the result in a
29112         'struct entries_mapping'.
29113         (main): Update. Access the mappings through entries_mapping_get.
29114         Reported by Eric Blake.
29115
29116 2009-07-02  Bruno Haible  <bruno@clisp.org>
29117
29118         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29119         best_i.
29120
29121 2009-07-02  Bruno Haible  <bruno@clisp.org>
29122
29123         Speed up approximate search for matching ChangeLog entries.
29124         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29125         argument. Call fstrcmp_bounded instead of fstrcmp.
29126         (compute_mapping, try_split_merged_entry, main): Update callers.
29127
29128 2009-07-02  Bruno Haible  <bruno@clisp.org>
29129
29130         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29131
29132 2009-06-30  Bruno Haible  <bruno@clisp.org>
29133
29134         Reduce the number of uc_is_cased calls.
29135         * lib/unicase.h (casing_suffix_context_t): Add
29136         'first_char_except_ignorable' field.
29137         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29138         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29139         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29140         Update initializer.
29141         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29142         case-ignorable characters.
29143         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29144         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29145         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29146         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29147         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29148
29149 2009-06-30  Bruno Haible  <bruno@clisp.org>
29150
29151         Tests for module 'unicase/ignorable'.
29152         * modules/unicase/ignorable-tests: New file.
29153         * tests/unicase/test-ignorable.c: New file, generated by
29154         gen-uni-tables.
29155
29156         Tests for module 'unicase/cased'.
29157         * modules/unicase/cased-tests: New file.
29158         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29159         * tests/unicase/test-predicate-part1.h: New file, derived from
29160         tests/unictype/test-predicate-part1.h.
29161         * tests/unicase/test-predicate-part2.h: New file, same as
29162         tests/unictype/test-predicate-part2.h.
29163
29164         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29165         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29166         (output_casing_properties): New function.
29167         (main): Call it.
29168         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29169         * lib/unicase/cased.c: Include unictype/bitmap.h.
29170         (uc_is_cased): Define through a bitmap lookup.
29171         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29172         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29173         (uc_is_case_ignorable): Define through a bitmap lookup.
29174         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29175         lib/unictype/bitmap.h.
29176         (Depends-on): Add inline. Clean up.
29177         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29178         lib/unictype/bitmap.h.
29179         (Depends-on): Add inline. Clean up.
29180         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29181         recognition.
29182         * tests/unicase/test-u16-tolower.c (main): Likewise.
29183         * tests/unicase/test-u32-tolower.c (main): Likewise.
29184
29185 2009-06-30  Bruno Haible  <bruno@clisp.org>
29186
29187         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29188         * lib/unicase/u16-casemap.c: Likewise.
29189         * lib/unicase/u32-casemap.c: Likewise.
29190
29191 2009-06-29  Bruno Haible  <bruno@clisp.org>
29192
29193         Define u32_casefold as a wrapper around u32_ct_casefold.
29194         * lib/unicase/u32-casefold.c: Update.
29195         * modules/unicase/u32-casefold (Depends-on): Add
29196         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29197         unicase/empty-suffix-context. Clean up.
29198
29199         Define u16_casefold as a wrapper around u16_ct_casefold.
29200         * lib/unicase/u16-casefold.c: Update.
29201         * modules/unicase/u16-casefold (Depends-on): Add
29202         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29203         unicase/empty-suffix-context. Clean up.
29204
29205         Define u8_casefold as a wrapper around u8_ct_casefold.
29206         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29207         * lib/unicase/u8-casefold.c: Update.
29208         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29209         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29210
29211         Define u32_totitle as a wrapper around u32_ct_totitle.
29212         * lib/unicase/u32-totitle.c: Update.
29213         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29214         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29215
29216         Define u16_totitle as a wrapper around u16_ct_totitle.
29217         * lib/unicase/u16-totitle.c: Update.
29218         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29219         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29220
29221         Define u8_totitle as a wrapper around u8_ct_totitle.
29222         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29223         functions.
29224         (FUNC): Delegate to U_CT_TOTITLE.
29225         * lib/unicase/u8-totitle.c: Update.
29226         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29227         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29228
29229         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29230         invocation.
29231         * modules/unicase/u32-tolower (Depends-on): Add
29232         unicase/empty-prefix-context, unicase/empty-suffix-context.
29233
29234         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29235         invocation.
29236         * modules/unicase/u16-tolower (Depends-on): Add
29237         unicase/empty-prefix-context, unicase/empty-suffix-context.
29238
29239         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29240         * modules/unicase/u8-tolower (Depends-on): Add
29241         unicase/empty-prefix-context, unicase/empty-suffix-context.
29242
29243         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29244         invocation.
29245         * modules/unicase/u32-toupper (Depends-on): Add
29246         unicase/empty-prefix-context, unicase/empty-suffix-context.
29247
29248         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29249         invocation.
29250         * modules/unicase/u16-toupper (Depends-on): Add
29251         unicase/empty-prefix-context, unicase/empty-suffix-context.
29252
29253         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29254         * modules/unicase/u8-toupper (Depends-on): Add
29255         unicase/empty-prefix-context, unicase/empty-suffix-context.
29256
29257         New module 'unicase/u32-ct-casefold'.
29258         * lib/unicase/u32-ct-casefold.c: New file.
29259         * modules/unicase/u32-ct-casefold: New file.
29260
29261         New module 'unicase/u16-ct-casefold'.
29262         * lib/unicase/u16-ct-casefold.c: New file.
29263         * modules/unicase/u16-ct-casefold: New file.
29264
29265         New module 'unicase/u8-ct-casefold'.
29266         * lib/unicase/u8-ct-casefold.c: New file.
29267         * lib/unicase/u-ct-casefold.h: New file, derived from
29268         lib/unicase/u-casefold.h.
29269         * modules/unicase/u8-ct-casefold: New file.
29270
29271         New module 'unicase/u32-ct-totitle'.
29272         * lib/unicase/u32-ct-totitle.c: New file.
29273         * modules/unicase/u32-ct-totitle: New file.
29274
29275         New module 'unicase/u16-ct-totitle'.
29276         * lib/unicase/u16-ct-totitle.c: New file.
29277         * modules/unicase/u16-ct-totitle: New file.
29278
29279         New module 'unicase/u8-ct-totitle'.
29280         * lib/unicase/u8-ct-totitle.c: New file.
29281         * lib/unicase/u-ct-totitle.h: New file, derived from
29282         lib/unicase/u-totitle.h.
29283         * modules/unicase/u8-ct-totitle: New file.
29284
29285         New module 'unicase/u32-ct-tolower'.
29286         * lib/unicase/u32-ct-tolower.c: New file.
29287         * modules/unicase/u32-ct-tolower: New file.
29288
29289         New module 'unicase/u16-ct-tolower'.
29290         * lib/unicase/u16-ct-tolower.c: New file.
29291         * modules/unicase/u16-ct-tolower: New file.
29292
29293         New module 'unicase/u8-ct-tolower'.
29294         * lib/unicase/u8-ct-tolower.c: New file.
29295         * modules/unicase/u8-ct-tolower: New file.
29296
29297         New module 'unicase/u32-ct-toupper'.
29298         * lib/unicase/u32-ct-toupper.c: New file.
29299         * modules/unicase/u32-ct-toupper: New file.
29300
29301         New module 'unicase/u16-ct-toupper'.
29302         * lib/unicase/u16-ct-toupper.c: New file.
29303         * modules/unicase/u16-ct-toupper: New file.
29304
29305         New module 'unicase/u8-ct-toupper'.
29306         * lib/unicase/u8-ct-toupper.c: New file.
29307         * modules/unicase/u8-ct-toupper: New file.
29308
29309         Add context arguments to u*_casemap functions.
29310         * lib/unicase/unicasemap.h: Include unicase.h.
29311         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29312         suffix_context arguments.
29313         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29314         functions.
29315         (FUNC): Add prefix_context and suffix_context arguments. Use
29316         uc_is_cased and uc_is_case_ignorable.
29317         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29318         * lib/unicase/u16-casemap.c: Likewise.
29319         * lib/unicase/u32-casemap.c: Likewise.
29320         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29321         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29322         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29323         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29324         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29325         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29326
29327         New module 'unicase/u32-suffix-context'.
29328         * lib/unicase/u32-suffix-context.c: New file.
29329         * modules/unicase/u32-suffix-context: New file.
29330
29331         New module 'unicase/u16-suffix-context'.
29332         * lib/unicase/u16-suffix-context.c: New file.
29333         * modules/unicase/u16-suffix-context: New file.
29334
29335         New module 'unicase/u8-suffix-context'.
29336         * lib/unicase/u8-suffix-context.c: New file.
29337         * lib/unicase/u-suffix-context.h: New file.
29338         * modules/unicase/u8-suffix-context: New file.
29339
29340         New module 'unicase/empty-suffix-context'.
29341         * lib/unicase/empty-suffix-context.c: New file.
29342         * modules/unicase/empty-suffix-context: New file.
29343
29344         New module 'unicase/u32-prefix-context'.
29345         * lib/unicase/u32-prefix-context.c: New file.
29346         * modules/unicase/u32-prefix-context: New file.
29347
29348         New module 'unicase/u16-prefix-context'.
29349         * lib/unicase/u16-prefix-context.c: New file.
29350         * modules/unicase/u16-prefix-context: New file.
29351
29352         New module 'unicase/u8-prefix-context'.
29353         * lib/unicase/u8-prefix-context.c: New file.
29354         * lib/unicase/u-prefix-context.h: New file.
29355         * lib/unicase/context.h: New file.
29356         * modules/unicase/u8-prefix-context: New file.
29357
29358         New module 'unicase/empty-prefix-context'.
29359         * lib/unicase/empty-prefix-context.c: New file.
29360         * modules/unicase/empty-prefix-context: New file.
29361
29362         New module 'unicase/ignorable'.
29363         * lib/unicase/ignorable.c: New file.
29364         * modules/unicase/ignorable: New file.
29365
29366         New module 'unicase/cased'.
29367         * lib/unicase/caseprop.h: New file.
29368         * lib/unicase/cased.c: New file.
29369         * modules/unicase/cased: New file.
29370
29371         New functions for case mapping of substrings.
29372         * lib/unicase.h (casing_prefix_context_t): New type.
29373         (unicase_empty_prefix_context): New variable.
29374         (u8_casing_prefix_context, u16_casing_prefix_context,
29375         u32_casing_prefix_context, u8_casing_prefixes_context,
29376         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29377         declarations.
29378         (casing_suffix_context_t): New type.
29379         (unicase_empty_suffix_context): New variable.
29380         (u8_casing_suffix_context, u16_casing_suffix_context,
29381         u32_casing_suffix_context, u8_casing_suffixes_context,
29382         u16_casing_suffixes_context, u32_casing_suffixes_context,
29383         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29384         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29385         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29386         declarations.
29387
29388 2009-06-28  Jim Meyering  <meyering@redhat.com>
29389
29390         boostrap: indent only with spaces
29391         * build-aux/bootstrap: Indent only with spaces, never TABs.
29392
29393         bootstrap: split long lines
29394         * build-aux/bootstrap: Keep line length < 80.
29395
29396         bootstrap: sync from coreutils
29397         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29398         just as autoreconf does.  Verify a list of prerequisite
29399         package-name,version-number pairs if defined in bootstrap.conf.
29400         Refer to README-prereq, if prerequisites are not satisfied.
29401
29402 2009-06-27  Eric Blake  <ebb9@byu.net>
29403
29404         tests: add test for bogus NULL definition
29405         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29406         * tests/test-stdlib.c: Likewise.
29407         * tests/test-string.c: Likewise.
29408         * tests/test-locale.c: Likewise.
29409         * tests/test-unistd.c: Likewise.
29410         * modules/stdio-tests (Depends-on): Add verify.
29411         * modules/stdlib-tests (Depends-on): Likewise.
29412         * modules/string-tests (Depends-on): Likewise.
29413         * modules/locale-tests (Depends-on): Likewise.
29414         * modules/unistd-tests (Depends-on): Likewise.
29415
29416 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29417
29418         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29419         self-explaining comment.
29420         * m4/selinux-selinux-h: Update serial.
29421         (gl_LIBSELINUX): New macro, adding a warning for missing development
29422         packages to code extracted from...
29423         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29424         Add warning for missing development packages here, too.
29425
29426 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29427
29428         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29429
29430 2009-06-25  Eric Blake  <ebb9@byu.net>
29431
29432         version-etc: fix regression
29433         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29434         gcc.
29435         (version_etc): Use it, to catch bugs with trailing NULL.
29436         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29437         (version_etc_va): Fix logic bug.
29438         * modules/version-etc-tests: Add test.
29439         * tests/test-version-etc.c: New file.
29440         * tests/test-version-etc.sh: Likewise.
29441
29442 2009-06-25  Sam Steingold  <sds@gnu.org>
29443
29444         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29445         mbtowc declaration.
29446
29447 2009-06-25  Eric Blake  <ebb9@byu.net>
29448
29449         fpurge: migrate into <stdio.h>
29450         * lib/fpurge.h: Delete...
29451         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29452         * lib/fpurge.c (fpurge): Change declaring header.
29453         * modules/fpurge (Files): Drop deleted file.
29454         (Depends-on): Add stdio.
29455         (configure.ac): Set witness.
29456         * modules/stdio (Makefile.am): Support fpurge macros.
29457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29458         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29459         * lib/fflush.c: Update client.
29460         * tests/test-fpurge.c: Likewise.
29461         * NEWS: Mention the change.
29462
29463 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29464
29465         * lib/argp-version-etc.c (program_authors): Add const
29466         qualifier.
29467         * lib/version-etc.c: Fix typos in the comments.
29468         * modules/argp-version-etc: Depends on version-etc.
29469
29470 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29471
29472         argp-version-etc: new module.
29473
29474         * lib/argp-version-etc.c: New file.
29475         * lib/argp-version-etc.h: New file.
29476         * modules/argp-version-etc: New file.
29477         * modules/argp-version-etc-tests: New file.
29478         * tests/test-argp-version-etc.c: New test.
29479         * tests/test-argp-version-etc-1.sh: New test.
29480
29481 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29482
29483         Provide additional interfaces and documentation for version-etc
29484         module.
29485
29486         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29487         interfaces.
29488         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29489         prototypes.
29490
29491 2009-06-24  Bruno Haible  <bruno@clisp.org>
29492
29493         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29494         HAVE_LIB${NAME} macro.
29495         Reported by Sam Steingold <sds@gnu.org>.
29496
29497 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29498
29499         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29500         needed.
29501
29502 2009-06-21  Bruno Haible  <bruno@clisp.org>
29503
29504         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29505         work.
29506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29507         together with LIB${NAME}, LTLIB${NAME}.
29508         Reported by Sam Steingold <sds@gnu.org>.
29509
29510 2009-06-20  Jim Meyering  <meyering@redhat.com>
29511
29512         tests: make sc_require_test_exit_idiom more generic
29513         * top/maint.mk (Exit_witness_file): New overridable variable.
29514         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29515         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29516
29517 2009-06-19  Jim Meyering  <meyering@redhat.com>
29518
29519         hash: reverse order of src/dst parameters in an internal interface
29520         * lib/hash.c (transfer_entries): Reverse order of parameters to
29521         put DST before SRC.  Adjust callers.
29522
29523         tests: test-hash: avoid wholesale duplication
29524         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29525         Instead, use a loop and add a single conditional.
29526
29527         tests: test-hash: allow seed selection via a command line argument
29528         * tests/test-hash.c (get_seed): New function.
29529         (main): Use it.
29530
29531 2009-06-19  Eric Blake  <ebb9@byu.net>
29532
29533         hash: avoid memory leak on allocation failure
29534         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29535         failure.  Factor repeated algorithm...
29536         (transfer_entries): ...into new helper routine.
29537         (hash_delete): React to hash_rehash return value.
29538
29539         hash: reduce memory pressure in hash_rehash no-op case
29540         * lib/hash.c (next_prime): Avoid overflow.
29541         (hash_initialize): Factor bucket size computation...
29542         (compute_bucket_size): ...into new helper function.
29543         (hash_rehash): Use new function and open coding to reduce memory
29544         pressure, and avoid a memory leak in USE_OBSTACK code.
29545         Reported by Jim Meyering.
29546
29547 2009-06-18  Eric Blake  <ebb9@byu.net>
29548
29549         hash: make rotation more obvious
29550         * modules/hash (Depends-on): Add bitrotate and stdint.
29551         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29552         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29553         (SIZE_MAX): Rely on headers for definition.
29554         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29555         (raw_hasher): Use rotr_sz.
29556         Suggested by Jim Meyering.
29557
29558         hash: fix memory leak in last patch
29559         * lib/hash.c (hash_rehash): Avoid memory leak.
29560
29561         hash: avoid no-op rehashing
29562         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29563
29564         hash: provide default callback functions
29565         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29566         (hash_initialize): Use them as defaults.
29567         * tests/test-hash.c (main): Test this.
29568
29569         hash: minor optimization
29570         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29571         when possible.
29572         (hash_initialize): Document this promise.
29573         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29574         * tests/test-hash.c (hash_compare_strings): Test this.
29575
29576 2009-06-18  Bruno Haible  <bruno@clisp.org>
29577
29578         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29579         going to be replaced anyway.
29580
29581 2009-06-18  Bruno Haible  <bruno@clisp.org>
29582
29583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29584         in one place.
29585         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29586         be replaced anyway.
29587
29588 2009-06-18  Eric Blake  <ebb9@byu.net>
29589
29590         hash: check for resize before insertion
29591         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29592         threshold before insertion, so that a pathological hash_rehash
29593         that fills every bucket can still trigger another rehash.
29594
29595 2009-06-18  Jim Meyering  <meyering@redhat.com>
29596
29597         hash-tests: add a loop around the small tests
29598         * tests/test-hash.c (main): Repeat small tests with selected
29599         small initial table sizes.
29600
29601 2009-06-17  Eric Blake  <ebb9@byu.net>
29602
29603         hash: minor cleanups
29604         * lib/hash.h (hash_entry): Make opaque, by moving...
29605         * lib/hash.c (hash_entry): ...here.
29606         (hash_insert): Clarify restrictions on what can be inserted.
29607         (hash_get_next): Clarify when it is safe to remove an element
29608         during traversal.
29609         (check_tuning): Skip verification when tuning is known safe.
29610         (hash_initialize): Clarify restrictions on tuning.
29611
29612 2009-06-17  Jim Meyering  <jim@meyering.net>
29613         and Eric Blake  <ebb9@byu.net>
29614
29615         hash-tests: new module
29616         * modules/hash-tests: New file.
29617         * tests/test-hash.c: New file.
29618
29619 2009-06-17  Eric Blake  <ebb9@byu.net>
29620
29621         strstr-simple: document new module
29622         * MODULES.html.sh: Document new module.
29623
29624         strstr, strcasestr: replace on platforms with broken memchr
29625         * modules/strstr: Split into...
29626         * modules/strstr-simple: ...new module that does not care about
29627         performance, but does care about glibc bug.
29628         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29629         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29630         if platform memchr is broken, per Debian bug 521737.
29631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29632         memchr.
29633         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29634         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29635         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29636         * modules/mountlist (Depends-on): Add strstr-simple.
29637         * modules/gen-uni-tables (Depends-on): Likewise.
29638         * modules/argz (Depends-on): Add strstr.
29639
29640 2009-06-17  Bruno Haible  <bruno@clisp.org>
29641
29642         * modules/posix_spawn-internal (Depends-on): Add errno.
29643
29644 2009-06-17  Bruno Haible  <bruno@clisp.org>
29645
29646         Define missing ESTALE on Interix 3.5.
29647         * lib/errno.in.h (ESTALE): Assign a value if missing.
29648         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29649         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29650         missing.
29651         * doc/posix-headers/errno.texi: Mention the Interix bug.
29652         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29653
29654 2009-06-15  Eric Blake  <ebb9@byu.net>
29655
29656         memchr, memchr2: add valgrind exception
29657         * lib/memchr.valgrind: New file.
29658         * lib/memchr2.valgrind: New file.
29659         * modules/memchr (Files): Distribute valgrind file.
29660         * modules/memchr2 (Files): Likewise.
29661
29662         docs: memchr is no longer obsolete
29663         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29664         * lib/string.in.h (memchr): Simplify logic.
29665
29666 2009-06-14  Jim Meyering  <meyering@redhat.com>
29667
29668         link-follow: fix the "checking..." message to not mention trailing slash
29669         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29670         never considered trailing slashes.
29671
29672 2009-06-14  Bruno Haible  <bruno@clisp.org>
29673
29674         * m4/memchr.m4: Mention also the bug on IA-64.
29675         * doc/posix-functions/memchr.texi: Likewise.
29676
29677 2009-06-12  Eric Blake  <ebb9@byu.net>
29678
29679         memchr: detect broken x86_64 and alpha implementations
29680         * modules/memchr-tests (Depends-on): Move mmap detection...
29681         * modules/memchr (Depends-on): ...here.
29682         (configure.ac): Set indicator.
29683         * lib/string.in.h (memchr): Declare replacement.
29684         * modules/string (Makefile.am): Trigger replacement.
29685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29686         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29687         bugs.
29688         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29689         * modules/getpagesize (License): Relax license.
29690
29691 2009-06-11  Bruno Haible  <bruno@clisp.org>
29692
29693         * lib/idpriv.h: Add more references.
29694
29695 2009-06-08  Bruno Haible  <bruno@clisp.org>
29696
29697         Tests for module 'idpriv-droptemp'.
29698         * modules/idpriv-droptemp-tests: New file.
29699         * tests/test-idpriv-droptemp.sh: New file.
29700         * tests/test-idpriv-droptemp.su.sh: New file.
29701         * tests/test-idpriv-droptemp.c: New file.
29702
29703         New module 'idpriv-droptemp'.
29704         * lib/idpriv-droptemp.c: New file.
29705         * modules/idpriv-droptemp: New file.
29706
29707 2009-06-08  Bruno Haible  <bruno@clisp.org>
29708
29709         Tests for module 'idpriv-drop'.
29710         * modules/idpriv-drop-tests: New file.
29711         * tests/test-idpriv-drop.sh: New file.
29712         * tests/test-idpriv-drop.su.sh: New file.
29713         * tests/test-idpriv-drop.c: New file.
29714
29715         New module 'idpriv-drop'.
29716         * lib/idpriv.h: New file.
29717         * lib-idpriv-drop.c: New file.
29718         * m4/idpriv.m4: New file.
29719         * modules/idpriv-drop: New file.
29720
29721 2009-06-08  Bruno Haible  <bruno@clisp.org>
29722
29723         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29724         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29725         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29726         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29727         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29728         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29729         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29730
29731 2009-06-08  Eric Blake  <ebb9@byu.net>
29732
29733         test-strstr: use memory fence, when possible
29734         * tests/test-strstr.c (main): Use memory fence, in order to be
29735         more likely to trigger Debian bug 521737.
29736         * modules/strstr-tests (Files): Pull in additional files.
29737
29738         memchr: no longer obsolete, for wider field testing
29739         * modules/memchr (Status, Notice): Delete, this module is no
29740         longer obsolete.
29741         * modules/vasnprintf (Depends-on): Add memchr.
29742
29743 2009-06-07  Jim Meyering  <meyering@redhat.com>
29744
29745         hash: declare some functions with the warn_unused_result attribute
29746         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29747
29748 2009-06-07  Bruno Haible  <bruno@clisp.org>
29749
29750         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29751         Reported by Eric Blake.
29752
29753 2009-06-06  Eric Blake  <ebb9@byu.net>
29754
29755         test-alignof: fix typo with long double
29756         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29757         compiler error.
29758
29759 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29760
29761         Escape non-texinfo { and }s.
29762         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29763         markup error.
29764
29765 2009-06-04  Jim Meyering  <meyering@redhat.com>
29766
29767         gitlog-to-changelog: don't infloop on an empty commit log
29768         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29769         Reported by Boris Petersen <transacid@centerim.org>.
29770
29771 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29772
29773         version-etc: extend for packagers
29774         Add three new configure options, intended for packagers:
29775           --with-packager="packager name"
29776           --with-packager-version="packager-specific version"
29777           --with-packager-bug-reports="packager bug reporting"
29778         An example with coreutils:
29779           $ ./configure \
29780             --with-packager=Gentoo \
29781             --with-packager-bug-report=http://bugs.gentoo.org/ \
29782             --with-packager-version="patchset 1.6"
29783           $ ./src/ls --version | head -n2
29784           ls (GNU coreutils) 7.1-dirty
29785           Packaged by Gentoo (patchset 1.6)
29786         Note that the bug reporting info via --help doesn't show up because
29787         coreutils uses its own custom emit_bug_reporting_address() implementation
29788         in src/system.h.  If it didn't, it'd look like:
29789           $ ./src/ls --help | tail -n4
29790           Report bugs to <bug-coreutils@gnu.org>.
29791           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29792           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29793           General help using GNU software: <http://www.gnu.org/gethelp/>.
29794         * lib/version-etc.c: Print new information, if provided.
29795         * m4/version-etc.m4: New file.
29796         * modules/version-etc (Files): Add m4/version-etc.m4.
29797         (configure.ac): Add gl_VERSION_ETC.
29798
29799 2009-05-31  Bruno Haible  <bruno@clisp.org>
29800
29801         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29802         and 'int64_t'.
29803         * modules/alignof-tests (Dependencies): Add stdint.
29804         Reported by Eric Blake.
29805
29806 2009-05-31  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29809         restriction due to compiler bugs.
29810         Reported by Eric Blake.
29811
29812 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29813             Bruno Haible  <bruno@clisp.org>
29814
29815         Fix test-alignof failure.
29816         * lib/alignof.h (alignof_slot): New macro.
29817         (alignof_type): New macro, with the same semantics as the previous
29818         'alignof'.
29819         (alignof): Alias to alignof_slot.
29820         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29821         check that the results are usable as constant expressions.
29822
29823 2009-05-31  Bruno Haible  <bruno@clisp.org>
29824
29825         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29826         * tests/test-memchr.c (main): Check that memchr does not read past the
29827         first occurrence of the byte.
29828         * tests/test-strstr.c (main): Update comment.
29829         Suggested by Eric Blake.
29830
29831 2009-05-30  Bruno Haible  <bruno@clisp.org>
29832
29833         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29834         detail how to use dumpbin.
29835         Reported by David Byron <dbyron@dbyron.com>.
29836
29837 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29838
29839         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29840
29841 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29842
29843         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29844
29845 2009-05-28  Bruno Haible  <bruno@clisp.org>
29846
29847         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29848         build-aux/ files.
29849
29850 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29851
29852         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29853
29854 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29855
29856         * gnulib-tool (sed_transform_main_lib_file)
29857         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29858         regexps.
29859
29860 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29861
29862         * tests/test-strstr.c: Add another self-test.
29863         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29864         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29865
29866 2009-05-23  Bruno Haible  <bruno@clisp.org>
29867
29868         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29869         change.
29870
29871 2009-05-21  Bruno Haible  <bruno@clisp.org>
29872
29873         Simplify use of mode_t varargs.
29874         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29875         uses 'mode_t' or 'int'.
29876         * lib/openat.c (openat): Likewise.
29877         * lib/open-safer.c (open_safer): Likewise.
29878         * m4/mode_t.m4: New file.
29879         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29880         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29881         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29882         * modules/open (Files): Add m4/mode_t.m4.
29883         * modules/openat (Files): Likewise.
29884         * modules/fcntl-safer (Files): Likewise.
29885         Suggested by Eric Blake.
29886
29887 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29888
29889         * doc/glibc-functions/fallocate.texi: New file.
29890         * doc/gnulib.texi: Include it.
29891
29892 2009-05-21  Eric Blake  <ebb9@byu.net>
29893             Bruno Haible  <bruno@clisp.org>
29894
29895         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29896         invocations.
29897         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29898
29899 2009-05-21  Eric Blake  <ebb9@byu.net>
29900             Bruno Haible  <bruno@clisp.org>
29901
29902         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29903         include_next. Fix of 2008-11-20 commit.
29904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29905         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29906         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29907         NEXT_MATH_H.
29908         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29909         instead of NEXT_MATH_H.
29910
29911 2009-05-21  Bruno Haible  <bruno@clisp.org>
29912
29913         Avoid redefinition warnings for SIZE_MAX.
29914         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29915         Reported by Simon Josefsson.
29916
29917 2009-05-21  Bruno Haible  <bruno@clisp.org>
29918
29919         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29920         AC_CACHE_VAL.
29921
29922 2009-05-20  Bruno Haible  <bruno@clisp.org>
29923
29924         Make zeroptr.h work on mingw.
29925         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29926         mprotect.
29927         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29928         * modules/memchr2-tests (configure.ac): Likewise.
29929         * modules/memcmp-tests (configure.ac): Likewise.
29930         * modules/memmem-tests (configure.ac): Likewise.
29931         * modules/memrchr-tests (configure.ac): Likewise.
29932         Reported by Simon Josefsson.
29933
29934 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29935
29936         * tests/test-glob.c: Include string.h for strcmp prototype.
29937
29938 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29939
29940         * modules/getdelim (Depends-on): Add explicit stdint, although it
29941         was implicitly already pulled in via realloc-posix.
29942         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29943
29944 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29945
29946         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29947         G. Christensen" <tgc@jupiterrise.com>.
29948         * m4/sys_socket_h.m4: Check for sa_family_t.
29949         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29950         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29951         * tests/test-sys_socket.c: Check that sa_family_t works.
29952
29953 2009-05-18  Eric Blake  <ebb9@byu.net>
29954
29955         maint.mk: allow gnulib_dir in VPATH build
29956         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29957
29958 2009-05-15  Jim Meyering  <meyering@redhat.com>
29959
29960         maint.mk: Give gnulib_dir a default definition.
29961         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29962         Thus, most packages no longer need to specify this variable in cfg.mk
29963
29964 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29965
29966         rename.m4: fix typos that would make non-mingw cross-configure fail
29967         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29968
29969 2009-05-13  Eric Blake  <ebb9@byu.net>
29970
29971         mmap-anon: avoid out-of-order autoconf expansion
29972         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29973         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29974         * modules/memchr-tests (Depends-on): Add extensions.
29975         * modules/memchr2-tests (Depends-on): Add extensions.
29976         * modules/memcmp-tests (Depends-on): Add extensions.
29977         * modules/memmem-tests (Depends-on): Add extensions.
29978         * modules/memrchr-tests (Depends-on): Add extensions.
29979
29980 2009-05-13  Bruno Haible  <bruno@clisp.org>
29981
29982         Make some tests ISO C 99 compliant.
29983         * tests/zerosize-ptr.h: New file.
29984         * tests/test-memchr.c: Include zerosize-ptr.h.
29985         (main): Use a zero-size object pointer instead of NULL.
29986         * tests/test-memchr2.c: Include zerosize-ptr.h.
29987         (main): Use a zero-size object pointer instead of NULL.
29988         * tests/test-memcmp.c: Include zerosize-ptr.h.
29989         (main): Use a zero-size object pointer instead of NULL.
29990         * tests/test-memmem.c: Include zerosize-ptr.h.
29991         (main): Use a zero-size object pointer instead of NULL.
29992         * tests/test-memrchr.c: Include zerosize-ptr.h.
29993         (main): Use a zero-size object pointer instead of NULL.
29994         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29995         m4/mmap-anon.m4.
29996         (Depends-on): Add getpagesize.
29997         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29998         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29999         m4/mmap-anon.m4.
30000         (Depends-on): Add getpagesize.
30001         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30002         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30003         m4/mmap-anon.m4.
30004         (Depends-on): Add getpagesize.
30005         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30006         * modules/memmem-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/memrchr-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
30015 2009-05-12  Bruno Haible  <bruno@clisp.org>
30016
30017         Tests for module 'alignof'.
30018         * modules/alignof-tests: New file.
30019         * tests/test-alignof.c: New file.
30020
30021 2009-05-12  Bruno Haible  <bruno@clisp.org>
30022
30023         Fix alignof macro.
30024         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30025         vendor compilers that are always correct.
30026
30027 2009-05-12  Bruno Haible  <bruno@clisp.org>
30028
30029         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30030         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30031         not whether its fully works.
30032
30033 2009-05-12  Bruno Haible  <bruno@clisp.org>
30034
30035         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30036
30037 2009-05-12  Jim Meyering  <meyering@redhat.com>
30038
30039         * top/maint.mk: Adjust backslash alignment.
30040
30041 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30042
30043         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30044
30045 2009-05-11  Eric Blake  <ebb9@byu.net>
30046
30047         argp: avoid undefined behavior
30048         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30049         macros.
30050
30051 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30052
30053         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30054         user.name to prevent git commit from complaining.
30055
30056 2009-05-10  Bruno Haible  <bruno@clisp.org>
30057
30058         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30059         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30060         it rewrites every file name only once.
30061         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30062
30063 2009-05-08  Bruno Haible  <bruno@clisp.org>
30064
30065         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30066         instead of 'max'.
30067
30068 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30069
30070         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30071         sockaddr_storage test.
30072
30073 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30074
30075         * modules/sys_socket (Makefile.am): Substitute
30076         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30077         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30078         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30079         * tests/test-sys_socket.c: Check sockaddr_storage.
30080
30081 2009-05-08  Bruno Haible  <bruno@clisp.org>
30082
30083         New module 'alignof'.
30084         * lib/alignof.h: New file.
30085         * modules/alignof: New file.
30086
30087 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30088             Bruno Haible  <bruno@clisp.org>
30089
30090         Fix test-file-has-acl on FreeBSD.
30091         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30092         mask is implicitly added.
30093         * tests/test-file-has-acl.c: Include <signal.h>.
30094         (main): Terminate the test after 5 seconds.
30095         * modules/acl-tests (configure.ac): Check for alarm function.
30096
30097 2009-05-04  Bruno Haible  <bruno@clisp.org>
30098
30099         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30101         * modules/errno (configure.ac): Drop AC_REQUIRE.
30102         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30103         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30104
30105 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30106
30107         * modules/glob-tests: New module.
30108         * tests/test-glob.c: Add.
30109
30110 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30111
30112         * modules/fnmatch-tests: New module.
30113         * tests/test-fnmatch.c: Add.
30114
30115 2009-05-04  Eric Blake  <ebb9@byu.net>
30116
30117         maint: make the new no-submodule-changes rule VPATH-safe
30118         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30119
30120 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30121             Bruno Haible  <bruno@clisp.org>
30122
30123         acl: Fix infinite loop on FreeBSD.
30124         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30125         of return value from acl_get_entry.
30126         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30127         Likewise.
30128
30129 2009-05-03  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/acl-internal.h (acl_entries): Clarify return value.
30132         * lib/acl_entries.c (acl_entries): Likewise.
30133
30134 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30135
30136         Bug fix in acl module.
30137         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30138
30139 2009-05-03  Bruno Haible  <bruno@clisp.org>
30140
30141         Create gperf-generated file in the source dir, not in the build dir.
30142         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30143         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30144         * modules/unicase/locale-language (unicase/locale-languages.h):
30145         Likewise.
30146         * modules/unicase/special-casing (unicase/special-casing-table.h):
30147         Likewise.
30148         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30149         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30150         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30151         Reported by Ralf Wildenhues.
30152
30153 2009-05-03  Bruno Haible  <bruno@clisp.org>
30154
30155         * modules/fnmatch (Description, configure.ac): Taken from
30156         fnmatch-posix.
30157         * modules/fnmatch-posix: Turn into a symbolic reference to the
30158         'fnmatch' module, and deprecate.
30159         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30160
30161 2009-05-03  Bruno Haible  <bruno@clisp.org>
30162
30163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30164         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30165         Reported by Ralf Wildenhues.
30166
30167 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30168
30169         * m4/fnmatch.m4: Fix fnmatch re-define.
30170
30171 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30172
30173         priv-set: new module and tests; adapt write-any-file
30174         * lib/priv-set.c: New file.
30175         * lib/priv-set.h: New file.
30176         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30177         * lib/write-any-file.c: Simplify by using priv-set module.
30178         * m4/priv-set.m4: New file.
30179         * modules/priv-set: New file.
30180         * modules/unlinkdir: Add dependency on priv-set module.
30181         * modules/write-any-file: Likewise.
30182
30183         Tests for module 'priv-set'.
30184         * modules/priv-set-tests: New file.
30185         * tests/test-priv-set.c: New file.
30186
30187 2009-05-03  Jim Meyering  <meyering@redhat.com>
30188             Bruno Haible  <bruno@clisp.org>
30189
30190         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30191         use the converted UTF-8 variant of the name instead.
30192
30193 2009-05-03  Jim Meyering  <meyering@redhat.com>
30194
30195         tests: tighten some getdate tests
30196         * tests/test-getdate.c (main): Tighten tests: require equality,
30197         not just greater than.  Set TZ envvar to UTC0.
30198
30199 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30200
30201         getdate: correctly interpret "next monday" when run on a Monday
30202         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30203         that e.g., "next tues" (when run on a tuesday) results in a date
30204         that is one week in the future, and not today's date.
30205         I.e., add a week when the wday is the same as the current one.
30206         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30207         and earlier by Martin Bernreuther and Jan Minář.
30208         * tests/test-getdate.c (main): Check that "next DAY" is always in
30209         the future and that "last DAY" is always in the past.
30210
30211 2009-05-02  Jim Meyering  <meyering@redhat.com>
30212
30213         build: ensure that a release build fails when a submodule is unclean
30214         * top/maint.mk (no-submodule-changes): New rule.
30215         (alpha beta major): Depend on it.
30216
30217 2009-05-02  Bruno Haible  <bruno@clisp.org>
30218
30219         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30220         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30221         shell variable gl_fnmatch_required to detect which variant is
30222         requested.
30223         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30224         gl_FUNC_FNMATCH_POSIX.
30225         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30226         exclude fnmatch-posix.
30227
30228 2009-05-02  Bruno Haible  <bruno@clisp.org>
30229
30230         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30231         * modules/mbsrtowcs (License): Change to LGPLv2+.
30232         * modules/strnlen1 (License): Likewise.
30233         Reported by Simon Josefsson.
30234
30235 2009-05-02  Bruno Haible  <bruno@clisp.org>
30236
30237         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30238         "cross".
30239         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30240         gnulib-tool was called with option --source-base=lib.
30241
30242 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30243
30244         Use automake *-local hooks without commands, for extensibility.
30245         * modules/localcharset (Makefile.am): Rename install-exec-local
30246         rule to install-exec-localcharset, and make it a prerequisite of
30247         install-exec-local.  Likewise, rename the uninstall-local rule to
30248         uninstall-localcharset, and make it a prerequisite of the former.
30249
30250 2009-05-01  Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30253         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30254         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30256         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30257         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30258         m4/locale-zh.m4, m4/codeset.m4.
30259
30260         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30261         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30262         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30263         m4/locale-zh.m4.
30264
30265         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30266         REPLACE_WCRTOMB if mbstate_t must be replaced.
30267         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30268         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30269
30270 2009-05-01  Bruno Haible  <bruno@clisp.org>
30271
30272         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30273         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30274         dngettext, dcngettext, textdomain, bindtextdomain,
30275         bind_textdomain_codeset): Undefine before redefining.
30276
30277 2009-04-30  Bruno Haible  <bruno@clisp.org>
30278
30279         Fix bug introduced on 2009-04-25.
30280         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30281         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30282         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30283         is defined.
30284         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30285         is defined.
30286         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30287         is defined.
30288         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30289
30290 2009-04-28  Bruno Haible  <bruno@clisp.org>
30291
30292         Comment tweaks.
30293         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30294         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30295         * lib/unicase.h (u*_casexfrm): Likewise.
30296         Reported by Paolo Bonzini.
30297
30298 2009-04-28  Bruno Haible  <bruno@clisp.org>
30299
30300         Fix a compilation error.
30301         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30302         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30303         Reported by Jim Meyering.
30304
30305 2009-04-27  Bruno Haible  <bruno@clisp.org>
30306
30307         New module 'libunistring'.
30308         * modules/libunistring: New file.
30309         * m4/libunistring.m4: New file.
30310         * MODULES.html.sh (Unicode string functions): Add it.
30311
30312 2009-04-27  Eric Blake  <ebb9@byu.net>
30313
30314         maint.mk: allow package-specific header to provide <config.h>
30315         * top/maint.mk (sc_require_config_h): New variable.
30316         (sc_require_config_h, sc_require_config_h_first): Use it.
30317
30318 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30319
30320         * top/maint.mk (sc_avoid_if_before_free): Except
30321         useless-if-before-free script.
30322
30323 2009-04-27  Eric Blake  <ebb9@byu.net>
30324
30325         maintainer-makefile: depend on all required helper scripts
30326         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30327         useless-if-before-free.
30328         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30329         version, rather than assuming gnulib checkout is available.
30330         Reported by Simen Josefsson.
30331
30332 2009-04-26  Bruno Haible  <bruno@clisp.org>
30333
30334         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30335         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30336         "../" or "..".
30337
30338 2009-04-26  Bruno Haible  <bruno@clisp.org>
30339
30340         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30341         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30342         AC_LIB_HAVE_LINKFLAGS.
30343
30344 2009-04-26  Bruno Haible  <bruno@clisp.org>
30345
30346         Simplify calling convention of u*_conv_from_encoding.
30347         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30348         u32_conv_from_encoding): Expect a resultbuf argument and return the
30349         result directly as a pointer.
30350         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30351         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30352         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30353         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30354         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30355         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30356         Update.
30357         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30358         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30359         * lib/vasnprintf.c (VASNPRINTF): Update.
30360         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30361         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30362         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30363         * NEWS: Mention the change.
30364
30365 2009-04-26  Bruno Haible  <bruno@clisp.org>
30366
30367         Simplify calling convention of u*_conv_to_encoding.
30368         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30369         u32_conv_to_encoding): Expect a resultbuf argument and return the
30370         result directly as a pointer.
30371         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30372         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30373         freeing scaled_offsets if mem_iconveha failed.
30374         * lib/unicase/u-casexfrm.h (FUNC): Update.
30375         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30376         * lib/vasnprintf.c (VASNPRINTF): Update.
30377         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30378         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30379         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30380         * NEWS: Mention the change.
30381
30382 2009-04-26  Bruno Haible  <bruno@clisp.org>
30383
30384         Avoid test failures on AIX and OSF/1.
30385         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30386         malloc(0).
30387         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30388         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30389         Likewise.
30390         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30391         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30392         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30393         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30394         * doc/posix-functions/malloc.texi: Document the portability problem
30395         related to malloc(0).
30396
30397 2009-04-26  Bruno Haible  <bruno@clisp.org>
30398
30399         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30400         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30401         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30402
30403 2009-04-25  Bruno Haible  <bruno@clisp.org>
30404
30405         Avoid link error when creating a namespace clean library.
30406         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30407         as macro with arguments if already defined as an alias.
30408         * lib/signbitf.c (gl_signbitf): Don't undefine.
30409         * lib/signbitd.c (gl_signbitd): Don't undefine.
30410         * lib/signbitl.c (gl_signbitl): Don't undefine.
30411
30412 2009-04-25  Jim Meyering  <meyering@redhat.com>
30413
30414         vc-list-files: fix another quoting bug
30415         * build-aux/vc-list-files: Avoid sed backslash expansion
30416         of pathological directory names.
30417
30418 2009-04-25  Eric Blake  <ebb9@byu.net>
30419
30420         vc-list-files: fix shell quoting error
30421         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30422         timestamp.
30423
30424 2009-04-25  Jim Meyering  <meyering@redhat.com>
30425
30426         vc-list-files: restore lost functionality with subdir argument
30427         * build-aux/vc-list-files: When given a non-"." sub-directory
30428         argument, substitute the $dir/ prefix back onto each resulting name.
30429         Otherwise, coreutils' root_tests check would fail.
30430
30431 2009-04-24  Eric Blake  <ebb9@byu.net>
30432
30433         vc-list-files: ignore git symlinks
30434         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30435         than ls-files, to ignore git symlinks.
30436
30437         maint.mk: import improvements from m4
30438         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30439         (move_if_change): Delete unused macro.
30440         (news-date-check, vc-diff-check): Support VPATH builds.
30441         (announcement): Likewise.  Split --bootstrap-tools list...
30442         (boostrap-tools): ...into separate list, which can be overridden
30443         in cfg.mk.
30444         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30445         requiring dependency on useless-if-before-free module.
30446         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30447         Support VPATH builds.
30448
30449 2009-04-24  Jim Meyering  <meyering@redhat.com>
30450
30451         maint.mk: remove coreutils-specific rules and variables
30452         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30453         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30454         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30455
30456         maint.mk: remove obsolete rule
30457         * top/maint.mk (rel-check): Remove rule.
30458         (WGET, WGETFLAGS): Remove now-unused variables.
30459
30460 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30461
30462         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30463         consistency.
30464
30465         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30466         '$(PATH_SEPARATOR)' instead of ':'.
30467
30468 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30469
30470         * lib/getopt1.c (main): Use 'const' for static array.
30471
30472 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30473
30474         * top/maint.mk: Sync with coreutils.
30475         * NEWS: Explain incompatibilities.
30476
30477 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30478             Bruno Haible  <bruno@clisp.org>
30479
30480         Fix cross-compilation results.
30481         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30482         statement, as third argument of AC_TRY_RUN.
30483         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30484         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30485         Likewise.
30486         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30487         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30488         Likewise.
30489         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30490         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30491         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30492
30493 2009-04-20  Bruno Haible  <bruno@clisp.org>
30494
30495         Avoid test failure on mingw.
30496         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30497
30498 2009-04-20  Bruno Haible  <bruno@clisp.org>
30499
30500         Avoid compilation error on mingw.
30501         * modules/localename-tests (Depends-on): Add locale.
30502
30503 2009-04-19  Bruno Haible  <bruno@clisp.org>
30504
30505         Support for building a shared library on Windows platforms.
30506         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30507         (main): Test the presence of UNINORM_NFC here.
30508         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30509         (main): Test the presence of UNINORM_NFD here.
30510         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30511         (main): Test the presence of UNINORM_NFKC here.
30512         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30513         (main): Test the presence of UNINORM_NFKD here.
30514
30515 2009-04-19  Bruno Haible  <bruno@clisp.org>
30516
30517         Avoid a compiler warning.
30518         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30519         Change type of variable 'sequence'.
30520
30521 2009-04-19  Bruno Haible  <bruno@clisp.org>
30522
30523         * modules/configmake (Makefile.am): When the contents of configmake.h
30524         does not change, arrange to preserve its modification time.
30525
30526 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30527
30528         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30529         gettext domain.
30530
30531 2009-04-16  Jim Meyering  <meyering@redhat.com>
30532
30533         useless-if-before-free: improve conversion code
30534         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30535         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30536
30537 2009-04-14  Bruno Haible  <bruno@clisp.org>
30538
30539         * modules/fcntl (Depends-on): Add extensions.
30540         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30541
30542 2009-04-12  Ben Pfaff  <blp@gnu.org>
30543
30544         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30545         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30546
30547 2009-03-20  Ben Pfaff  <blp@gnu.org>
30548
30549         Make rename replace existing destinations on Windows.
30550         * m4/rename.m4: Add test for Mingw.
30551         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30552         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30553         * doc/posix-functions/rename.texi: Document.
30554
30555 2009-04-10  Bruno Haible  <bruno@clisp.org>
30556
30557         New include file "iconveh.h".
30558         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30559         * lib/striconveh.h: Include it.
30560         (enum iconv_ilseq_handler): Remove definition.
30561         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30562         striconveh.h.
30563         * lib/striconveha.c: Include striconveh.h.
30564         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30565         * modules/striconveh (Files): Add lib/iconveh.h.
30566         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30567         lib/striconveh.h.
30568
30569 2009-04-10  Bruno Haible  <bruno@clisp.org>
30570
30571         * lib/uniconv.h: Update comment.
30572
30573 2009-04-10  Bruno Haible  <bruno@clisp.org>
30574
30575         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30576         always.
30577         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30578         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30579         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30580         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30581         "unistring-notinline.h", so that the function gets defined always.
30582         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30583         * lib/unistr/u8-uctomb.c: Likewise.
30584         * lib/unistr/u16-mbtouc.c: Likewise.
30585         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30586         * lib/unistr/u16-uctomb.c: Likewise.
30587         * lib/unistr/u32-mbtouc.c: Likewise.
30588         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30589         * lib/unistr/u32-uctomb.c: Likewise.
30590
30591 2009-04-10  Bruno Haible  <bruno@clisp.org>
30592
30593         Mark 'utime' obsolete.
30594         * modules/utime (Status, Notice): New sections.
30595         Suggested by Jim Meyering.
30596
30597         Fix cross-compile guess for utime test.
30598         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30599         autoconf.
30600         * doc/posix-functions/utime.texi: Give more precisions.
30601         Reported by Jan <ipif@ymail.com>.
30602
30603 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30604
30605         filevercmp: correct today's change
30606         * lib/filevercmp.c: Also handle coreutils' test inputs.
30607         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30608
30609         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30610         for reporting it.
30611         * lib/filevercmp.c: Special handle for "", "." and "..".
30612         * tests/test-filevercmp.c: Enlarge the set suite.
30613
30614 2009-04-07  Jim Meyering  <meyering@redhat.com>
30615
30616         useless-if-before-free: show how to remove braced useless free, too
30617         * build-aux/useless-if-before-free: still only in a comment, though.
30618
30619 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30620
30621         maint.mk: import changes to syntax-check macros from coreutils
30622         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30623         Use them in the relevant macros.
30624
30625 2009-04-06  Bruno Haible  <bruno@clisp.org>
30626
30627         Fix unportable use of bit-fields.
30628         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30629         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30630         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30631
30632 2009-04-06  Bruno Haible  <bruno@clisp.org>
30633
30634         Avoid test failures on AIX and OSF/1.
30635         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30636         that malloc(0) = NULL.
30637         * tests/unicase/test-u8-tolower.c (check): Likewise.
30638         * tests/unicase/test-u8-totitle.c (check): Likewise.
30639         * tests/unicase/test-u8-toupper.c (check): Likewise.
30640         * tests/unicase/test-u16-casefold.c (check): Likewise.
30641         * tests/unicase/test-u16-tolower.c (check): Likewise.
30642         * tests/unicase/test-u16-totitle.c (check): Likewise.
30643         * tests/unicase/test-u16-toupper.c (check): Likewise.
30644         * tests/unicase/test-u32-casefold.c (check): Likewise.
30645         * tests/unicase/test-u32-tolower.c (check): Likewise.
30646         * tests/unicase/test-u32-totitle.c (check): Likewise.
30647         * tests/unicase/test-u32-toupper.c (check): Likewise.
30648         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30649         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30650         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30651         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30652         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30653         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30654         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30655         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30656         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30657         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30658         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30659         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30660
30661 2009-04-05  Bruno Haible  <bruno@clisp.org>
30662
30663         Work around an autoconf limitation.
30664         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30665         comment line if it would be longer than 3 KB.
30666
30667 2009-04-05  Bruno Haible  <bruno@clisp.org>
30668
30669         Avoid test failure with libiconv-1.13.
30670         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30671         of the expected test results.
30672
30673 2009-04-05  Bruno Haible  <bruno@clisp.org>
30674
30675         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30676         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30677         that it should be installed.
30678
30679 2009-04-05  Bruno Haible  <bruno@clisp.org>
30680
30681         * gnulib-tool: New option --copy-file.
30682         (func_usage): Document it.
30683         (func_dest_tmpfilename): Moved out of func_import.
30684         (func_add_file, func_update_file): New functions, extracted from
30685         func_import.
30686         (func_import): Update.
30687
30688 2009-04-05  Karl Berry  <karl@gnu.org>
30689
30690         * README: prominently mention gnulib-tool.
30691         Rearrange sections so getting the code is near the top.
30692
30693 2009-04-05  Bruno Haible  <bruno@clisp.org>
30694
30695         * lib/unicase.h: Mention u*_cmp2.
30696         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30697         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30698         * lib/unicase/ulc-casecmp.c: Likewise.
30699         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30700         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30701         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30702         unistr/u8-cmp.
30703         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30704         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30705         unistr/u16-cmp.
30706         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30707         unistr/u32-cmp.
30708
30709         * lib/uninorm.h: Mention u*_cmp2.
30710         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30711         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30712         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30713         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30714         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30715         unistr/u8-cmp.
30716         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30717         unistr/u16-cmp.
30718         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30719         unistr/u32-cmp.
30720
30721         New module 'unistr/u32-cmp2'.
30722         * lib/unistr/u32-cmp2.c: New file.
30723         * modules/unistr/u32-cmp2: New file.
30724
30725         New module 'unistr/u16-cmp2'.
30726         * lib/unistr/u16-cmp2.c: New file.
30727         * modules/unistr/u16-cmp2: New file.
30728
30729         New module 'unistr/u8-cmp2'.
30730         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30731         * lib/unistr/u8-cmp2.c: New file.
30732         * lib/unistr/u-cmp2.h: New file.
30733         * modules/unistr/u8-cmp2: New file.
30734
30735 2009-04-05  Bruno Haible  <bruno@clisp.org>
30736
30737         * lib/unictype.h (uc_property_is_valid): New macro.
30738         * tests/unictype/test-pr_byname.c (main): Use it.
30739
30740         * lib/unistr.h: Doc fixes.
30741         * lib/uniconv.h: Doc fixes.
30742         * lib/unictype.h: Doc fixes.
30743
30744 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30745
30746         Port coreutils 7.2 to Solaris 8.
30747
30748         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30749         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30750         for Solaris 8.  This is a bit of a hack, as it means it's the
30751         caller's responsibility to add -lnsl if needed, but most likely it
30752         won't be needed since only getaddrinfo uses this and getaddrinfo
30753         isn't needed on Solaris 8.
30754
30755         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30756         problem to Solaris 8 encountered with coreutils 7.2, which
30757         resulted in a message "fnmatch.c:292: warning: passing argument 4
30758         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30759         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30760
30761 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30762
30763         * m4/ld-version-script.m4: Add FIXME comment.
30764
30765 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30766
30767         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30768         SOVERSION variable.
30769
30770 2009-04-02  Bruno Haible  <bruno@clisp.org>
30771
30772         * Makefile (info, html, dvi, pdf): Combine the rules.
30773         Suggested by Jim Meyering.
30774
30775 2009-04-01  Bruno Haible  <bruno@clisp.org>
30776
30777         * Makefile (info, html, dvi, pdf): New targets.
30778         Reported by Reuben Thomas <rrt@sc3d.org>.
30779
30780 2009-04-01  Bruno Haible  <bruno@clisp.org>
30781
30782         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30783         can be put into PATH.
30784         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30785
30786 2009-04-01  Bruno Haible  <bruno@clisp.org>
30787
30788         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30789
30790 2009-04-01  Bruno Haible  <bruno@clisp.org>
30791
30792         Rename module 'visibility'.
30793         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30794         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30795         * doc/gnulib.texi: Update.
30796         * MODULES.html.sh (Misc): Update.
30797         * NEWS: Mention the change.
30798
30799 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30800
30801         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30802         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30803         Eric Blake <ebb9@byu.net> for review.
30804         * MODULES.html.sh: Add lib-msvc-compat.
30805         * doc/gnulib.texi: Link to new section.
30806         * m4/ld-output-def.m4: New file.
30807         * doc/ld-output-def.texi: New file.
30808
30809 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30810
30811         Rename ld-version-script to lib-symbol-versions.  Suggested by
30812         Bruno Haible <bruno@clisp.org>.
30813         * modules/ld-version-script: Renamed to lib-symbol-versions.
30814         * doc/ld-version-script.texi: Fix module name.
30815         * MODULES.html.sh: Add lib-symbol-versions.
30816
30817 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30818
30819         * modules/u64-tests: New file.
30820         * tests/test-u64.c: New file.
30821
30822 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30823
30824         * MODULES.html.sh: Mention u64.
30825         * modules/u64: New module.
30826         * modules/crypto/sha512: Depend on u64 module instead of providing
30827         u64.h.
30828
30829 2009-03-27  Eric Blake  <ebb9@byu.net>
30830
30831         test-strerror: make debugging EAI_SYSTEM easier
30832         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30833         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30834         failure was EAI_SYSTEM.
30835
30836 2009-03-25  Bruno Haible  <bruno@clisp.org>
30837
30838         Fix a problem with --enable-relocatable on Solaris 7.
30839         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30840         since 2008-02-24.
30841
30842 2009-03-25  Eric Blake  <ebb9@byu.net>
30843
30844         test-sockets: avoid gcc warning
30845         * tests/test-sockets.c (main): Silence compiler warning.
30846
30847 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30848
30849         New modules nproc, pthread, contributed by Glen Lenker.
30850
30851         * MODULES.html.sh: Add pthread, nproc.
30852         * lib/nproc.c: New file.
30853         * lib/nproc.h: New file.
30854         * lib/pthread.in.h: New file.
30855         * m4/pthread.m4: New file.
30856         * modules/nproc: New file.
30857         * modules/pthread: New file.
30858
30859 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30860
30861         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30862         New variable.
30863
30864 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30865
30866         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30867         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30868         * tests/test-filevercmp.c: Add tests for backup suffixes.
30869
30870 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30871
30872         * modules/stdlib (Depends-on): Add stdint, needed when defining
30873         struct random_data on, for example, HP-UX 10.20.  Reported by
30874         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30875
30876 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30877
30878         * lib/readline.c (readline): Call fflush on stdout after printing
30879         prompt.
30880
30881 2009-03-20  Bruno Haible  <bruno@clisp.org>
30882
30883         Remove dependency from 'close' module to -lws2_32 on native Windows.
30884         * lib/close-hook.h: New file.
30885         * lib/close-hook.c: New file.
30886         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30887         w32sock.h.
30888         (_gl_close_fd_maybe_socket): Remove function.
30889         (rpl_close): Invoke execute_all_close_hooks instead of
30890         _gl_close_fd_maybe_socket.
30891         * lib/sockets.c: Include close-hook.h, w32sock.h.
30892         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30893         (close_sockets_hook): New variable.
30894         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30895         (gl_sockets_cleanup): Unregister it.
30896         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30897         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30898         * modules/close-hook: New file.
30899         * modules/close (Files): Remove lib/w32sock.h.
30900         (Depends-on): Add close-hook.
30901         (Link): Remove section.
30902         * modules/sockets (Files): Add lib/w32sock.h.
30903         (Depends-on): Add close-hook.
30904         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30905         invocation.
30906         * NEWS: Mention that LIB_CLOSE is gone.
30907
30908 2009-03-23  Eric Blake  <ebb9@byu.net>
30909
30910         signal-tests: test previous patch
30911         * tests/test-signal.c: New file.
30912         * modules/signal-tests: Likewise.
30913
30914         signal.h: always support 'volatile sig_atomic_t'
30915         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30916         (gl_SIGNAL_H_DEFAULTS): Add a default.
30917         * modules/signal (Makefile.am): Substitute if needed.
30918         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30919         users can blindly add volatile.
30920         * doc/posix-headers/signal.texi (signal.h): Document it.
30921         Reported by Matthew Woehlke.
30922
30923 2009-03-23  Jim Meyering  <meyering@redhat.com>
30924
30925         pathmax: PATH_MAX: use pathconf only when available
30926         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30927         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30928         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30929         This avoids a link failure in a PSP cross-compilation environment
30930         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30931
30932         * lib/vasnprintf.c (divide): Fix typo in comment.
30933
30934 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30935
30936         * gnulib-tool (func_filter_filelist): Fix comment.
30937
30938 2009-03-20  Bruno Haible  <bruno@clisp.org>
30939
30940         Make sockets.h self-contained.
30941         * lib/sockets.c: Include sockets.h first.
30942         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30943
30944 2009-03-19  Eric Blake  <ebb9@byu.net>
30945
30946         doc: mention more functions added in cygwin 1.7.0
30947         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30948         addition.
30949         * doc/posix-functions/log2f.texi: Likewise.
30950
30951 2009-03-19  Jim Meyering  <meyering@redhat.com>
30952
30953         fsusage: avoid syntax error due to statement-before-declaration
30954         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30955         after all declarations.  Reported by Matthew Woehlke in
30956         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30957
30958 2009-03-18  Eric Blake  <ebb9@byu.net>
30959
30960         build-aux/compile: sync from automake
30961         * build-aux/compile: New file, from automake.
30962         * config/srclist.txt: Mention build-aux/compile.
30963
30964 2009-03-17  Bruno Haible  <bruno@clisp.org>
30965
30966         * lib/git-merge-changelog.c: Fix typo in comment.
30967         Reported by Reuben Thomas <rrt@sc3d.org>.
30968
30969 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30970
30971         * m4/regex.m4: update and improve help for
30972         --without-included-regex.
30973
30974 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30975
30976         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30977         failure on missing include files.
30978
30979 2009-03-17  Eric Blake  <ebb9@byu.net>
30980
30981         doc: mention more functions added in cygwin 1.7.0
30982         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30983         addition.
30984         * doc/posix-functions/fwscanf.texi: Likewise.
30985         * doc/posix-functions/swprintf.texi: Likewise.
30986         * doc/posix-functions/swscanf.texi: Likewise.
30987         * doc/posix-functions/vfwprintf.texi: Likewise.
30988         * doc/posix-functions/vfwscanf.texi: Likewise.
30989         * doc/posix-functions/vswprintf.texi: Likewise.
30990         * doc/posix-functions/vswscanf.texi: Likewise.
30991         * doc/posix-functions/vwprintf.texi: Likewise.
30992         * doc/posix-functions/vwscanf.texi: Likewise.
30993         * doc/posix-functions/wcscasecmp.texi: Likewise.
30994         * doc/posix-functions/wcsdup.texi: Likewise.
30995         * doc/posix-functions/wcsftime.texi: Likewise.
30996         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30997         * doc/posix-functions/wprintf.texi: Likewise.
30998         * doc/posix-functions/wscanf.texi: Likewise.
30999         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31000
31001 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31002
31003         maint.mk: really add $(AM_MAKEFLAGS)
31004         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31005         was inadvertently omitted in the last commit.
31006         Spotted by Bruno Haible.
31007
31008         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31009         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31010         $(AM_MAKEFLAGS)' rather than plain `make'.
31011
31012         gnulib-tool: execute $MAKE not make
31013         * gnulib-tool: Default $MAKE to 'make'.
31014         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31015         than make.  Initialize $MAKE in the do-autobuild script.
31016
31017         gnulib-tool: use $MAKE not make in generated files
31018         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31019         make, in generated files.  Initialize $MAKE in the do-autobuild
31020         script.
31021
31022         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31023
31024         GNUmakefile: disable parallelism only for multiple, recursive targets
31025         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31026         additions in the Makefile.
31027         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31028         by Automake.
31029         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31030         are listed on the command line and at least one of them is
31031         listed in $(ALL_RECURSIVE_TARGETS).
31032
31033 2009-03-14  Bruno Haible  <bruno@clisp.org>
31034
31035         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31036         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31037         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31038         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31039         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31040         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31041         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31042         unistr/u8-uctomb.
31043         * modules/unistr/u8-strchr (Depends-on): Likewise.
31044         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31045         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31046         unistr/u16-uctomb.
31047         * modules/unistr/u16-strchr (Depends-on): Likewise.
31048         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31049
31050 2009-03-12  Bruno Haible  <bruno@clisp.org>
31051
31052         Work around select() bug on Interix 3.5.
31053         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31054         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31055         * m4/select.m4: New file.
31056         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31057         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31058         * modules/select (Files): Add m4/select.m4.
31059         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31060         * modules/nanosleep (Depends-on): Add select.
31061         * modules/poll (Depends-on): Likewise.
31062         * doc/posix-functions/select.texi: Mention the Interix bug.
31063         Reported by Markus Duft <mduft@gentoo.org>.
31064
31065         * lib/select.c: Renamed from lib/winsock-select.c.
31066         * modules/select (Files): Add lib/select.c, remove
31067         lib/winsock-select.c.
31068         (configure.ac): Update.
31069
31070 2009-03-12  Jim Meyering  <meyering@redhat.com>
31071
31072         avoid gcc warnings about unused macro definitions
31073         * lib/readtokens.c (STREQ): Remove unused definition.
31074         * lib/xmalloc.c (SIZE_MAX): Likewise.
31075         * lib/openat-die.c (N_): Likewise.
31076         * lib/mountlist.c (SIZE_MAX): Remove definition.
31077         Instead, include <stdint.h>.
31078         * lib/readutmp.c: Likewise.
31079         * modules/readutmp (Depends-on): Add stdint.
31080         * modules/mountlist (Depends-on): Add stdint.
31081         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31082
31083 2009-03-10  Bruno Haible  <bruno@clisp.org>
31084
31085         Tests for module 'mbmemcasecoll'.
31086         * modules/mbmemcasecoll-tests: New file.
31087         * tests/test-mbmemcasecoll1.sh: New file.
31088         * tests/test-mbmemcasecoll2.sh: New file.
31089         * tests/test-mbmemcasecoll3.sh: New file.
31090         * tests/test-mbmemcasecoll.c: New file.
31091
31092         New module 'mbmemcasecoll'.
31093         * lib/mbmemcasecoll.h: New file.
31094         * lib/mbmemcasecoll.c: New file.
31095         * modules/mbmemcasecoll: New file.
31096
31097         * tests/test-mbmemcasecmp.h: New file, extracted from
31098         tests/test-mbmemcasecmp.c.
31099         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31100         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31101         (main): Update.
31102         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31103
31104 2009-03-09  Bruno Haible  <bruno@clisp.org>
31105
31106         Tests for module 'mbmemcasecmp'.
31107         * modules/mbmemcasecmp-tests: New file.
31108         * tests/test-mbmemcasecmp1.sh: New file.
31109         * tests/test-mbmemcasecmp2.sh: New file.
31110         * tests/test-mbmemcasecmp3.sh: New file.
31111         * tests/test-mbmemcasecmp.c: New file.
31112
31113         New module 'mbmemcasecmp'.
31114         * lib/mbmemcasecmp.h: New file.
31115         * lib/mbmemcasecmp.c: New file.
31116         * modules/mbmemcasecmp: New file.
31117
31118 2009-03-09  Bruno Haible  <bruno@clisp.org>
31119
31120         Tests for module 'unicase/ulc-casecoll'.
31121         * modules/unicase/ulc-casecoll-tests: New file.
31122         * tests/unicase/test-ulc-casecoll1.sh: New file.
31123         * tests/unicase/test-ulc-casecoll2.sh: New file.
31124         * tests/unicase/test-ulc-casecoll.c: New file.
31125
31126         New module 'unicase/ulc-casecoll'.
31127         * lib/unicase.h (ulc_casecoll): New declaration.
31128         * lib/unicase/ulc-casecoll.c: New file.
31129         * modules/unicase/ulc-casecoll: New file.
31130
31131         New module 'unicase/ulc-casexfrm'.
31132         * lib/unicase.h (ulc_casexfrm): New declaration.
31133         * lib/unicase/ulc-casexfrm.c: New file.
31134         * modules/unicase/ulc-casexfrm: New file.
31135
31136 2009-03-09  Bruno Haible  <bruno@clisp.org>
31137
31138         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31139         invocations.
31140
31141         * m4/mbscasecmp.m4: Remove file.
31142         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31143         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31144
31145         * m4/mbscasestr.m4: Remove file.
31146         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31147         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31148
31149         * m4/mbschr.m4: Remove file.
31150         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31151         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31152
31153         * m4/mbscspn.m4: Remove file.
31154         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31155         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31156
31157         * m4/mbslen.m4: Remove file.
31158         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31159         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31160
31161         * m4/mbsncasecmp.m4: Remove file.
31162         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31163         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31164
31165         * m4/mbsnlen.m4: Remove file.
31166         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31167         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31168
31169         * m4/mbspbrk.m4: Remove file.
31170         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31171         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31172
31173         * m4/mbspcasecmp.m4: Remove file.
31174         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31175         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31176
31177         * m4/mbsrchr.m4: Remove file.
31178         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31179         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31180
31181         * m4/mbssep.m4: Remove file.
31182         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31183         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31184
31185         * m4/mbsspn.m4: Remove file.
31186         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31187         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31188
31189         * m4/mbsstr.m4: Remove file.
31190         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31191         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31192
31193         * m4/mbstok_r.m4: Remove file.
31194         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31195         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31196
31197         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31198
31199         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31200         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31201
31202         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31203
31204 2009-03-08  Bruno Haible  <bruno@clisp.org>
31205
31206         Tests for module 'unicase/ulc-casecmp'.
31207         * modules/unicase/ulc-casecmp-tests: New file.
31208         * tests/unicase/test-ulc-casecmp1.sh: New file.
31209         * tests/unicase/test-ulc-casecmp2.sh: New file.
31210         * tests/unicase/test-ulc-casecmp.c: New file.
31211
31212         New module 'unicase/ulc-casecmp'.
31213         * lib/unicase.h (ulc_casecmp): New declaration.
31214         * lib/unicase/ulc-casecmp.c: New file.
31215         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31216         'const SRC_UNIT *'.
31217         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31218         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31219         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31220         * modules/unicase/ulc-casecmp: New file.
31221
31222         Tests for module 'unicase/u32-is-cased'.
31223         * modules/unicase/u32-is-cased-tests: New file.
31224         * tests/unicase/test-u32-is-cased.c: New file.
31225
31226         Tests for module 'unicase/u16-is-cased'.
31227         * modules/unicase/u16-is-cased-tests: New file.
31228         * tests/unicase/test-u16-is-cased.c: New file.
31229
31230         Tests for module 'unicase/u8-is-cased'.
31231         * modules/unicase/u8-is-cased-tests: New file.
31232         * tests/unicase/test-u8-is-cased.c: New file.
31233         * tests/unicase/test-is-cased.h: New file.
31234
31235         New module 'unicase/u32-is-cased'.
31236         * lib/unicase/u32-is-cased.c: New file.
31237         * modules/unicase/u32-is-cased: New file.
31238
31239         New module 'unicase/u16-is-cased'.
31240         * lib/unicase/u16-is-cased.c: New file.
31241         * modules/unicase/u16-is-cased: New file.
31242
31243         New module 'unicase/u8-is-cased'.
31244         * lib/unicase/u8-is-cased.c: New file.
31245         * lib/unicase/u-is-cased.h: New file.
31246         * modules/unicase/u8-is-cased: New file.
31247
31248         Tests for module 'unicase/u32-is-casefolded'.
31249         * modules/unicase/u32-is-casefolded-tests: New file.
31250         * tests/unicase/test-u32-is-casefolded.c: New file.
31251
31252         Tests for module 'unicase/u16-is-casefolded'.
31253         * modules/unicase/u16-is-casefolded-tests: New file.
31254         * tests/unicase/test-u16-is-casefolded.c: New file.
31255
31256         Tests for module 'unicase/u8-is-casefolded'.
31257         * modules/unicase/u8-is-casefolded-tests: New file.
31258         * tests/unicase/test-u8-is-casefolded.c: New file.
31259         * tests/unicase/test-is-casefolded.h: New file.
31260
31261         New module 'unicase/u32-is-casefolded'.
31262         * lib/unicase/u32-is-casefolded.c: New file.
31263         * modules/unicase/u32-is-casefolded: New file.
31264
31265         New module 'unicase/u16-is-casefolded'.
31266         * lib/unicase/u16-is-casefolded.c: New file.
31267         * modules/unicase/u16-is-casefolded: New file.
31268
31269         New module 'unicase/u8-is-casefolded'.
31270         * lib/unicase/u8-is-casefolded.c: New file.
31271         * modules/unicase/u8-is-casefolded: New file.
31272
31273         Tests for module 'unicase/u32-is-titlecase'.
31274         * modules/unicase/u32-is-titlecase-tests: New file.
31275         * tests/unicase/test-u32-is-titlecase.c: New file.
31276
31277         Tests for module 'unicase/u16-is-titlecase'.
31278         * modules/unicase/u16-is-titlecase-tests: New file.
31279         * tests/unicase/test-u16-is-titlecase.c: New file.
31280
31281         Tests for module 'unicase/u8-is-titlecase'.
31282         * modules/unicase/u8-is-titlecase-tests: New file.
31283         * tests/unicase/test-u8-is-titlecase.c: New file.
31284         * tests/unicase/test-is-titlecase.h: New file.
31285
31286         New module 'unicase/u32-is-titlecase'.
31287         * lib/unicase/u32-is-titlecase.c: New file.
31288         * modules/unicase/u32-is-titlecase: New file.
31289
31290         New module 'unicase/u16-is-titlecase'.
31291         * lib/unicase/u16-is-titlecase.c: New file.
31292         * modules/unicase/u16-is-titlecase: New file.
31293
31294         New module 'unicase/u8-is-titlecase'.
31295         * lib/unicase/u8-is-titlecase.c: New file.
31296         * modules/unicase/u8-is-titlecase: New file.
31297
31298         Tests for module 'unicase/u32-is-lowercase'.
31299         * modules/unicase/u32-is-lowercase-tests: New file.
31300         * tests/unicase/test-u32-is-lowercase.c: New file.
31301
31302         Tests for module 'unicase/u16-is-lowercase'.
31303         * modules/unicase/u16-is-lowercase-tests: New file.
31304         * tests/unicase/test-u16-is-lowercase.c: New file.
31305
31306         Tests for module 'unicase/u8-is-lowercase'.
31307         * modules/unicase/u8-is-lowercase-tests: New file.
31308         * tests/unicase/test-u8-is-lowercase.c: New file.
31309         * tests/unicase/test-is-lowercase.h: New file.
31310
31311         New module 'unicase/u32-is-lowercase'.
31312         * lib/unicase/u32-is-lowercase.c: New file.
31313         * modules/unicase/u32-is-lowercase: New file.
31314
31315         New module 'unicase/u16-is-lowercase'.
31316         * lib/unicase/u16-is-lowercase.c: New file.
31317         * modules/unicase/u16-is-lowercase: New file.
31318
31319         New module 'unicase/u8-is-lowercase'.
31320         * lib/unicase/u8-is-lowercase.c: New file.
31321         * modules/unicase/u8-is-lowercase: New file.
31322
31323         Tests for module 'unicase/u32-is-uppercase'.
31324         * modules/unicase/u32-is-uppercase-tests: New file.
31325         * tests/unicase/test-u32-is-uppercase.c: New file.
31326
31327         Tests for module 'unicase/u16-is-uppercase'.
31328         * modules/unicase/u16-is-uppercase-tests: New file.
31329         * tests/unicase/test-u16-is-uppercase.c: New file.
31330
31331         Tests for module 'unicase/u8-is-uppercase'.
31332         * modules/unicase/u8-is-uppercase-tests: New file.
31333         * tests/unicase/test-u8-is-uppercase.c: New file.
31334         * tests/unicase/test-is-uppercase.h: New file.
31335
31336         New module 'unicase/u32-is-uppercase'.
31337         * lib/unicase/u32-is-uppercase.c: New file.
31338         * modules/unicase/u32-is-uppercase: New file.
31339
31340         New module 'unicase/u16-is-uppercase'.
31341         * lib/unicase/u16-is-uppercase.c: New file.
31342         * modules/unicase/u16-is-uppercase: New file.
31343
31344         New module 'unicase/u8-is-uppercase'.
31345         * lib/unicase/u8-is-uppercase.c: New file.
31346         * modules/unicase/u8-is-uppercase: New file.
31347
31348         New module 'unicase/u32-is-invariant'.
31349         * lib/unicase/u32-is-invariant.c: New file.
31350         * modules/unicase/u32-is-invariant: New file.
31351
31352         New module 'unicase/u16-is-invariant'.
31353         * lib/unicase/u16-is-invariant.c: New file.
31354         * modules/unicase/u16-is-invariant: New file.
31355
31356         New module 'unicase/u8-is-invariant'.
31357         * lib/unicase/u8-is-invariant.c: New file.
31358         * lib/unicase/invariant.h: New file.
31359         * lib/unicase/u-is-invariant.h: New file.
31360         * modules/unicase/u8-is-invariant: New file.
31361
31362         Tests for module 'unicase/u32-casecoll'.
31363         * modules/unicase/u32-casecoll-tests: New file.
31364         * tests/unicase/test-u32-casecoll.c: New file.
31365
31366         Tests for module 'unicase/u16-casecoll'.
31367         * modules/unicase/u16-casecoll-tests: New file.
31368         * tests/unicase/test-u16-casecoll.c: New file.
31369
31370         Tests for module 'unicase/u8-casecoll'.
31371         * modules/unicase/u8-casecoll-tests: New file.
31372         * tests/unicase/test-u8-casecoll.c: New file.
31373
31374         New module 'unicase/u32-casecoll'.
31375         * lib/unicase/u32-casecoll.c: New file.
31376         * modules/unicase/u32-casecoll: New file.
31377
31378         New module 'unicase/u16-casecoll'.
31379         * lib/unicase/u16-casecoll.c: New file.
31380         * modules/unicase/u16-casecoll: New file.
31381
31382         New module 'unicase/u8-casecoll'.
31383         * lib/unicase/u8-casecoll.c: New file.
31384         * lib/unicase/u-casecoll.h: New file.
31385         * modules/unicase/u8-casecoll: New file.
31386
31387         New module 'unicase/u32-casexfrm'.
31388         * lib/unicase/u32-casexfrm.c: New file.
31389         * modules/unicase/u32-casexfrm: New file.
31390
31391         New module 'unicase/u16-casexfrm'.
31392         * lib/unicase/u16-casexfrm.c: New file.
31393         * modules/unicase/u16-casexfrm: New file.
31394
31395         New module 'unicase/u8-casexfrm'.
31396         * lib/unicase/u8-casexfrm.c: New file.
31397         * lib/unicase/u-casexfrm.h: New file.
31398         * modules/unicase/u8-casexfrm: New file.
31399
31400         Tests for module 'unicase/u32-casecmp'.
31401         * modules/unicase/u32-casecmp-tests: New file.
31402         * tests/unicase/test-u32-casecmp.c: New file.
31403
31404         Tests for module 'unicase/u16-casecmp'.
31405         * modules/unicase/u16-casecmp-tests: New file.
31406         * tests/unicase/test-u16-casecmp.c: New file.
31407
31408         Tests for module 'unicase/u8-casecmp'.
31409         * modules/unicase/u8-casecmp-tests: New file.
31410         * tests/unicase/test-u8-casecmp.c: New file.
31411         * tests/unicase/test-casecmp.h: New file.
31412
31413         New module 'unicase/u32-casecmp'.
31414         * lib/unicase/u32-casecmp.c: New file.
31415         * modules/unicase/u32-casecmp: New file.
31416
31417         New module 'unicase/u16-casecmp'.
31418         * lib/unicase/u16-casecmp.c: New file.
31419         * modules/unicase/u16-casecmp: New file.
31420
31421         New module 'unicase/u8-casecmp'.
31422         * lib/unicase/u8-casecmp.c: New file.
31423         * lib/unicase/u-casecmp.h: New file.
31424         * modules/unicase/u8-casecmp: New file.
31425
31426         Tests for module 'unicase/u32-casefold'.
31427         * modules/unicase/u32-casefold-tests: New file.
31428         * tests/unicase/test-u32-casefold.c: New file.
31429
31430         Tests for module 'unicase/u16-casefold'.
31431         * modules/unicase/u16-casefold-tests: New file.
31432         * tests/unicase/test-u16-casefold.c: New file.
31433
31434         Tests for module 'unicase/u8-casefold'.
31435         * modules/unicase/u8-casefold-tests: New file.
31436         * tests/unicase/test-u8-casefold.c: New file.
31437
31438         New module 'unicase/u32-casefold'.
31439         * lib/unicase/u32-casefold.c: New file.
31440         * modules/unicase/u32-casefold: New file.
31441
31442         New module 'unicase/u16-casefold'.
31443         * lib/unicase/u16-casefold.c: New file.
31444         * modules/unicase/u16-casefold: New file.
31445
31446         New module 'unicase/u8-casefold'.
31447         * lib/unicase/u8-casefold.c: New file.
31448         * lib/unicase/u-casefold.h: New file.
31449         * modules/unicase/u8-casefold: New file.
31450
31451         New module 'unicase/tocasefold'.
31452         * lib/unicase/casefold.h: New file.
31453         * lib/unicase/tocasefold.c: New file.
31454         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31455         * modules/unicase/tocasefold: New file.
31456
31457         Tests for module 'unicase/u32-totitle'.
31458         * modules/unicase/u32-totitle-tests: New file.
31459         * tests/unicase/test-u32-totitle.c: New file.
31460
31461         Tests for module 'unicase/u16-totitle'.
31462         * modules/unicase/u16-totitle-tests: New file.
31463         * tests/unicase/test-u16-totitle.c: New file.
31464
31465         Tests for module 'unicase/u8-totitle'.
31466         * modules/unicase/u8-totitle-tests: New file.
31467         * tests/unicase/test-u8-totitle.c: New file.
31468
31469         New module 'unicase/u32-totitle'.
31470         * lib/unicase/u32-totitle.c: New file.
31471         * modules/unicase/u32-totitle: New file.
31472
31473         New module 'unicase/u16-totitle'.
31474         * lib/unicase/u16-totitle.c: New file.
31475         * modules/unicase/u16-totitle: New file.
31476
31477         New module 'unicase/u8-totitle'.
31478         * lib/unicase/u8-totitle.c: New file.
31479         * lib/unicase/u-totitle.h: New file.
31480         * modules/unicase/u8-totitle: New file.
31481
31482         Tests for module 'unicase/u32-tolower'.
31483         * modules/unicase/u32-tolower-tests: New file.
31484         * tests/unicase/test-u32-tolower.c: New file.
31485
31486         Tests for module 'unicase/u16-tolower'.
31487         * modules/unicase/u16-tolower-tests: New file.
31488         * tests/unicase/test-u16-tolower.c: New file.
31489
31490         Tests for module 'unicase/u8-tolower'.
31491         * modules/unicase/u8-tolower-tests: New file.
31492         * tests/unicase/test-u8-tolower.c: New file.
31493
31494         New module 'unicase/u32-tolower'.
31495         * lib/unicase/u32-tolower.c: New file.
31496         * modules/unicase/u32-tolower: New file.
31497
31498         New module 'unicase/u16-tolower'.
31499         * lib/unicase/u16-tolower.c: New file.
31500         * modules/unicase/u16-tolower: New file.
31501
31502         New module 'unicase/u8-tolower'.
31503         * lib/unicase/u8-tolower.c: New file.
31504         * modules/unicase/u8-tolower: New file.
31505
31506         Tests for module 'unicase/u32-toupper'.
31507         * modules/unicase/u32-toupper-tests: New file.
31508         * tests/unicase/test-u32-toupper.c: New file.
31509
31510         Tests for module 'unicase/u16-toupper'.
31511         * modules/unicase/u16-toupper-tests: New file.
31512         * tests/unicase/test-u16-toupper.c: New file.
31513
31514         Tests for module 'unicase/u8-toupper'.
31515         * modules/unicase/u8-toupper-tests: New file.
31516         * tests/unicase/test-u8-toupper.c: New file.
31517
31518         New module 'unicase/u32-toupper'.
31519         * lib/unicase/u32-toupper.c: New file.
31520         * modules/unicase/u32-toupper: New file.
31521
31522         New module 'unicase/u16-toupper'.
31523         * lib/unicase/u16-toupper.c: New file.
31524         * modules/unicase/u16-toupper: New file.
31525
31526         New module 'unicase/u8-toupper'.
31527         * lib/unicase/u8-toupper.c: New file.
31528         * modules/unicase/u8-toupper: New file.
31529
31530         New module 'unicase/u32-casemap'.
31531         * lib/unicase/u32-casemap.c: New file.
31532         * modules/unicase/u32-casemap: New file.
31533
31534         New module 'unicase/u16-casemap'.
31535         * lib/unicase/u16-casemap.c: New file.
31536         * modules/unicase/u16-casemap: New file.
31537
31538         New module 'unicase/u8-casemap'.
31539         * lib/unicase/unicasemap.h: New file.
31540         * lib/unicase/u8-casemap.c: New file.
31541         * lib/unicase/u-casemap.h: New file.
31542         * modules/unicase/u8-casemap: New file.
31543
31544         New module 'unicase/special-casing'.
31545         * lib/unicase/special-casing.h: New file.
31546         * lib/unicase/special-casing.c: New file.
31547         * lib/unicase/special-casing-table.gperf: New file, generated by
31548         gen-uni-tables.c.
31549         * modules/unicase/special-casing: New file.
31550
31551         Tests for module 'unicase/locale-language'.
31552         * modules/unicase/locale-language-tests: New file.
31553         * tests/unicase/test-locale-language.sh: New file.
31554         * tests/unicase/test-locale-language.c: New file.
31555
31556         New module 'unicase/locale-language'.
31557         * lib/unicase/locale-language.c: New file.
31558         * lib/unicase/locale-languages.gperf: New file.
31559         * modules/unicase/locale-language: New file.
31560
31561         Generate more tables for case conversion and case folding.
31562         * lib/gen-uni-tables.c (SCC_*): New enum items.
31563         (struct special_casing_rule): New type.
31564         (casing_rules, num_casing_rules, allocated_casing_rules): New
31565         variables.
31566         (add_casing_rule, fill_casing_rules): New functions.
31567         (struct casefold_rule): New type.
31568         (casefolding_rules, num_casefolding_rules,
31569         allocated_casefolding_rules): New variables.
31570         (fill_casefolding_rules): New function.
31571         (unicode_casefold): New variable.
31572         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31573         sort_casing_rules, output_casing_rules): New functions.
31574         (main): Accept to more arguments: SpecialCasing.txt and
31575         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31576         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31577         Output mapping for casefolding.
31578
31579         * lib/unicase.h: Include stdbool.h, uninorm.h.
31580         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31581         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31582         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31583         arguments.
31584         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31585         resultp arguments.
31586         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31587         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31588         resultp arguments.
31589         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31590         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31591         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31592         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31593         declarations.
31594         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31595
31596 2009-03-08  Bruno Haible  <bruno@clisp.org>
31597
31598         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31599         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31600         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31601         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31602
31603 2009-03-07  Bruno Haible  <bruno@clisp.org>
31604
31605         Adjust u*_normcmp, u*_normcoll API.
31606         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31607         u16_normcoll, u32_normcoll): Change failure conventions.
31608         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31609         errno and return -1.
31610         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31611
31612 2009-03-07  Bruno Haible  <bruno@clisp.org>
31613
31614         Tests for module 'uninorm/u32-normcoll'.
31615         * modules/uninorm/u32-normcoll-tests: New file.
31616         * tests/uninorm/test-u32-normcoll.c: New file.
31617
31618         Tests for module 'uninorm/u16-normcoll'.
31619         * modules/uninorm/u16-normcoll-tests: New file.
31620         * tests/uninorm/test-u16-normcoll.c: New file.
31621
31622         Tests for module 'uninorm/u8-normcoll'.
31623         * modules/uninorm/u8-normcoll-tests: New file.
31624         * tests/uninorm/test-u8-normcoll.c: New file.
31625
31626 2009-03-07  Bruno Haible  <bruno@clisp.org>
31627
31628         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31629         tests/uninorm/test-u32-normcmp.c.
31630         * tests/uninorm/test-u32-normcmp.c: Include it.
31631         (test_nonascii): New function, extracted from main. Add some more
31632         tests.
31633         (main): Invoke test_ascii and test_nonascii.
31634         * modules/uninorm/u32-normcmp-tests (Files): Add
31635         tests/uninorm/test-u32-normcmp.h.
31636         (Depends-on): Remove uninorm/u32-normcmp.
31637
31638         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31639         tests/uninorm/test-u16-normcmp.c.
31640         * tests/uninorm/test-u16-normcmp.c: Include it.
31641         (test_nonascii): New function, extracted from main. Add some more
31642         tests.
31643         (main): Invoke test_ascii and test_nonascii.
31644         * modules/uninorm/u16-normcmp-tests (Files): Add
31645         tests/uninorm/test-u16-normcmp.h.
31646         (Depends-on): Remove uninorm/u16-normcmp.
31647
31648         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31649         tests/uninorm/test-u8-normcmp.c.
31650         * tests/uninorm/test-u8-normcmp.c: Include it.
31651         (test_nonascii): New function, extracted from main. Add some more
31652         tests.
31653         (main): Invoke test_ascii and test_nonascii.
31654         * modules/uninorm/u8-normcmp-tests (Files): Add
31655         tests/uninorm/test-u8-normcmp.h.
31656         (Depends-on): Remove uninorm/u8-normcmp.
31657
31658 2009-03-07  Bruno Haible  <bruno@clisp.org>
31659
31660         New module 'uninorm/u32-normcoll'.
31661         * lib/uninorm/u32-normcoll.c: New file.
31662         * modules/uninorm/u32-normcoll: New file.
31663
31664         New module 'uninorm/u16-normcoll'.
31665         * lib/uninorm/u16-normcoll.c: New file.
31666         * modules/uninorm/u16-normcoll: New file.
31667
31668         New module 'uninorm/u8-normcoll'.
31669         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31670         declarations.
31671         * lib/uninorm/u8-normcoll.c: New file.
31672         * lib/uninorm/u-normcoll.h: New file.
31673         * modules/uninorm/u8-normcoll: New file.
31674
31675         New module 'uninorm/u32-normxfrm'.
31676         * lib/uninorm/u32-normxfrm.c: New file.
31677         * modules/uninorm/u32-normxfrm: New file.
31678
31679         New module 'uninorm/u16-normxfrm'.
31680         * lib/uninorm/u16-normxfrm.c: New file.
31681         * modules/uninorm/u16-normxfrm: New file.
31682
31683         New module 'uninorm/u8-normxfrm'.
31684         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31685         declarations.
31686         * lib/uninorm/u8-normxfrm.c: New file.
31687         * lib/uninorm/u-normxfrm.h: New file.
31688         * modules/uninorm/u8-normxfrm: New file.
31689
31690 2009-03-07  Bruno Haible  <bruno@clisp.org>
31691
31692         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31693         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31694         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31695
31696 2009-03-07  Bruno Haible  <bruno@clisp.org>
31697
31698         New module 'memxfrm'.
31699         * lib/memxfrm.h: New file.
31700         * lib/memxfrm.c: New file.
31701         * modules/memxfrm: New file.
31702
31703 2009-03-07  Bruno Haible  <bruno@clisp.org>
31704
31705         New module 'memcmp2'.
31706         * lib/memcmp2.h: New file.
31707         * lib/memcmp2.c: New file.
31708         * modules/memcmp2: New file.
31709
31710 2009-03-07  Bruno Haible  <bruno@clisp.org>
31711
31712         Tests for module 'uninorm/decomposing-form'.
31713         * modules/uninorm/decomposing-form-tests: New file.
31714         * tests/uninorm/test-decomposing-form.c: New file.
31715
31716         New module 'uninorm/decomposing-form'.
31717         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31718         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31719         Add 'decomposing_variant' field.
31720         * lib/uninorm/decomposing-form.c: New file.
31721         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31722         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31723         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31724         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31725         * modules/uninorm/decomposing-form: New file.
31726         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31727         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31728
31729 2009-03-07  Bruno Haible  <bruno@clisp.org>
31730
31731         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31732         strings.
31733
31734 2009-03-06  Bruno Haible  <bruno@clisp.org>
31735
31736         Tests for module 'uninorm/u32-normcmp'.
31737         * tests/uninorm/test-u32-normcmp.c: New file.
31738         * modules/uninorm/u32-normcmp-tests: New file.
31739
31740         Tests for module 'uninorm/u16-normcmp'.
31741         * tests/uninorm/test-u16-normcmp.c: New file.
31742         * modules/uninorm/u16-normcmp-tests: New file.
31743
31744         Tests for module 'uninorm/u8-normcmp'.
31745         * tests/uninorm/test-u8-normcmp.c: New file.
31746         * modules/uninorm/u8-normcmp-tests: New file.
31747
31748         New module 'uninorm/u32-normcmp'.
31749         * lib/uninorm/u32-normcmp.c: New file.
31750         * modules/uninorm/u32-normcmp: New file.
31751
31752         New module 'uninorm/u16-normcmp'.
31753         * lib/uninorm/u16-normcmp.c: New file.
31754         * modules/uninorm/u16-normcmp: New file.
31755
31756         New module 'uninorm/u8-normcmp'.
31757         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31758         declarations.
31759         * lib/uninorm/u8-normcmp.c: New file.
31760         * lib/uninorm/u-normcmp.h: New file.
31761         * modules/uninorm/u8-normcmp: New file.
31762
31763 2009-03-06  Bruno Haible  <bruno@clisp.org>
31764
31765         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31766         Reported by Eric Blake.
31767
31768 2009-03-06  Eric Blake  <ebb9@byu.net>
31769             Bruno Haible  <bruno@clisp.org>
31770
31771         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31772         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31773         condition.
31774         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31775         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31776         condition.
31777         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31778
31779 2009-03-06  Eric Blake  <ebb9@byu.net>
31780
31781         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31782         to avoid compiler warnings.
31783         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31784
31785 2009-03-05  Bruno Haible  <bruno@clisp.org>
31786
31787         * tests/test-ftell.c (main): Disable test beyond end of file on
31788         FreeMiNT.
31789         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31790
31791 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31792
31793         * lib/filevercmp.c: Move hidden files up in ordering.
31794         * tests/test-filevercmp.c: Add tests for hidden files.
31795
31796 2009-03-04  Bruno Haible  <bruno@clisp.org>
31797
31798         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31799         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31800         AM_CFLAGS.
31801         Reported by Simon Josefsson.
31802
31803 2009-03-03  Bruno Haible  <bruno@clisp.org>
31804
31805         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31806         Reported by Simon Josefsson.
31807
31808         * doc/ld-version-script.texi: Update node reference.
31809
31810 2009-03-03  Bruno Haible  <bruno@clisp.org>
31811
31812         * modules/visibility (License): Change to 'unlimited'.
31813         Suggested by Simon Josefsson.
31814
31815 2009-03-03  Jim Meyering  <meyering@redhat.com>
31816
31817         unlinkdir: cannot_unlink_dir may modify process state
31818         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31819         it's neither thread-safe nor appropriate for use in a library.
31820
31821 2009-03-03  Eric Blake  <ebb9@byu.net>
31822
31823         test-closein: silence test under Darwin
31824         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31825         care if it dies from EPIPE or EBADF.
31826
31827 2009-03-03  Bruno Haible  <bruno@clisp.org>
31828
31829         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31830         earlier.
31831         * doc/visibility.texi: Fix @node and @section.
31832
31833 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31834
31835         * doc/gnulib.texi: Link to sections for ld version script and
31836         visibility.
31837         * doc/visibility.texi: Add @node and @section.
31838         * modules/ld-version-script: New module.
31839         * m4/ld-version-script.m4: New file.
31840         * doc/ld-version-script.texi: New file.
31841
31842 2009-03-02  David Lutterkort  <lutter@redhat.com>
31843
31844         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31846
31847 2009-03-02  Bruno Haible  <bruno@clisp.org>
31848
31849         * doc/visibility.texi: Mention libtool's -export-symbols option.
31850
31851 2009-03-02  Jim Meyering  <meyering@redhat.com>
31852
31853         announce-gen: new option: --no-print-checksums
31854         * build-aux/announce-gen (usage): Describe it.
31855         (print_checksums): Print a newline here, not in the [*] footnote.
31856         (main): Honor it.
31857
31858 2009-03-01  Bruno Haible  <bruno@clisp.org>
31859
31860         Use socklen_t in the native Windows replacements prototypes.
31861         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31862         instead of 'int'.
31863         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31864         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31865         * modules/getsockopt (Depends-on): Add socklen.
31866         * modules/setsockopt (Depends-on): Add socklen.
31867
31868 2009-03-01  Bruno Haible  <bruno@clisp.org>
31869
31870         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31871         least 4.2.
31872
31873 2009-03-01  Eric Blake  <ebb9@byu.net>
31874             Bruno Haible  <bruno@clisp.org>
31875
31876         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31877         error messages.
31878         * lib/wait-process.c (wait_subprocess): Omit error message about
31879         deadly signal sent to the child of termsigp != NULL.
31880
31881 2009-03-01  Eric Blake  <ebb9@byu.net>
31882
31883         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31884
31885 2009-03-01  Bruno Haible  <bruno@clisp.org>
31886
31887         Avoid a gcc warning.
31888         * tests/test-sched.c (b): Make global.
31889         Reported by Eric Blake.
31890
31891 2009-01-19  Martin Lambers  <marlam@marlam.de>
31892
31893         Provide POSIX semantics for socket timeout options on W32.
31894         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31895         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31896         * modules/setsockopt: Depend on sys_time module for struct timeval.
31897         * modules/getsockopt: Depend on sys_time module for struct timeval.
31898
31899 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31900
31901         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31902         __USE_GNU, for consistency with netdb.in.h.
31903         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31904
31905 2009-03-01  Bruno Haible  <bruno@clisp.org>
31906
31907         More support for FreeMiNT.
31908         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31909         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31910
31911 2009-03-01  Bruno Haible  <bruno@clisp.org>
31912
31913         More support for FreeMiNT.
31914         * lib/fpurge.c (fpurge): Correct last commit.
31915         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31916
31917 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31918
31919         Fix unportable awk script in vc-list-files.
31920         * build-aux/vc-list-files: In the replacement awk script, use
31921         substr with a second argument of 1, not zero.
31922         Report by Simon Josefsson.
31923
31924 2009-02-28  Bruno Haible  <bruno@clisp.org>
31925
31926         More support for FreeMiNT.
31927         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31928         to FreeMiNT today.
31929         * lib/fwriting.c (fwriting): Likewise.
31930         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31931
31932 2009-02-28  Bruno Haible  <bruno@clisp.org>
31933
31934         * tests/test-freadseek.c (main): Disable test beyond end of file on
31935         FreeMiNT.
31936         * tests/test-ftello.c (main): Likewise.
31937         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31938
31939 2009-02-28  Bruno Haible  <bruno@clisp.org>
31940
31941         Add tentative support for FreeMiNT.
31942         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31943         * lib/fpurge.c (fpurge): Likewise.
31944         * lib/freadable.c (freadable): Likewise.
31945         * lib/freading.c (freading): Likewise.
31946         * lib/freadptr.c (freadptr): Likewise.
31947         * lib/freadseek.c (freadptrinc): Likewise.
31948         * lib/fseeko.c (rpl_fseeko): Likewise.
31949         * lib/fseterr.c (fseterr): Likewise.
31950         * lib/fwritable.c (fwritable): Likewise.
31951         * lib/fwriting.c (fwriting): Likewise.
31952         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31953         Hourihane.
31954         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31955
31956 2009-02-28  Bruno Haible  <bruno@clisp.org>
31957
31958         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31959         SIGCHLD.
31960         Reported by Jim Meyering.
31961
31962 2009-02-28  Bruno Haible  <bruno@clisp.org>
31963
31964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31965         Mention the results of these tests on various platforms.
31966         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31967         order.
31968         * doc/posix-functions/printf.texi: Likewise.
31969         * doc/posix-functions/snprintf.texi: Likewise.
31970         * doc/posix-functions/sprintf.texi: Likewise.
31971         * doc/posix-functions/vfprintf.texi: Likewise.
31972         * doc/posix-functions/vprintf.texi: Likewise.
31973         * doc/posix-functions/vsnprintf.texi: Likewise.
31974         * doc/posix-functions/vsprintf.texi: Likewise.
31975         * doc/glibc-functions/obstack_printf.texi: Likewise.
31976         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31977
31978 2009-02-28  Bruno Haible  <bruno@clisp.org>
31979
31980         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31981         Reported by Loïc Minier <lool@dooz.org>.
31982
31983 2009-02-27  Bruno Haible  <bruno@clisp.org>
31984
31985         * gnulib-tool (func_import): Make the sed expression used to create the
31986         sed script for updating the .gitignore file POSIX compliant.
31987         Reported by Eric Blake.
31988
31989 2009-02-27  Bruno Haible  <bruno@clisp.org>
31990
31991         * gnulib-tool (sed): Don't alias as "sed --posix".
31992         Reported by Eric Blake.
31993
31994 2009-02-27  Bruno Haible  <bruno@clisp.org>
31995
31996         Avoid test link errors.
31997         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31998         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31999         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32000         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32002
32003 2009-02-27  Bruno Haible  <bruno@clisp.org>
32004
32005         Avoid spurious "(cached)" in configure output.
32006         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32007         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32008         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32009         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32010         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32011         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32012         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32013         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32014         Reported by Eric Blake.
32015
32016 2009-02-27  Eric Blake  <ebb9@byu.net>
32017
32018         printf: fix regression in previous patch
32019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32020
32021 2009-02-27  Bruno Haible  <bruno@clisp.org>
32022
32023         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32024         value.
32025         * lib/stdint.in.h: Likewise.
32026         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32027
32028 2009-02-27  Eric Blake  <ebb9@byu.net>
32029
32030         doc: mention more functions added in cygwin 1.7.0
32031         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32032         addition.
32033         * doc/posix-functions/open_wmemstream.texi: Likewise.
32034         * doc/posix-functions/wcsnlen.texi: Likewise.
32035         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32036         * doc/posix-functions/wcstod.texi: Likewise.
32037         * doc/posix-functions/wcstof.texi: Likewise.
32038         * doc/posix-functions/wcstoimax.texi: Likewise.
32039         * doc/posix-functions/wcstok.texi: Likewise.
32040         * doc/posix-functions/wcstoumax.texi: Likewise.
32041
32042         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32043         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32044         * doc/posix-functions/fprintf.texi: Update.
32045         * doc/posix-functions/printf.texi: Update.
32046         * doc/posix-functions/snprintf.texi: Update.
32047         * doc/posix-functions/sprintf.texi: Update.
32048         * doc/posix-functions/vfprintf.texi: Update.
32049         * doc/posix-functions/vprintf.texi: Update.
32050         * doc/posix-functions/vsnprintf.texi: Update.
32051         * doc/posix-functions/vsprintf.texi: Update.
32052         * doc/glibc-functions/obstack_printf.texi: Update.
32053         * doc/glibc-functions/obstack_vprintf.texi: Update.
32054
32055 2009-02-26  Eric Blake  <ebb9@byu.net>
32056
32057         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32058         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32059         compilation bug by using runtime conversion.
32060         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32061         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32062         * modules/ceill-tests (Files): Use nan.h.
32063         * modules/floorl-tests (Files): Likewise.
32064         * modules/frexpl-tests (Files): Likewise.
32065         * modules/isnanl-tests (Files): Likewise.
32066         * modules/ldexpl-tests (Files): Likewise.
32067         * modules/roundl-tests (Files): Likewise.
32068         * modules/truncl-tests (Files): Likewise.
32069         * tests/test-ceill.c (main): Use a working NaN.
32070         * tests/test-floorl.c (main): Likewise.
32071         * tests/test-frexpl.c (main): Likewise.
32072         * tests/test-isnan.c (test_long_double): Likewise.
32073         * tests/test-isnanl.h (main): Likewise.
32074         * tests/test-ldexpl.h (main): Likewise.
32075         * tests/test-roundl.h (main): Likewise.
32076         * tests/test-truncl.h (main): Likewise.
32077         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32078
32079 2009-02-26  Eric Blake  <ebb9@byu.net>
32080             Bruno Haible  <bruno@clisp.org>
32081
32082         Work around a *printf bug with %ls on Solaris.
32083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32084         precision is specified, sprintf stops converting the wide string
32085         argument when the number of bytes that have been produced by this
32086         conversion equals or exceeds the precision.
32087         * doc/posix-functions/fprintf.texi: Update.
32088         * doc/posix-functions/printf.texi: Update.
32089         * doc/posix-functions/snprintf.texi: Update.
32090         * doc/posix-functions/sprintf.texi: Update.
32091         * doc/posix-functions/vfprintf.texi: Update.
32092         * doc/posix-functions/vprintf.texi: Update.
32093         * doc/posix-functions/vsnprintf.texi: Update.
32094         * doc/posix-functions/vsprintf.texi: Update.
32095         * doc/glibc-functions/obstack_printf.texi: Update.
32096         * doc/glibc-functions/obstack_vprintf.texi: Update.
32097
32098 2009-02-26  Eric Blake  <ebb9@byu.net>
32099
32100         stdlib: favor compiler check of random.h
32101         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32102         to avoid an ObjC random.h installed by Swarm.
32103
32104 2009-02-26  Bruno Haible  <bruno@clisp.org>
32105
32106         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32107         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32108         Reported by Gary V. Vaughan <gary@gnu.org>.
32109
32110 2009-02-26  Bruno Haible  <bruno@clisp.org>
32111
32112         Fix *printf behaviour regarding the %ls directive.
32113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32114         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32115         NEED_PRINTF_DIRECTIVE_LS.
32116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32117         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32119         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32120         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32121         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32122         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32127         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32128         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32131         * doc/posix-functions/fprintf.texi: Update.
32132         * doc/posix-functions/printf.texi: Update.
32133         * doc/posix-functions/snprintf.texi: Update.
32134         * doc/posix-functions/sprintf.texi: Update.
32135         * doc/posix-functions/vfprintf.texi: Update.
32136         * doc/posix-functions/vprintf.texi: Update.
32137         * doc/posix-functions/vsnprintf.texi: Update.
32138         * doc/posix-functions/vsprintf.texi: Update.
32139         * doc/glibc-functions/obstack_printf.texi: Update.
32140         * doc/glibc-functions/obstack_vprintf.texi: Update.
32141         Reported by Eric Blake.
32142
32143 2009-02-25  Bruno Haible  <bruno@clisp.org>
32144
32145         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32146         with known value.
32147         Reported by Gary V. Vaughan <gary@gnu.org>.
32148
32149 2009-02-25  Bruno Haible  <bruno@clisp.org>
32150
32151         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32152         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32153         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32154         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32155         Reported by Gary V. Vaughan <gary@gnu.org>.
32156
32157 2009-02-25  Bruno Haible  <bruno@clisp.org>
32158
32159         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32160         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32161         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32162         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32163         Reported by Gary V. Vaughan <gary@gnu.org>.
32164
32165 2009-02-25  Eric Blake  <ebb9@byu.net>
32166
32167         tests: skip fseek/ftell tests if ungetc is broken
32168         * m4/ungetc.m4: New file.
32169         * modules/fseek-tests: Split test, so ungetc dependency is
32170         separate from rest of test.
32171         * modules/fseeko-tests: Likewise.
32172         * modules/ftell-tests: Likewise.
32173         * modules/ftello-tests: Likewise.
32174         * tests/test-fseek.c (main): Isolate ungetc dependency.
32175         * tests/test-fseeko.c (main): Likewise.
32176         * tests/test-ftell.c (main): Likewise.
32177         * tests/test-ftello.c (main): Likewise.
32178         * tests/test-fseek2.sh: New file.
32179         * tests/test-fseeko2.sh: Likewise.
32180         * tests/test-ftell2.sh: Likewise.
32181         * tests/test-ftello2.sh: Likewise.
32182
32183 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32184
32185         test-getaddrinfo: fix usage of skip return code 77
32186         * tests/test-gettaddrinfo.c: Return skip code 77 only
32187         for first occurance of skip (4x77 is not 77)
32188
32189 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32190
32191         strtod: avoid C99 decl-after-statement
32192         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32193
32194 2009-02-24  Eric Blake  <ebb9@byu.net>
32195
32196         strtod: detect HP-UX 11.31 bug
32197         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32198         Reported by Gary V. Vaughan.
32199
32200 2009-02-23  Bruno Haible  <bruno@clisp.org>
32201
32202         Fix invalid read past end of memory block.
32203         * lib/vasnprintf.c (DCHAR_SET): Define.
32204         (local_wcslen): Define only when needed.
32205         (local_strnlen, local_wcsnlen): New functions.
32206         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32207         directives that involve a conversion ourselves.
32208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32209         wcsnlen, mbrtowc, wcrtomb.
32210         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32211         * tests/test-vasprintf-posix.c (test_function): Likewise.
32212         * tests/test-snprintf-posix.h (test_function): Likewise.
32213         * tests/test-sprintf-posix.h (test_function): Likewise.
32214         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32215
32216 2009-02-22  Bruno Haible  <bruno@clisp.org>
32217
32218         Implement new clarified decomposition of Hangul syllables.
32219         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32220         of type LTV, return only a pairwise decomposition.
32221         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32222         Likewise.
32223         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32224         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32225         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32226
32227 2009-02-22  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32230         zero-length results and shrink excess allocated memory.
32231         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32232         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32233         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32234         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32235         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32236         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32237         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32238         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32239         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32240         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32241         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32242         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32243
32244 2009-02-21  Bruno Haible  <bruno@clisp.org>
32245
32246         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32247         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32248         spaces after a period. Put a space between a macro name and its
32249         argument list. Trivial rewordings.
32250         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32251         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32252         (main): Return 0 explicitly.
32253
32254 2009-02-21  Bruno Haible  <bruno@clisp.org>
32255
32256         Tests for module 'uninorm/filter'.
32257         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32258         * modules/uninorm/filter-tests: New file.
32259
32260         New module 'uninorm/filter'.
32261         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32262         uninorm_filter_flush, uninorm_filter_free): New declarations.
32263         * lib/uninorm/uninorm-filter.c: New file.
32264         * modules/uninorm/filter: New file.
32265
32266 2009-02-21  Bruno Haible  <bruno@clisp.org>
32267
32268         Tests for module 'uninorm/nfkc'.
32269         * tests/uninorm/test-nfkc.c: New file.
32270         * tests/uninorm/test-u8-nfkc.c: New file.
32271         * tests/uninorm/test-u16-nfkc.c: New file.
32272         * tests/uninorm/test-u32-nfkc.c: New file.
32273         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32274         * tests/uninorm/test-u32-nfkc-big.c: New file.
32275         * modules/uninorm/nfkc-tests: New file.
32276
32277         New module 'uninorm/nfkc'.
32278         * lib/uninorm/nfkc.c: New file.
32279         * modules/uninorm/nfkc: New file.
32280
32281         Tests for module 'uninorm/nfkd'.
32282         * tests/uninorm/test-nfkd.c: New file.
32283         * tests/uninorm/test-u8-nfkd.c: New file.
32284         * tests/uninorm/test-u16-nfkd.c: New file.
32285         * tests/uninorm/test-u32-nfkd.c: New file.
32286         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32287         * tests/uninorm/test-u32-nfkd-big.c: New file.
32288         * modules/uninorm/nfkd-tests: New file.
32289
32290         New module 'uninorm/nfkd'.
32291         * lib/uninorm/nfkd.c: New file.
32292         * modules/uninorm/nfkd: New file.
32293
32294         Tests for module 'uninorm/nfc'.
32295         * tests/uninorm/test-nfc.c: New file.
32296         * tests/uninorm/test-u8-nfc.c: New file.
32297         * tests/uninorm/test-u16-nfc.c: New file.
32298         * tests/uninorm/test-u32-nfc.c: New file.
32299         * tests/uninorm/test-u32-nfc-big.sh: New file.
32300         * tests/uninorm/test-u32-nfc-big.c: New file.
32301         * modules/uninorm/nfc-tests: New file.
32302
32303         New module 'uninorm/nfc'.
32304         * lib/uninorm/nfc.c: New file.
32305         * modules/uninorm/nfc: New file.
32306
32307         Tests for module 'uninorm/nfd'.
32308         * tests/uninorm/test-nfd.c: New file.
32309         * tests/uninorm/test-u8-nfd.c: New file.
32310         * tests/uninorm/test-u16-nfd.c: New file.
32311         * tests/uninorm/test-u32-nfd.c: New file.
32312         * tests/uninorm/test-u32-nfd-big.sh: New file.
32313         * tests/uninorm/test-u32-nfd-big.c: New file.
32314         * tests/uninorm/test-u32-normalize-big.h: New file.
32315         * tests/uninorm/test-u32-normalize-big.c: New file.
32316         * tests/uninorm/NormalizationTest.txt: New file, created from
32317         Unicode 5.1.0 NormalizationTest.txt.
32318         * modules/uninorm/nfd-tests: New file.
32319
32320         New module 'uninorm/nfd'.
32321         * lib/uninorm/nfd.c: New file.
32322         * modules/uninorm/nfd: New file.
32323
32324         New module 'uninorm/u32-normalize'.
32325         * lib/uninorm/u32-normalize.c: New file.
32326         * modules/uninorm/u32-normalize: New file.
32327
32328         New module 'uninorm/u16-normalize'.
32329         * lib/uninorm/u16-normalize.c: New file.
32330         * modules/uninorm/u16-normalize: New file.
32331
32332         New module 'uninorm/u8-normalize'.
32333         * lib/uninorm/u8-normalize.c: New file.
32334         * lib/uninorm/normalize-internal.h: New file.
32335         * lib/uninorm/u-normalize-internal.h: New file.
32336         * modules/uninorm/u8-normalize: New file.
32337
32338         New module 'uninorm/decompose-internal'.
32339         * lib/uninorm/decompose-internal.c: New file.
32340         * modules/uninorm/decompose-internal: New file.
32341
32342         Tests for module 'uninorm/composition'.
32343         * tests/uninorm/test-composition.c: New file.
32344         * modules/uninorm/composition-tests: New file.
32345
32346         New module 'uninorm/composition'.
32347         * lib/uninorm/composition.c: New file.
32348         * lib/uninorm/composition-table.gperf: New file, generated by
32349         gen-uni-tables.
32350         * modules/uninorm/composition: New file.
32351
32352         Tests for module 'uninorm/compat-decomposition'.
32353         * tests/uninorm/test-compat-decomposition.c: New file.
32354         * modules/uninorm/compat-decomposition-tests: New file.
32355
32356         New module 'uninorm/compat-decomposition'.
32357         * lib/uninorm/decompose-internal.h: New file.
32358         * lib/uninorm/compat-decomposition.c: New file.
32359         * modules/uninorm/compat-decomposition: New file.
32360
32361         Tests for module 'uninorm/canonical-decomposition'.
32362         * tests/uninorm/test-canonical-decomposition.c: New file.
32363         * modules/uninorm/canonical-decomposition-tests: New file.
32364
32365         New module 'uninorm/canonical-decomposition'.
32366         * lib/uninorm/canonical-decomposition.c: New file.
32367         * modules/uninorm/canonical-decomposition: New file.
32368
32369         Tests for module 'uninorm/decomposition'.
32370         * tests/uninorm/test-decomposition.c: New file.
32371         * modules/uninorm/decomposition-tests: New file.
32372
32373         New module 'uninorm/decomposition'.
32374         * lib/uninorm/decomposition.c: New file.
32375         * modules/uninorm/decomposition: New file.
32376
32377         New module 'uninorm/decomposition-table'.
32378         * lib/uninorm/decomposition-table.h: New file.
32379         * lib/uninorm/decomposition-table.c: New file.
32380         * lib/uninorm/decomposition-table1.h: New file, generated by
32381         gen-uni-tables.
32382         * lib/uninorm/decomposition-table2.h: New file, generated by
32383         gen-uni-tables.
32384         * modules/uninorm/decomposition-table: New file.
32385
32386         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32387         (UC_DECOMP_*): New enumeration items.
32388         (get_decomposition): New function.
32389         (struct decomp_table): New type.
32390         (output_decomposition, output_decomposition_tables): New functions.
32391         (unicode_composition_exclusions): New variable.
32392         (fill_composition_exclusions, debug_output_composition_tables): New
32393         functions.
32394         (main): Accept one more argument. Invoke fill_composition_exclusions.
32395         Output decomposition and composition tables.
32396
32397         New module 'uninorm/base'.
32398         * lib/uninorm.h: New file.
32399         * lib/unictype.h: Update comment.
32400         * modules/uninorm/base: New file.
32401
32402 2009-02-21  David Lutterkort  <lutter@redhat.com>
32403
32404         Tests for module 'safe-alloc'.
32405         * tests/test-safe-alloc.c: New file.
32406         * modules/safe-alloc-tests: New file.
32407
32408         New module 'safe-alloc'.
32409         * lib/safe-alloc.h: New file.
32410         * lib/safe-alloc.c: New file.
32411         * m4/safe-alloc.m4: New file.
32412         * modules/safe-alloc: New file.
32413         * doc/safe-alloc.texi: New file.
32414         * doc/gnulib.texi: Include it.
32415         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32416         safe-alloc.
32417
32418 2009-02-18  Bruno Haible  <bruno@clisp.org>
32419
32420         Fix link error on non-glibc systems.
32421         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32422         variable.
32423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32424
32425 2009-02-18  Jim Meyering  <meyering@redhat.com>
32426
32427         fts: avoid used-uninitialized error due to recent change
32428         * lib/fts.c (fts_read): Guard uses of the new member,
32429         parent->fts_n_dirs_remaining, since it's not relevant for
32430         the parent of a directory specified on the command-line.
32431
32432 2009-02-17  James Youngman  <jay@gnu.org>
32433             Bruno Haible  <bruno@clisp.org>
32434
32435         * m4/include_next.m4: Reformulate comment.
32436
32437 2009-02-16  Jim Meyering  <meyering@redhat.com>
32438
32439         fts: add #if guards so that the fts_lgpl module still builds
32440         * lib/fts.c: Guard just-added hash-table-using parts with
32441         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32442         Reported by Simon Josefsson.
32443
32444 2009-02-15  Bruno Haible  <bruno@clisp.org>
32445
32446         * modules/array-mergesort-tests: New file.
32447         * tests/test-array-mergesort.c: New file.
32448
32449         New module 'array-mergesort'.
32450         * modules/array-mergesort: New file.
32451         * lib/array-mergesort.h: New file.
32452
32453 2009-02-15  Bruno Haible  <bruno@clisp.org>
32454
32455         Fix 2009-02-07 commit.
32456         * lib/gen-uni-tables.c (output_predicate, output_category,
32457         output_combclass, output_bidi_category, output_decimal_digit,
32458         output_digit, output_numeric, output_mirror, output_scripts,
32459         output_ident_category, output_simple_mapping): Fix format directives.
32460         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32461
32462 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32463
32464         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32465         fixes are available from IBM.
32466
32467 2009-02-13  Jim Meyering  <meyering@redhat.com>
32468
32469         fts: arrange not to stat non-directories in more cases
32470         This makes GNU find (when it doesn't need to stat each file)
32471         *much* more efficient at traversing reiserfs file systems.
32472         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32473         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32474         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32475         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32476         (leaf_optimization_applies): New function.
32477         (LCO_hash, LCO_compare): New helper functions.
32478         (link_count_optimize_ok): New function.
32479         (fts_stat): Initialize new member (if dir).
32480         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32481         we've just stat'ed a directory.  Skip the stat call when possible.
32482         ---
32483         Note this AFS-related exchange:
32484         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32485         and note find's pioctl call in find/fstype.c.
32486         But that is necessary only if you want to enable the
32487         optimization for AFS, and for now, I don't.
32488
32489         fts: move a function definition "up" (no semantic change)
32490         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32491         "up" to precede upcoming use of a related function.
32492
32493 2009-02-11  Jim Meyering  <meyering@redhat.com>
32494
32495         fts: correct internal computation of nlinks (optimization-related)
32496         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32497         whether the current entry is a directory, so don't test it.
32498
32499 2009-02-10  Bruno Haible  <bruno@clisp.org>
32500
32501         Tests for module 'uniwbrk/ulc-wordbreaks'.
32502         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32503         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32504         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32505
32506         Tests for module 'uniwbrk/u32-wordbreaks'.
32507         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32508         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32509
32510         Tests for module 'uniwbrk/u16-wordbreaks'.
32511         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32512         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32513
32514         Tests for module 'uniwbrk/u8-wordbreaks'.
32515         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32516         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32517
32518 2009-02-10  Bruno Haible  <bruno@clisp.org>
32519
32520         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32521         property.
32522         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32523         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32524         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32525
32526 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32527
32528         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32529         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32530
32531 2009-02-10  Bruno Haible  <bruno@clisp.org>
32532
32533         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32534         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32535         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32536         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32537         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32538         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32539
32540 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32541
32542         * lib/sockets.h (gl_fd_to_handle): New function.
32543
32544         * tests/test-sockets.c: Call gl_fd_to_handle.
32545
32546 2009-02-09  Bruno Haible  <bruno@clisp.org>
32547
32548         * doc/havelib.texi: Document the conventions on bi-arch systems.
32549
32550 2009-02-08  Bruno Haible  <bruno@clisp.org>
32551
32552         Document the AC_LIB_LINKFLAGS macro.
32553         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32554         * doc/gnulib.texi: Include it.
32555
32556 2009-02-08  Bruno Haible  <bruno@clisp.org>
32557
32558         Fix wrong order of sections, compared to TOC.
32559         * doc/gnulib.texi: Include relocatable-maint.texi after the
32560         "Regular expressions" node, not before.
32561
32562 2009-02-08  Bruno Haible  <bruno@clisp.org>
32563
32564         Tests for module 'unicase/totitle'.
32565         * modules/unicase/totitle-tests: New file.
32566
32567         Tests for module 'unicase/tolower'.
32568         * modules/unicase/tolower-tests: New file.
32569
32570         Tests for module 'unicase/toupper'.
32571         * modules/unicase/toupper-tests: New file.
32572         * tests/unicase/test-mapping-part1.h: New file.
32573         * tests/unicase/test-mapping-part2.h: New file.
32574
32575         New module 'unicase/totitle'.
32576         * modules/unicase/totitle: New file.
32577         * lib/unicase/totitle.c: New file.
32578
32579         New module 'unicase/tolower'.
32580         * modules/unicase/tolower: New file.
32581         * lib/unicase/tolower.c: New file.
32582
32583         New module 'unicase/toupper'.
32584         * modules/unicase/toupper: New file.
32585         * lib/unicase/toupper.c: New file.
32586         * lib/unicase/simple-mapping.h: New file.
32587
32588         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32589         (mapping_table): New structure.
32590         (output_simple_mapping): New function.
32591         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32592         * modules/gen-uni-tables (Description): Update.
32593         * lib/unicase/toupper.h: New file, automatically generated by
32594         gen-uni-tables.
32595         * lib/unicase/tolower.h: New file, automatically generated by
32596         gen-uni-tables.
32597         * lib/unicase/totitle.h: New file, automatically generated by
32598         gen-uni-tables.
32599         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32600         gen-uni-tables.
32601         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32602         gen-uni-tables.
32603         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32604         gen-uni-tables.
32605
32606         New module 'unicase/base'.
32607         * modules/unicase/base: New file.
32608         * lib/unicase.h: New file.
32609
32610 2009-02-08  Bruno Haible  <bruno@clisp.org>
32611
32612         New module 'uniwbrk/ulc-wordbreaks'.
32613         * modules/uniwbrk/ulc-wordbreaks: New file.
32614         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32615
32616         New module 'uniwbrk/u32-wordbreaks'.
32617         * modules/uniwbrk/u32-wordbreaks: New file.
32618         * lib/uniwbrk/u32-wordbreaks.c: New file.
32619
32620         New module 'uniwbrk/u16-wordbreaks'.
32621         * modules/uniwbrk/u16-wordbreaks: New file.
32622         * lib/uniwbrk/u16-wordbreaks.c: New file.
32623
32624         New module 'uniwbrk/u8-wordbreaks'.
32625         * modules/uniwbrk/u8-wordbreaks: New file.
32626         * lib/uniwbrk/u8-wordbreaks.c: New file.
32627         * lib/uniwbrk/u-wordbreaks.h: New file.
32628
32629         New module 'uniwbrk/table'.
32630         * modules/uniwbrk/table: New file.
32631         * lib/uniwbrk/wbrktable.h: New file.
32632         * lib/uniwbrk/wbrktable.c: New file.
32633
32634         New module 'uniwbrk/wordbreak-property'.
32635         * modules/uniwbrk/wordbreak-property: New file.
32636         * lib/uniwbrk/wordbreak-property.c: New file.
32637
32638         * lib/gen-uni-tables.c (WBP_*): New enum items.
32639         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32640         (unicode_org_wbp): New variable.
32641         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32642         New functions.
32643         (wbp_table): New structure.
32644         (output_wbp, output_wbrk_tables): New functions.
32645         (main): Accept additional argument. Invoke fill_org_wbp,
32646         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32647         output_wbrk_tables.
32648         * modules/gen-uni-tables (Description): Update.
32649         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32650         gen-uni-tables.
32651
32652         New module 'uniwbrk/base'.
32653         * modules/uniwbrk/base: New file.
32654         * lib/uniwbrk.h: New file.
32655
32656 2009-02-08  Bruno Haible  <bruno@clisp.org>
32657
32658         Update to Unicode 5.1.0.
32659         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32660         U+2185..U+2188.
32661         (is_property_default_ignorable_code_point): Don't include characters
32662         of category Cc or Cs and not-a-characters.
32663         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32664         U+0D79, U+109E, U+109F, U+A60C.
32665         * lib/unictype/bidi_of.h: Regenerated.
32666         * lib/unictype/blocks.h: Regenerated.
32667         * lib/unictype/categ_C.h: Regenerated.
32668         * lib/unictype/categ_Cf.h: Regenerated.
32669         * lib/unictype/categ_Cn.h: Regenerated.
32670         * lib/unictype/categ_L.h: Regenerated.
32671         * lib/unictype/categ_Ll.h: Regenerated.
32672         * lib/unictype/categ_Lm.h: Regenerated.
32673         * lib/unictype/categ_Lo.h: Regenerated.
32674         * lib/unictype/categ_Lu.h: Regenerated.
32675         * lib/unictype/categ_M.h: Regenerated.
32676         * lib/unictype/categ_Mc.h: Regenerated.
32677         * lib/unictype/categ_Me.h: Regenerated.
32678         * lib/unictype/categ_Mn.h: Regenerated.
32679         * lib/unictype/categ_N.h: Regenerated.
32680         * lib/unictype/categ_Nd.h: Regenerated.
32681         * lib/unictype/categ_Nl.h: Regenerated.
32682         * lib/unictype/categ_No.h: Regenerated.
32683         * lib/unictype/categ_P.h: Regenerated.
32684         * lib/unictype/categ_Pd.h: Regenerated.
32685         * lib/unictype/categ_Pe.h: Regenerated.
32686         * lib/unictype/categ_Pf.h: Regenerated.
32687         * lib/unictype/categ_Pi.h: Regenerated.
32688         * lib/unictype/categ_Po.h: Regenerated.
32689         * lib/unictype/categ_Ps.h: Regenerated.
32690         * lib/unictype/categ_S.h: Regenerated.
32691         * lib/unictype/categ_Sk.h: Regenerated.
32692         * lib/unictype/categ_Sm.h: Regenerated.
32693         * lib/unictype/categ_So.h: Regenerated.
32694         * lib/unictype/categ_of.h: Regenerated.
32695         * lib/unictype/combining.h: Regenerated.
32696         * lib/unictype/ctype_alnum.h: Regenerated.
32697         * lib/unictype/ctype_alpha.h: Regenerated.
32698         * lib/unictype/ctype_graph.h: Regenerated.
32699         * lib/unictype/ctype_lower.h: Regenerated.
32700         * lib/unictype/ctype_print.h: Regenerated.
32701         * lib/unictype/ctype_punct.h: Regenerated.
32702         * lib/unictype/ctype_upper.h: Regenerated.
32703         * lib/unictype/decdigit.h: Regenerated.
32704         * lib/unictype/digit.h: Regenerated.
32705         * lib/unictype/mirror.h: Regenerated.
32706         * lib/unictype/numeric.h: Regenerated.
32707         * lib/unictype/pr_alphabetic.h: Regenerated.
32708         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32709         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32710         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32711         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32712         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32713         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32714         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32715         * lib/unictype/pr_combining.h: Regenerated.
32716         * lib/unictype/pr_dash.h: Regenerated.
32717         * lib/unictype/pr_decimal_digit.h: Regenerated.
32718         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32719         * lib/unictype/pr_deprecated.h: Regenerated.
32720         * lib/unictype/pr_diacritic.h: Regenerated.
32721         * lib/unictype/pr_extender.h: Regenerated.
32722         * lib/unictype/pr_format_control.h: Regenerated.
32723         * lib/unictype/pr_grapheme_base.h: Regenerated.
32724         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32725         * lib/unictype/pr_grapheme_link.h: Regenerated.
32726         * lib/unictype/pr_id_continue.h: Regenerated.
32727         * lib/unictype/pr_id_start.h: Regenerated.
32728         * lib/unictype/pr_ideographic.h: Regenerated.
32729         * lib/unictype/pr_ignorable_control.h: Regenerated.
32730         * lib/unictype/pr_lowercase.h: Regenerated.
32731         * lib/unictype/pr_math.h: Regenerated.
32732         * lib/unictype/pr_numeric.h: Regenerated.
32733         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32734         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32735         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32736         * lib/unictype/pr_other_id_continue.h: Regenerated.
32737         * lib/unictype/pr_other_lowercase.h: Regenerated.
32738         * lib/unictype/pr_other_math.h: Regenerated.
32739         * lib/unictype/pr_punctuation.h: Regenerated.
32740         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32741         * lib/unictype/pr_soft_dotted.h: Regenerated.
32742         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32743         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32744         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32745         * lib/unictype/pr_uppercase.h: Regenerated.
32746         * lib/unictype/pr_xid_continue.h: Regenerated.
32747         * lib/unictype/pr_xid_start.h: Regenerated.
32748         * lib/unictype/pr_zero_width.h: Regenerated.
32749         * lib/unictype/scripts.h: Regenerated.
32750         * lib/unictype/scripts_byname.gperf: Regenerated.
32751         * lib/unictype/sy_java_ident.h: Regenerated.
32752         * lib/unilbrk/lbrkprop1.h: Regenerated.
32753         * lib/unilbrk/lbrkprop2.h: Regenerated.
32754         * tests/unictype/test-categ_C.c: Regenerated.
32755         * tests/unictype/test-categ_Cf.c: Regenerated.
32756         * tests/unictype/test-categ_Cn.c: Regenerated.
32757         * tests/unictype/test-categ_L.c: Regenerated.
32758         * tests/unictype/test-categ_Ll.c: Regenerated.
32759         * tests/unictype/test-categ_Lm.c: Regenerated.
32760         * tests/unictype/test-categ_Lo.c: Regenerated.
32761         * tests/unictype/test-categ_Lu.c: Regenerated.
32762         * tests/unictype/test-categ_M.c: Regenerated.
32763         * tests/unictype/test-categ_Mc.c: Regenerated.
32764         * tests/unictype/test-categ_Me.c: Regenerated.
32765         * tests/unictype/test-categ_Mn.c: Regenerated.
32766         * tests/unictype/test-categ_N.c: Regenerated.
32767         * tests/unictype/test-categ_Nd.c: Regenerated.
32768         * tests/unictype/test-categ_Nl.c: Regenerated.
32769         * tests/unictype/test-categ_No.c: Regenerated.
32770         * tests/unictype/test-categ_P.c: Regenerated.
32771         * tests/unictype/test-categ_Pd.c: Regenerated.
32772         * tests/unictype/test-categ_Pe.c: Regenerated.
32773         * tests/unictype/test-categ_Pf.c: Regenerated.
32774         * tests/unictype/test-categ_Pi.c: Regenerated.
32775         * tests/unictype/test-categ_Po.c: Regenerated.
32776         * tests/unictype/test-categ_Ps.c: Regenerated.
32777         * tests/unictype/test-categ_S.c: Regenerated.
32778         * tests/unictype/test-categ_Sk.c: Regenerated.
32779         * tests/unictype/test-categ_Sm.c: Regenerated.
32780         * tests/unictype/test-categ_So.c: Regenerated.
32781         * tests/unictype/test-ctype_alnum.c: Regenerated.
32782         * tests/unictype/test-ctype_alpha.c: Regenerated.
32783         * tests/unictype/test-ctype_graph.c: Regenerated.
32784         * tests/unictype/test-ctype_lower.c: Regenerated.
32785         * tests/unictype/test-ctype_print.c: Regenerated.
32786         * tests/unictype/test-ctype_punct.c: Regenerated.
32787         * tests/unictype/test-ctype_upper.c: Regenerated.
32788         * tests/unictype/test-decdigit.h: Regenerated.
32789         * tests/unictype/test-digit.h: Regenerated.
32790         * tests/unictype/test-numeric.h: Regenerated.
32791         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32792         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32793         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32794         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32795         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32796         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32797         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32798         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32799         * tests/unictype/test-pr_combining.c: Regenerated.
32800         * tests/unictype/test-pr_dash.c: Regenerated.
32801         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32802         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32803         * tests/unictype/test-pr_deprecated.c: Regenerated.
32804         * tests/unictype/test-pr_diacritic.c: Regenerated.
32805         * tests/unictype/test-pr_extender.c: Regenerated.
32806         * tests/unictype/test-pr_format_control.c: Regenerated.
32807         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32808         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32809         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32810         * tests/unictype/test-pr_id_continue.c: Regenerated.
32811         * tests/unictype/test-pr_id_start.c: Regenerated.
32812         * tests/unictype/test-pr_ideographic.c: Regenerated.
32813         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32814         * tests/unictype/test-pr_lowercase.c: Regenerated.
32815         * tests/unictype/test-pr_math.c: Regenerated.
32816         * tests/unictype/test-pr_numeric.c: Regenerated.
32817         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32818         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32819         Regenerated.
32820         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32821         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32822         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32823         * tests/unictype/test-pr_other_math.c: Regenerated.
32824         * tests/unictype/test-pr_punctuation.c: Regenerated.
32825         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32826         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32827         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32828         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32829         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32830         * tests/unictype/test-pr_uppercase.c: Regenerated.
32831         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32832         * tests/unictype/test-pr_xid_start.c: Regenerated.
32833         * tests/unictype/test-pr_zero_width.c: Regenerated.
32834
32835         Update to Unicode 5.1.0.
32836         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32837         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32838         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32839         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32840         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32841         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32842         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32843         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32844         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32845         (nonspacing_table_ind): Update.
32846         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32847
32848         Update to Unicode 5.1.0.
32849         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32850         code transform.
32851         * lib/uniname/uniname.c (unicode_character_name,
32852         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32853         * lib/uniname/uninames.h: Regenerated.
32854         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32855
32856 2009-02-07  Bruno Haible  <bruno@clisp.org>
32857
32858         Merge gen-ctype and gen-lbrk into a single program.
32859         * lib/gen-uni-tables.c: New file, incorporating
32860         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32861         Add directory prefixes to the names of the generated files.
32862         * lib/unictype/gen-ctype.c: Remove file.
32863         * lib/unilbrk/gen-lbrk.c: Remove file.
32864         * modules/gen-uni-tables: New file.
32865         * modules/unictype/gen-ctype: Remove file.
32866         * modules/unilbrk/gen-lbrk: Remove file.
32867
32868 2009-02-07  Bruno Haible  <bruno@clisp.org>
32869
32870         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32871
32872         New module 'unistr/u32-strcoll'.
32873         * modules/unistr/u32-strcoll: New file.
32874         * lib/unistr/u32-strcoll.c: New file.
32875
32876         New module 'unistr/u16-strcoll'.
32877         * modules/unistr/u16-strcoll: New file.
32878         * lib/unistr/u16-strcoll.c: New file.
32879
32880         New module 'unistr/u8-strcoll'.
32881         * modules/unistr/u8-strcoll: New file.
32882         * lib/unistr/u8-strcoll.c: New file.
32883         * lib/unistr/u-strcoll.h: New file.
32884
32885 2009-02-07  Bruno Haible  <bruno@clisp.org>
32886
32887         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32888         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32889         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32890         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32891         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32892         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32893
32894 2009-02-07  Bruno Haible  <bruno@clisp.org>
32895
32896         Make 64-bit clean.
32897         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32898         output_combclass, output_bidi_category, output_decimal_digit,
32899         output_digit, output_numeric, output_mirror, output_scripts,
32900         output_ident_category): Use proper width specifier in format strings.
32901
32902 2009-02-07  Bruno Haible  <bruno@clisp.org>
32903
32904         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32905         failure behaviour.
32906
32907 2009-02-07  Jim Meyering  <meyering@redhat.com>
32908
32909         regex: avoid compilation failure with upcoming gcc-4.4
32910         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32911         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32912         "... error: integer overflow in preprocessor expression".
32913
32914 2009-02-05  Ben Pfaff  <blp@gnu.org>
32915
32916         Fix link errors on Windows when close module is used.
32917         * modules/close: Add $(LIB_CLOSE) to Link section.
32918         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32919         $(LIB_CLOSE) on Windows.
32920
32921 2009-02-05  Jim Meyering  <meyering@redhat.com>
32922
32923         still avoid unused-parameter warnings, but do it cleanly
32924         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32925         (get_fs_usage): Cast to void instead.
32926         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32927         (dev_from_mount_options, read_file_system_list): Cast to void.
32928         Prompted by Bruno Haible.
32929
32930 2009-02-04  Jim Meyering  <meyering@redhat.com>
32931
32932         fsusage.c: correct copyright year
32933         * lib/fsusage.c: Reflect year in which the change is pushed into
32934
32935         avoid misc. warnings
32936         * lib/fsusage.c (UNUSED_PARAM): Define.
32937         (get_fs_usage): Mark parameter "disk" as unused.
32938         * lib/getugroups.c (getgrent): Use "void" in prototype.
32939         * lib/mountlist.c: Mark unused parameters.
32940         (read_file_system_list): Declare a local with "const".
32941         * lib/nanosleep.c (getnow): Declare static.
32942         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32943
32944         dirfd: set errno upon failure
32945         * lib/dirfd.c: Include <errno.h>.
32946         Set errno to ENOTSUP when returning -1.
32947         * modules/dirfd (Depends-on): Add errno.
32948         Suggested by John Kodis <kodis@comcast.net>.
32949
32950 2009-02-01  Bruno Haible  <bruno@clisp.org>
32951
32952         Don't assume sizeof (long) >= sizeof (void *).
32953         * lib/memcmp.c: Include stdint.h.
32954         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32955         srcp2 to 'const byte *'.
32956         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32957         types to uintptr_t.
32958         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32959         * modules/memcmp (Depends-on): Add stdint.
32960         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32961
32962 2009-01-30  Eric Blake  <ebb9@byu.net>
32963
32964         fix more require-before-expand issues
32965         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32966         expand, AC_PROG_AWK.
32967         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32968
32969 2009-01-28  Eric Blake  <ebb9@byu.net>
32970
32971         version-etc: use consistent URL formatting
32972         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32973         Improve formatting.  Use fputs for string without %.
32974
32975 2009-01-28  Jim Meyering  <meyering@redhat.com>
32976
32977         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32978         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32979         "underquoted definition of NAME" from autoconf-2.59.
32980
32981 2009-01-28  Bruno Haible  <bruno@clisp.org>
32982
32983         * doc/gnulib.texi: Add "Obsolete modules" to index.
32984
32985 2009-01-28  Jim Meyering  <meyering@redhat.com>
32986
32987         useless-if-before-free: recognize more variants
32988         * build-aux/useless-if-before-free: Also recognize e.g.,
32989         if (NULL != p) free (p);
32990
32991 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32992
32993         test-getaddrinfo: skip (don't fail) this test when there's no network
32994         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32995         on the presumption that it means you lack network access.
32996
32997 2009-01-26  Jim Meyering  <meyering@redhat.com>
32998
32999         fflush: avoid warnings on modern systems
33000         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33001         pos and result, into scopes where they're used.
33002
33003 2009-01-26  Eric Blake  <ebb9@byu.net>
33004
33005         Silence warning reintroduced by recent extensions patch.
33006         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33007         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33008         autoconf.
33009
33010         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33011         * m4/00gnulib.m4: New file.
33012         * gnulib-tool (func_get_filelist): Always use it.
33013         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33014         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33015
33016 2009-01-25  Bruno Haible  <bruno@clisp.org>
33017
33018         Make test-quotearg work on MacOS X and AIX.
33019         * tests/test-quotearg.sh: New file.
33020         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33021         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33022         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33023         include <libintl.h>.
33024         (fake_locale): Remove variable.
33025         (gettext, dgettext, dcgettext): Remove functions.
33026         (main): Instead of setting a fake locale, set a real locale. Call
33027         textdomain and bindtextdomain.
33028         * modules/quotearg-tests (Files): Add the new files.
33029         (Depends-on): Add gettext, setenv, unsetenv.
33030         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33031         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33032         Augment TESTS_ENVIRONMENT.
33033
33034 2009-01-25  Bruno Haible  <bruno@clisp.org>
33035
33036         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33037         fr_FR.ISO8859-1 locale on MacOS X.
33038         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33039         ja_JP.eucJP locale on MacOS X.
33040         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33041         zh_CN.GB18030 locale on MacOS X.
33042
33043 2009-01-25  Bruno Haible  <bruno@clisp.org>
33044
33045         Avoid link errors on MacOS X 10.3.
33046         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33047         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33048
33049 2009-01-25  Bruno Haible  <bruno@clisp.org>
33050
33051         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33052         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33053         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33054         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33055         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33056         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33057         posix_spawnattr_init, posix_spawnattr_setsigmask,
33058         posix_spawnattr_setflags, posix_spawnattr_destroy.
33059
33060         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33061         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33062         * modules/execute (Files): Remove m4/posix_spawn.m4.
33063         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33064         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33065         posix_spawnattr_init, posix_spawnattr_setsigmask,
33066         posix_spawnattr_setflags, posix_spawnattr_destroy.
33067
33068 2009-01-25  Bruno Haible  <bruno@clisp.org>
33069
33070         * lib/glthread/threadlib.c: Include <stdlib.h>.
33071
33072 2009-01-25  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/glthread/threadlib.c (dummy): New declaration.
33075
33076 2009-01-25  Bruno Haible  <bruno@clisp.org>
33077
33078         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33079         multibyte characters also for the GB18030 encoding. Don't crash when
33080         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33081
33082 2009-01-25  Bruno Haible  <bruno@clisp.org>
33083
33084         Avoid redefining 'struct random_data' on OSF/1 5.1.
33085         * lib/stdlib.in.h: Include <random.h> if it exists.
33086         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33087         HAVE_RANDOM_H. Include <random.h> when testing whether
33088         'struct random_data' exists.
33089         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33090
33091 2009-01-25  Bruno Haible  <bruno@clisp.org>
33092
33093         Don't install charset.alias on MacOS X >= 10.3.
33094         * lib/localcharset.c (DARWIN7): New macro.
33095         (get_charset_aliases): Hardcode the result for Darwin7.
33096         * modules/localcharset (install-exec-local): Don't install
33097         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33098
33099 2009-01-25  Bruno Haible  <bruno@clisp.org>
33100
33101         Don't install charset.alias on mingw and Cygwin.
33102         * modules/localcharset (install-exec-local): Don't install
33103         charset.alias on mingw and Cygwin, if the file does not yet exist.
33104         The result for these platforms is hardcoded in localcharset.c.
33105
33106 2009-01-25  Bruno Haible  <bruno@clisp.org>
33107
33108         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33110         before requiring AC_USE_SYSTEM_EXTENSIONS.
33111
33112 2009-01-25  Jim Meyering  <meyering@redhat.com>
33113
33114         c-strtod: avoid warnings
33115         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33116         "assignment discards qualifiers from pointer target type" warnings.
33117
33118 2009-01-24  Bruno Haible  <bruno@clisp.org>
33119
33120         Add support for non-UTF-8 locales on MacOS X.
33121         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33122         canonical encodings. For Darwin 7 and newer, don't map traditional
33123         encodings to UTF-8.
33124         Reported by Vincent Lefevre <vincent@vinc17.org>
33125         at <http://savannah.gnu.org/bugs/?25235>.
33126
33127 2009-01-24  Bruno Haible  <bruno@clisp.org>
33128
33129         * doc/gnulib.texi (Obsolete modules): New section.
33130         Reported by Mike Frysinger <vapier@gentoo.org>.
33131
33132 2009-01-24  Bruno Haible  <bruno@clisp.org>
33133
33134         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33135         (%.dvi): New rule.
33136
33137 2009-01-24  Bruno Haible  <bruno@clisp.org>
33138
33139         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33140         Reported by Eric Blake.
33141
33142 2009-01-24  Bruno Haible  <bruno@clisp.org>
33143
33144         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33145         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33146         Reported by Gary V. Vaughan <gary@gnu.org>.
33147
33148 2009-01-24  Bruno Haible  <bruno@clisp.org>
33149
33150         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33151
33152 2009-01-23  Bruno Haible  <bruno@clisp.org>
33153
33154         Make c-strtod, c-strtold usable in libraries.
33155         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33156         (C_STRTOD): Call strdup instead of xstrdup.
33157         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33158         * modules/c-strtold (Depends-on): Likewise.
33159         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33160         * NEWS: Mention the change.
33161         Reported by Michael Gold <mgold@ncf.ca>.
33162
33163 2009-01-23  Jim Meyering  <meyering@redhat.com>
33164
33165         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33166         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33167         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33168
33169 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33170
33171         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33172         GNU CoreUtils.
33173         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33174         * modules/version-etc (Description): Update.
33175
33176 2009-01-22  Bruno Haible  <bruno@clisp.org>
33177
33178         Cache the C locale object.
33179         * lib/c-strtod.c (c_locale_cache): New variable.
33180         (c_locale): New function.
33181         (C_STRTOD): Use it, and don't call freelocale.
33182         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33183         Suggested by Paolo Bonzini.
33184
33185 2009-01-21  Bruno Haible  <bruno@clisp.org>
33186
33187         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33188         conditions other than overflow.
33189
33190 2009-01-21  Bruno Haible  <bruno@clisp.org>
33191
33192         * lib/c-strtod.c: Include errno.h.
33193         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33194         value from STRTOD_L and STRTOD.
33195
33196 2009-01-21  Bruno Haible  <bruno@clisp.org>
33197         and Jim Meyering  <meyering@redhat.com>
33198
33199         nanosleep: skip configure test (fail it) for apple universal builds
33200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33201         universal builds, assume that nanosleep does not work.
33202         * modules/nanosleep (Depends-on): Add multiarch.
33203
33204         mktime: skip configure test (fail it) for apple universal builds
33205         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33206         universal builds, assume that mktime does not work.
33207         * modules/mktime (Depends-on): Add multiarch.
33208
33209 2009-01-21  Eric Blake  <ebb9@byu.net>
33210
33211         multiarch: avoid expand-before-require warning
33212         * modules/multiarch (configure.ac): Require, rather than expand,
33213         gl_MULTIARCH.
33214         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33215         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33216         enforce that all clients require it.  Partial reversion of
33217         2008-12-29 patch.
33218
33219         error: avoid expand-before-require warning
33220         * modules/errno (configure.ac): Require, rather than expand,
33221         gl_HEADER_ERRNO_H.
33222         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33223         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33224         enforce that all clients require it.
33225
33226         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33227         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33228         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33229         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33230
33231 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33232
33233         Revert:
33234         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33235
33236         regex: do not depend on obsolete modules.
33237         * modules/regex: Remove memcmp and memmove.
33238
33239 2009-01-20  Bruno Haible  <bruno@clisp.org>
33240
33241         Make the 'link' module link on Windows NT 4.
33242         * lib/link.c (_WIN32_WINNT): Don't define.
33243         (CreateHardLinkFuncType): New type.
33244         (CreateHardLinkFunc, initialized): New variables.
33245         (initialize): New function.
33246         (link): Invoke CreateHardLink indirectly through the function pointer.
33247
33248 2009-01-20  Bruno Haible  <bruno@clisp.org>
33249
33250         Fix compilation failure on mingw.
33251         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33252
33253 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33254
33255         * doc/c-strtod.texi: Mention a couple of restrictions.
33256
33257 2009-01-20  Jim Meyering  <meyering@redhat.com>
33258
33259         gettimeofday: move more declarations out of functions
33260         * lib/gettimeofday.c: Move extern declarations of tzset and
33261         gmtime out of containing functions.  Prompted by Bruno Haible.
33262
33263 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33264
33265         regex: do not depend on obsolete modules.
33266         * modules/regex: Remove memcmp and memmove.
33267
33268 2009-01-19  Bruno Haible  <bruno@clisp.org>
33269
33270         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33271         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33272         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33273         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33274         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33275
33276 2009-01-19  Bruno Haible  <bruno@clisp.org>
33277
33278         * tests/test-link.c: Include <errno.h>.
33279         (main): Exit with code 77 when a hard link cannot be created due to
33280         the file system.
33281         * tests/test-link.sh: Skip test when a hard link cannot be created due
33282         to the file system.
33283         Suggested by Eric Blake.
33284
33285 2009-01-19  Martin Lambers  <marlam@marlam.de>
33286
33287         * modules/link-tests: New file.
33288         * tests/test-link.sh: New file.
33289         * tests/test-link.c: New file.
33290
33291 2009-01-19  Eric Blake  <ebb9@byu.net>
33292
33293         doc: mention another function added in cygwin 1.7.0
33294         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33295         Another new function in cygwin 1.7.
33296
33297 2009-01-19  Bruno Haible  <bruno@clisp.org>
33298
33299         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33300         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33301         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33302         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33303         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33304         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33305         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33306         * m4/md4.m4 (gl_MD4): Likewise.
33307         * m4/md5.m4 (gl_MD5): Likewise.
33308         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33309         * m4/sha1.m4 (gl_SHA1): Likewise.
33310         * m4/sha256.m4 (gl_SHA256): Likewise.
33311         * m4/sha512.m4 (gl_SHA512): Likewise.
33312
33313 2009-01-19  Bruno Haible  <bruno@clisp.org>
33314
33315         * modules/uniname/uniname-tests (Depends-on): Add progname.
33316         * tests/uniname/test-uninames.c: Include progname.h.
33317         (main): Call set_program_name.
33318
33319         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33320         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33321         (main): Call set_program_name.
33322
33323         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33324         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33325         (main): Call set_program_name.
33326
33327         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33328         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33329         (main): Call set_program_name.
33330
33331         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33332         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33333         (main): Call set_program_name.
33334
33335         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33336         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33337         (main): Call set_program_name.
33338
33339         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33340         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33341         (main): Call set_program_name.
33342
33343         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33344         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33345         (main): Call set_program_name.
33346
33347         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33348         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33349         (main): Call set_program_name.
33350
33351 2009-01-19  Eric Blake  <ebb9@byu.net>
33352
33353         test-unistd: test previous patch
33354         * tests/test-unistd.c: Test *_FILENO macros.
33355
33356         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33357         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33358         Guarantee a definition.
33359         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33360         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33361         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33362         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33363         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33364         Likewise.
33365         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33366         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33367         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33368         Likewise.
33369         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33370         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33371         (STDERR_FILENO): Likewise.
33372         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33373         (STDERR_FILENO): Likewise.
33374         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33375         (STDERR_FILENO): Likewise.
33376         Reported by Elbert Pol.
33377
33378 2009-01-19  Eric Blake  <ebb9@byu.net>
33379
33380         doc: mention more functions added in cygwin 1.7.0
33381         * doc/posix-functions/abort.texi (abort): Update wording related
33382         to cygwin.
33383         * doc/posix-functions/daylight.texi (daylight): Likewise.
33384         * doc/posix-functions/optarg.texi (optarg): Likewise.
33385         * doc/posix-functions/optarg.texi (opterr): Likewise.
33386         * doc/posix-functions/optarg.texi (optind): Likewise.
33387         * doc/posix-functions/optarg.texi (optopt): Likewise.
33388         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33389         worked in 1.5.x, and was withdrawn in 1.7.
33390         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33391         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33392         cygwin versions.
33393         * doc/posix-functions/perror.texi (perror): Likewise.
33394         * doc/posix-functions/printf.texi (printf): Likewise.
33395         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33396         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33397         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33398         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33399         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33400         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33401         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33402         Likewise.
33403         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33404         Likewise.
33405         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33406         this function.
33407         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33408         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33409         Likewise.
33410         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33411         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33412         * doc/posix-functions/confstr.texi (confstr): Likewise.
33413         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33414         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33415         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33416         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33417         * doc/posix-functions/fputws.texi (fputws): Likewise.
33418         * doc/posix-functions/fwide.texi (fwide): Likewise.
33419         * doc/posix-functions/getwc.texi (getwc): Likewise.
33420         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33421         * doc/posix-functions/putwc.texi (putwc): Likewise.
33422         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33423         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33424         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33425         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33426         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33427         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33428         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33429         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33430         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33431         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33432         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33433
33434 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33435
33436         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33437         * lib/ioctl.c: Include <sys/ioctl.h>.
33438
33439 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33440
33441         * modules/getdate-tests (Depends-on): Add progname.
33442         * tests/test-getdate.c: Use progname module, to avoid link errors
33443         on non-glibc systems.
33444
33445 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33446
33447         * modules/filenamecat-tests (Depends-on): Add progname.
33448         * modules/fstrcmp-tests (Depends-on): Likewise.
33449
33450         * tests/test-filenamecat.c: Use progname module, to avoid link
33451         errors on non-glibc systems.
33452         * tests/test-fstrcmp.c: Likewise.
33453
33454 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33455
33456         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33457         * lib/gettimeofday.c: Move extern declaration out of function.
33458
33459 2009-01-18  Bruno Haible  <bruno@clisp.org>
33460
33461         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33462         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33463         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33464
33465 2009-01-18  Bruno Haible  <bruno@clisp.org>
33466
33467         * lib/strftime.c (MEMPCPY): Remove unused macro.
33468         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33469
33470 2009-01-18  Martin Lambers  <marlam@marlam.de>
33471
33472         New module 'link'.
33473         * lib/unistd.in.h (link): New declaration.
33474         * lib/link.c: New file.
33475         * m4/link.m4: New file.
33476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33477         HAVE_LINK.
33478         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33479         * modules/link: New file.
33480         * doc/posix-functions/link.texi: Mention the new module.
33481
33482 2009-01-18  Bruno Haible  <bruno@clisp.org>
33483
33484         * tests/test-avltree_list.c (main): Call set_program_name.
33485         * tests/test-avltree_oset.c (main): Likewise.
33486         * tests/test-obstack-printf.c: Include progname.h.
33487         (main): Call set_program_name.
33488         * tests/test-quotearg.c: Include progname.h.
33489         (main): Call set_program_name.
33490         * tests/test-xmemdup0.c: Include progname.h.
33491         (main): Call set_program_name.
33492
33493 2009-01-18  Bruno Haible  <bruno@clisp.org>
33494
33495         New module 'alphasort'.
33496         * lib/dirent.in.h (alphasort): New declaration.
33497         * lib/alphasort.c: New file, from glibc with modifications.
33498         * m4/alphasort.m4: New file.
33499         * modules/alphasort: New file.
33500         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33501         HAVE_ALPHASORT.
33502         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33503         HAVE_ALPHASORT.
33504         * doc/posix-functions/alphasort.texi: Mention the new module and the
33505         portability problems.
33506
33507 2009-01-18  Bruno Haible  <bruno@clisp.org>
33508
33509         New module 'scandir'.
33510         * lib/dirent.in.h (scandir): New declaration.
33511         * lib/scandir.c: New file, from glibc with modifications.
33512         * m4/scandir.m4: New file.
33513         * modules/scandir: New file.
33514         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33515         HAVE_SCANDIR.
33516         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33517         HAVE_SCANDIR.
33518         * doc/posix-functions/scandir.texi: Mention the new module and the
33519         portability problems.
33520
33521 2009-01-17  Bruno Haible  <bruno@clisp.org>
33522
33523         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33524         Update documentation.
33525         (func_remove_suffix): Escape all dots in the suffix. Update
33526         documentation.
33527         (func_filter_filelist): Update documentation.
33528         Reported by Ralf Wildenhues.
33529
33530 2009-01-17  Bruno Haible  <bruno@clisp.org>
33531
33532         * modules/dprintf-posix-tests: New file.
33533         * tests/test-dprintf-posix.sh: New file.
33534         * tests/test-dprintf-posix.c: New file.
33535
33536         New modules 'dprintf', 'dprintf-posix'.
33537         * lib/stdio.in.h (dprintf): New declaration.
33538         * lib/dprintf.c: New file.
33539         * m4/dprintf.m4: New file.
33540         * m4/dprintf-posix.m4: New file.
33541         * modules/dprintf: New file.
33542         * modules/dprintf-posix: New file.
33543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33544         HAVE_DPRINTF, REPLACE_DPRINTF.
33545         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33546         HAVE_DPRINTF, REPLACE_DPRINTF.
33547         * doc/posix-functions/dprintf.texi: Mention the new modules.
33548
33549 2009-01-17  Bruno Haible  <bruno@clisp.org>
33550
33551         * modules/vdprintf-posix-tests: New file.
33552         * tests/test-vdprintf-posix.sh: New file.
33553         * tests/test-vdprintf-posix.c: New file.
33554
33555         New modules 'vdprintf', 'vdprintf-posix'.
33556         * lib/stdio.in.h (vdprintf): New declaration.
33557         * lib/vdprintf.c: New file.
33558         * m4/vdprintf.m4: New file.
33559         * m4/vdprintf-posix.m4: New file.
33560         * modules/vdprintf: New file.
33561         * modules/vdprintf-posix: New file.
33562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33563         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33564         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33565         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33566         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33567
33568 2009-01-17  Bruno Haible  <bruno@clisp.org>
33569
33570         Fix replacement of fopen on mingw.
33571         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33572         mingw.
33573
33574 2009-01-17  Bruno Haible  <bruno@clisp.org>
33575
33576         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33577         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33578
33579 2009-01-17  Bruno Haible  <bruno@clisp.org>
33580
33581         Avoid test-fflush2.sh failure on mingw.
33582         * tests/test-fflush2.c: Include binary-io.h.
33583         (main): Put standard input into binary mode.
33584         * modules/fflush-tests (Depends-on): Add binary-io.
33585
33586 2009-01-17  Bruno Haible  <bruno@clisp.org>
33587
33588         * lib/wchar.in.h: In another particular situation, include only the
33589         system's <wchar.h> file.
33590         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33591         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33592         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33593
33594 2009-01-17  Bruno Haible  <bruno@clisp.org>
33595
33596         Support for stripping executables in --enable-relocatable.
33597         * build-aux/install-reloc: Expect one more argument, or an environment
33598         variable RELOC_STRIP_PROG. If set, strip the destination program and
33599         its wrapper.
33600         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33601         RELOC_STRIP_PROG.
33602         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33603         to set RELOCATABLE_STRIP.
33604         * NEWS: Mention the new Makefile requirement.
33605
33606 2009-01-17  Bruno Haible  <bruno@clisp.org>
33607
33608         * build-aux/install-reloc: Remove debugging information left over by
33609         C compiler on MacOS X.
33610
33611 2009-01-17  Bruno Haible  <bruno@clisp.org>
33612
33613         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33614         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33615         _NSGetExecutablePath.
33616
33617 2009-01-16  Jim Meyering  <meyering@redhat.com>
33618
33619         strerror: avoid warnings about discarding "const"
33620         * lib/strerror.c (rpl_strerror): Instead of returning a const
33621         string from each and every "case", use a variable, and add a single
33622         cast after the switch.
33623
33624 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33625
33626         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33627
33628 2009-01-16  Bruno Haible  <bruno@clisp.org>
33629
33630         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33631         array initializer syntax that also works in C++ mode.
33632         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33633
33634 2009-01-16  Jim Meyering  <meyering@redhat.com>
33635
33636         poll: suppress a warning
33637         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33638         to ignore "...unsigned expression < 0 is always false" warnings.
33639
33640 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33641
33642         poll: remove declarations of unused variables
33643         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33644         sockbuf and optlen.
33645
33646 2009-01-15  Bruno Haible  <bruno@clisp.org>
33647
33648         Make fflush-after-ungetc POSIX compliant on BSD systems.
33649         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33650         (clear_ungetc_buffer): Implement also for other systems.
33651         (rpl_fflush): On glibc systems, invoke
33652         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33653         clear_ungetc_buffer after fetching the stream's position, not before.
33654
33655 2009-01-15  Bruno Haible  <bruno@clisp.org>
33656
33657         Make fflush-after-ungetc POSIX compliant on glibc systems.
33658         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33659         after ungetc.
33660         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33661         (rpl_fflush): On glibc systems, simply call the system's fflush
33662         function after clearing the ungetc buffer.
33663         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33664         Instead, lseek only to the end of file, then use the system's fseeko
33665         for the rest. On glibc systems, reset the EOF indicator bit.
33666
33667 2009-01-15  Jim Meyering  <meyering@redhat.com>
33668
33669         openmp.m4: revert quote-adding change, for portability to older autoconf
33670         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33671         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33672         Simon Josefsson noticed the problem when using autoconf-2.61.
33673
33674 2009-01-15  Bruno Haible  <bruno@clisp.org>
33675
33676         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33677         * tests/test-fflush2.c (ASSERT): Always fail.
33678         (main): Add two tests for fflush() after ungetc(), taking into account
33679         the Austin Group's clarification.
33680         Suggested by Eric Blake.
33681
33682 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33683
33684         mktime.m4: remove K&R-style function prototypes
33685         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33686         for the Sun C++ compiler.
33687
33688 2009-01-14  Bruno Haible  <bruno@clisp.org>
33689
33690         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33691         while including <wchar.h>.
33692         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33693         the system's <wchar.h> file.
33694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33695
33696 2009-01-14  Bruno Haible  <bruno@clisp.org>
33697
33698         * m4/csharp.m4: Don't mention gettext on the serial number line.
33699         * m4/csharpexec.m4: Likewise.
33700         * m4/eaccess.m4: Likewise.
33701         * m4/javaexec.m4: Likewise.
33702         * m4/sig_atomic_t.m4: Likewise.
33703         * m4/tmpdir.m4: Likewise.
33704         * m4/intldir.m4: Bump gettext version.
33705         * m4/lib-ld.m4: Likewise.
33706
33707 2009-01-14  Bruno Haible  <bruno@clisp.org>
33708
33709         * lib/progname.c (set_program_name): Add more comments.
33710         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33711
33712 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33713
33714         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33715         were sys/stat.h does not define it.
33716
33717 2009-01-14  Jim Meyering  <meyering@redhat.com>
33718
33719         many *.m4 files: improve m4 quoting
33720         99% of this change was performed by running the following commands:
33721         git ls-files | grep '\.m4$' | xargs perl -pi \
33722           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33723           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33724           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33725           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33726         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33727         The remainder were to add Copyright dates, increment serial numbers,
33728         undo some changes in comments, exclude m4/intl.m4, and add quotes
33729         around the "1" in ",1" where the unusual spacing prohibited the
33730         above regexps from doing the job.  For more details, see
33731         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33732         * m4/acl.m4: Modified.
33733         * m4/afs.m4: Likewise.
33734         * m4/alloca.m4: Likewise.
33735         * m4/argp.m4: Likewise.
33736         * m4/argz.m4: Likewise.
33737         * m4/atexit.m4: Likewise.
33738         * m4/bison-i18n.m4: Likewise.
33739         * m4/bison.m4: Likewise.
33740         * m4/byteswap.m4: Likewise.
33741         * m4/c-stack.m4: Likewise.
33742         * m4/c-strtod.m4: Likewise.
33743         * m4/calloc.m4: Likewise.
33744         * m4/canonicalize-lgpl.m4: Likewise.
33745         * m4/chown.m4: Likewise.
33746         * m4/clock_time.m4: Likewise.
33747         * m4/codeset.m4: Likewise.
33748         * m4/copy-file.m4: Likewise.
33749         * m4/csharp.m4: Likewise.
33750         * m4/csharpcomp.m4: Likewise.
33751         * m4/csharpexec.m4: Likewise.
33752         * m4/d-ino.m4: Likewise.
33753         * m4/d-type.m4: Likewise.
33754         * m4/dirfd.m4: Likewise.
33755         * m4/double-slash-root.m4: Likewise.
33756         * m4/eaccess.m4: Likewise.
33757         * m4/eealloc.m4: Likewise.
33758         * m4/environ.m4: Likewise.
33759         * m4/errno_h.m4: Likewise.
33760         * m4/euidaccess.m4: Likewise.
33761         * m4/execute.m4: Likewise.
33762         * m4/fatal-signal.m4: Likewise.
33763         * m4/fchdir.m4: Likewise.
33764         * m4/fcntl_h.m4: Likewise.
33765         * m4/fileblocks.m4: Likewise.
33766         * m4/filenamecat.m4: Likewise.
33767         * m4/findprog.m4: Likewise.
33768         * m4/flexmember.m4: Likewise.
33769         * m4/fnmatch.m4: Likewise.
33770         * m4/fopen.m4: Likewise.
33771         * m4/fpending.m4: Likewise.
33772         * m4/fprintf-posix.m4: Likewise.
33773         * m4/free.m4: Likewise.
33774         * m4/frexp.m4: Likewise.
33775         * m4/frexpl.m4: Likewise.
33776         * m4/fsusage.m4: Likewise.
33777         * m4/ftruncate.m4: Likewise.
33778         * m4/gc-camellia.m4: Likewise.
33779         * m4/gc-random.m4: Likewise.
33780         * m4/gc.m4: Likewise.
33781         * m4/getaddrinfo.m4: Likewise.
33782         * m4/getcwd-abort-bug.m4: Likewise.
33783         * m4/getcwd-path-max.m4: Likewise.
33784         * m4/getdate.m4: Likewise.
33785         * m4/getdomainname.m4: Likewise.
33786         * m4/getgroups.m4: Likewise.
33787         * m4/gethostname.m4: Likewise.
33788         * m4/gethrxtime.m4: Likewise.
33789         * m4/getline.m4: Likewise.
33790         * m4/getloadavg.m4: Likewise.
33791         * m4/getndelim2.m4: Likewise.
33792         * m4/getpass.m4: Likewise.
33793         * m4/gettext.m4: Likewise.
33794         * m4/gettime.m4: Likewise.
33795         * m4/gettimeofday.m4: Likewise.
33796         * m4/gnulib-common.m4: Likewise.
33797         * m4/group-member.m4: Likewise.
33798         * m4/host-os.m4: Likewise.
33799         * m4/iconv.m4: Likewise.
33800         * m4/iconv_open.m4: Likewise.
33801         * m4/inet_ntop.m4: Likewise.
33802         * m4/inet_pton.m4: Likewise.
33803         * m4/inline.m4: Likewise.
33804         * m4/intldir.m4: Likewise.
33805         * m4/intlmacosx.m4: Likewise.
33806         * m4/intmax.m4: Likewise.
33807         * m4/intmax_t.m4: Likewise.
33808         * m4/inttypes.m4: Likewise.
33809         * m4/inttypes_h.m4: Likewise.
33810         * m4/inttypes-pri.m4: Likewise.
33811         * m4/isapipe.m4: Likewise.
33812         * m4/isnand.m4: Likewise.
33813         * m4/isnanf.m4: Likewise.
33814         * m4/isnanl.m4: Likewise.
33815         * m4/javacomp.m4: Likewise.
33816         * m4/javaexec.m4: Likewise.
33817         * m4/jm-winsz1.m4: Likewise.
33818         * m4/jm-winsz2.m4: Likewise.
33819         * m4/lchown.m4: Likewise.
33820         * m4/lcmessage.m4: Likewise.
33821         * m4/ldexpl.m4: Likewise.
33822         * m4/lib-ld.m4: Likewise.
33823         * m4/lib-link.m4: Likewise.
33824         * m4/libsigsegv.m4: Likewise.
33825         * m4/link-follow.m4: Likewise.
33826         * m4/localcharset.m4: Likewise.
33827         * m4/locale-fr.m4: Likewise.
33828         * m4/locale-ja.m4: Likewise.
33829         * m4/locale-tr.m4: Likewise.
33830         * m4/locale-zh.m4: Likewise.
33831         * m4/lock.m4: Likewise.
33832         * m4/longlong.m4: Likewise.
33833         * m4/ls-mntd-fs.m4: Likewise.
33834         * m4/lstat.m4: Likewise.
33835         * m4/malloc.m4: Likewise.
33836         * m4/mathl.m4: Likewise.
33837         * m4/mbrtowc.m4: Likewise.
33838         * m4/mbstate_t.m4: Likewise.
33839         * m4/mbswidth.m4: Likewise.
33840         * m4/memchr.m4: Likewise.
33841         * m4/memcmp.m4: Likewise.
33842         * m4/memcpy.m4: Likewise.
33843         * m4/memmem.m4: Likewise.
33844         * m4/memmove.m4: Likewise.
33845         * m4/mempcpy.m4: Likewise.
33846         * m4/memrchr.m4: Likewise.
33847         * m4/memset.m4: Likewise.
33848         * m4/minmax.m4: Likewise.
33849         * m4/mkdir-slash.m4: Likewise.
33850         * m4/mkdtemp.m4: Likewise.
33851         * m4/mktime.m4: Likewise.
33852         * m4/mmap-anon.m4: Likewise.
33853         * m4/mountlist.m4: Likewise.
33854         * m4/nanosleep.m4: Likewise.
33855         * m4/nls.m4: Likewise.
33856         * m4/nocrash.m4: Likewise.
33857         * m4/open.m4: Likewise.
33858         * m4/openat.m4: Likewise.
33859         * m4/openmp.m4: Likewise.
33860         * m4/pathmax.m4: Likewise.
33861         * m4/perl.m4: Likewise.
33862         * m4/physmem.m4: Likewise.
33863         * m4/pipe.m4: Likewise.
33864         * m4/po.m4: Likewise.
33865         * m4/poll.m4: Likewise.
33866         * m4/posixtm.m4: Likewise.
33867         * m4/posixver.m4: Likewise.
33868         * m4/printf-frexp.m4: Likewise.
33869         * m4/printf-frexpl.m4: Likewise.
33870         * m4/printf-posix.m4: Likewise.
33871         * m4/printf-posix-rpl.m4: Likewise.
33872         * m4/printf.m4: Likewise.
33873         * m4/progtest.m4: Likewise.
33874         * m4/putenv.m4: Likewise.
33875         * m4/readline.m4: Likewise.
33876         * m4/readlink.m4: Likewise.
33877         * m4/readutmp.m4: Likewise.
33878         * m4/realloc.m4: Likewise.
33879         * m4/regex.m4: Likewise.
33880         * m4/relocatable.m4: Likewise.
33881         * m4/relocatable-lib.m4: Likewise.
33882         * m4/rename-dest-slash.m4: Likewise.
33883         * m4/rename.m4: Likewise.
33884         * m4/rmdir-errno.m4: Likewise.
33885         * m4/rmdir.m4: Likewise.
33886         * m4/roundf.m4: Likewise.
33887         * m4/roundl.m4: Likewise.
33888         * m4/rpmatch.m4: Likewise.
33889         * m4/save-cwd.m4: Likewise.
33890         * m4/selinux-selinux-h.m4: Likewise.
33891         * m4/setenv.m4: Likewise.
33892         * m4/settime.m4: Likewise.
33893         * m4/sig2str.m4: Likewise.
33894         * m4/sig_atomic_t.m4: Likewise.
33895         * m4/signalblocking.m4: Likewise.
33896         * m4/signbit.m4: Likewise.
33897         * m4/sigpipe.m4: Likewise.
33898         * m4/sockets.m4: Likewise.
33899         * m4/sockpfaf.m4: Likewise.
33900         * m4/st_dm_mode.m4: Likewise.
33901         * m4/stat-time.m4: Likewise.
33902         * m4/stdbool.m4: Likewise.
33903         * m4/stdint.m4: Likewise.
33904         * m4/stdint_h.m4: Likewise.
33905         * m4/stpcpy.m4: Likewise.
33906         * m4/stpncpy.m4: Likewise.
33907         * m4/strcase.m4: Likewise.
33908         * m4/strchrnul.m4: Likewise.
33909         * m4/strcspn.m4: Likewise.
33910         * m4/strdup.m4: Likewise.
33911         * m4/strftime.m4: Likewise.
33912         * m4/strndup.m4: Likewise.
33913         * m4/strnlen.m4: Likewise.
33914         * m4/strpbrk.m4: Likewise.
33915         * m4/strptime.m4: Likewise.
33916         * m4/strsep.m4: Likewise.
33917         * m4/strtod.m4: Likewise.
33918         * m4/strtoimax.m4: Likewise.
33919         * m4/strtok_r.m4: Likewise.
33920         * m4/strtol.m4: Likewise.
33921         * m4/strtoll.m4: Likewise.
33922         * m4/strtoul.m4: Likewise.
33923         * m4/strtoull.m4: Likewise.
33924         * m4/strtoumax.m4: Likewise.
33925         * m4/strverscmp.m4: Likewise.
33926         * m4/threadlib.m4: Likewise.
33927         * m4/timegm.m4: Likewise.
33928         * m4/tm_gmtoff.m4: Likewise.
33929         * m4/tmpdir.m4: Likewise.
33930         * m4/tmpfile.m4: Likewise.
33931         * m4/tzset.m4: Likewise.
33932         * m4/uintmax_t.m4: Likewise.
33933         * m4/unlinkdir.m4: Likewise.
33934         * m4/unlocked-io.m4: Likewise.
33935         * m4/uptime.m4: Likewise.
33936         * m4/userspec.m4: Likewise.
33937         * m4/utimbuf.m4: Likewise.
33938         * m4/utime.m4: Likewise.
33939         * m4/utimes-null.m4: Likewise.
33940         * m4/utimes.m4: Likewise.
33941         * m4/vararrays.m4: Likewise.
33942         * m4/vasnprintf.m4: Likewise.
33943         * m4/vfprintf-posix.m4: Likewise.
33944         * m4/vprintf-posix.m4: Likewise.
33945         * m4/wait-process.m4: Likewise.
33946         * m4/wchar_t.m4: Likewise.
33947         * m4/wint_t.m4: Likewise.
33948         * m4/write-any-file.m4: Likewise.
33949         * m4/yield.m4: Likewise.
33950
33951 2009-01-13  Bruno Haible  <bruno@clisp.org>
33952
33953         Avoid test-copy-file.sh failures when ACL support insufficient.
33954         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33955         TESTS_ENVIRONMENT.
33956         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33957         Reported by Jim Meyering.
33958
33959 2009-01-13  Bruno Haible  <bruno@clisp.org>
33960
33961         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33962         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33963         * modules/unistdio/u8-printf-parse (Files): Likewise.
33964         * modules/unistdio/u32-printf-parse (Files): Likewise.
33965         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33966
33967 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33968
33969         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33970         and m4/inttypes_h.m4 too.
33971
33972 2009-01-12  Eric Blake  <ebb9@byu.net>
33973
33974         tests: IRIX 6.2 cc can't compile -0.0 into .data
33975         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33976         rather than at compile-time.
33977         * tests/test-floorl.c (minus_zero): Likewise.
33978         * tests/test-frexpl.c (minus_zero): Likewise.
33979         * tests/test-isnan.c (minus_zerol): Likewise.
33980         * tests/test-isnanl.h (minus_zero): Likewise.
33981         * tests/test-ldexpl.c (minus_zero): Likewise.
33982         * tests/test-roundl.c (minus_zero): Likewise.
33983         * tests/test-signbit.c (minus_zerol): Likewise.
33984         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33985         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33986         * tests/test-truncl.c (minus_zero): Likewise.
33987         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33988         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33989         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33990
33991 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33992
33993         regex: fix glibc bug 9697
33994         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33995         handling.
33996
33997 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33998
33999         regex: fix glibc bug 697
34000         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34001         being NULL also if there are no backreferences.
34002
34003 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34004
34005         regex: merge glibc changes
34006         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34007         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34008         re_string_skip_chars, re_string_reconstruct): Likewise.
34009         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34010
34011 2009-01-07  Jim Meyering  <meyering@redhat.com>
34012
34013         poll: filter through cppi
34014         * lib/poll.c: Indent cpp directives to reflect nesting.
34015
34016 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34017
34018         poll: don't return uninitialized
34019         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34020
34021 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34022
34023         avoid compile failure on AIX 6.1
34024         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34025         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34026
34027 2009-01-04  Jim Meyering  <meyering@redhat.com>
34028
34029         remove duplicate inclusion of <stdio.h>
34030         * tests/test-fprintf-posix.c: Likewise.
34031         * tests/test-printf-posix.c: Likewise.
34032         * tests/test-snprintf-posix.c: Likewise.
34033         * tests/test-sprintf-posix.c: Likewise.
34034         * tests/test-vasprintf-posix.c: Likewise.
34035         * tests/test-vfprintf-posix.c: Likewise.
34036         * tests/test-vprintf-posix.c: Likewise.
34037         * tests/test-vsnprintf-posix.c: Likewise.
34038         * tests/test-vsprintf-posix.c: Likewise.
34039
34040 2009-01-03  Jim Meyering  <meyering@redhat.com>
34041
34042         gnulib-tool: fix sed-based filtering
34043         * gnulib-tool (func_filter_filelist): Remove extra backslash
34044         in sed_fff_filter definition.
34045
34046 2009-01-02  Jim Meyering  <meyering@redhat.com>
34047
34048         strftime: avoid compilation failure on Solaris 2.6
34049         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34050         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34051         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34052         be available.  Reported by Tom G. Christensen.  Details in
34053         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34054
34055 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34056             Bruno Haible  <bruno@clisp.org>
34057
34058         Speed up gnulib-tool by doing more string processing through shell
34059         built-ins.
34060         * gnulib-tool (fast_func_append): New variable.
34061         (func_remove_prefix, func_remove_suffix): New functions.
34062         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34063         (func_filter_filelist): New function.
34064         (func_get_dependencies): Use func_remove_suffix instead of sed.
34065         (func_get_automake_snippet): Use func_filter_filelist instead of a
34066         subshell and sed invocation.
34067
34068 2009-01-01  Bruno Haible  <bruno@clisp.org>
34069
34070         Fix a security bug.
34071         * gnulib-tool (func_import, import, update): Don't allow the characters
34072         '"', '$', '`', '\' in macro arguments that become part of commands that
34073         are evaluated.
34074
34075 2009-01-01  Bruno Haible  <bruno@clisp.org>
34076
34077         * gnulib-tool (func_reset_sigpipe): Add more comments.
34078
34079 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34080
34081         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34082         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34083         already know the answer.
34084
34085 2009-01-01  Jim Meyering  <meyering@redhat.com>
34086
34087         * lib/version-etc.c (version_etc_va): Update copyright year.
34088
34089 2008-12-30  Bruno Haible  <bruno@clisp.org>
34090
34091         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34092         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34093         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34094
34095 2008-12-29  Eric Blake  <ebb9@byu.net>
34096
34097         multiarch: avoid autoconf AC_REQUIRE bug
34098         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34099         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34100         2.63 and older.
34101         Reported by Bruno Haible, and analyzed in
34102         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34103
34104 2008-12-29  Bruno Haible  <bruno@clisp.org>
34105
34106         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34107         files in subdirectories correctly.
34108         Reported by Ralf Wildenhues.
34109
34110 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34111
34112         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34113         rather than 'join FILE -', for Solaris join.
34114
34115 2008-12-29  Bruno Haible  <bruno@clisp.org>
34116
34117         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34118         quoting.
34119         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34120         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34121         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34122         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34123         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34124         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34125         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34126         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34127         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34128         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34129         * m4/nls.m4 (AM_NLS): Likewise.
34130         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34131         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34132         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34133         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34134         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34135         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34136         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34137         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34138         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34139         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34140         * m4/xsize.m4 (gl_XSIZE): Likewise.
34141         Suggested by Jim Meyering.
34142
34143 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34144
34145         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34146         * lib/parse-duration.c: use a switch instead of cascading if's.
34147
34148 2008-12-29  Eric Blake  <ebb9@byu.net>
34149
34150         wchar.h: supply WEOF on Irix 5.3
34151         * lib/wchar.in.h (wint_t): Also supply WEOF.
34152         * lib/wctype.in.h (wint_t): Likewise.
34153         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34154         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34155         Reported by Tom G. Christensen.
34156
34157 2008-12-26  Bruno Haible  <bruno@clisp.org>
34158
34159         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34160         i486, i586, i686.
34161
34162 2008-12-26  Bruno Haible  <bruno@clisp.org>
34163
34164         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34165
34166 2008-12-26  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34169         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34170         not __STDC_CONSTANT_MACROS.
34171         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34172
34173 2008-12-25  Bruno Haible  <bruno@clisp.org>
34174
34175         Add support for universal builds to vasnprintf.
34176         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34177         universal builds, guess no.
34178         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34179         * modules/vasprintf-posix (Depends-on): Likewise.
34180         * modules/fprintf-posix (Depends-on): Likewise.
34181         * modules/vfprintf-posix (Depends-on): Likewise.
34182         * modules/snprintf-posix (Depends-on): Likewise.
34183         * modules/vsnprintf-posix (Depends-on): Likewise.
34184         * modules/sprintf-posix (Depends-on): Likewise.
34185         * modules/vsprintf-posix (Depends-on): Likewise.
34186         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34187         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34188         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34189         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34190         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34191         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34192         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34193
34194         Add support for universal builds to <inttypes.h>.
34195         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34196         _SCNu64_PREFIX): In Apple
34197         universal builds, define directly, using _LP64.
34198         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34199         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34200         * modules/inttypes (Depends-on): Add multiarch.
34201         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34202
34203         Add support for universal builds to <stdint.h>.
34204         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34205         universal builds, define directly, using _LP64.
34206         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34207         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34208         and size_t.
34209         * modules/stdint (Depends-on): Add multiarch.
34210         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34211
34212         New module 'multiarch'.
34213         * modules/multiarch: New file.
34214         * m4/multiarch.m4: New file.
34215
34216 2008-12-25  Bruno Haible  <bruno@clisp.org>
34217
34218         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34219
34220 2008-12-25  Bruno Haible  <bruno@clisp.org>
34221
34222         * modules/btowc (License): Relicense under LGPLv2+.
34223         * modules/mbsinit (License): Likewise.
34224         * modules/mbrtowc (License): Likewise.
34225         * modules/wcrtomb (License): Likewise.
34226         * modules/streq (License): Likewise.
34227         Reported by David Lutterkort <lutter@redhat.com>.
34228
34229 2008-12-23  Bruno Haible  <bruno@clisp.org>
34230
34231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34232
34233 2008-12-23  Bruno Haible  <bruno@clisp.org>
34234
34235         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34236         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34237         GETADDRINFO_LIB, not in LIBS.
34238         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34239         * modules/canon-host (Link): Likewise.
34240         * NEWS: Mention the change.
34241         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34242         GETADDRINFO_LIB.
34243
34244 2008-12-22  Bruno Haible  <bruno@clisp.org>
34245
34246         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34247         * doc/posix-functions/iswalpha_l.texi: Likewise.
34248         * doc/posix-functions/iswblank_l.texi: Likewise.
34249         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34250         * doc/posix-functions/iswctype_l.texi: Likewise.
34251         * doc/posix-functions/iswdigit_l.texi: Likewise.
34252         * doc/posix-functions/iswgraph_l.texi: Likewise.
34253         * doc/posix-functions/iswlower_l.texi: Likewise.
34254         * doc/posix-functions/iswprint_l.texi: Likewise.
34255         * doc/posix-functions/iswpunct_l.texi: Likewise.
34256         * doc/posix-functions/iswspace_l.texi: Likewise.
34257         * doc/posix-functions/iswupper_l.texi: Likewise.
34258         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34259         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34260         * doc/posix-functions/open_wmemstream.texi: Likewise.
34261         * doc/posix-functions/swscanf.texi: Likewise.
34262         * doc/posix-functions/towctrans_l.texi: Likewise.
34263         * doc/posix-functions/towlower.texi: Likewise.
34264         * doc/posix-functions/towlower_l.texi: Likewise.
34265         * doc/posix-functions/towupper.texi: Likewise.
34266         * doc/posix-functions/towupper_l.texi: Likewise.
34267         * doc/posix-functions/vfwprintf.texi: Likewise.
34268         * doc/posix-functions/vfwscanf.texi: Likewise.
34269         * doc/posix-functions/vswscanf.texi: Likewise.
34270         * doc/posix-functions/vwprintf.texi: Likewise.
34271         * doc/posix-functions/vwscanf.texi: Likewise.
34272         * doc/posix-functions/wcpcpy.texi: Likewise.
34273         * doc/posix-functions/wcpncpy.texi: Likewise.
34274         * doc/posix-functions/wcscasecmp.texi: Likewise.
34275         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34276         * doc/posix-functions/wcscoll_l.texi: Likewise.
34277         * doc/posix-functions/wcsdup.texi: Likewise.
34278         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34279         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34280         * doc/posix-functions/wcsnlen.texi: Likewise.
34281         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34282         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34283         * doc/posix-functions/wctrans_l.texi: Likewise.
34284         * doc/posix-functions/wctype_l.texi: Likewise.
34285         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34286         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34287         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34288         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34289         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34290         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34291         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34292         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34293         * doc/glibc-functions/wcschrnul.texi: Likewise.
34294         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34295         * doc/glibc-functions/wcstod_l.texi: Likewise.
34296         * doc/glibc-functions/wcstof_l.texi: Likewise.
34297         * doc/glibc-functions/wcstol_l.texi: Likewise.
34298         * doc/glibc-functions/wcstold_l.texi: Likewise.
34299         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34300         * doc/glibc-functions/wcstoq.texi: Likewise.
34301         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34302         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34303         * doc/glibc-functions/wcstouq.texi: Likewise.
34304         * doc/glibc-functions/wmempcpy.texi: Likewise.
34305
34306 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34307             Eric Blake  <ebb9@byu.net>
34308             Paolo Bonzini  <bonzini@gnu.org>
34309             Bruno Haible  <bruno@clisp.org>
34310
34311         Make c-stack work on Haiku.
34312         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34313         (c_stack_action): Use SA_ONSTACK flag.
34314
34315 2008-12-22  Bruno Haible  <bruno@clisp.org>
34316
34317         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34318
34319 2008-12-22  Bruno Haible  <bruno@clisp.org>
34320
34321         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34322         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34323         being overridden.
34324         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34325         New macros.
34326         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34328         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34329         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34330
34331 2008-12-22  Bruno Haible  <bruno@clisp.org>
34332
34333         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34334         from test code.
34335
34336 2008-12-22  Eric Blake  <ebb9@byu.net>
34337
34338         Avoid gcc warnings on cygwin.
34339         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34340         Avoid unused variable.
34341         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34342         Likewise.
34343
34344 2008-12-22  Bruno Haible  <bruno@clisp.org>
34345
34346         Remove HAVE_MBRTOWC conditionals.
34347         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34348         (mbscasecmp): Assume mbrtowc function.
34349         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34350         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34351         * lib/mbschr.c: Include mbuiter.h unconditionally.
34352         (mbschr): Assume mbrtowc function.
34353         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34354         (mbscspn): Assume mbrtowc function.
34355         * lib/mbslen.c: Include mbuiter.h unconditionally.
34356         (mbslen): Assume mbrtowc function.
34357         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34358         (mbsncasecmp): Assume mbrtowc function.
34359         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34360         (mbsnlen): Assume mbrtowc function.
34361         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34362         (mbspbrk): Assume mbrtowc function.
34363         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34364         (mbspcasecmp): Assume mbrtowc function.
34365         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34366         (mbsrchr): Assume mbrtowc function.
34367         * lib/mbssep.c: Include mbuiter.h unconditionally.
34368         (mbssep): Assume mbrtowc function.
34369         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34370         (mbsspn): Assume mbrtowc function.
34371         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34372         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34373         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34374         (mbstok_r): Assume mbrtowc function.
34375         * lib/propername.c: Include mbuiter.h unconditionally.
34376         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34377         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34378         (trim2): Assume mbrtowc function.
34379         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34380         (mbsnwidth): Assume mbrtowc function.
34381         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34382         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34383         fallback definitions.
34384         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34385
34386 2008-12-22  Bruno Haible  <bruno@clisp.org>
34387
34388         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34389
34390 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34391
34392         * modules/regex: Request emulations for the mb*/wc* functions we need.
34393         * m4/regex.m4: Don't look for those functions here.
34394         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34395
34396 2008-12-22  Bruno Haible  <bruno@clisp.org>
34397
34398         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34399
34400 2008-12-21  Bruno Haible  <bruno@clisp.org>
34401
34402         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34403         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34404         (Include): Remove conditionalization.
34405         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34406         (Include): Remove conditionalization.
34407         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34408         (Include): Remove conditionalization.
34409         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34410         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34411         * NEWS: Mention the change.
34412         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34413         via Sergey Poznyakoff <gray@gnu.org.ua>.
34414
34415 2008-12-21  Bruno Haible  <bruno@clisp.org>
34416
34417         * MODULES.html.sh (Extended multibyte and wide character utilities
34418         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34419         wcrtomb, wcsrtombs.
34420         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34421         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34422         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34423         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34424
34425 2008-12-21  Bruno Haible  <bruno@clisp.org>
34426
34427         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34428
34429 2008-12-21  Bruno Haible  <bruno@clisp.org>
34430
34431         * modules/wcsnrtombs-tests: New file.
34432         * tests/test-wcsnrtombs1.sh: New file.
34433         * tests/test-wcsnrtombs2.sh: New file.
34434         * tests/test-wcsnrtombs3.sh: New file.
34435         * tests/test-wcsnrtombs4.sh: New file.
34436         * tests/test-wcsnrtombs.c: New file.
34437
34438         New module 'wcsnrtombs'.
34439         * lib/wchar.in.h (wcsnrtombs): New declaration.
34440         * lib/wcsnrtombs.c: New file.
34441         * lib/wcsrtombs-state.c: New file.
34442         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34443         (internal_state): Remove variable.
34444         * m4/wcsnrtombs.m4: New file.
34445         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34446         compilation units.
34447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34448         HAVE_WCSNRTOMBS.
34449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34450         HAVE_WCSNRTOMBS.
34451         * modules/wcsnrtombs: New file.
34452         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34453         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34454
34455 2008-12-21  Bruno Haible  <bruno@clisp.org>
34456
34457         * modules/wcsrtombs-tests: New file.
34458         * tests/test-wcsrtombs1.sh: New file.
34459         * tests/test-wcsrtombs2.sh: New file.
34460         * tests/test-wcsrtombs3.sh: New file.
34461         * tests/test-wcsrtombs4.sh: New file.
34462         * tests/test-wcsrtombs.c: New file.
34463
34464         New module 'wcsrtombs'.
34465         * lib/wchar.in.h (wcsrtombs): New declaration.
34466         * lib/wcsrtombs.c: New file.
34467         * m4/wcsrtombs.m4: New file.
34468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34469         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34471         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34472         * modules/wcsrtombs: New file.
34473         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34474         bugs.
34475
34476 2008-12-21  Bruno Haible  <bruno@clisp.org>
34477
34478         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34479         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34481         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34482         if not correct.
34483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34484         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34485         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34486         m4/locale-zh.m4, m4/codeset.m4.
34487         * doc/posix-functions/wcrtomb.texi: Document the bug.
34488
34489 2008-12-21  Bruno Haible  <bruno@clisp.org>
34490
34491         Work around a btowc() bug on IRIX 6.5.
34492         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34493         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34494         REPLACE_WTOBC if not.
34495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34496         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34497         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34498
34499 2008-12-21  Bruno Haible  <bruno@clisp.org>
34500
34501         * modules/wcrtomb-tests: New file.
34502         * tests/test-wcrtomb.sh: New file.
34503         * tests/test-wcrtomb.c: New file.
34504
34505         New module 'wcrtomb'.
34506         * lib/wchar.in.h (wcrtomb): New declaration.
34507         * lib/wcrtomb.c: New file.
34508         * m4/wcrtomb.m4: New file.
34509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34510         HAVE_WCRTOMB.
34511         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34512         HAVE_WCRTOMB.
34513         * modules/wcrtomb: New file.
34514         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34515
34516 2008-12-21  Bruno Haible  <bruno@clisp.org>
34517
34518         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34519         * modules/mbsrtowcs (Files): Likewise.
34520         * modules/wctob (Files): Likewise.
34521         * modules/c-strcase-tests (Files): Likewise.
34522         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34523         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34524         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34525         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34526         * modules/vasnprintf-posix-tests (Files): Likewise.
34527
34528 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34529
34530         gitlog-to-changelog: pass all command-line arguments to git-log
34531         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34532         it is sometimes convenient to filter the commits in various ways.
34533         gitlog-to-changelog only allows --since to specify a start date,
34534         but git-log itself supports many other filtering mechanisms.
34535         At the moment, I want to filter by branch name.  Rather than
34536         adding a --branch option to gitlog-to-changelog, it seems more
34537         flexible to simply pass all options directly to git-log and let
34538         git do the work.  Notice that this effectively makes --since a
34539         redundant option for gitlog-to-changelog, but removing it would
34540         require current usage to change since calls would then require
34541         an additional '--'.
34542
34543 2008-12-21  Bruno Haible  <bruno@clisp.org>
34544
34545         * modules/mbsnrtowcs-tests: New file.
34546         * tests/test-mbsnrtowcs1.sh: New file.
34547         * tests/test-mbsnrtowcs2.sh: New file.
34548         * tests/test-mbsnrtowcs3.sh: New file.
34549         * tests/test-mbsnrtowcs4.sh: New file.
34550         * tests/test-mbsnrtowcs.c: New file.
34551
34552         New module 'mbsnrtowcs'.
34553         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34554         * lib/mbsnrtowcs.c: New file.
34555         * lib/mbsrtowcs-state.c: New file.
34556         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34557         (internal_state): Remove variable.
34558         * m4/mbsnrtowcs.m4: New file.
34559         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34560         compilation units.
34561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34562         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34563         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34564         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34565         * modules/mbsnrtowcs: New file.
34566         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34567         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34568         portability problem.
34569
34570 2008-12-21  Bruno Haible  <bruno@clisp.org>
34571
34572         Work around mbsrtowcs bug.
34573         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34574         (gl_FUNC_MBSRTOWCS): Invoke it.
34575         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34576         m4/locale-zh.m4.
34577         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34578
34579 2008-12-21  Bruno Haible  <bruno@clisp.org>
34580
34581         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34582
34583 2008-12-21  Bruno Haible  <bruno@clisp.org>
34584
34585         Update doc for AIX.
34586         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34587         16-bit wchar_t type.
34588         * doc/posix-functions/btowc.texi: Likewise.
34589         * doc/posix-functions/fgetwc.texi: Likewise.
34590         * doc/posix-functions/fgetws.texi: Likewise.
34591         * doc/posix-functions/fputwc.texi: Likewise.
34592         * doc/posix-functions/fputws.texi: Likewise.
34593         * doc/posix-functions/fwide.texi: Likewise.
34594         * doc/posix-functions/fwprintf.texi: Likewise.
34595         * doc/posix-functions/fwscanf.texi: Likewise.
34596         * doc/posix-functions/getwchar.texi: Likewise.
34597         * doc/posix-functions/getwc.texi: Likewise.
34598         * doc/posix-functions/iswalnum.texi: Likewise.
34599         * doc/posix-functions/iswalpha.texi: Likewise.
34600         * doc/posix-functions/iswblank.texi: Likewise.
34601         * doc/posix-functions/iswcntrl.texi: Likewise.
34602         * doc/posix-functions/iswctype.texi: Likewise.
34603         * doc/posix-functions/iswdigit.texi: Likewise.
34604         * doc/posix-functions/iswgraph.texi: Likewise.
34605         * doc/posix-functions/iswlower.texi: Likewise.
34606         * doc/posix-functions/iswprint.texi: Likewise.
34607         * doc/posix-functions/iswpunct.texi: Likewise.
34608         * doc/posix-functions/iswspace.texi: Likewise.
34609         * doc/posix-functions/iswupper.texi: Likewise.
34610         * doc/posix-functions/iswxdigit.texi: Likewise.
34611         * doc/posix-functions/mbrtowc.texi: Likewise.
34612         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34613         * doc/posix-functions/mbstowcs.texi: Likewise.
34614         * doc/posix-functions/mbtowc.texi: Likewise.
34615         * doc/posix-functions/putwchar.texi: Likewise.
34616         * doc/posix-functions/putwc.texi: Likewise.
34617         * doc/posix-functions/swprintf.texi: Likewise.
34618         * doc/posix-functions/tolower.texi: Likewise.
34619         * doc/posix-functions/toupper.texi: Likewise.
34620         * doc/posix-functions/towctrans.texi: Likewise.
34621         * doc/posix-functions/ungetwc.texi: Likewise.
34622         * doc/posix-functions/vswprintf.texi: Likewise.
34623         * doc/posix-functions/wcrtomb.texi: Likewise.
34624         * doc/posix-functions/wcscat.texi: Likewise.
34625         * doc/posix-functions/wcschr.texi: Likewise.
34626         * doc/posix-functions/wcscmp.texi: Likewise.
34627         * doc/posix-functions/wcscoll.texi: Likewise.
34628         * doc/posix-functions/wcscpy.texi: Likewise.
34629         * doc/posix-functions/wcscspn.texi: Likewise.
34630         * doc/posix-functions/wcsftime.texi: Likewise.
34631         * doc/posix-functions/wcslen.texi: Likewise.
34632         * doc/posix-functions/wcsncat.texi: Likewise.
34633         * doc/posix-functions/wcsncmp.texi: Likewise.
34634         * doc/posix-functions/wcsncpy.texi: Likewise.
34635         * doc/posix-functions/wcspbrk.texi: Likewise.
34636         * doc/posix-functions/wcsrchr.texi: Likewise.
34637         * doc/posix-functions/wcsrtombs.texi: Likewise.
34638         * doc/posix-functions/wcsspn.texi: Likewise.
34639         * doc/posix-functions/wcsstr.texi: Likewise.
34640         * doc/posix-functions/wcstod.texi: Likewise.
34641         * doc/posix-functions/wcstof.texi: Likewise.
34642         * doc/posix-functions/wcstoimax.texi: Likewise.
34643         * doc/posix-functions/wcstok.texi: Likewise.
34644         * doc/posix-functions/wcstold.texi: Likewise.
34645         * doc/posix-functions/wcstoll.texi: Likewise.
34646         * doc/posix-functions/wcstol.texi: Likewise.
34647         * doc/posix-functions/wcstombs.texi: Likewise.
34648         * doc/posix-functions/wcstoull.texi: Likewise.
34649         * doc/posix-functions/wcstoul.texi: Likewise.
34650         * doc/posix-functions/wcstoumax.texi: Likewise.
34651         * doc/posix-functions/wcswidth.texi: Likewise.
34652         * doc/posix-functions/wcsxfrm.texi: Likewise.
34653         * doc/posix-functions/wctob.texi: Likewise.
34654         * doc/posix-functions/wctomb.texi: Likewise.
34655         * doc/posix-functions/wctrans.texi: Likewise.
34656         * doc/posix-functions/wctype.texi: Likewise.
34657         * doc/posix-functions/wcwidth.texi: Likewise.
34658         * doc/posix-functions/wmemchr.texi: Likewise.
34659         * doc/posix-functions/wmemcmp.texi: Likewise.
34660         * doc/posix-functions/wmemcpy.texi: Likewise.
34661         * doc/posix-functions/wmemmove.texi: Likewise.
34662         * doc/posix-functions/wmemset.texi: Likewise.
34663         * doc/posix-functions/wprintf.texi: Likewise.
34664         * doc/posix-functions/wscanf.texi: Likewise.
34665
34666 2008-12-21  Bruno Haible  <bruno@clisp.org>
34667
34668         Update doc for HP-UX 11.11.
34669         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34670         in HP-UX version 11.00, not in all versions of HP-UX 11.
34671         * doc/posix-functions/fwide.texi: Likewise.
34672         * doc/posix-functions/fwprintf.texi: Likewise.
34673         * doc/posix-functions/fwscanf.texi: Likewise.
34674         * doc/posix-functions/inet_ntop.texi: Likewise.
34675         * doc/posix-functions/inet_pton.texi: Likewise.
34676         * doc/posix-functions/mbrlen.texi: Likewise.
34677         * doc/posix-functions/mbrtowc.texi: Likewise.
34678         * doc/posix-functions/mbsinit.texi: Likewise.
34679         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34680         * doc/posix-functions/swprintf.texi: Likewise.
34681         * doc/posix-functions/swscanf.texi: Likewise.
34682         * doc/posix-functions/towctrans.texi: Likewise.
34683         * doc/posix-functions/vfwprintf.texi: Likewise.
34684         * doc/posix-functions/vswprintf.texi: Likewise.
34685         * doc/posix-functions/vwprintf.texi: Likewise.
34686         * doc/posix-functions/wcrtomb.texi: Likewise.
34687         * doc/posix-functions/wcsrtombs.texi: Likewise.
34688         * doc/posix-functions/wcsstr.texi: Likewise.
34689         * doc/posix-functions/wctob.texi: Likewise.
34690         * doc/posix-functions/wctrans.texi: Likewise.
34691         * doc/posix-functions/wmemchr.texi: Likewise.
34692         * doc/posix-functions/wmemcmp.texi: Likewise.
34693         * doc/posix-functions/wmemcpy.texi: Likewise.
34694         * doc/posix-functions/wmemmove.texi: Likewise.
34695         * doc/posix-functions/wmemset.texi: Likewise.
34696         * doc/posix-functions/wprintf.texi: Likewise.
34697         * doc/posix-functions/wscanf.texi: Likewise.
34698
34699 2008-12-21  Bruno Haible  <bruno@clisp.org>
34700
34701         Work around a portability problem.
34702         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34703         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34704
34705 2008-12-20  Bruno Haible  <bruno@clisp.org>
34706
34707         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34708         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34709         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34711         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34712
34713         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34714         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34715         set.
34716         (GNULIB_defined_mbstate_t): New macro.
34717         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34718         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34719         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34720         reuses the system's mbrtowc function but works around the bugs.
34721         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34722         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34723         macros.
34724         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34725         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34726         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34727         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34728         REPLACE_MBSINIT if mbsinit needs to be overridden.
34729         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34730         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34731         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34732         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34733         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34734         m4/locale-zh.m4.
34735         (Depends): Add mbsinit.
34736         * modules/mbsinit (Depends): Add mbrtowc.
34737         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34738
34739 2008-12-20  Bruno Haible  <bruno@clisp.org>
34740
34741         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34742         so that there are no conversion errors on AIX.
34743         * tests/test-mbsrtowcs.c (main): LIkewise.
34744
34745 2008-12-20  Bruno Haible  <bruno@clisp.org>
34746
34747         Work around wctob bug on Solaris <= 9.
34748         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34749         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34751         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34752         * modules/wctob (Files): Add m4/locale-fr.m4.
34753         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34754
34755 2008-12-20  Bruno Haible  <bruno@clisp.org>
34756
34757         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34758         /dev/null.
34759         * tests/test-select-in.sh: Likewise.
34760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34761
34762 2008-12-20  Bruno Haible  <bruno@clisp.org>
34763
34764         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34765         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34766         Cygwin 1.5.x.
34767
34768 2008-12-20  Bruno Haible  <bruno@clisp.org>
34769
34770         Ensure mbstate_t is defined on HP-UX 11.11.
34771         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34772         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34773         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34774         AC_USE_SYSTEM_EXTENSIONS.
34775         * modules/fnmatch (Depends-on): Add extensions.
34776         * modules/mbrlen (Depends-on): Likewise.
34777         * modules/mbrtowc (Depends-on): Likewise.
34778         * modules/mbsinit (Depends-on): Likewise.
34779         * modules/mbsrtowcs (Depends-on): Likewise.
34780         * modules/mbswidth (Depends-on): Likewise.
34781         * modules/quotearg (Depends-on): Likewise.
34782         * modules/strftime (Depends-on): Likewise.
34783
34784 2008-12-20  Bruno Haible  <bruno@clisp.org>
34785
34786         Ensure wctob is declared on IRIX 6.5.
34787         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34788         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34789         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34791         of HAVE_WCTOB.
34792         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34793         HAVE_WCTOB.
34794         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34795
34796 2008-12-19  Bruno Haible  <bruno@clisp.org>
34797
34798         * modules/mbsrtowcs-tests: New file.
34799         * tests/test-mbsrtowcs1.sh: New file.
34800         * tests/test-mbsrtowcs2.sh: New file.
34801         * tests/test-mbsrtowcs3.sh: New file.
34802         * tests/test-mbsrtowcs4.sh: New file.
34803         * tests/test-mbsrtowcs.c: New file.
34804
34805         New module 'mbsrtowcs'.
34806         * lib/wchar.in.h (mbsrtowcs): New declaration.
34807         * lib/mbsrtowcs.c: New file.
34808         * m4/mbsrtowcs.m4: New file.
34809         * modules/mbsrtowcs: New file.
34810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34811         HAVE_MBSRTOWCS.
34812         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34813         HAVE_MBSRTOWCS.
34814         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34815
34816 2008-12-19  Bruno Haible  <bruno@clisp.org>
34817
34818         New module 'mbrlen'.
34819         * lib/wchar.in.h (mbrlen): New declaration.
34820         * lib/mbrlen.c: New file.
34821         * m4/mbrlen.m4: New file.
34822         * modules/mbrlen: New file.
34823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34824         HAVE_MBRLEN.
34825         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34826         HAVE_MBRLEN.
34827         * doc/posix-functions/mbrlen.texi: Document the new module.
34828
34829 2008-12-19  Bruno Haible  <bruno@clisp.org>
34830
34831         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34832         * modules/mbrtowc (Depends-on): Add verify.
34833         Suggested by Paul Eggert.
34834
34835 2008-12-18  Bruno Haible  <bruno@clisp.org>
34836
34837         * modules/mbsinit-tests: New file.
34838         * tests/test-mbsinit.sh: New file.
34839         * tests/test-mbsinit.c: New file.
34840
34841 2008-12-18  Bruno Haible  <bruno@clisp.org>
34842
34843         * modules/mbrtowc-tests: New file.
34844         * tests/test-mbrtowc1.sh: New file.
34845         * tests/test-mbrtowc2.sh: New file.
34846         * tests/test-mbrtowc3.sh: New file.
34847         * tests/test-mbrtowc4.sh: New file.
34848         * tests/test-mbrtowc.c: New file.
34849
34850         New module 'mbrtowc'.
34851         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34852         mbsinit and mbrtowc.
34853         (mbrtowc): New declaration.
34854         * lib/mbrtowc.c: New file.
34855         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34856         * modules/mbrtowc: New file.
34857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34858         HAVE_MBRTOWC.
34859         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34860         HAVE_MBRTOWC.
34861         * doc/posix-functions/mbrtowc.texi: Document the new module.
34862
34863 2008-12-18  Bruno Haible  <bruno@clisp.org>
34864
34865         New module 'wctob'.
34866         * lib/wchar.in.h (wctob): New declaration.
34867         * lib/wctob.c: New file.
34868         * m4/wctob.m4: New file.
34869         * modules/wctob: New file.
34870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34871         HAVE_WCTOB.
34872         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34873         * doc/posix-functions/wctob.texi: Document the new module.
34874
34875 2008-12-18  Bruno Haible  <bruno@clisp.org>
34876
34877         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34878         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34879
34880 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34881
34882         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34883         G. Christensen" <tgc@jupiterrise.com>.
34884
34885         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34886         G. Christensen" <tgc@jupiterrise.com>.
34887
34888         * lib/flock.c: Need to include string.h.  Reported by "Tom
34889         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34890         <ebb9@byu.net>.
34891
34892 2008-12-18  Bruno Haible  <bruno@clisp.org>
34893
34894         * m4/locale-ja.m4: New file, from GNU gettext.
34895
34896 2008-12-17  Bruno Haible  <bruno@clisp.org>
34897
34898         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34899         Suggested by Eric Blake.
34900
34901 2008-12-17  Bruno Haible  <bruno@clisp.org>
34902
34903         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34904
34905 2008-12-17  Bruno Haible  <bruno@clisp.org>
34906
34907         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34908         * modules/mbsinit (Depends-on): Add verify.
34909         Suggested by Paul Eggert.
34910
34911 2008-12-17  Bruno Haible  <bruno@clisp.org>
34912
34913         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34914         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34915         gl_FUNC_MBRTOWC.
34916         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34917         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34918         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34919         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34920         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34921         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34922         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34923         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34924         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34925         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34926         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34927         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34928         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34929         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34930         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34931         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34932         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34933         * modules/trim (configure.ac): Likewise.
34934
34935 2008-12-17  Bruno Haible  <bruno@clisp.org>
34936
34937         * modules/btowc-tests: New file.
34938         * tests/test-btowc1.sh: New file.
34939         * tests/test-btowc2.sh: New file.
34940         * tests/test-btowc.c: New file.
34941
34942         New module 'btowc'.
34943         * lib/wchar.in.h (btowc): New declaration.
34944         * lib/btowc.c: New file.
34945         * m4/btowc.m4: New file.
34946         * modules/btowc: New file.
34947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34948         HAVE_BTOWC.
34949         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34950         * doc/posix-functions/btowc.texi: Document the new module.
34951
34952 2008-12-17  Bruno Haible  <bruno@clisp.org>
34953
34954         New module 'mbsinit'.
34955         * lib/wchar.in.h (mbsinit): New declaration.
34956         * lib/mbsinit.c: New file.
34957         * m4/mbsinit.m4: New file.
34958         * modules/mbsinit: New file.
34959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34960         HAVE_MBSINIT.
34961         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34962         HAVE_MBSINIT.
34963         * doc/posix-functions/mbsinit.texi: Document the new module.
34964
34965 2008-12-16  Bruno Haible  <bruno@clisp.org>
34966
34967         * lib/unistd.in.h: Add comment.
34968         * tests/test-environ.c: Don't include <stdlib.h>.
34969
34970 2008-12-16  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/parse-duration.h (parse_duration): Document return value
34973         convention.
34974         * lib/parse-duration.c: Include specification header first. Add
34975         comments.
34976         (_): Remove macro.
34977         (parse_year_month_day, parse_hour_minute_second): Move side effects
34978         outside of strchr call.
34979         (parse_non_iso8601): Move side effects outside of isspace call.
34980         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34981         call.
34982
34983 2008-12-16  Bruno Haible  <bruno@clisp.org>
34984
34985         * tests/test-parse-duration.sh: Produce no output when the test
34986         succeeds.
34987
34988 2008-12-16  Bruno Haible  <bruno@clisp.org>
34989
34990         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34991         expressions.
34992
34993 2008-12-15  Bruno Haible  <bruno@clisp.org>
34994
34995         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34996         * doc/glibc-functions/flistxattr.texi: Likewise.
34997         * doc/glibc-functions/fopencookie.texi: Likewise.
34998         * doc/glibc-functions/fremovexattr.texi: Likewise.
34999         * doc/glibc-functions/fsetxattr.texi: Likewise.
35000         * doc/glibc-functions/getxattr.texi: Likewise.
35001         * doc/glibc-functions/lgetxattr.texi: Likewise.
35002         * doc/glibc-functions/listxattr.texi: Likewise.
35003         * doc/glibc-functions/llistxattr.texi: Likewise.
35004         * doc/glibc-functions/lremovexattr.texi: Likewise.
35005         * doc/glibc-functions/lsetxattr.texi: Likewise.
35006         * doc/glibc-functions/removexattr.texi: Likewise.
35007         * doc/glibc-functions/setxattr.texi: Likewise.
35008         * doc/posix-functions/open_memstream.texi: Likewise.
35009
35010 2008-12-15  Eric Blake  <ebb9@byu.net>
35011
35012         Update doc for cygwin 1.7.
35013         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35014         functions.
35015         * doc/posix-functions/fchmodat.texi: Likewise.
35016         * doc/posix-functions/fchownat.texi: Likewise.
35017         * doc/posix-functions/fdopendir.texi: Likewise.
35018         * doc/posix-functions/fmemopen.texi: Likewise.
35019         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35020         * doc/posix-functions/fstatat.texi: Likewise.
35021         * doc/posix-functions/futimens.texi: Likewise.
35022         * doc/posix-functions/gai_strerror.texi: Likewise.
35023         * doc/posix-functions/getaddrinfo.texi: Likewise.
35024         * doc/posix-functions/getnameinfo.texi: Likewise.
35025         * doc/posix-functions/if_freenameindex.texi: Likewise.
35026         * doc/posix-functions/if_indextoname.texi: Likewise.
35027         * doc/posix-functions/if_nameindex.texi: Likewise.
35028         * doc/posix-functions/if_nametoindex.texi: Likewise.
35029         * doc/posix-functions/insque.texi: Likewise.
35030         * doc/posix-functions/linkat.texi: Likewise.
35031         * doc/posix-functions/llrint.texi: Likewise.
35032         * doc/posix-functions/llrintf.texi: Likewise.
35033         * doc/posix-functions/llrintl.texi: Likewise.
35034         * doc/posix-functions/lockf.texi: Likewise.
35035         * doc/posix-functions/lrintl.texi: Likewise.
35036         * doc/posix-functions/mkdirat.texi: Likewise.
35037         * doc/posix-functions/mkfifoat.texi: Likewise.
35038         * doc/posix-functions/mknodat.texi: Likewise.
35039         * doc/posix-functions/mq_close.texi: Likewise.
35040         * doc/posix-functions/mq_getattr.texi: Likewise.
35041         * doc/posix-functions/mq_notify.texi: Likewise.
35042         * doc/posix-functions/mq_open.texi: Likewise.
35043         * doc/posix-functions/mq_receive.texi: Likewise.
35044         * doc/posix-functions/mq_send.texi: Likewise.
35045         * doc/posix-functions/mq_setattr.texi: Likewise.
35046         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35047         * doc/posix-functions/mq_timedsend.texi: Likewise.
35048         * doc/posix-functions/mq_unlink.texi: Likewise.
35049         * doc/posix-functions/open_memstream.texi: Likewise.
35050         * doc/posix-functions/openat.texi: Likewise.
35051         * doc/posix-functions/posix_fadvise.texi: Likewise.
35052         * doc/posix-functions/posix_fallocate.texi: Likewise.
35053         * doc/posix-functions/posix_madvise.texi: Likewise.
35054         * doc/posix-functions/posix_memalign.texi: Likewise.
35055         * doc/posix-functions/posix_openpt.texi: Likewise.
35056         * doc/posix-functions/readlinkat.texi: Likewise.
35057         * doc/posix-functions/remque.texi: Likewise.
35058         * doc/posix-functions/renameat.texi: Likewise.
35059         * doc/posix-functions/rintl.texi: Likewise.
35060         * doc/posix-functions/sem_unlink.texi: Likewise.
35061         * doc/posix-functions/shm_open.texi: Likewise.
35062         * doc/posix-functions/shm_unlink.texi: Likewise.
35063         * doc/posix-functions/signgam.texi: Likewise.
35064         * doc/posix-functions/sigset.texi: Likewise.
35065         * doc/posix-functions/stpcpy.texi: Likewise.
35066         * doc/posix-functions/stpncpy.texi: Likewise.
35067         * doc/posix-functions/strerror.texi: Likewise.
35068         * doc/posix-functions/strtod.texi: Likewise.
35069         * doc/posix-functions/symlinkat.texi: Likewise.
35070         * doc/posix-functions/unlinkat.texi: Likewise.
35071         * doc/posix-functions/utimensat.texi: Likewise.
35072         * doc/glibc-functions/bindresvport.texi: Likewise.
35073         * doc/glibc-functions/dn_expand.texi: Likewise.
35074         * doc/glibc-functions/exp10.texi: Likewise.
35075         * doc/glibc-functions/exp10f.texi: Likewise.
35076         * doc/glibc-functions/fgetxattr.texi: Likewise.
35077         * doc/glibc-functions/flistxattr.texi: Likewise.
35078         * doc/glibc-functions/fopencookie.texi: Likewise.
35079         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35080         * doc/glibc-functions/fremovexattr.texi: Likewise.
35081         * doc/glibc-functions/fsetxattr.texi: Likewise.
35082         * doc/glibc-functions/getifaddrs.texi: Likewise.
35083         * doc/glibc-functions/getxattr.texi: Likewise.
35084         * doc/glibc-functions/lgetxattr.texi: Likewise.
35085         * doc/glibc-functions/listxattr.texi: Likewise.
35086         * doc/glibc-functions/llistxattr.texi: Likewise.
35087         * doc/glibc-functions/lremovexattr.texi: Likewise.
35088         * doc/glibc-functions/lsetxattr.texi: Likewise.
35089         * doc/glibc-functions/pow10.texi: Likewise.
35090         * doc/glibc-functions/pow10f.texi: Likewise.
35091         * doc/glibc-functions/rcmd_af.texi: Likewise.
35092         * doc/glibc-functions/removexattr.texi: Likewise.
35093         * doc/glibc-functions/res_init.texi: Likewise.
35094         * doc/glibc-functions/res_mkquery.texi: Likewise.
35095         * doc/glibc-functions/res_query.texi: Likewise.
35096         * doc/glibc-functions/res_querydomain.texi: Likewise.
35097         * doc/glibc-functions/res_send.texi: Likewise.
35098         * doc/glibc-functions/rresvport_af.texi: Likewise.
35099         * doc/glibc-functions/setxattr.texi: Likewise.
35100         * doc/glibc-functions/strcasestr.texi: Likewise.
35101
35102 2008-12-15  Bruno Haible  <bruno@clisp.org>
35103
35104         Fix compilation error on OSF/1 4.0.
35105         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35106         <sys/time.h>, simply delegate to the system header.
35107         Reported by Daniel Richard G. <oss@teragram.com>.
35108
35109 2008-12-15  Bruno Haible  <bruno@clisp.org>
35110
35111         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35112         * doc/posix-functions/fchmodat.texi: Likewise.
35113         * doc/posix-functions/fchownat.texi: Likewise.
35114         * doc/posix-functions/fdopendir.texi: Likewise.
35115         * doc/posix-functions/fstatat.texi: Likewise.
35116         * doc/posix-functions/mkdirat.texi: Likewise.
35117         * doc/posix-functions/unlinkat.texi: Likewise.
35118
35119 2008-12-14  Bruno Haible  <bruno@clisp.org>
35120
35121         Update doc for POSIX:2008.
35122         * doc/posix-functions/faccessat.texi: New file.
35123         * doc/posix-functions/fchmodat.texi: New file.
35124         * doc/posix-functions/fchownat.texi: New file.
35125         * doc/posix-functions/fdopendir.texi: New file.
35126         * doc/posix-functions/fstatat.texi: New file.
35127         * doc/posix-functions/futimens.texi: New file.
35128         * doc/posix-functions/linkat.texi: New file.
35129         * doc/posix-functions/mkdirat.texi: New file.
35130         * doc/posix-functions/mkfifoat.texi: New file.
35131         * doc/posix-functions/mknodat.texi: New file.
35132         * doc/posix-functions/open_wmemstream.texi: New file.
35133         * doc/posix-functions/openat.texi: New file.
35134         * doc/posix-functions/psiginfo.texi: New file.
35135         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35136         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35137         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35138         * doc/posix-functions/readlinkat.texi: New file.
35139         * doc/posix-functions/renameat.texi: New file.
35140         * doc/posix-functions/strerror_l.texi: New file.
35141         * doc/posix-functions/symlinkat.texi: New file.
35142         * doc/posix-functions/unlinkat.texi: New file.
35143         * doc/posix-functions/utimensat.texi: New file.
35144         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35145
35146 2008-12-14  Bruno Haible  <bruno@clisp.org>
35147
35148         Update doc for POSIX:2008.
35149         * doc/posix-functions/alphasort.texi: Renamed from
35150         doc/glibc-functions/alphasort.texi.
35151         * doc/posix-functions/dirfd.texi: Renamed from
35152         doc/glibc-functions/dirfd.texi.
35153         * doc/posix-functions/dprintf.texi: Renamed from
35154         doc/glibc-functions/dprintf.texi.
35155         * doc/posix-functions/duplocale.texi: Renamed from
35156         doc/glibc-functions/duplocale.texi.
35157         * doc/posix-functions/fexecve.texi: Renamed from
35158         doc/glibc-functions/fexecve.texi.
35159         * doc/posix-functions/fmemopen.texi: Renamed from
35160         doc/glibc-functions/fmemopen.texi.
35161         * doc/posix-functions/freelocale.texi: Renamed from
35162         doc/glibc-functions/freelocale.texi.
35163         * doc/posix-functions/getdate_err.texi: Renamed from
35164         doc/glibc-functions/getdate_err.texi.
35165         * doc/posix-functions/isalnum_l.texi: Renamed from
35166         doc/glibc-functions/isalnum_l.texi.
35167         * doc/posix-functions/isalpha_l.texi: Renamed from
35168         doc/glibc-functions/isalpha_l.texi.
35169         * doc/posix-functions/isblank_l.texi: Renamed from
35170         doc/glibc-functions/isblank_l.texi.
35171         * doc/posix-functions/iscntrl_l.texi: Renamed from
35172         doc/glibc-functions/iscntrl_l.texi.
35173         * doc/posix-functions/isdigit_l.texi: Renamed from
35174         doc/glibc-functions/isdigit_l.texi.
35175         * doc/posix-functions/isgraph_l.texi: Renamed from
35176         doc/glibc-functions/isgraph_l.texi.
35177         * doc/posix-functions/islower_l.texi: Renamed from
35178         doc/glibc-functions/islower_l.texi.
35179         * doc/posix-functions/isprint_l.texi: Renamed from
35180         doc/glibc-functions/isprint_l.texi.
35181         * doc/posix-functions/ispunct_l.texi: Renamed from
35182         doc/glibc-functions/ispunct_l.texi.
35183         * doc/posix-functions/isspace_l.texi: Renamed from
35184         doc/glibc-functions/isspace_l.texi.
35185         * doc/posix-functions/isupper_l.texi: Renamed from
35186         doc/glibc-functions/isupper_l.texi.
35187         * doc/posix-functions/iswalnum_l.texi: Renamed from
35188         doc/glibc-functions/iswalnum_l.texi.
35189         * doc/posix-functions/iswalpha_l.texi: Renamed from
35190         doc/glibc-functions/iswalpha_l.texi.
35191         * doc/posix-functions/iswblank_l.texi: Renamed from
35192         doc/glibc-functions/iswblank_l.texi.
35193         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35194         doc/glibc-functions/iswcntrl_l.texi.
35195         * doc/posix-functions/iswctype_l.texi: Renamed from
35196         doc/glibc-functions/iswctype_l.texi.
35197         * doc/posix-functions/iswdigit_l.texi: Renamed from
35198         doc/glibc-functions/iswdigit_l.texi.
35199         * doc/posix-functions/iswgraph_l.texi: Renamed from
35200         doc/glibc-functions/iswgraph_l.texi.
35201         * doc/posix-functions/iswlower_l.texi: Renamed from
35202         doc/glibc-functions/iswlower_l.texi.
35203         * doc/posix-functions/iswprint_l.texi: Renamed from
35204         doc/glibc-functions/iswprint_l.texi.
35205         * doc/posix-functions/iswpunct_l.texi: Renamed from
35206         doc/glibc-functions/iswpunct_l.texi.
35207         * doc/posix-functions/iswspace_l.texi: Renamed from
35208         doc/glibc-functions/iswspace_l.texi.
35209         * doc/posix-functions/iswupper_l.texi: Renamed from
35210         doc/glibc-functions/iswupper_l.texi.
35211         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35212         doc/glibc-functions/iswxdigit_l.texi.
35213         * doc/posix-functions/isxdigit_l.texi: Renamed from
35214         doc/glibc-functions/isxdigit_l.texi.
35215         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35216         doc/glibc-functions/mbsnrtowcs.texi.
35217         * doc/posix-functions/mkdtemp.texi: Renamed from
35218         doc/glibc-functions/mkdtemp.texi.
35219         * doc/posix-functions/newlocale.texi: Renamed from
35220         doc/glibc-functions/newlocale.texi.
35221         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35222         doc/glibc-functions/nl_langinfo_l.texi.
35223         * doc/posix-functions/open_memstream.texi: Renamed from
35224         doc/glibc-functions/open_memstream.texi.
35225         * doc/posix-functions/opterr.texi: Renamed from
35226         doc/glibc-functions/opterr.texi.
35227         * doc/posix-functions/optind.texi: Renamed from
35228         doc/glibc-functions/optind.texi.
35229         * doc/posix-functions/optopt.texi: Renamed from
35230         doc/glibc-functions/optopt.texi.
35231         * doc/posix-functions/psignal.texi: Renamed from
35232         doc/glibc-functions/psignal.texi.
35233         * doc/posix-functions/scandir.texi: Renamed from
35234         doc/glibc-functions/scandir.texi.
35235         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35236         doc/glibc-functions/sched_get_priority_min.texi.
35237         * doc/posix-functions/signgam.texi: Renamed from
35238         doc/glibc-functions/signgam.texi.
35239         * doc/posix-functions/stpcpy.texi: Renamed from
35240         doc/glibc-functions/stpcpy.texi.
35241         * doc/posix-functions/stpncpy.texi: Renamed from
35242         doc/glibc-functions/stpncpy.texi.
35243         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35244         doc/glibc-functions/strcasecmp_l.texi.
35245         * doc/posix-functions/strcoll_l.texi: Renamed from
35246         doc/glibc-functions/strcoll_l.texi.
35247         * doc/posix-functions/strfmon_l.texi: Renamed from
35248         doc/glibc-functions/strfmon_l.texi.
35249         * doc/posix-functions/strftime_l.texi: Renamed from
35250         doc/glibc-functions/strftime_l.texi.
35251         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35252         doc/glibc-functions/strncasecmp_l.texi.
35253         * doc/posix-functions/strndup.texi: Renamed from
35254         doc/glibc-functions/strndup.texi.
35255         * doc/posix-functions/strnlen.texi: Renamed from
35256         doc/glibc-functions/strnlen.texi.
35257         * doc/posix-functions/strsignal.texi: Renamed from
35258         doc/glibc-functions/strsignal.texi.
35259         * doc/posix-functions/strxfrm_l.texi: Renamed from
35260         doc/glibc-functions/strxfrm_l.texi.
35261         * doc/posix-functions/timer_gettime.texi: Renamed from
35262         doc/glibc-functions/timer_gettime.texi.
35263         * doc/posix-functions/tolower_l.texi: Renamed from
35264         doc/glibc-functions/tolower_l.texi.
35265         * doc/posix-functions/toupper_l.texi: Renamed from
35266         doc/glibc-functions/toupper_l.texi.
35267         * doc/posix-functions/towctrans_l.texi: Renamed from
35268         doc/glibc-functions/towctrans_l.texi.
35269         * doc/posix-functions/towlower_l.texi: Renamed from
35270         doc/glibc-functions/towlower_l.texi.
35271         * doc/posix-functions/towupper_l.texi: Renamed from
35272         doc/glibc-functions/towupper_l.texi.
35273         * doc/posix-functions/uselocale.texi: Renamed from
35274         doc/glibc-functions/uselocale.texi.
35275         * doc/posix-functions/vdprintf.texi: Renamed from
35276         doc/glibc-functions/vdprintf.texi.
35277         * doc/posix-functions/wcpcpy.texi:
35278         Renamed from doc/glibc-functions/wcpcpy.texi.
35279         * doc/posix-functions/wcpncpy.texi: Renamed from
35280         doc/glibc-functions/wcpncpy.texi.
35281         * doc/posix-functions/wcscasecmp.texi: Renamed from
35282         doc/glibc-functions/wcscasecmp.texi.
35283         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35284         doc/glibc-functions/wcscasecmp_l.texi.
35285         * doc/posix-functions/wcscoll_l.texi: Renamed from
35286         doc/glibc-functions/wcscoll_l.texi.
35287         * doc/posix-functions/wcsdup.texi: Renamed from
35288         doc/glibc-functions/wcsdup.texi.
35289         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35290         doc/glibc-functions/wcsncasecmp.texi.
35291         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35292         doc/glibc-functions/wcsncasecmp_l.texi.
35293         * doc/posix-functions/wcsnlen.texi: Renamed from
35294         doc/glibc-functions/wcsnlen.texi.
35295         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35296         doc/glibc-functions/wcsnrtombs.texi.
35297         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35298         doc/glibc-functions/wcsxfrm_l.texi.
35299         * doc/posix-functions/wctrans_l.texi: Renamed from
35300         doc/glibc-functions/wctrans_l.texi.
35301         * doc/posix-functions/wctype_l.texi: Renamed from
35302         doc/glibc-functions/wctype_l.texi.
35303         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35304         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35305         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35306         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35307         these subsections.
35308         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35309         Remove sections.
35310
35311 2008-12-14  Bruno Haible  <bruno@clisp.org>
35312
35313         Update doc for POSIX:2008.
35314         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35315
35316 2008-12-14  Bruno Haible  <bruno@clisp.org>
35317
35318         Update doc for POSIX:2008.
35319         * doc/pastposix-functions/bcmp.texi: Renamed from
35320         doc/posix-functions/bcmp.texi.
35321         * doc/pastposix-functions/bcopy.texi: Renamed from
35322         doc/posix-functions/bcopy.texi.
35323         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35324         doc/posix-functions/bsd_signal.texi.
35325         * doc/pastposix-functions/bzero.texi: Renamed from
35326         doc/posix-functions/bzero.texi.
35327         * doc/pastposix-functions/ecvt.texi: Renamed from
35328         doc/posix-functions/ecvt.texi.
35329         * doc/pastposix-functions/fcvt.texi: Renamed from
35330         doc/posix-functions/fcvt.texi.
35331         * doc/pastposix-functions/ftime.texi: Renamed from
35332         doc/posix-functions/ftime.texi.
35333         * doc/pastposix-functions/gcvt.texi: Renamed from
35334         doc/posix-functions/gcvt.texi.
35335         * doc/pastposix-functions/getcontext.texi: Renamed from
35336         doc/posix-functions/getcontext.texi.
35337         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35338         doc/posix-functions/gethostbyaddr.texi.
35339         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35340         doc/posix-functions/gethostbyname.texi.
35341         * doc/pastposix-functions/getwd.texi: Renamed from
35342         doc/posix-functions/getwd.texi.
35343         * doc/pastposix-functions/h_errno.texi: Renamed from
35344         doc/posix-functions/h_errno.texi.
35345         * doc/pastposix-functions/index.texi: Renamed from
35346         doc/posix-functions/index.texi.
35347         * doc/pastposix-functions/makecontext.texi: Renamed from
35348         doc/posix-functions/makecontext.texi.
35349         * doc/pastposix-functions/mktemp.texi: Renamed from
35350         doc/posix-functions/mktemp.texi.
35351         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35352         doc/posix-functions/pthread_attr_getstackaddr.texi.
35353         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35354         doc/posix-functions/pthread_attr_setstackaddr.texi.
35355         * doc/pastposix-functions/rindex.texi: Renamed from
35356         doc/posix-functions/rindex.texi.
35357         * doc/pastposix-functions/scalb.texi: Renamed from
35358         doc/posix-functions/scalb.texi.
35359         * doc/pastposix-functions/setcontext.texi: Renamed from
35360         doc/posix-functions/setcontext.texi.
35361         * doc/pastposix-functions/swapcontext.texi: Renamed from
35362         doc/posix-functions/swapcontext.texi.
35363         * doc/pastposix-functions/ualarm.texi: Renamed from
35364         doc/posix-functions/ualarm.texi.
35365         * doc/pastposix-functions/usleep.texi: Renamed from
35366         doc/posix-functions/usleep.texi.
35367         * doc/pastposix-functions/vfork.texi: Renamed from
35368         doc/posix-functions/vfork.texi.
35369         * doc/pastposix-functions/wcswcs.texi: Renamed from
35370         doc/posix-functions/wcswcs.texi.
35371         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35372         (Function Substitutes): Update.
35373
35374 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35375
35376         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35377         m4/strerror.m4.
35378
35379 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35380             Bruno Haible  <bruno@clisp.org>
35381
35382         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35383
35384 2008-12-13  Bruno Haible  <bruno@clisp.org>
35385
35386         * modules/strtoull (Depends-on): Remove unistd.
35387
35388 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35389
35390         * modules/strtoull (Depends-on): Add stdlib.
35391
35392 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35393
35394         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35395
35396 2008-12-10  Jim Meyering  <meyering@redhat.com>
35397
35398         gl_ASSERT: don't say assertions are disabled when they're not
35399         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35400         "checking whether to enable assertions... no", when they are in
35401         fact enabled.  This is solely a bug in the output of configure.
35402         In spite of saying "no", NDEBUG was not defined in that case.
35403         Also, as noted by Eric Blake, leave assertions enabled upon
35404         --enable-assert=INVALID.
35405
35406 2008-12-10  Bruno Haible  <bruno@clisp.org>
35407
35408         Change MODULES.html to refer to POSIX:2008 where possible.
35409         * MODULES.html.sh (POSIX2008_URL): New variable.
35410         (posix_headers): Remove sys/timeb, ucontext.
35411         (posix2001_headers): New variable.
35412         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35413         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35414         index, makecontext, mktemp, pthread_attr_getstackaddr,
35415         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35416         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35417         (posix2001_functions): New variable.
35418         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35419         otherwise.
35420
35421 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35422
35423         add missing include to parse-duration.c
35424         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35425         * modules/parse-duration (Depends-on): Add xalloc.
35426
35427         fix sed script reading maint.mk
35428         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35429         (syntax-check-rules): Use it.
35430
35431 2008-12-09  Bruno Haible  <bruno@clisp.org>
35432
35433         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35434         MacOS X 10.4/PowerPC.
35435         Reported by Simon Josefsson.
35436
35437 2008-12-08  Jim Meyering  <meyering@redhat.com>
35438
35439         work around mingw's lack of some S_IF definitions
35440         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35441         Reported by Simon Josefsson.
35442
35443 2008-12-08  Bruno Haible  <bruno@clisp.org>
35444
35445         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35446         applied to variables. Needed on MacOS X 10.4/PowerPC.
35447         Reported by Simon Josefsson.
35448
35449 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35450         and Eric Blake  <ebb9@byu.net>
35451
35452         assert: honor --enable-assert
35453         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35454         order to honor --enable-assert, rather than treating it as a
35455         synonym for --disable-assert.
35456
35457 2008-12-08  Jim Meyering  <meyering@redhat.com>
35458
35459         * lib/posixtm.c: Remove now-useless declaration of mktime.
35460
35461         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35462
35463 2008-12-07  Bruno Haible  <bruno@clisp.org>
35464
35465         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35466         test_once): Mark functions as static.
35467         * tests/test-tls.c (test_tls): Likewise.
35468
35469 2008-12-07  Bruno Haible  <bruno@clisp.org>
35470
35471         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35472         iconv_register_autodetect.
35473
35474 2008-12-07  Jim Meyering  <meyering@redhat.com>
35475
35476         posixtm.c: avoid a warning
35477         * lib/posixtm.c (posixtime): Don't initialize tm0.
35478         It's no longer needed to placate gcc4's -Wuninitialized,
35479         and the attempt to placate would elicit a new warning.
35480
35481         unicodeio.c: mark unused parameters
35482         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35483         (fallback_failure_callback): Likewise.
35484
35485 2008-12-07  Bruno Haible  <bruno@clisp.org>
35486
35487         * gnulib-tool (func_create_testdir): When building the tests
35488         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35489         Reported by Simon Josefsson.
35490
35491 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35492
35493         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35494
35495 2008-12-06  Bruno Haible  <bruno@clisp.org>
35496
35497         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35498         Suggested by Eric Blake.
35499
35500 2008-12-06  Bruno Haible  <bruno@clisp.org>
35501
35502         Fix a c-stack test failure on MacOS X.
35503         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35504         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35505         handler for SIGBUS as well.
35506         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35507         install a signal handler for SIGBUS as well.
35508         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35509
35510 2008-12-06  Bruno Haible  <bruno@clisp.org>
35511
35512         Advocacy documentation.
35513         * doc/gnulib-intro.texi (Benefits): New section.
35514         * doc/gnulib.texi: Update.
35515
35516 2008-12-06  Bruno Haible  <bruno@clisp.org>
35517
35518         Document the 'manywarnings' module.
35519         * doc/manywarnings.texi: New file.
35520         * doc/gnulib.texi: Include it.
35521
35522 2008-12-05  Eric Blake  <ebb9@byu.net>
35523
35524         tests: silence some gcc warnings
35525         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35526         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35527         type mismatches.
35528
35529 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35530             Bruno Haible  <bruno@clisp.org>
35531
35532         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35533
35534 2008-11-29  Jim Meyering  <meyering@redhat.com>
35535
35536         unicodeio.c: mark unused parameters
35537         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35538         (fallback_failure_callback): Likewise.
35539
35540         fts: fix a thinko
35541         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35542         (set_stat_type): Return S_IF*-valued "type" directly.
35543         Prompted by James Youngman's spotting a related bug.
35544         Confirmed by further testing through find.
35545
35546         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35547         * lib/fts.c (D_TYPE): Define.
35548         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35549         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35550         (s_ifmt_shift_bits): New function.
35551         (set_stat_type): New function.
35552         (fts_build): When not calling fts_stat, call set_stat_type
35553         to propagate dirent.d_type info to fts_read caller.
35554         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35555         fts_statp->st_mode type information may be valid.
35556
35557 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35558
35559         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35560         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35561         <sds@gnu.org>.
35562
35563 2008-11-20  Bruno Haible  <bruno@clisp.org>
35564
35565         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35566         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35567         INCLUDE_NEXT.
35568         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35569         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35570         * modules/math (Makefile.am): Substitute
35571         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35572         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35573
35574 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35575             Bruno Haible  <bruno@clisp.org>
35576
35577         * lib/stdint.in.h: Define all type macros so that their expansion is
35578         a single typedef'ed token. Fixes a compilation failure in Boost which
35579         does "using ::int8_t;".
35580
35581 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35582
35583         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35584         gl_MANYWARN_ALL_GCC.
35585         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35586         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35587         * modules/manywarnings: New file.
35588         * MODULES.html.sh: Mention manywarnings module.
35589
35590 2008-11-18  Bruno Haible  <bruno@clisp.org>
35591
35592         * doc/gnulib-tool.texi (Unit tests): New section.
35593
35594 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35595
35596         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35597         paths like 'lib/po/foo.po'.
35598
35599 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35600
35601         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35602         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35603
35604 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35605
35606         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35607         parameter works.
35608
35609 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35610
35611         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35612
35613 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35614
35615         * modules/parse-duration-tests: New file.
35616         * tests/test-parse-duration.sh: New file.
35617         * tests/test-parse-duration.c: New file.
35618
35619         New module 'parse-duration'.
35620         * lib/parse-duration.h: New file.
35621         * lib/parse-duration.c: New file.
35622         * modules/parse-duration: New file.
35623
35624 2008-11-17  Bruno Haible  <bruno@clisp.org>
35625
35626         * tests/test-select-out.sh: Comment out the first pipe test.
35627         Reported by Simon Josefsson.
35628
35629 2008-11-17  Bruno Haible  <bruno@clisp.org>
35630
35631         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35632         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35633         gl_HOSTENT.
35634
35635 2008-11-17  Bruno Haible  <bruno@clisp.org>
35636
35637         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35638         -lnetwork and -lnet. Needed for Haiku and BeOS.
35639
35640 2008-11-16  Bruno Haible  <bruno@clisp.org>
35641
35642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35643
35644 2008-11-16  Bruno Haible  <bruno@clisp.org>
35645
35646         Avoid test failure on Haiku.
35647         * tests/test-fsync.c: Include <errno.h>.
35648         (main): Don't require that fsync (0) fails.
35649
35650 2008-11-15  Bruno Haible  <bruno@clisp.org>
35651
35652         New module 'hostent'.
35653         * modules/hostent: New file.
35654         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35655
35656 2008-11-15  Bruno Haible  <bruno@clisp.org>
35657
35658         New module 'servent'.
35659         * modules/servent: New file.
35660         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35661
35662 2008-11-15  Bruno Haible  <bruno@clisp.org>
35663
35664         Avoid generating same test program with two different rules.
35665         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35666         test-frexp to test-frexp-nolibm.
35667         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35668         test-frexpl to test-frexpl-nolibm.
35669
35670 2008-11-15  Bruno Haible  <bruno@clisp.org>
35671
35672         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35673         $(FREXPL_LIBM).
35674
35675 2008-11-15  Bruno Haible  <bruno@clisp.org>
35676
35677         * lib/netdb.in.h: Activate the definitions also when the system's
35678         <netdb.h> has 'struct addrinfo'.
35679         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35680         EAI_OVERFLOW or AI_NUMERICSERV.
35681         * doc/posix-headers/netdb.texi: Document the problem.
35682
35683 2008-11-15  Bruno Haible  <bruno@clisp.org>
35684
35685         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35686
35687         Make the 'sched' module work on platforms where <sched.h> exists but
35688         is incomplete (such as Haiku).
35689         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35690         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35691         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35692         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35693         HAVE_STRUCT_SCHED_PARAM.
35694         * modules/sched (Depends-on): Add include_next.
35695         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35696         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35697         * doc/posix-headers/sched.texi: Document the issue.
35698
35699 2008-11-13  Jim Meyering  <meyering@redhat.com>
35700
35701         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35702         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35703         test would fail due to the difference in the Report bugs to ...
35704         line.  The expected address is empty, "<>", while the actual
35705         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35706
35707 2008-11-12  Bruno Haible  <bruno@clisp.org>
35708
35709         lstat: don't compile lstat.c on systems lacking lstat
35710         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35711         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35712         Reported by Daniel P. Berrange via Jim Meyering.
35713
35714 2008-11-12  Jim Meyering  <meyering@redhat.com>
35715
35716         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35717
35718 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35719
35720         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35721         instead.
35722
35723 2008-11-12  Bruno Haible  <bruno@clisp.org>
35724
35725         * lib/unicodeio.c: Include unistr.h.
35726         (utf8_wctomb): Remove function.
35727         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35728
35729 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35730
35731         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35732         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35733         <bruno@clisp.org>.
35734         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35735
35736 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35737
35738         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35739         * doc/gnulib.texi: Add section for warnings.
35740
35741 2008-11-11  Bruno Haible  <bruno@clisp.org>
35742
35743         * lib/sockets.h: Add a comment.
35744
35745 2008-11-11  Karl Berry  <karl@gnu.org>
35746
35747         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35748
35749 2008-11-11  Eric Blake  <ebb9@byu.net>
35750
35751         fdl.texi: avoid git symlinks
35752         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35753
35754 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35755
35756         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35757
35758 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35759
35760         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35761         (gl_WARN_ADD): Substitute $2 if literal.
35762
35763 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35764
35765         * m4/warning.m4: Remove.
35766
35767 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35768
35769         * m4/warnings.m4: Almost complete rewrite. :-)
35770
35771 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35772
35773         * modules/warnings: New module.
35774         * m4/warnings.m4: New file.
35775         * MODULES.html.sh: Mention warnings module.
35776         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35777         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35778
35779 2008-11-10  Eric Blake  <ebb9@byu.net>
35780
35781         fdl.texi: make a symlink to the latest version
35782         * doc/standards.texi: Revert today's earlier change.
35783         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35784         * doc/fdl.texi: ...and replace this with a symlink to the newer
35785         fdl-1.3.texi.
35786
35787 2008-11-10  Bruno Haible  <bruno@clisp.org>
35788
35789         * tests/test-select-fd.c (main): Accept the result file name as fourth
35790         argument.
35791         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35792         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35793
35794 2008-11-10  Bruno Haible  <bruno@clisp.org>
35795
35796         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35797         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35798         as autoconf-substituted macros.
35799         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35801         gl_NETDB_H_DEFAULTS. Set these variables.
35802         * modules/netdb (Makefile.am): Substitute these variables.
35803
35804 2008-11-10  Eric Blake  <ebb9@byu.net>
35805
35806         standards.texi: include correct file for FDL 1.3
35807         * doc/standards.texi (GNU Free Documentation License): Change
35808         include file to pull in FDL 1.3, not 1.2.
35809
35810         fdl.texi: revert accidental change to license
35811         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35812
35813 2008-11-10  Bruno Haible  <bruno@clisp.org>
35814
35815         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35816         cross-compiling guesses also when the native compile gives no result.
35817
35818 2008-11-10  Bruno Haible  <bruno@clisp.org>
35819
35820         * lib/spawni.c (__spawni): Force variable into the stack.
35821
35822 2008-11-10  Bruno Haible  <bruno@clisp.org>
35823
35824         Add support for Haiku.
35825         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35826         glibc and BeOS, but also on Haiku.
35827         * lib/fpurge.c (fpurge): Likewise.
35828         * lib/freadable.c (freadable): Likewise.
35829         * lib/freadahead.c (freadahead): Likewise.
35830         * lib/freading.c (freading): Likewise.
35831         * lib/freadptr.c (freadptr): Likewise.
35832         * lib/freadseek.c (freadptrinc): Likewise.
35833         * lib/fseeko.c (rpl_fseeko): Likewise.
35834         * lib/fseterr.c (fseterr): Likewise.
35835         * lib/fwritable.c (fwritable): Likewise.
35836         * lib/fwriting.c (fwriting): Likewise.
35837         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35838
35839 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35840
35841         * lib/config.charset: Treat Haiku like BeOS.
35842
35843 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35844
35845         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35846         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35847
35848 2008-11-08  Bruno Haible  <bruno@clisp.org>
35849
35850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35851         AC_CACHE_CHECK.
35852
35853 2008-11-08  Bruno Haible  <bruno@clisp.org>
35854
35855         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35856
35857 2008-11-08  Bruno Haible  <bruno@clisp.org>
35858
35859         * tests/test-select-fd.c: New file.
35860         * tests/test-select-in.sh: New file.
35861         * tests/test-select-out.sh: New file.
35862         * tests/test-select-stdin.c: New file.
35863         * modules/select-tests (Files): Add the new files.
35864         (Depends-on): Add gettimeofday.
35865         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35866         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35867         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35868
35869 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35870             Bruno Haible  <bruno@clisp.org>
35871
35872         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35873
35874 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35875
35876         * build-aux/pmccabe2html: Added support for C++ source files.
35877
35878 2008-11-05  Ben Pfaff  <blp@gnu.org>
35879
35880         Fix lib/close.c build on Windows.
35881         * modules/close (Files): Add lib/w32sock.h.
35882
35883 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35884
35885         Accept Bison's NEWS format.
35886         * build-aux/announce-gen (print_news_deltas): Tweak
35887         $re_prefix.
35888
35889 2008-11-04  Bruno Haible  <bruno@clisp.org>
35890
35891         * modules/random_r (Maintainer): Add glibc.
35892
35893 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35894
35895         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35896         by karl@freefriends.org (Karl Berry).
35897         * doc/alloca.texi: Likewise.
35898         * doc/c-ctype.texi: Likewise.
35899         * doc/c-strcase.texi: Likewise.
35900         * doc/c-strcaseeq.texi: Likewise.
35901         * doc/c-strcasestr.texi: Likewise.
35902         * doc/c-strstr.texi: Likewise.
35903         * doc/c-strtod.texi: Likewise.
35904         * doc/c-strtold.texi: Likewise.
35905         * doc/ctime.texi: Likewise.
35906         * doc/error.texi: Likewise.
35907         * doc/fdl.texi: Likewise.
35908         * doc/gcd.texi: Likewise.
35909         * doc/getdate.texi: Likewise.
35910         * doc/gnulib-intro.texi: Likewise.
35911         * doc/gnulib-tool.texi: Likewise.
35912         * doc/gnulib.texi: Likewise.
35913         * doc/inet_ntoa.texi: Likewise.
35914         * doc/maintain.texi: Likewise.
35915         * doc/make-stds.texi: Likewise.
35916         * doc/quote.texi: Likewise.
35917         * doc/regexprops-generic.texi: Likewise.
35918         * doc/standards.texi: Likewise.
35919         * doc/verify.texi: Likewise.
35920         * doc/visibility.texi: Likewise.
35921         * doc/gnulib.texi (GNU Free Documentation License): Include
35922         fdl-1.3.texi instead of fdl.texi.
35923
35924 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35925
35926         * doc/fdl-1.3.texi: New file, from
35927         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35928         * modules/fdl-1.3: Add.
35929         * MODULES.html.sh: Add fdl-1.3.
35930
35931 2008-11-03  Bruno Haible  <bruno@clisp.org>
35932
35933         Make determination of absolute name of header file work with AIX xlc.
35934         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35935         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35936         preprocessing.
35937         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35938         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35939
35940 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35941
35942         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35943         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35944         <ludo@gnu.org>.
35945
35946 2008-11-02  Bruno Haible  <bruno@clisp.org>
35947
35948         Mark 'strpbrk' obsolete.
35949         * modules/strpbrk (Status, Notice): New sections.
35950         * modules/strtok_r (Depends-on): Add strpbrk.
35951
35952 2008-11-02  Bruno Haible  <bruno@clisp.org>
35953
35954         Mark 'strdup' obsolete.
35955         * modules/strdup (Status, Notice): New sections.
35956         * modules/findprog (Depends-on): Add strdup.
35957         * modules/getaddrinfo (Depends-on): Likewise.
35958         * modules/localename (Depends-on): Likewise.
35959         * modules/relocatable-lib (Depends-on): Likewise.
35960         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35961         * modules/relocatable-prog (Depends-on): Likewise.
35962         * modules/trim (Depends-on): Likewise.
35963         * modules/unictype/gen-ctype (Depends-on): Likewise.
35964         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35965
35966 2008-11-02  Bruno Haible  <bruno@clisp.org>
35967
35968         Mark 'strcspn' obsolete.
35969         * modules/strcspn (Status, Notice): New sections.
35970
35971 2008-11-02  Bruno Haible  <bruno@clisp.org>
35972
35973         Mark 'rmdir' obsolete.
35974         * modules/rmdir (Status, Notice): New sections.
35975         * modules/clean-temp (Depends-on): Add rmdir.
35976         * modules/openat (Depends-on): Likewise.
35977
35978 2008-11-02  Bruno Haible  <bruno@clisp.org>
35979
35980         Mark 'raise' obsolete.
35981         * modules/raise (Status, Notice): New sections.
35982         (Include): Specify <signal.h>.
35983         * modules/stdio (Depends-on): Add raise.
35984         * modules/write (Depends-on): Likewise.
35985
35986 2008-11-02  Bruno Haible  <bruno@clisp.org>
35987
35988         Mark 'memset' obsolete.
35989         * modules/memset (Status, Notice): New sections.
35990
35991 2008-11-02  Bruno Haible  <bruno@clisp.org>
35992
35993         Mark 'memmove' obsolete.
35994         * modules/memmove (Status, Notice): New sections.
35995         * modules/argp (Depends-on): Add memmove.
35996         * modules/argz (Depends-on): Likewise.
35997         * modules/canonicalize (Depends-on): Likewise.
35998         * modules/canonicalize-lgpl (Depends-on): Likewise.
35999         * modules/fts (Depends-on): Likewise.
36000         * modules/getcwd (Depends-on): Likewise.
36001         * modules/human (Depends-on): Likewise.
36002         * modules/regex (Depends-on): Likewise.
36003         * modules/striconveh (Depends-on): Likewise.
36004         * modules/trim (Depends-on): Likewise.
36005         * modules/unistr/u8-move (Depends-on): Likewise.
36006         * modules/unistr/u16-move (Depends-on): Likewise.
36007         * modules/unistr/u32-move (Depends-on): Likewise.
36008
36009 2008-11-02  Bruno Haible  <bruno@clisp.org>
36010
36011         Mark 'memcpy' obsolete.
36012         * modules/memcpy (Status, Notice): New sections.
36013
36014 2008-11-02  Bruno Haible  <bruno@clisp.org>
36015
36016         Mark 'memcmp' obsolete.
36017         * modules/memcmp (Status, Notice): New sections.
36018         * modules/argmatch (Depends-on): Add memchr.
36019         * modules/backupfile (Depends-on): Likewise.
36020         * modules/c-strcasestr (Depends-on): Likewise.
36021         * modules/crypto/des (Depends-on): Likewise.
36022         * modules/csharpcomp (Depends-on): Likewise.
36023         * modules/fnmatch (Depends-on): Likewise.
36024         * modules/git-merge-changelog (Depends-on): Likewise.
36025         * modules/isnand (Depends-on): Likewise.
36026         * modules/isnand-nolibm (Depends-on): Likewise.
36027         * modules/isnanf (Depends-on): Likewise.
36028         * modules/isnanf-nolibm (Depends-on): Likewise.
36029         * modules/isnanl (Depends-on): Likewise.
36030         * modules/isnanl-nolibm (Depends-on): Likewise.
36031         * modules/mbchar (Depends-on): Likewise.
36032         * modules/memcoll (Depends-on): Likewise.
36033         * modules/quotearg (Depends-on): Likewise.
36034         * modules/regex (Depends-on): Likewise.
36035         * modules/relocatable-prog (Depends-on): Likewise.
36036         * modules/same (Depends-on): Likewise.
36037         * modules/signbit (Depends-on): Likewise.
36038         * modules/strcasestr-simple (Depends-on): Likewise.
36039         * modules/unictype/gen-ctype (Depends-on): Likewise.
36040         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36041         * modules/uniname/uniname (Depends-on): Likewise.
36042         * modules/unistr/u8-cmp (Depends-on): Likewise.
36043
36044 2008-11-02  Bruno Haible  <bruno@clisp.org>
36045
36046         Mark 'memchr' obsolete.
36047         * modules/memchr (Status, Notice): New sections.
36048         * modules/argp (Depends-on): Add memchr.
36049         * modules/base64 (Depends-on): Likewise.
36050         * modules/c-strcasestr (Depends-on): Likewise.
36051         * modules/chdir-long (Depends-on): Likewise.
36052         * modules/fnmatch (Depends-on): Likewise.
36053         * modules/getsubopt (Depends-on): Likewise.
36054         * modules/git-merge-changelog (Depends-on): Likewise.
36055         * modules/glob (Depends-on): Likewise.
36056         * modules/strcasestr-simple (Depends-on): Likewise.
36057         * modules/strnlen (Depends-on): Likewise.
36058
36059 2008-11-02  Bruno Haible  <bruno@clisp.org>
36060
36061         Mark 'atexit' obsolete.
36062         * modules/atexit (Status, Notice): New sections.
36063         * modules/chdir-long (Depends-on): Add atexit.
36064         * modules/wait-process (Depends-on): Likewise.
36065
36066 2008-11-02  Bruno Haible  <bruno@clisp.org>
36067
36068         * gnulib-tool: New option --with-obsolete.
36069         (func_usage): Document it.
36070         (func_modules_transitive_closure): Drop obsolete dependencies if
36071         incobsolete is not true.
36072         (func_import): Read and save the incobsolete variable to the cache.
36073
36074 2008-11-02  Bruno Haible  <bruno@clisp.org>
36075
36076         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36077         * gnulib-tool: New option --extract-status.
36078         (func_usage): Document it.
36079         (sed_extract_prog): Recognize it.
36080         (func_get_status): New function.
36081
36082 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36083
36084         * modules/sockets (License): Change from LGPL to LGPLv2+.
36085
36086 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36087
36088         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36089
36090 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36091
36092         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36093         Mention times and sys_times.
36094         * modules/sys_times, modules/sys_times-tests: New modules.
36095         * modules/times, modules/times-tests: Likewise
36096         * m4/sys_times_h.m4: New file.
36097         * lib/sys_times.in.h: Likewise
36098         * lib/times.c: Likewise.
36099         * tests/test-sys_times.c: Likewise.
36100         * tests/test-times.c: Likewise.
36101         * doc/posix-headers/sys_times.texi: Update.
36102         * doc/posix-functions/times.texi: Update.
36103
36104 2008-10-28  Jim Meyering  <meyering@redhat.com>
36105
36106         * modules/tempname (Depends-on): Add lstat.
36107
36108         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36109
36110 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36111
36112         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36113         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36114         using idiom used elsewhere in gnulib.
36115
36116 2008-10-27  Jim Meyering  <meyering@redhat.com>
36117
36118         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36119
36120 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36121
36122         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36123         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36124         programs.
36125         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36126
36127 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36128
36129         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36130
36131 2008-10-27  Bruno Haible  <bruno@clisp.org>
36132
36133         * tests/test-lstat.c: Include <stdio.h>.
36134
36135 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36136
36137         * modules/lstat-tests: New module.
36138         * tests/test-lstat.c: New file.
36139
36140 2008-10-26  Jim Meyering  <meyering@redhat.com>
36141
36142         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36143
36144 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36145             Bruno Haible  <bruno@clisp.org>
36146
36147         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36148         * modules/configmake (Include): Add a note that the include must come
36149         after all system headers.
36150         * lib/javaversion.c: Include configmake.h after all other includes.
36151
36152 2008-10-26  Bruno Haible  <bruno@clisp.org>
36153
36154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36155         HAVE_STRUCT_RANDOM_DATA to 1.
36156         (gl_STDLIB_H): Simplify.
36157
36158 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36159
36160         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36161         substitute HAVE_STRUCT_RANDOM_DATA.
36162         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36163         random_data.
36164         * modules/stdlib (Makefile.am): Substitute
36165         HAVE_STRUCT_RANDOM_DATA.
36166
36167 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36168
36169         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36170         * doc/gnulib-intro.texi (Copyright): Likewise.
36171
36172 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36173
36174         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36175         findings.
36176
36177 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36178             Bruno Haible  <bruno@clisp.org>
36179
36180         * lib/unistd.in.h: Include <winsock2.h>.
36181         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36182         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36183         Provide dummy declarations.
36184         (gethostname): Override.
36185         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36186         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36187         gl_PREREQ_SYS_H_WINSOCK2.
36188         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36189         * doc/posix-functions/gethostname.texi: More details.
36190
36191 2008-10-25  Bruno Haible  <bruno@clisp.org>
36192
36193         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36194         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36195         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36196
36197         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36198         here ...
36199         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36200         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36201         gl_UNISTD_H_DEFAULTS.
36202
36203 2008-10-25  Eric Blake  <ebb9@byu.net>
36204
36205         signbit: avoid spurious compiler failure
36206         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36207         declarations inside function.
36208
36209 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36210             Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36213         * modules/random_r (Depends-on): Add stdint.
36214
36215 2008-10-24  Bruno Haible  <bruno@clisp.org>
36216
36217         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36218         Eggert.
36219         * modules/strerror (License): Likewise.
36220
36221 2008-10-24  Jim Meyering  <meyering@redhat.com>
36222
36223         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36224         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36225
36226 2008-10-24  Eric Blake  <ebb9@byu.net>
36227
36228         getgroups: fix compilation when getgroups is available
36229         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36230         but with <config.h> override of getgroups disabled.
36231
36232 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36233
36234         * doc/gnulib.texi (Header files): Add note about C++ problems.
36235         Explained by Bruno Haible <bruno@clisp.org>.
36236
36237 2008-10-23  Bruno Haible  <bruno@clisp.org>
36238
36239         Define a dummy SA_NODEFER macro on Interix.
36240         * lib/signal.in.h (SA_NODEFER): Define fallback.
36241         Reported by Aleksey Cheusov <cheusov@tut.by> via
36242         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36243
36244 2008-10-23  Bruno Haible  <bruno@clisp.org>
36245
36246         * modules/freadahead (License): Change to LGPLv2+.
36247         Suggested by Simon Josefsson.
36248
36249 2008-10-23  Jim Meyering  <meyering@redhat.com>
36250
36251         random_r: new module
36252         * modules/random_r: New file.
36253         * m4/random_r.m4: New file.
36254         * lib/random_r.c: New file, from glibc.
36255         * modules/random_r-tests: New file.
36256         * tests/test-random_r.c: New file.
36257         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36258          Declare.
36259         (RAND_MAX): Define.
36260         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36261         * modules/stdlib: Substitute them, too.
36262         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36263         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36264         * doc/glibc-functions/random_r.texi: Likewise.
36265         * doc/glibc-functions/setstate_r.texi: Likewise.
36266         * doc/glibc-functions/srandom_r.texi: Likewise.
36267         * config/srclist.txt: Mention it.
36268
36269 2008-10-23  David Lutterkort  <lutter@redhat.com>
36270
36271         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36272         link requirement
36273
36274 2008-10-23  Jim Meyering  <meyering@redhat.com>
36275
36276         selinux-h: mark parameters of stub functions as intentionally unused
36277         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36278         * lib/se-context.in.h: Likewise.
36279
36280 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36281
36282         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36283
36284 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36285
36286         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36287
36288 2008-10-22  Eric Blake  <ebb9@byu.net>
36289
36290         glthread/thread: avoid compiler warning
36291         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36292         Add unreachable abort to silence compiler.
36293
36294 2008-10-22  Eric Blake  <ebb9@byu.net>
36295
36296         netdb: also supply struct addrinfo for cygwin 1.5.x
36297         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36298         older cygwin.
36299         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36300         cygwin.
36301         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36302
36303 2008-10-22  Bruno Haible  <bruno@clisp.org>
36304
36305         * users.txt: Update entry about pspp.
36306
36307 2008-10-21  Bruno Haible  <bruno@clisp.org>
36308
36309         Simplification.
36310         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36311         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36312
36313         Simplification.
36314         * lib/ioctl.c (ioctl): Don't undefine.
36315         * lib/socket.c (socket): Don't undefine.
36316
36317         Remove unused module indicator macros.
36318         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36319         GNULIB_$1 as a C macro.
36320
36321         * doc/posix-functions/close.texi: Undo last change.
36322         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36323         Windows platforms.
36324
36325 2008-10-21  Bruno Haible  <bruno@clisp.org>
36326
36327         Add gethostname() declaration to <unistd.h>.
36328         * lib/unistd.in.h (gethostname): New declaration.
36329         * lib/gethostname.c: Include <unistd.h>.
36330         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36331         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36333         and HAVE_GETHOSTNAME.
36334         * modules/gethostname (Depends-on): Add unistd.
36335         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36336         (Include): Specify <unistd.h>.
36337         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36338         HAVE_GETHOSTNAME.
36339         * tests/test-gethostname.c: Include <unistd.h> first.
36340
36341 2008-10-21  Bruno Haible  <bruno@clisp.org>
36342
36343         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36344         * modules/select-tests (Depends-on): Likewise.
36345         Reported by Simon Josefsson.
36346
36347 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36348
36349         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36350         * lib/accept.c: New file, based on winsock.c.
36351         * lib/bind.c: New file, based on winsock.c.
36352         * lib/connect.c: New file, based on winsock.c.
36353         * lib/getpeername.c: New file, based on winsock.c.
36354         * lib/getsockname.c: New file, based on winsock.c.
36355         * lib/getsockopt.c: New file, based on winsock.c.
36356         * lib/ioctl.c: New file, based on winsock.c.
36357         * lib/listen.c: New file, based on winsock.c.
36358         * lib/recv.c: New file, based on winsock.c.
36359         * lib/recvfrom.c: New file, based on winsock.c.
36360         * lib/send.c: New file, based on winsock.c.
36361         * lib/sendto.c: New file, based on winsock.c.
36362         * lib/setsockopt.c: New file, based on winsock.c.
36363         * lib/shutdown.c: New file, based on winsock.c.
36364         * lib/socket.c: New file, based on winsock.c.
36365         * lib/w32sock.h: New file, based on winsock.c.
36366         * lib/winsock.c: Remove file.
36367         * modules/accept: Likewise.
36368         * modules/bind: Likewise.
36369         * modules/connect: Likewise.
36370         * modules/getpeername: Likewise.
36371         * modules/getsockname: Likewise.
36372         * modules/getsockopt: Likewise.
36373         * modules/ioctl: Likewise.
36374         * modules/listen: Likewise.
36375         * modules/recv: Likewise.
36376         * modules/recvfrom: Likewise.
36377         * modules/send: Likewise.
36378         * modules/sendto: Likewise.
36379         * modules/setsockopt: Likewise.
36380         * modules/shutdown: Likewise.
36381         * modules/socket: Use socket.c instead of winsock.c.
36382         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36383         * doc/posix-functions/accept.texi: Doc fix.
36384         * doc/posix-functions/bind.texi: Doc fix.
36385         * doc/posix-functions/close.texi: Doc fix.
36386         * doc/posix-functions/connect.texi: Doc fix.
36387         * doc/posix-functions/getpeername.texi: Doc fix.
36388         * doc/posix-functions/getsockname.texi: Doc fix.
36389         * doc/posix-functions/getsockopt.texi: Doc fix.
36390         * doc/posix-functions/ioctl.texi: Doc fix.
36391         * doc/posix-functions/listen.texi: Doc fix.
36392         * doc/posix-functions/recv.texi: Doc fix.
36393         * doc/posix-functions/recvfrom.texi: Doc fix.
36394         * doc/posix-functions/send.texi: Doc fix.
36395         * doc/posix-functions/sendto.texi: Doc fix.
36396         * doc/posix-functions/setsockopt.texi: Doc fix.
36397         * doc/posix-functions/shutdown.texi: Doc fix.
36398         * doc/posix-functions/socket.texi: Doc fix.
36399
36400 2008-10-20  Bruno Haible  <bruno@clisp.org>
36401
36402         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36403         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36404         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36405         as an alias for SIGABRT.
36406         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36407         (sigaction): Map it to SIGABRT.
36408         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36409
36410 2008-10-20  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/fts.c: Don't include lstat.h.
36413         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36414
36415         Move the lstat() declaration to <sys/stat.h>.
36416         * lib/lstat.h: Remove file.
36417         * lib/sys_stat.in.h: Add special invocation convention.
36418         (lstat): New declaration.
36419         * lib/lstat.c (orig_lstat): New function.
36420         (rpl_lstat): Use orig_lstat instead of lstat.
36421         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36422         AC_C_INLINE. Set REPLACE_LSTAT.
36423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36424         and REPLACE_LSTAT.
36425         * modules/lstat (Files): Remove lib/lstat.h.
36426         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36427         (Include): Specify <sys/stat.h> instead of lstat.h.
36428         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36429         REPLACE_LSTAT.
36430         * NEWS: Mention the change.
36431
36432 2008-10-20  Bruno Haible  <bruno@clisp.org>
36433
36434         * modules/posix_spawn-tests: New file.
36435         * tests/test-posix_spawn3.c: New file.
36436
36437 2008-10-20  Bruno Haible  <bruno@clisp.org>
36438
36439         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36440         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36441         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36442         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36443         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36444
36445 2008-10-20  Bruno Haible  <bruno@clisp.org>
36446
36447         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36448         of posix_spawn on AIX 5.3.
36449
36450 2008-10-20  Bruno Haible  <bruno@clisp.org>
36451
36452         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36453
36454 2008-10-20  Bruno Haible  <bruno@clisp.org>
36455
36456         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36457         of AC_LANG_PROGRAM.
36458
36459 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36460
36461         * lib/netdb.in.h: Don't define GNU specific constants until they
36462         are supported or needed.  Reported by Bruno Haible
36463         <bruno@clisp.org>.
36464
36465 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36466
36467         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36468
36469 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36470
36471         * lib/getaddrinfo.h: Remove file.
36472         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36473         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36474         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36475         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36476         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36477         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36478         * tests/test-getaddrinfo.c: Likewise.
36479         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36480         * NEWS: Mention change.
36481
36482 2008-10-19  Bruno Haible  <bruno@clisp.org>
36483
36484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36485
36486 2008-10-19  Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/wait-process.c: Include simply <sys/wait.h>.
36489         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36490         WIFSTOPPED): Remove fallback definitions.
36491         * modules/wait-process (Depends-on): Add sys_wait.
36492
36493         New module 'sys_wait'.
36494         * modules/sys_wait: New file.
36495         * lib/sys_wait.in.h: New file, partially copied from
36496         lib/wait-process.c.
36497         * m4/sys_wait_h.m4: New file.
36498         * doc/posix-headers/sys_wait.texi: Mention the new module.
36499
36500 2008-10-19  Bruno Haible  <bruno@clisp.org>
36501
36502         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36503
36504 2008-10-19  Bruno Haible  <bruno@clisp.org>
36505
36506         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36507         * lib/wait-process.c (WAIT_T): Remove type.
36508         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36509         (wait_subprocess): Update.
36510
36511 2008-10-19  Bruno Haible  <bruno@clisp.org>
36512
36513         New module 'atoll'.
36514         * modules/atoll: New file.
36515         * lib/stdlib.in.h (atoll): New declaration.
36516         * lib/atoll.c: New file, from glibc with modifications.
36517         * m4/atoll.m4: New file.
36518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36519         HAVE_ATOLL.
36520         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36521         * doc/posix-functions/atoll.texi: Mention the new module.
36522
36523 2008-10-19  Bruno Haible  <bruno@clisp.org>
36524
36525         Add strtoull() declaration to <stdlib.h>.
36526         * lib/stdlib.in.h (strtoull): New declaration.
36527         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36528         Set HAVE_STRTOULL.
36529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36530         HAVE_STRTOULL.
36531         * modules/strtoull (Depends-on): Add stdlib.
36532         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36533         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36534         HAVE_STRTOULL.
36535
36536 2008-10-19  Bruno Haible  <bruno@clisp.org>
36537
36538         Add strtoll() declaration to <stdlib.h>.
36539         * lib/stdlib.in.h (strtoll): New declaration.
36540         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36541         Set HAVE_STRTOLL.
36542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36543         HAVE_STRTOLL.
36544         * modules/strtoll (Depends-on): Add stdlib.
36545         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36546         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36547
36548 2008-10-19  Bruno Haible  <bruno@clisp.org>
36549
36550         * modules/bcopy (Depends-on): Add strings.
36551         (Include): Specify <strings.h>.
36552
36553 2008-10-19  Bruno Haible  <bruno@clisp.org>
36554
36555         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36556
36557 2008-10-19  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36560         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36561         mingw.
36562
36563 2008-10-19  Bruno Haible  <bruno@clisp.org>
36564
36565         * lib/atanl.c: Don't include isnanl.h.
36566         * lib/cosl.c: Likewise.
36567         * lib/ldexpl.c: Likewise.
36568         * lib/logl.c: Likewise.
36569         * lib/sinl.c: Likewise.
36570         * lib/sqrtl.c: Likewise.
36571         * lib/tanl.c: Likewise.
36572
36573         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36574         * lib/isnanf.h: Remove file.
36575         * lib/isnand.h: Remove file.
36576         * lib/isnanl.h: Remove file.
36577         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36578         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36579         macros.
36580         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36581         HAVE_ISNANF, don't define it as a C macro.
36582         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36583         HAVE_ISNAND, don't define it as a C macro.
36584         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36585         HAVE_ISNANL, don't define it as a C macro.
36586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36587         HAVE_ISNAN[FDL].
36588         * modules/isnanf (Files): Remove lib/isnanf.h.
36589         (Depends-on): Add math.
36590         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36591         (Include): Specify <math.h> instead of isnanf.h.
36592         * modules/isnand (Files): Remove lib/isnand.h.
36593         (Depends-on): Add math.
36594         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36595         (Include): Specify <math.h> instead of isnand.h.
36596         * modules/isnanl (Files): Remove lib/isnanl.h.
36597         (Depends-on): Add math.
36598         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36599         (Include): Specify <math.h> instead of isnanl.h.
36600         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36601         HAVE_ISNAN[FDL].
36602         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36603         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36604         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36605         * NEWS: Mention the change.
36606
36607 2008-10-18  Bruno Haible  <bruno@clisp.org>
36608
36609         Add getusershell(), setusershell(), endusershell() declarations to
36610         <unistd.h>.
36611         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36612         declarations.
36613         * lib/getusershell.c: Include unistd.h.
36614         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36615         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36616         HAVE_GETUSERSHELL.
36617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36618         and HAVE_GETUSERSHELL.
36619         * modules/getusershell (Depends-on): Add unistd, extensions.
36620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36621         (Include): Specify <unistd.h>.
36622         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36623         HAVE_GETUSERSHELL.
36624
36625 2008-10-18  Bruno Haible  <bruno@clisp.org>
36626
36627         Add a getloadavg() declaration to <stdlib.h>.
36628         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36629         getloadavg declaration.
36630         (getloadavg): New declaration.
36631         * lib/getloadavg.c: Include <stdlib.h> first.
36632         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36633         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36634         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36636         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36637         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36639         (Include): Specify <stdlib.h>.
36640         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36641         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36642
36643 2008-10-18  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/dirchownmod.c: Don't include lchmod.h.
36646
36647         Move the lchmod() declaration to <sys/stat.h>.
36648         * lib/lchmod.h: Remove file.
36649         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36650         (lchmod): New declaration, moved here from lib/lchown.h.
36651         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36652         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36654         and HAVE_LCHMOD.
36655         * modules/lchmod (Files): Remove lib/lchmod.h.
36656         (Depends-on): Add sys_stat, extensions.
36657         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36658         (Include): Specify <sys/stat.h> instead of lchmod.h.
36659         * modules/sys_stat (Depends-on): Add link-warning.
36660         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36661         definition of GL_LINK_WARNING.
36662         * NEWS: Mention the change.
36663
36664 2008-10-18  Bruno Haible  <bruno@clisp.org>
36665
36666         * lib/fchdir.c: Don't include dirfd.h.
36667         * lib/fts.c: Likewise.
36668         * lib/getcwd.c: Likewise.
36669         * lib/glob.c: Likewise.
36670
36671         Move the dirfd() declaration to <dirent.h>.
36672         * lib/dirfd.h: Remove file.
36673         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36674         (dirfd): New declaration.
36675         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36676         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36677         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36678         HAVE_DECL_DIRFD.
36679         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36680         HAVE_DECL_DIRFD.
36681         * modules/dirfd (Files): Remove lib/dirfd.h.
36682         (Depends-on): Add dirent, extensions.
36683         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36684         (Include): Specify <dirent.h> instead of dirfd.h.
36685         * modules/dirent (Depends-on): Add link-warning.
36686         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36687         definition of GL_LINK_WARNING.
36688         * NEWS: Mention the change.
36689
36690 2008-10-18  Bruno Haible  <bruno@clisp.org>
36691
36692         Move the euidaccess() declaration to <unistd.h>.
36693         * lib/euidaccess.h: Remove file.
36694         * lib/unistd.in.h (euidaccess): New declaration.
36695         * lib/euidaccess.c: Don't include euidaccess.h.
36696         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36697         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36699         and HAVE_EUIDACCESS.
36700         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36701         (Depends-on): Add unistd.
36702         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36703         (Include): Specify <unistd.h> instead of euidaccess.h.
36704         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36705         HAVE_EUIDACCESS.
36706         * NEWS: Mention the change.
36707
36708 2008-10-18  Bruno Haible  <bruno@clisp.org>
36709
36710         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36711
36712         Move the getdomainname() declaration to <unistd.h>.
36713         * lib/getdomainname.h: Remove file.
36714         * lib/unistd.in.h (getdomainname): New declaration.
36715         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36716         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36717         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36718         HAVE_GETDOMAINNAME.
36719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36720         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36721         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36722         (Depends-on): Add unistd, extensions.
36723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36724         (Includes): Specify <unistd.h> instead of getdomainname.h.
36725         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36726         HAVE_GETDOMAINNAME.
36727         * NEWS: Mention the change.
36728
36729 2008-10-18  Bruno Haible  <bruno@clisp.org>
36730
36731         * modules/dirent: New file.
36732         * m4/dirent_h.m4: New file.
36733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36734         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36735         * modules/fchdir (Files): Remove lib/dirent.in.h.
36736         (Depends-on): Add dirent.
36737         (Makefile.am): Move rules to modules/dirent.
36738         * doc/posix-headers/dirent.texi: Mention the new module.
36739
36740 2008-10-18  Bruno Haible  <bruno@clisp.org>
36741
36742         Avoid -Wunused-parameter warnings in public gnulib header files.
36743         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36744         macro.
36745         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36746
36747 2008-10-18  Bruno Haible  <bruno@clisp.org>
36748
36749         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36750         * doc/glibc-functions/error.texi: Mention the module 'error'.
36751         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36752         * doc/glibc-functions/getdomainname.texi: Mention the module
36753         'getdomainname'.
36754         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36755         * doc/glibc-functions/getpagesize.texi: Mention the module
36756         'getpagesize'.
36757         * doc/glibc-functions/getusershell.texi: Mention the module
36758         'getusershell'.
36759         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36760         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36761         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36762         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36763         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36764         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36765         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36766         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36767         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36768         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36769         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36770         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36771         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36772         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36773
36774 2008-10-17  Bruno Haible  <bruno@clisp.org>
36775
36776         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36777         HP-UX and IRIX, use -0.0L.
36778         * tests/test-ceill.c (minus_zero): Likewise.
36779         * tests/test-floorl.c (minus_zero): Likewise.
36780         * tests/test-frexpl.c (minus_zero): Likewise.
36781         * tests/test-isnan.c (minus_zerol): Likewise.
36782         * tests/test-isnanl.h (minus_zero): Likewise.
36783         * tests/test-ldexpl.c (minus_zero): Likewise.
36784         * tests/test-roundl.c (minus_zero): Likewise.
36785         * tests/test-signbit.c (minus_zerol): Likewise.
36786         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36787         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36788         * tests/test-truncl.c (minus_zero): Likewise.
36789         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36790         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36791         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36792         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36793
36794 2008-10-17  Bruno Haible  <bruno@clisp.org>
36795
36796         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36797         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36798         that it gets activated only for gcc >= 3.0.
36799         * lib/dirent.in.h: Likewise.
36800         * lib/errno.in.h: Likewise.
36801         * lib/fcntl.in.h: Likewise.
36802         * lib/float.in.h: Likewise.
36803         * lib/iconv.in.h: Likewise.
36804         * lib/inttypes.in.h: Likewise.
36805         * lib/locale.in.h: Likewise.
36806         * lib/math.in.h: Likewise.
36807         * lib/netdb.in.h: Likewise.
36808         * lib/netinet_in.in.h: Likewise.
36809         * lib/search.in.h: Likewise.
36810         * lib/signal.in.h: Likewise.
36811         * lib/spawn.in.h: Likewise.
36812         * lib/stdarg.in.h: Likewise.
36813         * lib/stdint.in.h: Likewise.
36814         * lib/stdio.in.h: Likewise.
36815         * lib/stdlib.in.h: Likewise.
36816         * lib/string.in.h: Likewise.
36817         * lib/strings.in.h: Likewise.
36818         * lib/sys_file.in.h: Likewise.
36819         * lib/sys_ioctl.in.h: Likewise.
36820         * lib/sys_select.in.h: Likewise.
36821         * lib/sys_socket.in.h: Likewise.
36822         * lib/sys_stat.in.h: Likewise.
36823         * lib/sys_time.in.h: Likewise.
36824         * lib/sysexits.in.h: Likewise.
36825         * lib/time.in.h: Likewise.
36826         * lib/unistd.in.h: Likewise.
36827         * lib/wchar.in.h: Likewise.
36828         * lib/wctype.in.h: Likewise.
36829         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36830
36831 2008-10-17  Jim Meyering  <meyering@redhat.com>
36832
36833         ignore-value: don't depend on inline module
36834         * modules/ignore-value (Depends-on): Remove 'inline'.
36835         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36836         Suggestion from Bruno Haible.
36837
36838 2008-10-17  Bruno Haible  <bruno@clisp.org>
36839
36840         New implementation of condition variables for Win32.
36841         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36842         (gl_linked_waitqueue_t): New type.
36843         (gl_cond_t): Use it.
36844         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36845         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36846         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36847         (glthread_cond_init_func, glthread_cond_wait_func,
36848         glthread_cond_timedwait_func, glthread_cond_signal_func,
36849         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36850         Reimplemented on the basis of gl_linked_waitqueue_t.
36851         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36852         gl_waitqueue_t.
36853         (gl_rwlock_t): Update.
36854         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36855
36856 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36857
36858         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36859         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36860
36861 2008-10-17  Jim Meyering  <meyering@redhat.com>
36862
36863         ignore-value: new module
36864         * modules/ignore-value: New file.
36865         * lib/ignore-value.h: New file.
36866         * MODULES.html.sh (Compiler warning management): New section,
36867         just for this module.  More to come.
36868
36869 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36870
36871         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36872         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36873         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36874
36875 2008-10-16  Jim Meyering  <meyering@redhat.com>
36876
36877         openat-die.c: avoid 'no previous prototype' warning
36878         * lib/openat-die.c: Include "openat.h".
36879         Reported by Reuben Thomas <rrt@sc3d.org>.
36880
36881 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36882
36883         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36884         * lib/netdb.in.h: Fix typo.
36885         Reported by Bruno Haible  <bruno@clisp.org>
36886
36887         * lib/netdb.in.h: Include sys/socket.h for platforms without
36888         netdb.h, to get structures like hostent on MinGW.
36889         * modules/netdb (Depends-on): Add sys_socket.
36890
36891 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36892
36893         * modules/netdb, modules/netdb-tests: New file.
36894         * m4/netdb_h.m4: New file.
36895         * lib/netdb.in.h: Add, currently just an empty file pending
36896         definitions.
36897         * tests/test-netdb.c: New file.
36898         * doc/posix-headers/netdb.texi: Mention that we replace it if
36899         needed.
36900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36901         netdb.
36902
36903 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36904
36905         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36906         with code.
36907
36908 2008-10-13  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/glthread/cond.c (glthread_cond_wait_func,
36911         glthread_cond_timedwait_func): Add a comment.
36912
36913 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36914
36915         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36916         * tests/test-select.c: Likewise,
36917
36918 2008-10-13  Bruno Haible  <bruno@clisp.org>
36919
36920         * lib/glthread/cond.c (glthread_cond_wait_func,
36921         glthread_cond_timedwait_func): Fix variable name.
36922         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36923
36924 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36925
36926         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36928         struct sockaddr.sa_len.
36929         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36930
36931 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36932
36933         * build-aux/pmccabe2html: Add css and css_url parameters.
36934
36935 2008-10-12  Bruno Haible  <bruno@clisp.org>
36936
36937         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36938         calling aclx_get.
36939         Reported by Rainer Tammer <tammer@tammer.net>.
36940
36941 2008-10-12  Bruno Haible  <bruno@clisp.org>
36942
36943         Use msvcrt aware primitives for creation/termination of Win32 threads.
36944         * lib/glthread/thread.c: Include <process.h>.
36945         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36946         (wrapper_func): Update signature.
36947         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36948
36949 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36950             Bruno Haible  <bruno@clisp.org>
36951
36952         Provide a Win32 implementation of the 'cond' module.
36953         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36954         * lib/glthread/cond.c (glthread_cond_init_func,
36955         glthread_cond_wait_func, glthread_cond_timedwait_func,
36956         glthread_cond_signal_func, glthread_cond_broadcast_func,
36957         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36958         * modules/cond (Dependencies): Add gettimeofday.
36959
36960 2008-10-11  Bruno Haible  <bruno@clisp.org>
36961
36962         Make sleep work on older versions of mingw.
36963         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36964         only whether it exists.
36965         * doc/posix-functions/sleep.texi: Mention the problem with older
36966         versions of mingw.
36967
36968 2008-10-11  Bruno Haible  <bruno@clisp.org>
36969
36970         New module 'shutdown'.
36971         * modules/shutdown: New file.
36972         * lib/sys_socket.in.h (shutdown): New declaration.
36973         * lib/winsock.c (shutdown): New function.
36974         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36975         GNULIB_SHUTDOWN.
36976         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36977         * doc/posix-functions/shutdown.texi: Document the new module.
36978
36979 2008-10-11  Jim Meyering  <meyering@redhat.com>
36980
36981         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36982
36983 2008-10-11  Bruno Haible  <bruno@clisp.org>
36984
36985         New module 'fclose'.
36986         * modules/fclose: New file.
36987         * lib/stdio.in.h (fclose): New declaration.
36988         * lib/fclose.c: New file.
36989         * m4/fclose.m4: New file.
36990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36991         REPLACE_FCLOSE.
36992         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36993         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36994         REPLACE_FCLOSE.
36995         * modules/close (Depends-on): fclose.
36996         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36997
36998 2008-10-11  Bruno Haible  <bruno@clisp.org>
36999
37000         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37001         set errno and don't call _close.
37002
37003 2008-10-10  Bruno Haible  <bruno@clisp.org>
37004
37005         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37006         ACL, not afterwards. Fixes test failure on Cygwin.
37007
37008 2008-10-09  Ben Pfaff  <blp@gnu.org>
37009
37010         * build-aux/announce-gen: Fix gnulib version related part of usage
37011         message.  Die with a useful error message if no tarballs are
37012         found.
37013
37014 2008-10-10  Jim Meyering  <meyering@redhat.com>
37015
37016         bootstrap: use git's --depth=N option only if it's supported
37017         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37018         recognize the --depth option.  Reported by Pádraig Brady.
37019
37020 2008-10-09  Bruno Haible  <bruno@clisp.org>
37021
37022         New module 'ioctl'.
37023         * modules/ioctl: New file.
37024         * lib/sys_socket.in.h (ioctl): Remove declaration.
37025         * lib/winsock.c: Include <sys/ioctl.h>.
37026         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37027         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37028         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37029         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37030         * doc/posix-functions/ioctl.texi: Mention the new module.
37031
37032 2008-10-09  Bruno Haible  <bruno@clisp.org>
37033
37034         New module 'sys_ioctl'.
37035         * lib/sys_ioctl.in.h: New file.
37036         * m4/sys_ioctl_h.m4: New file.
37037         * modules/sys_ioctl: New file.
37038         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37039
37040 2008-10-09  Bruno Haible  <bruno@clisp.org>
37041
37042         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37043         * lib/winsock.c: Include <stdarg.h>.
37044         (rpl_ioctl): Change to second argument 'int' and then varargs.
37045
37046 2008-10-09  Bruno Haible  <bruno@clisp.org>
37047
37048         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37049         when the sys_socket module is present and the system has <winsock2.h>.
37050
37051 2008-10-09  Bruno Haible  <bruno@clisp.org>
37052
37053         * doc/posix-functions/close.texi: Mention module 'close' instead of
37054         module 'sys_socket'.
37055
37056 2008-10-09  Bruno Haible  <bruno@clisp.org>
37057
37058         * doc/glibc-headers/sys_ioctl.texi: New file.
37059         * doc/gnulib.texi: Include it.
37060
37061 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37062             Bruno Haible  <bruno@clisp.org>
37063
37064         Combine the two replacements of 'close'.
37065         * lib/sys_socket.in.h (close): Define to a reminder to include
37066         <unistd.h>.
37067         (_gl_close_fd_maybe_socket): New declaration.
37068         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37069         * lib/winsock.c (close): Remove undefinition.
37070         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37071         needed for the gnulib module 'close'.
37072         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37073         define to an error symbol or to a warning, if suitable.
37074         * lib/close.c: Include <sys/socket.h>.
37075         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37076         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37077         UNISTD_H_HAVE_WINSOCK2_H.
37078         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37080         UNISTD_H_HAVE_WINSOCK2_H.
37081         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37082         (configure.ac): Set a module indicator.
37083         (Makefile.am): Substitute GNULIB_CLOSE.
37084         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37085         * modules/poll-tests (Depends-on): Add close.
37086         * modules/select-tests (Depends-on): Likewise.
37087
37088 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37089             Bruno Haible  <bruno@clisp.org>
37090
37091         New module 'close'.
37092         * modules/close: New file.
37093         * lib/unistd.in.h (close): Move declaration out of the
37094         FCHDIR_REPLACEMENT scope.
37095         (_gl_unregister_fd): New declaration.
37096         * lib/close.c: New file.
37097         * lib/fchdir.c (rpl_close): Remove function.
37098         * m4/close.m4: New file.
37099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37100         close.
37101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37102         REPLACE_CLOSE.
37103         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37104         REPLACE_CLOSE.
37105         * modules/fchdir (Depends-on): Add close.
37106
37107 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37108             Bruno Haible  <bruno@clisp.org>
37109
37110         * lib/fcntl.in.h (open): Simplify conditionals.
37111         (_gl_register_fd): New declaration.
37112         * lib/fchdir.c (rpl_open): Remove function.
37113         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37114         also.
37115         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37117         open.
37118
37119 2008-10-09  Jim Meyering  <meyering@redhat.com>
37120
37121         GNUmakefile: use the more name-space-friendly "_version"
37122         * top/GNUmakefile (_dummy): Update.
37123         (_version): Rename from "version".
37124
37125 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37126             Bruno Haible  <bruno@clisp.org>
37127
37128         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37129         rpl_close.
37130         (_gl_register_fd): New function, extracted from rpl_open.
37131         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37132         (rpl_open, rpl_opendir): Use _gl_register_fd.
37133
37134 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37135
37136         Fix organization of 'open' replacement.
37137         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37138         (gl_FUNC_OPEN): Use it.
37139         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37140
37141 2008-10-08  Bruno Haible  <bruno@clisp.org>
37142
37143         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37144
37145 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37146
37147         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37148         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37149         listen).
37150
37151 2008-10-08  Eric Blake  <ebb9@byu.net>
37152
37153         GNUmakefile: add 'make version' target
37154         * top/GNUmakefile (_curr-ver): Split version update rules...
37155         (version): ...into a target.
37156
37157 2008-10-07  Bruno Haible  <bruno@clisp.org>
37158
37159         Use a more portable replacement expression for -0.0L.
37160         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37161         instead of -0.0L. Fix m4 quotation.
37162
37163         * tests/test-signbit.c: Include <float.h>.
37164         (minus_zero): New variable.
37165         (test_signbitl): Use minus_zero instead of -zero.
37166         * modules/signbit-tests (Depends-on): Add float.
37167
37168         * tests/test-ceill.c: Include <float.h>.
37169         (zero): Remove variable.
37170         (minus_zero): New variable.
37171         (main): Use minus_zero instead of -zero.
37172         * modules/ceill-tests (Depends-on): Add float.
37173
37174         * tests/test-floorl.c: Include <float.h>.
37175         (zero): Remove variable.
37176         (minus_zero): New variable.
37177         (main): Use minus_zero instead of -zero.
37178         * modules/floorl-tests (Depends-on): Add float.
37179
37180         * tests/test-roundl.c: Include <float.h>.
37181         (zero): Remove variable.
37182         (minus_zero): New variable.
37183         (main): Use minus_zero instead of -zero.
37184         * modules/roundl-tests (Depends-on): Add float.
37185
37186         * tests/test-truncl.c: Include <float.h>.
37187         (zero): Remove variable.
37188         (minus_zero): New variable.
37189         (main): Use minus_zero instead of -zero.
37190         * modules/truncl-tests (Depends-on): Add float.
37191
37192         * tests/test-frexpl.c (zero): Remove variable.
37193         (minus_zero): New variable.
37194         (main): Use minus_zero instead of -zero.
37195         * modules/frexpl-tests (Depends-on): Add float.
37196
37197         * tests/test-isnan.c (zerol): Remove variable.
37198         (minus_zerol): New variable.
37199         (test_long_double): Use minus_zerol instead of -zerol.
37200         * modules/isnan-tests (Depends-on): Add float.
37201
37202         * tests/test-isnanl.h (zero): Remove variable.
37203         (minus_zero): New variable.
37204         (main): Use minus_zero instead of -zero.
37205         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37206         * modules/isnanl-tests (Depends-on): Add float.
37207
37208         * tests/test-ldexpl.c (zero): Remove variable.
37209         (minus_zero): New variable.
37210         (main): Use minus_zero instead of -zero.
37211         * modules/ldexpl-tests (Depends-on): Add float.
37212
37213         * tests/test-snprintf-posix.h (zerol): Remove variable.
37214         (minus_zerol): New variable.
37215         (test_function): Use minus_zerol instead of -zerol.
37216         * modules/snprintf-posix-tests (Depends-on): Add float.
37217         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37218
37219         * tests/test-sprintf-posix.h (zerol): Remove variable.
37220         (minus_zerol): New variable.
37221         (test_function): Use minus_zerol instead of -zerol.
37222         * modules/sprintf-posix-tests (Depends-on): Add float.
37223         * modules/vsprintf-posix-tests (Depends-on): Add float.
37224
37225         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37226         (minus_zerol): New variable.
37227         (test_function): Use minus_zerol instead of -zerol.
37228         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37229
37230         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37231         (minus_zerol): New variable.
37232         (test_function): Use minus_zerol instead of -zerol.
37233         * modules/vasprintf-posix-tests (Depends-on): Add float.
37234
37235 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37236
37237         * MODULES.html.sh (Support for building documentation): Mention
37238         pmccabe2html.  Sort entries.
37239
37240         Add pmccabe2html module, from gnupdf.
37241         * build-aux/pmccabe.css: New file.
37242         * build-aux/pmccabe2html: New file.
37243         * m4/pmccabe2html.m4: New file.
37244         * modules/pmccabe2html: New file.
37245
37246 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37247
37248         flock: new module
37249         * MODULES.html.sh: Add to list of modules.
37250         * lib/flock.c: flock implementation for Windows and Unix systems
37251         which have fcntl.
37252         * doc/glibc-functions/flock.texi: Update documentation.
37253         * lib/sys_file.in.h: <sys/file.h> header file.
37254         * m4/flock.m4: M4 macros.
37255         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37256         * modules/flock: flock module.
37257         * modules/flock-tests: flock tests module.
37258         * modules/sys_file: sys/file.h module.
37259         * tests/test-flock.c: test suite for flock.
37260
37261 2008-10-06  Jim Meyering  <meyering@redhat.com>
37262
37263         bootstrap: check for LT_INIT more portably still ;-)
37264         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37265         Spotted by Bruno Haible.
37266
37267 2008-10-06  Eric Blake  <ebb9@byu.net>
37268
37269         test-signbit: avoid tripping Irix cc bug on -0.0L
37270         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37271         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37272         entire testsuite consistent and avoids an Irix 6.2 bug.
37273
37274 2008-10-05  Bruno Haible  <bruno@clisp.org>
37275             Jim Meyering  <jim@meyering.net>
37276
37277         Add an option for ignoring EPIPE during close_stdout.
37278         * lib/closeout.h: Include <stdbool.h>.
37279         (close_stdout_set_ignore_EPIPE): New declaration.
37280         * lib/closeout.c: Include <stdbool.h>.
37281         (ignore_EPIPE): New variable.
37282         (close_stdout_set_ignore_EPIPE): New function.
37283         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37284         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37285         failure.
37286         * modules/closeout (Depends-on): Add stdbool.
37287
37288 2008-10-05  Bruno Haible  <bruno@clisp.org>
37289
37290         * modules/accept: New file.
37291         * modules/bind: New file.
37292         * modules/connect: New file.
37293         * modules/getpeername: New file.
37294         * modules/getsockname: New file.
37295         * modules/getsockopt: New file.
37296         * modules/listen: New file.
37297         * modules/recv: New file.
37298         * modules/recvfrom: New file.
37299         * modules/send: New file.
37300         * modules/sendto: New file.
37301         * modules/setsockopt: New file.
37302         * modules/socket: New file.
37303         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37304         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37305         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37306         the particular module is requested. Add a link warning when the
37307         particular module is not requested.
37308         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37309         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37310         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37311         the particular module is requested.
37312         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37313         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37314         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37315         * modules/sys_socket (Depends-on): Add link-warning.
37316         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37317         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37318         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37319         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37320         GL_LINK_WARNING.
37321         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37322         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37323         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37324         * doc/posix-functions/getpeername.texi: Mention the new module
37325         'getpeername'.
37326         * doc/posix-functions/getsockname.texi: Mention the new module
37327         'getsockname'.
37328         * doc/posix-functions/getsockopt.texi: Mention the new module
37329         'getsockopt'.
37330         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37331         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37332         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37333         * doc/posix-functions/send.texi: Mention the new module 'send'.
37334         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37335         * doc/posix-functions/setsockopt.texi: Mention the new module
37336         'setsockopt'.
37337         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37338         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37339         listen, connect, accept.
37340         * modules/select-tests (Depends-on): Likewise.
37341
37342 2008-10-05  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/winsock.c (strerror): Remove unused #undef.
37345         (rpl_close): Remove unused local variable.
37346
37347         * modules/sys_socket (Depends-on); Add errno.
37348
37349 2008-10-05  Bruno Haible  <bruno@clisp.org>
37350
37351         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37352         (select): Add a link warning when the 'select' module is not used.
37353         * modules/sys_select (Depends-on): Add link-warning.
37354         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37355         Suggested by Paolo Bonzini.
37356
37357 2008-10-05  Jim Meyering  <meyering@redhat.com>
37358
37359         bootstrap: check for LT_INIT more portably
37360         * build-aux/bootstrap: Avoid using grep -E, since it's not
37361         portable enough.  Suggestion from Bruno Haible.
37362
37363 2008-10-05  Bruno Haible  <bruno@clisp.org>
37364
37365         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37366         as being fixed by gnulib.
37367
37368 2008-10-05  Bruno Haible  <bruno@clisp.org>
37369
37370         * modules/select-tests: New file, mostly copied from
37371         modules/sys_select-tests.
37372         * tests/test-select.c: New file, mostly copied from
37373         tests/test-sys_select.c.
37374         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37375         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37376         (Makefile.am): Remove test_sys_select_LDADD.
37377
37378         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37379         to an undefined symbol, for an error message.
37380         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37381         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37382         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37383         winsock-select.c here.
37384         * modules/sys_select (Files): Remove lib/winsock-select.c.
37385         (Depends-on): Remove alloca.
37386         (Makefile.am): Substitute GNULIB_SELECT.
37387         * modules/select: New file.
37388         * doc/posix-functions/select.texi: Update.
37389
37390 2008-10-05  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37393         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37394         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37395         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37396         getdtablesize.
37397         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37398         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37399
37400 2008-10-05  Bruno Haible  <bruno@clisp.org>
37401
37402         * modules/getdtablesize-tests: New file.
37403         * tests/test-getdtablesize.c: New file.
37404
37405         New module 'getdtablesize'.
37406         * lib/unistd.in.h (getdtablesize): New declaration.
37407         * lib/getdtablesize.c: New file.
37408         * m4/getdtablesize.m4: New file.
37409         * modules/getdtablesize: New file.
37410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37411         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37412         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37413         HAVE_GETDTABLESIZE.
37414         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37415
37416 2008-10-05  Bruno Haible  <bruno@clisp.org>
37417
37418         * modules/sched (Makefile.am): Fix typo.
37419         Reported by Simon Josefsson.
37420
37421 2008-10-05  Jim Meyering  <meyering@redhat.com>
37422
37423         bootstrap: check for LT_INIT, too
37424         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37425         are deprecated.  Suggestion from Ralf Wildenhues.
37426
37427 2008-10-05  Bruno Haible  <bruno@clisp.org>
37428
37429         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37430         overriding them by ours.
37431         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37432
37433 2008-10-05  Jim Meyering  <meyering@redhat.com>
37434
37435         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37436         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37437         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37438
37439 2008-10-04  Bruno Haible  <bruno@clisp.org>
37440
37441         * modules/dup2 (License): Change to LGPLv2+.
37442         * modules/sleep (License): Likewise.
37443         * modules/perror (License): Likewise.
37444         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37445         Blake.
37446         * modules/signal (License): Likewise.
37447         * modules/sigprocmask (License): Likewise.
37448         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37449         Meyering.
37450
37451 2008-10-04  Bruno Haible  <bruno@clisp.org>
37452
37453         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37454         Reported by Rainer Tammer <tammer@tammer.net>.
37455
37456 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37457             Bruno Haible  <bruno@clisp.org>
37458
37459         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37460         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37461         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37462
37463 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37464
37465         filevercmp: new module
37466         * lib/filevercmp.h: New function filevercmp comparing version strings.
37467         * lib/filevercmp.c: Implementation of filevercmp function.
37468         * modules/filevercmp: Module metadata.
37469         * tests/test-filevercmp.c: Unit test for new module.
37470         * modules/filevercmp-tests: Unit test metadata.
37471         * MODULES.html.sh: Add filevercmp module.
37472
37473 2008-10-03  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/c-ctype.h: Add comment.
37476         Reported by Jim Meyering.
37477
37478 2008-10-02  Bruno Haible  <bruno@clisp.org>
37479
37480         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37481
37482 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37483
37484         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37485         name of bootstrap.conf accordingly.
37486
37487 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37488
37489         * build-aux/bootstrap: Install git-merge-changelog configuration
37490         items into .gitconfig if needed.
37491
37492 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37493
37494         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37495         git repository, and initialize/update it accordingly.
37496
37497 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37498
37499         * modules/fsync-tests: New file.
37500         * tests/test-fsync.c: New file.
37501
37502         New module 'fsync'.
37503         * lib/fsync.c: New file.
37504         * m4/fsync.m4: New file.
37505         * modules/fsync: New file.
37506         * lib/unistd.in.h (fsync): New declaration.
37507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37508         GNULIB_FSYNC and HAVE_FSYNC.
37509         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37510         * MODULES.html.sh (posix_functions): Add fsync.
37511         * doc/posix-functions/fsync.texi: Mention the new module.
37512
37513 2008-10-02  Jim Meyering  <meyering@redhat.com>
37514
37515         fts.c: sync with similar code from coreutils' remove.c
37516         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37517         Guard also with "#if defined __linux__", since for now at least,
37518         this code is Linux-kernel-specific.
37519
37520 2008-10-02  Jim Meyering  <meyering@redhat.com>
37521
37522         fts: bug fixes
37523         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37524         Include <sys/vfs.h>, not <sys/statfs.h>.
37525
37526         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37527         Include <sys/vfs.h>, not <sys/statfs.h>.
37528
37529 2008-10-01  Bruno Haible  <bruno@clisp.org>
37530
37531         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37533         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37534         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37535         * doc/posix-functions/posix_spawnp.texi: Likewise.
37536         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37537         whether posix_spawn actually works.
37538         * m4/pipe.m4 (gl_PIPE): Likewise.
37539         * modules/execute (Files): Add m4/posix_spawn.m4.
37540         * modules/pipe (Files): Add m4/posix_spawn.m4.
37541         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37542
37543 2008-10-01  Jim Meyering  <meyering@redhat.com>
37544
37545         remove trailing spaces
37546         * NEWS: Likewise.
37547         * lib/poll.c (poll): Likewise.
37548         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37549         * lib/winsock.c (rpl_close): Likewise.
37550         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37551         * modules/yield: Likewise.
37552         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37553         * tests/test-sys_select.c (connect_to_socket): Likewise.
37554
37555         fts.c: adjust a new interface to be more generally useful
37556         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37557         (fts_build): Adjust caller.
37558
37559 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37560
37561         * modules/cond-tests: New file.
37562         * tests/test-cond.c: New file.
37563
37564 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37565             Bruno Haible  <bruno@clisp.org>
37566
37567         * modules/cond (Dependencies): Add errno, time.
37568         * lib/glthread/cond.h: Include <time.h>.
37569         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37570         across platforms.
37571
37572 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37573             Bruno Haible  <bruno@clisp.org>
37574
37575         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37576
37577 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37578             Bruno Haible  <bruno@clisp.org>
37579
37580         * modules/tls-tests (Depends-on): Add thread, yield.
37581         (configure.ac): Remove all checks.
37582         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37583         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37584         gl_thread_self): Remove definitions. Include glthread/thread.h and
37585         glthread/yield.h instead.
37586         (test_tls): Pass an additional NULL argument to gl_thread_join.
37587
37588 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37589             Bruno Haible  <bruno@clisp.org>
37590
37591         * modules/lock-tests (Depends-on): Add thread, yield.
37592         (configure.ac): Remove all checks.
37593         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37594         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37595         gl_thread_self): Remove definitions. Include glthread/thread.h and
37596         glthread/yield.h instead.
37597         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37598         additional NULL argument to gl_thread_join.
37599
37600 2008-09-30  Bruno Haible  <bruno@clisp.org>
37601
37602         Fix the Win32 implementation of the 'thread' module.
37603         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37604         pointer type.
37605         (gl_thread_self): Invoke gl_thread_self_func.
37606         (gl_thread_self_func): New declaration.
37607         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37608         (do_init_self_key, init_self_key): New functions.
37609         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37610         Remove some fields.
37611         (running_threads, running_lock): Remove variables.
37612         (get_current_thread_handle): New function.
37613         (gl_thread_self_func, wrapper_func, glthread_create_func,
37614         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37615         simplified.
37616
37617 2008-09-30  Bruno Haible  <bruno@clisp.org>
37618
37619         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37620         files.
37621
37622 2008-09-30  Jim Meyering  <meyering@redhat.com>
37623
37624         fts.m4: correct the test for statfs.f_type
37625         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37626         when checking for statfs.f_type.
37627
37628 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37629
37630         tests: avoid some compiler warnings
37631         * tests/test-memchr.c (main): Pass NULL indirectly.
37632         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37633
37634 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37635
37636         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37637         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37638         exactly specified dayshifts.
37639         (dayshift): New rule.
37640         (rel): Add dayshift.
37641         (relative_time_table) [tomorrow, yesterday, today, now]:
37642         Use tDAY_SHIFT in place of tDAY_UNIT.
37643         * tests/test-getdate.c: Add tests for now-disallowed countable
37644         dayshifts, e.g., "4 yesterday ago".
37645
37646 2008-09-29  Bruno Haible  <bruno@clisp.org>
37647
37648         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37649         * tests/test-posix_spawn1.in.sh: Renamed from
37650         tests/test-posix_spawn.in.sh.
37651         * tests/test-posix_spawn2.c: New file.
37652         * tests/test-posix_spawn2.in.sh: New file.
37653         * modules/posix_spawnp-tests (Files): Update.
37654         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37655
37656 2008-09-29  Bruno Haible  <bruno@clisp.org>
37657
37658         Propagate effects of putenv/setenv/unsetenv to child processes.
37659         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37660         * lib/pipe.c (create_pipe): Likewise.
37661
37662 2008-09-29  Bruno Haible  <bruno@clisp.org>
37663
37664         Enable use of shell scripts as executables in mingw.
37665         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37666         run the program as a shell script.
37667         * lib/pipe.c (create_pipe): Likewise.
37668         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37669         resulting array.
37670
37671 2008-09-29  Eric Blake  <ebb9@byu.net>
37672
37673         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37674
37675 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37676
37677         * doc/posix-functions/accept.texi: Update mingw problems.
37678         * doc/posix-functions/bind.texi: Update mingw problems.
37679         * doc/posix-functions/close.texi: Update mingw problems.
37680         * doc/posix-functions/connect.texi: Update mingw problems.
37681         * doc/posix-functions/getpeername.texi: Update mingw problems.
37682         * doc/posix-functions/getsockname.texi: Update mingw problems.
37683         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37684         * doc/posix-functions/ioctl.texi: Update mingw problems.
37685         * doc/posix-functions/listen.texi: Update mingw problems.
37686         * doc/posix-functions/recv.texi: Update mingw problems.
37687         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37688         * doc/posix-functions/select.texi: Update mingw problems.
37689         * doc/posix-functions/send.texi: Update mingw problems.
37690         * doc/posix-functions/sendto.texi: Update mingw problems.
37691         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37692         * doc/posix-functions/socket.texi: Update mingw problems.
37693
37694 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37695             Bruno Haible  <bruno@clisp.org>
37696
37697         * lib/sys_select.in.h: Include sys/time.h.
37698         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37699         * modules/sys_select: Depend on sys_time.
37700         * tests/test-sys_select.c: Test that sys/select.h defines struct
37701         timeval fully.
37702
37703 2008-09-29  Bruno Haible  <bruno@clisp.org>
37704
37705         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37706         * lib/sys_select.in.h: Likewise.
37707
37708 2008-09-29  Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37711
37712 2008-09-29  Bruno Haible  <bruno@clisp.org>
37713
37714         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37715         Set LIBSOCKET instead of augmenting LIBS.
37716         * modules/sockets (Link): New section.
37717         * modules/sockets-tests (test_sockets_LDADD): New variable.
37718         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37719         * modules/poll-tests (test_poll_LDADD): New variable.
37720         * NEWS: Document the change.
37721
37722 2008-09-29  Bruno Haible  <bruno@clisp.org>
37723
37724         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37725         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37726         ARPA_INET_H directly.
37727         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37728
37729 2008-09-28  Bruno Haible  <bruno@clisp.org>
37730
37731         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37732         from gl_HEADER_SYS_SOCKET.
37733         (gl_HEADER_SYS_SOCKET): Invoke it.
37734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37735
37736 2008-09-28  Bruno Haible  <bruno@clisp.org>
37737
37738         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37739         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37740         Needed on OSF/1 4.0.
37741
37742 2008-09-28  Bruno Haible  <bruno@clisp.org>
37743
37744         Override open more carefully.
37745         * lib/open.c (orig_open): New function.
37746         (rpl_open): Use orig_open instead of open.
37747         * lib/fcntl.in.h: Add special invocation convention.
37748         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37749         (gl_FUNC_OPEN): Invoke it.
37750
37751         Override freopen more carefully.
37752         * lib/freopen.c (orig_freopen): New function.
37753         (rpl_freopen): Use orig_freopen instead of freopen.
37754         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37755         (gl_FUNC_FREOPEN): Invoke it.
37756
37757         Override fopen more carefully.
37758         * lib/fopen.c (orig_fopen): New function.
37759         (rpl_fopen): Use orig_fopen instead of fopen.
37760         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37761         (gl_FUNC_FOPEN): Invoke it.
37762         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37763
37764 2008-09-28  Bruno Haible  <bruno@clisp.org>
37765
37766         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37767         SIGPIPE.
37768
37769 2008-09-28  Bruno Haible  <bruno@clisp.org>
37770
37771         * tests/test-sigaction.c (handler, main): Disable the check whether
37772         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37773         glibc systems with LinuxThreads.
37774
37775 2008-09-28  Bruno Haible  <bruno@clisp.org>
37776
37777         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37778
37779         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37780         with AIX xlc.
37781         * lib/fcntl.in.h (open): Likewise.
37782         Reported by Rainer Tammer <tammer@tammer.net>.
37783
37784 2008-09-28  Bruno Haible  <bruno@clisp.org>
37785
37786         * modules/posix_spawnp-tests: New file.
37787         * tests/test-posix_spawn.c: New file.
37788         * tests/test-posix_spawn.in.sh: New file.
37789
37790         New module 'posix_spawnp'.
37791         * modules/posix_spawnp: New file.
37792         * lib/spawnp.c: New file, from GNU libc with modifications.
37793         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37794
37795         New module 'posix_spawn'.
37796         * modules/posix_spawn: New file.
37797         * lib/spawn.c: New file, from GNU libc with modifications.
37798         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37799
37800         New module 'posix_spawnattr_destroy'.
37801         * modules/posix_spawnattr_destroy: New file.
37802         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37803         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37804         module.
37805
37806         New module 'posix_spawnattr_setsigmask'.
37807         * modules/posix_spawnattr_setsigmask: New file.
37808         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37809         modifications.
37810         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37811         new module.
37812
37813         New module 'posix_spawnattr_getsigmask'.
37814         * modules/posix_spawnattr_getsigmask: New file.
37815         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37816         modifications.
37817         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37818         new module.
37819
37820         New module 'posix_spawnattr_setsigdefault'.
37821         * modules/posix_spawnattr_setsigdefault: New file.
37822         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37823         modifications.
37824         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37825         new module.
37826
37827         New module 'posix_spawnattr_getsigdefault'.
37828         * modules/posix_spawnattr_getsigdefault: New file.
37829         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37830         modifications.
37831         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37832         new module.
37833
37834         New module 'posix_spawnattr_setschedpolicy'.
37835         * modules/posix_spawnattr_setschedpolicy: New file.
37836         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37837         modifications.
37838         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37839         new module.
37840
37841         New module 'posix_spawnattr_getschedpolicy'.
37842         * modules/posix_spawnattr_getschedpolicy: New file.
37843         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37844         modifications.
37845         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37846         new module.
37847
37848         New module 'posix_spawnattr_setschedparam'.
37849         * modules/posix_spawnattr_setschedparam: New file.
37850         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37851         modifications.
37852         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37853         new module.
37854
37855         New module 'posix_spawnattr_getschedparam'.
37856         * modules/posix_spawnattr_getschedparam: New file.
37857         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37858         modifications.
37859         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37860         new module.
37861
37862         New module 'posix_spawnattr_setpgroup'.
37863         * modules/posix_spawnattr_setpgroup: New file.
37864         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37865         modifications.
37866         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37867         module.
37868
37869         New module 'posix_spawnattr_getpgroup'.
37870         * modules/posix_spawnattr_getpgroup: New file.
37871         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37872         modifications.
37873         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37874         module.
37875
37876         New module 'posix_spawnattr_setflags'.
37877         * modules/posix_spawnattr_setflags: New file.
37878         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37879         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37880         module.
37881
37882         New module 'posix_spawnattr_getflags'.
37883         * modules/posix_spawnattr_getflags: New file.
37884         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37885         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37886         module.
37887
37888         New module 'posix_spawnattr_init'.
37889         * modules/posix_spawnattr_init: New file.
37890         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37891         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37892         module.
37893
37894         New module 'posix_spawn_file_actions_destroy'.
37895         * modules/posix_spawn_file_actions_destroy: New file.
37896         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37897         modifications.
37898         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37899         the new module.
37900
37901         New module 'posix_spawn_file_actions_addopen'.
37902         * modules/posix_spawn_file_actions_addopen: New file.
37903         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37904         modifications.
37905         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37906         the new module.
37907
37908         New module 'posix_spawn_file_actions_adddup2'.
37909         * modules/posix_spawn_file_actions_adddup2: New file.
37910         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37911         modifications.
37912         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37913         the new module.
37914
37915         New module 'posix_spawn_file_actions_addclose'.
37916         * modules/posix_spawn_file_actions_addclose: New file.
37917         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37918         modifications.
37919         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37920         the new module.
37921
37922         New module 'posix_spawn_file_actions_init'.
37923         * modules/posix_spawn_file_actions_init: New file.
37924         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37925         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37926         new module.
37927
37928         New module 'posix_spawn-internal'.
37929         * modules/posix_spawn-internal: New file.
37930         * lib/spawn_int.h: New file, from GNU libc with modifications.
37931         * lib/spawni.c: New file, from GNU libc with modifications.
37932         * m4/posix_spawn.m4: New file.
37933
37934         New module 'spawn'.
37935         * modules/spawn: New file.
37936         * lib/spawn.in.h: New file, from GNU libc with modifications.
37937         * m4/spawn_h.m4: New file.
37938         * doc/posix-headers/spawn.texi: Mention the new module.
37939
37940 2008-09-28  Bruno Haible  <bruno@clisp.org>
37941
37942         * modules/sched-tests: New file.
37943         * tests/test-sched.c: New file.
37944
37945         New module 'sched'.
37946         * modules/sched: New file.
37947         * lib/sched.in.h: New file.
37948         * m4/sched_h.m4: New file.
37949         * doc/posix-headers/sched.texi: Mention the new module.
37950
37951 2008-09-27  Eric Blake  <ebb9@byu.net>
37952
37953         Fix previous patch, and tweak references to $0.
37954         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37955         (func_version, func_gnulib_dir): Don't call this program
37956         gnulib-tool.
37957         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37958         with using $0 in function.
37959         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37960         (func_fatal_error): Reuse the name the user invoked us with.
37961
37962 2008-09-27  Bruno Haible  <bruno@clisp.org>
37963
37964         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37965         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37966         (gl_ICONV_H): Not here.
37967         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37968         instead of assigning ICONV_H directly.
37969
37970         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37972         WCHAR_H directly.
37973
37974 2008-09-27  Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37977         * modules/arpa_inet (Depends-on): Add link-warning.
37978         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37979         * modules/unistd (Makefile.am): Likewise.
37980
37981 2008-09-26  Bruno Haible  <bruno@clisp.org>
37982
37983         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37984         variables.
37985         (func_version): Essentially copied from gnulib-tool.
37986         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37987         func_readlink): Copied from gnulib-tool.
37988
37989 2008-09-26  Bruno Haible  <bruno@clisp.org>
37990
37991         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37992         invoking git-version-gen.
37993
37994 2008-09-26  Bruno Haible  <bruno@clisp.org>
37995
37996         * posix-modules: Update to directory names changed on 2008-01-19.
37997         Remove commas in output before splitting into words. No more need to
37998         avoid 'ftruncate' since 2007-02-19.
37999
38000 2008-09-26  Bruno Haible  <bruno@clisp.org>
38001
38002         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38003
38004 2008-09-26  Bruno Haible  <bruno@clisp.org>
38005
38006         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38007         * modules/fwriteerror (Depends-on): Add errno.
38008
38009 2008-09-26  Bruno Haible  <bruno@clisp.org>
38010
38011         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38012         * tests/test-vc-list-files-cvs.sh: Likewise.
38013
38014 2008-09-26  Bruno Haible  <bruno@clisp.org>
38015
38016         * doc/posix-headers/sys_resource.texi: Reorder items.
38017
38018 2008-09-26  Jim Meyering  <meyering@redhat.com>
38019
38020         fts: tweak inode comparison function
38021         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38022         inode numbers, as documented.
38023
38024         fts: sort dirent entries on inode number before traversing
38025         This avoids a quadratic, seek-related performance penalty when
38026         operating on a directory containing many entries (measurable at 10k;
38027         3.5 hours at 2 million entries with a cold cache) on certain types
38028         of file systems, including ext3 and ext4, but not tmpfs.
38029         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38030         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38031         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38032         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38033         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38034         (fts_build): Set the stat.st_ino member from D_INO.
38035         If it is likely to be useful, sort dirent entries on inode number.
38036
38037         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38038         and the struct statfs.f_type member.
38039         * modules/fts (Depends-on): Add d-ino.
38040
38041 2008-09-26  Bruno Haible  <bruno@clisp.org>
38042
38043         * modules/sigpipe-die (Depends-on): Add sigpipe.
38044
38045         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38046         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38047         and GNULIB_STDIO_H_SIGPIPE are set.
38048         * lib/stdio-write.c: New file.
38049         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38050         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38051         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38052         REPLACE_STDIO_WRITE_FUNCS.
38053         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38054         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38055         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38056         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38057         * modules/stdio (Files): Add lib/stdio-write.c.
38058         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38059         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38060         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38061         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38062         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38063         REPLACE_FPRINTF_POSIX.
38064         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38065         REPLACE_PRINTF_POSIX.
38066         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38067         REPLACE_VFPRINTF_POSIX.
38068         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38069         REPLACE_VPRINTF_POSIX.
38070         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38071         SIGPIPE issue.
38072         * doc/posix-functions/fputc.texi: Likewise.
38073         * doc/posix-functions/fputs.texi: Likewise.
38074         * doc/posix-functions/fwrite.texi: Likewise.
38075         * doc/posix-functions/printf.texi: Likewise.
38076         * doc/posix-functions/putc.texi: Likewise.
38077         * doc/posix-functions/putchar.texi: Likewise.
38078         * doc/posix-functions/puts.texi: Likewise.
38079         * doc/posix-functions/vfprintf.texi: Likewise.
38080         * doc/posix-functions/vprintf.texi: Likewise.
38081
38082         * modules/safe-write (Depends-on): Add write.
38083
38084         * modules/sigpipe-tests: New file.
38085         * tests/test-sigpipe.c: New file.
38086         * tests/test-sigpipe.sh: New file.
38087
38088         * modules/write: New file.
38089         * lib/unistd.in.h: Include <sys/types.h>.
38090         (write): New declaration.
38091         * lib/write.c: New file.
38092         * m4/write.m4: New file.
38093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38094         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38095         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38096         GNULIB_WRITE, REPLACE_WRITE.
38097         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38098         and the SIGPIPE issue.
38099
38100         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38101         (raise): New declaration.
38102         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38103         (ext_signal): New function.
38104         (rpl_raise): New function.
38105         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38106         GNULIB_SIGNAL_H_SIGPIPE.
38107         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38108         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38109
38110         * modules/sigpipe: New file.
38111         * m4/sigpipe.m4: New file.
38112
38113 2008-09-25  Derek Price  <derek@ximbiot.com>
38114             Bruno Haible  <bruno@clisp.org>
38115
38116         * gnulib-tool (func_import): Report all license incompatibilities, not
38117         just the first one.
38118
38119 2008-09-25  Bruno Haible  <bruno@clisp.org>
38120
38121         * gnulib-tool (func_import): When computing the edits, consider not
38122         only the Makefile.ams that exist but also those that will be generated.
38123
38124 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38125
38126         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38127         fixes gnulib-tool --test warning about duplicate dependency.
38128
38129 2008-09-25  Bruno Haible  <bruno@clisp.org>
38130
38131         * gnulib-tool: Don't ask the user to perform edits in the generated
38132         Makefile.ams.
38133         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38134         apply to the Makefile.am being generated.
38135         (func_emit_tests_Makefile_am): Execute edits that apply to the
38136         Makefile.am being generated.
38137         (func_import): Setup list of Makefile.am edits before emitting the
38138         Makefile.ams, not at the end.
38139         (func_create_testdir): Update.
38140         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38141
38142 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38143
38144         * gnulib-tool (func_import): Store the --tests-base option in the
38145         comment in gnulib-cache.m4.
38146
38147 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38148
38149         * NEWS: Document increased portability that sys_select now provides.
38150
38151         * lib/sys_select.in.h: Install select wrapper.
38152         * lib/sys_socket.in.h: Use more descriptive name when there is no
38153         select wrapper.
38154         * lib/winsock-select.c: New.
38155         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38156         Require gl_HEADER_SYS_SOCKET.
38157         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38158         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38159         * tests/test-sys_select.c: Add functional tests.
38160
38161 2008-09-24  Eric Blake  <ebb9@byu.net>
38162
38163         open, fopen: close fd leak in last patch
38164         * lib/open.c (rpl_open): Close fd before returning error.
38165         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38166         * doc/posix-functions/open.texi (open): Document that Irix also
38167         has the bug.
38168         * doc/posix-functions/fopen.texi (fopen): Likewise.
38169         Reported by Paolo Bonzini.
38170
38171 2008-09-24  Bruno Haible  <bruno@clisp.org>
38172
38173         Ensure that a filename ending in a slash cannot be used to access a
38174         non-directory.
38175         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38176         to check whether it's really a directory.
38177         * lib/fopen.c: Include fcntl.h, unistd.h.
38178         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38179         and fdopen().
38180         * modules/fopen (Depends-on): Add unistd.
38181         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38182         * tests/test-fopen.c (main): Likewise.
38183         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38184         * doc/posix-functions/fopen.texi: Likewise.
38185         Reported by Eric Blake.
38186
38187 2008-09-23  Eric Blake  <ebb9@byu.net>
38188
38189         c-stack: avoid compiler optimizations when provoking overflow
38190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38191         recursion harder to optimize, to ensure a stack overflow occurs.
38192         * tests/test-c-stack.c (recurse): Likewise.
38193         Borrowed from libsigsegv.
38194
38195         c-stack: work around Irix sigaltstack bug
38196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38197         whether sigaltstack uses wrong end of stack_t (copied in part from
38198         libsigsegv).
38199         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38200         Irix bug, without requiring an over-allocation.
38201         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38202         bug.
38203
38204         fopen: document mingw bug on directories
38205         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38206         not allowing a stream visiting a directory, even though reading
38207         from such a stream is not portable.
38208
38209 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38210
38211         * lib/poll.c: Rewrite.
38212         * modules/poll: Depend on alloca.
38213
38214 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38215
38216         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38217         instead define prototypes for a full set of wrappers.  Ensure
38218         that Cygwin does not use the compatibility code, which is only
38219         for MinGW.
38220         * lib/winsock.c: New.
38221         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38222         * modules/sys_socket: Add lib/winsock.c.
38223
38224         * modules/poll-tests: Add errno and perror.
38225         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38226
38227 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38228
38229         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38230
38231 2008-09-23  Bruno Haible  <bruno@clisp.org>
38232
38233         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38234         * doc/glibc-functions/*: Likewise.
38235
38236 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38237
38238         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38239         success.
38240
38241 2008-09-22  Eric Blake  <ebb9@byu.net>
38242             Bruno Haible  <bruno@clisp.org>
38243
38244         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38245         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38246         supply %A but mishandle pseudo-NaN.
38247         Reported by Simon Josefsson.
38248
38249 2008-09-21  Bruno Haible  <bruno@clisp.org>
38250
38251         * tests/test-lock.c (main): Tweak skip message.
38252         * tests/test-tls.c (main): Likewise.
38253
38254 2008-09-21  Bruno Haible  <bruno@clisp.org>
38255
38256         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38257         whether 'struct sigaction' has sa_sigaction here...
38258         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38259         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38260
38261 2008-09-21  Bruno Haible  <bruno@clisp.org>
38262
38263         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38264         section.
38265         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38266         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38267         the new section.
38268         (Support for obsolete systems lacking POSIX:2001): New section.
38269         (String handling <string.h>): Move strdup to the new section.
38270         Suggested by Simon Josefsson and Paolo Bonzini.
38271
38272 2008-09-21  Bruno Haible  <bruno@clisp.org>
38273
38274         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38275         exponents in %e and %g results on 'long double'. Needed for mingw's
38276         improved *printf functions.
38277         * tests/test-vasprintf-posix.c (test_function): Likewise.
38278         * tests/test-snprintf-posix.h (test_function): Likewise.
38279         * tests/test-sprintf-posix.h (test_function): Likewise.
38280         Reported by Eric Blake.
38281
38282 2008-09-21  Bruno Haible  <bruno@clisp.org>
38283
38284         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38285         * tests/test-sprintf-posix.h (test_function): Likewise.
38286
38287 2008-09-21  Bruno Haible  <bruno@clisp.org>
38288
38289         * modules/getpass (Depends-on): Add strdup-posix.
38290
38291         New module 'strdup-posix'.
38292         * modules/strdup-posix: New file.
38293         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38294         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38296         REPLACE_STRDUP.
38297         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38298         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38300         strdup-posix.
38301
38302         * modules/strdup (Depends-on): Remove malloc-posix.
38303
38304 2008-09-20  Bruno Haible  <bruno@clisp.org>
38305
38306         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38307         Wildenhues.
38308
38309 2008-09-20  Bruno Haible  <bruno@clisp.org>
38310
38311         Ensure that wint_t gets defined on IRIX 5.3.
38312         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38313         * lib/wctype.in.h (wint_t): Likewise.
38314         (__wctype_wint_t): Remove type.
38315         (isw*): Use wint_t instead of __wctype_wint_t.
38316         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38317         * modules/wchar (Files): Add m4/wint_t.m4.
38318         (Makefile.am): Substitute HAVE_WINT_T.
38319         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38320         * tests/test-wctype.c: Check that wint_t is defined.
38321         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38322         * doc/posix-headers/wctype.texi: Likewise.
38323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38324
38325 2008-09-18  Bruno Haible  <bruno@clisp.org>
38326
38327         * gnulib-tool (func_exit): Update comment.
38328
38329 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38330
38331         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38332         assumes strdup exists and does not depend on strdup to return
38333         ENOMEM on out of memory conditions.
38334
38335 2008-09-18  Bruno Haible  <bruno@clisp.org>
38336
38337         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38338         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38339         digits for the exponent.
38340
38341 2008-09-18  Jim Meyering  <meyering@redhat.com>
38342             Bruno Haible  <bruno@clisp.org>
38343
38344         * lib/vasnprintf.c (decimal_point_char): Define also if
38345         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38346
38347 2008-09-16  Bruno Haible  <bruno@clisp.org>
38348         and Eric Blake  <ebb9@byu.net>
38349
38350         vasnprintf: support Irix 5.3
38351         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38352         that mishandle long double infinity.
38353         Reported by Tom G. Christensen.
38354
38355 2008-09-16  Bruno Haible  <bruno@clisp.org>
38356
38357         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38358         Solaris 9.
38359         * doc/glibc-functions/alphasort.texi: Likewise.
38360         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38361
38362 2008-09-16  Jim Meyering  <meyering@redhat.com>
38363
38364         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38365         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38366         a umask modification leak out of a subshell.  Otherwise, the
38367         opensolaris /bin/sh would be accepted and thus cause unwarranted
38368         failures in the coreutils test suite.
38369
38370 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38371
38372         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38373         to succeed.
38374
38375 2008-09-16  Jim Meyering  <meyering@redhat.com>
38376
38377         avoid spurious test failure when library is built without ACL support
38378         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38379         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38380         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38381         * tests/test-copy-acl.sh: Likewise.
38382
38383 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38384
38385         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38386         based on character occurrence counts.
38387
38388 2008-09-15  Eric Blake  <ebb9@byu.net>
38389
38390         tests: avoid some compiler warnings
38391         * tests/test-memchr.c (main): Pass NULL indirectly.
38392         * tests/test-closein.c (main): Avoid unused variable.
38393
38394 2008-09-15  Bruno Haible  <bruno@clisp.org>
38395
38396         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38397         are missing on OpenBSD 4.0 individually.
38398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38399
38400 2008-09-15  Bruno Haible  <bruno@clisp.org>
38401
38402         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38403         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38404         * doc/posix-functions/perror.texi: Likewise.
38405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38406         is missing.
38407         Reported by Eric Blake.
38408
38409         * lib/errno.in.h: Use replacement values >= 2000.
38410         Reported by Eric Blake.
38411
38412 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38413
38414         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38415         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38416         limit.
38417         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38418         compareseq was aborted.
38419
38420 2008-09-14  Bruno Haible  <bruno@clisp.org>
38421
38422         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38423         yvec_edit_count.
38424         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38425         (fstrcmp_bounded): Simplify result computation accordingly.
38426
38427 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38428
38429         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38430         (fstrcmp): Define in terms of fstrcmp_bounded.
38431         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38432         lower_bound argument.
38433         Return quickly if the result is certainly < lower_bound.
38434         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38435
38436 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38437
38438         * lib/diffseq.h (EARLY_ABORT): New macro.
38439         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38440         evaluates to true.
38441
38442 2008-09-14  Bruno Haible  <bruno@clisp.org>
38443
38444         * modules/perror-tests: New file.
38445         * tests/test-perror.sh: New file.
38446         * tests/test-perror.c: New file.
38447
38448         New module 'perror'.
38449         * lib/stdio.in.h (perror): New declaration.
38450         * lib/perror.c: New file.
38451         * m4/perror.m4: New file.
38452         * modules/perror: New file.
38453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38454         * doc/posix-functions/perror.texi: Mention the perror module.
38455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38456         REPLACE_PERROR.
38457         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38458         REPLACE_PERROR.
38459
38460 2008-09-14  Bruno Haible  <bruno@clisp.org>
38461
38462         * modules/stdio (Makefile.am): Reorder to match the order in
38463         lib/stdio.in.h.
38464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38465
38466 2008-09-13  Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38469
38470 2008-09-13  Bruno Haible  <bruno@clisp.org>
38471
38472         Extend strerror to cover the added errno values.
38473         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38474         (rpl_strerror): Provide error messages for the added errno values and
38475         for the WSA* values.
38476         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38477         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38478         strerror.
38479         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38480         * modules/strerror (Depends-on): Add errno.
38481         * doc/posix-functions/strerror.texi: Document the change.
38482         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38483         and EOVERFLOW.
38484
38485 2008-09-13  Bruno Haible  <bruno@clisp.org>
38486
38487         * modules/EOVERFLOW: Remove file.
38488         * m4/eoverflow.m4: Remove file.
38489         * modules/EOVERFLOW-tests: Remove file.
38490         * tests/test-EOVERFLOW.c: Remove file.
38491         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38492         * modules/ftell (Depends-on): Likewise.
38493         * modules/getdelim (Depends-on): Likewise.
38494         * modules/getugroups (Depends-on): Likewise.
38495         * modules/poll (Depends-on): Likewise.
38496         * modules/snprintf (Depends-on): Likewise.
38497         * modules/sprintf-posix (Depends-on): Likewise.
38498         * modules/vasnprintf (Depends-on): Likewise.
38499         * modules/vasprintf (Depends-on): Likewise.
38500         * modules/vfprintf-posix (Depends-on): Likewise.
38501         * modules/vsnprintf (Depends-on): Likewise.
38502         * modules/vsprintf-posix (Depends-on): Likewise.
38503         * modules/xvasprintf (Depends-on): Likewise.
38504         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38505         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38506         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38507         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38508         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38509         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38510         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38511         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38513         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38514         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38515         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38516         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38517         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38518         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38519         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38520         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38521         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38522         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38523         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38524         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38525         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38526         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38527         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38528         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38529         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38530         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38531         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38532         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38533         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38534         * MODULES.html.sh: Remove EOVERFLOW.
38535         * NEWS: Mention the change.
38536
38537 2008-09-13  Bruno Haible  <bruno@clisp.org>
38538
38539         * modules/errno-tests: New file.
38540         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38541
38542         * lib/errno.in.h: New file.
38543         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38544         * modules/errno: New file.
38545         * doc/posix-headers/errno.texi: Update documentation.
38546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38547
38548 2008-09-13  Bruno Haible  <bruno@clisp.org>
38549
38550         * tests/test-poll.c: Use #if for native Windows, rather than testing
38551         __MSVCRT__.
38552
38553 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38554             Bruno Haible  <bruno@clisp.org>
38555
38556         * lib/glob.c: Don't include <pwd.h> on native Windows.
38557         (WINDOWS32): New macro.
38558         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38559
38560 2008-09-13  Bruno Haible  <bruno@clisp.org>
38561
38562         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38563         (ETIMEDOUT): Remove macro.
38564         (glthread_cond_timedwait_multithreaded): New declaration.
38565         (glthread_cond_timedwait): Use it.
38566         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38567         (glthread_cond_timedwait_multithreaded): New function.
38568
38569 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38570
38571         * modules/poll-tests: Do not check for io.h.
38572         * tests/test-poll.c: Check for __MSVCRT__ instead.
38573
38574 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38575
38576         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38577         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38578         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38579
38580 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38581
38582         * modules/poll-tests: New.
38583         * tests/test-poll.c: New.
38584
38585 2008-09-12  Eric Blake  <ebb9@byu.net>
38586
38587         frexp: test for NetBSD failure on -0.0
38588         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38589         not all, bugs from NetBSD 3.0 have been fixed.
38590         * doc/posix-functions/frexp.texi (frexp): Document bug.
38591         Reported by Thomas Klausner.
38592
38593         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38594         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38595         literal -0.0.
38596         Reported by Jonathan C. Patschke <jp@centtech.com>.
38597
38598 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38599
38600         * lib/glthread/cond.h: Use dummy implementation also if
38601         USE_WIN32_THREADS.
38602
38603 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38604
38605         * modules/fnmatch-posix (License): Change to LGPLv2+.
38606         * modules/fnmatch-gnu (License): Likewise.
38607
38608 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38609
38610         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38611
38612 2008-09-11  Jim Meyering  <meyering@redhat.com>
38613
38614         * users.txt: Add gtk-vnc.
38615
38616 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38617
38618         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38619         rotate amounts.
38620
38621         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38622         required for 16-bit and 8-bit rotates.
38623         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38624         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38625         UINT8_MAX instead of hard-coded constants.
38626         Suggested by Paul Eggert.
38627
38628 2008-09-07  Bruno Haible  <bruno@clisp.org>
38629
38630         * tests/test-striconveh.c (main): Check behaviour when converting from
38631         UTF-7.
38632
38633         Make striconveh work better with stateful encodings.
38634         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38635         that iconv does not increment the inptr when returning -1/EINVAL.
38636
38637 2008-09-07  Bruno Haible  <bruno@clisp.org>
38638
38639         * build-aux/config.rpath: Update according to libtool-2.2.6.
38640         * build-aux/config.libpath: Likewise.
38641
38642 2008-09-06  Bruno Haible  <bruno@clisp.org>
38643
38644         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38645         * lib/freadptr.c (freadptr): Likewise.
38646         * lib/freadseek.c (freadptrinc): Likewise.
38647         Reported by Simon Josefsson.
38648
38649 2008-09-06  Bruno Haible  <bruno@clisp.org>
38650
38651         * modules/freadptr (License): Change to LGPLv2+.
38652         * modules/freadseek (License): Likewise.
38653         Suggested by Eric Blake.
38654
38655         * modules/memchr2 (License): Change to LGPLv2+.
38656         Approved by Eric Blake.
38657
38658 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38659             Bruno Haible  <bruno@clisp.org>
38660
38661         Make gnulib-tool work with native 'sed' on AIX.
38662         * gnulib-tool (sed_noop): New variable.
38663         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38664         func_add_or_update, func_create_testdir): Use it to initialize sed
38665         script variables.
38666         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38667
38668 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38669             Bruno Haible  <bruno@clisp.org>
38670
38671         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38672         also works after #include directives.
38673
38674 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38675
38676         getdate.y: reject an out-of-range timezone value
38677         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38678         the range [-24...+24].  When specified with only one or two digits,
38679         * tests/test-getdate.c: Tests for the fix.
38680         * doc/getdate.texi: Document this change.
38681
38682 2008-09-03  Bruno Haible  <bruno@clisp.org>
38683
38684         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38685
38686 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38687
38688         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38689         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38690         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38691         Blake <ebb9@byu.net>.
38692
38693         * tests/test-bitrotate.c: Add more test vectors.
38694
38695 2008-09-02  Eric Blake  <ebb9@byu.net>
38696
38697         vasnprintf-posix: handle large precision via %.*d
38698         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38699         when handling it ourselves.
38700         * tests/test-vasnprintf-posix.c (test_function): Add test.
38701         * tests/test-snprintf-posix.h (test_function): Likewise.
38702         * tests/test-sprintf-posix.h (test_function): Likewise.
38703         * tests/test-vasprintf-posix.c (test_function): Likewise.
38704         Reported by Alain Guibert.
38705
38706 2008-09-01  Eric Blake  <ebb9@byu.net>
38707
38708         c-stack: make configure-time check more robust
38709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38710         successful sigaction call.
38711         Reported by Tom G. Christensen.
38712
38713 2008-09-01  Bruno Haible  <bruno@clisp.org>
38714
38715         New module 'findprog-lgpl'.
38716         * modules/findprog-lgpl: New file.
38717         * lib/findprog-lgpl.c: New file.
38718         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38719         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38720         to decide whether to use strdup or xstrdup, concatenated_filename or
38721         xconcatenated_filename.
38722
38723 2008-09-01  Bruno Haible  <bruno@clisp.org>
38724
38725         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38726         'xconcat-filename' (GPL).
38727         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38728         (License): Change to LGPLv2+.
38729         * modules/xconcat-filename: New file.
38730         * lib/concat-filename.h (concatenated_filename): Change specification.
38731         (xconcatenated_filename): New declaration.
38732         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38733         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38734         memory situations.
38735         * lib/xconcat-filename.c: New file.
38736         * NEWS: Mention the change.
38737         * lib/findprog.c: Include concat-filename.h, not filename.h.
38738         (find_in_path): Use xconcatenated_filename instead of
38739         concatenated_filename.
38740         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38741         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38742         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38743         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38744         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38745         instead of concatenated_filename.
38746         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38747         (execute_java_class): Use xconcatenated_filename instead of
38748         concatenated_filename.
38749         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38750         * modules/javacomp (Depends-on): Likewise.
38751         * modules/javaexec (Depends-on): Likewise.
38752
38753 2008-09-01  Bruno Haible  <bruno@clisp.org>
38754
38755         Split module 'filename' into 'filename' and 'concat-filename'.
38756         * modules/filename: Keep only lib/filename.h.
38757         (License): Change to LGPLv2+.
38758         * modules/concat-filename: New file, extracted from modules/filename.
38759         * lib/filename.h (concatenated_filename): Remove declaration.
38760         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38761         * lib/concat-filename.c: Include concat-filename.h.
38762         * NEWS: Mention the change.
38763
38764 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38765
38766         * lib/bitrotate.h (rotl8, rotr8): Add.
38767
38768         * modules/bitrotate (configure.ac): Need
38769         AC_REQUIRE([AC_C_INLINE]).
38770         (Description): Mention stdint.h.  Reported by Bruno Haible
38771         <bruno@clisp.org>.
38772
38773         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38774         Paolo Bonzini <bonzini@gnu.org>.
38775
38776 2008-08-31  Bruno Haible  <bruno@clisp.org>
38777
38778         Assume Solaris specific bi-arch conventions on Solaris systems.
38779         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38780         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38781         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38782         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38783         like acl_libdirstem.
38784         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38785         acl_libdirstem.
38786         * NEWS: Mention the change.
38787         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38788
38789 2008-08-31  Jim Meyering  <meyering@redhat.com>
38790
38791         * lib/strftime.h: Add comments describing the two added arguments.
38792
38793         remove duplicate #include directives
38794         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38795         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38796
38797 2008-08-31  Bruno Haible  <bruno@clisp.org>
38798
38799         New module 'sigpipe-die'.
38800         * modules/sigpipe-die: New file.
38801         * lib/sigpipe-die.h: New file.
38802         * lib/sigpipe-die.c: New file.
38803         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38804
38805 2008-08-31  Bruno Haible  <bruno@clisp.org>
38806
38807         Don't override previously installed signal handlers.
38808         * lib/fatal-signal.c (saved_sigactions): New variable.
38809         (uninstall_handlers): Reset the signal to the saved handler, not
38810         to SIG_DFL (except when ignored).
38811         (install_handlers): Save the previous handlers.
38812
38813 2008-08-30  Bruno Haible  <bruno@clisp.org>
38814
38815         * gnulib-tool (func_reset_sigpipe): New function.
38816         (func_get_automake_snippet, func_modules_transitive_closure,
38817         func_import): Invoke it before a join command that reads from stdin,
38818         to avoid "echo: write error: Broken pipe" error messages on stderr.
38819         Reported by Sam Steingold <sds@gnu.org>.
38820
38821 2008-08-30  Bruno Haible  <bruno@clisp.org>
38822
38823         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38824         Code copied from m4/open.m4.
38825         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38826         access and the filename ends in a slash. Code copied from lib/open.c.
38827         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38828         * tests/test-fopen.c (main): Check against bug with trailing slash.
38829
38830 2008-08-29  Bruno Haible  <bruno@clisp.org>
38831
38832         Avoid some "gcc -pedantic" warnings.
38833         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38834         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38835         * lib/dirent.in.h: Likewise.
38836         * lib/fcntl.in.h: Likewise.
38837         * lib/float.in.h: Likewise.
38838         * lib/iconv.in.h: Likewise.
38839         * lib/inttypes.in.h: Likewise.
38840         * lib/locale.in.h: Likewise.
38841         * lib/math.in.h: Likewise.
38842         * lib/netinet_in.in.h: Likewise.
38843         * lib/search.in.h: Likewise.
38844         * lib/signal.in.h: Likewise.
38845         * lib/stdarg.in.h: Likewise.
38846         * lib/stdint.in.h: Likewise.
38847         * lib/stdio.in.h: Likewise.
38848         * lib/stdlib.in.h: Likewise.
38849         * lib/string.in.h: Likewise.
38850         * lib/strings.in.h: Likewise.
38851         * lib/sys_select.in.h: Likewise.
38852         * lib/sys_socket.in.h: Likewise.
38853         * lib/sys_stat.in.h: Likewise.
38854         * lib/sys_time.in.h: Likewise.
38855         * lib/sysexits.in.h: Likewise.
38856         * lib/time.in.h: Likewise.
38857         * lib/unistd.in.h: Likewise.
38858         * lib/wchar.in.h: Likewise.
38859         * lib/wctype.in.h: Likewise.
38860         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38861         * modules/fchdir (Makefile.am): Likewise.
38862         * modules/fcntl (Makefile.am): Likewise.
38863         * modules/float (Makefile.am): Likewise.
38864         * modules/iconv_open (Makefile.am): Likewise.
38865         * modules/inttypes (Makefile.am): Likewise.
38866         * modules/locale (Makefile.am): Likewise.
38867         * modules/math (Makefile.am): Likewise.
38868         * modules/netinet_in (Makefile.am): Likewise.
38869         * modules/search (Makefile.am): Likewise.
38870         * modules/signal (Makefile.am): Likewise.
38871         * modules/stdarg (Makefile.am): Likewise.
38872         * modules/stdint (Makefile.am): Likewise.
38873         * modules/stdio (Makefile.am): Likewise.
38874         * modules/stdlib (Makefile.am): Likewise.
38875         * modules/string (Makefile.am): Likewise.
38876         * modules/strings (Makefile.am): Likewise.
38877         * modules/sys_select (Makefile.am): Likewise.
38878         * modules/sys_socket (Makefile.am): Likewise.
38879         * modules/sys_stat (Makefile.am): Likewise.
38880         * modules/sys_time (Makefile.am): Likewise.
38881         * modules/sysexits (Makefile.am): Likewise.
38882         * modules/time (Makefile.am): Likewise.
38883         * modules/unistd (Makefile.am): Likewise.
38884         * modules/wchar (Makefile.am): Likewise.
38885         * modules/wctype (Makefile.am): Likewise.
38886         Reported by Reuben Thomas <rrt@sc3d.org>.
38887
38888 2008-08-29  Bruno Haible  <bruno@clisp.org>
38889
38890         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38891         any more.
38892
38893 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38894
38895         * MODULES.html.sh (Misc): Add bitrotate.
38896
38897         * modules/bitrotate: New file.
38898
38899         * lib/bitrotate.h: New file.
38900
38901         * modules/bitrotate-tests: New file.
38902
38903         * tests/test-bitrotate.c: New file.
38904
38905         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38906         on the bitrotate module.
38907
38908         * lib/arctwo.c: Use new bitrotate module.
38909
38910 2008-08-29  Jim Meyering  <meyering@redhat.com>
38911
38912         bootstrap: merge changes from coreutils
38913         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38914         of copied files.  Remove a kludge, now that this is fixed.
38915         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38916         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38917         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38918
38919 2008-08-29  Bruno Haible  <bruno@clisp.org>
38920
38921         * MODULES.html.sh: Remove --cvs-urls option.
38922
38923 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38924
38925         maint.mk: adjust to file name change
38926         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38927
38928 2008-08-28  Jim Meyering  <meyering@redhat.com>
38929
38930         * modules/getndelim2 (License): Relicense to LGPLv2+.
38931         Approved by Richard Stallman for the version of 1995, and by
38932         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38933
38934 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38935
38936         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38937         dummy if one is not available.  Do not touch them if
38938         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38939         (getc_maybe_unlocked): New.
38940         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38941
38942 2008-08-26  Eric Blake  <ebb9@byu.net>
38943
38944         doc/INSTALL: resync from autoconf
38945         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38946         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38947         moving...
38948         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38949         * INSTALL: Regenerate.
38950         * INSTALL.ISO: New file.
38951         * INSTALL.UTF-8: Likewise.
38952
38953 2008-08-26  Jim Meyering  <meyering@redhat.com>
38954
38955         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38956         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38957         these definitions conditional, so that they may be overridden, too.
38958
38959 2008-08-26  Bruno Haible  <bruno@clisp.org>
38960
38961         Generate INSTALL file variants with prettier quotes.
38962         * doc/Makefile (INSTALL_PRELUDE): New macro.
38963         (INSTALL): Use it.
38964         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38965
38966 2008-08-26  Bruno Haible  <bruno@clisp.org>
38967
38968         Run makeinfo in an English locale.
38969         * doc/Makefile (MAKEINFO): New variable.
38970
38971 2008-08-26  Bruno Haible  <bruno@clisp.org>
38972
38973         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38974         Suggested by Eric Blake.
38975
38976 2008-08-25  Bruno Haible  <bruno@clisp.org>
38977
38978         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38979
38980 2008-08-25  Eric Blake  <ebb9@byu.net>
38981
38982         c-stack: test that stack overflow can be caught
38983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38984         that platform allows handling stack overflow; at least OS/2 EMX
38985         has sigaltstack, but crashes before transferring control to
38986         handler on stack overflow.
38987         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38988         check for HAVE_STACK_OVERFLOW_HANDLING.
38989         Reported by Elbert Pol.
38990
38991 2008-08-25  Bruno Haible  <bruno@clisp.org>
38992
38993         * doc/posix-functions/strftime.texi: Fix description of strftime
38994         module.
38995
38996 2008-08-24  Bruno Haible  <bruno@clisp.org>
38997
38998         * tests/uniwidth/test-uc_width2.c: New file.
38999         * tests/uniwidth/test-uc_width2.sh: New file.
39000         * modules/uniwidth/width-tests (Files): Add the new files.
39001         (TESTS): Add uniwidth/test-uc_width2.sh.
39002         (TESTS_ENVIRONMENT): New variable.
39003         (check_PROGRAMS): Add test-uc_width2.
39004         (test_uc_width2_SOURCES): New variable.
39005
39006         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39007         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39008         not 0x00AB.
39009         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39010
39011 2008-08-22  Eric Blake  <ebb9@byu.net>
39012
39013         test-lock, test-tls: mention why a test is skipped
39014         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39015         skipped.
39016         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39017
39018         count-one-bits: relax license
39019         * modules/count-one-bits (License): Relicense to LGPLv2+.
39020         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39021
39022 2008-08-22  Andreas Schwab  <schwab@suse.de>
39023
39024         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39025         Remove spurious space in assignment.
39026
39027 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39028
39029         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39030         Paul Eggert <eggert@CS.UCLA.EDU>.
39031
39032 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39033
39034         * modules/gettext: Add m4/threadlib.m4.
39035
39036 2008-08-19  Eric Blake  <ebb9@byu.net>
39037
39038         test-c-stack: fix compilation failure on FreeBSD 5.0
39039         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39040         headers before <sys/resource.h>.
39041         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39042         the bug.
39043         Reported by Nelson H. F. Beebe.
39044
39045         strverscmp: migrate from "strverscmp.h" to <string.h>
39046         * modules/string (Makefile.am): Add new hooks.
39047         * modules/strverscmp (Files): Remove strverscmp.h.
39048         (Depends-on): Add string.
39049         (configure.ac): Add indicator.
39050         (Include): Mention new header.
39051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39052         defaults.
39053         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39054         results.
39055         * lib/strverscmp.h: Delete.
39056         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39057         * tests/test-strverscmp.c (includes): Adjust client.
39058         * lib/check-version.c (includes): Likewise.
39059         * NEWS: Document the change.
39060
39061         strverscmp: add unit test
39062         * modules/strverscmp-tests: New file.
39063         * tests/test-strverscmp.c: Likewise.
39064
39065 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39066
39067         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39068         regarding Windows crypto stuff, from Mono.
39069
39070 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39071
39072         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39073         if present, for intel RND.  Return error on failures.
39074
39075 2008-08-18  Ben Pfaff  <blp@gnu.org>
39076
39077         gitlog-to-changelog: give better diagnostic for failed pipe-open
39078         * build-aux/gitlog-to-changelog: Improve error message: suggest
39079         that the version of Git may be too old.
39080
39081 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39082
39083         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39084         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39085
39086 2008-08-18  Bruno Haible  <bruno@clisp.org>
39087
39088         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39089         pthread_in_use().
39090
39091 2008-08-18  Bruno Haible  <bruno@clisp.org>
39092
39093         * lib/glthread/threadlib.c: Include <pthread.h>.
39094
39095 2008-08-18  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39098         glthread_recursive_lock_* macros.
39099         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39100         Fix syntax error.
39101
39102 2008-08-18  Bruno Haible  <bruno@clisp.org>
39103
39104         * lib/glthread/thread.c: Avoid forcing a context switch right after
39105         thread creation.
39106
39107 2008-08-17  Bruno Haible  <bruno@clisp.org>
39108
39109         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39110         * lib/glthread/thread.h: Provide Win32 specific implementation.
39111         * modules/thread (Files): Add lib/glthread/thread.c.
39112         (Depends-on): Add lock.
39113         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39114
39115 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39116
39117         New module 'yield'.
39118         * modules/yield: New file.
39119         * lib/glthread/yield.h: New file.
39120         * m4/yield.m4: New file.
39121         * MODULES.html.sh (Multithreading): Add yield.
39122
39123 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39124
39125         New module 'thread'.
39126         * modules/thread: New file.
39127         * lib/glthread/thread.h: New file.
39128         * m4/thread.m4: New file.
39129         * MODULES.html.sh (Multithreading): Add thread.
39130
39131 2008-08-17  Bruno Haible  <bruno@clisp.org>
39132
39133         * lib/glthread/lock.h: Include <stdlib.h> always.
39134         * lib/glthread/tls.h: Likewise.
39135         * lib/glthread/cond.h: Likewise.
39136
39137 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39138
39139         New module 'cond'.
39140         * modules/cond: New file.
39141         * lib/glthread/cond.h: New file.
39142         * lib/glthread/cond.c: New file.
39143         * m4/cond.m4: New file.
39144         * MODULES.html.sh (Multithreading): Add cond.
39145
39146 2008-08-16  Eric Blake  <ebb9@byu.net>
39147
39148         c-stack: fix regression on Irix 5.3 from 2008-06-21
39149         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39150         sa_sigaction...
39151         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39152         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39153         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39154         * modules/signal (Makefile.am): Use the value.
39155         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39156         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39157         * doc/posix-headers/signal.texi (signal.h): Document this
39158         portability issue.
39159         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39160         Reported by Tom G. Christensen.
39161
39162 2008-08-17  Bruno Haible  <bruno@clisp.org>
39163
39164         New module 'threadlib'.
39165         * modules/threadlib: New file.
39166         * lib/glthread/threadlib.c: New file, extracted from
39167         lib/glthread/lock.c.
39168         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39169         functions.
39170         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39171         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39172         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39173         macros.
39174         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39175         (gl_DISABLE_THREADS): Remove macro.
39176         * modules/lock (Files): Remove build-aux/config.rpath.
39177         (Depends-on): Remove havelib. Add threadlib.
39178         (configure.ac-early): Remove section.
39179         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39180         * modules/tls (Depends-on): Remove lock. Add threadlib.
39181         (Link): New section, copied from threadlib.
39182         * MODULES.html.sh (Multithreading): Add threadlib.
39183
39184 2008-08-14  Bruno Haible  <bruno@clisp.org>
39185
39186         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39187         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39188         glthread_rwlock_unlock, glthread_rwlock_destroy,
39189         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39190         glthread_recursive_lock_destroy): Define as macros always.
39191         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39192         glthread_lock_lock.
39193         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39194         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39195         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39196         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39197         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39198         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39199         (glthread_recursive_lock_lock_func): Renamed from
39200         glthread_recursive_lock_lock.
39201         (glthread_recursive_lock_unlock_func): Renamed from
39202         glthread_recursive_lock_unlock.
39203         (glthread_recursive_lock_destroy_func): Renamed from
39204         glthread_recursive_lock_destroy.
39205
39206 2008-08-14  Bruno Haible  <bruno@clisp.org>
39207
39208         * lib/glthread/lock.h: Renamed from lib/lock.h.
39209         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39210         * lib/glthread/tls.h: Renamed from lib/tls.h.
39211         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39212         * lib/fstrcmp.c: Update includes.
39213         * lib/strsignal.c: Update includes.
39214         * modules/lock (Files, Makefile.am): Update.
39215         (Include): Change to "glthread/lock.h".
39216         * modules/tls (Files, Makefile.am): Update.
39217         (Include): Change to "glthread/tls.h".
39218         * tests/test-lock.c: Update includes.
39219         * tests/test-tls.c: Update includes.
39220         * NEWS: Mention the renamed header files.
39221
39222 2008-08-11  Jim Meyering  <meyering@redhat.com>
39223
39224         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39225
39226 2008-08-11  Eric Blake  <ebb9@byu.net>
39227
39228         test-c-stack: avoid C99-ism
39229         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39230         before statement.
39231         Reported by Alain Guibert.
39232
39233 2008-08-10  Jim Meyering  <meyering@redhat.com>
39234
39235         ensure that return value of uinttostr et al are not ignored
39236         * lib/inttostr.h (__GNUC_PREREQ): Define.
39237         (__attribute_warn_unused_result__): Define.
39238         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39239
39240 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39241
39242         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39243         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39244
39245 2008-08-07  Jim Meyering  <meyering@redhat.com>
39246
39247         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39248
39249         * modules/mkstemp (License): Relicense under LGPLv2+.
39250         * modules/tempname (License): Likewise.
39251
39252 2008-08-06  Bruno Haible  <bruno@clisp.org>
39253
39254         * lib/poll.c (poll): Further micro-optimization.
39255
39256 2008-08-06  Jim Meyering  <meyering@redhat.com>
39257
39258         inet_pton.c: use locale-independent tolower
39259         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39260         (inet_pton6): Use c_tolower rather than tolower.
39261         * modules/inet_pton (Depends-on): Add c-ctype.
39262
39263 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39264
39265         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39266         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39267
39268 2008-08-06  Jim Meyering  <meyering@redhat.com>
39269
39270         * modules/inet_pton (License): Relicense under LGPLv2+.
39271
39272 2008-08-03  Bruno Haible  <bruno@clisp.org>
39273
39274         Additional non-aborting API for lock and tls.
39275         * lib/lock.h: Include <errno.h>.
39276         (glthread_lock_init): New macro/function.
39277         (gl_lock_init): Define as wrapper around glthread_lock_init.
39278         (glthread_lock_lock): New macro/function.
39279         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39280         (glthread_lock_unlock): New macro/function.
39281         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39282         (glthread_lock_destroy): New macro/function.
39283         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39284         (glthread_rwlock_init): New macro/function.
39285         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39286         (glthread_rwlock_rdlock): New macro/function.
39287         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39288         (glthread_rwlock_wrlock): New macro/function.
39289         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39290         (glthread_rwlock_unlock): New macro/function.
39291         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39292         (glthread_rwlock_destroy): New macro/function.
39293         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39294         (glthread_recursive_lock_init): New macro/function.
39295         (gl_recursive_lock_init): Define as wrapper around
39296         glthread_recursive_lock_init.
39297         (glthread_recursive_lock_lock): New macro/function.
39298         (gl_recursive_lock_lock): Define as wrapper around
39299         glthread_recursive_lock_lock.
39300         (glthread_recursive_lock_unlock): New macro/function.
39301         (gl_recursive_lock_unlock): Define as wrapper around
39302         glthread_recursive_lock_unlock.
39303         (glthread_recursive_lock_destroy): New macro/function.
39304         (gl_recursive_lock_destroy): Define as wrapper around
39305         glthread_recursive_lock_destroy.
39306         (glthread_once): New macro/function.
39307         (gl_once): Define as wrapper around glthread_once.
39308         Update function declarations.
39309         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39310         glthread_rwlock_init. Return error code.
39311         (glthread_rwlock_rdlock_multithreaded): Renamed from
39312         glthread_rwlock_rdlock. Return error code.
39313         (glthread_rwlock_wrlock_multithreaded): Renamed from
39314         glthread_rwlock_wrlock. Return error code.
39315         (glthread_rwlock_unlock_multithreaded): Renamed from
39316         glthread_rwlock_unlock. Return error code.
39317         (glthread_rwlock_destroy_multithreaded): Renamed from
39318         glthread_rwlock_destroy. Return error code.
39319         (glthread_recursive_lock_init_multithreaded): Renamed from
39320         glthread_recursive_lock_init. Return error code.
39321         (glthread_recursive_lock_lock_multithreaded): Renamed from
39322         glthread_recursive_lock_lock. Return error code.
39323         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39324         glthread_recursive_lock_unlock. Return error code.
39325         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39326         glthread_recursive_lock_destroy. Return error code.
39327         (glthread_once_call): Make static.
39328         (glthread_once_multithreaded): Renamed from glthread_once.
39329         * lib/tls.h: Include <errno.h>.
39330         (glthread_tls_key_init): New macro/function.
39331         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39332         (glthread_tls_set): New macro/function.
39333         (gl_tls_set): Define as wrapper around glthread_tls_set.
39334         (glthread_tls_key_destroy): New macro/function.
39335         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39336         Update function declarations.
39337         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39338         glthread_tls_get.
39339         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39340
39341 2008-08-04  Eric Blake  <ebb9@byu.net>
39342
39343         gnumakefile: use space, not TAB, outside of targets
39344         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39345
39346 2008-08-02  Jim Meyering  <meyering@redhat.com>
39347
39348         getdate.y: avoid locale-dependent date parsing failure
39349         In Turkish locales, getdate would fail to recognize keywords
39350         containing a lowercase "i".  The solution is not to rely on
39351         locale-sensitive case-conversion.
39352         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39353         (lookup_word): Use c_toupper in place of toupper.
39354         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39355         Reported by Vefa Bicakci <bicave@superonline.com> in
39356         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39357         * modules/getdate (Depends-on): Add c-ctype.
39358
39359 2008-08-02  Bruno Haible  <bruno@clisp.org>
39360
39361         * gnulib-tool (func_import): When updating or creating a .gitignore
39362         file, prepend each added line with a slash, and ignore leading slashes
39363         from the existing lines.
39364         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39365
39366 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39367
39368         Portability fix for GNU make 3.79.1.
39369         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39370         versions do not understand.
39371
39372 2008-08-01  Bruno Haible  <bruno@clisp.org>
39373
39374         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39375         * tests/test-isnanf.h (zero): New variable.
39376         (main): Avoid literal -0.0f.
39377         * tests/test-isnand.h (zero): New variable.
39378         (main): Avoid literal -0.0.
39379         * tests/test-isnanl.h (zero): New variable.
39380         (main): Avoid literal -0.0L.
39381         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39382         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39383         -0.0, -0.0L.
39384         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39385         (test_signbitd): Avoid literal -0.0.
39386         (test_signbitl): Avoid literal -0.0L.
39387         * tests/test-ceilf1.c (zero): New variable.
39388         (main): Avoid literal -0.0f.
39389         * tests/test-ceill.c (zero): New variable.
39390         (main): Avoid literal -0.0L.
39391         * tests/test-floorf1.c (zero): New variable.
39392         (main): Avoid literal -0.0f.
39393         * tests/test-floorl.c (zero): New variable.
39394         (main): Avoid literal -0.0L.
39395         * tests/test-roundf1.c (zero): New variable.
39396         (main): Avoid literal -0.0f.
39397         * tests/test-round1.c (zero): New variable.
39398         (main): Avoid literal -0.0.
39399         * tests/test-roundl.c (zero): New variable.
39400         (main): Avoid literal -0.0L.
39401         * tests/test-truncf1.c (zero): New variable.
39402         (main): Avoid literal -0.0f.
39403         * tests/test-trunc1.c (zero): New variable.
39404         (main): Avoid literal -0.0.
39405         * tests/test-truncl.c (zero): New variable.
39406         (main): Avoid literal -0.0L.
39407         * tests/test-frexp.c (zero): New variable.
39408         (main): Avoid literal -0.0.
39409         * tests/test-frexpl.c (zero): New variable.
39410         (main): Avoid literal -0.0L.
39411         * tests/test-ldexpl.c (zero): New variable.
39412         (main): Avoid literal -0.0L.
39413         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39414         (zerod, zerol): New variables.
39415         (test_function): Avoid literals -0.0, -0.0L.
39416         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39417         (zerod, zerol): New variables.
39418         (test_function): Avoid literals -0.0, -0.0L.
39419         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39420         (zerod, zerol): New variables.
39421         (test_function): Avoid literals -0.0, -0.0L.
39422         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39423         (zerod, zerol): New variables.
39424         (test_function): Avoid literals -0.0, -0.0L.
39425         * tests/test-strtod.c (zero): New variable.
39426         (main): Avoid literal -0.0.
39427         Reported by Jonathan C. Patschke <jp@centtech.com>.
39428
39429 2008-07-31  Jim Meyering  <meyering@redhat.com>
39430
39431         sha256.h: correct definition of SHA224_DIGEST_SIZE
39432         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39433         Reported by Paulie Pena IV <paulie4@gmail.com>.
39434         Define as 224 / 8, rather than as a literal.
39435         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39436         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39437         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39438
39439 2008-07-31  Bruno Haible  <bruno@clisp.org>
39440
39441         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39442         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39443         Reported by Jonathan Patschke <jp@centtech.com>.
39444
39445 2008-07-31  Bruno Haible  <bruno@clisp.org>
39446
39447         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39448         Reported by Paolo Bonzini <bonzini@gnu.org>.
39449
39450 2008-07-30  Eric Blake  <ebb9@byu.net>
39451
39452         test-strtod: allow compilation without -lm
39453         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39454         Reported by Dennis Clarke <blastwave@gmail.com>.
39455
39456 2008-07-28  Jim Meyering  <meyering@redhat.com>
39457
39458         bootstrap: work also when there are no .po files in po/
39459         * build-aux/bootstrap (update_po_files): Complete the change
39460         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39461
39462 2008-07-27  Jim Meyering  <meyering@redhat.com>
39463
39464         * users.txt: Add zile.
39465
39466 2008-07-26  Ben Pfaff  <blp@gnu.org>
39467
39468         Add missing dependencies on new m4/exponent[fdl].m4 files.
39469         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39470         * modules/isnand-nolibm: Add m4/exponentd.m4.
39471         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39472         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39473         m4/isnan[fdl].m4, because the macros actually used moved.
39474         Reported by Jim Meyering.
39475
39476 2008-07-14  Ben Pfaff  <blp@gnu.org>
39477
39478         Add isinf module.
39479         * lib/isinf.c: New file.
39480         * lib/math.in.h: Define isinf macro if we have decided to replace
39481         it.
39482         * m4/isinf.m4: New file.
39483         * m4/math_h.m4: Initialize and substitute variables for isinf
39484         module.
39485         * modules/isinf: New file.
39486         * modules/isinf-tests: New file.
39487         * modules/math: Add substitutions for new module.
39488         * tests/test-isinf.c: New file.
39489         * doc/posix-functions/isinf.texi: Mention new module.
39490         * MODULES.html.sh: Mention new module.
39491
39492 2008-07-14  Ben Pfaff  <blp@gnu.org>
39493
39494         Factor out some macros for use by additional modules.
39495         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39496         exponentf.m4.
39497         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39498         exponentd.m4.
39499         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39500         file exponentl.m4.
39501         * m4/exponentf.m4: New file.
39502         * m4/exponentd.m4: New file.
39503         * m4/exponentl.m4: New file.
39504         * modules/isnanf: Use new file m4/exponentf.m4.
39505         * modules/isnand: Use new file m4/exponentd.m4.
39506         * modules/isnanl: Use new file m4/exponentl.m4.
39507
39508 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39509
39510         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39511         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39512         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39513         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39514
39515         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39516         readlink on platforms without PATH_MAX.
39517
39518 2008-07-21  Eric Blake  <ebb9@byu.net>
39519
39520         Warn, not fail, on stale version.
39521         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39522
39523         Don't allow installation with stale devel version number.
39524         * top/GNUmakefile (_is-install-target): New macro.
39525         (_curr-ver): Forbid installation with stale version number.
39526
39527 2008-07-20  Bruno Haible  <bruno@clisp.org>
39528
39529         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39530         TESTS_ENVIRONMENT.
39531         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39532
39533 2008-07-20  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/c-stack.h (c_stack_action): Add documentation.
39536         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39537
39538 2008-07-20  Bruno Haible  <bruno@clisp.org>
39539
39540         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39541         * modules/readlink (License): Likewise.
39542
39543 2008-07-17  Eric Blake  <ebb9@byu.net>
39544
39545         * modules/c-stack (Link): Fix typo.
39546
39547         Make c-stack use libsigsegv, when available.
39548         * modules/c-stack (Depends-on): Add libsigsegv.
39549         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39550         needed.
39551         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39552         (segv_handler, overflow_handler, c_stack_action)
39553         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39554         implementation when libsigsegv is available, but only when using
39555         the library is necessary.
39556         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39557         comment, explaining why XSI check fails on Linux.
39558         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39559         * tests/test-c-stack2.sh: Tweak skip message.
39560         * NEWS: Document new link-time requirements.
39561
39562 2008-07-16  Eric Blake  <ebb9@byu.net>
39563
39564         c-stack: Expose false positives when not using libsigsegv.
39565         * modules/c-stack-tests (Files): Expand test.
39566         * tests/test-c-stack.c (main): Add means to conditionally trigger
39567         non-overflow SIGSEGV.
39568         * tests/test-c-stack2.sh: New file.
39569
39570 2008-07-14  Bruno Haible  <bruno@clisp.org>
39571
39572         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39573         Reported by Eric Blake.
39574
39575 2008-07-14  Sam Steingold  <sds@gnu.org>
39576             Bruno Haible  <bruno@clisp.org>
39577
39578         New module libsigsegv.
39579         * modules/libsigsegv: New file.
39580         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39581         modifications.
39582         * MODULES.html.sh (Signal handling): New section.
39583
39584 2008-07-14  Bruno Haible  <bruno@clisp.org>
39585
39586         * modules/unictype/ctype-* (Description): Add the word "function".
39587         Improves the resulting doc in MODULES.html.
39588
39589 2008-07-12  Ben Pfaff  <blp@gnu.org>
39590
39591         Add longlong module.
39592         * modules/longlong: New file.
39593
39594 2008-07-12  Bruno Haible  <bruno@clisp.org>
39595
39596         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39597         to empty.
39598
39599 2008-07-10  Ben Pfaff  <blp@gnu.org>
39600
39601         Add isnan module.
39602         * doc/posix-functions/isnan.texi: Mention new module.
39603         * lib/math.in.h: Define isnan macro if we have decided to replace
39604         it.
39605         * m4/isnan.m4: New file.
39606         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39607         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39608         also.
39609         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39610         redundancy.
39611         * m4/math_h.m4: Initialize and substitute variables for isnan
39612         module.
39613         * modules/isnan: New file.
39614         * modules/isnan-tests: New file.
39615         * modules/math: Add substitutions for new module.
39616         * tests/test-isnan.c: New file.
39617         * MODULES.html.sh: Mention new module.
39618
39619 2008-07-10  Ben Pfaff  <blp@gnu.org>
39620
39621         Add isnanf module.
39622         * lib/isnanf.m4: New file.
39623         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39624         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39625         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39626         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39627         * modules/isnanf: New file.
39628         * modules/isnanf-tests: New file.
39629         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39630         files.
39631         * tests/test-isnanf-nolibm.c: factored most of its contents into
39632         new file tests/test-isnanf.h.
39633         * tests/test-isnanf.h: New file.
39634         * tests/test-isnanf.c: New file.
39635         * MODULES.html.sh: Mention new module.
39636         * doc/glibc-functions/isnanf.texi: Mention new module.
39637
39638 2008-07-10  Ben Pfaff  <blp@gnu.org>
39639
39640         Add isnand module.
39641         * lib/isnand.h: New file.
39642         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39643         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39644         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39645         functionality also.
39646         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39647         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39648         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39649         * modules/isnand: New file.
39650         * modules/isnand-tests: New file.
39651         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39652         files.
39653         * tests/test-isnand-nolibm.c: factored most of its contents into
39654         new file tests/test-isnand.h.
39655         * tests/test-isnand.h: New file.
39656         * tests/test-isnand.c: New file.
39657         * MODULES.html.sh: Mention new module.
39658
39659 2008-07-10  Ben Pfaff  <blp@gnu.org>
39660
39661         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39662         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39663         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39664         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39665         * modules/isnanf-nolibm: Update references to renamed files.
39666         * modules/isnand-nolibm: Likewise.
39667         * modules/isnanf-nolibm-tests: Likewise.
39668         * modules/isnand-nolibm-tests: Likewise.
39669         * lib/frexp.c: Likewise.
39670         * lib/isfinite.c: Likewise.
39671         * lib/signbitd.c: Likewise.
39672         * lib/signbitf.c: Likewise.
39673         * lib/vasnprintf.c: Likewise.
39674         * tests/test-ceilf1.c: Likewise.
39675         * tests/test-ceilf2.c: Likewise.
39676         * tests/test-floorf1.c: Likewise.
39677         * tests/test-floorf2.c: Likewise.
39678         * tests/test-frexp.c: Likewise.
39679         * tests/test-round1.c: Likewise.
39680         * tests/test-round2.c: Likewise.
39681         * tests/test-roundf1.c: Likewise.
39682         * tests/test-strtod.c: Likewise.
39683         * tests/test-trunc1.c: Likewise.
39684         * tests/test-trunc2.c: Likewise.
39685         * tests/test-truncf1.c: Likewise.
39686         * tests/test-truncf2.c: Likewise.
39687         * NEWS: Mention the renamed header files.
39688
39689 2008-07-11  Jim Meyering  <meyering@redhat.com>
39690
39691         vc-list-files: make the last-resort awk code more portable
39692         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39693         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39694         does not support it.
39695
39696 2008-07-10  Eric Blake  <ebb9@byu.net>
39697
39698         Work with tar's bootstrap.
39699         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39700         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39701         an m4 comment.
39702
39703 2008-07-09  Jim Meyering  <meyering@redhat.com>
39704
39705         posix-shell.m4: fix typo that made this test malfunction
39706         * m4/posix-shell.m4: Remove capitalization in variable name.
39707
39708 2008-07-08  Bruno Haible  <bruno@clisp.org>
39709
39710         * m4/onceonly.m4: Update comments.
39711         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39712
39713 2008-07-04  Jim Meyering  <meyering@redhat.com>
39714
39715         * users.txt: Add vc-dwim.
39716         (bison, coreutils): Use the gitweb URL.
39717
39718 2008-07-03  Jim Meyering  <meyering@redhat.com>
39719
39720         * users.txt: Add libffcall.  From Sam Steingold.
39721
39722 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39723
39724         getdate.y: do not ignore TZ with relative day, month or year offset
39725         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39726         relative-date-handling, since otherwise, the latter would clobber the
39727         sole output (an updated Start value) of the tz-handling block.
39728         * tests/test-getdate.c: Tests for the fix
39729
39730 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39731
39732         Recognize 'foo_LIBRARIES += libgnu.a'.
39733         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39734         makefile snippet has already specified an installation location,
39735         also using '+='.
39736
39737 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39738
39739         getdate.y: factor out common actions
39740         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39741         Use them in place of open-coded actions.
39742
39743 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39744
39745         Add self-test for getdate module.
39746         * modules/getdate-tests: New file.
39747         * tests/test-getdate.c: New file.
39748
39749 2008-06-29  Bruno Haible  <bruno@clisp.org>
39750
39751         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39752         .gitignore.
39753         Reported by Sylvain Beucler <beuc@beuc.net>.
39754
39755 2008-06-29  Bruno Haible  <bruno@clisp.org>
39756
39757         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39758         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39759
39760 2008-06-29  Bruno Haible  <bruno@clisp.org>
39761
39762         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39763         EXTRA_DIST.
39764         Reported by Sylvain Beucler <beuc@beuc.net>.
39765
39766 2008-06-26  Jim Meyering  <meyering@redhat.com>
39767
39768         make several modules depend on the "open" module
39769         This provides slightly increased consistency when opening-for-write
39770         the name of a non-directory spelled with a trailing slash.
39771         * modules/chdir-safer: Likewise.
39772         * modules/chown: Likewise.
39773         * modules/clean-temp: Likewise.
39774         * modules/copy-file: Likewise.
39775         * modules/fchdir: Likewise.
39776         * modules/fcntl-safer: Likewise.
39777         * modules/pipe: Likewise.
39778         * modules/utime: Likewise.
39779         Prompted by Eric Blake and Bruno Haible.
39780
39781 2008-06-24  Andreas Schwab  <schwab@suse.de>
39782
39783         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39784         literals can be used as initializers for global variables.
39785
39786 2008-06-23  Eric Blake  <ebb9@byu.net>
39787
39788         Make gnulib-cache.m4 easier to diff.
39789         * gnulib-tool (func_import): Allow newlines when reading cached
39790         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39791
39792 2008-06-23  Bruno Haible  <bruno@clisp.org>
39793
39794         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39795         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39796         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39797         m4/signalblocking.m4.
39798         (gl_PREREQ_SIGACTION): Don't invoke it.
39799         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39800         gl_PREREQ_SIG_HANDLER_H.
39801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39802         Don't check for sigaction here.
39803
39804 2008-06-23  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39807         (install_handlers): Don't set the SA_RESETHAND flag.
39808
39809 2008-06-23  Bruno Haible  <bruno@clisp.org>
39810
39811         * m4/sigaction.m4: Comment fixes.
39812         * lib/signal.in.h: Likewise.
39813
39814 2008-06-23  Eric Blake  <ebb9@byu.net>
39815
39816         Fix typo.
39817         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39818
39819         Avoid SA_ namespace.
39820         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39821         Reported by Ralf Wildenhues.
39822
39823         Avoid test failure due to SA_RESTORER.
39824         * tests/test-sigaction.c (SA_MASK): New macro.
39825         (main): Avoid failing due to extension flags being set.
39826         Reported by Jim Meyering.
39827
39828         Revert use of sig-handler.h in sigprocmask.c.
39829         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39830         it requires the existence of struct sigaction.
39831         * lib/sigprocmask.c (handler_t): Restore typedef.
39832         (rpl_signal, old_handlers): Use local type.
39833
39834 2008-06-22  Bruno Haible  <bruno@clisp.org>
39835
39836         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39837         conditionally.
39838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39839
39840 2008-06-22  Bruno Haible  <bruno@clisp.org>
39841
39842         * doc/posix-functions/siginterrupt.texi: Move note.
39843
39844         * lib/signal.in.h (SA_RESTART): New macro.
39845         * lib/sigaction.c: Update comment.
39846
39847         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39848
39849         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39850         (gl_PREREQ_SIGPROCMASK): Invoke it.
39851         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39852
39853         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39854
39855         * lib/sigprocmask.c: Update a comment.
39856
39857 2008-06-21  Eric Blake  <ebb9@byu.net>
39858
39859         Use sigaction module rather than signal().
39860         * modules/c-stack (Depends-on): Add sigaction.
39861         * modules/fatal-signal (Depends-on): Likewise.
39862         * modules/nanosleep (Depends-on): Likewise.
39863         * modules/sigprocmask (Files): Add sig-handler.h.
39864         * modules/sigaction (Files): Likewise.
39865         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39866         Eggert.
39867         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39868         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39869         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39870         (init_fatal_signals): Likewise.
39871         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39872         (siginterrupt): Delete fallback.
39873         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39874         instead.
39875         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39876         siginterrupt.
39877
39878         New module sigaction, for mingw.
39879         * modules/sigaction: New module...
39880         * modules/sigaction-tests: ...and its test.
39881         * m4/sigaction.m4: New file.
39882         * lib/sigaction.c: Likewise.
39883         * tests/test-sigaction.c: Likewise.
39884         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39885         * modules/signal (Makefile.am): Likewise.
39886         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39887         needed.
39888         * doc/posix-headers/signal.texi (signal.h): Mention provided
39889         types.
39890         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39891         that sigaction is preferable.
39892         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39893         module.
39894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39895         sigaction.
39896
39897         Improve robustness of sigprocmask by overriding signal.
39898         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39899         is in use.
39900         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39901         (SIGKILL, SIGSTOP): Provide fallbacks.
39902         (rpl_signal): Implement.
39903         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39904         signal can be called inside handlers.
39905
39906         Fix nanosleep module on mingw.
39907         * modules/nanosleep (Depends-on): Add sys_select.
39908         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39909
39910         Fix licensing of sigprocmask.
39911         * modules/raise (License): Relicense as LGPL.
39912
39913 2008-06-21  Bruno Haible  <bruno@clisp.org>
39914
39915         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39916         result if it contains question marks.
39917         Reported by Michael Geng <linux@michaelgeng.de>.
39918
39919 2008-06-19  Bruno Haible  <bruno@clisp.org>
39920
39921         Fix CVS-ism.
39922         * doc/gnulib.texi: Include updated-stamp.texi.
39923         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39924         (updated-stamp.texi): New rule.
39925         (gnulib.info): Depend on it.
39926         * doc/.gitignore: Add updated-stamp.texi.
39927         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39928
39929 2008-06-19  Bruno Haible  <bruno@clisp.org>
39930
39931         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39932         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39933
39934 2008-06-19  Eric Blake  <ebb9@byu.net>
39935
39936         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39937         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39938         Reported by Stepan Kasal.
39939
39940 2008-06-18  Bruno Haible  <bruno@clisp.org>
39941
39942         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39943         Reported by Eric Blake.
39944
39945 2008-06-18  Eric Blake  <ebb9@byu.net>
39946
39947         Work around cygwin 1.5.25 strsignal bug.
39948         * tests/test-strsignal.c: Allow for const char *.
39949         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39950
39951 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39952
39953         * users.txt: Update URL to article and add author/date
39954         information.
39955
39956 2008-06-17  Bruno Haible  <bruno@clisp.org>
39957
39958         New macro gl_DISABLE_THREADS.
39959         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39960         if the user did not pass --enable-threads or --disable-threads option.
39961         (gl_DISABLE_THREADS): New macro.
39962         Reported by Eric Blake <ebb9@byu.net>.
39963
39964 2008-06-17  Bruno Haible  <bruno@clisp.org>
39965
39966         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39967         when the macro ignores it.
39968         Based on a patch by Eric Blake <ebb9@byu.net>.
39969
39970 2008-06-17  Bruno Haible  <bruno@clisp.org>
39971
39972         * modules/tls (License): Change to LGPLv2+.
39973         Reported by Eric Blake.
39974
39975 2008-06-17  Eric Blake  <ebb9@byu.net>
39976
39977         Simplify c-stack prerequisites.
39978         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39980         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39981         check.
39982         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39983         <sys/resource.h>.
39984
39985         Move c-stack test into testsuite.
39986         * modules/c-stack-tests: New file.
39987         * lib/c-stack.c [DEBUG]: Move test program...
39988         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39989         fail test if sigaltstack is lacking.
39990         * tests/test-c-stack.sh: New driver file.
39991
39992 2008-06-16  Eric Blake  <ebb9@byu.net>
39993
39994         Use raise module consistently.
39995         * modules/fatal-signal (Depends-on): Add raise.
39996         * modules/sigprocmask (Depends-on): Likewise.
39997         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39998         * lib/sigprocmask.c (sigprocmask): Likewise.
39999         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40000         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40001
40002         Fix compliance bug in sigpending.
40003         * lib/sigprocmask.c (sigpending): Return pending array via
40004         parameter, not return value.
40005
40006 2008-06-14  Eric Blake  <ebb9@byu.net>
40007
40008         Improve obstack-printf test code.
40009         * tests/test-obstack-printf.c (test_function): Fix comment, and
40010         simplify usage of obstack_* in macros.  Add a test for coverage.
40011         Reported by Bruno Haible.
40012
40013 2008-06-14  Bruno Haible  <bruno@clisp.org>
40014
40015         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40016         array size as a constant, not as a const variable.
40017         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40018         AC_USE_SYSTEM_EXTENSIONS.
40019         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40020         Test whether the obstack_printf function actually exists.
40021         * modules/obstack-printf (Depends-on): Add extensions.
40022         (Include): Remove obstack.h.
40023         * modules/obstack-printf-posix (Depends-on): Add extensions.
40024         (Include): Remove obstack.h.
40025
40026 2008-06-13  Eric Blake  <ebb9@byu.net>
40027
40028         Add obstack-printf and obstack-printf-posix modules.
40029         * modules/obstack-printf: New file.
40030         * modules/obstack-printf-posix: Likewise.
40031         * MODULES.html.sh (Misc): Mention them.
40032         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40033         Likewise.
40034         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40035         Likewise.
40036         * modules/stdio (Makefile.am): Accomodate new modules.
40037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40038         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40039         Declare.
40040         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40041         functions.
40042         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40043         (gl_REPLACE_OBSTACK_PRINTF): New macros
40044         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40045         * tests/test-obstack-printf.c: New file.
40046         * modules/obstack-printf-tests: Likewise.
40047         * modules/obstack-printf-posix-tests: Likewise.
40048
40049 2008-06-11  Bruno Haible  <bruno@clisp.org>
40050
40051         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40052         * lib/open.c: Include errno.h.
40053         (open): Fail when attempting to write to a file that has a trailing
40054         slash.
40055         * tests/test-open.c (main): Test against trailing slash bug.
40056         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40057
40058 2008-06-10  Bruno Haible  <bruno@clisp.org>
40059
40060         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40061         for $? to work inside the trap command, with various /bin/sh-s.
40062         * tests/test-vc-list-files-cvs.sh: Likewise.
40063
40064 2008-06-10  Bruno Haible  <bruno@clisp.org>
40065
40066         * lib/acl-internal.h: Don't include gettext.h here.
40067         * lib/set-mode-acl.c: Include gettext.h here.
40068         * lib/copy-acl.c: Likewise.
40069
40070 2008-06-10  Bruno Haible  <bruno@clisp.org>
40071
40072         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40073         * lib/wait-process.c (wait_subprocess): Likewise.
40074         * lib/execute.h (execute): Add termsigp argument.
40075         * lib/execute.c (execute): Likewise.
40076         * lib/csharpcomp.c (compile_csharp_using_pnet,
40077         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40078         * lib/csharpexec.c (execute_csharp_using_pnet,
40079         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40080         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40081         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40082         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40083         is_jikes_present): Update.
40084         * lib/javaexec.c (execute_java_class): Update.
40085         * lib/javaversion.c (execute_and_read_line): Update.
40086         * NEWS: Document the changes.
40087         Reported by Eric Blake.
40088
40089 2008-06-10  Eric Blake  <ebb9@byu.net>
40090
40091         Add missing include.
40092         * tests/test-strstr.c (includes): Add <signal.h>.
40093         * tests/test-strcasestr.c (includes): Likewise.
40094         * tests/test-memmem.c (includes): Likewise.
40095
40096 2008-06-10  Bruno Haible  <bruno@clisp.org>
40097
40098         * lib/wait-process.c (wait_subprocess): Add an assertion.
40099
40100 2008-06-10  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40103
40104 2008-06-10  Bruno Haible  <bruno@clisp.org>
40105
40106         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40107         using alarm().
40108         * tests/test-strcasestr.c (main): Likewise.
40109         * tests/test-strstr.c (main): Likewise.
40110
40111 2008-06-09  Bruno Haible  <bruno@clisp.org>
40112
40113         Work around the Solaris 10 ACE ACLs ABI change.
40114         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40115         declare if ACL_NO_TRIVIAL is present.
40116         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40117         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40118         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40119         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40120         define if ACL_NO_TRIVIAL is present.
40121         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40122         and use the current ABI.
40123         (file_has_acl): Use same #if condition as elsewhere.
40124         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40125         in use, and use the current ABI.
40126         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40127         Reported by Jim Meyering.
40128
40129 2008-06-09  Eric Blake  <ebb9@byu.net>
40130
40131         Work around environments that (stupidly) ignore SIGALRM.
40132         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40133         before using alarm().
40134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40136         Reported by Ian Beckwith <ianb@erislabs.net>.
40137
40138         Produce autobuild blurb earlier in log.
40139         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40140
40141 2008-06-09  Jim Meyering  <meyering@redhat.com>
40142         and OndÅ™ej Vašík  <ovasik@redhat.com>
40143
40144         utimens.c: correct kernel bug work-around
40145         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40146         failure, not success, and the kernel bug we're trying to work
40147         around affects not just the utimensat call, but also the fallback
40148         futimens call.
40149         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40150         not success.
40151         [HAVE_FUTIMENS]: Use the same work-around, here.
40152
40153 2008-06-09  Jim Meyering  <meyering@redhat.com>
40154
40155         add more guards around definition of ACE_-related code
40156         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40157         ALLOW and ACE_OWNER are also defined.
40158
40159 2008-06-08  Bruno Haible  <bruno@clisp.org>
40160
40161         * lib/acl-internal.h: Add me as co-author.
40162         * lib/file-has-acl.c: Likewise.
40163         * lib/set-mode-acl.c: Likewise.
40164         * lib/copy-acl.c: Likewise.
40165
40166 2008-06-08  Bruno Haible  <bruno@clisp.org>
40167
40168         Add support for AIX ACLs.
40169         * lib/acl-internal.h (acl_nontrivial): New declaration.
40170         * lib/file-has-acl.c (acl_nontrivial): New function.
40171         (file_has_acl): Add implementation using AIX 4 ACL API.
40172         * lib/set-mode-acl.c (qset_acl): Likewise.
40173         * lib/copy-acl.c (qcopy_acl): Likewise.
40174
40175 2008-06-08  Bruno Haible  <bruno@clisp.org>
40176
40177         Add support for HP-UX ACLs.
40178         * lib/acl-internal.h (acl_nontrivial): New declaration.
40179         * lib/file-has-acl.c (acl_nontrivial): New function.
40180         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40181         * lib/set-mode-acl.c (qset_acl): Likewise.
40182         * lib/copy-acl.c (qcopy_acl): Likewise.
40183
40184 2008-06-08  Bruno Haible  <bruno@clisp.org>
40185
40186         Add support for Cygwin ACLs.
40187         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40188         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40189         the chmod_or_fchmod call.
40190         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40191
40192 2008-06-08  Bruno Haible  <bruno@clisp.org>
40193
40194         Fix bug with setuid modes in Solaris 10+ code.
40195         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40196         succeeded, when the mode contains some special bits.
40197
40198 2008-06-08  Bruno Haible  <bruno@clisp.org>
40199
40200         Add support for Solaris 7..10 ACLs.
40201         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40202         declarations.
40203         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40204         functions.
40205         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40206         * lib/set-mode-acl.c (qset_acl): Likewise.
40207         * lib/copy-acl.c (qcopy_acl): Likewise.
40208
40209 2008-06-08  Bruno Haible  <bruno@clisp.org>
40210
40211         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40212         declaration.
40213         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40214         (acl_access_nontrivial): Remove MacOS X case.
40215         (file_has_acl): Use acl_extended_nontrivial.
40216         * lib/copy-acl.c (qcopy_acl): Likewise.
40217
40218 2008-06-08  Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40221
40222 2008-06-08  Jim Meyering  <meyering@redhat.com>
40223
40224         * modules/acl (Maintainer): Add Bruno Haible.
40225
40226 2008-06-07  Bruno Haible  <bruno@clisp.org>
40227
40228         Improve support for Tru64 ACLs.
40229         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40230         ACL on OSF/1.
40231
40232 2008-06-07  Bruno Haible  <bruno@clisp.org>
40233
40234         Add support for MacOS X ACLs.
40235         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40236         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40237         * lib/set-mode-acl.c (qset_acl): Likewise.
40238         * lib/copy-acl.c (qcopy_acl): Likewise.
40239
40240 2008-06-07  Bruno Haible  <bruno@clisp.org>
40241
40242         Fix memory leak introduced on 2008-05-22.
40243         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40244         use.
40245
40246 2008-06-07  Bruno Haible  <bruno@clisp.org>
40247
40248         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40249         to construct an empty ACL.
40250
40251 2008-06-07  Bruno Haible  <bruno@clisp.org>
40252
40253         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40254         precisely.
40255         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40256
40257 2008-06-07  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40260         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40261
40262 2008-06-07  Bruno Haible  <bruno@clisp.org>
40263
40264         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40265         regardless of POSIX.
40266         * doc/posix-functions/_longjmp.texi: Likewise.
40267         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40268         SystemV platform in this case.
40269
40270 2008-06-06  Eric Blake  <ebb9@byu.net>
40271
40272         Document abort() bugs.
40273         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40274
40275         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40276         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40277         sigsetjmp.
40278         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40279         siglongjmp, but only as a macro.
40280         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40281         is obsolete.
40282         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40283
40284         Tweak documentation to cover cygwin argz bugs.
40285         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40286         argz bug fix; no code change needed since no cygwin releases
40287         occurred between the last fix and the bug being tested.
40288         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40289         module and recently fixed cygwin bugs.
40290         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40291         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40292         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40293         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40294         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40295         Likewise.
40296         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40297         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40298         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40299         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40300         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40301         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40302         Likewise.
40303
40304         Avoid gcc warning on cygwin.
40305         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40306         !ACL_NO_TRIVIAL]: Avoid unused variable.
40307
40308 2008-06-05  Eric Blake  <ebb9@byu.net>
40309
40310         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40311         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40312         git-version-gen fails to come up with a version.
40313         Reported by Simon Josefsson.
40314
40315 2008-06-05  Jim Meyering  <meyering@redhat.com>
40316             Paul Eggert  <eggert@cs.ucla.edu>
40317
40318         utimens.c: work around a probable Linux kernel bug
40319         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40320         appears to be a kernel bug that causes utimensat to return 280
40321         instead of 0, indicating success.
40322
40323 2008-06-04  Bruno Haible  <bruno@clisp.org>
40324
40325         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40326         2008-06-01 commit.
40327
40328 2008-06-04  Bruno Haible  <bruno@clisp.org>
40329
40330         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40331         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40332         (file_has_acl): Use it. Save errno afterwards.
40333         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40334
40335 2008-06-03  Bruno Haible  <bruno@clisp.org>
40336
40337         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40338         draft code. Simplify #ifs.
40339         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40340         Put Solaris code after POSIX-draft code. Fix comments regarding
40341         Solaris 10, HP-UX. Mention Cygwin.
40342         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40343
40344 2008-06-03  Eric Blake  <ebb9@byu.net>
40345
40346         Provide fallback for older kernels.
40347         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40348         Provide runtime fallback if kernel lacks support.
40349         Reported by Mike Frysinger.
40350
40351 2008-06-02  Bruno Haible  <bruno@clisp.org>
40352
40353         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40354         it exists.
40355
40356 2008-06-02  Bruno Haible  <bruno@clisp.org>
40357
40358         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40359         * lib/copy-acl.c (qcopy_acl): Update comment.
40360
40361 2008-06-02  Bruno Haible  <bruno@clisp.org>
40362
40363         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40364         like ACL APIs.
40365
40366 2008-06-02  Bruno Haible  <bruno@clisp.org>
40367
40368         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40369         * tests/test-set-mode-acl.sh: Likewise.
40370         * tests/test-copy-acl.sh: Likewise.
40371         * tests/test-copy-file.sh: Likewise.
40372
40373 2008-06-02  Bruno Haible  <bruno@clisp.org>
40374
40375         * tests/test-file-has-acl.sh: Remove unused code.
40376
40377 2008-06-01  Bruno Haible  <bruno@clisp.org>
40378
40379         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40380         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40381         messages.
40382         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40383
40384 2008-06-01  Bruno Haible  <bruno@clisp.org>
40385
40386         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40387         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40388         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40389         APIs.
40390         * modules/acl-tests (configure.ac): Remove tests now contained in
40391         m4/acl.m4.
40392
40393 2008-06-02  Jim Meyering  <meyering@redhat.com>
40394
40395         announce-gen: use a better key-server host name
40396         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40397         it may be more consistently reliable.  Suggested by Werner Koch
40398         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40399
40400 2008-06-01  Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40403         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40404
40405 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40406
40407         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40408
40409 2008-06-01  Bruno Haible  <bruno@clisp.org>
40410
40411         New ACL tests.
40412         * tests/test-file-has-acl.sh: New file.
40413         * tests/test-file-has-acl.c: New file.
40414         * tests/test-set-mode-acl.sh: New file.
40415         * tests/test-set-mode-acl.c: New file.
40416         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40417         * tests/test-copy-acl.c: New file.
40418         * modules/acl-tests: New file, based on modules/copy-file-tests.
40419         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40420         (Depends-on): Add acl-tests.
40421         (configure.ac): Remove checks.
40422         (Makefile.am): Don't create test-sameacls program here any more.
40423
40424 2008-06-01  Bruno Haible  <bruno@clisp.org>
40425
40426         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40427         * tests/test-sameacls.c: Include progname.h.
40428         (main): Invoke set_program_name. Portability fixes for MacOS X,
40429         Solaris, HP-UX.
40430
40431 2008-06-01  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40434         function.
40435         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40436
40437 2008-06-01  Bruno Haible  <bruno@clisp.org>
40438
40439         * modules/rpmatch (Depends-on): Add strdup.
40440
40441 2008-06-01  Bruno Haible  <bruno@clisp.org>
40442
40443         * lib/pipe.c: Include unistd-safer.h.
40444         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40445         * modules/pipe (Depends-on): Add unistd-safer.
40446
40447 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40448
40449         * modules/autobuild (configure.ac): Call AB_INIT.
40450
40451 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40452
40453         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40454         Suggested by Bruno Haible <bruno@clisp.org>.
40455
40456 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40457
40458         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40459         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40460         <bruno@clisp.org>.
40461
40462 2008-05-29  Eric Blake  <ebb9@byu.net>
40463
40464         Prefer new POSIX 200x interfaces over futimesat.
40465         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40466         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40467         when available.
40468         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40469
40470 2008-05-28  Bruno Haible  <bruno@clisp.org>
40471
40472         * modules/stpcpy (License): Change to LGPLv2+.
40473         Requested by David Lutterkort <dlutter@redhat.com>.
40474
40475 2008-05-27  Bruno Haible  <bruno@clisp.org>
40476
40477         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40478         current mingw.
40479         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40480
40481 2008-05-27  Bruno Haible  <bruno@clisp.org>
40482
40483         * modules/iconv_open (Link): New section, from module 'iconv'.
40484         * modules/striconv (Link): Likewise.
40485         * modules/striconveh (Link): Likewise.
40486         * modules/xstriconv (Link): Likewise.
40487         * modules/unicodeio (Link): Likewise.
40488         * modules/propername (Link): Likewise.
40489         Reported by Jim Meyering.
40490
40491 2008-05-26  Jim Meyering  <meyering@redhat.com>
40492
40493         sha256: do not artificially restrict buffer length to be < 2^32
40494         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40495         uint32_t to size_t.
40496         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40497         to match.
40498
40499         avoid unaligned access errors, e.g., on sparc
40500         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40501         direct access through a possibly-unaligned uint64* pointer.
40502         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40503         direct access through a possibly-unaligned uint32* pointer.
40504         Prompted by this patch from Tom "spot" Callaway:
40505         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40506
40507         sha512.c: fix typo in comment
40508         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40509
40510 2008-05-25  Bruno Haible  <bruno@clisp.org>
40511
40512         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40513         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40514         (Makefile.am): Update lib_SOURCES.
40515
40516 2008-05-25  Bruno Haible  <bruno@clisp.org>
40517
40518         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40519
40520 2008-05-25  Jim Meyering  <meyering@redhat.com>
40521
40522         useless-if-before-free: freed expr may have white-space differences
40523         * build-aux/useless-if-before-free: Recognize cases in which the
40524         freed expression differs from the tested one in embedded white
40525         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40526         $1 was used, so we can't make any regexp shy.  Improved tests now
40527         detect this.
40528
40529         useless-if-before-free: accept white space in the expression.
40530         * build-aux/useless-if-before-free: For now, any white space
40531         in the expression must be identical in the free argument.
40532
40533         useless-if-before-free: efficiency tweak
40534         * build-aux/useless-if-before-free: Make the expression-matching
40535         regexp "shy".
40536         Make the *outer* regexp shy, not the expr-matching one.
40537
40538         update code-in-comment to accept cast of free arg
40539         * build-aux/useless-if-before-free: Update regexp.
40540
40541 2008-05-25  Bruno Haible  <bruno@clisp.org>
40542
40543         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40544         * modules/copy-file-tests (Files, Makefile.am): Update.
40545         * tests/test-copy-file.c (func_test_copy): Update.
40546
40547 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40548
40549         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40550
40551 2008-05-23  Bruno Haible  <bruno@clisp.org>
40552
40553         Improve support for ACLs on OSF/1.
40554         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40555         Remove fallback for unknown flavors of ACLs.
40556
40557 2008-05-22  Bruno Haible  <bruno@clisp.org>
40558
40559         Add support for ACLs on OSF/1.
40560         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40561         replacements.
40562         (acl_free_text): New macro fallback.
40563         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40564         acl_free.
40565         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40566         acl_free_text function. Require AC_C_INLINE.
40567
40568 2008-05-22  Bruno Haible  <bruno@clisp.org>
40569
40570         Make copy_acl work on MacOS X 10.5.
40571         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40572         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40573         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40574         If MODE_INSIDE_ACL, don't assume that every system has the same text
40575         representation for ACLs as FreeBSD.
40576         * lib/copy-acl.c (copy_acl): Add support for platforms with
40577         !MODE_INSIDE_ACL.
40578         * lib/file-has-acl.c (file_has_acl): Likewise.
40579         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40580         FreeBSD, MacOS X, or IRIX, respectively.
40581
40582 2008-05-22  Bruno Haible  <bruno@clisp.org>
40583
40584         * lib/acl.h: Don't include <sys/acl.h>.
40585         (GETACLCNT): Move fallback to lib/acl-internal.h.
40586         * lib/acl-internal.h: Include <sys/acl.h> here.
40587         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40588
40589 2008-05-22  Bruno Haible  <bruno@clisp.org>
40590
40591         Split off copy_acl function to separate file.
40592         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40593         * lib/acl.c (copy_acl): Moved function to separate file.
40594         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40595         * modules/acl (Files): Add lib/copy-acl.c.
40596         (Makefiles.am): Augment lib_SOURCES.
40597
40598 2008-05-22  Bruno Haible  <bruno@clisp.org>
40599
40600         * modules/copy-file-tests: New file.
40601         * tests/test-copy-file.sh: New file.
40602         * tests/test-copy-file.c: New file.
40603         * tests/test-copy-file-sameacls.c: New file.
40604
40605 2008-05-22  Eric Blake  <ebb9@byu.net>
40606
40607         Avoid gcc warning.
40608         * tests/test-memcmp.c (main): Pass NULL indirectly.
40609
40610 2008-05-21  Bruno Haible  <bruno@clisp.org>
40611
40612         Add reference doc about ACLs.
40613         * doc/acl-resources.txt: New file.
40614         * doc/acl-cygwin.txt: New file.
40615
40616 2008-05-21  Bruno Haible  <bruno@clisp.org>
40617
40618         Avoid one more warning from gcc.
40619         * lib/vasnprintf.c (IF_LINT): Update comments.
40620         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40621
40622 2008-05-21  Jim Meyering  <meyering@redhat.com>
40623
40624         avoid a warning from gcc
40625         * lib/vasnprintf.c (IF_LINT): Define.
40626         (scale10_round_decimal_long_double):
40627         Use it to avoid a "may be used uninitialized" warning.
40628         (scale10_round_decimal_double): Likewise.
40629
40630 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40631
40632         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40633         declared.
40634
40635 2008-05-20  Bruno Haible  <bruno@clisp.org>
40636
40637         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40638         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40639
40640 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40641
40642         * modules/memcmp-tests: New file.
40643         * tests/test-memcmp.c: New file.
40644
40645 2008-05-19  Bruno Haible  <bruno@clisp.org>
40646
40647         * modules/propername (Notice, configure.ac): Put quoted "..." into
40648         --keyword option.
40649         * lib/propername.h: Update comments accordingly.
40650         Reported by Eric Blake.
40651
40652 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40653
40654         * modules/getpass-gnu (Depends-on): Add fseeko.
40655
40656 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40657
40658         * modules/base64-tests: New file.
40659
40660 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40661
40662         * lib/base64.c (base64_decode_ctx): If a decode context structure
40663         was passed in use it to ignore newlines.  If a context structure
40664         was _not_ passed in, continue to treat newlines as garbage (this
40665         is the historical behavior).  Formerly base64_decode.
40666         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40667         takes a decode context structure.
40668         * lib/base64.h (base64_decode): Macro for four-argument calls.
40669         (base64_decode_alloc): Likewise.
40670         * lib/base64.c (base64_decode_ctx): If a decode context structure
40671         was passed in use it to ignore newlines.  If a context structure
40672         was _not_ passed in, continue to treat newlines as garbage (this
40673         is the historical behavior).  Formerly base64_decode.
40674         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40675         takes a decode context structure.
40676         * lib/base64.h (base64_decode): Macro for four-argument calls.
40677         (base64_decode_alloc): Likewise.
40678
40679 2008-05-19  Jim Meyering  <meyering@redhat.com>
40680
40681         avoid a warning from gcc
40682         * lib/trim.c (IF_LINT): Define.
40683         (trim2): Use it to avoid a "may be used uninitialized" warning.
40684
40685         Fix doc typo.
40686         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40687
40688 2008-05-19  Bruno Haible  <bruno@clisp.org>
40689
40690         * doc/glibc-functions/getpass.texi: Document limits of other
40691         implementations.
40692
40693 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40694             Bruno Haible <bruno@clisp.org>
40695
40696         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40697
40698 2008-05-18  Bruno Haible  <bruno@clisp.org>
40699
40700         * modules/propername: New file, from GNU gettext.
40701         * lib/propername.h: New file, from GNU gettext.
40702         * lib/propername.c: New file, from GNU gettext.
40703         * MODULES.html.sh (Internationalization functions): Add propername.
40704
40705 2008-05-16  Jim Meyering  <meyering@redhat.com>
40706             Bruno Haible  <bruno@clisp.org>
40707
40708         Avoid some warnings from "gcc -Wshadow".
40709         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40710
40711 2008-05-15  Eric Blake  <ebb9@byu.net>
40712
40713         Extend previous patch to cygwin 1.7.0.
40714         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40715         fast implementation in cygwin >= 1.7.0.
40716         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40718
40719 2008-05-15  Bruno Haible  <bruno@clisp.org>
40720
40721         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40722         implementation in glibc >= 2.9.
40723         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40725
40726 2008-05-15  Bruno Haible  <bruno@clisp.org>
40727
40728         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40729         (Unicode string functions): Add unilbrk/*.
40730         Reported by Karl Berry.
40731
40732 2008-05-15  Eric Blake  <ebb9@byu.net>
40733
40734         Fix violation of <stdbool.h> replacement in regex.
40735         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40736         * lib/regexec.c (re_search_internal): Likewise.
40737         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40738
40739 2008-05-15  Jim Meyering  <meyering@redhat.com>
40740
40741         avoid distracting test output when git or cvs is not found
40742         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40743         * tests/test-vc-list-files-git.sh: Likewise.
40744
40745 2008-05-15  Eric Blake  <ebb9@byu.net>
40746
40747         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40748         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40749         glibc version.
40750         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40751         * doc/posix-functions/strstr.texi (strstr): Likewise.
40752         * lib/str-two-way.h (MAX): Sychronize with glibc.
40753
40754 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40755
40756         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40757         opr.ctx_type.
40758         (calc_first): Initialize constraint field.
40759         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40760         Fix grammar.
40761         (duplicate_node): Merge constraint field for all node types.
40762         (calc_eclosure_iter): Look at constraint field for all node types.
40763         * lib/regex_internal.c (create_cd_newstate): Don't look at
40764         opr.ctx_type.
40765
40766 2008-05-14  Bruno Haible  <bruno@clisp.org>
40767
40768         Help GCC to do better code generation.
40769         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40770         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40771         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40772         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40773         Declare with attribute 'malloc' if supported.
40774
40775 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40776
40777         use "echo STR|wc -c" rather than unportable "expr length STR"
40778         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40779         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40780
40781 2008-05-14  Jim Meyering  <meyering@redhat.com>
40782
40783         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40784         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40785         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40786         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40787         via Collin Lasse.
40788
40789 2008-05-14  Eric Blake  <ebb9@byu.net>
40790
40791         Avoid quadratic growth in gl_LIBSOURCES.
40792         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40793         Suggested by Bruno Haible.
40794
40795         Test xmemdup0.
40796         * modules/xmemdup0-tests: New file.
40797         * tests/test-xmemdup0.c: Likewise.
40798
40799 2008-05-13  Eric Blake  <ebb9@byu.net>
40800
40801         Split xmemdup0 into its own module.
40802         * modules/xmemdup0: New file.
40803         * lib/xmemdup0.h: Likewise.
40804         * lib/xmemdup0.c: Likewise.
40805         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40806         * lib/xalloc.h (xmemdup0): Remove.
40807         * lib/xmalloc.c (xmemdup0): Likewise.
40808
40809 2008-05-13  Eric Blake  <ebb9@byu.net>
40810             Bruno Haible  <bruno@clisp.org>
40811
40812         Reduce number of forks required during autoconf.
40813         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40814         and gl_LIBSOURCES_DIR.
40815         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40816         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40817         m4_syscmd per file.
40818         <m4_foreach_w>: Move...
40819         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40820
40821 2008-05-13  Eric Blake  <ebb9@byu.net>
40822
40823         * gnulib-tool: Fix various comment typos.
40824
40825 2008-05-12  Bruno Haible  <bruno@clisp.org>
40826
40827         Tailor the linebreaking algorithm.
40828         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40829
40830 2008-05-12  Bruno Haible  <bruno@clisp.org>
40831
40832         Update to Unicode 5.0.0.
40833         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40834         LBP_JV, LBP_JT. Redistribute values.
40835         (unilbrk_table): Change size.
40836         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40837         Unicode TR#14 rev. 22.
40838         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40839         LBP_JV, LBP_JT. Redistribute values.
40840         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40841         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40842         Update.
40843         * lib/unilbrk/lbrkprop1.h: Regenerated.
40844         * lib/unilbrk/lbrkprop2.h: Regenerated.
40845         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40846         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40847         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40848         Likewise.
40849         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40850         Likewise.
40851         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40852         result.
40853         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40854         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40855         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40856         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40857         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40858         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40859
40860 2008-05-11  Bruno Haible  <bruno@clisp.org>
40861
40862         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40863
40864 2008-05-11  Bruno Haible  <bruno@clisp.org>
40865
40866         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40867         * modules/unilbrk/gen-lbrk: New file.
40868
40869 2008-05-11  Bruno Haible  <bruno@clisp.org>
40870
40871         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40872         * m4/sha512.m4 (gl_SHA512): Likewise.
40873
40874 2008-05-11  Jim Meyering  <meyering@redhat.com>
40875
40876         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40877         * modules/crypto/sha256: New file.
40878         * modules/crypto/sha512: Likewise.
40879         * lib/sha256.c: Likewise.
40880         * lib/sha256.h: Likewise.
40881         * lib/sha512.c: Likewise.
40882         * lib/sha512.h: Likewise.
40883         * lib/u64.h: Likewise.
40884         * m4/sha256.m4: Likewise.
40885         * m4/sha512.m4: Likewise.
40886         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40887
40888 2008-05-10  Bruno Haible  <bruno@clisp.org>
40889
40890         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40891         (Input/Output <stdio.h>): Add xprintf.
40892         (Signal handling <signal.h>): Add strsignal.
40893         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40894         (Core language properties): Add func.
40895         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40896         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40897         strings.
40898         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40899         (Input/output): New section.
40900         (File system functions): Add openat-die, stat-macros.
40901         (Networking functions): Add sockets.
40902         (Unicode string functions): Add unictype/*.
40903         (Support for building libraries and executables): Add gperf.
40904         (Support for building documentation): Add agpl-3.0.
40905         (Misc): Add nocrash.
40906
40907 2008-05-10  Bruno Haible  <bruno@clisp.org>
40908
40909         * modules/unictype/gen-ctype: New file.
40910
40911 2008-05-10  Jim Meyering  <meyering@redhat.com>
40912
40913         Make chdir-safer.c more efficient on a system with no symlinks.
40914         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40915         also if ELOOP is zero.  Suggested by Bruno Haible.
40916
40917         Make chdir-safer.c slightly safer.
40918         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40919         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40920
40921         Avoid compile failure on systems without ELOOP (like mingw).
40922         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40923         Reported by Bruno Haible.
40924
40925 2008-05-10  Bruno Haible  <bruno@clisp.org>
40926
40927         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40928         (is_utf8_encoding): Use a case-insensitive comparison.
40929         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40930         streq.
40931
40932 2008-05-10  Bruno Haible  <bruno@clisp.org>
40933
40934         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40935         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40936         * lib/unilbrk/ulc-common.h (iconv_string_length,
40937         iconv_string_keeping_offsets): Remove declarations.
40938         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40939         Don't include <iconv.h>, streq.h, xsize.h.
40940         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40941         conversion.
40942         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40943         <iconv.h>, streq.h, xsize.h.
40944         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40945         conversion.
40946         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40947         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40948         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40949         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40950
40951 2008-05-10  Bruno Haible  <bruno@clisp.org>
40952
40953         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40954         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40955
40956         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40957         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40958
40959         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40960         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40961
40962         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40963         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40964
40965         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40966         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40967
40968         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40969         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40970
40971         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40972         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40973
40974         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40975         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40976
40977 2008-05-10  Bruno Haible  <bruno@clisp.org>
40978
40979         Split up 'linebreak' module.
40980         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40981         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40982         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40983         modifications.
40984         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40985         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40986         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40987         lib/linebreak.c.
40988         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40989         lib/linebreak.c.
40990         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40991         lib/linebreak.c.
40992         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40993         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40994         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40995         lib/linebreak.c.
40996         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40997         lib/linebreak.c.
40998         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40999         lib/linebreak.c.
41000         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41001         lib/linebreak.c.
41002         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41003         lib/linebreak.c.
41004         * modules/unilbrk/base: New file.
41005         * modules/unilbrk/tables: New file.
41006         * modules/unilbrk/u8-possible-linebreaks: New file.
41007         * modules/unilbrk/u16-possible-linebreaks: New file.
41008         * modules/unilbrk/u32-possible-linebreaks: New file.
41009         * modules/unilbrk/ulc-common: New file.
41010         * modules/unilbrk/ulc-possible-linebreaks: New file.
41011         * modules/unilbrk/u8-width-linebreaks: New file.
41012         * modules/unilbrk/u16-width-linebreaks: New file.
41013         * modules/unilbrk/u32-width-linebreaks: New file.
41014         * modules/unilbrk/ulc-width-linebreaks: New file.
41015         * lib/linebreak.h: Remove file.
41016         * lib/linebreak.c: Remove file.
41017         * m4/linebreak.m4: Remove file.
41018         * modules/linebreak: Remove file.
41019         * NEWS: Mention the changes.
41020
41021 2008-05-09  Eric Blake  <ebb9@byu.net>
41022
41023         Add xmemdup0.
41024         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41025         implementation.
41026         * lib/xmalloc.c (xmemdup0): New C implementation.
41027
41028 2008-05-08  Bruno Haible  <bruno@clisp.org>
41029
41030         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41031
41032 2008-05-07  Eric Blake  <ebb9@byu.net>
41033
41034         Support cross-compilation of <wctype.h>.
41035         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41036         AC_CACHE_CHECK.
41037
41038 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41039
41040         * build-aux/vc-list-files: Add support for bzr.
41041
41042 2008-05-03  Jim Meyering  <meyering@redhat.com>
41043
41044         avoid failed assertion with tight malloc
41045         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41046
41047 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41048
41049         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41050         are needed from arpa/inet.h.
41051         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41052         Reported by Bruno Haible.
41053
41054 2008-05-02  Jim Meyering  <meyering@redhat.com>
41055
41056         avoid compilation error on FreeBSD 6
41057         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41058
41059 2008-05-01  Jim Meyering  <meyering@redhat.com>
41060
41061         useless-if-before-free: correct --help's exit status description
41062         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41063         for one or more matches, etc.  Reported by Bruno Haible.
41064
41065         vc-list-files: make the stand-alone gnulib test work
41066         * modules/vc-list-files-tests (configure.ac):
41067         Define and AC_SUBST abs_aux_dir.
41068         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41069         $(abs_top_srcdir) to each script and having each of them
41070         duplicate the work of setting PATH, set PATH here, using
41071         the new variable, abs_aux_dir instead.
41072         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41073         * tests/test-vc-list-files-git.sh: Likewise.
41074         Reported by Bruno Haible.
41075
41076 2008-05-01  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41079         reallocation. Rename 'done' to 'found_delimiter'.
41080
41081 2008-05-01  Jim Meyering  <meyering@redhat.com>
41082
41083         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41084         * build-aux/vc-list-files: Use `...`, not $(...).
41085
41086 2008-04-30  Jim Meyering  <meyering@redhat.com>
41087
41088         add tests for vc-list-files
41089         * modules/vc-list-files-tests: New module.
41090         * tests/test-vc-list-files-cvs.sh: New file.
41091         * tests/test-vc-list-files-git.sh: New file.
41092
41093         avoid a warning from gcc
41094         * lib/getndelim2.c (IF_LINT): Define.
41095         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41096
41097         vc-list-files: work properly with build-aux/cvsu, too
41098         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41099         to all cvs-based clauses.
41100
41101         vc-list-files: work properly in the CVS+awk case, too
41102         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41103
41104         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41105         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41106         take more than one file argument, so .  Add quotes, just in case $dir
41107         ever contains a shell meta-character.  Prompted by Soren Hansen in
41108         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41109
41110 2008-04-29  Eric Blake  <ebb9@byu.net>
41111
41112         Optimize getndelim2 to use block operations when possible.
41113         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41114         freadseek, and memchr2.
41115         * lib/getndelim2.c (getndelim2): Use them for block reads.
41116
41117 2008-04-29  Bruno Haible  <bruno@clisp.org>
41118
41119         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41120         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41121         * modules/inet_ntop (Depends-on): Add extensions.
41122         * modules/inet_pton (Depends-on): Likewise.
41123         Reported by Simon Josefsson.
41124
41125 2008-04-29  Jim Meyering  <meyering@redhat.com>
41126
41127         When the is more than one match in a block, match all of them.
41128         * build-aux/useless-if-before-free: Iterate through each block
41129         until there are no more matches.
41130
41131         Fix broken useless-if-before-free script.
41132         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41133         the expression to match cast of argument to free-like function.
41134
41135 2008-04-29  Eric Blake  <ebb9@byu.net>
41136
41137         Use new header.
41138         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41139
41140 2008-04-29  Jim Meyering  <meyering@redhat.com>
41141
41142         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41143         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41144         by gnulib to exist and to declare e.g., inet_ntop.
41145         Don't include "inet_ntop.h", now removed.
41146
41147         * m4/arpa_inet_h.m4: Remove trailing blanks.
41148
41149 2008-04-29  Eric Blake  <ebb9@byu.net>
41150
41151         Silence valgrind on safe reads beyond potential array bounds.
41152         * lib/rawmemchr.valgrind: New file.
41153         * lib/strchrnul.valgrind: Likewise.
41154         * modules/rawmemchr (Files): Distribute new file.
41155         * modules/strchrnul (Files): Likewise.
41156         Suggested by Bruno Haible.
41157
41158 2008-04-29  Bruno Haible  <bruno@clisp.org>
41159
41160         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41161         (inet_ntop, inet_pton): Change portability warning's wording.
41162         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41163         Invoke gl_CHECK_NEXT_HEADERS.
41164         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41165         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41166         set ARPA_INET_H.
41167         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41168         * modules/arpa_inet (Description): No longer only for systems that
41169         lack it.
41170         (Depends-on): Add include_next.
41171         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41172         HAVE_ARPA_INET_H.
41173
41174 2008-04-29  Jim Meyering  <meyering@redhat.com>
41175
41176         * modules/mkdir (License): Re-license as LGPLv2+.
41177
41178 2008-04-29  Bruno Haible  <bruno@clisp.org>
41179
41180         * modules/rawmemchr (Maintainer): Set to Eric.
41181         * modules/strchrnul (Maintainer): Likewise.
41182
41183 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41184
41185         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41186         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41187
41188         * modules/arpa_inet (arpa/inet.h): Use them.
41189
41190 2008-04-28  Eric Blake  <ebb9@byu.net>
41191
41192         Test getndelim2.
41193         * modules/getndelim2-tests: New file.
41194         * tests/test-getndelim2.c: Likewise.
41195         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41196         stream.
41197         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41198
41199         * MODULES.html.sh: Document new module.
41200
41201 2008-04-20  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/c-stack.c (die): Use raise.
41204         * modules/c-stack (Depends-on): Add raise.
41205
41206 2008-04-28  Bruno Haible  <bruno@clisp.org>
41207
41208         Expect rpmatch to be declared.
41209         * lib/yesno.c (rpmatch): Remove declaration.
41210
41211         Declare rpmatch.
41212         * lib/stdlib.in.h (rpmatch): New declaration.
41213         * lib/rpmatch.c: Include <stdlib.h> first.
41214         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41215         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41217         HAVE_RPMATCH.
41218         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41220         (Include): Set to <stdlib.h>.
41221         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41222         HAVE_RPMATCH.
41223         * NEWS: Document the change.
41224
41225 2008-04-28  Bruno Haible  <bruno@clisp.org>
41226
41227         Change rpmatch to use nl_langinfo when appropriate.
41228         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41229         (N_): New macro.
41230         (localized_pattern): New function/macro.
41231         (try): Remove match, nomatch arguments. Copy the pattern into safe
41232         memory before caching it.
41233         (rpmatch): Use localized_pattern. Add translator comments.
41234         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41235         Suggested by Eric Blake.
41236         * modules/rpmatch (Depends-on): Add stdbool.
41237
41238 2008-04-28  Eric Blake  <ebb9@byu.net>
41239
41240         Add rawmemchr module, matching glibc.
41241         * modules/string (Makefile.am): New indicator.
41242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41243         * lib/string.in.h (rawmemchr): Declare when appropriate.
41244         * modules/rawmemchr: New file.
41245         * m4/rawmemchr.m4: Likewise.
41246         * lib/rawmemchr.c: Likewise.
41247         * modules/rawmemchr-tests: Likewise.
41248         * tests/test-rawmemchr.c: Likewise.
41249         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41250         module.
41251         * modules/strchrnul (Depends-on): Add rawmemchr.
41252         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41253
41254         Whitespace cleanup.
41255         * tests/test-strchrnul.c: Reindent.
41256         * lib/strchrnul.c: Likewise.
41257
41258         Optimize and test strchrnul.
41259         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41260         * modules/strchrnul-tests: New file.
41261         * tests/test-strchrnul.c: Likewise.
41262
41263         Remove intprops dependency.
41264         * modules/memchr (Depends-on): Remove intprops.
41265         * modules/memrchr (Depends-on): Likewise.
41266         * modules/memchr2 (Depends-on): Likewise.
41267         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41268         * lib/memrchr.c (__memrchr): Likewise.
41269         * lib/memrchr2.c (memchr2): Likewise.
41270         Reported by Simon Josefsson.
41271
41272 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41273
41274         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41275         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41276
41277 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41278
41279         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41280
41281         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41282
41283         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41284
41285         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41286         declarations.
41287         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41288
41289         * m4/inet_pton.m4: Don't check for header files.
41290
41291         * m4/inet_ntop.m4: Don't check for header files.
41292
41293 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41294
41295         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41296         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41297         trigger for cygwin).
41298         Reported by Bruno Haible  <bruno@clisp.org>.
41299
41300 2008-04-28  Bruno Haible  <bruno@clisp.org>
41301
41302         * doc/posix-functions/strdup.texi: Mention mingw problem.
41303
41304 2008-04-27  Bruno Haible  <bruno@clisp.org>
41305
41306         * modules/stat-time-tests (Depends-on): Add sleep.
41307         * tests/test-stat-time.c (force_unlink): New function.
41308         (cleanup): Use it.
41309         (test_mtime): Remove the ctime related tests.
41310         (test_ctime): New function, containing the ctime related tests.
41311         (main): Call test_ctime, except on native Windows platforms.
41312
41313 2008-04-27  Bruno Haible  <bruno@clisp.org>
41314
41315         * lib/rpmatch.c (rpmatch): Add some comments.
41316         Reported by James Youngman <jay@gnu.org>.
41317
41318 2008-04-27  Bruno Haible  <bruno@clisp.org>
41319
41320         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41321         quiet NaNs.
41322
41323 2008-04-27  Bruno Haible  <bruno@clisp.org>
41324
41325         Make test-yesno.sh work on mingw.
41326         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41327         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41328         (main): Set stdin to binary mode.
41329         * modules/yesno-tests (Depends-on): Add binary-io.
41330
41331 2008-04-27  Bruno Haible  <bruno@clisp.org>
41332
41333         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41334         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41335         argument that lie outside the IEEE 854 domain.
41336         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41337         (gl_ISFINITE): Use it.
41338         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41339
41340 2008-04-27  Bruno Haible  <bruno@clisp.org>
41341
41342         Allow local renaming in config.h.
41343         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41344
41345 2008-04-27  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/memchr.c (__memchr): Change type of 'i'.
41348         * lib/memchr2.c (memchr2): Likewise.
41349
41350 2008-04-26  Eric Blake  <ebb9@byu.net>
41351         and Bruno Haible  <bruno@clisp.org>
41352
41353         Optimize and test memrchr.
41354         * modules/memrchr (Depends-on): Add intprops.
41355         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41356         * modules/memrchr-tests: New file.
41357         * tests/test-memrchr.c: New file.
41358
41359 2008-04-26  Bruno Haible  <bruno@clisp.org>
41360
41361         Add tentative support for DragonFly BSD.
41362         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41363         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41364         fp.
41365         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41366         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41367         * lib/fpurge.c (fpurge): Likewise.
41368         * lib/freadable.c (freaadable): Likewise.
41369         * lib/freadahead.c (freadahead): Likewise.
41370         * lib/freading.c (freading): Likewise.
41371         * lib/freadptr.c (freadptr): Likewise.
41372         * lib/freadseek.c (freadptrinc): Likewise.
41373         * lib/fseeko.c (fseeko): Likewise.
41374         * lib/fseterr.c (fseterr): Likewise.
41375         * lib/fwritable.c (fwritable): Likewise.
41376         * lib/fwriting.c (fwriting): Likewise.
41377
41378 2008-04-26  Bruno Haible  <bruno@clisp.org>
41379
41380         * lib/stdio-impl.h: New file.
41381         * lib/fbufmode.c: Include stdio-impl.h.
41382         (fbufmode): Use fp_, remove redundant #defines.
41383         * lib/fflush.c: Include stdio-impl.h.
41384         (clear_ungetc_buffer): Remove redundant #defines.
41385         * lib/fpurge.c: Include stdio-impl.h.
41386         (fpurge): Remove redundant #defines.
41387         * lib/freadable.c: Include stdio-impl.h.
41388         (freadable): Remove redundant #defines.
41389         * lib/freadahead.c: Include stdio-impl.h.
41390         (freadahead): Remove redundant #defines.
41391         * lib/freading.c: Include stdio-impl.h.
41392         (freading): Remove redundant #defines.
41393         * lib/freadptr.c: Include stdio-impl.h.
41394         (freadptr): Remove redundant #defines.
41395         * lib/freadseek.c: Include stdio-impl.h.
41396         (freadptrinc): Remove redundant #defines.
41397         * lib/fseeko.c: Include stdio-impl.h.
41398         (rpl_fseeko): Remove redundant #defines.
41399         * lib/fseterr.c: Include stdio-impl.h.
41400         (fseterr): Remove redundant #defines.
41401         * lib/fwritable.c: Include stdio-impl.h.
41402         (fwritable: Remove redundant #defines.
41403         * lib/fwriting.c: Include stdio-impl.h.
41404         (fwriting): Remove redundant #defines.
41405         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41406         * modules/fflush (Files): Likewise.
41407         * modules/fpurge (Files): Likewise.
41408         * modules/freadable (Files): Likewise.
41409         * modules/freadahead (Files): Likewise.
41410         * modules/freading (Files): Likewise.
41411         * modules/freadptr (Files): Likewise.
41412         * modules/freadseek (Files): Likewise.
41413         * modules/fseeko (Files): Likewise.
41414         * modules/fseterr (Files): Likewise.
41415         * modules/fwritable (Files): Likewise.
41416         * modules/fwriting (Files): Likewise.
41417
41418 2008-04-26  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41421         restore_seek_optimization, update_fpos_cache): New functions, extracted
41422         from rpl_fflush.
41423         (rpl_fflush): Use them.
41424         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41425         (gl_REPLACE_FFLUSH): Use it.
41426
41427 2008-04-26  Bruno Haible  <bruno@clisp.org>
41428
41429         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41430         on Solaris.
41431         * tests/test-xstrtoimax.sh: Likewise.
41432         * tests/test-xstrtoumax.sh: Likewise.
41433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41434
41435 2008-04-26  Bruno Haible  <bruno@clisp.org>
41436
41437         * modules/memchr-tests: New file.
41438         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41439
41440 2008-04-26  Eric Blake  <ebb9@byu.net>
41441             Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/memchr.c: Include intprops.h.
41444         (__memchr): Optimize parallel detection of matching bytes. Rename local
41445         variables. Add explanatory comments.
41446
41447 2008-04-26  Bruno Haible  <bruno@clisp.org>
41448
41449         Fix module 'memchr', broken since 2000-10-28.
41450         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41451
41452 2008-04-26  Bruno Haible  <bruno@clisp.org>
41453
41454         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41455         comments.
41456
41457 2008-04-25  Eric Blake  <ebb9@byu.net>
41458
41459         Use native fstatat on cygwin 1.7.0.
41460         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41461         first.
41462
41463 2008-04-23  Eric Blake  <ebb9@byu.net>
41464
41465         Improve memchr2 performance.
41466         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41467         NUL bytes.
41468         * modules/memchr2 (Depends-on): Use intprops.h.
41469
41470 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41471
41472         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41473         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41474         <blp@cs.stanford.edu>.
41475
41476 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41477
41478         * lib/arpa_inet.in.h: New file.
41479
41480         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41481         (Makefile.am): Sed in substitute header file.
41482
41483         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41484         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41485
41486         * modules/inet_ntop (configure.ac): Use
41487         gl_ARPA_INET_MODULE_INDICATOR.
41488
41489         * modules/inet_pton (configure.ac): Use
41490         gl_ARPA_INET_MODULE_INDICATOR.
41491
41492 2008-04-22  Jim Meyering  <meyering@redhat.com>
41493
41494         * modules/verify (License): Re-license as LGPLv2+.
41495
41496 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41497
41498         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41499         parameter to void* as per POSIX standard (MinGW uses char*).
41500
41501 2008-04-21  Bruno Haible  <bruno@clisp.org>
41502
41503         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41504         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41505         Define to replacements if REPLACE_ISWCNTRL is 1.
41506         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41507         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41508         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41509         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41510         what it fixes.
41511         * doc/posix-functions/iswalpha.texi: Likewise.
41512         * doc/posix-functions/iswblank.texi: Likewise.
41513         * doc/posix-functions/iswcntrl.texi: Likewise.
41514         * doc/posix-functions/iswdigit.texi: Likewise.
41515         * doc/posix-functions/iswgraph.texi: Likewise.
41516         * doc/posix-functions/iswlower.texi: Likewise.
41517         * doc/posix-functions/iswprint.texi: Likewise.
41518         * doc/posix-functions/iswpunct.texi: Likewise.
41519         * doc/posix-functions/iswspace.texi: Likewise.
41520         * doc/posix-functions/iswupper.texi: Likewise.
41521         * doc/posix-functions/iswxdigit.texi: Likewise.
41522         Reported by Alain Guibert.
41523
41524 2008-04-21  Bruno Haible  <bruno@clisp.org>
41525
41526         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41527         Patch by Alain Guibert.
41528
41529 2008-04-21  Bruno Haible  <bruno@clisp.org>
41530
41531         Fix test failures on mingw.
41532         * tests/test-xstrtol.c (print_no_progname): New function.
41533         (main): Install it in error_print_progname hook.
41534         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41535         * tests/test-xstrtoimax.sh: Likewise.
41536         * tests/test-xstrtoumax.sh: Likewise.
41537
41538 2008-04-21  Bruno Haible  <bruno@clisp.org>
41539
41540         Fix test failure on mingw.
41541         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41542
41543 2008-04-21  Bruno Haible  <bruno@clisp.org>
41544
41545         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41546         Actually assign a value.
41547
41548 2008-04-20  Bruno Haible  <bruno@clisp.org>
41549
41550         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41551         take 2.
41552         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41553         'canonicalize-lgpl' module is also used.
41554         * lib/canonicalize-lgpl.c: Undo last change.
41555         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41556
41557 2008-04-20  Bruno Haible  <bruno@clisp.org>
41558
41559         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41560         config.h. Provide _mkdir based fallback for mingw.
41561         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41562         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41563         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41564         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41565         rather than defining mkdir in config.h.
41566         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41567         (gl_SYS_STAT_H_DEFAULTS): New macro.
41568         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41569         HAVE_IO_H any more.
41570         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41571         HAVE_DECL_MKDIR and HAVE_IO_H.
41572
41573 2008-04-20  Bruno Haible  <bruno@clisp.org>
41574
41575         * lib/isapipe.c: Port to native Windows platforms.
41576
41577 2008-04-20  Bruno Haible  <bruno@clisp.org>
41578
41579         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41580
41581 2008-04-21  Eric Blake  <ebb9@byu.net>
41582
41583         Work around preprocessors that don't handle UINTMAX_MAX.
41584         * lib/memchr2.c (memchr2): Avoid embedded #if.
41585         Reported by Alain Guibert, fix suggested by Bruno Haible.
41586
41587 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41588
41589         * doc/posix-functions/strftime.texi (strftime): Explain better
41590         Windows incompatibility.  Suggested by Micah Cowan
41591         <micah@cowan.name>.
41592
41593 2008-04-20  Bruno Haible  <bruno@clisp.org>
41594
41595         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41596         unistr/u8-mblen.
41597
41598 2008-04-20  Bruno Haible  <bruno@clisp.org>
41599
41600         Fix test failure on platforms with non-GNU iconv.
41601         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41602         (U_TO_U8): Use it, rather than u16_to_u8.
41603         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41604         units at the end of the input string.
41605         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41606
41607 2008-04-20  Bruno Haible  <bruno@clisp.org>
41608
41609         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41610         when the resulting length is 0.
41611         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41612
41613 2008-04-20  Bruno Haible  <bruno@clisp.org>
41614
41615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41616         works.
41617         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41618
41619 2008-04-20  Bruno Haible  <bruno@clisp.org>
41620
41621         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41622         * modules/tsearch-tests (configure.ac): Test for initstate function.
41623
41624 2008-04-20  Bruno Haible  <bruno@clisp.org>
41625
41626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41627         for nlink_t if missing.
41628         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41629
41630 2008-04-19  Bruno Haible  <bruno@clisp.org>
41631
41632         Work around snprintf bug on Linux libc5.
41633         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41635         gl_SNPRINTF_SIZE1.
41636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41637         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41638         that test failed.
41639         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41640         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41641         * modules/snprintf (Files): Add m4/printf.m4.
41642         * modules/vsnprintf (Files): Likewise.
41643         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41644         * doc/posix-functions/vsnprintf.texi: Likewise.
41645
41646 2008-04-19  Bruno Haible  <bruno@clisp.org>
41647
41648         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41649         from 0.0058 to less than 10^-7.
41650
41651 2008-04-19  Bruno Haible  <bruno@clisp.org>
41652
41653         Fix rounding when a precision is given.
41654         * lib/vasnprintf.c (is_borderline): New function.
41655         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41656         9...9x.
41657         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41658         %e, %g.
41659         * tests/test-vasprintf-posix.c (test_function): Likewise.
41660         * tests/test-snprintf-posix.h (test_function): Likewise.
41661         * tests/test-sprintf-posix.h (test_function): Likewise.
41662         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41663         * tests/test-printf-posix.h (test_function): Likewise.
41664         * tests/test-printf-posix.output: Update.
41665         Reported by John Darrington <john@darrington.wattle.id.au> via
41666         Ben Pfaff <blp@cs.stanford.edu>.
41667
41668 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41669
41670         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41671         Suggested by Bruno Haible <bruno@clisp.org>.
41672
41673 2008-04-17  Bruno Haible  <bruno@clisp.org>
41674
41675         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41676         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41677         implementation.
41678         Patch by Bruce Merry <bmerry@gmail.com>.
41679
41680 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41681
41682         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41683         doesn't work under Windows.
41684
41685 2008-04-16  Bruno Haible  <bruno@clisp.org>
41686
41687         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41688         New macros.
41689         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41690         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41691         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41692         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41693         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41694         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41695         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41696         macros.
41697         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41698         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41699         Northern Sotho, Uighur.
41700
41701 2008-04-16  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41704         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41705         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41706         Reported by Daniel Bergström <daniel@octocode.com>.
41707
41708 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41709             Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41712         function.
41713         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41714         New functions, mostly extracted from gl_locale_name_default.
41715         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41716
41717 2008-04-16  Eric Blake  <ebb9@byu.net>
41718
41719         Adjust strtod detection to catch glibc 2.7 bug.
41720         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41721         Reported by John Gatewood Ham.
41722
41723 2008-04-16  Bruno Haible  <bruno@clisp.org>
41724
41725         Add tentative support for Linux libc5.
41726         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41727         * lib/fpurge.c (fpurge): Likewise.
41728         * lib/freadable.c (freadable): Likewise.
41729         * lib/freadahead.c (freadahead): Likewise.
41730         * lib/freading.c (freading): Likewise.
41731         * lib/freadptr.c (freadptr): Likewise.
41732         * lib/freadseek.c (freadptrinc): Likewise.
41733         * lib/fseeko.c (rpl_fseeko): Likewise.
41734         * lib/fseterr.c (fseterr): Likewise.
41735         * lib/fwritable.c (fwritable): Likewise.
41736         * lib/fwriting.c (fwriting): Likewise.
41737         Reported by Alain Guibert <alguibert+bts@free.fr>.
41738
41739 2008-04-15  Bruno Haible  <bruno@clisp.org>
41740
41741         * modules/mathl (configure.ac): Define module indicator.
41742
41743 2008-04-15  Bruno Haible  <bruno@clisp.org>
41744
41745         * lib/logl.c (logl): Remove unused variables.
41746
41747 2008-04-15  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41750         fails.
41751
41752 2008-04-15  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/trim.c (trim2): Fix argument of isspace() macro.
41755
41756 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41757
41758         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41759         to 0.
41760         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41761
41762 2008-04-14  Bruno Haible  <bruno@clisp.org>
41763
41764         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41765         AC_LANG_PROGRAM argument.
41766         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41767         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41769         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41770         * m4/math_h.m4 (gl_MATH_H): Likewise.
41771         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41773         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41775         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41776         * m4/regex.m4 (gl_REGEX): Likewise.
41777         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41778         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41780         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41782         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41785
41786 2008-04-14  Jim Meyering  <meyering@redhat.com>
41787
41788         test-strtod: fix typos: s/abs/fabs/
41789         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41790
41791 2008-04-13  Bruno Haible  <bruno@clisp.org>
41792
41793         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41794         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41795         module is also used and while not building the reloc-wrapper.
41796
41797 2008-04-13  Bruno Haible  <bruno@clisp.org>
41798
41799         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41800
41801 2008-04-13  Bruno Haible  <bruno@clisp.org>
41802
41803         Fix AIX compilation failure introduced on 2008-04-02.
41804         * tests/test-frexp.c (exp): Undefine before redefining.
41805         * tests/test-frexpl.c (exp): Likewise.
41806
41807 2008-04-13  Bruno Haible  <bruno@clisp.org>
41808
41809         Work around a HP-UX stdio bug.
41810         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41811         * tests/test-ftello.c (main): Likewise.
41812         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41813         * doc/posix-functions/ftello.texi: Likewise.
41814
41815 2008-04-13  Bruno Haible  <bruno@clisp.org>
41816
41817         Make test-signbit pass on HP-UX/hppa.
41818         * tests/test-signbit.c (minus_zerol): New variable.
41819         (test_signbitl): Use it.
41820
41821 2008-04-13  Bruno Haible  <bruno@clisp.org>
41822
41823         Make truncl work on OSF/1 4.0.
41824         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41825         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41826         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41828         HAVE_DECL_TRUNCL.
41829         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41830         HAVE_DECL_TRUNCL.
41831         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41832
41833 2008-04-13  Bruno Haible  <bruno@clisp.org>
41834
41835         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41836
41837 2008-04-13  Bruno Haible  <bruno@clisp.org>
41838
41839         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41840         expression, so as to avoid HP-UX 11 cc compiler bug.
41841
41842 2008-04-13  Bruno Haible  <bruno@clisp.org>
41843
41844         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41845
41846 2008-04-13  Bruno Haible  <bruno@clisp.org>
41847
41848         * lib/git-merge-changelog.c: Remove empty declaration outside of
41849         functions.
41850
41851 2008-04-13  Bruno Haible  <bruno@clisp.org>
41852
41853         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41854
41855 2008-04-13  Bruno Haible  <bruno@clisp.org>
41856
41857         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41858         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41860         also if it exists but lacks definitions of the SHUT_* macros.
41861         * modules/sys_socket (Description): Update.
41862         Reported by Elbert Pol <e.pol@chello.nl>.
41863
41864 2008-04-13  Bruno Haible  <bruno@clisp.org>
41865
41866         * lib/localcharset.c (OS2): Don't redefine if already defined.
41867         Reported by Elbert Pol <e.pol@chello.nl>.
41868
41869 2008-04-13  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/binary-io.h [__EMX__]: Include <io.h>.
41872         Reported by Elbert Pol <e.pol@chello.nl>.
41873
41874 2008-04-12  Bruno Haible  <bruno@clisp.org>
41875
41876         * lib/fpucw.h: Enable the definitions also for x86_64.
41877         Needed for NetBSD/x86_64.
41878         Reported by Thomas Klausner <tk@giga.or.at>.
41879
41880 2008-04-12  Bruno Haible  <bruno@clisp.org>
41881
41882         * tests/test-strtod.c: Include isnand.h.
41883         (main): Use isnand instead of isnan.
41884         Reported by Jim Meyering.
41885
41886 2008-04-12  Bruno Haible  <bruno@clisp.org>
41887
41888         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41889         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41890
41891 2008-04-12  Jim Meyering  <meyering@redhat.com>
41892
41893         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41894
41895 2008-04-12  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41898         Reported by Elbert Pol <e.pol@chello.nl>.
41899
41900 2008-04-12  Eric Blake  <ebb9@byu.net>
41901
41902         Work around Solaris 10 math.h bug.
41903         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41904         (gl_MATH_H_DEFAULTS): Set up default.
41905         * modules/math (Makefile.am): Replace new indicators.
41906         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41907         * tests/test-math.c (main): Test this.
41908         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41909         * doc/posix-headers/math.texi (math.h): Mention bug.
41910         Reported by Nelson H. F. Beebe and Jim Meyering.
41911
41912 2008-04-11  Bruno Haible  <bruno@clisp.org>
41913
41914         Adapt to future versions of Apple GCC.
41915         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41916         Reported by Peter O'Gorman <peter@pogma.com>.
41917
41918 2008-04-11  Bruno Haible  <bruno@clisp.org>
41919
41920         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41921
41922 2008-04-11  Bruno Haible  <bruno@clisp.org>
41923
41924         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41925
41926         * modules/getaddrinfo-tests (Makefile.am): Define
41927         test_getaddrinfo_LDADD.
41928
41929 2008-04-11  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41932         (init): Fix syntax error.
41933         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41934         is declared.
41935
41936 2008-04-11  Bruno Haible  <bruno@clisp.org>
41937
41938         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41939         * modules/glob (Depends-on): Add stdbool.
41940
41941 2008-04-11  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/trim.c: Include <string.h>.
41944
41945 2008-04-11  Eric Blake  <ebb9@byu.net>
41946
41947         Avoid compile failure on OS/2.
41948         * lib/regex_internal.h (internal_function): Disable optimization
41949         on OS/2 (__EMX__), where it caused compiler error.
41950         Reported by Elbert Pol.
41951
41952 2008-04-11  Bruno Haible  <bruno@clisp.org>
41953
41954         Flush the standard error stream before aborting. Needed on mingw.
41955         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41956         * tests/test-array_list.c (ASSERT): Likewise.
41957         * tests/test-array_oset.c (ASSERT): Likewise.
41958         * tests/test-avltree_list.c (ASSERT): Likewise.
41959         * tests/test-avltree_oset.c (ASSERT): Likewise.
41960         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41961         * tests/test-binary-io.c (ASSERT): Likewise.
41962         * tests/test-byteswap.c (ASSERT): Likewise.
41963         * tests/test-c-ctype.c (ASSERT): Likewise.
41964         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41965         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41966         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41967         * tests/test-c-strstr.c (ASSERT): Likewise.
41968         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41969         * tests/test-canonicalize.c (ASSERT): Likewise.
41970         * tests/test-carray_list.c (ASSERT): Likewise.
41971         * tests/test-ceilf1.c (ASSERT): Likewise.
41972         * tests/test-ceilf2.c (ASSERT): Likewise.
41973         * tests/test-ceill.c (ASSERT): Likewise.
41974         * tests/test-count-one-bits.c (ASSERT): Likewise.
41975         * tests/test-fbufmode.c (ASSERT): Likewise.
41976         * tests/test-fflush2.c (ASSERT): Likewise.
41977         * tests/test-floorf1.c (ASSERT): Likewise.
41978         * tests/test-floorf2.c (ASSERT): Likewise.
41979         * tests/test-floorl.c (ASSERT): Likewise.
41980         * tests/test-fopen.c (ASSERT): Likewise.
41981         * tests/test-fpending.c (ASSERT): Likewise.
41982         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41983         * tests/test-fpurge.c (ASSERT): Likewise.
41984         * tests/test-freadable.c (ASSERT): Likewise.
41985         * tests/test-freadahead.c (ASSERT): Likewise.
41986         * tests/test-freading.c (ASSERT): Likewise.
41987         * tests/test-freadptr.c (ASSERT): Likewise.
41988         * tests/test-freadptr2.c (ASSERT): Likewise.
41989         * tests/test-freadseek.c (ASSERT): Likewise.
41990         * tests/test-freopen.c (ASSERT): Likewise.
41991         * tests/test-frexp.c (ASSERT): Likewise.
41992         * tests/test-frexpl.c (ASSERT): Likewise.
41993         * tests/test-fseek.c (ASSERT): Likewise.
41994         * tests/test-fseeko.c (ASSERT): Likewise.
41995         * tests/test-fstrcmp.c (ASSERT): Likewise.
41996         * tests/test-ftell.c (ASSERT): Likewise.
41997         * tests/test-ftello.c (ASSERT): Likewise.
41998         * tests/test-func.c (ASSERT): Likewise.
41999         * tests/test-fwritable.c (ASSERT): Likewise.
42000         * tests/test-fwriting.c (ASSERT): Likewise.
42001         * tests/test-getdelim.c (ASSERT): Likewise.
42002         * tests/test-getline.c (ASSERT): Likewise.
42003         * tests/test-i-ring.c (ASSERT): Likewise.
42004         * tests/test-iconv-utf.c (ASSERT): Likewise.
42005         * tests/test-iconv.c (ASSERT): Likewise.
42006         * tests/test-isfinite.c (ASSERT): Likewise.
42007         * tests/test-isnand.c (ASSERT): Likewise.
42008         * tests/test-isnanf.c (ASSERT): Likewise.
42009         * tests/test-isnanl.h (ASSERT): Likewise.
42010         * tests/test-ldexpl.c (ASSERT): Likewise.
42011         * tests/test-linked_list.c (ASSERT): Likewise.
42012         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42013         * tests/test-localename.c (ASSERT): Likewise.
42014         * tests/test-lseek.c (ASSERT): Likewise.
42015         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42016         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42017         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42018         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42019         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42020         * tests/test-mbschr.c (ASSERT): Likewise.
42021         * tests/test-mbscspn.c (ASSERT): Likewise.
42022         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42023         * tests/test-mbspbrk.c (ASSERT): Likewise.
42024         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42025         * tests/test-mbsrchr.c (ASSERT): Likewise.
42026         * tests/test-mbsspn.c (ASSERT): Likewise.
42027         * tests/test-mbsstr1.c (ASSERT): Likewise.
42028         * tests/test-mbsstr2.c (ASSERT): Likewise.
42029         * tests/test-mbsstr3.c (ASSERT): Likewise.
42030         * tests/test-memchr2.c (ASSERT): Likewise.
42031         * tests/test-memmem.c (ASSERT): Likewise.
42032         * tests/test-open.c (ASSERT): Likewise.
42033         * tests/test-printf-frexp.c (ASSERT): Likewise.
42034         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42035         * tests/test-printf-posix.c (ASSERT): Likewise.
42036         * tests/test-quotearg.c (ASSERT): Likewise.
42037         * tests/test-rbtree_list.c (ASSERT): Likewise.
42038         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42039         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42040         * tests/test-round1.c (ASSERT): Likewise.
42041         * tests/test-roundf1.c (ASSERT): Likewise.
42042         * tests/test-roundl.c (ASSERT): Likewise.
42043         * tests/test-signbit.c (ASSERT): Likewise.
42044         * tests/test-sleep.c (ASSERT): Likewise.
42045         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42046         * tests/test-snprintf.c (ASSERT): Likewise.
42047         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42048         * tests/test-stat-time.c (ASSERT): Likewise.
42049         * tests/test-strcasestr.c (ASSERT): Likewise.
42050         * tests/test-strerror.c (ASSERT): Likewise.
42051         * tests/test-striconv.c (ASSERT): Likewise.
42052         * tests/test-striconveh.c (ASSERT): Likewise.
42053         * tests/test-striconveha.c (ASSERT): Likewise.
42054         * tests/test-strsignal.c (ASSERT): Likewise.
42055         * tests/test-strstr.c (ASSERT): Likewise.
42056         * tests/test-strtod.c (ASSERT): Likewise.
42057         * tests/test-trunc1.c (ASSERT): Likewise.
42058         * tests/test-trunc2.c (ASSERT): Likewise.
42059         * tests/test-truncf1.c (ASSERT): Likewise.
42060         * tests/test-truncf2.c (ASSERT): Likewise.
42061         * tests/test-truncl.c (ASSERT): Likewise.
42062         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42063         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42064         * tests/test-vasnprintf.c (ASSERT): Likewise.
42065         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42066         * tests/test-vasprintf.c (ASSERT): Likewise.
42067         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42068         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42069         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42070         * tests/test-vsnprintf.c (ASSERT): Likewise.
42071         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42072         * tests/test-wcwidth.c (ASSERT): Likewise.
42073         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42074         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42075         * tests/test-xvasprintf.c (ASSERT): Likewise.
42076         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42077         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42078         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42079         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42080         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42081         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42082         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42083         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42084         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42085         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42086         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42087         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42088         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42089         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42090         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42091         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42092         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42093         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42094         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42095         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42096         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42097         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42098         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42099         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42100         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42101         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42102         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42103         * tests/unictype/test-combining.c (ASSERT): Likewise.
42104         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42105         * tests/unictype/test-digit.c (ASSERT): Likewise.
42106         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42107         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42108         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42109         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42110         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42111         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42112         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42113         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42114         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42115         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42116         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42117         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42118         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42119         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42120         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42121         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42122         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42123         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42124         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42125         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42126         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42127         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42128         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42129         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42130         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42131         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42132         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42133         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42134         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42135         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42136         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42137         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42138         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42139         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42140         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42141         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42142         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42143         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42144         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42145         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42146         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42147         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42148         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42149         Reported by Eric Blake.
42150
42151 2008-04-11  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/wchar.in.h: Tweak comment.
42154
42155 2008-04-11  Bruno Haible  <bruno@clisp.org>
42156
42157         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42158         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42159         gl_COMMON.
42160         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42161
42162 2008-04-11  Bruno Haible  <bruno@clisp.org>
42163
42164         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42165
42166 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42167
42168         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42169         of attempting to use non-existing /dev/*random.  Based on patch
42170         from Adam Strzelecki <ono@java.pl> in
42171         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42172
42173 2008-04-08  Bruno Haible  <bruno@clisp.org>
42174
42175         Add tentative support for emx+gcc.
42176         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42177         * lib/fpurge.c (fpurge): Likewise.
42178         * lib/freadable.c (freadable): Likewise.
42179         * lib/freadahead.c (freadahead): Likewise.
42180         * lib/freading.c (freading): Likewise.
42181         * lib/freadptr.c (freadptr): Likewise.
42182         * lib/freadseek.c (freadptrinc): Likewise.
42183         * lib/fseeko.c (rpl_fseeko): Likewise.
42184         * lib/fseterr.c (fseterr): Likewise.
42185         * lib/fwritable.c (fwritable): Likewise.
42186         * lib/fwriting.c (fwriting): Likewise.
42187         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42188
42189 2008-04-09  Eric Blake  <ebb9@byu.net>
42190
42191         Avoid some autoconf warnings.
42192         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42193         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42194         * m4/afs.m4 (gl_AFS): Likewise.
42195         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42196         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42198         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42199         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42200         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42201         (AC_CHECK_DECLS_ONCE): Likewise.
42202         Rename file...
42203         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42204         gnulib-tool requires autoconf 2.59 or better.
42205         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42206
42207 2008-04-08  Eric Blake  <ebb9@byu.net>
42208
42209         Use 'git describe --match' if present (added in git 1.5.5).
42210         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42211         if possible.
42212
42213 2008-04-08  Bruno Haible  <bruno@clisp.org>
42214
42215         Add tentative support for OpenServer.
42216         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42217         _ptr, _cnt.
42218         * lib/fpurge.c (fpurge): Likewise.
42219         * lib/freadable.c (freadable): Likewise.
42220         * lib/freadahead.c (freadahead): Likewise.
42221         * lib/freading.c (freading): Likewise.
42222         * lib/freadptr.c (freadptr): Likewise.
42223         * lib/freadseek.c (freadptrinc): Likewise.
42224         * lib/fseeko.c (rpl_fseeko): Likewise.
42225         * lib/fseterr.c (fseterr): Likewise.
42226         * lib/fwritable.c (fwritable): Likewise.
42227         * lib/fwriting.c (fwriting): Likewise.
42228         Reported by Roger Cornelius <rac@tenzing.org> and
42229         Brian K. White <brian@aljex.com>.
42230
42231 2008-04-06  Jim Meyering  <meyering@redhat.com>
42232
42233         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42234
42235 2008-04-06  Bruno Haible  <bruno@clisp.org>
42236
42237         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42238         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42239         * tests/test-printf-posix.sh: Likewise.
42240         * tests/test-vfprintf-posix.sh: Likewise.
42241         * tests/test-vprintf-posix.sh: Likewise.
42242         * tests/test-xprintf-posix.sh: Likewise.
42243
42244 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42245
42246         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42247         hide error from 'ls', needed on OS/2.
42248         Report by Elbert Pol <elbert.pol@gmail.com>.
42249
42250 2008-04-04  Eric Blake  <ebb9@byu.net>
42251
42252         Make test-fseeko.c failures meaningful.
42253         * tests/test-fseeko.c: Print line number on failure.
42254         * tests/test-fseek.c: Likewise.
42255         Reported by Nelson H. F. Beebe.
42256
42257         Improve strtod bug detection check.
42258         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42259         required for Solaris 10.
42260         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42261
42262 2008-04-04  Bruno Haible  <bruno@clisp.org>
42263
42264         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42265         by m4/setenv.m4.
42266
42267 2008-04-03  Eric Blake  <ebb9@byu.net>
42268
42269         Ensure sane .version contents.
42270         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42271         version string.
42272         * build-aux/git-version-gen: Improve documentation.
42273
42274         Make GNU make output nicer.
42275         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42276         MAKECMDGOALS to enforce message for all command line targets.  Set
42277         srcdir for use in maint.mk.
42278
42279         Another maintainer tweak.
42280         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42281         a target that regenerates version.
42282
42283 2008-04-03  Jim Meyering  <meyering@redhat.com>
42284
42285         vc-list-files: don't cause coreutils "make po-check" failure
42286         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42287
42288 2008-04-03  Eric Blake  <ebb9@byu.net>
42289
42290         Allow VPATH usage of vc-list-files.
42291         * build-aux/vc-list-files (scriptversion): Add timestamp.
42292         (options): Add --help, --version, -C.
42293         (CVS): Support installed cvsu.
42294
42295 2008-04-02  Bruno Haible  <bruno@clisp.org>
42296
42297         Avoid some "statement with no effect" warnings from gcc.
42298         * tests/test-wctype.c (main): Explicitly ignore unused values.
42299         Reported by Jim Meyering.
42300
42301 2008-04-02  Jim Meyering  <meyering@redhat.com>
42302
42303         Avoid some warnings from "gcc -Wshadow".
42304         * tests/test-frexp.c (exp): Define to a different identifier.
42305         * tests/test-frexpl.c (exp): Likewise.
42306
42307 2008-04-03  Jim Meyering  <meyering@redhat.com>
42308
42309         bootstrap: remove dangling *.[ch] symlinks from lib
42310         * build-aux/bootstrap [dangling symlink removal]: Move find's
42311         -depth option to precede all others, to avoid a warning.
42312         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42313
42314 2008-04-02  Bruno Haible  <bruno@clisp.org>
42315
42316         Avoid some warnings from "gcc -Wshadow".
42317         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42318         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42319         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42320         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42321         Reported by Jim Meyering.
42322
42323 2008-04-01  Bruno Haible  <bruno@clisp.org>
42324
42325         Fix test to work on IRIX 6.5 with cc.
42326         * tests/test-math.c (numeric_equal): New function.
42327         (main): Use it.
42328
42329 2008-04-01  Bruno Haible  <bruno@clisp.org>
42330
42331         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42332
42333 2008-04-01  Bruno Haible  <bruno@clisp.org>
42334
42335         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42336         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42337         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42338         (Depends-on): Remove math.
42339
42340         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42341         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42342         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42343         (Depends-on): Remove math.
42344
42345         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42346         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42347         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42348         (Depends-on): Remove math.
42349         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42350         (Depends-on): Remove math.
42351
42352         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42354         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42355         (Depends-on): Remove math.
42356         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42357         (Depends-on): Remove math.
42358
42359         * tests/test-round1.c: Include nan.h.
42360         (main): Use NaNd instead of NAN.
42361         * modules/round-tests (Files): Add tests/nan.h.
42362
42363         * tests/test-trunc1.c: Include nan.h.
42364         (main): Use NaNd instead of NAN.
42365         * modules/trunc-tests (Files): Add tests/nan.h.
42366
42367         * tests/test-roundf1.c: Include nan.h.
42368         (main): Use NaNf instead of NAN.
42369         * modules/roundf-tests (Files): Add tests/nan.h.
42370
42371         * tests/test-truncf1.c: Include nan.h.
42372         (main): Use NaNf instead of NAN.
42373         * modules/truncf-tests (Files): Add tests/nan.h.
42374
42375         * tests/test-ceilf1.c: Include nan.h.
42376         (main): Use NaNf instead of NAN.
42377         * modules/ceilf-tests (Files): Add tests/nan.h.
42378
42379         * tests/test-floorf1.c: Include nan.h.
42380         (main): Use NaNf instead of NAN.
42381         * modules/floorf-tests (Files): Add tests/nan.h.
42382
42383         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42384         (main): Use NaNf instead of NAN.
42385         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42386
42387         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42388         (main): Use NaNd instead of NAN.
42389         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42390
42391         * tests/test-frexp.c: Include nan.h.
42392         (main): Use NaNd instead of NAN.
42393         * modules/frexp-tests (Files): Add tests/nan.h.
42394
42395         * lib/isnan.c: Don't include <math.h>.
42396         (FUNC): Don't use NAN macro.
42397         * modules/isnand-nolibm (Depends-on): Remove math.
42398         * modules/isnanf-nolibm (Depends-on): Remove math.
42399         * modules/isnanl (Depends-on): Remove math.
42400         * modules/isnanl-nolibm (Depends-on): Remove math.
42401
42402         * tests/nan.h: New file.
42403
42404 2008-04-01  Eric Blake  <ebb9@byu.net>
42405
42406         Fix typos.
42407         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42408         values to be the right type.
42409
42410         For now, cater to gnulib strtod inaccuracies.
42411         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42412         fractional results.  While not as nice from a QoI perspective, it
42413         is a quicker patch than correctly implementing decimal to binary
42414         rounding.
42415
42416 2008-03-31  Eric Blake  <ebb9@byu.net>
42417
42418         Guarantee a definition of NAN.
42419         * lib/math.in.h (NAN): Define if missing.
42420         * tests/test-math.c (main): Test it.
42421         * doc/posix-headers/math.texi (math.h): Document this.
42422         * lib/isnan.c (rpl_isnand): Use it.
42423         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42424         * tests/test-floorf1.c (NaN): Likewise.
42425         * tests/test-frexp.c (NaN): Likewise.
42426         * tests/test-isnand.c (NaN): Likewise.
42427         * tests/test-isnanf.c (NaN): Likewise.
42428         * tests/test-round1.c (NaN): Likewise.
42429         * tests/test-roundf1.c (NaN): Likewise.
42430         * tests/test-snprintf-posix.h (NaN): Likewise.
42431         * tests/test-sprintf-posix.h (NaN): Likewise.
42432         * tests/test-trunc1.c (NaN): Likewise.
42433         * tests/test-truncf1.c (NaN): Likewise.
42434         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42435         * tests/test-vasprintf-posix.c (NaN): Likewise.
42436         * modules/isnand-nolibm (Depends-on): Add math.
42437         * modules/isnanf-nolibm (Depends-on): Likewise.
42438         * modules/isnanl (Depends-on): Likewise.
42439         * modules/isnanl-nolibm (Depends-on): Likewise.
42440         * modules/snprintf-posix-tests (Depends-on): Likewise.
42441         * modules/sprintf-posix-tests (Depends-on): Likewise.
42442         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42443         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42444         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42445         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42446
42447 2008-03-31  Bruno Haible  <bruno@clisp.org>
42448
42449         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42450         * doc/posix-functions/strtod.texi: Likewise.
42451
42452 2008-03-31  Bruno Haible  <bruno@clisp.org>
42453
42454         * tests/test-strtod.c (main): Don't use C99 syntax.
42455
42456 2008-03-31  Bruno Haible  <bruno@clisp.org>
42457
42458         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42459         Reported by Eric Blake.
42460
42461 2008-03-31  Jim Meyering  <meyering@redhat.com>
42462
42463         Don't compare actual signbit return values.
42464         * tests/test-strtod.c (main): Rather, compare only their
42465         zero/non-zero nature.
42466
42467 2008-03-31  Eric Blake  <ebb9@byu.net>
42468
42469         More strtod documentation.
42470         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42471         failures as distinct bugs.
42472
42473 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42474
42475         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42476         Problem reported by Erik Benada in
42477         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42478
42479 2008-03-30  Bruno Haible  <bruno@clisp.org>
42480
42481         * tests/test-strtod.c: Add comments about which assertion fails on which
42482         platform.
42483         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42484
42485 2008-03-30  Eric Blake  <ebb9@byu.net>
42486
42487         Test signbit behavior on zeros.
42488         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42489         (test_signbitd, test_signbitl): Likewise.
42490
42491         More strtod touchups.
42492         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42493         sign of negative underflow, for now.  Use .5, not .1.
42494         * doc/posix-functions/strtod.texi (strtod): Mention these
42495         limitations.
42496         Reported by Jim Meyering.
42497
42498 2008-03-30  Bruno Haible  <bruno@clisp.org>
42499
42500         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42501         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42502
42503 2008-03-30  Bruno Haible  <bruno@clisp.org>
42504
42505         Avoid failure when attempting to return empty iconv results on some
42506         platforms.
42507         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42508         allocation, don't report ENOMEM when the resulting string is empty.
42509
42510 2008-03-30  Bruno Haible  <bruno@clisp.org>
42511
42512         Fix buffer overrun.
42513         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42514         Don't consider the width for tmp_length. Check count against tmp_length
42515         before doing the padding. Ensure enough allocation during padding.
42516
42517 2008-03-30  Eric Blake  <ebb9@byu.net>
42518
42519         strtod touchups.
42520         * lib/strtod.c (strtod): Avoid compiler warnings.
42521         Reported by Jim Meyering.
42522
42523 2008-03-30  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42526         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42527         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42528         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42529         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42530         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42531         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42532         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42533
42534         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42535         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42536         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42537         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42538         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42539         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42540         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42541         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42542
42543         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42544         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42545         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42546         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42547         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42548         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42549         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42550         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42551
42552         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42553         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42554
42555         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42556         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42557
42558         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42559         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42560
42561         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42563         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42564
42565         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42567         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42568
42569         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42571         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42572
42573         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42575         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42576
42577         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42578         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42580         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42581         (Depends-on): Add EOVERFLOW.
42582         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42583         (Depends-on): Add EOVERFLOW.
42584         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42585         (Depends-on): Add EOVERFLOW.
42586         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42587         (Depends-on): Add EOVERFLOW.
42588         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42589         (Depends-on): Add EOVERFLOW.
42590         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42591         (Depends-on): Add EOVERFLOW.
42592         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42593         (Depends-on): Add EOVERFLOW.
42594         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42595         (Depends-on): Add EOVERFLOW.
42596
42597         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42599         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42600
42601         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42603         * modules/snprintf (Depends-on): Add EOVERFLOW.
42604
42605         * lib/poll.c (EOVERFLOW): Remove fallback.
42606         * modules/poll (Depends-on): Add EOVERFLOW.
42607
42608         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42609         * modules/getugroups (Depends-on): Add EOVERFLOW.
42610
42611         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42612         * modules/getdelim (Depends-on): Add EOVERFLOW.
42613
42614         * lib/ftell.c (EOVERFLOW): Remove fallback.
42615         * modules/ftell (Depends-on): Add EOVERFLOW.
42616
42617         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42619         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42620
42621         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42622
42623         * modules/EOVERFLOW-tests: New file.
42624         * tests/test-EOVERFLOW.c: New file.
42625
42626         * modules/EOVERFLOW: New file.
42627         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42628
42629 2008-03-30  Bruno Haible  <bruno@clisp.org>
42630
42631         Fix bug introduced on 2007-06-10.
42632         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42633         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42634
42635 2008-03-30  Bruno Haible  <bruno@clisp.org>
42636
42637         Improve freadseek's efficiency after ungetc.
42638         * lib/freadseek.c: Include freadahead.h.
42639         (freadptrinc): New function, extracted from freadseek.
42640         (freadseek): Use it in a loop. Use freadahead to determine the number
42641         of loop iterations.
42642         * modules/freadseek (Depends-on): Add freadahead.
42643         (configure.ac): Require AC_C_INLINE.
42644
42645 2008-03-30  Bruno Haible  <bruno@clisp.org>
42646
42647         * lib/freadseek.c (freadseek): Don't ignore the return value of
42648         freadptr.
42649
42650 2008-03-29  Eric Blake  <ebb9@byu.net>
42651
42652         Add hex float support.
42653         * modules/strtod (Depends-on): Add c-ctype.
42654         (Link): Mention POW_LIB.
42655         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42656         whitespace between 'e' and exponent.
42657         * tests/test-strtod.c (main): Enable hex float tests.
42658         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42659         now provides.
42660
42661         Document various strtod bugs, with some fixes.
42662         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42663         "-0x", "inf", "nan", and hex constants.
42664         * doc/posix-functions/atof.texi (atof): Likewise.
42665         * modules/stdlib (Makefile.am): Support strtod.
42666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42667         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42668         detect additional strtod bugs.
42669         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42670         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42671         bool where appropriate.  Parse 'inf' and 'nan'.
42672         * tests/test-strtod.c: New file.
42673         * modules/strtod (Depends-on): Add stdbool, stdlib.
42674         (configure.ac): Turn on module indicator.
42675         * modules/strtod-tests: New module.
42676
42677 2008-03-29  Eric Blake  <ebb9@byu.net>
42678
42679         Fix ftell on mingw.
42680         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42681         * modules/ftell-tests (Depends-on): Add binary-io.
42682         * modules/ftello-tests (Depends-on): Likewise.
42683         * tests/test-ftell.c (main): Enhance test to cover behavior after
42684         ungetc.  Enforce binary mode.
42685         * tests/test-ftello.c (main): Likewise.
42686
42687         Pass test-freadseek on cygwin.
42688         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42689         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42690         ungetc buffer.
42691
42692         * tests/test-fflush2.c (main): Fix typo.
42693
42694 2008-03-29  Bruno Haible  <bruno@clisp.org>
42695
42696         * tests/test-fflush2.c (main): Temporarily disable the contents of
42697         this test.
42698         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42699         Reported by Eric Blake.
42700
42701 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42702
42703         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42704         (GC_SHA224_DIGEST_SIZE): Add.
42705
42706         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42707         (gc_hash_digest_length): Likewise.
42708         (gc_hash_buffer): Likewise.
42709
42710 2008-03-25  Bruno Haible  <bruno@clisp.org>
42711
42712         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42713         detail which gettext release to use.
42714         Reported by Simon Josefsson.
42715
42716 2008-03-26  Jim Meyering  <meyering@redhat.com>
42717
42718         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42719         * modules/gnumakefile (clean-GNUmakefile): Also, use
42720         test ... && ... || : syntax rather than if-then ... fi.
42721
42722         gnumakefile: Don't double-quote-expand $(VPATH) value.
42723         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42724
42725 2008-03-24  Eric Blake  <ebb9@byu.net>
42726
42727         Alter GNUmakefile to install into top directory.
42728         * modules/maintainer-makefile: Split, and add dependency...
42729         * modules/gnumakefile: to this new module.
42730         * build-aux/GNUmakefile: Move...
42731         * top/GNUmakefile: ...here.
42732         * build-aux/maint.mk: Move...
42733         * top/maint.mk: ...here.
42734         * MODULES.html.sh (Support for maintaining...): Document new
42735         module.
42736
42737 2008-03-23  Bruno Haible  <bruno@clisp.org>
42738
42739         * gnulib-tool: New options --vc-files, --no-vc-files.
42740         (func_usage): Document them.
42741         (vc_files): New variable.
42742         (func_import): Consider vc_files.
42743         (func_create_testdir): Set vc_files to empty.
42744         Suggested by Jim Meyering and Karl Berry.
42745
42746 2008-03-23  Bruno Haible  <bruno@clisp.org>
42747
42748         Fix regex compilation error on HP-UX 11.
42749         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42750         * modules/regex (Files): Add m4/mbstate_t.m4.
42751         Reported by Ton Voon <ton.voon@altinity.com>.
42752
42753 2008-03-23  Bruno Haible  <bruno@clisp.org>
42754
42755         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42756
42757 2008-03-23  Eric Blake  <ebb9@byu.net>
42758             Bruno Haible  <bruno@clisp.org>
42759
42760         Install files from top/ in the destination directory.
42761         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42762         augmentation also for the files from top/.
42763         (func_import, func_create_testdir): Rewrite file names:
42764         top/filename -> filename.
42765
42766 2008-03-23  Bruno Haible  <bruno@clisp.org>
42767
42768         Tweak "gnulib --version" output.
42769         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42770
42771 2008-03-23  Bruno Haible  <bruno@clisp.org>
42772
42773         Tweak "gnulib --version" output.
42774         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42775         rather than contents of ChangeLog, when possible.
42776
42777 2008-03-21  Eric Blake  <ebb9@byu.net>
42778
42779         More --version tweaks.
42780         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42781         date of last ChangeLog entry.
42782
42783 2008-03-21  Jim Meyering  <meyering@redhat.com>
42784
42785         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42786
42787 2008-03-20  Eric Blake  <ebb9@byu.net>
42788
42789         VPATH fix.
42790         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42791
42792 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42793
42794         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42795         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42796
42797 2008-03-20  Eric Blake  <ebb9@byu.net>
42798
42799         Sync GNUmakefile with coreutils.
42800         * build-aux/GNUmakefile (have-Makefile): Rename...
42801         (_have-Makefile): ...to this, for namespace consideration.
42802         (GNUmakefile.cfg): Include, if present.
42803         (_autoreconf): Define a default.
42804         (_is-dist-target): New rule for rebuilds to pick up intra-release
42805         version.
42806         (maint-cfg.mk): Rename...
42807         (cfg.mk): ...to this.
42808
42809 2008-03-18  Jim Meyering  <meyering@redhat.com>
42810
42811         New script and module: mktempd
42812         * MODULES.html.sh (maint+release support): Add mktempd.
42813         * build-aux/mktempd: New file.
42814         * modules/mktempd: New file.
42815
42816 2008-03-15  Jim Meyering  <meyering@redhat.com>
42817
42818         Undo last change.
42819         * lib/sha1.c, lib/md5.c: 63 != ~63.
42820         Reported by Andreas Schwab.
42821
42822         sha1.c, md5.c: Hoist a redundant expression.
42823         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42824         "ctx->buflen" only once, before calling *_process_block.
42825         * lib/md5.c (md5_process_bytes): Likewise.
42826
42827 2008-03-14  Eric Blake  <ebb9@byu.net>
42828
42829         Bump copyright year in files generated by gnulib-tool.
42830         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42831         gnulib-tool, rather than hard-coding it.
42832
42833         Fix 'gnulib-tool --version' output to work with git.
42834         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42835         (startup): ...here.
42836         (func_version): Use it to invoke git-version-gen, rather than
42837         relying on CVS keyword expansion.  Modernize wording.
42838         (cvsdatestamp, last_checkin_date, version): Kill unused
42839         variables.
42840
42841 2008-03-12  Jim Meyering  <meyering@redhat.com>
42842
42843         Recognize optional cast of the argument to free.
42844         * build-aux/useless-if-before-free: Update regexps.
42845
42846         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42847
42848 2008-03-11  Bruno Haible  <bruno@clisp.org>
42849
42850         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42851         by a single package.
42852         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42853         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42854         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42855         Reported by Sam Steingold <sds@gnu.org>.
42856
42857 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42858
42859         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42860         repositories.
42861
42862 2008-03-11  Bruno Haible  <bruno@clisp.org>
42863
42864         Avoid conflicts between local macro definitions.
42865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42866         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42867
42868 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42869             Bruno Haible  <bruno@clisp.org>
42870
42871         Make va_copy work with some version of xlc on AIX 5.1.
42872         * lib/stdarg.in.h: New file.
42873         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42874         On AIX, use a <stdarg.h> file substitute.
42875         * modules/stdarg (Files): Add lib/stdarg.in.h.
42876         (Depends-on): Add include_next.
42877         (Makefile.am): Build a stdarg.h substitute if requested.
42878         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42879
42880 2008-03-10  Bruno Haible  <bruno@clisp.org>
42881
42882         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42883         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42884         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42885
42886 2008-03-10  Bruno Haible  <bruno@clisp.org>
42887
42888         * modules/stdlib (Depends-on): Add include_next, remove
42889         absolute-header.
42890
42891 2008-03-09  Bruno Haible  <bruno@clisp.org>
42892
42893         * lib/freadahead.h (freadahead): Document more precisely.
42894         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42895         the sum of both buffer sizes.
42896         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42897         * NEWS: Document the change.
42898
42899 2008-03-09  Bruno Haible  <bruno@clisp.org>
42900
42901         Extend freadptr to return also the buffer size.
42902         * lib/freadptr.h (freadptr): Add sizep argument.
42903         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42904         (freadptr): Add sizep argument. Determine buffer size like freadahead
42905         does.
42906         * tests/test-freadptr.c: Don't include freadahead.h.
42907         (main): Adapt for new calling convention of freadptr.
42908         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42909         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42910         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42911         tests/test-freadptr2.sh.
42912         (Depends): Remove freadahead.
42913         (TESTS): Add test-freadptr2.sh.
42914         (check_PROGRAMS): Add test-freadptr2.
42915
42916 2008-03-09  Bruno Haible  <bruno@clisp.org>
42917
42918         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42919         Report and solution by Simon Josefsson.
42920
42921 2008-03-06  Bruno Haible  <bruno@clisp.org>
42922
42923         Make fflush after ungetc work on BSD platforms.
42924         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42925         * tests/test-fflush2.c: New file.
42926         * tests/test-fflush2.sh: New file.
42927         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42928         tests/test-fflush2.c.
42929         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42930         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42931
42932 2008-03-06  Eric Blake  <ebb9@byu.net>
42933
42934         Likewise for ftello.
42935         * modules/ftello (Dependencies): Add extensions.
42936         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42937
42938 2008-03-06  Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/fseeko (Dependencies): Add extensions.
42941         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42942         Needed on glibc systems.
42943
42944 2008-03-06  Bruno Haible  <bruno@clisp.org>
42945
42946         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42947         email address.
42948         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42949
42950 2008-03-06  Bruno Haible  <bruno@clisp.org>
42951
42952         * users.txt: Add libgnupdf.
42953
42954 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42955
42956         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42957         (Header File Substitutes, Function Substitutes,
42958         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42959         (Build robot for gnulib): Fix typo.
42960
42961 2008-03-06  Bruno Haible  <bruno@clisp.org>
42962
42963         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42964         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42965
42966 2008-03-06  Bruno Haible  <bruno@clisp.org>
42967
42968         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42969         * doc/gnulib.texi: Include it.
42970
42971 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42972
42973         * modules/func (License): Change license to unlimited; there was
42974         no LGPL parts in the module anyway.
42975
42976 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42977
42978         * modules/__func__: Renamed to modules/func.
42979         * modules/__func__-tests: Renamed to modules/func-tests.
42980         * tests/test-__func__.c: Renamed to tests/test-func.c.
42981         * m4/__func__.m4: Renamed to m4/func.m4.
42982         * doc/gnulib.texi (__func__): Section renamed to func.
42983         Suggested by Eric Blake <ebb9@byu.net>.
42984
42985 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42986
42987         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42988         about __func__.  Make example self-contained.  Suggested by Eric
42989         Blake <ebb9@byu.net>.
42990
42991         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42992         Suggested by Eric Blake <ebb9@byu.net>.
42993
42994 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42995
42996         * modules/__func__: New file.
42997         * modules/__func__-tests: New file.
42998         * tests/test-__func__.c: New file.
42999         * m4/__func__.m4: New file.
43000         * doc/gnulib.texi (__func__): Document __func__ module.
43001
43002 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43003
43004         * modules/byteswap (License): Re-license as LGPLv2+.
43005
43006 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43007
43008         * doc/Makefile: Add pdf target.
43009
43010 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43011
43012         * modules/inline (License): Use 'unlimited', since there are only
43013         *.m4 files in this module.
43014
43015 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43016             Bruno Haible  <bruno@clisp.org>
43017
43018         Add support for HP C 7.1 on OpenVMS 8.3.
43019         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43020
43021 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43022
43023         Update VMS specifics.
43024         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43025
43026 2008-03-02  Jim Meyering  <meyering@redhat.com>
43027
43028         Remove the last dependency on the "free" module.
43029         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43030         Reported by Bob Proulx.
43031
43032         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43033
43034         Remove useless "if" tests before free.  Deprecate "free" module.
43035         * doc/posix-functions/free.texi: Mention that this
43036         module is no longer useful.
43037         * modules/free (Notice): Say this module is obsolete.
43038         * modules/readutmp (Depends-on): Remove free.
43039         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43040         * lib/putenv.c (putenv): Likewise.
43041         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43042         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43043         * tests/test-c-strcasestr.c (main): Likewise.
43044         * tests/test-c-strstr.c (main): Likewise.
43045         * tests/test-mbscasestr1.c (main): Likewise.
43046         * tests/test-mbscasestr2.c (main): Likewise.
43047         * tests/test-mbsstr1.c (main): Likewise.
43048         * tests/test-mbsstr2.c (main): Likewise.
43049         * tests/test-memmem.c (main): Likewise.
43050         * tests/test-strcasestr.c (main): Likewise.
43051         * tests/test-striconv.c (main): Likewise.
43052         * tests/test-striconveh.c (main): Likewise.
43053         * tests/test-striconveha.c (main): Likewise.
43054         * tests/test-strstr.c (main): Likewise.
43055
43056         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43057
43058         bootstrap: sync from coreutils again
43059         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43060
43061 2008-03-01  Jim Meyering  <meyering@redhat.com>
43062
43063         bootstrap: sync from coreutils
43064         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43065         also when the target doesn't exist.
43066
43067 2008-03-01  Eric Blake  <ebb9@byu.net>
43068
43069         Fix bugs in last patch.
43070         * lib/memchr2.c (memchr2): Fix typo.
43071         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43072         extension.
43073         Reported by Bruce Korb.
43074
43075         New module 'memchr2'.
43076         * modules/memchr2: New file.
43077         * modules/memchr2-tests: Likewise.
43078         * lib/memchr2.h: Likewise.
43079         * lib/memchr2.c: Likewise, based on memchr.c.
43080         * tests/test-memchr2.c: New test.
43081         * MODULES.html.sh (String handling): Add memchr2.
43082
43083 2008-02-29  Bruno Haible  <bruno@clisp.org>
43084
43085         * modules/freadseek-tests: New file.
43086         * tests/test-freadseek.sh: New file.
43087         * tests/test-freadseek.c: New file.
43088
43089         New module 'freadseek'.
43090         * modules/freadseek: New file.
43091         * lib/freadseek.h: New file.
43092         * lib/freadseek.c: New file.
43093         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43094
43095 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43096
43097         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43098         wydawca.
43099
43100         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43101         program_invocation_name and program_invocation_short_name are
43102         present.
43103
43104 2008-02-28  Bruno Haible  <bruno@clisp.org>
43105
43106         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43107         * tests/test-freadptr.sh: Also test non-seekable stdin.
43108
43109 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43110
43111         * build-aux/bootstrap (source_base, m4_base)
43112         (doc_base, tests_base): New variables.
43113         (gnulib_tool_options): Do not hardcode base directories, use
43114         the above variables instead.
43115
43116 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43117
43118         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43119
43120 2008-02-28  Bruno Haible  <bruno@clisp.org>
43121
43122         * modules/freadptr-tests: New file.
43123         * tests/test-freadptr.sh: New file.
43124         * tests/test-freadptr.c: New file.
43125
43126         New module 'freadptr'.
43127         * modules/freadptr: New file.
43128         * lib/freadptr.h: New file.
43129         * lib/freadptr.c: New file.
43130         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43131
43132 2008-02-26  Karl Berry  <karl@freefriends.org>
43133
43134         Sync from Libtool:
43135         * libltdl/argz.c (argz_add, argz_count): New functions.
43136         * libltdl/argz.in.h: Declare them.
43137         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43138
43139 2008-02-22  Bruno Haible  <bruno@clisp.org>
43140
43141         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43142         is a pointer type.  Needed for HP-UX 10.
43143         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43144         * doc/posix-functions/gmtime_r.texi: Likewise.
43145         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43146
43147 2008-02-24  Bruno Haible  <bruno@clisp.org>
43148
43149         * modules/environ-tests: New file.
43150         * tests/test-environ.c: New file.
43151
43152         New module 'environ'.
43153         * modules/environ: New file.
43154         * lib/unistd.in.h (environ): New declaration.
43155         * m4/environ.m4: New file.
43156         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43157         after use.
43158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43159         HAVE_DECL_ENVIRON.
43160         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43161         HAVE_DECL_ENVIRON.
43162         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43163         wrong claim that 'environ' is missing on some systems.
43164         * modules/execute (Depends-on): Add environ.
43165         * lib/execute.c (environ): Remove fallback declaration.
43166         * modules/pipe (Depends-on): Add environ.
43167         * lib/pipe.c (environ): Remove fallback declaration.
43168         * modules/setenv (Depends-on): Add environ.
43169         * lib/setenv.c (environ): Remove fallback declaration.
43170         * modules/unsetenv (Depends-on): Add environ.
43171         * lib/unsetenv.c (environ): Remove fallback declaration.
43172         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43173         m4/environ.m4.
43174         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43175         (gl_PREREQ_UNSETENV): Likewise.
43176
43177 2008-02-24  Bruno Haible  <bruno@clisp.org>
43178
43179         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43180
43181 2008-02-20  Bob Proulx  <bob@proulx.com>
43182
43183         Enable use of older two part flavor 'git describe'.
43184         * build-aux/git-version-gen: If using the older two part flavor of
43185         git version then recreate the third part now present in the
43186         newer three part flavor of git describe.
43187
43188 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43189
43190         * lib/fts.c (fts_build): Typo correction to comment.
43191
43192 2008-02-17  Bruno Haible  <bruno@clisp.org>
43193
43194         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43195         generating no-op conflicts.
43196
43197 2008-02-17  Bruno Haible  <bruno@clisp.org>
43198
43199         Speed up by 10%.
43200         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43201         result_entries, rather than an index-based loop.
43202
43203 2008-02-17  Bruno Haible  <bruno@clisp.org>
43204
43205         Speed up by 25%.
43206         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43207         'hashcode_cached'.
43208         (entry_create): New function.
43209         (entry_hashcode): Use the cached hashcode if possible.
43210         (read_changelog_file, try_split_merged_entry): Use entry_create.
43211
43212 2008-02-17  Bruno Haible  <bruno@clisp.org>
43213
43214         Speed up from O(n^2) to O(n) for long ChangeLog files.
43215         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43216         (read_changelog_file): Change implementation of entries_reversed list
43217         to rbtreehash.
43218         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43219
43220 2008-02-17  Bruno Haible  <bruno@clisp.org>
43221
43222         New option --split-merged-entry.
43223         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43224         (find_paragraph_end, try_split_merged_entry): New functions.
43225         (long_options): Add option --split-merged-entry.
43226         (usage): Document option --split-merged-entry.
43227         (main): Implement option --split-merged-entry.
43228         Reported by Eric Blake.
43229
43230 2008-02-17  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/git-merge-changelog.c: Include c-strstr.h.
43233         (main): Support the "git pull --rebase" situation.
43234         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43235         Reported by Eric Blake.
43236
43237 2008-02-16  Eric Blake  <ebb9@byu.net>
43238
43239         Avoid doubling \ in common case of "c-maybe" quoting style.
43240         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43241         eliding outer quotes.
43242         * lib/quotearg.h: Document this.
43243         * tests/test-quotearg.c (result_strings, inputs, results_g)
43244         (flag_results, locale_results): Test it by adding a new string to
43245         each test group.
43246         (compare_strings): Test new string.
43247
43248 2008-02-13  Eric Blake  <ebb9@byu.net>
43249
43250         Avoid trigraph quoting in default output.
43251         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43252         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43253         unless explicitly requested.
43254         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43255
43256 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43257
43258         Don't rely on signed integer overflowing to negative value.
43259         * lib/getugroups.c (getugroups): Include <limits.h>.
43260         Instead, compare against INT_MAX, and increment only if the test passes.
43261
43262 2008-02-13  Jim Meyering  <meyering@redhat.com>
43263         and Eric Blake  <ebb9@byu.net>
43264
43265         Avoid shadowing warning and compile errors on Linux.
43266         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43267         forwarding macros on Linux.
43268         (dcgettext): Define a stub, for Linux.
43269         (results_g, main): Avoid warnings.
43270
43271 2008-02-12  Eric Blake  <ebb9@byu.net>
43272
43273         Silence warning in last patch.
43274         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43275
43276         Quotearg part 4: add tests, fix c-maybe colon quoting.
43277         * lib/quotearg.h: Improve documentation.
43278         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43279         escapes when adding outer quotes.  When quoting trigraphs, use
43280         valid C notation.  When quoting NUL, omit extra characters if next
43281         character is not digit.  Alter prototype.
43282         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43283         callers.
43284         * modules/quotearg-tests: New module.
43285         * tests/test-quotearg.c: New test.
43286
43287 2008-02-07  Eric Blake  <ebb9@byu.net>
43288
43289         Quotearg part 3: add flag to control outer quote elision.
43290         * lib/quotearg.h (c_maybe_quoting_style): New style.
43291         (enum quoting_flags): Better documentation of flags.
43292         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43293         c-maybe style.
43294         (quotearg_buffer_restyled): Handle new flag to elide outer
43295         quotes.
43296
43297         Quotearg part 2: add flag that can control NUL elision.
43298         * lib/quotearg.h (set_quoting_flags): New prototype.
43299         * lib/quotearg.c (struct quoting_options): Add flag field.
43300         (set_quoting_flags): New function.
43301         (quotearg_buffer_restyled): Add flags parameter.
43302         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43303         (quotearg_n_options): Set the flag, since length cannot be
43304         returned.
43305         (quoting_options_from_style): Default flags correctly.
43306
43307         Quotearg part 1: more wrappers, restore quotearg_char state.
43308         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43309         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43310         (quotearg_colon_mem): New wrappers.
43311         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43312         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43313         functions.
43314         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43315         (quotearg_colon_mem): New functions.
43316
43317 2008-02-11  Bruno Haible  <bruno@clisp.org>
43318
43319         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43320         library in the current directory: it does not work with parallel make.
43321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43322
43323 2008-02-11  Bruno Haible  <bruno@clisp.org>
43324
43325         * .gitattributes: New file.
43326
43327 2008-02-11  Jim Meyering  <meyering@redhat.com>
43328
43329         useless-if-before-free: Fix reversed exit values.
43330         * build-aux/useless-if-before-free: Use correct values
43331         for EXIT_MATCH and EXIT_NO_MATCH.
43332
43333         * build-aux/useless-if-before-free: Close stdout carefully.
43334
43335 2008-02-10  Bruno Haible  <bruno@clisp.org>
43336
43337         New module 'git-merge-changelog'.
43338         * modules/git-merge-changelog: New file.
43339         * lib/git-merge-changelog.c: New file.
43340
43341 2008-02-10  Jim Meyering  <meyering@redhat.com>
43342
43343         useless-if-before-free: New option: --list (-l).
43344
43345         useless-if-before-free: Don't exit immediately upon open failure.
43346         * build-aux/useless-if-before-free: Exit 2 for errors.
43347         Upon failure to open a file, don't exit immediately.
43348         Rather, just warn and continue with any remaining files.
43349
43350 2008-02-10  Bruno Haible  <bruno@clisp.org>
43351
43352         New abstract list operation 'node_set_value'.
43353         * lib/gl_list.h (gl_list_node_set_value): New function.
43354         (struct gl_list_implementation): New field node_set_value.
43355         * lib/gl_list.c (gl_list_node_set_value): New function.
43356         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43357         (gl_array_list_implementation): Update.
43358         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43359         (gl_carray_list_implementation): Update.
43360         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43361         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43362         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43363         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43364         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43365         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43366         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43367         Update.
43368         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43369         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43370         (gl_sublist_list_implementation): Update.
43371
43372 2008-02-10  Bruno Haible  <bruno@clisp.org>
43373
43374         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43375         Needed when ELEMENT is #defined to 'some_type *'.
43376
43377 2008-02-10  Jim Meyering  <meyering@redhat.com>
43378
43379         New script and module: useless-if-before-free
43380         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43381         * build-aux/useless-if-before-free: New file.
43382         * modules/useless-if-before-free: New file.
43383
43384         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43385
43386         xstrtol_error: Fix typo.
43387         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43388         s/exit_failure/exit_status/.
43389
43390 2008-02-09  Jim Meyering  <meyering@redhat.com>
43391
43392         New script and module: gitlog-to-changelog
43393         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43394         * modules/gitlog-to-changelog: New file.
43395         * build-aux/gitlog-to-changelog: New file.
43396
43397 2008-02-08  Jim Meyering  <meyering@redhat.com>
43398
43399         Avoid two "parameter unused" warnings.
43400         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43401         Mark "st" as used.
43402
43403         Use "git COMMAND", not "git-COMMAND".
43404         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43405         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43406         * build-aux/git-version-gen: Use "git status", not "git-status".
43407
43408 2008-02-07  Bruno Haible  <bruno@clisp.org>
43409
43410         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43411         Avoids a crash on Windows Vista.
43412         Reported by Adam Strzelecki <ono@java.pl> via
43413         Simon Josefsson <simon@josefsson.org>.
43414
43415 2008-02-06  Bruno Haible  <bruno@clisp.org>
43416
43417         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43418         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43419         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43421         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43423         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43424         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43432         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43433         left-adjust flag.
43434         * tests/test-snprintf-posix.h (test_function): Likewise.
43435         * tests/test-sprintf-posix.h (test_function): Likewise.
43436         * tests/test-vasprintf-posix.c (test_function): Likewise.
43437         * doc/posix-functions/fprintf.texi: Update.
43438         * doc/posix-functions/printf.texi: Update.
43439         * doc/posix-functions/snprintf.texi: Update.
43440         * doc/posix-functions/sprintf.texi: Update.
43441         * doc/posix-functions/vfprintf.texi: Update.
43442         * doc/posix-functions/vprintf.texi: Update.
43443         * doc/posix-functions/vsnprintf.texi: Update.
43444         * doc/posix-functions/vsprintf.texi: Update.
43445         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43446
43447 2008-02-06  Bruno Haible  <bruno@clisp.org>
43448
43449         Fix bug introduced on 2008-01-26.
43450         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43451
43452 2008-02-06  Bruno Haible  <bruno@clisp.org>
43453
43454         Fix bug introduced on 2007-06-10.
43455         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43456         !NEED_PRINTF_FLAG_ZERO.
43457
43458 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43459
43460         getloadavg: use libperfstat on AIX5
43461         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43462
43463 2008-02-03  Bruno Haible  <bruno@clisp.org>
43464
43465         * lib/diffseq.h: Add comments about required #includes.
43466         Reported by Michael Biggs <gnulib@doubleplum.net>.
43467
43468 2008-02-01  Bruno Haible  <bruno@clisp.org>
43469
43470         * users.txt: Add gnuit.
43471
43472 2008-01-31  Bruno Haible  <bruno@clisp.org>
43473
43474         * lib/md4.c (set_uint32): Mark as inline.
43475         * lib/md5.c (set_uint32): Likewise.
43476         * lib/sha1.c (set_uint32): Likewise.
43477         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43478         * m4/md5.m4 (gl_MD5): Likewise.
43479         * m4/sha1.m4 (gl_SHA1): Likewise.
43480
43481 2008-01-31  Jim Meyering  <meyering@redhat.com>
43482
43483         Use "sizeof VAR", rather than a literal "4".
43484         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43485         * lib/md4.c (md4_read_ctx): Likewise.
43486         * lib/sha1.c (sha1_read_ctx): Likewise.
43487
43488 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43489
43490         * tests/test-sha1.c: New file, based on test-md5.c.
43491
43492         * modules/crypto/sha1-tests: New file.
43493
43494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43495
43496         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43497
43498 2008-01-31  Jim Meyering  <meyering@redhat.com>
43499
43500         Prefer "sizeof v" over the equivalent "4".
43501         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43502         * lib/md5.c (set_uint32): Likewise.
43503         * lib/sha1.c (set_uint32): Likewise.
43504
43505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43506
43507         * lib/sha1.c (set_uint32): Mark function as static.
43508
43509 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43510
43511         md2: clarify comments to say that alignment is not required.
43512         * lib/md2.h: Remove warning about alignment in comment.
43513         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43514         never been required.
43515
43516 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43517
43518         md4: adapt alignment constraint fix from sha1.
43519         * lib/md4.c (set_uint32): New function, from sha1.c
43520         (md4_read_ctx): Use it.
43521         (md4_finish_ctx): Doc fix.
43522         * lib/md4.h: Doc fix.
43523
43524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43525
43526         md5: adapt alignment constraint fix from sha1.
43527         * lib/md5.c (set_uint32): New function, from sha1.c
43528         (md5_read_ctx): Use it.
43529         (md5_finish_ctx): Doc fix.
43530         * lib/md5.h: Doc fix.
43531
43532 2008-01-30  Peter Palfrader  <weasel@debian.org>
43533
43534         sha1: remove the result buffer alignment constraint
43535         * lib/sha1.c (set_uint32): New function.
43536         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43537         constraint.
43538         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43539         * lib/sha1.h: Likewise.
43540
43541 2008-01-30  Andreas Schwab  <schwab@suse.de>
43542             Bruno Haible  <bruno@clisp.org>
43543
43544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43545         correct definition of LDBL_MIN_EXP.
43546
43547 2008-01-30  Karl Berry  <karl@gnu.org>
43548
43549         * config/srclist-update: try to preserve x bit on updates.
43550         * config/srclistvars.sh: update for karl.
43551
43552 2008-01-29  Jim Meyering  <meyering@redhat.com>
43553
43554         vasnprintf.c: Avoid warning about unused label
43555         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43556         "overflow" label definition and associated code with the
43557         same cpp condition that guards the sole use of that label.
43558
43559 2008-01-26  Bruno Haible  <bruno@clisp.org>
43560
43561         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43562         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43563         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43564         * lib/isnanl-nolibm.h (isnanl): Likewise.
43565         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43566
43567 2008-01-26  Bruno Haible  <bruno@clisp.org>
43568
43569         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43570         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43571
43572 2008-01-26  Bruno Haible  <bruno@clisp.org>
43573
43574         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43575         GCC >= 4.0 built-in.
43576         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43577
43578 2008-01-26  Bruno Haible  <bruno@clisp.org>
43579
43580         Rename isnan, applicable to 'double' only, to isnand.
43581         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43582         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43583         (configure.ac): Update.
43584         (Include): Replace "isnan.h" with "isnand.h".
43585         * m4/isnand.m4: Renamed from m4/isnan.m4.
43586         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43587         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43588         instead of isnan.c.
43589         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43590         instead of HAVE_ISNAN_IN_LIBC.
43591         (isnand): Renamed from isnan.
43592         * lib/isnand.c: New file.
43593         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43594         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43595         (Makefile.am): Update.
43596         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43597         Include isnand.h instead of isnan.h.
43598         (main): Test isnand instead of isnan.
43599         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43600         isnan-nolibm.
43601         * modules/frexp (Depends-on): Likewise.
43602         * modules/frexp-tests (Depends-on): Likewise.
43603         * modules/frexp-nolibm (Depends-on): Likewise.
43604         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43605         * modules/isfinite (Depends-on): Likewise.
43606         * modules/round-tests (Depends-on): Likewise.
43607         * modules/signbit (Depends-on): Likewise.
43608         * modules/signbit-tests (Depends-on): Likewise.
43609         * modules/snprintf-posix (Depends-on): Likewise.
43610         * modules/sprintf-posix (Depends-on): Likewise.
43611         * modules/trunc-tests (Depends-on): Likewise.
43612         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43613         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43614         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43615         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43616         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43617         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43618         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43619         * modules/vasnprintf-posix (Depends-on): Likewise.
43620         * modules/vasprintf-posix (Depends-on): Likewise.
43621         * modules/vfprintf-posix (Depends-on): Likewise.
43622         * modules/vsnprintf-posix (Depends-on): Likewise.
43623         * modules/vsprintf-posix (Depends-on): Likewise.
43624         * lib/frexp.c: Include isnand.h instead of isnan.h.
43625         (ISNAN): Set to isnand instead of isnan.
43626         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43627         (gl_isfinited): Use isnand instead of isnan.
43628         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43629         (gl_signbitd): Use isnand instead of isnan.
43630         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43631         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43632         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43633         (main): Use isnand instead of isnan.
43634         * tests/test-round1.c: Include isnand.h.
43635         (main): Use isnand instead of isnan.
43636         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43637         (ISNAN): Set to isnand instead of isnan.
43638         * tests/test-trunc1.c: Include isnand.h.
43639         (main): Use isnand instead of isnan.
43640         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43641         (equal): Use isnand instead of isnan.
43642         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43643         isnand-nolibm.
43644         * NEWS: Mention the change.
43645
43646 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43647             Bruno Haible  <bruno@clisp.org>
43648
43649         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43650         the GCC builtins for signbits are present and set
43651         REPLACE_SIGNBIT_USING_GCC if so.
43652         * lib/math.in.h (signbit): Define using GCC builtins if
43653         REPLACE_SIGNBIT_USING_GCC is set.
43654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43655         REPLACE_SIGNBIT_USING_GCC.
43656         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43657
43658 2008-01-25  Jim Meyering  <meyering@redhat.com>
43659
43660         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43661         * lib/poll.c: Include <config.h>, not "config.h".
43662         * tests/test-getaddrinfo.c: Likewise.
43663
43664 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43665
43666         * modules/sockets-tests: New file.
43667
43668 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43669
43670         * modules/sockets: New module, can be used to call WSA_Startup and
43671         WSA_Cleanup when needed.
43672
43673         * lib/sockets.h, lib/sockets.c: New files.
43674
43675         * m4/sockets.m4: New file.
43676
43677         * tests/test-sockets.c: New file.
43678
43679 2008-01-19  Bruno Haible  <bruno@clisp.org>
43680
43681         * doc/posix-headers: Renamed from doc/headers.
43682         * doc/posix-functions: Renamed from doc/functions.
43683         * doc/gnulib.texi: Update.
43684
43685 2008-01-19  Bruno Haible  <bruno@clisp.org>
43686
43687         * doc/glibc-functions/strcasestr.texi: Include contents of
43688         doc/functions/strcasestr.texi, fixing the list of platforms.
43689         * doc/functions/strcasestr.texi: Remove file.
43690
43691 2008-01-19  Bruno Haible  <bruno@clisp.org>
43692
43693         * doc/glibc-functions/memmem.texi: Include contents of
43694         doc/functions/memmem.texi.
43695         * doc/functions/memmem.texi: Remove file.
43696
43697 2008-01-18  Bruno Haible  <bruno@clisp.org>
43698
43699         * doc/glibc-functions/*.texi: New files.
43700         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43701         to use the new files.
43702
43703 2008-01-17  Bruno Haible  <bruno@clisp.org>
43704
43705         * tests/test-gethostname.c (main): Fix printf statement.
43706
43707 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43708
43709         * modules/gethostname-tests: New file.
43710
43711         * tests/test-gethostname.c: New file.
43712
43713 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43714
43715         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43716         used by the UNAME case.  Reported by Bruno Haible
43717         <bruno@clisp.org>.
43718
43719 2008-01-17  Eric Blake  <ebb9@byu.net>
43720
43721         Convert c-strcasestr to be more efficient.
43722         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43723         (Depends-on): Add c-strcase, remove malloca, strnlen.
43724         * tests/test-c-strcasestr.c (main): Enhance test.
43725         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43726
43727 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43728
43729         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43730         Use it in creating po/Makevars.
43731
43732 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43733
43734         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43735         Applications that requires it should initialize libgcrypt
43736         manually.
43737
43738 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43739
43740         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43741
43742 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43743
43744         Fix problem with getdate on mingw32 reported by Simon Josefsson
43745         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43746         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43747         tzname", when deciding whether to declare tzname.
43748         * lib/strftime.c (tzname): Likewise.
43749
43750 2008-01-15  Bruno Haible  <bruno@clisp.org>
43751
43752         Work around a MacOS X 10.5 bug in frexpl().
43753         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43754         * doc/functions/frexpl.texi: Document the bug.
43755         Reported by Elias Pipping <pipping@gentoo.org>.
43756
43757 2008-01-14  Eric Blake  <ebb9@byu.net>
43758
43759         Touch up previous patch.
43760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43761         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43762
43763         Convert strcasestr module to use Two-Way algorithm.
43764         * modules/strcasestr-simple: New module, based on the old
43765         strcasestr, but with Two-Way rather than KMP.
43766         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43767         * lib/string.in.h (rpl_strcasestr): Declare.
43768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43769         performance.
43770         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43771         * modules/string (Makefile.am): Support strcasestr.
43772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43773         * modules/strcasestr-tests (Depends-on): Check for alarm.
43774         * tests/test-strcasestr.c: Augment test.
43775         * lib/str-two-way.h: Clean up stray macro.
43776         * NEWS: Document new module.
43777         * MODULES.html.sh (string handling): Likewise.
43778         * doc/functions/strcasestr.texi: New file.
43779         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43780         here, since it is not a POSIX function.
43781
43782 2008-01-14  Colin Watson  <cjwatson@debian.org>
43783             Bruno Haible  <bruno@clisp.org>
43784
43785         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43786         works fine; if not, set REPLACE_STRSIGNAL.
43787         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43789         REPLACE_STRSIGNAL.
43790         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43791         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43792         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43793
43794 2008-01-14  Bruno Haible  <bruno@clisp.org>
43795
43796         * modules/strsignal (Include): Change to <string.h>.
43797
43798 2008-01-14  Colin Watson  <cjwatson@debian.org>
43799
43800         * modules/argp (Notice): Add a notice recommending to change
43801         XGETTEXT_OPTIONS.
43802         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43803
43804 2008-01-13  Colin Watson  <cjwatson@debian.org>
43805
43806         * modules/strsignal-tests: New file.
43807         * tests/test-strsignal.c: New file.
43808
43809         * lib/strsignal.c: New file, from glibc with modifications.
43810         * lib/siglist.h: New file, from glibc with modifications.
43811         * lib/string.in.h (strsignal): New declaration.
43812         * m4/strsignal.m4: New file.
43813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43814         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43815         * modules/strsignal: New file.
43816         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43817         HAVE_DECL_STRSIGNAL.
43818
43819 2008-01-13  Bruno Haible  <bruno@clisp.org>
43820
43821         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43822         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43823         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43824         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43825
43826 2008-01-13  Bruno Haible  <bruno@clisp.org>
43827
43828         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43829         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43830         * lib/argp.h (__attribute__): Likewise.
43831         * lib/c-stack.c (__attribute__): Likewise.
43832         * lib/error.h (__attribute__): Likewise.
43833         * lib/fts.c (__attribute__): Likewise.
43834         * lib/openat.h (__attribute__): Likewise.
43835         * lib/stdio.in.h (__attribute__): Likewise.
43836         * lib/string.in.h (__attribute__): Likewise.
43837         * lib/utimens.c (__attribute__): Likewise.
43838         * lib/vasnprintf.h (__attribute__): Likewise.
43839         * lib/xalloc.h (__attribute__): Likewise.
43840         * lib/xprintf.h (__attribute__): Likewise.
43841         * lib/xstrtol.h (__attribute__): Likewise.
43842         * lib/xvasprintf.h (__attribute__): Likewise.
43843
43844 2008-01-12  Bruno Haible  <bruno@clisp.org>
43845
43846         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43847         * doc/glibc-headers/a.out.texi: New file.
43848         * doc/glibc-headers/aliases.texi: New file.
43849         * doc/glibc-headers/alloca.texi: New file.
43850         * doc/glibc-headers/ar.texi: New file.
43851         * doc/glibc-headers/argp.texi: New file.
43852         * doc/glibc-headers/argz.texi: New file.
43853         * doc/glibc-headers/byteswap.texi: New file.
43854         * doc/glibc-headers/crypt.texi: New file.
43855         * doc/glibc-headers/endian.texi: New file.
43856         * doc/glibc-headers/envz.texi: New file.
43857         * doc/glibc-headers/err.texi: New file.
43858         * doc/glibc-headers/error.texi: New file.
43859         * doc/glibc-headers/execinfo.texi: New file.
43860         * doc/glibc-headers/fpu_control.texi: New file.
43861         * doc/glibc-headers/fstab.texi: New file.
43862         * doc/glibc-headers/fts.texi: New file.
43863         * doc/glibc-headers/getopt.texi: New file.
43864         * doc/glibc-headers/ieee754.texi: New file.
43865         * doc/glibc-headers/ifaddrs.texi: New file.
43866         * doc/glibc-headers/libintl.texi: New file.
43867         * doc/glibc-headers/mcheck.texi: New file.
43868         * doc/glibc-headers/mntent.texi: New file.
43869         * doc/glibc-headers/obstack.texi: New file.
43870         * doc/glibc-headers/paths.texi: New file.
43871         * doc/glibc-headers/printf.texi: New file.
43872         * doc/glibc-headers/pty.texi: New file.
43873         * doc/glibc-headers/resolv.texi: New file.
43874         * doc/glibc-headers/shadow.texi: New file.
43875         * doc/glibc-headers/sysexits.texi: New file.
43876         * doc/glibc-headers/ttyent.texi: New file.
43877
43878 2008-01-12  Jim Meyering  <meyering@redhat.com>
43879
43880         announce-gen: emit Gnulib's git-based version string.
43881         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43882         New option --gnulib-version=V, where V is expected to be
43883         the output of running git describe in the gnulib directory.
43884         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43885         not useful, and plan to stop publishing an xdelta file with each
43886         coreutils release.
43887
43888         * build-aux/announce-gen: Also check for lzma-compressed files.
43889
43890 2008-01-11  Bruno Haible  <bruno@clisp.org>
43891
43892         * tests/test-memmem.c (main): Increase maximum allowed time.
43893         * tests/test-strstr.c (main): Likewise.
43894
43895 2008-01-11  Bruno Haible  <bruno@clisp.org>
43896
43897         * doc/functions/memmem.texi: Add more precisions about platforms.
43898         * doc/functions/strstr.texi: Likewise.
43899
43900 2008-01-10  Eric Blake  <ebb9@byu.net>
43901
43902         * m4/strstr.m4: Delete cruft from copy-n-paste.
43903         Reported by Bruno Haible.
43904
43905 2008-01-10  Bruno Haible  <bruno@clisp.org>
43906
43907         Make c-strstr rely on strstr.
43908         * lib/c-strstr.c: Don't include str-kmp.h.
43909         (c_strstr): Define in terms of strstr.
43910         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43911         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43912
43913 2008-01-10  Bruno Haible  <bruno@clisp.org>
43914
43915         * doc/gnulib.texi (String Functions in C Locale): New section.
43916         * doc/c-ctype.texi: New file.
43917         * doc/c-strcase.texi: New file.
43918         * doc/c-strcaseeq.texi: New file.
43919         * doc/c-strcasestr.texi: New file.
43920         * doc/c-strstr.texi: New file.
43921         * doc/c-strtod.texi: New file.
43922         * doc/c-strtold.texi: New file.
43923
43924 2008-01-10  Eric Blake  <ebb9@byu.net>
43925
43926         * lib/relocatable.h: Fix a comment.
43927
43928 2008-01-10  Eric Blake  <ebb9@byu.net>
43929
43930         Share two-way algorithm.
43931         * lib/str-two-way.h: New file, merged from...
43932         * lib/memmem.c: ...here...
43933         * lib/strstr.c: ...and here.
43934         * modules/memmem (Files): Use it.
43935         * modules/strstr (Files): Likewise.
43936
43937         Avoid quadratic strstr implementations.
43938         * lib/strstr.c: New file.
43939         * m4/strstr.m4: Likewise.
43940         * modules/strstr: Likewise.
43941         * modules/strstr-tests: Likewise.
43942         * tests/test-strstr.c: Likewise.
43943         * lib/string.in.h (rpl_strstr): Declare.
43944         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43946         * modules/string (Makefile.am): Likewise.
43947         * MODULES.html.sh (string handling): Mention new module.
43948         * doc/functions/strstr.texi (strstr): Document the bug.
43949
43950 2008-01-10  Bruno Haible  <bruno@clisp.org>
43951
43952         * lib/relocatable.h (relocate): State whether result is freshly
43953         allocated or not.
43954         * lib/relocatable.c (relocate): Return a freshly allocated string
43955         instead of a pointer to a privately held string.
43956         Reported by Sylvain Beucler <beuc@gnu.org>.
43957
43958 2008-01-10  Colin Watson  <cjwatson@debian.org>
43959
43960         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43961         s/S_ISNLK/S_ISLNK/.
43962
43963 2008-01-09  Bruno Haible  <bruno@clisp.org>
43964
43965         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43966         and other files.
43967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43968         if it's only a guess.
43969         * modules/memmem: Simplify by depending on memmem-simple.
43970
43971 2008-01-09  Bruno Haible  <bruno@clisp.org>
43972
43973         Work around OpenBSD 4.0 tdelete() bug.
43974         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43975         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43976         macros and don't redefine the enum values.
43977         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43978         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43979         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43980
43981 2008-01-09  Bruno Haible  <bruno@clisp.org>
43982
43983         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43984         (main): Don't perform the tests if setlocale did not install a UTF-8
43985         locale. Needed on OpenBSD 4.0.
43986         * modules/wcwidth-tests (Depends-on): Add localcharset.
43987
43988 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43989
43990         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43991         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43992         * NEWS: announce this.
43993         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43994
43995 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43996         and Eric Blake  <ebb9@byu.net>
43997
43998         Add memmem-simple module.
43999         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44000         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44001         * modules/memmem-simple: New file.
44002         * modules/memmem (Description): Tweak.
44003         * MODULES.html.sh (string handling): Mention new module.
44004         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44005         addressed by memmem-simple.
44006         * NEWS: Document the difference.
44007
44008 2008-01-09  Eric Blake  <ebb9@byu.net>
44009
44010         Give gcc some memmem optimization hints.
44011         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44012         (strcasestr): Declare as pure.
44013         * modules/memmem (Maintainer): Claim my implementation.
44014
44015 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44016
44017         Support AIX 6.1 and higher.
44018         * build-aux/config.libpath: Likewise.
44019         * build-aux/config.rpath: Likewise.
44020
44021 2008-01-08  Jim Meyering  <meyering@redhat.com>
44022             Bruno Haible  <bruno@clisp.org>
44023
44024         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44025         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44026         Reported by Peter Fales in
44027         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44028
44029 2008-01-08  Bruno Haible  <bruno@clisp.org>
44030
44031         * modules/unictype/category-of (Depends-on): Add
44032         unictype/category-none.
44033         * modules/unictype/category-and-tests (Depends-on): Add
44034         unictype/category-{L,N,Lu,Nd}.
44035         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44036         * modules/unictype/category-or-tests (Depends-on): Add
44037         unictype/category-{L,N}.
44038         * modules/unictype/category-name-tests (Depends-on): Add
44039         unictype/category-{Z,Nl}.
44040         Reported by Simon Josefsson.
44041
44042 2008-01-08  Bruno Haible  <bruno@clisp.org>
44043
44044         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44045         convention better.
44046         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44047         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44048         Reported by Peter Miller <millerp@canb.auug.org.au>.
44049
44050 2008-01-08  Eric Blake  <ebb9@byu.net>
44051
44052         Rewrite memmem to guarantee linear complexity without malloc.
44053         * lib/memmem.c (memmem): Use Two-Way rather than
44054         Knuth-Morris-Pratt, to allow O(1) space usage.
44055         (critical_factorization, two_way_short_needle)
44056         (two_way_long_needle): New functions.
44057         (knuth_morris_pratt): Delete.
44058         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44059         Add stdint.
44060         * tests/test-memmem.c (main): Add tests for periodic needle and
44061         sublinear performance.
44062         * doc/functions/memmem.texi (memmem): Document other deficiencies
44063         in cygwin and older glibc.
44064
44065 2008-01-08  Bruno Haible  <bruno@clisp.org>
44066
44067         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44068         augmentation.
44069
44070 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44071
44072         Add a configure time option: --disable-acl.
44073         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44074         AC_ARG_ENABLE(acl).
44075
44076 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44077
44078         * tests/test-localename.c: Don't include obsolete "setenv.h".
44079
44080         * modules/localename-tests (Depends-on): Need unsetenv.
44081
44082 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44083
44084         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44085
44086 2008-01-06  Colin Watson  <cjwatson@debian.org>
44087
44088         * users.txt: Add man-db.
44089
44090 2008-01-07  Bruno Haible  <bruno@clisp.org>
44091
44092         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44093         previous section name.
44094
44095 2008-01-07  Bruno Haible  <bruno@clisp.org>
44096
44097         * lib/progname.c (set_program_name): Don't strip off a leading
44098         "lt-" prefix outside a .libs directory.
44099         Suggested by Paul Eggert.
44100
44101 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44102             Bruno Haible  <bruno@clisp.org>
44103
44104         Improve memory cleanup in 'relocatable' module.
44105         * lib/relocatable.h (compute_curr_prefix): Change return type to
44106         'char *'.
44107         * lib/relocatable.c (compute_curr_prefix): Change return type to
44108         'char *'. Free curr_installdir after use.
44109         (relocate): Free curr_prefix_better after use.
44110         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44111
44112 2008-01-01  Bruno Haible  <bruno@clisp.org>
44113
44114         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44115         failure on older glibc systems.
44116         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44117
44118 2008-01-05  Eric Blake  <ebb9@byu.net>
44119
44120         Avoid quadratic system memmem.
44121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44122         Reported by Ralf Wildenhues.
44123
44124         Fix memmem test for mingw.
44125         * modules/memmem-tests (configure.ac): Check for alarm.
44126         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44127         it.
44128         * doc/functions/memmem.texi: New file.
44129         * doc/gnulib.texi (Function Substitutes): Add memmem.
44130         Reported by Bruno Haible.
44131
44132 2008-01-04  Bruno Haible  <bruno@clisp.org>
44133
44134         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44135         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44136         gl_HEADER_STRING_H_DEFAULTS.
44137
44138 2008-01-04  Eric Blake  <ebb9@byu.net>
44139
44140         Shorten duration of memmem test.
44141         * tests/test-memmem.c (main): Use alarm to declare failure if test
44142         is taking too long.
44143         Reported by Ralf Wildenhues.
44144
44145 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44146
44147         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44148         string, needed by strerror.
44149
44150 2008-01-03  Colin Watson  <cjwatson@debian.org>
44151             Bruno Haible  <bruno@clisp.org>
44152
44153         * doc/gnulib-tool.texi (Localization): New section.
44154
44155 2008-01-02  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44158         variables to 'unsigned char *' type.
44159         Reported by Paul Eggert.
44160
44161 2008-01-02  Jim Meyering  <jim@meyering.net>
44162
44163         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44164
44165 2007-12-31  Jim Meyering  <jim@meyering.net>
44166
44167         Avoid use of private FTS type name.
44168         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44169
44170 2007-12-30  Karl Berry  <karl@gnu.org>
44171
44172         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44173         work around defect in Texinfo and/or the standalone Info browser.
44174
44175 2007-12-30  Bruno Haible  <bruno@clisp.org>
44176
44177         Unify 5 copies of the KMP code.
44178         * lib/str-kmp.h: New file.
44179         * lib/c-strcasestr.c: Include str-kmp.h.
44180         (knuth_morris_pratt): Remove function.
44181         (c_strcasestr): Update.
44182         * lib/c-strstr.c: Include str-kmp.h.
44183         (knuth_morris_pratt): Remove function.
44184         (c_strcasestr): Update.
44185         * lib/mbscasestr.c: Include str-kmp.h.
44186         (knuth_morris_pratt_unibyte): Remove function.
44187         * lib/mbsstr.c: Include str-kmp.h.
44188         (knuth_morris_pratt_unibyte): Remove function.
44189         * lib/strcasestr.c: Include str-kmp.h.
44190         (knuth_morris_pratt): Remove function.
44191         (strcasestr): Update.
44192         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44193         * modules/c-strstr (Files): Likewise.
44194         * modules/mbscasestr (Files): Likewise.
44195         * modules/mbsstr (Files): Likewise.
44196         * modules/strcasestr (Files): Likewise.
44197         Suggested by Paul Eggert.
44198
44199 2007-12-30  Bruno Haible  <bruno@clisp.org>
44200
44201         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44202         defined.
44203
44204 2007-12-30  Bruno Haible  <bruno@clisp.org>
44205
44206         * lib/xmalloca.h: Include xalloc.h.
44207         (xnmalloca): New macro.
44208
44209 2007-12-30  Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/malloca.h (nmalloca): New macro.
44212         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44213         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44214         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44215         knuth_morris_pratt_multibyte): Likewise.
44216         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44217         knuth_morris_pratt_multibyte): Likewise.
44218         * lib/memmem.c (knuth_morris_pratt): Likewise.
44219         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44220
44221 2007-12-25  Bruno Haible  <bruno@clisp.org>
44222
44223         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44224         * lib/glob.c: Don't include openat.h.
44225         (link_exists2_p): Add back the code that deals with the
44226         !GLOB_ALTDIRFUNC case.
44227         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44228         let it do the filename concatenation.
44229         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44230         * modules/glob (Depends-on): Remove openat.
44231
44232 2007-12-31  Bruno Haible  <bruno@clisp.org>
44233
44234         * modules/dirfd (License): Change to LGPLv2+.
44235         Approved by Jim Meyering.
44236
44237 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44238
44239         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44240         when multiplying M by sizeof (size_t).
44241
44242 2007-12-10  Martin Lambers  <marlam@marlam.de>
44243
44244         Override getpagesize on mingw.
44245         * lib/getpagesize.c: New file.
44246         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44247         * modules/getpagesize (Files): Add lib/getpagesize.c.
44248         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44250         REPLACE_GETPAGESIZE.
44251         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44252
44253 2007-12-25  Bruno Haible  <bruno@clisp.org>
44254
44255         * modules/localcharset (Notice): New field.
44256         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44257         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44258
44259 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44260             Bruno Haible  <bruno@clisp.org>
44261
44262         Avoid using the syntax symbol() in formatted documentation.
44263         * MODULES.html.sh (func_module): When replacing symbol() with a
44264         hyperlink, remove the parentheses. Show an error if some remain.
44265         Recognize and render the '...' syntax.
44266         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44267         Rework. Add paragraph about GCC's inlining.
44268         * doc/alloca.texi: Likewise.
44269         * doc/error.texi: Remove parentheses from symbol reference.
44270         * doc/gnulib-intro.texi: Likewise.
44271         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44272         * modules/fnmatch (Description): Reword to say "the ... function".
44273         * modules/full-read (Description): Likewise.
44274         * modules/full-write (Description): Likewise.
44275         * modules/safe-read (Description): Likewise.
44276         * modules/safe-write (Description): Likewise.
44277         * modules/strchrnul (Description): Likewise.
44278         * modules/trim (Description): Likewise.
44279         * modules/error (Description): Remove parentheses from symbol
44280         references.
44281         * modules/verror (Description): Likewise.
44282         Reported by Karl Berry.
44283
44284 2007-12-25  Bruno Haible  <bruno@clisp.org>
44285
44286         Fixup after 2007-10-16 commit.
44287         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44288
44289 2007-12-24  Bruno Haible  <bruno@clisp.org>
44290
44291         Make --enable-relocatable work with DESTDIR.
44292         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44293         to compute installdir from destprog.
44294         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44295         also set the RELOC_DESTDIR variable.
44296         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44297
44298 2007-12-24  Bruno Haible  <bruno@clisp.org>
44299
44300         Fix link error due to xalloc_die().
44301         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44302         of xreadlink.
44303         * lib/relocwrapper.c: Update comments.
44304         * build-aux/install-reloc: Remove xreadlink.c from file list.
44305         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44306         xreadlink.c.
44307         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44308
44309 2007-12-24  Bruno Haible  <bruno@clisp.org>
44310
44311         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44312         * lib/setenv.h: Remove file.
44313         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44314         lib/setenv.h.
44315         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44316         (Depends-on): Add stdlib.
44317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44318         gl_FUNC_UNSETENV.
44319         (Include): Replace setenv.h with <stdlib.h>.
44320         * modules/unsetenv: New file.
44321         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44322         * lib/unsetenv.c: Include <stdlib.h> first.
44323         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44324         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44325         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44326         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44327         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44328         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44330         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44331         * doc/functions/unsetenv.texi: Update.
44332         * modules/xsetenv (Depends-on): Add unsetenv.
44333         * modules/getdate (Depends-on): Likewise.
44334         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44335         * lib/xsetenv.c: Don't include setenv.h.
44336         * lib/getdate.y: Likewise.
44337         * lib/relocwrapper.c: Likewise.
44338         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44339         (Depends-on): Add stdlib.
44340         * NEWS: Mention the changes.
44341         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44342
44343 2007-12-23  Bruno Haible  <bruno@clisp.org>
44344
44345         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44346         indentation.
44347
44348 2007-12-23  Bruno Haible  <bruno@clisp.org>
44349
44350         * lib/c-strcasestr.c: Add more comments.
44351         * lib/c-strstr.c: Likewise.
44352         * lib/mbscasestr.c: Likewise.
44353         * lib/mbsstr.c: Likewise.
44354         * lib/strcasestr.c: Likewise.
44355         * lib/memmem.c: Likewise.
44356
44357 2007-12-23  Bruno Haible  <bruno@clisp.org>
44358
44359         * tests/test-memmem.c: Include <string.h> first.
44360
44361 2007-12-22  Bruno Haible  <bruno@clisp.org>
44362
44363         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44364         the contents of $testsbase.
44365         Reported by Ralf Wildenhues.
44366
44367 2007-12-22  Bruno Haible  <bruno@clisp.org>
44368
44369         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44370         two variables local_ldadd_before, local_ldadd_last.
44371
44372 2007-12-20  Eric Blake  <ebb9@byu.net>
44373
44374         Work around circular library issue when cross-compiling.
44375         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44376         that progname.o does not need to pull in rpl_memcmp.
44377
44378 2007-12-19  Eric Blake  <ebb9@byu.net>
44379
44380         Fix memmem to avoid O(n^2) worst-case complexity.
44381         * lib/memmem.c (knuth_morris_pratt): New function.
44382         (memmem): Use it if first few naive iterations fail.
44383         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44384         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44385         * modules/memchr (License): Likewise.
44386         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44387         malloca.
44388         * tests/test-memmem.c: Rewrite, borrowing ideas from
44389         test-mbsstr1.c; the old version wouldn't even compile!
44390         * modules/memmem-tests: New file.
44391         * lib/string.in.h (rpl_memmem): Add declaration.
44392         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44394         REPLACE_MEMMEM.
44395
44396 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44397
44398         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44399         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44400         before any system include files, and undef after them all.  This
44401         should fix a problem on VMS reported by John E. Malmberg in
44402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44403
44404 2007-12-17  Eric Blake  <ebb9@byu.net>
44405
44406         Revert addition of verify, for BSD/OS.
44407         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44408         can't handle large files, for the sake of obsolete platforms.
44409         * modules/fseeko (Depends-on): Remove verify.
44410         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44411         * doc/functions/ftello.texi (ftello): Likewise.
44412         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44413         Reported by Larry Jones.
44414
44415 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44416
44417         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44418         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44419
44420 2007-12-17  Jim Meyering  <meyering@redhat.com>
44421
44422         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44423         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44424         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44425         * modules/getcwd (Depends-on): Add openat.
44426         Reported by Petr Salinger.
44427
44428 2007-12-17  Bruno Haible  <bruno@clisp.org>
44429
44430         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44431         avoid a segmentation fault of the configure test on x86_64 systems.
44432
44433 2007-12-15  Jim Meyering  <meyering@redhat.com>
44434
44435         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44436
44437 2007-12-13  Eric Blake  <ebb9@byu.net>
44438
44439         Another fseek test.
44440         * tests/test-fseek.c (main): Also test ungetc handling.
44441         * tests/test-fseeko.c (main): Likewise.
44442         * modules/fseeko (Depends-on): Add verify.
44443         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44444         large.
44445         Reported by Larry Jones.
44446
44447         Fix fseeko on mingw.
44448         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44449         seek.
44450
44451         Beef up fseek tests.
44452         * tests/test-fseek.c (main): Also test eof handling.
44453         * tests/test-fseeko.c (main): Likewise.
44454         Reported by Larry Jones.
44455
44456 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44457
44458         Fix fseeko on BSD-based platforms.
44459         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44460         successful seek.
44461
44462 2007-12-12  Eric Blake  <ebb9@byu.net>
44463
44464         Allow circular dependency of separate libtests.a
44465         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44466         when use_libtests.
44467
44468 2007-12-11  Eric Blake  <ebb9@byu.net>
44469
44470         Fix bug with -0.0L in previous patch.
44471         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44472         * tests/test-isnan.c (main): Also test on zeroes.
44473         * tests/test-isnanf.c (main): Likewise.
44474         * tests/test-isnanl.h (main): Likewise.
44475
44476         Detect pseudo-denormals on x86 even when cross-compiling.
44477         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44478         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44479         invalid bit patterns that happen to satisfy ==.
44480
44481         Avoid link failures with separate libtests.a.
44482         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44483         last, to satisfy circular dependencies.
44484
44485 2007-12-11  Eric Blake  <ebb9@byu.net>
44486         and Bruno Haible  <bruno@clisp.org>
44487
44488         Fix OpenBSD 4.0 <float.h> handling of long double.
44489         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44490         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44491         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44492
44493 2007-12-11  Jim Meyering  <meyering@redhat.com>
44494
44495         * users.txt: Add libvirt.
44496
44497         Support versions of autoconf prior to 2.59c.
44498         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44499         if it is not already defined.
44500
44501 2007-12-09  Bruno Haible  <bruno@clisp.org>
44502
44503         Let 'gnulib-tool --import' collect sources needed for the tests in
44504         tests/ rather than in lib/.
44505         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44506         argument. If true, add rules to generate libtests.a, and put libtests.a
44507         into $(LDADD). Consider source files in subdirectories and set
44508         uses_subdirs.
44509         (func_emit_initmacro_start, func_emit_initmacro_end,
44510         func_emit_initmacro_done): Pass all arguments explicitly.
44511         (func_import): Determine two module lists main_modules,
44512         testsrelated_modules. Determine use_libtests. Determine two variables
44513         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44514         instead of just sed_transform_lib_file. Determine two variables
44515         main_files and testsrelated_files. Compute 'files' as the union of
44516         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44517         func_add_or_update. In the generated gnulib-comp.m4, collect the
44518         object files for tests/ in different variables than those for lib/.
44519         Substitute LIBTESTS_LIBDEPS.
44520         (func_create_testdir): Combine the uses_subdirs results from
44521         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44522
44523 2007-12-09  Bruno Haible  <bruno@clisp.org>
44524
44525         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44526         the build-aux directory.
44527
44528 2007-12-09  Bruno Haible  <bruno@clisp.org>
44529
44530         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44531         introduced on 2006-09-09.
44532
44533 2007-12-07  Jim Meyering  <meyering@redhat.com>
44534
44535         Let these macros work also with autoconf-2.59.
44536         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44537         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44539
44540 2007-12-06  Jim Meyering  <meyering@redhat.com>
44541
44542         Avoid a configure-time syntax error in gl_FUNC_ACL.
44543         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44544         function in each branch, before testing the cache variable.
44545
44546 2007-12-04  Eric Blake  <ebb9@byu.net>
44547
44548         Make scripts executable.
44549         * build-aux/config.guess: Add execute permissions.
44550         * build-aux/config.sub: Likewise.
44551         * build-aux/gendocs.sh: Likewise.
44552
44553         Fix frexp on mingw.
44554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44555         cross-compiling.
44556         * doc/functions/frexp.texi (frexp): Document the bug.
44557
44558         Make cygwin fseeko check more reliable.
44559         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44560         version numbers, rather than unrelated feature check.
44561         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44562         * doc/functions/ftello.texi (ftello): Likewise.
44563         Reported by Bruno Haible.
44564
44565         * m4/strerror.m4: Bump version number.
44566
44567 2007-12-03  Bruno Haible  <bruno@clisp.org>
44568
44569         * doc/functions/mprotect.texi: Mention the mingw problem.
44570
44571 2007-12-03  Eric Blake  <ebb9@byu.net>
44572
44573         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44574         REPLACE_STRERROR is initialized before this macro.
44575
44576 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44577
44578         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44579         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44580         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44581         put -lsec in even for programs other than 'ls'.  This fixes a problem
44582         for gettext reported by Bruno Haible in
44583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44584         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44585         Add support for Solaris 10.  This isn't efficient, but should get the
44586         job done for now.
44587
44588 2007-12-03  James Youngman  <jay@gnu.org>
44589
44590         * doc/regexprops-generic.texi: change "an close-group" to "a
44591         close-group" and "illegal" to "not allowed".
44592
44593 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44594
44595         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44596         pr_byname.h. Needed for the rare case when the maintainer has done
44597         "make maintainer-clean" in the source directory and then attempts a
44598         build outside the source directory.
44599         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44600         scripts_byname.h.
44601
44602 2007-12-02  Martin Lambers <marlam@marlam.de>
44603             Bruno Haible  <bruno@clisp.org>
44604
44605         * lib/getpagesize.h: Remove file.
44606         * lib/unistd.in.h: Include declaration of getpagesize here.
44607         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44608         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44609         HAVE_SYS_PARAM_H.
44610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44611         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44612         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44613         (Depends-on): Add unistd.
44614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44615         (Include): Use <unistd.h> instead of getpagesize.h.
44616         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44617         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44618         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44619         gl_GETPAGESIZE invocation, already handled by module dependency.
44620         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44621
44622 2007-12-02  Bruno Haible  <bruno@clisp.org>
44623
44624         * modules/strings-tests: New file.
44625         * tests/test-strings.c: New file.
44626
44627         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44628         * lib/strings.in.h: New file.
44629         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44630         * m4/strings_h.m4: New file.
44631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44632         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44633         * modules/strings: New file.
44634         * modules/string (Makefile.am): Update.
44635         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44636         Reported by Karl Berry.
44637
44638 2007-12-01  Eric Blake  <ebb9@byu.net>
44639
44640         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44641         accomodate fix in cygwin 1.5.25.
44642
44643 2007-12-01  Jim Meyering  <meyering@redhat.com>
44644
44645         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44646         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44647         that would inhibit utf8-optimization of a regexp containing line-
44648         or buffer-anchors, e.g., `^', `$'.
44649
44650 2007-11-30  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44653         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44654         glthread_recursive_lock_init.
44655         * lib/lock.c (glthread_recursive_lock_init)
44656         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44657         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44658
44659 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44660
44661         New function qset_acl, like set_acl but with syscall semantics.
44662         * lib/acl.h (qset_acl): New decl.
44663         * lib/acl.c (qset_acl): New function.
44664         (set_acl): Use new function.  Use more-consistent diagnostics.
44665
44666 2007-11-28  Jim Meyering  <meyering@redhat.com>
44667
44668         * modules/physmem (License): Change from GPL to LGPLv2+.
44669
44670 2007-11-26  Bruno Haible  <bruno@clisp.org>
44671
44672         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44673         'long double' type has excess precision.
44674         Reported by Jim Meyering in
44675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44676
44677 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44678
44679         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44680         Sync from <http://gnu.org/licenses>.
44681         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44682         with license text from same location.
44683         * doc/maintain.texi, doc/standards.texi:  Sync from
44684         <http://savannah.gnu.org/projects/gnustandards>.
44685
44686 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44687         and Jim Meyering  <meyering@redhat.com>
44688
44689         Adjust getdate' grammar to accept a slightly more regular language.
44690         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44691         Before, the former was rejected.
44692         * lib/getdate.y (digits_to_date_time): New function, factored
44693         out of ...
44694         (number): ...here.  Just call digits_to_date_time.
44695         (hybrid): New non-terminal to handle an <unsigned number,
44696         signed relative offset> sequence consistently.
44697
44698 2007-11-18  Jim Meyering  <meyering@redhat.com>
44699
44700         Pull my changes from coreutils:
44701         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44702         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44703         use of $gnulib_tool_option_extras, so that it's separated from the
44704         preceding argument.
44705
44706         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44707         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44708         parent destination directories before copying a file into place.
44709
44710 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44711
44712         bootstrap: work also with 4-argument variant of AC_INIT
44713         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44714
44715 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44716
44717         Port test-getaddrinfo to Solaris.
44718         Problem reported by Bruno Haible in
44719         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44720         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44721         explanation of setting 'hints'.
44722         Don't reject an implementation merely because it returns EAI_SERVICE.
44723         (EAI_SERVICE): Define to 0 if not defined.
44724
44725 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44726
44727         The license of gnu-make and posix-shell is now "GPLed build tool".
44728         * modules/gnu-make (License): Likewise.
44729         * modules/posix-shell (License): Likewise.
44730
44731         New module posix-shell, for determining a POSIX shell
44732         or perhaps something that is close enough to a POSIX shell.
44733         * m4/posix-shell.m4: New file.
44734         * modules/posix-shell: New file.
44735
44736         * MODULES.html.sh: Mention new module.
44737
44738         New module gnu-make, for determining whether we're using GNU Make.
44739         * m4/gnu-make.m4: New file.
44740         * modules/gnu-make: New file.
44741         * MODULES.html.sh: Mention new module.
44742
44743 2007-11-14  Jim Meyering  <meyering@redhat.com>
44744
44745         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44746         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44747         use this macro to create a function _definition_.
44748         Remove useless "#undef ARGMATCH_DIE".
44749
44750 2007-11-14  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/config.charset: Update for OpenBSD 4.1.
44753         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44754
44755 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44756
44757         Document 64-bit #if problems in stdint.texi.
44758         * doc/headers/stdint.texi (stdint.h): Mention problems with
44759         64-bit-#if, and how to work around them.
44760
44761         Don't insist on 'long long int' support in the preprocessor.  It
44762         breaks too many things.  For example, PRIdMAX still uses a 'long
44763         long int' format with the latest Sun compiler, even though
44764         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44765         preprocessor problem.  This causes the latest coreutils to dump
44766         core on Solaris 10 sparc with the Sun C compiler.
44767         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44768         the troublesome expressions at configure-time, not at #if-time.
44769         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44770         preprocessor.
44771         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44772         compile-time C checks, done at 'configure'-time.
44773         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44774         * modules/inttypes (Makefile): Substitute the new symbols that
44775         gl_INTTYPES_H now generates.
44776         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44777
44778 2007-11-12  Bruno Haible  <bruno@clisp.org>
44779
44780         Tests for Unicode character classification functions.
44781
44782         * modules/unictype/bidicategory-byname-tests: New file.
44783         * modules/unictype/bidicategory-name-tests: New file.
44784         * modules/unictype/bidicategory-of-tests: New file.
44785         * modules/unictype/bidicategory-test-tests: New file.
44786         * modules/unictype/block-list-tests: New file.
44787         * modules/unictype/block-of-tests: New file.
44788         * modules/unictype/block-test-tests: New file.
44789         * modules/unictype/category-C-tests: New file.
44790         * modules/unictype/category-Cc-tests: New file.
44791         * modules/unictype/category-Cf-tests: New file.
44792         * modules/unictype/category-Cn-tests: New file.
44793         * modules/unictype/category-Co-tests: New file.
44794         * modules/unictype/category-Cs-tests: New file.
44795         * modules/unictype/category-L-tests: New file.
44796         * modules/unictype/category-Ll-tests: New file.
44797         * modules/unictype/category-Lm-tests: New file.
44798         * modules/unictype/category-Lo-tests: New file.
44799         * modules/unictype/category-Lt-tests: New file.
44800         * modules/unictype/category-Lu-tests: New file.
44801         * modules/unictype/category-M-tests: New file.
44802         * modules/unictype/category-Mc-tests: New file.
44803         * modules/unictype/category-Me-tests: New file.
44804         * modules/unictype/category-Mn-tests: New file.
44805         * modules/unictype/category-N-tests: New file.
44806         * modules/unictype/category-Nd-tests: New file.
44807         * modules/unictype/category-Nl-tests: New file.
44808         * modules/unictype/category-No-tests: New file.
44809         * modules/unictype/category-P-tests: New file.
44810         * modules/unictype/category-Pc-tests: New file.
44811         * modules/unictype/category-Pd-tests: New file.
44812         * modules/unictype/category-Pe-tests: New file.
44813         * modules/unictype/category-Pf-tests: New file.
44814         * modules/unictype/category-Pi-tests: New file.
44815         * modules/unictype/category-Po-tests: New file.
44816         * modules/unictype/category-Ps-tests: New file.
44817         * modules/unictype/category-S-tests: New file.
44818         * modules/unictype/category-Sc-tests: New file.
44819         * modules/unictype/category-Sk-tests: New file.
44820         * modules/unictype/category-Sm-tests: New file.
44821         * modules/unictype/category-So-tests: New file.
44822         * modules/unictype/category-Z-tests: New file.
44823         * modules/unictype/category-Zl-tests: New file.
44824         * modules/unictype/category-Zp-tests: New file.
44825         * modules/unictype/category-Zs-tests: New file.
44826         * modules/unictype/category-and-not-tests: New file.
44827         * modules/unictype/category-and-tests: New file.
44828         * modules/unictype/category-byname-tests: New file.
44829         * modules/unictype/category-name-tests: New file.
44830         * modules/unictype/category-none-tests: New file.
44831         * modules/unictype/category-of-tests: New file.
44832         * modules/unictype/category-or-tests: New file.
44833         * modules/unictype/category-test-withtable-tests: New file.
44834         * modules/unictype/combining-class-tests: New file.
44835         * modules/unictype/ctype-alnum-tests: New file.
44836         * modules/unictype/ctype-alpha-tests: New file.
44837         * modules/unictype/ctype-blank-tests: New file.
44838         * modules/unictype/ctype-cntrl-tests: New file.
44839         * modules/unictype/ctype-digit-tests: New file.
44840         * modules/unictype/ctype-graph-tests: New file.
44841         * modules/unictype/ctype-lower-tests: New file.
44842         * modules/unictype/ctype-print-tests: New file.
44843         * modules/unictype/ctype-punct-tests: New file.
44844         * modules/unictype/ctype-space-tests: New file.
44845         * modules/unictype/ctype-upper-tests: New file.
44846         * modules/unictype/ctype-xdigit-tests: New file.
44847         * modules/unictype/decimal-digit-tests: New file.
44848         * modules/unictype/digit-tests: New file.
44849         * modules/unictype/mirror-tests: New file.
44850         * modules/unictype/numeric-tests: New file.
44851         * modules/unictype/property-alphabetic-tests: New file.
44852         * modules/unictype/property-ascii-hex-digit-tests: New file.
44853         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44854         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44855         * modules/unictype/property-bidi-block-separator-tests: New file.
44856         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44857         * modules/unictype/property-bidi-common-separator-tests: New file.
44858         * modules/unictype/property-bidi-control-tests: New file.
44859         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44860         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44861         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44862         * modules/unictype/property-bidi-european-digit-tests: New file.
44863         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44864         * modules/unictype/property-bidi-left-to-right-tests: New file.
44865         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44866         * modules/unictype/property-bidi-other-neutral-tests: New file.
44867         * modules/unictype/property-bidi-pdf-tests: New file.
44868         * modules/unictype/property-bidi-segment-separator-tests: New file.
44869         * modules/unictype/property-bidi-whitespace-tests: New file.
44870         * modules/unictype/property-byname-tests: New file.
44871         * modules/unictype/property-combining-tests: New file.
44872         * modules/unictype/property-composite-tests: New file.
44873         * modules/unictype/property-currency-symbol-tests: New file.
44874         * modules/unictype/property-dash-tests: New file.
44875         * modules/unictype/property-decimal-digit-tests: New file.
44876         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44877         * modules/unictype/property-deprecated-tests: New file.
44878         * modules/unictype/property-diacritic-tests: New file.
44879         * modules/unictype/property-extender-tests: New file.
44880         * modules/unictype/property-format-control-tests: New file.
44881         * modules/unictype/property-grapheme-base-tests: New file.
44882         * modules/unictype/property-grapheme-extend-tests: New file.
44883         * modules/unictype/property-grapheme-link-tests: New file.
44884         * modules/unictype/property-hex-digit-tests: New file.
44885         * modules/unictype/property-hyphen-tests: New file.
44886         * modules/unictype/property-id-continue-tests: New file.
44887         * modules/unictype/property-id-start-tests: New file.
44888         * modules/unictype/property-ideographic-tests: New file.
44889         * modules/unictype/property-ids-binary-operator-tests: New file.
44890         * modules/unictype/property-ids-trinary-operator-tests: New file.
44891         * modules/unictype/property-ignorable-control-tests: New file.
44892         * modules/unictype/property-iso-control-tests: New file.
44893         * modules/unictype/property-join-control-tests: New file.
44894         * modules/unictype/property-left-of-pair-tests: New file.
44895         * modules/unictype/property-line-separator-tests: New file.
44896         * modules/unictype/property-logical-order-exception-tests: New file.
44897         * modules/unictype/property-lowercase-tests: New file.
44898         * modules/unictype/property-math-tests: New file.
44899         * modules/unictype/property-non-break-tests: New file.
44900         * modules/unictype/property-not-a-character-tests: New file.
44901         * modules/unictype/property-numeric-tests: New file.
44902         * modules/unictype/property-other-alphabetic-tests: New file.
44903         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44904         * modules/unictype/property-other-grapheme-extend-tests: New file.
44905         * modules/unictype/property-other-id-continue-tests: New file.
44906         * modules/unictype/property-other-id-start-tests: New file.
44907         * modules/unictype/property-other-lowercase-tests: New file.
44908         * modules/unictype/property-other-math-tests: New file.
44909         * modules/unictype/property-other-uppercase-tests: New file.
44910         * modules/unictype/property-paired-punctuation-tests: New file.
44911         * modules/unictype/property-paragraph-separator-tests: New file.
44912         * modules/unictype/property-pattern-syntax-tests: New file.
44913         * modules/unictype/property-pattern-white-space-tests: New file.
44914         * modules/unictype/property-private-use-tests: New file.
44915         * modules/unictype/property-punctuation-tests: New file.
44916         * modules/unictype/property-quotation-mark-tests: New file.
44917         * modules/unictype/property-radical-tests: New file.
44918         * modules/unictype/property-sentence-terminal-tests: New file.
44919         * modules/unictype/property-soft-dotted-tests: New file.
44920         * modules/unictype/property-space-tests: New file.
44921         * modules/unictype/property-terminal-punctuation-tests: New file.
44922         * modules/unictype/property-test-tests: New file.
44923         * modules/unictype/property-titlecase-tests: New file.
44924         * modules/unictype/property-unassigned-code-value-tests: New file.
44925         * modules/unictype/property-unified-ideograph-tests: New file.
44926         * modules/unictype/property-uppercase-tests: New file.
44927         * modules/unictype/property-variation-selector-tests: New file.
44928         * modules/unictype/property-white-space-tests: New file.
44929         * modules/unictype/property-xid-continue-tests: New file.
44930         * modules/unictype/property-xid-start-tests: New file.
44931         * modules/unictype/property-zero-width-tests: New file.
44932         * modules/unictype/scripts-tests: New file.
44933         * modules/unictype/syntax-c-ident-tests: New file.
44934         * modules/unictype/syntax-c-whitespace-tests: New file.
44935         * modules/unictype/syntax-java-ident-tests: New file.
44936         * modules/unictype/syntax-java-whitespace-tests: New file.
44937         * tests/unictype/test-bidi_byname.c: New file.
44938         * tests/unictype/test-bidi_name.c: New file.
44939         * tests/unictype/test-bidi_of.c: New file.
44940         * tests/unictype/test-bidi_test.c: New file.
44941         * tests/unictype/test-block_list.c: New file.
44942         * tests/unictype/test-block_of.c: New file.
44943         * tests/unictype/test-block_test.c: New file.
44944         * tests/unictype/test-categ_and.c: New file.
44945         * tests/unictype/test-categ_and_not.c: New file.
44946         * tests/unictype/test-categ_byname.c: New file.
44947         * tests/unictype/test-categ_name.c: New file.
44948         * tests/unictype/test-categ_none.c: New file.
44949         * tests/unictype/test-categ_of.c: New file.
44950         * tests/unictype/test-categ_or.c: New file.
44951         * tests/unictype/test-categ_test_withtable.c: New file.
44952         * tests/unictype/test-combining.c: New file.
44953         * tests/unictype/test-decdigit.c: New file.
44954         * tests/unictype/test-digit.c: New file.
44955         * tests/unictype/test-mirror.c: New file.
44956         * tests/unictype/test-numeric.c: New file.
44957         * tests/unictype/test-pr_byname.c: New file.
44958         * tests/unictype/test-pr_test.c: New file.
44959         * tests/unictype/test-predicate-part1.h: New file.
44960         * tests/unictype/test-predicate-part2.h: New file.
44961         * tests/unictype/test-scripts.c: New file.
44962         * tests/unictype/test-sy_c_ident.c: New file.
44963         * tests/unictype/test-sy_java_ident.c: New file.
44964
44965         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44966         for Unicode 5.0.0.
44967         * tests/unictype/test-categ_Cc.c: Likewise.
44968         * tests/unictype/test-categ_Cf.c: Likewise.
44969         * tests/unictype/test-categ_Cn.c: Likewise.
44970         * tests/unictype/test-categ_Co.c: Likewise.
44971         * tests/unictype/test-categ_Cs.c: Likewise.
44972         * tests/unictype/test-categ_L.c: Likewise.
44973         * tests/unictype/test-categ_Ll.c: Likewise.
44974         * tests/unictype/test-categ_Lm.c: Likewise.
44975         * tests/unictype/test-categ_Lo.c: Likewise.
44976         * tests/unictype/test-categ_Lt.c: Likewise.
44977         * tests/unictype/test-categ_Lu.c: Likewise.
44978         * tests/unictype/test-categ_M.c: Likewise.
44979         * tests/unictype/test-categ_Mc.c: Likewise.
44980         * tests/unictype/test-categ_Me.c: Likewise.
44981         * tests/unictype/test-categ_Mn.c: Likewise.
44982         * tests/unictype/test-categ_N.c: Likewise.
44983         * tests/unictype/test-categ_Nd.c: Likewise.
44984         * tests/unictype/test-categ_Nl.c: Likewise.
44985         * tests/unictype/test-categ_No.c: Likewise.
44986         * tests/unictype/test-categ_P.c: Likewise.
44987         * tests/unictype/test-categ_Pc.c: Likewise.
44988         * tests/unictype/test-categ_Pd.c: Likewise.
44989         * tests/unictype/test-categ_Pe.c: Likewise.
44990         * tests/unictype/test-categ_Pf.c: Likewise.
44991         * tests/unictype/test-categ_Pi.c: Likewise.
44992         * tests/unictype/test-categ_Po.c: Likewise.
44993         * tests/unictype/test-categ_Ps.c: Likewise.
44994         * tests/unictype/test-categ_S.c: Likewise.
44995         * tests/unictype/test-categ_Sc.c: Likewise.
44996         * tests/unictype/test-categ_Sk.c: Likewise.
44997         * tests/unictype/test-categ_Sm.c: Likewise.
44998         * tests/unictype/test-categ_So.c: Likewise.
44999         * tests/unictype/test-categ_Z.c: Likewise.
45000         * tests/unictype/test-categ_Zl.c: Likewise.
45001         * tests/unictype/test-categ_Zp.c: Likewise.
45002         * tests/unictype/test-categ_Zs.c: Likewise.
45003         * tests/unictype/test-ctype_alnum.c: Likewise.
45004         * tests/unictype/test-ctype_alpha.c: Likewise.
45005         * tests/unictype/test-ctype_blank.c: Likewise.
45006         * tests/unictype/test-ctype_cntrl.c: Likewise.
45007         * tests/unictype/test-ctype_digit.c: Likewise.
45008         * tests/unictype/test-ctype_graph.c: Likewise.
45009         * tests/unictype/test-ctype_lower.c: Likewise.
45010         * tests/unictype/test-ctype_print.c: Likewise.
45011         * tests/unictype/test-ctype_punct.c: Likewise.
45012         * tests/unictype/test-ctype_space.c: Likewise.
45013         * tests/unictype/test-ctype_upper.c: Likewise.
45014         * tests/unictype/test-ctype_xdigit.c: Likewise.
45015         * tests/unictype/test-decdigit.h: Likewise.
45016         * tests/unictype/test-digit.h: Likewise.
45017         * tests/unictype/test-numeric.h: Likewise.
45018         * tests/unictype/test-pr_alphabetic.c: Likewise.
45019         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45020         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45021         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45022         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45023         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45024         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45025         * tests/unictype/test-pr_bidi_control.c: Likewise.
45026         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45027         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45028         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45029         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45030         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45031         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45032         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45033         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45034         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45035         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45036         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45037         * tests/unictype/test-pr_combining.c: Likewise.
45038         * tests/unictype/test-pr_composite.c: Likewise.
45039         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45040         * tests/unictype/test-pr_dash.c: Likewise.
45041         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45042         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45043         * tests/unictype/test-pr_deprecated.c: Likewise.
45044         * tests/unictype/test-pr_diacritic.c: Likewise.
45045         * tests/unictype/test-pr_extender.c: Likewise.
45046         * tests/unictype/test-pr_format_control.c: Likewise.
45047         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45048         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45049         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45050         * tests/unictype/test-pr_hex_digit.c: Likewise.
45051         * tests/unictype/test-pr_hyphen.c: Likewise.
45052         * tests/unictype/test-pr_id_continue.c: Likewise.
45053         * tests/unictype/test-pr_id_start.c: Likewise.
45054         * tests/unictype/test-pr_ideographic.c: Likewise.
45055         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45056         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45057         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45058         * tests/unictype/test-pr_iso_control.c: Likewise.
45059         * tests/unictype/test-pr_join_control.c: Likewise.
45060         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45061         * tests/unictype/test-pr_line_separator.c: Likewise.
45062         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45063         * tests/unictype/test-pr_lowercase.c: Likewise.
45064         * tests/unictype/test-pr_math.c: Likewise.
45065         * tests/unictype/test-pr_non_break.c: Likewise.
45066         * tests/unictype/test-pr_not_a_character.c: Likewise.
45067         * tests/unictype/test-pr_numeric.c: Likewise.
45068         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45069         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45070         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45071         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45072         * tests/unictype/test-pr_other_id_start.c: Likewise.
45073         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45074         * tests/unictype/test-pr_other_math.c: Likewise.
45075         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45076         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45077         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45078         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45079         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45080         * tests/unictype/test-pr_private_use.c: Likewise.
45081         * tests/unictype/test-pr_punctuation.c: Likewise.
45082         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45083         * tests/unictype/test-pr_radical.c: Likewise.
45084         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45085         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45086         * tests/unictype/test-pr_space.c: Likewise.
45087         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45088         * tests/unictype/test-pr_titlecase.c: Likewise.
45089         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45090         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45091         * tests/unictype/test-pr_uppercase.c: Likewise.
45092         * tests/unictype/test-pr_variation_selector.c: Likewise.
45093         * tests/unictype/test-pr_white_space.c: Likewise.
45094         * tests/unictype/test-pr_xid_continue.c: Likewise.
45095         * tests/unictype/test-pr_xid_start.c: Likewise.
45096         * tests/unictype/test-pr_zero_width.c: Likewise.
45097         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45098         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45099
45100 2007-11-12  Bruno Haible  <bruno@clisp.org>
45101
45102         Unicode character classification functions.
45103         * lib/unictype.h: New file.
45104         * modules/unictype/base: New file.
45105         * modules/unictype/category-L: New file.
45106         * modules/unictype/category-Lu: New file.
45107         * modules/unictype/category-Ll: New file.
45108         * modules/unictype/category-Lt: New file.
45109         * modules/unictype/category-Lm: New file.
45110         * modules/unictype/category-Lo: New file.
45111         * modules/unictype/category-M: New file.
45112         * modules/unictype/category-Mn: New file.
45113         * modules/unictype/category-Mc: New file.
45114         * modules/unictype/category-Me: New file.
45115         * modules/unictype/category-N: New file.
45116         * modules/unictype/category-Nd: New file.
45117         * modules/unictype/category-Nl: New file.
45118         * modules/unictype/category-No: New file.
45119         * modules/unictype/category-P: New file.
45120         * modules/unictype/category-Pc: New file.
45121         * modules/unictype/category-Pd: New file.
45122         * modules/unictype/category-Ps: New file.
45123         * modules/unictype/category-Pe: New file.
45124         * modules/unictype/category-Pi: New file.
45125         * modules/unictype/category-Pf: New file.
45126         * modules/unictype/category-Po: New file.
45127         * modules/unictype/category-S: New file.
45128         * modules/unictype/category-Sm: New file.
45129         * modules/unictype/category-Sc: New file.
45130         * modules/unictype/category-Sk: New file.
45131         * modules/unictype/category-So: New file.
45132         * modules/unictype/category-Z: New file.
45133         * modules/unictype/category-Zs: New file.
45134         * modules/unictype/category-Zl: New file.
45135         * modules/unictype/category-Zp: New file.
45136         * modules/unictype/category-C: New file.
45137         * modules/unictype/category-Cc: New file.
45138         * modules/unictype/category-Cf: New file.
45139         * modules/unictype/category-Cs: New file.
45140         * modules/unictype/category-Co: New file.
45141         * modules/unictype/category-Cn: New file.
45142         * modules/unictype/category-or: New file.
45143         * modules/unictype/category-of: New file.
45144         * modules/unictype/category-test: New file.
45145         * modules/unictype/category-test-withtable: New file.
45146         * modules/unictype/category-byname: New file.
45147         * modules/unictype/category-none: New file.
45148         * modules/unictype/category-and: New file.
45149         * modules/unictype/category-and-not: New file.
45150         * modules/unictype/category-name: New file.
45151         * modules/unictype/combining-class: New file.
45152         * modules/unictype/category-all: New file.
45153         * modules/unictype/bidicategory-all: New file.
45154         * modules/unictype/bidicategory-byname: New file.
45155         * modules/unictype/bidicategory-name: New file.
45156         * modules/unictype/bidicategory-of: New file.
45157         * modules/unictype/bidicategory-test: New file.
45158         * modules/unictype/decimal-digit: New file.
45159         * modules/unictype/digit: New file.
45160         * modules/unictype/numeric: New file.
45161         * modules/unictype/mirror: New file.
45162         * modules/unictype/property-white-space: New file.
45163         * modules/unictype/property-alphabetic: New file.
45164         * modules/unictype/property-other-alphabetic: New file.
45165         * modules/unictype/property-not-a-character: New file.
45166         * modules/unictype/property-default-ignorable-code-point: New file.
45167         * modules/unictype/property-other-default-ignorable-code-point: New
45168         file.
45169         * modules/unictype/property-deprecated: New file.
45170         * modules/unictype/property-logical-order-exception: New file.
45171         * modules/unictype/property-variation-selector: New file.
45172         * modules/unictype/property-private-use: New file.
45173         * modules/unictype/property-unassigned-code-value: New file.
45174         * modules/unictype/property-uppercase: New file.
45175         * modules/unictype/property-other-uppercase: New file.
45176         * modules/unictype/property-lowercase: New file.
45177         * modules/unictype/property-other-lowercase: New file.
45178         * modules/unictype/property-titlecase: New file.
45179         * modules/unictype/property-soft-dotted: New file.
45180         * modules/unictype/property-id-start: New file.
45181         * modules/unictype/property-other-id-start: New file.
45182         * modules/unictype/property-id-continue: New file.
45183         * modules/unictype/property-other-id-continue: New file.
45184         * modules/unictype/property-xid-start: New file.
45185         * modules/unictype/property-xid-continue: New file.
45186         * modules/unictype/property-pattern-white-space: New file.
45187         * modules/unictype/property-pattern-syntax: New file.
45188         * modules/unictype/property-join-control: New file.
45189         * modules/unictype/property-grapheme-base: New file.
45190         * modules/unictype/property-grapheme-extend: New file.
45191         * modules/unictype/property-other-grapheme-extend: New file.
45192         * modules/unictype/property-grapheme-link: New file.
45193         * modules/unictype/property-bidi-control: New file.
45194         * modules/unictype/property-bidi-left-to-right: New file.
45195         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45196         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45197         * modules/unictype/property-bidi-european-digit: New file.
45198         * modules/unictype/property-bidi-eur-num-separator: New file.
45199         * modules/unictype/property-bidi-eur-num-terminator: New file.
45200         * modules/unictype/property-bidi-arabic-digit: New file.
45201         * modules/unictype/property-bidi-common-separator: New file.
45202         * modules/unictype/property-bidi-block-separator: New file.
45203         * modules/unictype/property-bidi-segment-separator: New file.
45204         * modules/unictype/property-bidi-whitespace: New file.
45205         * modules/unictype/property-bidi-non-spacing-mark: New file.
45206         * modules/unictype/property-bidi-boundary-neutral: New file.
45207         * modules/unictype/property-bidi-pdf: New file.
45208         * modules/unictype/property-bidi-embedding-or-override: New file.
45209         * modules/unictype/property-bidi-other-neutral: New file.
45210         * modules/unictype/property-hex-digit: New file.
45211         * modules/unictype/property-ascii-hex-digit: New file.
45212         * modules/unictype/property-ideographic: New file.
45213         * modules/unictype/property-unified-ideograph: New file.
45214         * modules/unictype/property-radical: New file.
45215         * modules/unictype/property-ids-binary-operator: New file.
45216         * modules/unictype/property-ids-trinary-operator: New file.
45217         * modules/unictype/property-zero-width: New file.
45218         * modules/unictype/property-space: New file.
45219         * modules/unictype/property-non-break: New file.
45220         * modules/unictype/property-iso-control: New file.
45221         * modules/unictype/property-format-control: New file.
45222         * modules/unictype/property-dash: New file.
45223         * modules/unictype/property-hyphen: New file.
45224         * modules/unictype/property-punctuation: New file.
45225         * modules/unictype/property-line-separator: New file.
45226         * modules/unictype/property-paragraph-separator: New file.
45227         * modules/unictype/property-quotation-mark: New file.
45228         * modules/unictype/property-sentence-terminal: New file.
45229         * modules/unictype/property-terminal-punctuation: New file.
45230         * modules/unictype/property-currency-symbol: New file.
45231         * modules/unictype/property-math: New file.
45232         * modules/unictype/property-other-math: New file.
45233         * modules/unictype/property-paired-punctuation: New file.
45234         * modules/unictype/property-left-of-pair: New file.
45235         * modules/unictype/property-combining: New file.
45236         * modules/unictype/property-composite: New file.
45237         * modules/unictype/property-decimal-digit: New file.
45238         * modules/unictype/property-numeric: New file.
45239         * modules/unictype/property-diacritic: New file.
45240         * modules/unictype/property-extender: New file.
45241         * modules/unictype/property-ignorable-control: New file.
45242         * modules/unictype/property-test: New file.
45243         * modules/unictype/property-byname: New file.
45244         * modules/unictype/property-all: New file.
45245         * modules/unictype/scripts: New file.
45246         * modules/unictype/scripts-all: New file.
45247         * modules/unictype/block-of: New file.
45248         * modules/unictype/block-test: New file.
45249         * modules/unictype/block-list: New file.
45250         * modules/unictype/block-all: New file.
45251         * modules/unictype/syntax-c-whitespace: New file.
45252         * modules/unictype/syntax-java-whitespace: New file.
45253         * modules/unictype/syntax-c-ident: New file.
45254         * modules/unictype/syntax-java-ident: New file.
45255         * modules/unictype/ctype-alnum: New file.
45256         * modules/unictype/ctype-alpha: New file.
45257         * modules/unictype/ctype-cntrl: New file.
45258         * modules/unictype/ctype-digit: New file.
45259         * modules/unictype/ctype-graph: New file.
45260         * modules/unictype/ctype-lower: New file.
45261         * modules/unictype/ctype-print: New file.
45262         * modules/unictype/ctype-punct: New file.
45263         * modules/unictype/ctype-space: New file.
45264         * modules/unictype/ctype-upper: New file.
45265         * modules/unictype/ctype-xdigit: New file.
45266         * modules/unictype/ctype-blank: New file.
45267         * lib/unictype/bidi_byname.c: New file.
45268         * lib/unictype/bidi_name.c: New file.
45269         * lib/unictype/bidi_of.c: New file.
45270         * lib/unictype/bidi_test.c: New file.
45271         * lib/unictype/bitmap.h: New file.
45272         * lib/unictype/block_test.c: New file.
45273         * lib/unictype/blocks.c: New file.
45274         * lib/unictype/categ_C.c: New file.
45275         * lib/unictype/categ_Cc.c: New file.
45276         * lib/unictype/categ_Cf.c: New file.
45277         * lib/unictype/categ_Cn.c: New file.
45278         * lib/unictype/categ_Co.c: New file.
45279         * lib/unictype/categ_Cs.c: New file.
45280         * lib/unictype/categ_L.c: New file.
45281         * lib/unictype/categ_Ll.c: New file.
45282         * lib/unictype/categ_Lm.c: New file.
45283         * lib/unictype/categ_Lo.c: New file.
45284         * lib/unictype/categ_Lt.c: New file.
45285         * lib/unictype/categ_Lu.c: New file.
45286         * lib/unictype/categ_M.c: New file.
45287         * lib/unictype/categ_Mc.c: New file.
45288         * lib/unictype/categ_Me.c: New file.
45289         * lib/unictype/categ_Mn.c: New file.
45290         * lib/unictype/categ_N.c: New file.
45291         * lib/unictype/categ_Nd.c: New file.
45292         * lib/unictype/categ_Nl.c: New file.
45293         * lib/unictype/categ_No.c: New file.
45294         * lib/unictype/categ_P.c: New file.
45295         * lib/unictype/categ_Pc.c: New file.
45296         * lib/unictype/categ_Pd.c: New file.
45297         * lib/unictype/categ_Pe.c: New file.
45298         * lib/unictype/categ_Pf.c: New file.
45299         * lib/unictype/categ_Pi.c: New file.
45300         * lib/unictype/categ_Po.c: New file.
45301         * lib/unictype/categ_Ps.c: New file.
45302         * lib/unictype/categ_S.c: New file.
45303         * lib/unictype/categ_Sc.c: New file.
45304         * lib/unictype/categ_Sk.c: New file.
45305         * lib/unictype/categ_Sm.c: New file.
45306         * lib/unictype/categ_So.c: New file.
45307         * lib/unictype/categ_Z.c: New file.
45308         * lib/unictype/categ_Zl.c: New file.
45309         * lib/unictype/categ_Zp.c: New file.
45310         * lib/unictype/categ_Zs.c: New file.
45311         * lib/unictype/categ_and.c: New file.
45312         * lib/unictype/categ_and_not.c: New file.
45313         * lib/unictype/categ_byname.c: New file.
45314         * lib/unictype/categ_name.c: New file.
45315         * lib/unictype/categ_none.c: New file.
45316         * lib/unictype/categ_of.c: New file.
45317         * lib/unictype/categ_or.c: New file.
45318         * lib/unictype/categ_test.c: New file.
45319         * lib/unictype/combining.c: New file.
45320         * lib/unictype/ctype_alnum.c: New file.
45321         * lib/unictype/ctype_alpha.c: New file.
45322         * lib/unictype/ctype_blank.c: New file.
45323         * lib/unictype/ctype_cntrl.c: New file.
45324         * lib/unictype/ctype_digit.c: New file.
45325         * lib/unictype/ctype_graph.c: New file.
45326         * lib/unictype/ctype_lower.c: New file.
45327         * lib/unictype/ctype_print.c: New file.
45328         * lib/unictype/ctype_punct.c: New file.
45329         * lib/unictype/ctype_space.c: New file.
45330         * lib/unictype/ctype_upper.c: New file.
45331         * lib/unictype/ctype_xdigit.c: New file.
45332         * lib/unictype/decdigit.c: New file.
45333         * lib/unictype/digit.c: New file.
45334         * lib/unictype/identsyntaxmap.h: New file.
45335         * lib/unictype/mirror.c: New file.
45336         * lib/unictype/numeric.c: New file.
45337         * lib/unictype/pr_alphabetic.c: New file.
45338         * lib/unictype/pr_ascii_hex_digit.c: New file.
45339         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45340         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45341         * lib/unictype/pr_bidi_block_separator.c: New file.
45342         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45343         * lib/unictype/pr_bidi_common_separator.c: New file.
45344         * lib/unictype/pr_bidi_control.c: New file.
45345         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45346         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45347         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45348         * lib/unictype/pr_bidi_european_digit.c: New file.
45349         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45350         * lib/unictype/pr_bidi_left_to_right.c: New file.
45351         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45352         * lib/unictype/pr_bidi_other_neutral.c: New file.
45353         * lib/unictype/pr_bidi_pdf.c: New file.
45354         * lib/unictype/pr_bidi_segment_separator.c: New file.
45355         * lib/unictype/pr_bidi_whitespace.c: New file.
45356         * lib/unictype/pr_byname.c: New file.
45357         * lib/unictype/pr_byname.gperf: New file.
45358         * lib/unictype/pr_combining.c: New file.
45359         * lib/unictype/pr_composite.c: New file.
45360         * lib/unictype/pr_currency_symbol.c: New file.
45361         * lib/unictype/pr_dash.c: New file.
45362         * lib/unictype/pr_decimal_digit.c: New file.
45363         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45364         * lib/unictype/pr_deprecated.c: New file.
45365         * lib/unictype/pr_diacritic.c: New file.
45366         * lib/unictype/pr_extender.c: New file.
45367         * lib/unictype/pr_format_control.c: New file.
45368         * lib/unictype/pr_grapheme_base.c: New file.
45369         * lib/unictype/pr_grapheme_extend.c: New file.
45370         * lib/unictype/pr_grapheme_link.c: New file.
45371         * lib/unictype/pr_hex_digit.c: New file.
45372         * lib/unictype/pr_hyphen.c: New file.
45373         * lib/unictype/pr_id_continue.c: New file.
45374         * lib/unictype/pr_id_start.c: New file.
45375         * lib/unictype/pr_ideographic.c: New file.
45376         * lib/unictype/pr_ids_binary_operator.c: New file.
45377         * lib/unictype/pr_ids_trinary_operator.c: New file.
45378         * lib/unictype/pr_ignorable_control.c: New file.
45379         * lib/unictype/pr_iso_control.c: New file.
45380         * lib/unictype/pr_join_control.c: New file.
45381         * lib/unictype/pr_left_of_pair.c: New file.
45382         * lib/unictype/pr_line_separator.c: New file.
45383         * lib/unictype/pr_logical_order_exception.c: New file.
45384         * lib/unictype/pr_lowercase.c: New file.
45385         * lib/unictype/pr_math.c: New file.
45386         * lib/unictype/pr_non_break.c: New file.
45387         * lib/unictype/pr_not_a_character.c: New file.
45388         * lib/unictype/pr_numeric.c: New file.
45389         * lib/unictype/pr_other_alphabetic.c: New file.
45390         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45391         * lib/unictype/pr_other_grapheme_extend.c: New file.
45392         * lib/unictype/pr_other_id_continue.c: New file.
45393         * lib/unictype/pr_other_id_start.c: New file.
45394         * lib/unictype/pr_other_lowercase.c: New file.
45395         * lib/unictype/pr_other_math.c: New file.
45396         * lib/unictype/pr_other_uppercase.c: New file.
45397         * lib/unictype/pr_paired_punctuation.c: New file.
45398         * lib/unictype/pr_paragraph_separator.c: New file.
45399         * lib/unictype/pr_pattern_syntax.c: New file.
45400         * lib/unictype/pr_pattern_white_space.c: New file.
45401         * lib/unictype/pr_private_use.c: New file.
45402         * lib/unictype/pr_punctuation.c: New file.
45403         * lib/unictype/pr_quotation_mark.c: New file.
45404         * lib/unictype/pr_radical.c: New file.
45405         * lib/unictype/pr_sentence_terminal.c: New file.
45406         * lib/unictype/pr_soft_dotted.c: New file.
45407         * lib/unictype/pr_space.c: New file.
45408         * lib/unictype/pr_terminal_punctuation.c: New file.
45409         * lib/unictype/pr_test.c: New file.
45410         * lib/unictype/pr_titlecase.c: New file.
45411         * lib/unictype/pr_unassigned_code_value.c: New file.
45412         * lib/unictype/pr_unified_ideograph.c: New file.
45413         * lib/unictype/pr_uppercase.c: New file.
45414         * lib/unictype/pr_variation_selector.c: New file.
45415         * lib/unictype/pr_white_space.c: New file.
45416         * lib/unictype/pr_xid_continue.c: New file.
45417         * lib/unictype/pr_xid_start.c: New file.
45418         * lib/unictype/pr_zero_width.c: New file.
45419         * lib/unictype/scripts.c: New file.
45420         * lib/unictype/sy_c_ident.c: New file.
45421         * lib/unictype/sy_c_whitespace.c: New file.
45422         * lib/unictype/sy_java_ident.c: New file.
45423         * lib/unictype/sy_java_whitespace.c: New file.
45424
45425         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45426         Unicode 5.0.0.
45427         * lib/unictype/blocks.h: Likewise.
45428         * lib/unictype/categ_C.h: Likewise.
45429         * lib/unictype/categ_Cc.h: Likewise.
45430         * lib/unictype/categ_Cf.h: Likewise.
45431         * lib/unictype/categ_Cn.h: Likewise.
45432         * lib/unictype/categ_Co.h: Likewise.
45433         * lib/unictype/categ_Cs.h: Likewise.
45434         * lib/unictype/categ_L.h: Likewise.
45435         * lib/unictype/categ_Ll.h: Likewise.
45436         * lib/unictype/categ_Lm.h: Likewise.
45437         * lib/unictype/categ_Lo.h: Likewise.
45438         * lib/unictype/categ_Lt.h: Likewise.
45439         * lib/unictype/categ_Lu.h: Likewise.
45440         * lib/unictype/categ_M.h: Likewise.
45441         * lib/unictype/categ_Mc.h: Likewise.
45442         * lib/unictype/categ_Me.h: Likewise.
45443         * lib/unictype/categ_Mn.h: Likewise.
45444         * lib/unictype/categ_N.h: Likewise.
45445         * lib/unictype/categ_Nd.h: Likewise.
45446         * lib/unictype/categ_Nl.h: Likewise.
45447         * lib/unictype/categ_No.h: Likewise.
45448         * lib/unictype/categ_P.h: Likewise.
45449         * lib/unictype/categ_Pc.h: Likewise.
45450         * lib/unictype/categ_Pd.h: Likewise.
45451         * lib/unictype/categ_Pe.h: Likewise.
45452         * lib/unictype/categ_Pf.h: Likewise.
45453         * lib/unictype/categ_Pi.h: Likewise.
45454         * lib/unictype/categ_Po.h: Likewise.
45455         * lib/unictype/categ_Ps.h: Likewise.
45456         * lib/unictype/categ_S.h: Likewise.
45457         * lib/unictype/categ_Sc.h: Likewise.
45458         * lib/unictype/categ_Sk.h: Likewise.
45459         * lib/unictype/categ_Sm.h: Likewise.
45460         * lib/unictype/categ_So.h: Likewise.
45461         * lib/unictype/categ_Z.h: Likewise.
45462         * lib/unictype/categ_Zl.h: Likewise.
45463         * lib/unictype/categ_Zp.h: Likewise.
45464         * lib/unictype/categ_Zs.h: Likewise.
45465         * lib/unictype/categ_of.h: Likewise.
45466         * lib/unictype/combining.h: Likewise.
45467         * lib/unictype/ctype_alnum.h: Likewise.
45468         * lib/unictype/ctype_alpha.h: Likewise.
45469         * lib/unictype/ctype_blank.h: Likewise.
45470         * lib/unictype/ctype_cntrl.h: Likewise.
45471         * lib/unictype/ctype_digit.h: Likewise.
45472         * lib/unictype/ctype_graph.h: Likewise.
45473         * lib/unictype/ctype_lower.h: Likewise.
45474         * lib/unictype/ctype_print.h: Likewise.
45475         * lib/unictype/ctype_punct.h: Likewise.
45476         * lib/unictype/ctype_space.h: Likewise.
45477         * lib/unictype/ctype_upper.h: Likewise.
45478         * lib/unictype/ctype_xdigit.h: Likewise.
45479         * lib/unictype/decdigit.h: Likewise.
45480         * lib/unictype/digit.h: Likewise.
45481         * lib/unictype/mirror.h: Likewise.
45482         * lib/unictype/numeric.h: Likewise.
45483         * lib/unictype/pr_alphabetic.h: Likewise.
45484         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45485         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45486         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45487         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45488         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45489         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45490         * lib/unictype/pr_bidi_control.h: Likewise.
45491         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45492         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45493         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45494         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45495         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45496         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45497         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45498         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45499         * lib/unictype/pr_bidi_pdf.h: Likewise.
45500         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45501         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45502         * lib/unictype/pr_combining.h: Likewise.
45503         * lib/unictype/pr_composite.h: Likewise.
45504         * lib/unictype/pr_currency_symbol.h: Likewise.
45505         * lib/unictype/pr_dash.h: Likewise.
45506         * lib/unictype/pr_decimal_digit.h: Likewise.
45507         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45508         * lib/unictype/pr_deprecated.h: Likewise.
45509         * lib/unictype/pr_diacritic.h: Likewise.
45510         * lib/unictype/pr_extender.h: Likewise.
45511         * lib/unictype/pr_format_control.h: Likewise.
45512         * lib/unictype/pr_grapheme_base.h: Likewise.
45513         * lib/unictype/pr_grapheme_extend.h: Likewise.
45514         * lib/unictype/pr_grapheme_link.h: Likewise.
45515         * lib/unictype/pr_hex_digit.h: Likewise.
45516         * lib/unictype/pr_hyphen.h: Likewise.
45517         * lib/unictype/pr_id_continue.h: Likewise.
45518         * lib/unictype/pr_id_start.h: Likewise.
45519         * lib/unictype/pr_ideographic.h: Likewise.
45520         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45521         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45522         * lib/unictype/pr_ignorable_control.h: Likewise.
45523         * lib/unictype/pr_iso_control.h: Likewise.
45524         * lib/unictype/pr_join_control.h: Likewise.
45525         * lib/unictype/pr_left_of_pair.h: Likewise.
45526         * lib/unictype/pr_line_separator.h: Likewise.
45527         * lib/unictype/pr_logical_order_exception.h: Likewise.
45528         * lib/unictype/pr_lowercase.h: Likewise.
45529         * lib/unictype/pr_math.h: Likewise.
45530         * lib/unictype/pr_non_break.h: Likewise.
45531         * lib/unictype/pr_not_a_character.h: Likewise.
45532         * lib/unictype/pr_numeric.h: Likewise.
45533         * lib/unictype/pr_other_alphabetic.h: Likewise.
45534         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45535         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45536         * lib/unictype/pr_other_id_continue.h: Likewise.
45537         * lib/unictype/pr_other_id_start.h: Likewise.
45538         * lib/unictype/pr_other_lowercase.h: Likewise.
45539         * lib/unictype/pr_other_math.h: Likewise.
45540         * lib/unictype/pr_other_uppercase.h: Likewise.
45541         * lib/unictype/pr_paired_punctuation.h: Likewise.
45542         * lib/unictype/pr_paragraph_separator.h: Likewise.
45543         * lib/unictype/pr_pattern_syntax.h: Likewise.
45544         * lib/unictype/pr_pattern_white_space.h: Likewise.
45545         * lib/unictype/pr_private_use.h: Likewise.
45546         * lib/unictype/pr_punctuation.h: Likewise.
45547         * lib/unictype/pr_quotation_mark.h: Likewise.
45548         * lib/unictype/pr_radical.h: Likewise.
45549         * lib/unictype/pr_sentence_terminal.h: Likewise.
45550         * lib/unictype/pr_soft_dotted.h: Likewise.
45551         * lib/unictype/pr_space.h: Likewise.
45552         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45553         * lib/unictype/pr_titlecase.h: Likewise.
45554         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45555         * lib/unictype/pr_unified_ideograph.h: Likewise.
45556         * lib/unictype/pr_uppercase.h: Likewise.
45557         * lib/unictype/pr_variation_selector.h: Likewise.
45558         * lib/unictype/pr_white_space.h: Likewise.
45559         * lib/unictype/pr_xid_continue.h: Likewise.
45560         * lib/unictype/pr_xid_start.h: Likewise.
45561         * lib/unictype/pr_zero_width.h: Likewise.
45562         * lib/unictype/scripts.h: Likewise.
45563         * lib/unictype/scripts_byname.gperf: Likewise.
45564         * lib/unictype/sy_c_ident.h: Likewise.
45565         * lib/unictype/sy_c_whitespace.h: Likewise.
45566         * lib/unictype/sy_java_ident.h: Likewise.
45567         * lib/unictype/sy_java_whitespace.h: Likewise.
45568
45569         * lib/unictype/Makefile: New file.
45570         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45571         glibc.
45572         * lib/unictype/3level.h: New file, copied from glibc.
45573         * lib/unictype/3levelbit.h: New file.
45574
45575 2007-11-11  Bruno Haible  <bruno@clisp.org>
45576
45577         * modules/gperf: New file.
45578         * modules/iconv_open (Depends-on): Add it.
45579         (Makefile.am): Remove the GPERF definition.
45580
45581 2007-11-11  Bruno Haible  <bruno@clisp.org>
45582
45583         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45584         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45585
45586 2007-11-11  Bruno Haible  <bruno@clisp.org>
45587
45588         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45589         (usage): Remove function.
45590
45591 2007-11-11  Bruno Haible  <bruno@clisp.org>
45592
45593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45594         gl_FUNC_CEILF_LIBS.
45595         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45596         gl_FUNC_CEIL_LIBS.
45597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45598         gl_FUNC_CEILL_LIBS.
45599         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45600         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45601         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45602
45603 2007-11-11  Bruno Haible  <bruno@clisp.org>
45604
45605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45606         roundf were declared but do not exist on functions.
45607         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45608         roundl were declared but do not exist on functions.
45609         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45610         HAVE_FLOORL_AND_CEILL, respectively.
45611         Needed for Sun C on Solaris 10.
45612
45613 2007-11-11  Bruno Haible  <bruno@clisp.org>
45614
45615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45616         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45617         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45618         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45620         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45621         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45622         HAVE_DECL_ROUNDF.
45623         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45624         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45626         of HAVE_DECL_ROUND*.
45627         * modules/math (Makefile.am): Update.
45628
45629 2007-11-10  Bruno Haible  <bruno@clisp.org>
45630
45631         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45632         ptrdiff_t as m4/intl.m4.
45633
45634 2007-11-10  Jim Meyering  <meyering@redhat.com>
45635
45636         Avoid link failure for the argmatch test.
45637         * tests/test-argmatch.c (usage): Define function to avoid a link
45638         failure: argmatch_die requires a usage function.
45639
45640 2007-11-09  Bruno Haible  <bruno@clisp.org>
45641
45642         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45643         * doc/functions/vsnprintf.texi: Likewise.
45644         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45645         with a size argument < 2.
45646
45647 2007-11-09  Bruno Haible  <bruno@clisp.org>
45648
45649         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45650         buffer. Fixes an inefficiency introduced on 2007-11-03.
45651
45652 2007-11-09  Bruno Haible  <bruno@clisp.org>
45653
45654         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45655         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45656
45657 2007-11-08  Jim Meyering  <meyering@redhat.com>
45658
45659         Change cache variable name prefix "jm_" to "gl_" everywhere.
45660         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45661         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45662         * m4/uptime.m4: s/gl_/jm_/
45663
45664 2007-11-07  Bruno Haible  <bruno@clisp.org>
45665
45666         Update to GNU gettext 0.17.
45667         * m4/intl.m4: Update to GNU gettext 0.17.
45668         * m4/po.m4: Likewise.
45669         * modules/gettext (Files): Remove m4/ulonglong.m4.
45670         (configure.ac): Require gettext infrastructure from version 0.17.
45671
45672 2007-11-06  Bruno Haible  <bruno@clisp.org>
45673
45674         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45675         symbolic values are not defined in a public header.
45676         * lib/freadable.c (freadable) [QNX]: Likewise.
45677         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45678         * lib/freading.c (freading) [QNX]: Likewise.
45679         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45680         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45681         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45682         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45683         Reported by Alain Magloire.
45684
45685         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45686
45687 2007-11-05  Bruno Haible  <bruno@clisp.org>
45688
45689         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45690         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45691         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45692         Reported by Eric Blake.
45693
45694 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45695             Bruno Haible  <bruno@clisp.org>
45696
45697         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45698         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45699         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45700         (malloc): Undefine also before including <stdlib.h>.
45701         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45702         Needed on OSF/1 4.0.
45703
45704 2007-11-05  Jim Meyering  <meyering@redhat.com>
45705
45706         git-version-gen: sync from coreutils.
45707         * build-aux/git-version-gen: Add comments.
45708         Change the first '-' to '.' in the snapshot version string,
45709         e.g., 6.9-377-08144 -> 6.9.377-08144
45710         Remove first parameter.
45711         Don't declare a version "-dirty" merely because a time
45712         stamp has changed.
45713
45714 2007-11-04  Bruno Haible  <bruno@clisp.org>
45715
45716         * lib/lock.h: Protect all macro definitions containing an 'if'
45717         statement through a "do { ... } while (0)".
45718         * lib/tls.h: Likewise.
45719
45720 2007-11-04  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45723
45724 2007-11-04  Bruno Haible  <bruno@clisp.org>
45725
45726         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45727         * modules/fprintf-posix (Depends-on): Add nocrash.
45728         * modules/snprintf-posix (Depends-on): Likewise.
45729         * modules/sprintf-posix (Depends-on): Likewise.
45730         * modules/vasnprintf-posix (Depends-on): Likewise.
45731         * modules/vasprintf-posix (Depends-on): Likewise.
45732         * modules/vfprintf-posix (Depends-on): Likewise.
45733         * modules/vsnprintf-posix (Depends-on): Likewise.
45734         * modules/vsprintf-posix (Depends-on): Likewise.
45735         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45742
45743 2007-11-04  Bruno Haible  <bruno@clisp.org>
45744
45745         * modules/nocrash: New file.
45746         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45747         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45748
45749 2007-11-04  Bruno Haible  <bruno@clisp.org>
45750
45751         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45752         precision handling.
45753         * tests/test-vasprintf-posix.c (test_function): Likewise.
45754         * tests/test-snprintf-posix.h (test_function): Likewise.
45755         * tests/test-sprintf-posix.h (test_function): Likewise.
45756
45757         Fix *printf behaviour for large precisions on mingw and BeOS.
45758         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45759         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45761         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45763         gl_PRINTF_PRECISION and test its result. Invoke
45764         gl_PREREQ_VASNPRINTF_PRECISION.
45765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45772         * doc/functions/fprintf.texi: Update.
45773         * doc/functions/printf.texi: Update.
45774         * doc/functions/snprintf.texi: Update.
45775         * doc/functions/sprintf.texi: Update.
45776         * doc/functions/vfprintf.texi: Update.
45777         * doc/functions/vprintf.texi: Update.
45778         * doc/functions/vsnprintf.texi: Update.
45779         * doc/functions/vsprintf.texi: Update.
45780
45781 2007-11-04  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45784
45785 2007-11-04  Bruno Haible  <bruno@clisp.org>
45786
45787         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45788         Reported by Sylvain Beucler <beuc@gnu.org>.
45789
45790 2007-11-03  Bruno Haible  <bruno@clisp.org>
45791
45792         * tests/test-fprintf-posix2.sh: New file.
45793         * tests/test-fprintf-posix2.c: New file.
45794         * modules/fprintf-posix-tests (Files): Add them.
45795         (TESTS): Add test-fprintf-posix2.sh.
45796         (configure.ac): Check for getrlimit and setrlimit.
45797         (check_PROGRAMS): Add test-fprintf-posix2.
45798
45799         * tests/test-printf-posix2.sh: New file.
45800         * tests/test-printf-posix2.c: New file.
45801         * modules/printf-posix-tests (Files): Add them.
45802         (TESTS): Add test-printf-posix2.sh.
45803         (configure.ac): Check for getrlimit and setrlimit.
45804         (check_PROGRAMS): Add test-printf-posix2.
45805
45806         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45807         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45808         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45809         (decode_double): New function, copied from decode_long_double.
45810         (scale10_round_decimal_decoded): New function, extracted from
45811         scale10_round_decimal_long_double.
45812         (scale10_round_decimal_long_double): Use it.
45813         (scale10_round_decimal_double): New function.
45814         (floorlog10): New function.
45815         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45817         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45819         gl_PRINTF_ENOMEM and test its result. Invoke
45820         gl_PREREQ_VASNPRINTF_ENOMEM.
45821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45825         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45828         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45829         * modules/snprintf-posix (Depends-on): Likewise.
45830         * modules/sprintf-posix (Depends-on): Likewise.
45831         * modules/vasnprintf-posix (Depends-on): Likewise.
45832         * modules/vasprintf-posix (Depends-on): Likewise.
45833         * modules/vfprintf-posix (Depends-on): Likewise.
45834         * modules/vsnprintf-posix (Depends-on): Likewise.
45835         * modules/vsprintf-posix (Depends-on): Likewise.
45836         * doc/functions/fprintf.texi: Update.
45837         * doc/functions/printf.texi: Update.
45838         * doc/functions/snprintf.texi: Update.
45839         * doc/functions/sprintf.texi: Update.
45840         * doc/functions/vfprintf.texi: Update.
45841         * doc/functions/vprintf.texi: Update.
45842         * doc/functions/vsnprintf.texi: Update.
45843         * doc/functions/vsprintf.texi: Update.
45844
45845 2007-11-03  Bruno Haible  <bruno@clisp.org>
45846
45847         * modules/frexp-nolibm-tests: New file.
45848
45849         * modules/frexp-nolibm: New file.
45850         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45851
45852 2007-11-03  Bruno Haible  <bruno@clisp.org>
45853
45854         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45855         value is C99 compliant.
45856         Needed for OSF/1 5.1.
45857
45858 2007-11-03  Bruno Haible  <bruno@clisp.org>
45859
45860         Fix out-of-memory handling of vasnprintf.
45861         * lib/printf-parse.c: Include <errno.h>.
45862         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45863         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45864         is already set.
45865
45866 2007-11-02  Eric Blake  <ebb9@byu.net>
45867
45868         Fix tests on cygwin.
45869         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45870
45871 2007-11-01  Bruno Haible  <bruno@clisp.org>
45872
45873         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45874         warning.
45875         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45876         needed for POSIX compatibility.
45877
45878 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45881         for compatibility with GNU.
45882
45883 2007-11-01  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45886         (putenv): Renamed from rpl_putenv. Change argument type from
45887         'const char *' to 'char *'.
45888         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45889         of defining putenv in config.h, just set REPLACE_PUTENV.
45890         * modules/putenv (Depends-on): Add stdlib.
45891         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45892         (Include): Use <stdlib.h>.
45893         * lib/stdlib.in.h (putenv): New declaration.
45894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45895         REPLACE_PUTENV.
45896         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45897         REPLACE_PUTENV.
45898         Needed for MacOS X 10.5.0.
45899         Reported by Peter O'Gorman <peter@pogma.com>.
45900
45901 2007-11-01  Jim Meyering  <meyering@redhat.com>
45902
45903         Treat an empty date string exactly like "0".
45904         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45905         if the remaining date string (to be parsed) is empty, use "0".
45906         Reported by Mischa Molhoek and discussed in this thread:
45907         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45908
45909 2007-10-31  Bruno Haible  <bruno@clisp.org>
45910
45911         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45912         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45913         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45914         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45915         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45916         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45917
45918 2007-10-31  Bruno Haible  <bruno@clisp.org>
45919
45920         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45921         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45922         (AC_TYPE_LONG_LONG_INT): Use it.
45923         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45924         it as well.
45925         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45926         to m4/longlong.m4.
45927         * modules/stdint (Files): Remove m4/ulonglong.m4.
45928         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45929         m4/ulonglong.m4.
45930         * modules/strtoumax (Files): Likewise.
45931
45932 2007-10-30  Bruno Haible  <bruno@clisp.org>
45933
45934         * modules/xvasprintf-posix: New file.
45935         Suggested by Eric Blake.
45936
45937 2007-10-30  Bruno Haible  <bruno@clisp.org>
45938
45939         * modules/xprintf-posix-tests: New file.
45940         * tests/test-xprintf-posix.sh: New file.
45941         * tests/test-xprintf-posix.c: New file.
45942         * tests/test-xfprintf-posix.c: New file.
45943
45944         * modules/xprintf-posix: New file.
45945
45946 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45947
45948         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45949         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45950         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45951
45952 2007-10-29  Bruno Haible  <bruno@clisp.org>
45953
45954         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45955         contain the special marker '_cv_'.
45956         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45957         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45958         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45959         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45960         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45961         Reported by Ralf Wildenhues.
45962
45963 2007-10-29  Bruno Haible  <bruno@clisp.org>
45964
45965         * gnulib-tool (func_import): When --lgpl is not specified, set
45966         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45967         GPLv3.
45968         Reported by Simon Josefsson.
45969
45970 2007-10-28  Bruno Haible  <bruno@clisp.org>
45971
45972         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45973         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45974         HAVE_DECL_ISFINITE.
45975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45976         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45977         HAVE_DECL_ISFINITE.
45978
45979 2007-10-28  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45982         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45983
45984 2007-10-28  Bruno Haible  <bruno@clisp.org>
45985
45986         Fix link errors with Sun C 5.0 on Solaris 10.
45987         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45988         function is declared but not present in the compiler's libm.
45989         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45990         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45991         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45992         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45993         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45994         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45995         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45997         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45998         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45999         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46000         HAVE_DECL_FLOORL.
46001
46002 2007-10-28  Bruno Haible  <bruno@clisp.org>
46003
46004         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46005         gl_FUNC_FLOORL. Cache the result.
46006         (gl_FUNC_FLOORL): Use it.
46007         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46008         gl_FUNC_CEILL. Cache the result.
46009         (gl_FUNC_CEILL): Use it.
46010
46011         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46012         gl_FUNC_FLOOR. Cache the result.
46013         (gl_FUNC_FLOOR): Use it.
46014         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46015         gl_FUNC_CEIL. Cache the result.
46016         (gl_FUNC_CEIL): Use it.
46017
46018         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46019         gl_FUNC_FLOORF. Cache the result.
46020         (gl_FUNC_FLOORF): Use it.
46021         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46022         gl_FUNC_CEILF. Cache the result.
46023         (gl_FUNC_CEILF): Use it.
46024
46025 2007-10-28  Bruno Haible  <bruno@clisp.org>
46026
46027         * gnulib-tool: Allow specifying the LGPL version number through
46028         --lgpl=2 or --lgpl=3.
46029         (func_usage): Document --lgpl with argument.
46030         Handle --lgpl=... arguments.
46031         (func_import): Recognize also gl_LGPL calls with an argument. When
46032         --lgpl=2 is used and the module's license is just LGPL, report an
46033         error. Set sed_transform_lib_file according to the lgpl variable. In
46034         the generated files, use --lgpl or gl_LGPL invocations with argument,
46035         if necessary.
46036         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46037         an LGPv2+ license.
46038         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46039         gl_LGPL macro.
46040
46041 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46042             Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46045         (u16_uctomb_aux): Likewise.
46046         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46047         !HAVE_INLINE.
46048         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46049
46050 2007-10-28  Bruno Haible  <bruno@clisp.org>
46051
46052         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46053         Invoke AM_GETTEXT_OPTION if it exists.
46054         * modules/vasprintf: Likewise.
46055         * modules/verror: Likewise.
46056         * modules/xprintf: Likewise.
46057         * modules/xvasprintf: Likewise.
46058
46059 2007-10-27  Ben Pfaff  <blp@gnu.org>
46060
46061         * lib/math.in.h: Define isfinite macro and prototypes for
46062         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46063         implementations.
46064         * m4/math_h.m4: New substitutions for isfinite module.
46065         * lib/isfinite.c: New file.
46066         * m4/isfinite.m4: New file.
46067         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46068         * modules/isfinite: New file.
46069         * modules/isfinite-tests: New file.
46070         * tests/tests-isfinite.c: New file.
46071         * doc/functions/isfinite.texi: Mention isfinite module.
46072         * MODULES.html.sh: Mention new module.
46073
46074 2007-10-27  Ben Pfaff  <blp@gnu.org>
46075
46076         Ralf Wildenhues reported that Tru64 4.0D declares the round
46077         functions but does not have definitions.
46078         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46079         cannot be found in any library, set the output variable to
46080         "missing" instead of "".
46081         * m4/round.m4: Also use our substitute if we cannot find round in
46082         any library, even if it is declared.
46083         * m4/roundf.m4: Likewise for roundf.
46084         * m4/roundl.m4: Likewise for roundl.
46085         * lib/math.in.h: Undefine roundf, round, roundl before defining
46086         their replacements, to allow for hypothetical systems where these
46087         may be defined as macros but not available in libraries.
46088
46089 2007-10-27  Bruno Haible  <bruno@clisp.org>
46090
46091         * doc/gnulib.texi: Invoke @firstparagraphindent.
46092         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46093         changes in gnulib.
46094         (Source changes): New section.
46095
46096 2007-10-26  Bruno Haible  <bruno@clisp.org>
46097
46098         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46099         borrowed from autoconf.
46100
46101 2007-10-26  Bruno Haible  <bruno@clisp.org>
46102
46103         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46104         strerror returned the empty string. Needed on HP-UX 11.00.
46105
46106 2007-10-24  Micah Cowan  <micah@cowan.name>
46107
46108         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46109         * build-aux/bootstrap: Remove support for now-unnecessary option,
46110         --cvs-user, and envvars CVS_USER, CVS_RSH.
46111
46112 2007-10-24  Jim Meyering  <meyering@redhat.com>
46113
46114         Avoid diagnostics from sha1sum when there is no cached checksum.
46115         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46116         if the po.s1 file hasn't been created yet.
46117
46118         * build-aux/bootstrap: Sync from coreutils:
46119         2007-10-24  Jim Meyering  <meyering@redhat.com>
46120         Get gnulib from the git repository, not from an obsolete cvs one.
46121         * build-aux/bootstrap: Suggestion from Micah Cowan.
46122         2007-10-04  Jim Meyering  <jim@meyering.net>
46123         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46124         (update_po_files): Work also when there are no .po files in po/.
46125
46126 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46127
46128         * README: Append ".git" to git and cg examples.
46129         Problem reported by Benoit Sigoure.
46130
46131 2007-10-23  Micah Cowan  <micah@cowan.name>
46132
46133         * users.txt: Add wget.
46134
46135 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46136
46137         Fix linking of some unistdio tests on FreeBSD.
46138         * modules/unistdio/u16-vsnprintf-tests
46139         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46140         * modules/unistdio/u16-vsprintf-tests
46141         (test_u16_vsnprintf1_LDADD): Likewise.
46142         * modules/unistdio/u32-vsnprintf-tests
46143         (test_u32_vsnprintf1_LDADD): Likewise.
46144         * modules/unistdio/u32-vsprintf-tests
46145         (test_u32_vsprintf1_LDADD): Likewise.
46146         * modules/unistdio/u8-vsnprintf-tests
46147         (test_u8_vsnprintf1_LDADD): Likewise.
46148         * modules/unistdio/u8-vsprintf-tests
46149         (test_u8_vsprintf1_LDADD): Likewise.
46150         * modules/unistdio/ulc-vsnprintf-tests
46151         (test_ulc_vsnprintf1_LDADD): Likewise.
46152         * modules/unistdio/ulc-vsprintf-tests
46153         (test_ulc_vsprintf1_LDADD): Likewise.
46154
46155         Fix linking of some uniconv tests on FreeBSD.
46156         * modules/uniconv/u16-conv-from-enc-tests
46157         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46158         * modules/uniconv/u16-conv-to-enc-tests
46159         (test_u16_conv_to_enc_LDADD): Likewise.
46160         * modules/uniconv/u16-strconv-from-enc-tests
46161         (test_u16_strconv_from_enc_LDADD): Likewise.
46162         * modules/uniconv/u16-strconv-to-enc-tests
46163         (test_u16_strconv_to_enc_LDADD): Likewise.
46164         * modules/uniconv/u32-conv-from-enc-tests
46165         (test_u32_conv_from_enc_LDADD): Likewise.
46166         * modules/uniconv/u32-conv-to-enc-tests
46167         (test_u32_conv_to_enc_LDADD): Likewise.
46168         * modules/uniconv/u32-strconv-from-enc-tests
46169         (test_u32_strconv_from_enc_LDADD): Likewise.
46170         * modules/uniconv/u32-strconv-to-enc-tests
46171         (test_u32_strconv_to_enc_LDADD): Likewise.
46172         * modules/uniconv/u8-conv-from-enc-tests
46173         (test_u8_conv_from_enc_LDADD): Likewise.
46174         * modules/uniconv/u8-conv-to-enc-tests
46175         (test_u8_conv_to_enc_LDADD): Likewise.
46176         * modules/uniconv/u8-strconv-from-enc-tests
46177         (test_u8_strconv_from_enc_LDADD): Likewise.
46178         * modules/uniconv/u8-strconv-to-enc-tests
46179         (test_u8_strconv_to_enc_LDADD): Likewise.
46180
46181 2007-10-22  Bruno Haible  <bruno@clisp.org>
46182
46183         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46184         size.
46185
46186 2007-10-22  Eric Blake  <ebb9@byu.net>
46187
46188         Tweak x*printf documentation.
46189         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46190         variable name and comments.
46191         Suggested by Bruno Haible.
46192
46193 2007-10-22  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/acl.c (copy_acl): Fix file name in comment.
46196
46197 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46198
46199         Fix Tru64 problem with stdbool.h.
46200         * lib/stdbool.in.h (false, true):
46201         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46202         Don't declare as an enum in this situation; it runs afoul of Tru64.
46203         Problem reported by Steven M. Schweda in
46204         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46205
46206 2007-10-22  Eric Blake  <ebb9@byu.net>
46207
46208         Also wrap vf?printf.
46209         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46210         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46211         (xvprintf, xvfprintf): New functions.
46212
46213 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46214
46215         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46216         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46217
46218         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46219         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46220
46221 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46222
46223         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46224         by Bruno Haible.
46225
46226 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46227
46228         * lib/getloadavg.c
46229         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46230         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46231
46232         * tests/test-i-ring.c: Work for C89.
46233
46234 2007-10-22  Bruno Haible  <bruno@clisp.org>
46235
46236         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46237         -1u, in preprocessor expression, so that we don't test for the bug
46238         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46240
46241 2007-10-22  Eric Blake  <ebb9@byu.net>
46242
46243         * tests/test-yesno.sh: Silence stderr during test.
46244
46245 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46246
46247         * modules/crypto/gc-camellia: New file.
46248
46249         * m4/gc-camellia.m4: New file.
46250
46251         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46252
46253         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46254
46255 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46256
46257         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46258         --help to stdout.  Reported by sms@antinode.org (Steven
46259         M. Schweda).
46260
46261 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46262
46263         * users.txt: Fix link to libksba.
46264
46265 2007-10-21  Ben Pfaff  <blp@gnu.org>
46266
46267         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46268         round.c roundf implementation that depends on floorf and ceilf to
46269         be tested unconditionally.
46270
46271 2007-10-21  Ben Pfaff  <blp@gnu.org>
46272
46273         * m4/check-libm-func.m4: Removed.
46274         * m4/check-math-lib.m4: New file.
46275         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46276         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46277         definition and lack of AC_LIBOBJ([roundf]).
46278         * m4/roundl.m4: Ditto, and similarly for roundl.
46279         * modules/round: Reference new m4 file.
46280         * modules/roundf: Ditto.
46281         * modules/roundl: Ditto.
46282         * tests/test-round2.c (main): Use ROUND instead of round.
46283         Bug report from Bruno Haible.
46284
46285 2007-10-21  Bruno Haible  <bruno@clisp.org>
46286
46287         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46288         context.
46289
46290 2007-10-21  Bruno Haible  <bruno@clisp.org>
46291
46292         * tests/test-wcwidth.c (main): Allow negative result for some control
46293         characters.
46294
46295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46296         Needed on OSF/1 5.1.
46297
46298 2007-10-21  Bruno Haible  <bruno@clisp.org>
46299
46300         * tests/test-floorf1.c: Include isnanf.h.
46301         (main): Use isnanf() instead of isnan().
46302         * tests/test-ceilf1.c: Include isnanf.h.
46303         (main): Use isnanf() instead of isnan().
46304         * tests/test-truncf1.c: Include isnanf.h.
46305         (main): Use isnanf() instead of isnan().
46306         * tests/test-roundf1.c: Include isnanf.h.
46307         (main): Use isnanf() instead of isnan().
46308
46309 2007-10-21  Eric Blake  <ebb9@byu.net>
46310
46311         * users.txt: Update URL for m4.
46312
46313 2007-10-21  Bruno Haible  <bruno@clisp.org>
46314
46315         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46316
46317 2007-10-21  Bruno Haible  <bruno@clisp.org>
46318
46319         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46320         Git's management files if the CVS files are not present.
46321
46322 2007-10-20  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46325         gcc-3.4.x.
46326
46327 2007-10-20  Ben Pfaff  <blp@gnu.org>
46328
46329         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46330         implementations.
46331         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46332         * lib/round.c: New file.
46333         * lib/roundf.c: New file.
46334         * lib/roundl.c: New file.
46335         * m4/round.m4: New file.
46336         * m4/roundf.m4: New file.
46337         * m4/roundl.m4: New file.
46338         * m4/check-libm-func-m4: New file.
46339         * modules/math: Replace round, roundf, roundl related @VARS@ in
46340         math.in.h.
46341         * modules/round: New file.
46342         * modules/round-tests: New file.
46343         * modules/roundf: New file.
46344         * modules/roundf-tests: New file.
46345         * modules/roundl: New file.
46346         * modules/roundl-tests: New file.
46347         * tests/test-round1.c: New file.
46348         * tests/test-round2.c: New file.
46349         * tests/test-roundf1.c: New file.
46350         * tests/test-roundf2.c: New file.
46351         * tests/test-roundl.c: New file.
46352         * doc/functions/round.texi: Mention round module.
46353         * doc/functions/roundf.texi: Mention roundf module.
46354         * doc/functions/roundl.texi: Mention roundl module.
46355         * MODULES.html.sh: Mention new modules.
46356         Thanks to Bruno Haible for suggestions.
46357
46358 2007-10-20  Jim Meyering  <meyering@redhat.com>
46359
46360         * lib/xprintf.c: Include <config.h> unconditionally.
46361
46362         Change xprintf's license to GPL.
46363         * modules/xprintf (License): s/LGPL/GPL/, since this module
46364         depends on modules (exit and exitfail) which are GPL.
46365         Suggestion from Bruno Haible.
46366
46367         xprintf fixes.
46368         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46369         Use a clearer diagnostic.
46370         Patch from Bruno Haible.
46371
46372 2007-10-20  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46375         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46377
46378 2007-10-20  Bruno Haible  <bruno@clisp.org>
46379
46380         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46381         precision in the comparison result > x - 1 or similar.
46382         * tests/test-ceilf2.c (correct_result_p): Likewise.
46383         * tests/test-truncf2.c (correct_result_p): Likewise.
46384         * tests/test-trunc2.c (correct_result_p): Likewise.
46385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46386
46387 2007-10-20  Bruno Haible  <bruno@clisp.org>
46388
46389         * modules/ceil: New file.
46390         * m4/ceil.m4: New file.
46391         * doc/functions/ceil.texi: Mention the 'ceil' module.
46392
46393 2007-10-20  Bruno Haible  <bruno@clisp.org>
46394
46395         * modules/floor: New file.
46396         * m4/floor.m4: New file.
46397         * doc/functions/floor.texi: Mention the 'floor' module.
46398
46399 2007-10-20  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46402         of %a.
46403         * modules/floorf-tests (Depends-on): Likewise.
46404         * modules/truncf-tests (Depends-on): Likewise.
46405         * modules/trunc-tests (Depends-on): Likewise.
46406         Reported by Ben Pfaff.
46407
46408 2007-10-19  Jim Meyering  <meyering@redhat.com>
46409
46410         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46411         Don't bother testing specific errno values.  Just test ferror.
46412
46413         New module: xprintf
46414         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46415
46416 2007-10-19  Bruno Haible  <bruno@clisp.org>
46417
46418         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46419         syntax.
46420         * modules/javaexec (Makefile.am): Likewise.
46421         * modules/relocatable-prog (Makefile.am): Likewise.
46422         Suggested by Jim Meyering.
46423
46424 2007-10-18  Bruno Haible  <bruno@clisp.org>
46425
46426         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46427         Reported by Jim Meyering.
46428
46429 2007-10-18  Eric Blake  <ebb9@byu.net>
46430
46431         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46432
46433 2007-10-18  Bruno Haible  <bruno@clisp.org>
46434
46435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46436         the format string into writable memory. Needed in Fortify conditions.
46437
46438 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46439             Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46442         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46443         * modules/trim (Depends-on): Add mbchar.
46444         (configure.ac): Add gl_FUNC_MBRTOWC.
46445         (Makefile.am): Augment lib_SOURCES.
46446
46447 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46448
46449         Modify glob.c to use fstatat and dirfd, to simplify it.
46450         Suggested by Eric Blake.
46451         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46452         Don't include <stdbool.h>; not used.
46453         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46454         (link_exists_p): Simplify implementation, since we can now assume
46455         dirfd and fstatat.
46456         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46457
46458 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46459
46460         * gnulib-tool (func_get_dependencies): Fix sed script to
46461         match only tests.
46462
46463 2007-10-17  Bruno Haible  <bruno@clisp.org>
46464
46465         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46466         allow locale names without encoding suffix.
46467         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46468         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46469
46470 2007-10-16  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46473         * lib/getgroups.c (getgroups): Likewise.
46474         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46475
46476 2007-10-16  Bruno Haible  <bruno@clisp.org>
46477
46478         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46479         * modules/malloc-posix (License): Likewise.
46480         * modules/realloc-posix (License): Likewise.
46481         * modules/calloc-posix (License): Likewise.
46482         * modules/intprops (License): Change from GPL to LGPL, with
46483         Paul Eggert's approval.
46484
46485 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46486
46487         Merge glibc changes into lib/glob.c.
46488
46489         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46490         2007-10-15 04:59:03 UTC.  Here are the changes:
46491
46492         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46493
46494         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46495
46496         * lib/glob.c: Add some branch prediction throughout.
46497
46498         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46499
46500         [BZ #5103]
46501         * lib/glob.c (glob): Recognize patterns starting \/.
46502
46503         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46504
46505         [BZ #3996]
46506         * lib/glob.c (attribute_hidden): Define if not defined.
46507         (glob): Unescape dirname, filename or username when needed and not
46508         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46509         is NULL.  Handle unescaped [ in pattern without closing ].
46510         Don't pass GLOB_CHECK down to recursive glob for directories.
46511         (__glob_pattern_type): New function.
46512         (__glob_pattern_p): Implement using __glob_pattern_type.
46513         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46514         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46515         Remove unreachable code.
46516
46517         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46518
46519         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46520         explain why there are no leaks.
46521
46522         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46523
46524         [BZ #3253]
46525         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46526         time, rather allocate increasingly bigger arrays of pointers, if
46527         possible with alloca, if too large with malloc.
46528
46529 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46530
46531         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46532         Problem reported by H.Merijn Brand in
46533         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46536
46537 2007-10-15  Bruno Haible  <bruno@clisp.org>
46538
46539         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46540         with explicit rpl_ prefix.
46541         * lib/fopen.c (fopen): Likewise.
46542         * lib/freopen.c (freopen): Likewise.
46543         * lib/iconv.c (iconv): Likewise.
46544         * lib/iconv_close.c (iconv_close): Likewise.
46545
46546 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46547
46548         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46549
46550 2007-10-15  Bruno Haible  <bruno@clisp.org>
46551
46552         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46553         <stddef.h> instead of <stdlib.h> since we only need NULL.
46554         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46555
46556 2007-10-15  Bruno Haible  <bruno@clisp.org>
46557
46558         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46559         Replace paragraph talking about LIBOBJS.
46560         Reported by Colin Watson <cjwatson@debian.org>.
46561
46562 2007-10-15  Bruno Haible  <bruno@clisp.org>
46563
46564         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46565         <stdlib.h> before using NULL.
46566
46567 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46568
46569         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46570         Reported by Albert Chin <china@thewrittenword.com>.
46571
46572 2007-10-14  Bruno Haible  <bruno@clisp.org>
46573
46574         * modules/iconv_open-utf-tests: New file.
46575         * tests/test-iconv-utf.c: New file.
46576
46577         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46578         * modules/iconv_open-utf: New file.
46579         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46580         (iconv, iconv_close): New declarations.
46581         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46582         be defined.
46583         (iconv_open): Add special handling of conversion between UTF-8 and
46584         UTF-{16,32}{BE,LE}.
46585         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46586         * lib/iconv_close.c: New file.
46587         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46588         gl_FUNC_ICONV_OPEN.
46589         (gl_FUNC_ICONV_OPEN): Use it.
46590         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46591         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46592         and REPLACE_ICONV_UTF.
46593         * modules/iconv_open (Depends-on): Add c-strcase.
46594         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46595         ICONV_CONST.
46596         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46597
46598 2007-10-13  Albert Chin  <china@thewrittenword.com>
46599             Bruno Haible  <bruno@clisp.org>
46600
46601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46602         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46603
46604 2007-10-13  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46607         defined, use the ISO C99 inline semantics.
46608         * lib/argp.h (ARGP_EI): Likewise.
46609
46610 2007-10-13  Bruno Haible  <bruno@clisp.org>
46611
46612         Handle 'inline' change in gcc 4.3.0.
46613         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46614         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46615         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46616         argp_fmtstream_point): Disable 'extern' declaration if the function
46617         definition is going to be provided inline.
46618         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46619         semantics, not the ISO C99 inline semantics.
46620         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46621         'extern' declaration if the function definition is going to be provided
46622         inline.
46623         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46624         the GNU C inline semantics, not the ISO C99 inline semantics. With
46625         GCC 4.2, avoid a warning.
46626
46627 2007-10-13  Bruno Haible  <bruno@clisp.org>
46628
46629         * lib/freading.h (freading): Enable the use of __freading for
46630         glibc >= 2.7.
46631         * lib/freading.c (freading): Likewise.
46632
46633 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46634
46635         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46636         "warning: C99 inline functions are not supported; using GNU89".
46637
46638 2007-10-12  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46641         of 2.
46642         * tests/test-ceilf2.c: New file.
46643         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46644
46645         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46646         * modules/ceilf-tests: Update.
46647
46648 2007-10-12  Bruno Haible  <bruno@clisp.org>
46649
46650         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46651         of 2.
46652         * tests/test-floorf2.c: New file.
46653         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46654
46655         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46656         * modules/floorf-tests: Update.
46657
46658 2007-10-12  Bruno Haible  <bruno@clisp.org>
46659
46660         * tests/test-trunc2.c: New file.
46661         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46662
46663         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46664         * modules/trunc-tests: Update.
46665
46666 2007-10-12  Bruno Haible  <bruno@clisp.org>
46667
46668         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46669         of 2.
46670         * tests/test-truncf2.c: New file.
46671         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46672
46673         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46674         * modules/truncf-tests: Update.
46675
46676 2007-10-11  Eric Blake  <ebb9@byu.net>
46677
46678         Don't claim strerror is broken on Interix.
46679         * doc/functions/strerror.texi (strerror): Known broken systems are
46680         now Solaris 8, and not Interix.
46681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46682         Interix on cross-compile.
46683         Reported by Martin Koeppe in
46684         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46685
46686 2007-10-11  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/i-ring-tests: New file.
46689         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46690         instead of assert.
46691
46692 2007-10-11  Bruno Haible  <bruno@clisp.org>
46693
46694         * modules/filenamecat-tests: New file.
46695         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46696         * lib/filenamecat.c: Remove test code.
46697
46698 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46699
46700         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46701
46702         * lib/strerror.c: Include <string.h> always, to test interface,
46703         and to remove the need for the dummy.
46704         Include intprops.h to compute width instead of doing it ourselves
46705         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46706         (strerror): Define it to return NULL if there's no system strerror.
46707         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46708         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46709         ancient pre-strerror Unix systems well any more.  Saying "unknown
46710         system error" is enough.
46711         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46712         simpler strerror.c implementation.
46713         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46714         Simplify the tests to reflect the simpler strerror implementation.
46715         * modules/strerror (Depends-on): Add intprops.
46716
46717 2007-10-09  Eric Blake  <ebb9@byu.net>
46718
46719         Silence test-fpending.
46720         * modules/fpending-tests (Files): Add wrapper script.
46721         * tests/test-fpending.sh: New file.
46722
46723 2007-10-09  Bruno Haible  <bruno@clisp.org>
46724
46725         * MODULES.html.sh (func_module): Don't create a hyperlink for
46726         function names like 'printf_frexp'.
46727         (Misc): Add crc, memxor.
46728         (Characteristics of floating types): New section.
46729         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46730         isnanf-nolibm, signbit, trunc, truncf, truncl.
46731         (Enhancements for ISO C 99 functions): New subsection Input/output.
46732         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46733         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46734         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46735         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46736         (Enhancements for POSIX:2001 functions): Add chdir-long.
46737         (File system functions): Add areadlink, chdir-safer, read-file.
46738         Remove cycle-check.
46739         (File system as inode set): New section.
46740         (Date and time): Add gethrxtime.
46741         (Multithreading): Add openmp.
46742         (Internationalization functions): Add localename.
46743         (Unicode string functions): Add unistr/u*-mbsnlen.
46744         (Support for maintaining and releasing projects): Add git-version-gen.
46745         (Lone files): Remove directories.
46746
46747 2007-10-08  Ben Pfaff  <blp@gnu.org>
46748
46749         * lib/xmalloca.h: Fix typo in comment.
46750
46751 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46752
46753         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46754         when avoiding problems with integer overflow.  Use a portable test
46755         instead.
46756
46757 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46758
46759         * modules/dummy (License): Change to LGPLv2+.
46760         * modules/float (License): Likewise
46761         * modules/realloc (License): Likewise
46762         * modules/stdlib (License): Likewise
46763
46764 2007-10-07  Bruno Haible  <bruno@clisp.org>
46765
46766         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46767         * floor.c (TWO_MANT_DIG): Likewise.
46768         * ceil.c (TWO_MANT_DIG): Likewise.
46769         Reported by Ben Pfaff.
46770
46771 2007-10-07  Bruno Haible  <bruno@clisp.org>
46772
46773         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46774         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46775         * lib/frexp.c (FUNC): Likewise.
46776         * lib/printf-frexp.h (printf_frexp): Likewise.
46777         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46778         * lib/printf-frexp.c (FUNC): Likewise.
46779         Suggested by Jim Meyering.
46780
46781 2007-10-07  Jim Meyering  <meyering@redhat.com>
46782
46783         Make xnanosleep's integer overflow test more robust.
46784         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46785         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46786
46787 2007-10-07  Bruno Haible  <bruno@clisp.org>
46788
46789         * NEWS: Mention the license change.
46790
46791         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46792         abbreviations in the modules files.
46793
46794         Change copyright notice from GPLv2+ to GPLv3+.
46795         * README: Change copyright notice.
46796         * MODULES.html.sh: Likewise.
46797         * build-aux/bootstrap.conf: Likewise.
46798         * build-aux/config.libpath: Likewise.
46799         * build-aux/csharpcomp.sh.in: Likewise.
46800         * build-aux/csharpexec.sh.in: Likewise.
46801         * build-aux/install-reloc: Likewise.
46802         * build-aux/javacomp.sh.in: Likewise.
46803         * build-aux/javaexec.sh.in: Likewise.
46804         * build-aux/ldd.sh.in: Likewise.
46805         * build-aux/reloc-ldflags: Likewise.
46806         * build-aux/relocatable.sh.in: Likewise.
46807         * build-aux/x-to-1.in: Likewise.
46808         * check-module: Likewise.
46809         * config/srclistvars.sh: Likewise.
46810         * gnulib-tool: Likewise.
46811         * lib/acl-internal.h: Likewise.
46812         * lib/acl.c: Likewise.
46813         * lib/acl.h: Likewise.
46814         * lib/acl_entries.c: Likewise.
46815         * lib/areadlink-with-size.c: Likewise.
46816         * lib/areadlink.c: Likewise.
46817         * lib/areadlink.h: Likewise.
46818         * lib/argmatch.c: Likewise.
46819         * lib/argmatch.h: Likewise.
46820         * lib/argp-ba.c: Likewise.
46821         * lib/argp-eexst.c: Likewise.
46822         * lib/argp-fmtstream.c: Likewise.
46823         * lib/argp-fmtstream.h: Likewise.
46824         * lib/argp-fs-xinl.c: Likewise.
46825         * lib/argp-help.c: Likewise.
46826         * lib/argp-namefrob.h: Likewise.
46827         * lib/argp-parse.c: Likewise.
46828         * lib/argp-pin.c: Likewise.
46829         * lib/argp-pv.c: Likewise.
46830         * lib/argp-pvh.c: Likewise.
46831         * lib/argp-xinl.c: Likewise.
46832         * lib/argp.h: Likewise.
46833         * lib/at-func.c: Likewise.
46834         * lib/atanl.c: Likewise.
46835         * lib/backupfile.c: Likewise.
46836         * lib/backupfile.h: Likewise.
46837         * lib/basename.c: Likewise.
46838         * lib/binary-io.h: Likewise.
46839         * lib/byteswap.in.h: Likewise.
46840         * lib/c-stack.c: Likewise.
46841         * lib/c-stack.h: Likewise.
46842         * lib/c-strcasestr.c: Likewise.
46843         * lib/c-strcasestr.h: Likewise.
46844         * lib/c-strstr.c: Likewise.
46845         * lib/c-strstr.h: Likewise.
46846         * lib/c-strtod.c: Likewise.
46847         * lib/calloc.c: Likewise.
46848         * lib/canon-host.c: Likewise.
46849         * lib/canon-host.h: Likewise.
46850         * lib/canonicalize-lgpl.c: Likewise.
46851         * lib/canonicalize.c: Likewise.
46852         * lib/canonicalize.h: Likewise.
46853         * lib/ceil.c: Likewise.
46854         * lib/ceilf.c: Likewise.
46855         * lib/ceill.c: Likewise.
46856         * lib/chdir-long.c: Likewise.
46857         * lib/chdir-long.h: Likewise.
46858         * lib/chdir-safer.c: Likewise.
46859         * lib/chdir-safer.h: Likewise.
46860         * lib/chown.c: Likewise.
46861         * lib/classpath.c: Likewise.
46862         * lib/classpath.h: Likewise.
46863         * lib/clean-temp.c: Likewise.
46864         * lib/clean-temp.h: Likewise.
46865         * lib/cloexec.c: Likewise.
46866         * lib/close-stream.c: Likewise.
46867         * lib/closein.c: Likewise.
46868         * lib/closein.h: Likewise.
46869         * lib/closeout.c: Likewise.
46870         * lib/closeout.h: Likewise.
46871         * lib/concat-filename.c: Likewise.
46872         * lib/copy-file.c: Likewise.
46873         * lib/copy-file.h: Likewise.
46874         * lib/count-one-bits.h: Likewise.
46875         * lib/crc.c: Likewise.
46876         * lib/crc.h: Likewise.
46877         * lib/creat-safer.c: Likewise.
46878         * lib/csharpcomp.c: Likewise.
46879         * lib/csharpcomp.h: Likewise.
46880         * lib/csharpexec.c: Likewise.
46881         * lib/csharpexec.h: Likewise.
46882         * lib/cycle-check.c: Likewise.
46883         * lib/cycle-check.h: Likewise.
46884         * lib/diacrit.c: Likewise.
46885         * lib/diacrit.h: Likewise.
46886         * lib/diffseq.h: Likewise.
46887         * lib/dirchownmod.c: Likewise.
46888         * lib/dirent.in.h: Likewise.
46889         * lib/dirfd.c: Likewise.
46890         * lib/dirfd.h: Likewise.
46891         * lib/dirname.c: Likewise.
46892         * lib/dirname.h: Likewise.
46893         * lib/dummy.c: Likewise.
46894         * lib/dup-safer.c: Likewise.
46895         * lib/dup2.c: Likewise.
46896         * lib/eealloc.h: Likewise.
46897         * lib/error.c: Likewise.
46898         * lib/error.h: Likewise.
46899         * lib/euidaccess.c: Likewise.
46900         * lib/exclude.c: Likewise.
46901         * lib/exclude.h: Likewise.
46902         * lib/execute.c: Likewise.
46903         * lib/execute.h: Likewise.
46904         * lib/exitfail.c: Likewise.
46905         * lib/exitfail.h: Likewise.
46906         * lib/expl.c: Likewise.
46907         * lib/fatal-signal.c: Likewise.
46908         * lib/fatal-signal.h: Likewise.
46909         * lib/fbufmode.c: Likewise.
46910         * lib/fbufmode.h: Likewise.
46911         * lib/fchdir.c: Likewise.
46912         * lib/fchmodat.c: Likewise.
46913         * lib/fchownat.c: Likewise.
46914         * lib/fcntl--.h: Likewise.
46915         * lib/fcntl-safer.h: Likewise.
46916         * lib/fcntl.in.h: Likewise.
46917         * lib/fd-safer.c: Likewise.
46918         * lib/fflush.c: Likewise.
46919         * lib/file-has-acl.c: Likewise.
46920         * lib/file-set.c: Likewise.
46921         * lib/file-type.c: Likewise.
46922         * lib/file-type.h: Likewise.
46923         * lib/fileblocks.c: Likewise.
46924         * lib/filemode.c: Likewise.
46925         * lib/filemode.h: Likewise.
46926         * lib/filename.h: Likewise.
46927         * lib/filenamecat.c: Likewise.
46928         * lib/filenamecat.h: Likewise.
46929         * lib/findprog.c: Likewise.
46930         * lib/findprog.h: Likewise.
46931         * lib/float.in.h: Likewise.
46932         * lib/floor.c: Likewise.
46933         * lib/floorf.c: Likewise.
46934         * lib/floorl.c: Likewise.
46935         * lib/fopen-safer.c: Likewise.
46936         * lib/fopen.c: Likewise.
46937         * lib/fpending.c: Likewise.
46938         * lib/fpending.h: Likewise.
46939         * lib/fprintf.c: Likewise.
46940         * lib/fprintftime.h: Likewise.
46941         * lib/fpucw.h: Likewise.
46942         * lib/fpurge.c: Likewise.
46943         * lib/fpurge.h: Likewise.
46944         * lib/freadable.c: Likewise.
46945         * lib/freadable.h: Likewise.
46946         * lib/freadahead.c: Likewise.
46947         * lib/freadahead.h: Likewise.
46948         * lib/freading.c: Likewise.
46949         * lib/freading.h: Likewise.
46950         * lib/free.c: Likewise.
46951         * lib/freopen.c: Likewise.
46952         * lib/frexp.c: Likewise.
46953         * lib/frexpl.c: Likewise.
46954         * lib/fseek.c: Likewise.
46955         * lib/fseterr.c: Likewise.
46956         * lib/fseterr.h: Likewise.
46957         * lib/fstatat.c: Likewise.
46958         * lib/fstrcmp.c: Likewise.
46959         * lib/fstrcmp.h: Likewise.
46960         * lib/fsusage.c: Likewise.
46961         * lib/fsusage.h: Likewise.
46962         * lib/ftell.c: Likewise.
46963         * lib/ftello.c: Likewise.
46964         * lib/fts-cycle.c: Likewise.
46965         * lib/fts.c: Likewise.
46966         * lib/fts_.h: Likewise.
46967         * lib/full-read.c: Likewise.
46968         * lib/full-read.h: Likewise.
46969         * lib/full-write.c: Likewise.
46970         * lib/full-write.h: Likewise.
46971         * lib/fwritable.c: Likewise.
46972         * lib/fwritable.h: Likewise.
46973         * lib/fwriteerror.c: Likewise.
46974         * lib/fwriteerror.h: Likewise.
46975         * lib/fwriting.c: Likewise.
46976         * lib/fwriting.h: Likewise.
46977         * lib/gcd.c: Likewise.
46978         * lib/gcd.h: Likewise.
46979         * lib/getcwd.c: Likewise.
46980         * lib/getdate.h: Likewise.
46981         * lib/getdate.y: Likewise.
46982         * lib/getdomainname.c: Likewise.
46983         * lib/getdomainname.h: Likewise.
46984         * lib/getgroups.c: Likewise.
46985         * lib/gethostname.c: Likewise.
46986         * lib/gethrxtime.c: Likewise.
46987         * lib/gethrxtime.h: Likewise.
46988         * lib/getloadavg.c: Likewise.
46989         * lib/getndelim2.c: Likewise.
46990         * lib/getndelim2.h: Likewise.
46991         * lib/getnline.c: Likewise.
46992         * lib/getnline.h: Likewise.
46993         * lib/getopt.c: Likewise.
46994         * lib/getopt.in.h: Likewise.
46995         * lib/getopt1.c: Likewise.
46996         * lib/getopt_int.h: Likewise.
46997         * lib/getpagesize.h: Likewise.
46998         * lib/getsubopt.c: Likewise.
46999         * lib/gettime.c: Likewise.
47000         * lib/getugroups.c: Likewise.
47001         * lib/getugroups.h: Likewise.
47002         * lib/getusershell.c: Likewise.
47003         * lib/gl_anyavltree_list1.h: Likewise.
47004         * lib/gl_anyavltree_list2.h: Likewise.
47005         * lib/gl_anyhash_list1.h: Likewise.
47006         * lib/gl_anyhash_list2.h: Likewise.
47007         * lib/gl_anylinked_list1.h: Likewise.
47008         * lib/gl_anylinked_list2.h: Likewise.
47009         * lib/gl_anyrbtree_list1.h: Likewise.
47010         * lib/gl_anyrbtree_list2.h: Likewise.
47011         * lib/gl_anytree_list1.h: Likewise.
47012         * lib/gl_anytree_list2.h: Likewise.
47013         * lib/gl_anytree_oset.h: Likewise.
47014         * lib/gl_anytreehash_list1.h: Likewise.
47015         * lib/gl_anytreehash_list2.h: Likewise.
47016         * lib/gl_array_list.c: Likewise.
47017         * lib/gl_array_list.h: Likewise.
47018         * lib/gl_array_oset.c: Likewise.
47019         * lib/gl_array_oset.h: Likewise.
47020         * lib/gl_avltree_list.c: Likewise.
47021         * lib/gl_avltree_list.h: Likewise.
47022         * lib/gl_avltree_oset.c: Likewise.
47023         * lib/gl_avltree_oset.h: Likewise.
47024         * lib/gl_avltreehash_list.c: Likewise.
47025         * lib/gl_avltreehash_list.h: Likewise.
47026         * lib/gl_carray_list.c: Likewise.
47027         * lib/gl_carray_list.h: Likewise.
47028         * lib/gl_linked_list.c: Likewise.
47029         * lib/gl_linked_list.h: Likewise.
47030         * lib/gl_linkedhash_list.c: Likewise.
47031         * lib/gl_linkedhash_list.h: Likewise.
47032         * lib/gl_list.c: Likewise.
47033         * lib/gl_list.h: Likewise.
47034         * lib/gl_oset.c: Likewise.
47035         * lib/gl_oset.h: Likewise.
47036         * lib/gl_rbtree_list.c: Likewise.
47037         * lib/gl_rbtree_list.h: Likewise.
47038         * lib/gl_rbtree_oset.c: Likewise.
47039         * lib/gl_rbtree_oset.h: Likewise.
47040         * lib/gl_rbtreehash_list.c: Likewise.
47041         * lib/gl_rbtreehash_list.h: Likewise.
47042         * lib/gl_sublist.c: Likewise.
47043         * lib/gl_sublist.h: Likewise.
47044         * lib/group-member.c: Likewise.
47045         * lib/group-member.h: Likewise.
47046         * lib/hard-locale.c: Likewise.
47047         * lib/hard-locale.h: Likewise.
47048         * lib/hash-pjw.c: Likewise.
47049         * lib/hash-pjw.h: Likewise.
47050         * lib/hash-triple.c: Likewise.
47051         * lib/hash.c: Likewise.
47052         * lib/hash.h: Likewise.
47053         * lib/human.c: Likewise.
47054         * lib/human.h: Likewise.
47055         * lib/i-ring.c: Likewise.
47056         * lib/i-ring.h: Likewise.
47057         * lib/idcache.c: Likewise.
47058         * lib/imaxabs.c: Likewise.
47059         * lib/imaxdiv.c: Likewise.
47060         * lib/inet_pton.c: Likewise.
47061         * lib/inet_pton.h: Likewise.
47062         * lib/intprops.h: Likewise.
47063         * lib/inttostr.c: Likewise.
47064         * lib/inttostr.h: Likewise.
47065         * lib/inttypes.in.h: Likewise.
47066         * lib/isapipe.c: Likewise.
47067         * lib/isdir.c: Likewise.
47068         * lib/isnan.c: Likewise.
47069         * lib/isnan.h: Likewise.
47070         * lib/isnanf.c: Likewise.
47071         * lib/isnanf.h: Likewise.
47072         * lib/isnanl-nolibm.h: Likewise.
47073         * lib/isnanl.c: Likewise.
47074         * lib/isnanl.h: Likewise.
47075         * lib/javacomp.c: Likewise.
47076         * lib/javacomp.h: Likewise.
47077         * lib/javaexec.c: Likewise.
47078         * lib/javaexec.h: Likewise.
47079         * lib/javaversion.c: Likewise.
47080         * lib/javaversion.h: Likewise.
47081         * lib/javaversion.java: Likewise.
47082         * lib/lbrkprop.h: Likewise.
47083         * lib/lchmod.h: Likewise.
47084         * lib/lchown.c: Likewise.
47085         * lib/ldexpl.c: Likewise.
47086         * lib/linebreak.c: Likewise.
47087         * lib/linebreak.h: Likewise.
47088         * lib/linebuffer.c: Likewise.
47089         * lib/linebuffer.h: Likewise.
47090         * lib/locale.in.h: Likewise.
47091         * lib/logl.c: Likewise.
47092         * lib/long-options.c: Likewise.
47093         * lib/long-options.h: Likewise.
47094         * lib/lstat.c: Likewise.
47095         * lib/lstat.h: Likewise.
47096         * lib/math.in.h: Likewise.
47097         * lib/mbchar.c: Likewise.
47098         * lib/mbchar.h: Likewise.
47099         * lib/mbfile.h: Likewise.
47100         * lib/mbiter.h: Likewise.
47101         * lib/mbscasecmp.c: Likewise.
47102         * lib/mbscasestr.c: Likewise.
47103         * lib/mbschr.c: Likewise.
47104         * lib/mbscspn.c: Likewise.
47105         * lib/mbslen.c: Likewise.
47106         * lib/mbsncasecmp.c: Likewise.
47107         * lib/mbsnlen.c: Likewise.
47108         * lib/mbspbrk.c: Likewise.
47109         * lib/mbspcasecmp.c: Likewise.
47110         * lib/mbsrchr.c: Likewise.
47111         * lib/mbssep.c: Likewise.
47112         * lib/mbsspn.c: Likewise.
47113         * lib/mbsstr.c: Likewise.
47114         * lib/mbstok_r.c: Likewise.
47115         * lib/mbswidth.c: Likewise.
47116         * lib/mbswidth.h: Likewise.
47117         * lib/mbuiter.h: Likewise.
47118         * lib/memcasecmp.c: Likewise.
47119         * lib/memcasecmp.h: Likewise.
47120         * lib/memchr.c: Likewise.
47121         * lib/memcmp.c: Likewise.
47122         * lib/memcoll.c: Likewise.
47123         * lib/memcoll.h: Likewise.
47124         * lib/memcpy.c: Likewise.
47125         * lib/memrchr.c: Likewise.
47126         * lib/mkancesdirs.c: Likewise.
47127         * lib/mkdir-p.c: Likewise.
47128         * lib/mkdir-p.h: Likewise.
47129         * lib/mkdir.c: Likewise.
47130         * lib/mkdirat.c: Likewise.
47131         * lib/mkdtemp.c: Likewise.
47132         * lib/mkstemp-safer.c: Likewise.
47133         * lib/mkstemp.c: Likewise.
47134         * lib/modechange.c: Likewise.
47135         * lib/modechange.h: Likewise.
47136         * lib/mountlist.c: Likewise.
47137         * lib/mountlist.h: Likewise.
47138         * lib/mpsort.c: Likewise.
47139         * lib/nanosleep.c: Likewise.
47140         * lib/obstack.c: Likewise.
47141         * lib/obstack.h: Likewise.
47142         * lib/open-safer.c: Likewise.
47143         * lib/open.c: Likewise.
47144         * lib/openat-die.c: Likewise.
47145         * lib/openat-priv.h: Likewise.
47146         * lib/openat-proc.c: Likewise.
47147         * lib/openat.c: Likewise.
47148         * lib/openat.h: Likewise.
47149         * lib/pagealign_alloc.c: Likewise.
47150         * lib/pagealign_alloc.h: Likewise.
47151         * lib/physmem.c: Likewise.
47152         * lib/physmem.h: Likewise.
47153         * lib/pipe-safer.c: Likewise.
47154         * lib/pipe.c: Likewise.
47155         * lib/pipe.h: Likewise.
47156         * lib/posixtm.c: Likewise.
47157         * lib/posixtm.h: Likewise.
47158         * lib/posixver.c: Likewise.
47159         * lib/printf-frexp.c: Likewise.
47160         * lib/printf-frexp.h: Likewise.
47161         * lib/printf-frexpl.c: Likewise.
47162         * lib/printf-frexpl.h: Likewise.
47163         * lib/printf.c: Likewise.
47164         * lib/progname.c: Likewise.
47165         * lib/progname.h: Likewise.
47166         * lib/progreloc.c: Likewise.
47167         * lib/putenv.c: Likewise.
47168         * lib/quote.c: Likewise.
47169         * lib/quote.h: Likewise.
47170         * lib/quotearg.c: Likewise.
47171         * lib/quotearg.h: Likewise.
47172         * lib/raise.c: Likewise.
47173         * lib/readline.c: Likewise.
47174         * lib/readline.h: Likewise.
47175         * lib/readlink.c: Likewise.
47176         * lib/readtokens.c: Likewise.
47177         * lib/readtokens.h: Likewise.
47178         * lib/readtokens0.c: Likewise.
47179         * lib/readtokens0.h: Likewise.
47180         * lib/readutmp.c: Likewise.
47181         * lib/readutmp.h: Likewise.
47182         * lib/realloc.c: Likewise.
47183         * lib/relocwrapper.c: Likewise.
47184         * lib/rename-dest-slash.c: Likewise.
47185         * lib/rename.c: Likewise.
47186         * lib/rmdir.c: Likewise.
47187         * lib/rpmatch.c: Likewise.
47188         * lib/safe-read.c: Likewise.
47189         * lib/safe-read.h: Likewise.
47190         * lib/safe-write.c: Likewise.
47191         * lib/safe-write.h: Likewise.
47192         * lib/same-inode.h: Likewise.
47193         * lib/same.c: Likewise.
47194         * lib/same.h: Likewise.
47195         * lib/save-cwd.c: Likewise.
47196         * lib/save-cwd.h: Likewise.
47197         * lib/savedir.c: Likewise.
47198         * lib/savedir.h: Likewise.
47199         * lib/savewd.c: Likewise.
47200         * lib/savewd.h: Likewise.
47201         * lib/search.in.h: Likewise.
47202         * lib/setenv.c: Likewise.
47203         * lib/setenv.h: Likewise.
47204         * lib/settime.c: Likewise.
47205         * lib/sh-quote.c: Likewise.
47206         * lib/sh-quote.h: Likewise.
47207         * lib/sig2str.c: Likewise.
47208         * lib/sig2str.h: Likewise.
47209         * lib/signal.in.h: Likewise.
47210         * lib/signbitd.c: Likewise.
47211         * lib/signbitf.c: Likewise.
47212         * lib/signbitl.c: Likewise.
47213         * lib/sigprocmask.c: Likewise.
47214         * lib/sincosl.c: Likewise.
47215         * lib/sleep.c: Likewise.
47216         * lib/sprintf.c: Likewise.
47217         * lib/sqrtl.c: Likewise.
47218         * lib/stat-time.h: Likewise.
47219         * lib/stdio--.h: Likewise.
47220         * lib/stdio-safer.h: Likewise.
47221         * lib/stdlib--.h: Likewise.
47222         * lib/stdlib-safer.h: Likewise.
47223         * lib/stdlib.in.h: Likewise.
47224         * lib/stpcpy.c: Likewise.
47225         * lib/stpncpy.c: Likewise.
47226         * lib/strchrnul.c: Likewise.
47227         * lib/strcspn.c: Likewise.
47228         * lib/strerror.c: Likewise.
47229         * lib/strftime.c: Likewise.
47230         * lib/strftime.h: Likewise.
47231         * lib/striconveh.c: Likewise.
47232         * lib/striconveh.h: Likewise.
47233         * lib/striconveha.c: Likewise.
47234         * lib/striconveha.h: Likewise.
47235         * lib/stripslash.c: Likewise.
47236         * lib/strnlen1.c: Likewise.
47237         * lib/strnlen1.h: Likewise.
47238         * lib/strtod.c: Likewise.
47239         * lib/strtoimax.c: Likewise.
47240         * lib/strtok_r.c: Likewise.
47241         * lib/strtol.c: Likewise.
47242         * lib/strtoll.c: Likewise.
47243         * lib/strtoul.c: Likewise.
47244         * lib/strtoull.c: Likewise.
47245         * lib/sysexits.in.h: Likewise.
47246         * lib/tempname.c: Likewise.
47247         * lib/tempname.h: Likewise.
47248         * lib/timespec.h: Likewise.
47249         * lib/tls.c: Likewise.
47250         * lib/tls.h: Likewise.
47251         * lib/tmpdir.c: Likewise.
47252         * lib/tmpdir.h: Likewise.
47253         * lib/tmpfile-safer.c: Likewise.
47254         * lib/tmpfile.c: Likewise.
47255         * lib/trigl.c: Likewise.
47256         * lib/trigl.h: Likewise.
47257         * lib/trim.c: Likewise.
47258         * lib/trim.h: Likewise.
47259         * lib/trunc.c: Likewise.
47260         * lib/truncf.c: Likewise.
47261         * lib/truncl.c: Likewise.
47262         * lib/tsearch.c: Likewise.
47263         * lib/unicodeio.c: Likewise.
47264         * lib/unicodeio.h: Likewise.
47265         * lib/unistd--.h: Likewise.
47266         * lib/unistd-safer.h: Likewise.
47267         * lib/unistdio/ulc-fprintf.c: Likewise.
47268         * lib/unistdio/ulc-vfprintf.c: Likewise.
47269         * lib/unlinkdir.c: Likewise.
47270         * lib/unlinkdir.h: Likewise.
47271         * lib/unlocked-io.h: Likewise.
47272         * lib/unsetenv.c: Likewise.
47273         * lib/userspec.c: Likewise.
47274         * lib/utime.c: Likewise.
47275         * lib/utimecmp.c: Likewise.
47276         * lib/utimecmp.h: Likewise.
47277         * lib/utimens.c: Likewise.
47278         * lib/verify.h: Likewise.
47279         * lib/verror.c: Likewise.
47280         * lib/verror.h: Likewise.
47281         * lib/version-etc-fsf.c: Likewise.
47282         * lib/version-etc.c: Likewise.
47283         * lib/version-etc.h: Likewise.
47284         * lib/vfprintf.c: Likewise.
47285         * lib/vprintf.c: Likewise.
47286         * lib/vsprintf.c: Likewise.
47287         * lib/w32spawn.h: Likewise.
47288         * lib/wait-process.c: Likewise.
47289         * lib/wait-process.h: Likewise.
47290         * lib/wcwidth.c: Likewise.
47291         * lib/write-any-file.c: Likewise.
47292         * lib/xalloc-die.c: Likewise.
47293         * lib/xalloc.h: Likewise.
47294         * lib/xasprintf.c: Likewise.
47295         * lib/xgetcwd.c: Likewise.
47296         * lib/xgetcwd.h: Likewise.
47297         * lib/xgetdomainname.c: Likewise.
47298         * lib/xgetdomainname.h: Likewise.
47299         * lib/xgethostname.c: Likewise.
47300         * lib/xmalloc.c: Likewise.
47301         * lib/xmalloca.c: Likewise.
47302         * lib/xmalloca.h: Likewise.
47303         * lib/xmemcoll.c: Likewise.
47304         * lib/xnanosleep.c: Likewise.
47305         * lib/xreadlink.c: Likewise.
47306         * lib/xreadlink.h: Likewise.
47307         * lib/xsetenv.c: Likewise.
47308         * lib/xsetenv.h: Likewise.
47309         * lib/xstriconv.c: Likewise.
47310         * lib/xstriconv.h: Likewise.
47311         * lib/xstrndup.c: Likewise.
47312         * lib/xstrndup.h: Likewise.
47313         * lib/xstrtod.c: Likewise.
47314         * lib/xstrtod.h: Likewise.
47315         * lib/xstrtol-error.c: Likewise.
47316         * lib/xstrtol.c: Likewise.
47317         * lib/xstrtol.h: Likewise.
47318         * lib/xtime.h: Likewise.
47319         * lib/xvasprintf.c: Likewise.
47320         * lib/xvasprintf.h: Likewise.
47321         * lib/yesno.c: Likewise.
47322         * lib/yesno.h: Likewise.
47323         * posix-modules: Likewise.
47324         * tests/test-alloca-opt.c: Likewise.
47325         * tests/test-arcfour.c: Likewise.
47326         * tests/test-arctwo.c: Likewise.
47327         * tests/test-argmatch.c: Likewise.
47328         * tests/test-argp-2.sh: Likewise.
47329         * tests/test-argp.c: Likewise.
47330         * tests/test-arpa_inet.c: Likewise.
47331         * tests/test-array_list.c: Likewise.
47332         * tests/test-array_oset.c: Likewise.
47333         * tests/test-atexit.c: Likewise.
47334         * tests/test-avltree_list.c: Likewise.
47335         * tests/test-avltree_oset.c: Likewise.
47336         * tests/test-avltreehash_list.c: Likewise.
47337         * tests/test-base64.c: Likewise.
47338         * tests/test-binary-io.c: Likewise.
47339         * tests/test-byteswap.c: Likewise.
47340         * tests/test-c-ctype.c: Likewise.
47341         * tests/test-c-strcasecmp.c: Likewise.
47342         * tests/test-c-strcasestr.c: Likewise.
47343         * tests/test-c-strncasecmp.c: Likewise.
47344         * tests/test-c-strstr.c: Likewise.
47345         * tests/test-canonicalize-lgpl.c: Likewise.
47346         * tests/test-canonicalize.c: Likewise.
47347         * tests/test-carray_list.c: Likewise.
47348         * tests/test-ceilf.c: Likewise.
47349         * tests/test-ceill.c: Likewise.
47350         * tests/test-count-one-bits.c: Likewise.
47351         * tests/test-crc.c: Likewise.
47352         * tests/test-dirname.c: Likewise.
47353         * tests/test-fbufmode.c: Likewise.
47354         * tests/test-fcntl.c: Likewise.
47355         * tests/test-fflush.c: Likewise.
47356         * tests/test-floorf.c: Likewise.
47357         * tests/test-floorl.c: Likewise.
47358         * tests/test-fopen.c: Likewise.
47359         * tests/test-fprintf-posix.c: Likewise.
47360         * tests/test-fprintf-posix.h: Likewise.
47361         * tests/test-fpurge.c: Likewise.
47362         * tests/test-freadable.c: Likewise.
47363         * tests/test-freadahead.c: Likewise.
47364         * tests/test-freading.c: Likewise.
47365         * tests/test-freopen.c: Likewise.
47366         * tests/test-frexp.c: Likewise.
47367         * tests/test-frexpl.c: Likewise.
47368         * tests/test-fseek.c: Likewise.
47369         * tests/test-fseeko.c: Likewise.
47370         * tests/test-fseterr.c: Likewise.
47371         * tests/test-fstrcmp.c: Likewise.
47372         * tests/test-ftell.c: Likewise.
47373         * tests/test-ftello.c: Likewise.
47374         * tests/test-fwritable.c: Likewise.
47375         * tests/test-fwriting.c: Likewise.
47376         * tests/test-getaddrinfo.c: Likewise.
47377         * tests/test-getpass.c: Likewise.
47378         * tests/test-gettimeofday.c: Likewise.
47379         * tests/test-hmac-md5.c: Likewise.
47380         * tests/test-hmac-sha1.c: Likewise.
47381         * tests/test-iconv.c: Likewise.
47382         * tests/test-iconvme.c: Likewise.
47383         * tests/test-inttypes.c: Likewise.
47384         * tests/test-isnan.c: Likewise.
47385         * tests/test-isnanf.c: Likewise.
47386         * tests/test-isnanl-nolibm.c: Likewise.
47387         * tests/test-isnanl.c: Likewise.
47388         * tests/test-isnanl.h: Likewise.
47389         * tests/test-ldexpl.c: Likewise.
47390         * tests/test-linked_list.c: Likewise.
47391         * tests/test-linkedhash_list.c: Likewise.
47392         * tests/test-locale.c: Likewise.
47393         * tests/test-localename.c: Likewise.
47394         * tests/test-lock.c: Likewise.
47395         * tests/test-lseek.c: Likewise.
47396         * tests/test-malloca.c: Likewise.
47397         * tests/test-math.c: Likewise.
47398         * tests/test-mbscasecmp.c: Likewise.
47399         * tests/test-mbscasestr1.c: Likewise.
47400         * tests/test-mbscasestr2.c: Likewise.
47401         * tests/test-mbscasestr3.c: Likewise.
47402         * tests/test-mbscasestr4.c: Likewise.
47403         * tests/test-mbschr.c: Likewise.
47404         * tests/test-mbscspn.c: Likewise.
47405         * tests/test-mbsncasecmp.c: Likewise.
47406         * tests/test-mbspbrk.c: Likewise.
47407         * tests/test-mbspcasecmp.c: Likewise.
47408         * tests/test-mbsrchr.c: Likewise.
47409         * tests/test-mbsspn.c: Likewise.
47410         * tests/test-mbsstr1.c: Likewise.
47411         * tests/test-mbsstr2.c: Likewise.
47412         * tests/test-mbsstr3.c: Likewise.
47413         * tests/test-md5.c: Likewise.
47414         * tests/test-memmem.c: Likewise.
47415         * tests/test-netinet_in.c: Likewise.
47416         * tests/test-open.c: Likewise.
47417         * tests/test-printf-frexp.c: Likewise.
47418         * tests/test-printf-frexpl.c: Likewise.
47419         * tests/test-printf-posix.c: Likewise.
47420         * tests/test-printf-posix.h: Likewise.
47421         * tests/test-rbtree_list.c: Likewise.
47422         * tests/test-rbtree_oset.c: Likewise.
47423         * tests/test-rbtreehash_list.c: Likewise.
47424         * tests/test-read-file.c: Likewise.
47425         * tests/test-rijndael.c: Likewise.
47426         * tests/test-search.c: Likewise.
47427         * tests/test-signbit.c: Likewise.
47428         * tests/test-sleep.c: Likewise.
47429         * tests/test-snprintf-posix.c: Likewise.
47430         * tests/test-snprintf-posix.h: Likewise.
47431         * tests/test-snprintf.c: Likewise.
47432         * tests/test-sprintf-posix.c: Likewise.
47433         * tests/test-sprintf-posix.h: Likewise.
47434         * tests/test-stat-time.c: Likewise.
47435         * tests/test-stdbool.c: Likewise.
47436         * tests/test-stdint.c: Likewise.
47437         * tests/test-stdio.c: Likewise.
47438         * tests/test-stdlib.c: Likewise.
47439         * tests/test-stpncpy.c: Likewise.
47440         * tests/test-strcasestr.c: Likewise.
47441         * tests/test-striconv.c: Likewise.
47442         * tests/test-striconveh.c: Likewise.
47443         * tests/test-striconveha.c: Likewise.
47444         * tests/test-string.c: Likewise.
47445         * tests/test-sys_select.c: Likewise.
47446         * tests/test-sys_socket.c: Likewise.
47447         * tests/test-sys_stat.c: Likewise.
47448         * tests/test-sys_time.c: Likewise.
47449         * tests/test-sysexits.c: Likewise.
47450         * tests/test-time.c: Likewise.
47451         * tests/test-tls.c: Likewise.
47452         * tests/test-trunc.c: Likewise.
47453         * tests/test-truncf.c: Likewise.
47454         * tests/test-truncl.c: Likewise.
47455         * tests/test-unistd.c: Likewise.
47456         * tests/test-vasnprintf-posix.c: Likewise.
47457         * tests/test-vasnprintf-posix2.c: Likewise.
47458         * tests/test-vasnprintf.c: Likewise.
47459         * tests/test-vasprintf-posix.c: Likewise.
47460         * tests/test-vasprintf.c: Likewise.
47461         * tests/test-verify.c: Likewise.
47462         * tests/test-vfprintf-posix.c: Likewise.
47463         * tests/test-vprintf-posix.c: Likewise.
47464         * tests/test-vsnprintf-posix.c: Likewise.
47465         * tests/test-vsnprintf.c: Likewise.
47466         * tests/test-vsprintf-posix.c: Likewise.
47467         * tests/test-wchar.c: Likewise.
47468         * tests/test-wctype.c: Likewise.
47469         * tests/test-wcwidth.c: Likewise.
47470         * tests/test-xstrtol.c: Likewise.
47471         * tests/test-xvasprintf.c: Likewise.
47472         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47473         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47474         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47475         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47476         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47477         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47478         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47479         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47480         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47481         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47482         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47483         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47484         * tests/uniname/test-uninames.c: Likewise.
47485         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47486         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47487         * tests/unistdio/test-u16-printf1.h: Likewise.
47488         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47489         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47490         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47491         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47492         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47493         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47494         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47495         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47496         * tests/unistdio/test-u32-printf1.h: Likewise.
47497         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47498         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47499         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47500         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47501         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47502         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47503         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47504         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47505         * tests/unistdio/test-u8-printf1.h: Likewise.
47506         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47507         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47508         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47509         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47510         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47511         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47512         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47513         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47514         * tests/unistdio/test-ulc-printf1.h: Likewise.
47515         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47516         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47517         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47518         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47519         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47520         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47521         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47522         * tests/uniwidth/test-u16-width.c: Likewise.
47523         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47524         * tests/uniwidth/test-u32-width.c: Likewise.
47525         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47526         * tests/uniwidth/test-u8-width.c: Likewise.
47527         * tests/uniwidth/test-uc_width.c: Likewise.
47528         * config/srclist-update: Likewise.
47529         (fixlicense): Update to GPLv3+.
47530
47531         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47532         * tests/test-tsearch.c: Change copyright notice.
47533
47534         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47535         * lib/c-strcaseeq.h: Change copyright notice.
47536         * lib/streq.h: Likewise.
47537         * lib/uniconv.h: Likewise.
47538         * lib/uniconv/u-conv-from-enc.h: Likewise.
47539         * lib/uniconv/u-conv-to-enc.h: Likewise.
47540         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47541         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47542         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47543         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47544         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47545         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47546         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47547         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47548         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47549         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47550         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47551         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47552         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47553         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47554         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47555         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47556         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47557         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47558         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47559         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47560         * lib/uniname.h: Likewise.
47561         * lib/uniname/uniname.c: Likewise.
47562         * lib/unistdio.h: Likewise.
47563         * lib/unistdio/u-asnprintf.h: Likewise.
47564         * lib/unistdio/u-asprintf.h: Likewise.
47565         * lib/unistdio/u-printf-args.c: Likewise.
47566         * lib/unistdio/u-printf-args.h: Likewise.
47567         * lib/unistdio/u-printf-parse.h: Likewise.
47568         * lib/unistdio/u-snprintf.h: Likewise.
47569         * lib/unistdio/u-sprintf.h: Likewise.
47570         * lib/unistdio/u-vasprintf.h: Likewise.
47571         * lib/unistdio/u-vsnprintf.h: Likewise.
47572         * lib/unistdio/u-vsprintf.h: Likewise.
47573         * lib/unistdio/u16-asnprintf.c: Likewise.
47574         * lib/unistdio/u16-asprintf.c: Likewise.
47575         * lib/unistdio/u16-printf-parse.c: Likewise.
47576         * lib/unistdio/u16-snprintf.c: Likewise.
47577         * lib/unistdio/u16-sprintf.c: Likewise.
47578         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47579         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47580         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47581         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47582         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47583         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47584         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47585         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47586         * lib/unistdio/u16-vasnprintf.c: Likewise.
47587         * lib/unistdio/u16-vasprintf.c: Likewise.
47588         * lib/unistdio/u16-vsnprintf.c: Likewise.
47589         * lib/unistdio/u16-vsprintf.c: Likewise.
47590         * lib/unistdio/u32-asnprintf.c: Likewise.
47591         * lib/unistdio/u32-asprintf.c: Likewise.
47592         * lib/unistdio/u32-printf-parse.c: Likewise.
47593         * lib/unistdio/u32-snprintf.c: Likewise.
47594         * lib/unistdio/u32-sprintf.c: Likewise.
47595         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47596         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47597         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47598         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47599         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47600         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47601         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47602         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47603         * lib/unistdio/u32-vasnprintf.c: Likewise.
47604         * lib/unistdio/u32-vasprintf.c: Likewise.
47605         * lib/unistdio/u32-vsnprintf.c: Likewise.
47606         * lib/unistdio/u32-vsprintf.c: Likewise.
47607         * lib/unistdio/u8-asnprintf.c: Likewise.
47608         * lib/unistdio/u8-asprintf.c: Likewise.
47609         * lib/unistdio/u8-printf-parse.c: Likewise.
47610         * lib/unistdio/u8-snprintf.c: Likewise.
47611         * lib/unistdio/u8-sprintf.c: Likewise.
47612         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47613         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47614         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47615         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47616         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47617         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47618         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47619         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47620         * lib/unistdio/u8-vasnprintf.c: Likewise.
47621         * lib/unistdio/u8-vasprintf.c: Likewise.
47622         * lib/unistdio/u8-vsnprintf.c: Likewise.
47623         * lib/unistdio/u8-vsprintf.c: Likewise.
47624         * lib/unistdio/ulc-asnprintf.c: Likewise.
47625         * lib/unistdio/ulc-asprintf.c: Likewise.
47626         * lib/unistdio/ulc-printf-parse.c: Likewise.
47627         * lib/unistdio/ulc-snprintf.c: Likewise.
47628         * lib/unistdio/ulc-sprintf.c: Likewise.
47629         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47630         * lib/unistdio/ulc-vasprintf.c: Likewise.
47631         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47632         * lib/unistdio/ulc-vsprintf.c: Likewise.
47633         * lib/unistr.h: Likewise.
47634         * lib/unistr/u-cpy-alloc.h: Likewise.
47635         * lib/unistr/u-cpy.h: Likewise.
47636         * lib/unistr/u-endswith.h: Likewise.
47637         * lib/unistr/u-move.h: Likewise.
47638         * lib/unistr/u-set.h: Likewise.
47639         * lib/unistr/u-startswith.h: Likewise.
47640         * lib/unistr/u-stpcpy.h: Likewise.
47641         * lib/unistr/u-stpncpy.h: Likewise.
47642         * lib/unistr/u-strcat.h: Likewise.
47643         * lib/unistr/u-strcpy.h: Likewise.
47644         * lib/unistr/u-strcspn.h: Likewise.
47645         * lib/unistr/u-strdup.h: Likewise.
47646         * lib/unistr/u-strlen.h: Likewise.
47647         * lib/unistr/u-strncat.h: Likewise.
47648         * lib/unistr/u-strncpy.h: Likewise.
47649         * lib/unistr/u-strnlen.h: Likewise.
47650         * lib/unistr/u-strpbrk.h: Likewise.
47651         * lib/unistr/u-strspn.h: Likewise.
47652         * lib/unistr/u-strstr.h: Likewise.
47653         * lib/unistr/u-strtok.h: Likewise.
47654         * lib/unistr/u16-check.c: Likewise.
47655         * lib/unistr/u16-chr.c: Likewise.
47656         * lib/unistr/u16-cmp.c: Likewise.
47657         * lib/unistr/u16-cpy-alloc.c: Likewise.
47658         * lib/unistr/u16-cpy.c: Likewise.
47659         * lib/unistr/u16-endswith.c: Likewise.
47660         * lib/unistr/u16-mblen.c: Likewise.
47661         * lib/unistr/u16-mbsnlen.c: Likewise.
47662         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47663         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47664         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47665         * lib/unistr/u16-mbtouc.c: Likewise.
47666         * lib/unistr/u16-mbtoucr.c: Likewise.
47667         * lib/unistr/u16-move.c: Likewise.
47668         * lib/unistr/u16-next.c: Likewise.
47669         * lib/unistr/u16-prev.c: Likewise.
47670         * lib/unistr/u16-set.c: Likewise.
47671         * lib/unistr/u16-startswith.c: Likewise.
47672         * lib/unistr/u16-stpcpy.c: Likewise.
47673         * lib/unistr/u16-stpncpy.c: Likewise.
47674         * lib/unistr/u16-strcat.c: Likewise.
47675         * lib/unistr/u16-strchr.c: Likewise.
47676         * lib/unistr/u16-strcmp.c: Likewise.
47677         * lib/unistr/u16-strcpy.c: Likewise.
47678         * lib/unistr/u16-strcspn.c: Likewise.
47679         * lib/unistr/u16-strdup.c: Likewise.
47680         * lib/unistr/u16-strlen.c: Likewise.
47681         * lib/unistr/u16-strmblen.c: Likewise.
47682         * lib/unistr/u16-strmbtouc.c: Likewise.
47683         * lib/unistr/u16-strncat.c: Likewise.
47684         * lib/unistr/u16-strncmp.c: Likewise.
47685         * lib/unistr/u16-strncpy.c: Likewise.
47686         * lib/unistr/u16-strnlen.c: Likewise.
47687         * lib/unistr/u16-strpbrk.c: Likewise.
47688         * lib/unistr/u16-strrchr.c: Likewise.
47689         * lib/unistr/u16-strspn.c: Likewise.
47690         * lib/unistr/u16-strstr.c: Likewise.
47691         * lib/unistr/u16-strtok.c: Likewise.
47692         * lib/unistr/u16-to-u32.c: Likewise.
47693         * lib/unistr/u16-to-u8.c: Likewise.
47694         * lib/unistr/u16-uctomb-aux.c: Likewise.
47695         * lib/unistr/u16-uctomb.c: Likewise.
47696         * lib/unistr/u32-check.c: Likewise.
47697         * lib/unistr/u32-chr.c: Likewise.
47698         * lib/unistr/u32-cmp.c: Likewise.
47699         * lib/unistr/u32-cpy-alloc.c: Likewise.
47700         * lib/unistr/u32-cpy.c: Likewise.
47701         * lib/unistr/u32-endswith.c: Likewise.
47702         * lib/unistr/u32-mblen.c: Likewise.
47703         * lib/unistr/u32-mbsnlen.c: Likewise.
47704         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47705         * lib/unistr/u32-mbtouc.c: Likewise.
47706         * lib/unistr/u32-mbtoucr.c: Likewise.
47707         * lib/unistr/u32-move.c: Likewise.
47708         * lib/unistr/u32-next.c: Likewise.
47709         * lib/unistr/u32-prev.c: Likewise.
47710         * lib/unistr/u32-set.c: Likewise.
47711         * lib/unistr/u32-startswith.c: Likewise.
47712         * lib/unistr/u32-stpcpy.c: Likewise.
47713         * lib/unistr/u32-stpncpy.c: Likewise.
47714         * lib/unistr/u32-strcat.c: Likewise.
47715         * lib/unistr/u32-strchr.c: Likewise.
47716         * lib/unistr/u32-strcmp.c: Likewise.
47717         * lib/unistr/u32-strcpy.c: Likewise.
47718         * lib/unistr/u32-strcspn.c: Likewise.
47719         * lib/unistr/u32-strdup.c: Likewise.
47720         * lib/unistr/u32-strlen.c: Likewise.
47721         * lib/unistr/u32-strmblen.c: Likewise.
47722         * lib/unistr/u32-strmbtouc.c: Likewise.
47723         * lib/unistr/u32-strncat.c: Likewise.
47724         * lib/unistr/u32-strncmp.c: Likewise.
47725         * lib/unistr/u32-strncpy.c: Likewise.
47726         * lib/unistr/u32-strnlen.c: Likewise.
47727         * lib/unistr/u32-strpbrk.c: Likewise.
47728         * lib/unistr/u32-strrchr.c: Likewise.
47729         * lib/unistr/u32-strspn.c: Likewise.
47730         * lib/unistr/u32-strstr.c: Likewise.
47731         * lib/unistr/u32-strtok.c: Likewise.
47732         * lib/unistr/u32-to-u16.c: Likewise.
47733         * lib/unistr/u32-to-u8.c: Likewise.
47734         * lib/unistr/u32-uctomb.c: Likewise.
47735         * lib/unistr/u8-check.c: Likewise.
47736         * lib/unistr/u8-chr.c: Likewise.
47737         * lib/unistr/u8-cmp.c: Likewise.
47738         * lib/unistr/u8-cpy-alloc.c: Likewise.
47739         * lib/unistr/u8-cpy.c: Likewise.
47740         * lib/unistr/u8-endswith.c: Likewise.
47741         * lib/unistr/u8-mblen.c: Likewise.
47742         * lib/unistr/u8-mbsnlen.c: Likewise.
47743         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47744         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47745         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47746         * lib/unistr/u8-mbtouc.c: Likewise.
47747         * lib/unistr/u8-mbtoucr.c: Likewise.
47748         * lib/unistr/u8-move.c: Likewise.
47749         * lib/unistr/u8-next.c: Likewise.
47750         * lib/unistr/u8-prev.c: Likewise.
47751         * lib/unistr/u8-set.c: Likewise.
47752         * lib/unistr/u8-startswith.c: Likewise.
47753         * lib/unistr/u8-stpcpy.c: Likewise.
47754         * lib/unistr/u8-stpncpy.c: Likewise.
47755         * lib/unistr/u8-strcat.c: Likewise.
47756         * lib/unistr/u8-strchr.c: Likewise.
47757         * lib/unistr/u8-strcmp.c: Likewise.
47758         * lib/unistr/u8-strcpy.c: Likewise.
47759         * lib/unistr/u8-strcspn.c: Likewise.
47760         * lib/unistr/u8-strdup.c: Likewise.
47761         * lib/unistr/u8-strlen.c: Likewise.
47762         * lib/unistr/u8-strmblen.c: Likewise.
47763         * lib/unistr/u8-strmbtouc.c: Likewise.
47764         * lib/unistr/u8-strncat.c: Likewise.
47765         * lib/unistr/u8-strncmp.c: Likewise.
47766         * lib/unistr/u8-strncpy.c: Likewise.
47767         * lib/unistr/u8-strnlen.c: Likewise.
47768         * lib/unistr/u8-strpbrk.c: Likewise.
47769         * lib/unistr/u8-strrchr.c: Likewise.
47770         * lib/unistr/u8-strspn.c: Likewise.
47771         * lib/unistr/u8-strstr.c: Likewise.
47772         * lib/unistr/u8-strtok.c: Likewise.
47773         * lib/unistr/u8-to-u16.c: Likewise.
47774         * lib/unistr/u8-to-u32.c: Likewise.
47775         * lib/unistr/u8-uctomb-aux.c: Likewise.
47776         * lib/unistr/u8-uctomb.c: Likewise.
47777         * lib/unitypes.h: Likewise.
47778         * lib/uniwidth.h: Likewise.
47779         * lib/uniwidth/cjk.h: Likewise.
47780         * lib/uniwidth/u16-strwidth.c: Likewise.
47781         * lib/uniwidth/u16-width.c: Likewise.
47782         * lib/uniwidth/u32-strwidth.c: Likewise.
47783         * lib/uniwidth/u32-width.c: Likewise.
47784         * lib/uniwidth/u8-strwidth.c: Likewise.
47785         * lib/uniwidth/u8-width.c: Likewise.
47786         * lib/uniwidth/width.c: Likewise.
47787
47788 2007-10-07  Bruno Haible  <bruno@clisp.org>
47789
47790         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47791         The file is still under LGPL (see modules/inttypes).
47792
47793 2007-10-06  Bruno Haible  <bruno@clisp.org>
47794
47795         * modules/trunc (Dependencies): Add 'extensions'.
47796         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47797         Reported by Ben Pfaff <blp@gnu.org>.
47798
47799 2007-10-06  Bruno Haible  <bruno@clisp.org>
47800
47801         * modules/freopen-tests: New file.
47802         * tests/test-freopen.c: New file.
47803
47804         * modules/fopen-tests: New file.
47805         * tests/test-fopen.c: New file.
47806
47807         * modules/fopen: New file.
47808         * lib/fopen.c: New file.
47809         * m4/fopen.m4: New file.
47810         * modules/freopen: New file.
47811         * lib/freopen.c: New file.
47812         * m4/freopen.m4: New file.
47813         * lib/stdio.in.h (fopen, freopen): New declarations.
47814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47815         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47816         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47817         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47818         * doc/functions/fopen.texi: Mention the 'fopen' module.
47819         * doc/functions/freopen.texi: Mention the 'freopen' module.
47820
47821 2007-10-06  Bruno Haible  <bruno@clisp.org>
47822
47823         * modules/open-tests: New file.
47824         * tests/test-open.c: New file.
47825
47826         * modules/open: New file.
47827         * lib/open.c: New file.
47828         * m4/open.m4: New file.
47829         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47830         lib/open.c does.
47831         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47832         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47833         macros.
47834         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47835         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47836         REPLACE_OPEN.
47837         * doc/functions/open.texi: Mention the 'open' module.
47838
47839 2007-10-04  Bruno Haible  <bruno@clisp.org>
47840
47841         * modules/ceill-tests: New file.
47842         * tests/test-ceill.c: New file.
47843
47844         * modules/ceill: New file.
47845         * lib/ceill.c: Replace entire file.
47846         * m4/ceill.m4: New file.
47847         * lib/math.in.h (ceill): Replace declaration.
47848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47849         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47850         * doc/functions/ceill.texi: Mention the 'ceill' module.
47851         * modules/mathl (Files): Remove lib/ceill.c.
47852         (Depends-on): Add ceill.
47853
47854 2007-10-04  Bruno Haible  <bruno@clisp.org>
47855
47856         * modules/ceilf-tests: New file.
47857         * tests/test-ceilf.c: New file.
47858
47859         * modules/ceilf: New file.
47860         * lib/ceil.c: New file.
47861         * lib/ceilf.c: New file.
47862         * m4/ceilf.m4: New file.
47863         * lib/math.in.h (ceilf): New declaration.
47864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47865         HAVE_DECL_CEILF.
47866         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47867         HAVE_DECL_CEILF.
47868         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47869
47870 2007-10-04  Bruno Haible  <bruno@clisp.org>
47871
47872         * modules/floorl-tests: New file.
47873         * tests/test-floorl.c: New file.
47874
47875         * modules/floorl: New file.
47876         * lib/floorl.c: Replace entire file.
47877         * m4/floorl.m4: New file.
47878         * lib/math.in.h (floorl): Replace declaration.
47879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47880         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47881         * doc/functions/floorl.texi: Mention the 'floorl' module.
47882         * modules/mathl (Files): Remove lib/floorl.c.
47883         (Depends-on): Add floorl.
47884
47885 2007-10-04  Bruno Haible  <bruno@clisp.org>
47886
47887         * modules/floorf-tests: New file.
47888         * tests/test-floorf.c: New file.
47889
47890         * modules/floorf: New file.
47891         * lib/floor.c: New file.
47892         * lib/floorf.c: New file.
47893         * m4/floorf.m4: New file.
47894         * lib/math.in.h (floorf): New declaration.
47895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47896         HAVE_DECL_FLOORF.
47897         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47898         HAVE_DECL_FLOORF.
47899         * doc/functions/floorf.texi: Mention the 'floorf' module.
47900
47901 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47902             Bruno Haible  <bruno@clisp.org>
47903
47904         Advertise for the Git server instead of the CVS server.
47905         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47906         repository instead of the CVS one.
47907         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47908         about all VCS systems generically.
47909         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47910
47911 2007-10-04  Bruno Haible  <bruno@clisp.org>
47912
47913         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47914         means.
47915         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47916
47917 2007-10-04  Bruno Haible  <bruno@clisp.org>
47918
47919         * modules/truncl-tests: New file.
47920         * tests/test-truncl.c: New file.
47921
47922         * modules/truncl: New file.
47923         * lib/truncl.c: New file.
47924         * m4/truncl.m4: New file.
47925         * lib/math.in.h (truncl): New declaration.
47926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47927         HAVE_DECL_TRUNCL.
47928         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47929         HAVE_DECL_TRUNCL.
47930         * doc/functions/truncl.texi: Mention the 'truncl' module.
47931
47932 2007-10-04  Bruno Haible  <bruno@clisp.org>
47933
47934         * modules/truncf-tests: New file.
47935         * tests/test-truncf.c: New file.
47936
47937         * modules/truncf: New file.
47938         * lib/trunc.c: Make paramerizable through USE_* macros.
47939         * lib/truncf.c: New file.
47940         * m4/truncf.m4: New file.
47941         * lib/math.in.h (truncf): New declaration.
47942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47943         HAVE_DECL_TRUNCF.
47944         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47945         HAVE_DECL_TRUNCF.
47946         * doc/functions/truncf.texi: Mention the 'truncf' module.
47947
47948 2007-10-03  Bruno Haible  <bruno@clisp.org>
47949
47950         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47951         augmentation also for tests modules.
47952         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47953         * modules/atexit-tests (Makefile.am): Likewise.
47954         * modules/binary-io-tests (Makefile.am): Likewise.
47955         * modules/c-strcase-tests (Makefile.am): Likewise.
47956         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47957         * modules/canonicalize-tests (Makefile.am): Likewise.
47958         * modules/closein-tests (Makefile.am): Likewise.
47959         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47960         * modules/freadahead-tests (Makefile.am): Likewise.
47961         * modules/fseek-tests (Makefile.am): Likewise.
47962         * modules/fseeko-tests (Makefile.am): Likewise.
47963         * modules/ftell-tests (Makefile.am): Likewise.
47964         * modules/ftello-tests (Makefile.am): Likewise.
47965         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47966         * modules/isnanl-tests (Makefile.am): Likewise.
47967         * modules/lseek-tests (Makefile.am): Likewise.
47968         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47969         * modules/mbscasestr-tests (Makefile.am): Likewise.
47970         * modules/mbschr-tests (Makefile.am): Likewise.
47971         * modules/mbscspn-tests (Makefile.am): Likewise.
47972         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47973         * modules/mbspbrk-tests (Makefile.am): Likewise.
47974         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47975         * modules/mbsrchr-tests (Makefile.am): Likewise.
47976         * modules/mbsspn-tests (Makefile.am): Likewise.
47977         * modules/mbsstr-tests (Makefile.am): Likewise.
47978         * modules/printf-posix-tests (Makefile.am): Likewise.
47979         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47980         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47981         * modules/tsearch-tests (Makefile.am): Likewise.
47982         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47983         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47984         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47985         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47986         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47987         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47988         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47989         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47990         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47991         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47992         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47993         * modules/xstrtol-tests (Makefile.am): Likewise.
47994         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47995         * modules/yesno-tests (Makefile.am): Likewise.
47996
47997 2007-10-03  Bruno Haible  <bruno@clisp.org>
47998
47999         * modules/trunc-tests: New file.
48000         * tests/test-trunc.c: New file.
48001
48002         * modules/trunc: New file.
48003         * lib/trunc.c: New file.
48004         * m4/trunc.m4: New file.
48005         * lib/math.in.h (trunc): New declaration.
48006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48007         HAVE_DECL_TRUNC.
48008         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48009         HAVE_DECL_TRUNC.
48010         * doc/functions/trunc.texi: Mention the 'trunc' module.
48011
48012 2007-10-03  Bruno Haible  <bruno@clisp.org>
48013
48014         * tests/test-fpending.c: New file, mostly copied
48015         from coreutils/lib/t-fpending.c.
48016         * modules/fpending-tests: New file.
48017
48018 2007-10-03  Bruno Haible  <bruno@clisp.org>
48019
48020         Port the stdio extensions to QNX (untested).
48021         * lib/fseterr.c (fseterr): Add support for QNX.
48022         * lib/fbufmode.c (fbufmode): Likewise.
48023         * lib/freadable.c (freadable): Likewise.
48024         * lib/fwritable.c (fwritable): Likewise.
48025         * lib/freading.c (freading): Likewise.
48026         * lib/fwriting.c (fwriting): Likewise.
48027         * lib/freadahead.c (freadahed): Likewise.
48028         * lib/fpurge.c (fpurge): Likewise.
48029         * lib/fseeko.c (rpl_fseeko): Likewise.
48030
48031 2007-10-03  Bruno Haible  <bruno@clisp.org>
48032             Jim Meyering  <jim@meyering.net>
48033             Eric Blake  <ebb9@byu.net>
48034
48035         * doc/relocatable.texi: Use @command instead of @program.
48036
48037 2007-10-02  Jim Meyering  <jim@meyering.net>
48038
48039         Perform one more "_.h" -> ".in.h" substitution.
48040         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48041         instead of unistd_.h here, too.
48042
48043 2007-10-01  Bruno Haible  <bruno@clisp.org>
48044
48045         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48046         Needed for the alloca-opt module.
48047
48048 2007-09-30  Bruno Haible  <bruno@clisp.org>
48049
48050         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48051         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48052         alloca_.h.
48053         * lib/argz.in.h: Renamed from lib/argz_.h.
48054         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48055         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48056         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48057         byteswap_.h.
48058         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48059         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48060         dirent_.h.
48061         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48062         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48063         fcntl_.h.
48064         * lib/float.in.h: Renamed from lib/float_.h.
48065         * modules/float (Files, Makefile.am): Use float.in.h instead of
48066         float_.h.
48067         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48068         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48069         fnmatch_.h.
48070         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48071         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48072         getopt_.h.
48073         * lib/glob.in.h: Renamed from lib/glob_.h.
48074         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48075         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48076         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48077         iconv_.h.
48078         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48079         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48080         inttypes_.h.
48081         * lib/locale.in.h: Renamed from lib/locale_.h.
48082         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48083         locale_.h.
48084         * lib/math.in.h: Renamed from lib/math_.h.
48085         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48086         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48087         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48088         of netinet_in_.h. Add dependency.
48089         * lib/poll.in.h: Renamed from lib/poll_.h.
48090         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48091         * lib/search.in.h: Renamed from lib/search_.h.
48092         * modules/search (Files, Makefile.am): Use search.in.h instead of
48093         search_.h.
48094         * lib/signal.in.h: Renamed from lib/signal_.h.
48095         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48096         _signal.h.
48097         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48098         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48099         stdbool_.h.
48100         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48101         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48102         stdint_.h.
48103         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48104         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48105         stdio_.h.
48106         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48107         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48108         stdlib_.h.
48109         * lib/string.in.h: Renamed from lib/string_.h.
48110         * modules/string (Files, Makefile.am): Use string.in.h instead of
48111         string_.h.
48112         * doc/gnulib-tool.texi (Initial import): Update.
48113         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48114         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48115         of sys_select_.h. Add dependency.
48116         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48117         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48118         of sys_socket_.h.
48119         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48120         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48121         sys_stat_.h.
48122         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48123         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48124         sys_time_.h.
48125         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48126         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48127         sysexits_.h.
48128         * lib/time.in.h: Renamed from lib/time_.h.
48129         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48130         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48131         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48132         unistd_.h.
48133         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48134         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48135         wchar_.h.
48136         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48137         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48138         wctype_.h.
48139         * build-aux/bootstrap (slurp): Update.
48140         * lib/.cppi-disable: Update.
48141
48142 2007-09-30  Bruno Haible  <bruno@clisp.org>
48143
48144         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48145         Needed on BeOS.
48146
48147 2007-09-30  Bruno Haible  <bruno@clisp.org>
48148
48149         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48150
48151 2007-09-29  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48154
48155 2007-09-29  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48158         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48159         * build-aux/install-reloc: Compile also areadlink.c.
48160         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48161
48162 2007-09-29  Bruno Haible  <bruno@clisp.org>
48163
48164         * gnulib-tool (func_emit_initmacro_done): Indentation.
48165
48166 2007-09-29  Bruno Haible  <bruno@clisp.org>
48167
48168         * README: Add CVS checkout update instructions.
48169         Info from Bob Proulx <bob@proulx.com>.
48170
48171 2007-09-28  Eric Blake  <ebb9@byu.net>
48172
48173         Provide move-if-change.
48174         * build-aux/move-if-change: New file, based on best practice
48175         rather than any canonical upstream location.
48176
48177 2007-09-28  Jim Meyering  <jim@meyering.net>
48178
48179         Fix canonicalize loop-detection corner case.
48180         Do not attempt to stat the symlink values stored via seen_triple.
48181         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48182         on linux-2.6.18, (but not 2.6.22).
48183         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48184         triple_compare.  The former compares dev,ino,filename, while the latter
48185         would actually stat dirname(filename) when dev and ino were equal.
48186         * lib/hash-triple.c: Install <string.h>.
48187         (STREQ): Define.
48188         (triple_compare_ino_str): New function.
48189         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48190
48191 2007-09-28  Eric Blake  <ebb9@byu.net>
48192
48193         Enforce that AC_REPLACE_FUNCS files exist.
48194         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48195         override check for typos.
48196
48197         Fix test-closein on Solaris 10.
48198         * tests/test-closein.c (main): Don't assume stdin can be inherited
48199         closed on all systems.
48200         * tests/test-closein.sh: Likewise.
48201         Reported by Piotr Tarnowski.
48202
48203 2007-09-28  Jim Meyering  <jim@meyering.net>
48204
48205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48206
48207 2007-09-27  Jim Meyering  <jim@meyering.net>
48208
48209         canonicalize: Avoid a false-positive cycle failure.
48210         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48211         Sort.  Remove cycle-check.
48212         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48213         not cycle-check.h.
48214         (seen_triple): New function.
48215         (canonicalize_filename_mode): Use it instead of cycle-check.
48216         * tests/test-canonicalize.c: Add a test for this bug.
48217         * tests/test-canonicalize.sh: Set up and run the test.
48218
48219         New module, file-set, from coreutils.
48220         * modules/file-set: Define it.
48221         * lib/file-set.c, lib/file-set.h: Implement.
48222
48223         New module, hash-triple, from coreutils.
48224         * modules/hash-triple: Define it.
48225         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48226
48227 2007-09-25  Eric Blake  <ebb9@byu.net>
48228
48229         Fix strerror on Interix.
48230         * lib/string_.h (strerror): Declare replacement.
48231         * doc/functions/strerror.texi (strerror): Document the Interix
48232         shortcoming.
48233         * modules/string (Makefile.am): Support new hooks.
48234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48235         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48236         gl_FUNC_STRERROR_SEPARATE.
48237         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48238         * lib/strerror.c (rpl_strerror): Provide replacement.
48239         * modules/strerror (Depends-on): Add string.
48240         (configure.ac): Detect use of module.
48241         * tests/test-strerror.c: New file.
48242         * modules/strerror-tests: New test module.
48243         * modules/argp (Depends-on): Add strerror.
48244         * modules/error (Depends-on): Likewise.
48245         Reported by Martin Koeppe.
48246
48247 2007-09-24  Bruno Haible  <bruno@clisp.org>
48248
48249         * README: Update git instructions.
48250
48251 2007-09-24  Eric Blake  <ebb9@byu.net>
48252
48253         Revert fpending breakage from 2007-09-08.
48254         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48255         __fpending.c.
48256
48257 2007-09-24  Jim Meyering  <jim@meyering.net>
48258
48259         filenamecat.c: Add a test.
48260         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48261         showing how the function works when DIR is the empty string.
48262
48263 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48264
48265         * tests/test-canonicalize.sh: Turn on executable bit.
48266
48267 2007-09-19  Eric Blake  <ebb9@byu.net>
48268
48269         * README: Update CVS instructions.
48270
48271 2007-09-18  Bruno Haible  <bruno@clisp.org>
48272
48273         * modules/areadlink: New file.
48274         * lib/areadlink.h (areadlink): New declaration.
48275         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48276
48277 2007-09-17  Jim Meyering  <jim@meyering.net>
48278
48279         * lib/savewd.c (ESTALE) [!defined]: Define.
48280         Reported to be required on Interix by Martin Koeppe.
48281
48282 2007-09-17  Bruno Haible  <bruno@clisp.org>
48283
48284         * gnulib-tool (func_version): Use $version.
48285
48286 2007-09-16  Bruno Haible  <bruno@clisp.org>
48287
48288         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48289         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48290         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48291         Reported by Greg Schafer <gschafer@zip.com.au>.
48292
48293 2007-09-15  Bruno Haible  <bruno@clisp.org>
48294
48295         * gnulib-tool (sed): Try a little harder to make bash understand the
48296         alias.
48297         Reported by Bruce Korb <bruce.korb@gmail.com>.
48298
48299 2007-09-13  Eric Blake  <ebb9@byu.net>
48300
48301         * ChangeLog: Remove conflict markers.
48302
48303 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48304
48305         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48306         Reported by Bruno Haible <bruno@clisp.org>.
48307
48308 2007-09-12  Bruno Haible  <bruno@clisp.org>
48309
48310         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48311         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48312         is not defined.
48313
48314 2007-09-12  Eric Blake  <ebb9@byu.net>
48315
48316         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48318         Autoconf definition.
48319         * modules/euidaccess (Depends-on): Add extensions, for
48320         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48321         * modules/fnmatch (Depends-on): Likewise.
48322         * modules/getaddrinfo (Depends-on): Likewise.
48323         * modules/getdelim (Depends-on): Likewise.
48324         * modules/getline (Depends-on): Likewise.
48325         * modules/getsubopt (Depends-on): Likewise.
48326         * modules/gettext (Depends-on): Likewise.
48327         * modules/group-member (Depends-on): Likewise.
48328         * modules/mbchar (Depends-on): Likewise.
48329         * modules/memmem (Depends-on): Likewise.
48330         * modules/mempcpy (Depends-on): Likewise.
48331         * modules/memrchr (Depends-on): Likewise.
48332         * modules/pagealign_alloc (Depends-on): Likewise.
48333         * modules/readutmp (Depends-on): Likewise.
48334         * modules/stpcpy (Depends-on): Likewise.
48335         * modules/stpncpy (Depends-on): Likewise.
48336         * modules/strchrnul (Depends-on): Likewise.
48337         * modules/strndup (Depends-on): Likewise.
48338         * modules/strsep (Depends-on): Likewise.
48339         * modules/strverscmp (Depends-on): Likewise.
48340         * modules/vasprintf (Depends-on): Likewise.
48341         * modules/wcwidth (Depends-on): Likewise.
48342         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48343         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48344         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48346         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48347         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48348         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48349         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48350         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48351         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48352         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48353         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48356         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48357         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48358         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48359         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48361         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48363         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48364         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48365         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48366         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48368         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48369         so that lock.m4 can be used in gettext without extensions module.
48370
48371 2007-09-11  Bruno Haible  <bruno@clisp.org>
48372
48373         * m4/isc-posix.m4: Remove file.
48374         Suggested by Eric Blake.
48375
48376 2007-09-11  Eric Blake  <ebb9@byu.net>
48377
48378         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48379
48380 2007-09-10  Bruno Haible  <bruno@clisp.org>
48381
48382         * posix-modules: Fix typo in error message.
48383         Reported by Matt <mkraai@beckman.com>.
48384
48385 2007-09-09  Bruno Haible  <bruno@clisp.org>
48386
48387         * doc/functions/getdelim.texi: Update list of platforms lacking the
48388         function.
48389         * doc/functions/getline.texi: Likewise.
48390
48391 2007-09-09  Jim Meyering  <jim@meyering.net>
48392
48393         * lib/hash.c (hash_initialize): Detect calloc failure.
48394         Reported by Bruno Haible.
48395
48396 2007-09-09  Bruno Haible  <bruno@clisp.org>
48397
48398         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48399         malloc or realloc fails.
48400
48401 2007-09-09  Bruno Haible  <bruno@clisp.org>
48402
48403         * modules/getcwd (Depends-on): Add malloc-posix.
48404         * modules/glob (Depends-on): Likewise.
48405         * modules/putenv (Depends-on): Likewise.
48406         * modules/strdup (Depends-on): Likewise.
48407         * modules/getdelim (Depends-on): Add realloc-posix.
48408         * modules/read-file (Depends-on): Likewise.
48409
48410 2007-09-09  Bruno Haible  <bruno@clisp.org>
48411
48412         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48413         (gl_FUNC_MALLOC_POSIX): Require it.
48414         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48415         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48416         * modules/realloc (Files): Add m4/malloc.m4.
48417         * modules/calloc (Files): Likewise.
48418
48419 2007-09-09  Bruno Haible  <bruno@clisp.org>
48420
48421         * modules/malloc-posix: New file.
48422         * modules/malloc (Depends-on): Add malloc-posix.
48423         * lib/malloc.c: Include errno.h.
48424         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48425         and a POSIX-compatible malloc into a single function. Set ENOMEM
48426         when returning NULL.
48427         * m4/malloc.m4: New file.
48428         * doc/functions/malloc.texi: Mention the malloc-posix module.
48429         * lib/stdlib_.h (malloc): New declaration.
48430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48431         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48432         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48433         and HAVE_MALLOC_POSIX.
48434
48435 2007-09-09  Bruno Haible  <bruno@clisp.org>
48436
48437         * modules/realloc-posix: New file.
48438         * modules/realloc (Depends-on): Add realloc-posix.
48439         * lib/realloc.c: Include errno.h.
48440         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48441         and a POSIX-compatible realloc into a single function. Set ENOMEM
48442         when returning NULL.
48443         * m4/realloc.m4: New file.
48444         * doc/functions/realloc.texi: Mention the realloc-posix module.
48445         * lib/stdlib_.h (realloc): New declaration.
48446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48447         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48448         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48449         and HAVE_REALLOC_POSIX.
48450
48451 2007-09-09  Bruno Haible  <bruno@clisp.org>
48452
48453         * modules/calloc-posix: New file.
48454         * modules/calloc (Depends-on): Add calloc-posix.
48455         * lib/calloc.c: Include errno.h.
48456         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48457         and a POSIX-compatible calloc into a single function. Set ENOMEM
48458         when returning NULL.
48459         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48460         * doc/functions/calloc.texi: Mention the calloc-posix module.
48461         * lib/stdlib_.h (calloc): New declaration.
48462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48463         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48464         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48465         and HAVE_CALLOC_POSIX.
48466
48467 2007-09-09  Bruno Haible  <bruno@clisp.org>
48468
48469         Allow for modules to show an arbitrary notice.
48470         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48471         * gnulib-tool: New option --extract-notice.
48472         (func_usage): Document it.
48473         (sed_extract_prog): Update.
48474         (func_get_notice): New function.
48475         (func_modules_notice): New function.
48476         (func_import, func_create_testdir): Invoke it.
48477         Suggested by Jim Meyering.
48478
48479 2007-09-09  Bruno Haible  <bruno@clisp.org>
48480
48481         * gnulib-tool: New options --verbose, --quiet.
48482         (func_usage): Document them.
48483         (verbose): New variable.
48484         (func_execute_command): New function.
48485         (func_import): Don't show the module list and the file list if
48486         $verbose < 0.
48487         (func_create_testdir): Likewise. Use func_execute_command.
48488         (func_create_megatestdir): Use func_execute_command.
48489
48490 2007-09-08  Bruno Haible  <bruno@clisp.org>
48491
48492         * gnulib-tool (func_import): Prefer rsync over wget when available,
48493         for fetching the PO files.
48494
48495 2007-09-08  Bruno Haible  <bruno@clisp.org>
48496
48497         * posix-modules: New file. Portions copied from gnulib-tool.
48498         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48499
48500 2007-09-08  Jim Meyering  <jim@meyering.net>
48501
48502         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48503         * lib/fpending.h: Rename from __fpending.h.
48504         * lib/fpending.c: Rename from __fpending.c.
48505         Include "fpending.h", not "__fpending.h".
48506         * lib/__fpending.h, lib/__fpending.c: Remove files.
48507         * modules/fpending (Files): Reflect new file names.
48508         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48509
48510 2007-09-08  Bruno Haible  <bruno@clisp.org>
48511
48512         * m4/inttypes-h.m4: Remove stub file.
48513
48514 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48515
48516         * doc/headers/stdint.texi: Discuss #include_next issue.
48517
48518 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48519
48520         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48521
48522 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48523
48524         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48525         in variable name.
48526
48527 2007-09-03  Jim Meyering  <jim@meyering.net>
48528
48529         New module: git-version-gen.
48530         * modules/git-version-gen: New file.
48531
48532         Import changes from coreutils for bootstrap script.
48533
48534         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48535
48536         bootstrap: uses rsync to download the .po files
48537         * build-aux/bootstrap (po_download_command_format): New global.
48538         (download_po_files): Use rsync.
48539         (update_po_files): Don't remove .po files after download,
48540         so future rsync runs can take advantage of the copies.
48541
48542         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48543
48544         Solve the unnecessary-.po-file-regeneration problem once and for all.
48545         * build-aux/bootstrap (download_po_files): New function, renamed from
48546         get_translations.  Now, downloads, but doesn't update LINGUAS.
48547         (update_po_files): New function.
48548
48549         bootstrap: Ignore more.
48550         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48551         uniwidth to e.g., lib/.gitignore.
48552         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48553
48554         * build-aux/bootstrap: New setting: vc_ignore.
48555         (insert_sorted_if_absent): Create $file if absent.
48556         Adapt to new, possibly empty, list: $vc_ignore.
48557
48558         bootstrap: generate more ignorable names
48559         * build-aux/bootstrap (slurp): When generating ignorable names,
48560         also map .sin to .sed, .gperf to .c, and .y to .c.
48561
48562 2007-09-03  Jim Meyering  <jim@meyering.net>
48563
48564         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48565         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48566
48567 2007-09-02  Bruno Haible  <bruno@clisp.org>
48568
48569         Fix mis-recognition of 'mcs' on QNX 6.
48570         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48571         output contains the string "Mono".
48572         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48573         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48574
48575 2007-09-01  Bruno Haible  <bruno@clisp.org>
48576
48577         Fix collision between uniwidth/* and linebreak modules.
48578         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48579         u32_width): Remove declarations.
48580         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48581         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48582         streq3, streq2, streq1, streq0): Remove functions.
48583         (STREQ): Remove macro.
48584         (is_cjk_encoding): Remove function.
48585         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48586         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48587         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48588         * NEWS: Document the change.
48589
48590 2007-09-01  Bruno Haible  <bruno@clisp.org>
48591
48592         * lib/streq.h: Add double-inclusion guard.
48593
48594 2007-09-01  Karl Berry  <karl@gnu.org>
48595
48596         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48597
48598 2007-08-28  Jim Meyering  <jim@meyering.net>
48599
48600         Rename mreadlink_with_size to areadlink_with_size.
48601         * NEWS: Document the change.
48602         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48603         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48604         * lib/mreadlink.h: Rename this to...
48605         * lib/areadlink.h: ...this.
48606         * modules/mreadlink-with-size: Rename this to...
48607         * modules/areadlink-with-size: ...this.
48608         * lib/canonicalize.c: Reflect the renaming.
48609         * modules/canonicalize: Likewise.
48610
48611 2007-08-26  Bruno Haible  <bruno@clisp.org>
48612
48613         * gnulib-tool (func_import): When deciding which files to remove,
48614         consider also dangling symbolic links.
48615         Reported by Eric Blake.
48616
48617 2007-08-26  Bruno Haible  <bruno@clisp.org>
48618
48619         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48620
48621 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48622
48623         * lib/readline.c: Don't include getline.h, the prototype is now
48624         found in stdio.h.
48625
48626 2007-08-23  Jim Meyering  <jim@meyering.net>
48627
48628         Getdelim touchup.
48629         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48630         around the funlockfile call, since funlockfile never sets errno.
48631         Don't set errno upon failed realloc.
48632
48633 2007-08-22  Eric Blake  <ebb9@byu.net>
48634
48635         Getline touchups.
48636         * lib/getdelim.c (getdelim): Revert regression that required *n to
48637         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48638         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48639         getdelim, rather than whether implementation is missing.
48640         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48641         * lib/stdio_.h (getline): Also declare if replacement is
48642         required.
48643         * doc/functions/getdelim.texi: New file.
48644         * doc/functions/getline.texi: Likewise.
48645         * doc/gnulib.texi (Function Substitutes): Add new files.
48646         Reported by Bruno Haible.
48647
48648 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48649
48650         * users.txt: Add Guile.
48651
48652 2007-08-22  Eric Blake  <ebb9@byu.net>
48653
48654         * tests/test-getdelim.c (main): Use remove, not unlink.
48655         * tests/test-getline.c (main): Likewise.
48656
48657         Move getline and getdelim into stdio.h, per POSIX 200x.
48658         * modules/getline (Files): Remove getline.h.
48659         (Depends-on): Add stdio.
48660         (configure.ac): Add module indicator.
48661         * modules/getdelim (Files): Remove getdelim.h.
48662         (Depends-on): Add stdio.
48663         (configure.ac): Add module indicator.
48664         * modules/stdio (Makefile.am): Work with new indicators.
48665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48666         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48668         * lib/getdelim.h: Delete.
48669         * lib/getline.h: Delete.
48670         * lib/stdio_.h (getdelim, getline): Declare.
48671         * modules/getdelim-tests: New module.
48672         * modules/getline-tests: Likewise.
48673         * tests/test-getdelim.c: New file.
48674         * tests/test-getline.c: Likewise.
48675         * NEWS: Document the change.
48676         * lib/getline.c: Update choice of header.
48677         * lib/csharpcomp.c: Likewise.
48678         * lib/getpass.c: Likewise.
48679         * lib/javacomp.c: Likewise.
48680         * lib/javaversion.c: Likewise.
48681         * lib/yesno.c: Likewise.
48682         * lib/getdelim.c: Likewise.
48683         (getdelim): Set errno on failure, and avoid memory leak.
48684
48685 2007-08-19  Bruno Haible  <bruno@clisp.org>
48686
48687         * modules/closein (Depends-on): Add freadahead.
48688         * lib/closein.c: Include freadahead.h.
48689         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48690         is zero.
48691
48692 2007-08-19  Bruno Haible  <bruno@clisp.org>
48693
48694         * modules/freadahead-tests: New file.
48695         * tests/test-freadahead.sh: New file.
48696         * tests/test-freadahead.c: New file.
48697
48698         * modules/freadahead: New file.
48699         * lib/freadahead.h: New file.
48700         * lib/freadahead.c: New file.
48701         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48702         fbufmode, fpurge, freadable, fwritable.
48703
48704 2007-08-19  Eric Blake  <ebb9@byu.net>
48705
48706         Test yesno in combination with closein.
48707         * lib/yesno.c (yesno): Document use of stdin.
48708         * modules/yesno-tests (Files): New module.
48709         * tests/test-yesno.c (main): New file.
48710         * tests/test-yesno.sh: Likewise.
48711
48712 2007-08-19  Bruno Haible  <bruno@clisp.org>
48713
48714         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48715         * lib/fseeko.c (rpl_fseeko): Likewise.
48716         * lib/fseterr.c (fseterr): Likewise.
48717
48718 2007-08-19  Bruno Haible  <bruno@clisp.org>
48719
48720         * tests/test-lseek.c (main): Disable a test for BeOS.
48721         * doc/functions/lseek.texi: Document the BeOS bug.
48722
48723 2007-08-19  Bruno Haible  <bruno@clisp.org>
48724             Eric Blake  <ebb9@byu.net>
48725
48726         * lib/lseek.c: Include <sys/stat.h>.
48727         (rpl_lseek): Add workaround code also for Unix platforms.
48728         Needed for BeOS.
48729         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48730         * doc/functions/lseek.texi: Document BeOS definiency.
48731
48732 2007-08-18  Bruno Haible  <bruno@clisp.org>
48733
48734         * modules/fstrcmp-tests: New file.
48735         * tests/test-fstrcmp.c: New file.
48736
48737 2007-08-18  Bruno Haible  <bruno@clisp.org>
48738
48739         * modules/fstrcmp: New file, from GNU gettext with modifications.
48740         * lib/fstrcmp.h: New file, from GNU gettext.
48741         * lib/fstrcmp.c: New file, from GNU gettext.
48742         * MODULES.html.sh (String handling): Add fstrcmp.
48743
48744 2007-08-18  Bruno Haible  <bruno@clisp.org>
48745
48746         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48747         'bool'.
48748         (diag, compareseq): Remove const from the ctxt argument.
48749         (USE_HEURISTIC): Undefine at the end.
48750
48751 2007-08-18  Jim Meyering  <jim@meyering.net>
48752
48753         New file: lib/idcache.h
48754         * NEWS: Mention the addition.
48755         * modules/idcache (Files): Add lib/idcache.h
48756         * lib/idcache.c: Include "idcache.h".
48757         Don't include <sys/types.h>.
48758         Add a FIXME comment.
48759         Move file-scoped "static" declarations to the top.
48760         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48761
48762 2007-08-17  Bruno Haible  <bruno@clisp.org>
48763         and Paul Eggert  <eggert@cs.ucla.edu>
48764
48765         * MODULES.html.sh: Add diffseq.
48766         * modules/diffseq: New file.
48767         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48768         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48769
48770 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48771
48772         Import changes from coreutils for bootstrap script.
48773
48774         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48775
48776         * build-aux/bootstrap (slurp): Work even in environments where
48777         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48778         current code does not slurp files whose names start with ".", and
48779         this looks like it might be a troublesome area.
48780
48781         2007-07-11  Jim Meyering  <jim@meyering.net>
48782
48783         If there's a GPL vN copyright comment, require that N == 3.
48784
48785         2007-07-08  Jim Meyering  <jim@meyering.net>
48786
48787         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48788         * build-aux/bootstrap (mam_template): Move definition out of loop.
48789
48790         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48791
48792         * build-aux/bootstrap (symlink_to_dir): Rename function from
48793         symlink_to_gnulib.  Add a directory parameter.  Update all
48794         callers.
48795         (cp_mark_as_generated): Also check for -- and link to -- files in
48796         gl/.
48797
48798         2007-07-08  Jim Meyering  <jim@meyering.net>
48799
48800         Adapt to deeper hierarchy in gnulib.
48801         * build-aux/bootstrap (symlink_to_dir): If the destination
48802         directory doesn't exist, create it. This is required at least for
48803         "lib/uniwidth/cjk.h".
48804
48805         2007-05-15  Jim Meyering  <jim@meyering.net>
48806
48807         * build-aux/bootstrap: Now that generated Makefile.am files
48808         are no longer under version control, they must be created at
48809         bootstrap time.
48810
48811 2007-08-14  Ben Pfaff  <blp@gnu.org>
48812
48813         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48814
48815 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48816
48817         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48818         given the changes below.
48819         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48820         even on hosts that have padding bits beyond the supported 64.
48821
48822 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48823
48824         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48825         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48826         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48827         depends on it.
48828         (xstrtol_error): Remove.
48829         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48830         but with a different signature.
48831         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48832         * lib/xstrtol-error.c: Include exitfail.h.
48833         (xstrtol_fatal): New function, with a different signature from the
48834         old xstrtol_error, so that the caller need not worry about passing
48835         in an exit status, or about storage management of the option argument.
48836         (xstrtol_error): Now a static function.  Redo signature to
48837         implement xstrtol_fatal.  Output the correct number of hyphens in
48838         front of the option so that the caller need not worry about
48839         storage management.
48840         (N_): New macro.
48841         (_): Remove; not used now.
48842         * modules/xstrtol: Depend on getopt.
48843         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48844         of old STRTOL_FATAL_ERROR macro.
48845         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48846         of test program.
48847         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48848         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48849
48850 2007-08-08  Eric Blake  <ebb9@byu.net>
48851
48852         * lib/xstrtol-error.c: Add missing include.
48853
48854         Move xstrtol messages into gnulib domain, when --pobase is used.
48855         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48856         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48857         * modules/xstrtol (Files): Distribute new file.
48858         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48859         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48860         * tests/test-xstrtol.c: ...into new file.
48861         * tests/test-xstrtoul.c: Also test xstrtoul.
48862         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48863         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48864         * tests/test-xstrtol.sh: Drive the tests.
48865         * tests/test-xstrtoimax.sh: Likewise.
48866         * tests/test-xstrtoumax.sh: Likewise.
48867         * modules/xstrtol-tests: New module.
48868         * modules/xstrtoimax-tests: Likewise.
48869         * modules/xstrtoumax-tests: Likewise.
48870
48871 2007-08-08  Jim Meyering  <jim@meyering.net>
48872
48873         New function: mfile_name_concat.
48874         * lib/filenamecat.c (mfile_name_concat): New function, just like
48875         file_name_concat, but return NULL upon failure rather than exiting
48876         with a diagnostic.
48877         * lib/filenamecat.h: Declare it.
48878
48879 2007-08-07  Bruno Haible  <bruno@clisp.org>
48880
48881         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48882         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48883         warning from gcc.
48884         Reported by Eric Blake.
48885
48886 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48887
48888         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48889         * modules/crypto/arcfour (License): Likewise.
48890         * modules/crypto/des-tests (License): Likewise.
48891         * modules/crypto/gc-arctwo-tests (License): Likewise.
48892         * modules/crypto/gc-des-tests (License): Likewise.
48893         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48894         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48895         * modules/crypto/gc-md2-tests (License): Likewise.
48896         * modules/crypto/gc-md4-tests (License): Likewise.
48897         * modules/crypto/gc-md5-tests (License): Likewise.
48898         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48899         * modules/crypto/gc-rijndael-tests (License): Likewise.
48900         * modules/crypto/gc-sha1-tests (License): Likewise.
48901         * modules/crypto/gc-tests (License): Likewise.
48902         * modules/crypto/hmac-md5 (License): Likewise.
48903         * modules/crypto/hmac-sha1 (License): Likewise.
48904         * modules/crypto/md2-tests (License): Likewise.
48905         * modules/crypto/md4-tests (License): Likewise.
48906         * modules/crypto/md5 (License): Likewise.
48907         * modules/crypto/rijndael (License): Likewise.
48908         * modules/crypto/sha1 (License): Likewise.
48909         * modules/memxor (License): Likewise.
48910
48911 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48912         and Bruno Haible  <bruno@clisp.org>
48913
48914         * NEWS: Describe interface changes to human, xstrtol.
48915         * lib/human.h: Include <xstrtol.h>.
48916         (human_options): Return enum strtol_error, not int.  Remove
48917         bool arg; take int * instead.
48918         * lib/human.c: Don't include "gettext.h".
48919         (_): Remove; no longer used.
48920         Don't include <xstrtol.h>, since human.h does it.
48921         (human_options): Adjust to abovementioned interface changes.
48922         Do not report error to stderr; that's now the caller's
48923         responsibility.
48924         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48925         interface change.
48926         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48927         Str, Argument_type_string.  All uses changed.  Put " argument"
48928         in diagnostics to make them clearer.  Change wording of suffix
48929         message for clarity.
48930         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48931         Argument_type_string.
48932         (STRTOL_FATAL_WARN): Remove; no longer used.
48933         * modules/human (Depends-on): Remove gettext-h.
48934
48935 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48936
48937         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48938
48939 2007-07-31  Bruno Haible  <bruno@clisp.org>
48940
48941         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48942         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48943         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48944
48945 2007-07-31  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48948         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48949
48950 2007-07-30  Bruno Haible  <bruno@clisp.org>
48951
48952         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48953         * modules/c-ctype (License): Likewise.
48954         * modules/c-strcase (License): Likewise.
48955         * modules/check-version (License): Likewise.
48956         * modules/iconv (License): Likewise.
48957         * modules/iconv_open (License): Likewise.
48958         * modules/read-file (License): Likewise.
48959         * modules/striconv (License): Likewise.
48960         * modules/strverscmp (License): Likewise.
48961         * modules/vasprintf (License): Likewise.
48962         * modules/crypto/des (License): Likewise.
48963         * modules/crypto/gc (License): Likewise.
48964         * modules/crypto/gc-arcfour (License): Likewise.
48965         * modules/crypto/gc-arctwo (License): Likewise.
48966         * modules/crypto/gc-des (License): Likewise.
48967         * modules/crypto/gc-hmac-md5 (License): Likewise.
48968         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48969         * modules/crypto/gc-md2 (License): Likewise.
48970         * modules/crypto/gc-md4 (License): Likewise.
48971         * modules/crypto/gc-md5 (License): Likewise.
48972         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48973         * modules/crypto/gc-random (License): Likewise.
48974         * modules/crypto/gc-rijndael (License): Likewise.
48975         * modules/crypto/gc-sha1 (License): Likewise.
48976         * modules/crypto/md2 (License): Likewise.
48977         * modules/crypto/md4 (License): Likewise.
48978
48979 2007-07-30  Jim Meyering  <jim@meyering.net>
48980
48981         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48982         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48983         it has valid stat data.  This bug would cause du not to count the
48984         sizes of inaccessible directories.
48985         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48986         in <http://bugzilla.redhat.com/250077>.
48987
48988 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48989             Bruno Haible  <bruno@clisp.org>
48990
48991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48992         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48993         #include_next, gives a diagnostic about it, but reports no error in
48994         the exit code.
48995         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48996
48997 2007-07-24  Ben Pfaff  <blp@gnu.org>
48998
48999         Improve name: "count-one-bits" is better than "popcount".
49000         * MODULES.html.sh: Update name.
49001         * lib/popcount.h: Renamed lib/count-one-bits.h.
49002         (popcount): Renamed count_one_bits.
49003         (popcountl): Renamed count_one_bits_l.
49004         (popcountll): Renamed count_one_bits_ll.
49005         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49006         * modules/popcount: Renamed module/count-one-bits.
49007         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49008         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49009
49010 2007-07-23  Ben Pfaff  <blp@gnu.org>
49011
49012         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49013         better code generation, and add U to large constants to avoid
49014         warnings, in non-GCC case.
49015         Suggested by Bruno Haible.
49016
49017 2007-07-23  Ben Pfaff  <blp@gnu.org>
49018
49019         * lib/popcount.h: Use verify_true instead of if...abort.
49020         * modules/popcount: Depend on verify module.
49021         Suggested by Jim Meyering.
49022
49023 2007-07-23  Bruno Haible  <bruno@clisp.org>
49024
49025         * gnulib-tool (func_import): Create a .cvsignore file also when the
49026         directory is not yet in CVS but the toplevel directory is. When
49027         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49028         Reported by Karl Berry.
49029
49030 2007-07-22  Ben Pfaff  <blp@gnu.org>
49031
49032         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49033         case.
49034         Suggested by Eric Blake.
49035
49036 2007-07-22  Ben Pfaff  <blp@gnu.org>
49037
49038         New module: popcount.
49039         * MODULES.html.sh: Add popcount.
49040         * modules/popcount: New file.
49041         * modules/popcount-tests: New file.
49042         * tests/test-popcount.c: New file.
49043         * lib/popcount.h: New file.
49044         * m4/popcount.m4: New file.
49045
49046 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49047
49048         * build-aux/announce-gen: Update to GPLv3.
49049
49050         * build-aux/config.guess: Update from config.
49051
49052 2007-07-21  Bruno Haible  <bruno@clisp.org>
49053
49054         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49055         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49056
49057 2007-07-20  Jim Meyering  <jim@meyering.net>
49058
49059         * check-module: Diagnose a self-dependency.
49060
49061 2007-07-19  Bruno Haible  <bruno@clisp.org>
49062
49063         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49064         empty.
49065         Reported by Eric Blake.
49066
49067 2007-07-18  Bruno Haible  <bruno@clisp.org>
49068
49069         * gnulib-tool: New options --po-base, --po-domain.
49070         (func_usage): Document them.
49071         (pobase, po_domain): New variables.
49072         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49073         DEFAULT_TEXT_DOMAIN.
49074         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49075         (func_import): Consider pobase and po_domain. Create a po/ directory.
49076         (func_create_testdir): Set pobase and po_domain to empty.
49077         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49078         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49079
49080 2007-07-18  Bruno Haible  <bruno@clisp.org>
49081
49082         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49083         EXTRA_DIST augmentation for files in build-aux/.
49084
49085 2007-07-16  Bruno Haible  <bruno@clisp.org>
49086
49087         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49088         * modules/getdelim (License): Likewise.
49089
49090 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49091
49092         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49093         * modules/d-type (License): Likewise.
49094         * modules/extensions (License): Likewise.
49095         * modules/fnmatch (License): Likewise.
49096         * modules/fseeko (License): Likewise.
49097         * modules/getaddrinfo (License): Likewise.
49098         * modules/getline (License): Likewise.
49099         * modules/getlogin_r (License): Likewise.
49100         * modules/getpass (License): Likewise.
49101         * modules/gettimeofday (License): Likewise.
49102         * modules/glob (License): Likewise.
49103         * modules/inet_ntop (License): Likewise.
49104         * modules/malloc (License): Likewise.
49105         * modules/malloca (License): Likewise.
49106         * modules/memmem (License): Likewise.
49107         * modules/mempcpy (License): Likewise.
49108         * modules/memset (License): Likewise.
49109         * modules/minmax (License): Likewise.
49110         * modules/mktime (License): Likewise.
49111         * modules/netinet_in (License): Likewise.
49112         * modules/pathmax (License): Likewise.
49113         * modules/poll (License): Likewise.
49114         * modules/regex (License): Likewise.
49115         * modules/snprintf (License): Likewise.
49116         * modules/stdbool (License): Likewise.
49117         * modules/stdint (License): Likewise.
49118         * modules/stdio (License): Likewise.
49119         * modules/strcase (License): Likewise.
49120         * modules/strcasestr (License): Likewise.
49121         * modules/strdup (License): Likewise.
49122         * modules/string (License): Likewise.
49123         * modules/strndup (License): Likewise.
49124         * modules/strnlen (License): Likewise.
49125         * modules/strpbrk (License): Likewise.
49126         * modules/strptime (License): Likewise.
49127         * modules/strsep (License): Likewise.
49128         * modules/sys_select (License): Likewise.
49129         * modules/sys_socket (License): Likewise.
49130         * modules/sys_stat (License): Likewise.
49131         * modules/sys_time (License): Likewise.
49132         * modules/time (License): Likewise.
49133         * modules/time_r (License): Likewise.
49134         * modules/timegm (License): Likewise.
49135         * modules/unistd (License): Likewise.
49136         * modules/vsnprintf (License): Likewise.
49137         * modules/wctype (License): Likewise.
49138
49139 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49140
49141         * modules/argz (License): LGPLv2+.
49142
49143 2007-07-15  Karl Berry  <karl@gnu.org>
49144
49145         * doc/gnulib.texi: revise node structure per new fdl.texi.
49146
49147 2007-07-14  Bruno Haible  <bruno@clisp.org>
49148
49149         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49150         the output file.
49151         * lib/uniname/uninames.h: Regenerated.
49152
49153 2007-07-14  Karl Berry  <karl@gnu.org>
49154
49155         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49156         omitting sectioning and index commands.
49157
49158 2007-07-13  Bruno Haible  <bruno@clisp.org>
49159
49160         New gnulib-tool option --more-symlinks.
49161         * gnulib-tool (func_usage): Document --more-symlinks.
49162         (do_copyrights): New variable.
49163         Recognize option --more-symlinks.
49164         (func_import): Don't add a copyright notice transform to
49165         sed_transform_lib_file if do_copyrights is empty.
49166
49167 2007-07-13  Bruno Haible  <bruno@clisp.org>
49168
49169         * lib/vasnprintf.c (decimal_point_char): Define also if
49170         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49171         && !NEED_PRINTF_DIRECTIVE_A.
49172         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49173         Gary V. Vaughan <gary@gnu.org>.
49174
49175 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * lib/inttypes_.h: Undo previous change, since it was fixed
49178         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49179
49180 2007-07-13  Bruno Haible  <bruno@clisp.org>
49181
49182         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49183         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49184
49185 2007-07-13  Jim Meyering  <jim@meyering.net>
49186
49187         df: Don't fail for Tru64's "file-on-file mount".
49188         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49189         so we fall through and use statfs instead.  Details here:
49190         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49191         Reported by Albert Chin.
49192
49193 2007-07-13  Bruno Haible  <bruno@clisp.org>
49194
49195         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49196         * modules/configmake (License): Likewise.
49197         * modules/gettext (License): Likewise.
49198         * modules/gettext-h (License): Likewise.
49199         * modules/include_next (License): Likewise.
49200         * modules/link-warning (License): Likewise.
49201         * modules/localcharset (License): Likewise.
49202         * modules/localename (License): Likewise.
49203         * modules/lock (License): Likewise.
49204         * modules/relocatable-lib-lgpl (License): Likewise.
49205         * modules/size_max (License): Likewise.
49206         * modules/vasnprintf (License): Likewise.
49207         * modules/wchar (License): Likewise.
49208         * modules/xsize (License): Likewise.
49209
49210 2007-07-13  Bruno Haible  <bruno@clisp.org>
49211
49212         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49213         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49214
49215 2007-07-12  Bruno Haible  <bruno@clisp.org>
49216
49217         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49218         in the modules files.
49219
49220 2007-07-11  Karl Berry  <karl@gnu.org>
49221
49222         * MODULES.html.sh (func_module): use
49223          sed -e '\|^'"${includefile}"'$|d'
49224          instead of /.../d, to avoid errors on $includefile's containing /.
49225
49226 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49227
49228         * gnulib-tool (func_import): Avoid duplication of --avoid
49229         statements
49230         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49231         names to `_' in variable names.
49232
49233 2007-07-10  Eric Blake  <ebb9@byu.net>
49234
49235         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49236         * NEWS: Document this change.
49237
49238 2007-07-08  Bruno Haible  <bruno@clisp.org>
49239
49240         Update to Unicode 5.0.
49241         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49242         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49243         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49244         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49245         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49246         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49247         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49248         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49249         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49250         U+10A3F, U+1D242..U+1D244.
49251         (nonspacing_table_ind): Update.
49252         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49253         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49254
49255 2007-07-08  Bruno Haible  <bruno@clisp.org>
49256
49257         Update to Unicode 5.0.
49258         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49259         code transform. Extend the name index field of unicode_name_to_code and
49260         unicode_code_to_name from 16 to 24 bits.
49261         * lib/uniname/uniname.c (unicode_character_name,
49262         unicode_name_character): Add the range 0x12xxx to the code transform.
49263         * lib/uniname/uninames.h: Regenerated.
49264         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49265
49266 2007-07-07  Bruno Haible  <bruno@clisp.org>
49267
49268         * modules/wcwidth-tests: New file.
49269         * tests/test-wcwidth.c: New file.
49270
49271         Work around MacOS X wcwidth() bug.
49272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49273         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49274         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49275         original wcwidth in non-UTF-8 locales.
49276         * modules/wcwidth (Depends-on): Add localcharset, streq,
49277         uniwidth/width.
49278         * doc/functions/wcwidth.texi: Update.
49279
49280 2007-07-07  Bruno Haible  <bruno@clisp.org>
49281
49282         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49283         (wcwidth): New declaration.
49284         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49285         macros.
49286         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49287         here. Prepare for creating <wchar.h> unconditionally.
49288         * modules/wchar (Depends-on): Add link-warning.
49289         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49290         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49291         * lib/wcwidth.h: Remove file.
49292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49293         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49294         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49295         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49296         (Include): Replace wcwidth.h with <wchar.h>.
49297         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49298         * lib/mbchar.h: Don't include wcwidth.h.
49299         * lib/mbswidth.c: Likewise.
49300         * NEWS: Mention the change.
49301
49302 2007-07-07  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49305         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49306         definition with an external declaration.
49307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49308         defined as a function. Remove AC_C_INLINE requirement.
49309         * modules/wcwidth (Files): Add lib/wcwidth.c.
49310         (Makefile.am): Remove redundant statement.
49311
49312 2007-07-07  Bruno Haible  <bruno@clisp.org>
49313
49314         * MODULES.html.sh (Unicode string functions): Add the new modules.
49315
49316         * tests/uniwidth/test-u32-strwidth.c: New file.
49317         * modules/uniwidth/u32-strwidth-tests: New file.
49318
49319         * lib/uniwidth/u32-strwidth.c: New file.
49320         * modules/uniwidth/u32-strwidth: New file.
49321
49322         * tests/uniwidth/test-u16-strwidth.c: New file.
49323         * modules/uniwidth/u16-strwidth-tests: New file.
49324
49325         * lib/uniwidth/u16-strwidth.c: New file.
49326         * modules/uniwidth/u16-strwidth: New file.
49327
49328         * tests/uniwidth/test-u8-strwidth.c: New file.
49329         * modules/uniwidth/u8-strwidth-tests: New file.
49330
49331         * lib/uniwidth/u8-strwidth.c: New file.
49332         * modules/uniwidth/u8-strwidth: New file.
49333
49334         * tests/uniwidth/test-u32-width.c: New file.
49335         * modules/uniwidth/u32-width-tests: New file.
49336
49337         * lib/uniwidth/u32-width.c: New file.
49338         * modules/uniwidth/u32-width: New file.
49339
49340         * tests/uniwidth/test-u16-width.c: New file.
49341         * modules/uniwidth/u16-width-tests: New file.
49342
49343         * lib/uniwidth/u16-width.c: New file.
49344         * modules/uniwidth/u16-width: New file.
49345
49346         * tests/uniwidth/test-u8-width.c: New file.
49347         * modules/uniwidth/u8-width-tests: New file.
49348
49349         * lib/uniwidth/u8-width.c: New file.
49350         * modules/uniwidth/u8-width: New file.
49351
49352         * tests/uniwidth/test-uc_width.c: New file.
49353         * modules/uniwidth/width-tests: New file.
49354
49355         * lib/uniwidth/width.c: New file, from GNU libiconv.
49356         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49357         * modules/uniwidth/width: New file.
49358
49359         * lib/uniwidth.h: New file, from GNU libiconv.
49360         * modules/uniwidth/base: New file.
49361
49362 2007-07-07  Bruno Haible  <bruno@clisp.org>
49363
49364         * lib/uniname.h: New file, from GNU gettext.
49365         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49366         * lib/uniname/uninames.h: New file, from GNU gettext.
49367         * lib/uniname/uniname.c: New file, from GNU gettext.
49368         * tests/uniname/test-uninames.sh: New file.
49369         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49370         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49371         * modules/uniname/base: New file.
49372         * modules/uniname/uniname: New file.
49373         * modules/uniname/uniname-tests: New file.
49374         * MODULES.html.sh (Unicode string functions): Add the new modules.
49375
49376 2007-07-06  Bruno Haible  <bruno@clisp.org>
49377
49378         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49379
49380 2007-07-06  Bruno Haible  <bruno@clisp.org>
49381
49382         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49383         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49384         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49385         include <sys/time.h>.
49386         Reported by Eric Blake.
49387
49388 2007-07-06  Eric Blake  <ebb9@byu.net>
49389
49390         Fix testing canonicalize on cygwin.
49391         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49392         Revert patch from 2007-06-19.
49393         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49394         canonicalize module is also in use.
49395         * tests/test-canonicalize.c: New file.
49396         * tests/test-canonicalize.sh: Likewise.
49397         * modules/canonicalize-tests: Likewise.
49398
49399 2007-07-06  Jim Meyering  <jim@meyering.net>
49400
49401         * lib/getugroups.c (getugroups): Detect getgrent failure.
49402         Adjust comment to reflect reality: this function may return -1.
49403
49404 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49405
49406         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49407         the new TP address.
49408         (usage): Fix typo
49409         (gnulib_mk): New variable.
49410
49411 2007-07-05  Jim Meyering  <jim@meyering.net>
49412
49413         Don't let endgrent clobber errno, no matter how improbable.
49414         * lib/getugroups.c (getugroups): Save and restore errno around
49415         endgrent call.
49416
49417         Close the group DB even when failing with 2^31 or more members.
49418         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49419
49420 2007-07-04  Jim Meyering  <jim@meyering.net>
49421
49422         * lib/getugroups.h: New file.
49423         * lib/getugroups.c: Include "getugroups.h".
49424         Remove uses of "register" keyword.
49425         Move local variable, "cp", down into scope where used.
49426         Give "username" parameter the "const" attribute.
49427         * modules/getugroups (Files): Add lib/getugroups.h
49428
49429 2007-07-04  Karl Berry  <karl@gnu.org>
49430
49431         * MODULES.html.sh (func_all_modules): Complete rename of
49432         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49433
49434 2007-07-02  Bruno Haible  <bruno@clisp.org>
49435
49436         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49437         mode, when inttypes.h comes from gnulib.
49438         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49439
49440 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49441
49442         * NEWS: Mention lgpl module name change.
49443
49444         * modules/lgpl-2.1: Renamed from lgpl.
49445
49446         * NEWS: Mention gpl module name change.
49447
49448         * modules/gpl-3.0: New file, based on gpl-2.0.
49449
49450         * modules/gpl-2.0: Renamed from gpl.
49451
49452         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49453         doc/gpl-2.0.texi.
49454
49455 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49456
49457         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49458         #define __STDC_LIMIT_MACROS temporarily while including
49459         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49460         Problem reported by Joel E. Denny in
49461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49462
49463 2007-07-01  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/unistdio.h: New file.
49466         * lib/unistdio/u-asnprintf.h: New file.
49467         * lib/unistdio/u-asprintf.h: New file.
49468         * lib/unistdio/u-printf-args.c: New file.
49469         * lib/unistdio/u-printf-args.h: New file.
49470         * lib/unistdio/u-printf-parse.h: New file.
49471         * lib/unistdio/u-snprintf.h: New file.
49472         * lib/unistdio/u-sprintf.h: New file.
49473         * lib/unistdio/u-vasprintf.h: New file.
49474         * lib/unistdio/u-vsnprintf.h: New file.
49475         * lib/unistdio/u-vsprintf.h: New file.
49476         * lib/unistdio/ulc-asnprintf.c: New file.
49477         * lib/unistdio/ulc-asprintf.c: New file.
49478         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49479         * lib/unistdio/ulc-printf-parse.c: New file.
49480         * lib/unistdio/ulc-snprintf.c: New file.
49481         * lib/unistdio/ulc-sprintf.c: New file.
49482         * lib/unistdio/ulc-vasnprintf.c: New file.
49483         * lib/unistdio/ulc-vasprintf.c: New file.
49484         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49485         * lib/unistdio/ulc-vsnprintf.c: New file.
49486         * lib/unistdio/ulc-vsprintf.c: New file.
49487         * lib/unistdio/u8-asnprintf.c: New file.
49488         * lib/unistdio/u8-asprintf.c: New file.
49489         * lib/unistdio/u8-printf-parse.c: New file.
49490         * lib/unistdio/u8-snprintf.c: New file.
49491         * lib/unistdio/u8-sprintf.c: New file.
49492         * lib/unistdio/u8-vasnprintf.c: New file.
49493         * lib/unistdio/u8-vasprintf.c: New file.
49494         * lib/unistdio/u8-vsnprintf.c: New file.
49495         * lib/unistdio/u8-vsprintf.c: New file.
49496         * lib/unistdio/u8-u8-asnprintf.c: New file.
49497         * lib/unistdio/u8-u8-asprintf.c: New file.
49498         * lib/unistdio/u8-u8-snprintf.c: New file.
49499         * lib/unistdio/u8-u8-sprintf.c: New file.
49500         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49501         * lib/unistdio/u8-u8-vasprintf.c: New file.
49502         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49503         * lib/unistdio/u8-u8-vsprintf.c: New file.
49504         * lib/unistdio/u16-asnprintf.c: New file.
49505         * lib/unistdio/u16-asprintf.c: New file.
49506         * lib/unistdio/u16-printf-parse.c: New file.
49507         * lib/unistdio/u16-snprintf.c: New file.
49508         * lib/unistdio/u16-sprintf.c: New file.
49509         * lib/unistdio/u16-vasnprintf.c: New file.
49510         * lib/unistdio/u16-vasprintf.c: New file.
49511         * lib/unistdio/u16-vsnprintf.c: New file.
49512         * lib/unistdio/u16-vsprintf.c: New file.
49513         * lib/unistdio/u16-u16-asnprintf.c: New file.
49514         * lib/unistdio/u16-u16-asprintf.c: New file.
49515         * lib/unistdio/u16-u16-snprintf.c: New file.
49516         * lib/unistdio/u16-u16-sprintf.c: New file.
49517         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49518         * lib/unistdio/u16-u16-vasprintf.c: New file.
49519         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49520         * lib/unistdio/u16-u16-vsprintf.c: New file.
49521         * lib/unistdio/u32-asnprintf.c: New file.
49522         * lib/unistdio/u32-asprintf.c: New file.
49523         * lib/unistdio/u32-printf-parse.c: New file.
49524         * lib/unistdio/u32-snprintf.c: New file.
49525         * lib/unistdio/u32-sprintf.c: New file.
49526         * lib/unistdio/u32-vasnprintf.c: New file.
49527         * lib/unistdio/u32-vasprintf.c: New file.
49528         * lib/unistdio/u32-vsnprintf.c: New file.
49529         * lib/unistdio/u32-vsprintf.c: New file.
49530         * lib/unistdio/u32-u32-asnprintf.c: New file.
49531         * lib/unistdio/u32-u32-asprintf.c: New file.
49532         * lib/unistdio/u32-u32-snprintf.c: New file.
49533         * lib/unistdio/u32-u32-sprintf.c: New file.
49534         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49535         * lib/unistdio/u32-u32-vasprintf.c: New file.
49536         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49537         * lib/unistdio/u32-u32-vsprintf.c: New file.
49538         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49539         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49540         * tests/unistdio/test-ulc-printf1.h: New file.
49541         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49542         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49543         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49544         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49545         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49546         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49547         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49548         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49549         * tests/unistdio/test-u8-asnprintf1.c: New file.
49550         * tests/unistdio/test-u8-asnprintf1.h: New file.
49551         * tests/unistdio/test-u8-printf1.h: New file.
49552         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49553         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49554         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49555         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49556         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49557         * tests/unistdio/test-u8-vasprintf1.c: New file.
49558         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49559         * tests/unistdio/test-u8-vsprintf1.c: New file.
49560         * tests/unistdio/test-u16-asnprintf1.c: New file.
49561         * tests/unistdio/test-u16-asnprintf1.h: New file.
49562         * tests/unistdio/test-u16-printf1.h: New file.
49563         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49564         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49565         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49566         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49567         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49568         * tests/unistdio/test-u16-vasprintf1.c: New file.
49569         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49570         * tests/unistdio/test-u16-vsprintf1.c: New file.
49571         * tests/unistdio/test-u32-asnprintf1.c: New file.
49572         * tests/unistdio/test-u32-asnprintf1.h: New file.
49573         * tests/unistdio/test-u32-printf1.h: New file.
49574         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49575         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49576         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49577         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49578         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49579         * tests/unistdio/test-u32-vasprintf1.c: New file.
49580         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49581         * tests/unistdio/test-u32-vsprintf1.c: New file.
49582         * modules/unistdio/base: New file.
49583         * modules/unistdio/u-printf-args: New file.
49584         * modules/unistdio/ulc-asnprintf: New file.
49585         * modules/unistdio/ulc-asprintf: New file.
49586         * modules/unistdio/ulc-fprintf: New file.
49587         * modules/unistdio/ulc-printf-parse: New file.
49588         * modules/unistdio/ulc-snprintf: New file.
49589         * modules/unistdio/ulc-sprintf: New file.
49590         * modules/unistdio/ulc-vasnprintf: New file.
49591         * modules/unistdio/ulc-vasprintf: New file.
49592         * modules/unistdio/ulc-vfprintf: New file.
49593         * modules/unistdio/ulc-vsnprintf: New file.
49594         * modules/unistdio/ulc-vsprintf: New file.
49595         * modules/unistdio/u8-asnprintf: New file.
49596         * modules/unistdio/u8-asprintf: New file.
49597         * modules/unistdio/u8-printf-parse: New file.
49598         * modules/unistdio/u8-snprintf: New file.
49599         * modules/unistdio/u8-sprintf: New file.
49600         * modules/unistdio/u8-vasnprintf: New file.
49601         * modules/unistdio/u8-vasprintf: New file.
49602         * modules/unistdio/u8-vsnprintf: New file.
49603         * modules/unistdio/u8-vsprintf: New file.
49604         * modules/unistdio/u8-u8-asnprintf: New file.
49605         * modules/unistdio/u8-u8-asprintf: New file.
49606         * modules/unistdio/u8-u8-snprintf: New file.
49607         * modules/unistdio/u8-u8-sprintf: New file.
49608         * modules/unistdio/u8-u8-vasnprintf: New file.
49609         * modules/unistdio/u8-u8-vasprintf: New file.
49610         * modules/unistdio/u8-u8-vsnprintf: New file.
49611         * modules/unistdio/u8-u8-vsprintf: New file.
49612         * modules/unistdio/u16-asnprintf: New file.
49613         * modules/unistdio/u16-asprintf: New file.
49614         * modules/unistdio/u16-printf-parse: New file.
49615         * modules/unistdio/u16-snprintf: New file.
49616         * modules/unistdio/u16-sprintf: New file.
49617         * modules/unistdio/u16-vasnprintf: New file.
49618         * modules/unistdio/u16-vasprintf: New file.
49619         * modules/unistdio/u16-vsnprintf: New file.
49620         * modules/unistdio/u16-vsprintf: New file.
49621         * modules/unistdio/u16-u16-asnprintf: New file.
49622         * modules/unistdio/u16-u16-asprintf: New file.
49623         * modules/unistdio/u16-u16-snprintf: New file.
49624         * modules/unistdio/u16-u16-sprintf: New file.
49625         * modules/unistdio/u16-u16-vasnprintf: New file.
49626         * modules/unistdio/u16-u16-vasprintf: New file.
49627         * modules/unistdio/u16-u16-vsnprintf: New file.
49628         * modules/unistdio/u16-u16-vsprintf: New file.
49629         * modules/unistdio/u32-asnprintf: New file.
49630         * modules/unistdio/u32-asprintf: New file.
49631         * modules/unistdio/u32-printf-parse: New file.
49632         * modules/unistdio/u32-snprintf: New file.
49633         * modules/unistdio/u32-sprintf: New file.
49634         * modules/unistdio/u32-vasnprintf: New file.
49635         * modules/unistdio/u32-vasprintf: New file.
49636         * modules/unistdio/u32-vsnprintf: New file.
49637         * modules/unistdio/u32-vsprintf: New file.
49638         * modules/unistdio/u32-u32-asnprintf: New file.
49639         * modules/unistdio/u32-u32-asprintf: New file.
49640         * modules/unistdio/u32-u32-snprintf: New file.
49641         * modules/unistdio/u32-u32-sprintf: New file.
49642         * modules/unistdio/u32-u32-vasnprintf: New file.
49643         * modules/unistdio/u32-u32-vasprintf: New file.
49644         * modules/unistdio/u32-u32-vsnprintf: New file.
49645         * modules/unistdio/u32-u32-vsprintf: New file.
49646         * modules/unistdio/ulc-asnprintf-tests: New file.
49647         * modules/unistdio/ulc-vasnprintf-tests: New file.
49648         * modules/unistdio/ulc-vasprintf-tests: New file.
49649         * modules/unistdio/ulc-vsnprintf-tests: New file.
49650         * modules/unistdio/ulc-vsprintf-tests: New file.
49651         * modules/unistdio/u8-asnprintf-tests: New file.
49652         * modules/unistdio/u8-vasnprintf-tests: New file.
49653         * modules/unistdio/u8-vasprintf-tests: New file.
49654         * modules/unistdio/u8-vsnprintf-tests: New file.
49655         * modules/unistdio/u8-vsprintf-tests: New file.
49656         * modules/unistdio/u16-asnprintf-tests: New file.
49657         * modules/unistdio/u16-vasnprintf-tests: New file.
49658         * modules/unistdio/u16-vasprintf-tests: New file.
49659         * modules/unistdio/u16-vsnprintf-tests: New file.
49660         * modules/unistdio/u16-vsprintf-tests: New file.
49661         * modules/unistdio/u32-asnprintf-tests: New file.
49662         * modules/unistdio/u32-vasnprintf-tests: New file.
49663         * modules/unistdio/u32-vasprintf-tests: New file.
49664         * modules/unistdio/u32-vsnprintf-tests: New file.
49665         * modules/unistdio/u32-vsprintf-tests: New file.
49666         * MODULES.html.sh (Unicode string functions): Add the new modules.
49667
49668 2007-07-01  Bruno Haible  <bruno@clisp.org>
49669
49670         * lib/sprintf.c (sprintf): Limit the available length estimation,
49671         to avoid address wraparound.
49672         * lib/vsprintf.c (vsprintf): Likewise.
49673         * modules/sprintf-posix (Dependencies): Add stdint.
49674         * modules/vsprintf-posix (Dependencies): Likewise.
49675
49676 2007-07-01  Bruno Haible  <bruno@clisp.org>
49677
49678         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49679         Windows PATH as well. Conservative double-quoting. Comments.
49680
49681 2007-07-01  Bruno Haible  <bruno@clisp.org>
49682             Eric Blake  <ebb9@byu.net>
49683             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49684
49685         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49686         empty components in $PATH, denoting '.'.
49687
49688 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49689
49690         * gnulib-tool: Fix indentation.
49691         (func_create_megatestdir): Likewise.
49692         Report by Bruno Haible.
49693
49694 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49695
49696         Sync from Automake.
49697         * build-aux/gnupload: Fix shell portability issues with for loops.
49698         Report by Karl Berry.
49699
49700 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49701
49702         * build-aux/maint.mk (POURL): Use translationproject.org.
49703
49704 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49705             Bruno Haible  <bruno@clisp.org>
49706
49707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49708         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49709         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49710         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49711         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49712
49713 2007-06-27  Bruno Haible  <bruno@clisp.org>
49714
49715         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49716         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49717
49718 2007-06-26  Karl Berry  <karl@gnu.org>
49719
49720         * MODULES.html.sh: remove xreadlink-with-size.
49721
49722 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49725         method that I hope also handles the double-include problem noted
49726         by Bruno Haible in
49727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49728
49729 2007-06-23  Bruno Haible  <bruno@clisp.org>
49730
49731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49732         Don't let the 'mostlyclean' target fail if the last subdirectory could
49733         not be removed.
49734         Reported by Karl Berry.
49735
49736 2007-06-23  Bruno Haible  <bruno@clisp.org>
49737
49738         * gnulib-tool (echo): Add a speedier workaround for ksh.
49739         * tests/test-echo.sh: Likewise.
49740
49741 2007-06-23  Bruno Haible  <bruno@clisp.org>
49742
49743         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49744         * tests/test-echo.sh: Likewise.
49745
49746 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49747
49748         * gnulib-tool (IFS): Initialize early, so we don't set it to
49749         empty later.
49750         (self_abspathname): Rewrite algorithm to set it, reindent.
49751         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49752         (func_create_megatestdir): Merge some sed scripts.
49753
49754 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49755
49756         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49757         exposed by Sun Studio 11 cc on Solaris 8.
49758
49759 2007-06-22  Bruno Haible  <bruno@clisp.org>
49760
49761         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49762         backslashes.
49763         * tests/test-echo.sh: New file.
49764
49765 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49766
49767         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49768         simplify `sed_replace_build_aux' scripts, they are portable but
49769         echoing them with `echo' is not.
49770         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49771
49772 2007-06-21  Karl Berry  <karl@gnu.org>
49773
49774         * config/srclist.txt: guess we can't handle the licenses via
49775         srclist at the moment.
49776
49777 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49778
49779         * MODULES.html.sh: Add include_next.
49780         * modules/include_next: New file.
49781
49782 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49783
49784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49785         INCLUDE_NEXT.
49786         (gl_CHECK_NEXT_HEADERS): New macro.
49787         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49788         the obsolescent gl_ABSOLUTE_HEADER.
49789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49790         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49791         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49792         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49794         * m4/math_h.m4 (gl_MATH_H): Likewise.
49795         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49796         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49797         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49798         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49799         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49800         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49803         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49806         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49807         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49808         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49809         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49810         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49811         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49812         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49813         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49814         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49815         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49816         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49817         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49818         * lib/float_.h: Likewise.
49819         * lib/inttypes_.h: Likewise.
49820         * lib/math_.h: Likewise.
49821         * lib/search_.h: Likewise.
49822         * lib/signal_.h: Likewise.
49823         * lib/stdint_.h: Likewise.
49824         * lib/stdio_.h: Likewise.
49825         * lib/stdlib_.h: Likewise.
49826         * lib/string_.h: Likewise.
49827         * lib/sys_stat_.h: Likewise.
49828         * lib/sys_time_.h: Likewise.
49829         * lib/time_.h: Likewise.
49830         * lib/unistd_.h: Likewise.
49831         * lib/wchar_.h: Likewise.
49832         * lib/wctype_.h: Likewise.
49833         * lib/dirent_.h: Likewise.
49834         * lib/iconv_.h: Likewise.
49835         * lib/locale_.h: Likewise.
49836         * lib/netinet_in_.h: Likewise.
49837         * lib/sys_select_.h: Likewise.
49838         * lib/sys_socket_.h: Likewise.
49839         * lib/sysexits_.h: Likewise.
49840         * modules/fcntl (Depends-on): Depend on include_next, not
49841         absolute_header.
49842         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49843         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49844         * modules/fchdir: Likewise.
49845         * modules/float: Likewise.
49846         * modules/iconv_open: Likewise.
49847         * modules/inttypes: Likewise.
49848         * modules/locale: Likewise.
49849         * modules/math: Likewise.
49850         * modules/netinet_in: Likewise.
49851         * modules/search: Likewise.
49852         * modules/signal: Likewise.
49853         * modules/stdint: Likewise.
49854         * modules/stdio: Likewise.
49855         * modules/stdlib: Likewise.
49856         * modules/string: Likewise.
49857         * modules/sys_select: Likewise.
49858         * modules/sys_socket: Likewise.
49859         * modules/sys_stat: Likewise.
49860         * modules/sys_time: Likewise.
49861         * modules/sysexits: Likewise.
49862         * modules/time: Likewise.
49863         * modules/unistd: Likewise.
49864         * modules/wchar: Likewise.
49865         * modules/wctype: Likewise.
49866         * modules/sys_stat: Change maintainer to "all".
49867         * modules/unistd: Likewise.
49868
49869 2007-06-20  Karl Berry  <karl@gnu.org>
49870
49871         * config/srclist.txt: track www changes in license files.
49872
49873 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49874
49875         * build-aux/bootstrap: Remove stray dot.
49876         Make sure build_aux settings are honored when linking
49877         gnulib_extra_files.
49878
49879 2007-06-19  Eric Blake  <ebb9@byu.net>
49880
49881         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49882         Allow compilation on cygwin.
49883
49884 2007-06-19  Jim Meyering  <jim@meyering.net>
49885
49886         xreadlink-with-size: Remove module.  No longer used.
49887         Ex-callers now use xreadlink or mreadlink-with-size.
49888         * modules/xreadlink-with-size: Remove module.
49889         * lib/xreadlink-with-size.c: Remove file.
49890         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49891         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49892         just before the function definition *is* accurate.
49893
49894         Eliminate one way canonicalize_filename_mode could exit.
49895         * lib/canonicalize.c (canonicalize_filename_mode):
49896         Use mreadlink_with_size, not xreadlink_with_size.
49897
49898 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49899
49900         Detect porting problems to FreeBSD/arm, which has time_t wider than
49901         long int.  Original problem reported for GNU diff by Xin Li in
49902         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49903         * modules/getdate (Depends-on): Add intprops, verify.
49904         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49905         is an integer type no wider than long int.
49906
49907 2007-06-18  Jim Meyering  <jim@meyering.net>
49908
49909         New module: mreadlink-with-size.
49910         * MODULES.html.sh: Add mreadlink-with-size.
49911         * modules/mreadlink-with-size: New module
49912         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49913         not xreadlink-with-size.
49914         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49915
49916 2007-06-16  Bruno Haible  <bruno@clisp.org>
49917
49918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49919         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49920         Reported by Gary V. Vaughan <gary@gnu.org>.
49921
49922 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         Revamp lchown so that it lives in unistd.h where it belongs.
49925         * lib/lchown.h: Remove.
49926         * lib/dirchownmod.c: Don't include lib/lchown.h.
49927         * lib/fchownat.c: Likewise.
49928         * lib/openat.c: Likewise.
49929         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49930         does not follow symlinks.
49931         (EOPNOTSUPP): Define if not defined.
49932         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49933         is defined to 0.
49934         (lchown): New decl.
49935         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49936         Do not check for lchown decl.
49937         Set REPLACE_LCHOWN.
49938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49939         REPLACE_LCHOWN.
49940         * modules/chown: Make it clear it follows symlinks.
49941         * modules/lchown: Make it clear it doesn't follow symlinks.
49942         (Files): Remove lib/lchown.h
49943         (Depends-on): Add unistd.
49944         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49945         (Include): Include <unistd.h>, not "lchown.h".
49946         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49947         REPLACE_LCHOWN.
49948
49949 2007-06-15  Jim Meyering  <jim@meyering.net>
49950
49951         Change license (GPL to LGPL) of fsusage and dependents.
49952         * modules/fsusage (License): Change to LGPL.
49953         * modules/full-read (License): Likewise.
49954         * modules/full-write (License): Likewise.
49955         * modules/safe-read (License): Likewise.
49956         * modules/safe-write (License): Likewise.
49957
49958 2007-06-14  Ben Pfaff  <blp@gnu.org>
49959
49960         Missing part of allocsa -> malloca transition.
49961         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49962         gl_MALLOCA.
49963
49964 2007-06-12  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49967         to ia64, x86_64, i386.
49968         Reported by Eric Blake.
49969
49970 2007-06-12  Bruno Haible  <bruno@clisp.org>
49971
49972         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49973         cross-compiling to x86_64.
49974
49975 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49976
49977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49978         glitch reported by Ralf Wildenhues in
49979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49980
49981         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49982         Vin Shelton.
49983
49984 2007-06-11  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49987         replacement string.
49988         Reported by Eric Blake.
49989
49990 2007-06-10  Bruno Haible  <bruno@clisp.org>
49991
49992         Prepare vasnprintf code for use with Unicode strings.
49993         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49994         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49995         TYPE_U32_STRING.
49996         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49997         a_u32_string variants.
49998         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49999         * lib/printf-args.c: Don't include config.h and the specification
50000         header if PRINTF_FETCHARGS is already defined.
50001         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50002         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50003         TYPE_U16_STRING, TYPE_U32_STRING.
50004         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50005         u16_directive, u16_directives, u32_directive, u32_directives): New
50006         types.
50007         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50008         New declarations.
50009         * lib/printf-parse.c: Don't include config.h and the specification
50010         header if PRINTF_PARSE is already defined. Eliminate the set of
50011         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50012         them now. Include c-ctype.h.
50013         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50014         directive and CHAR_T_ONLY_ASCII.
50015         * lib/vasnprintf.c: Don't include config.h and the specification header
50016         if VASNPRINTF is already defined.
50017         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50018         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50019         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50020         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50021         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50022         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50023         code accordingly.
50024         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50025         pad_ourselves also in this case, with the 'c' and 's' directives, and
50026         with a different notion of "width".
50027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50028
50029 2007-06-10  Bruno Haible  <bruno@clisp.org>
50030
50031         * modules/unistr/u32-mbsnlen: New file.
50032         * lib/unistr/u32-mbsnlen.c: New file.
50033
50034         * modules/unistr/u16-mbsnlen: New file.
50035         * lib/unistr/u16-mbsnlen.c: New file.
50036
50037         * modules/unistr/u8-mbsnlen: New file.
50038         * lib/unistr/u8-mbsnlen.c: New file.
50039
50040         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50041         declarations.
50042
50043 2007-06-10  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/string_.h (mbsnlen): New declaration.
50046         * lib/mbsnlen.c: New file.
50047         * m4/mbsnlen.m4: New file.
50048         * modules/mbsnlen: New file.
50049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50050         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50051         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50052
50053 2007-06-10  Bruno Haible  <bruno@clisp.org>
50054
50055         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50056
50057 2007-06-10  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50060         * lib/mbuiter.h: Likewise.
50061
50062 2007-06-10  Bruno Haible  <bruno@clisp.org>
50063
50064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50065         declaration.
50066
50067 2007-06-10  Karl Berry  <karl@gnu.org>
50068
50069         * config/srclist.txt: remove gettext entries, Bruno prefers
50070         to update individually.
50071
50072 2007-06-10  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50075         'maxlen'. Ensure only length + width bytes are allocated, not
50076         length + 1 + width.
50077
50078 2007-06-09  Bruno Haible  <bruno@clisp.org>
50079
50080         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50081         (CHAR_T): Remove macro.
50082         (VASNPRINTF): Update.
50083
50084 2007-06-09  Bruno Haible  <bruno@clisp.org>
50085
50086         * MODULES.html.sh (Unicode string functions): Add the new modules.
50087
50088         * modules/uniconv/u32-conv-to-enc: New file.
50089         * lib/uniconv/u32-conv-to-enc.c: New file.
50090         * modules/uniconv/u32-conv-to-enc-tests: New file.
50091         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50092
50093         * modules/uniconv/u16-conv-to-enc: New file.
50094         * lib/uniconv/u16-conv-to-enc.c: New file.
50095         * lib/uniconv/u-conv-to-enc.h: New file.
50096         * modules/uniconv/u16-conv-to-enc-tests: New file.
50097         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50098
50099         * modules/uniconv/u8-conv-to-enc: New file.
50100         * lib/uniconv/u8-conv-to-enc.c: New file.
50101         * modules/uniconv/u8-conv-to-enc-tests: New file.
50102         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50103
50104         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50105         u32_conv_to_encoding): New declarations.
50106
50107 2007-06-09  Bruno Haible  <bruno@clisp.org>
50108
50109         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50110
50111 2007-06-09  Bruno Haible  <bruno@clisp.org>
50112
50113         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50114         * modules/malloca: Renamed from modules/allocsa, updated.
50115         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50116         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50117         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50118         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50119         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50120         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50121         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50122         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50123         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50124         * modules/c-strcasestr (Depends-on): Update.
50125         * lib/c-strcasestr.c: Update.
50126         * modules/c-strstr (Depends-on): Update.
50127         * lib/c-strstr.c: Update.
50128         * modules/canonicalize-lgpl (Depends-on): Update.
50129         * lib/canonicalize-lgpl.c: Update.
50130         * modules/clean-temp (Depends-on): Update.
50131         * lib/clean-temp.c: Update.
50132         * modules/csharpcomp (Depends-on): Update.
50133         * lib/csharpcomp.c: Update.
50134         * modules/csharpexec (Depends-on): Update.
50135         * lib/csharpexec.c: Update.
50136         * modules/javacomp (Depends-on): Update.
50137         * lib/javacomp.c: Update.
50138         * modules/javaexec (Depends-on): Update.
50139         * lib/javaexec.c: Update.
50140         * modules/mbscasestr (Depends-on): Update.
50141         * lib/mbscasestr.c: Update.
50142         * modules/mbsstr (Depends-on): Update.
50143         * lib/mbsstr.c: Update.
50144         * modules/setenv (Depends-on): Update.
50145         * lib/setenv.c: Update.
50146         * modules/strcasestr (Depends-on): Update.
50147         * lib/strcasestr.c: Update.
50148         * modules/striconveha (Depends-on): Update.
50149         * lib/striconveha.c: Update.
50150         * modules/relocatable-prog-wrapper (Files): Update.
50151         * lib/relocwrapper.c: Update.
50152         * build-aux/install-reloc: Update.
50153         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50154
50155 2007-06-08  Bruno Haible  <bruno@clisp.org>
50156
50157         Port to uClibc.
50158         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50159         * lib/fpurge.c (fpurge): Likewise.
50160         * lib/freading.c (freading): Likewise.
50161         * lib/fseeko.c (rpl_fseeko): Likewise.
50162         * lib/fseterr.c (fseterr): Likewise.
50163         * lib/fwriting.c (fwriting): Likewise.
50164         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50165
50166 2007-06-08  Bruno Haible  <bruno@clisp.org>
50167
50168         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50169         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50170         * modules/gettext (Files): Add m4/intlmacosx.m4.
50171
50172 2007-06-07  Bruno Haible  <bruno@clisp.org>
50173
50174         * modules/localename-tests: New file.
50175         * tests/test-localename.c: New file.
50176
50177         New module 'localename'.
50178         * lib/localename.h: New file.
50179         * lib/localename.c: New file, from GNU gettext.
50180         * m4/localename.m4: New file.
50181         * modules/localename: New file.
50182
50183 2007-06-07  Bruno Haible  <bruno@clisp.org>
50184
50185         Work around the lack of <wchar.h> on some builds of uClibc.
50186         * doc/headers/wchar.texi: Update.
50187         * lib/wchar_.h: Include <wchar.h> only if it exists.
50188         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50189         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50190         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50191         doesn't exist.
50192         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50193         * modules/mbfile (Depends-on): Add wchar.
50194         * modules/mbiter (Depends-on): Likewise.
50195         * modules/mbuiter (Depends-on): Likewise.
50196         Reported by Simon Josefsson.
50197
50198 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50199
50200         Work around problem reported by Steven M. Schweda in
50201         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50202         Tru64 5.1B with the Compaq compiler environment installed declares
50203         an 'isblank' function but does not define it in the C library.
50204         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50205         * lib/regex_internal.h (isblank): Likewise.
50206         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50207         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50208
50209 2007-06-05  Bruno Haible  <bruno@clisp.org>
50210
50211         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50212         ia64.
50213         * modules/printf-safe: New file.
50214         * modules/fprintf-posix (Depends-on): Add printf-safe.
50215         * modules/printf-posix (Depends-on): Likewise.
50216         * modules/snprintf-posix (Depends-on): Likewise.
50217         * modules/sprintf-posix (Depends-on): Likewise.
50218         * modules/vasnprintf-posix (Depends-on): Likewise.
50219         * modules/vasprintf-posix (Depends-on): Likewise.
50220         * modules/vfprintf-posix (Depends-on): Likewise.
50221         * modules/vprintf-posix (Depends-on): Likewise.
50222         * modules/vsnprintf-posix (Depends-on): Likewise.
50223         * modules/vsprintf-posix (Depends-on): Likewise.
50224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50225         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50226         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50227         "no" on i386, x86_64, ia64.
50228         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50229         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50230         on i386, x86_64, ia64.
50231         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50232         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50233         on i386, x86_64, ia64.
50234         * tests/test-vasnprintf-posix.c: Include float.h.
50235         (LDBL80_WORDS): New macro.
50236         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50237         on i386, x86_64, ia64.
50238         * tests/test-vasprintf-posix.c: Include float.h.
50239         (LDBL80_WORDS): New macro.
50240         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50241         on i386, x86_64, ia64.
50242         * tests/test-snprintf-posix.c: Include float.h.
50243         * tests/test-sprintf-posix.c: Likewise.
50244         * tests/test-vsnprintf-posix.c: Likewise.
50245         * tests/test-vsprintf-posix.c: Likewise.
50246
50247 2007-06-05  Bruno Haible  <bruno@clisp.org>
50248
50249         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50250         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50251         non-IEEE numbers on i386, x86_64, ia64.
50252         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50253         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50254         * tests/test-isnanl.h: Include float.h.
50255         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50256
50257 2007-06-05  Bruno Haible  <bruno@clisp.org>
50258
50259         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50260         also the %a / %A. Handle the %a / %A code before this extra handling.
50261
50262 2007-06-05  Bruno Haible  <bruno@clisp.org>
50263
50264         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50265         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50266
50267 2007-06-05  Bruno Haible  <bruno@clisp.org>
50268
50269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50270         typo in variable name.
50271
50272 2007-06-05  Eric Blake  <ebb9@byu.net>
50273
50274         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50275         Reported by Simon Josefsson.
50276
50277 2007-06-04  Bruno Haible  <bruno@clisp.org>
50278
50279         Avoid test failures on some PowerPC platforms.
50280         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50281         Define differently for PowerPC.
50282         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50283         Reported by Gary V. Vaughan <gary@gnu.org>.
50284
50285 2007-06-02  Bruno Haible  <bruno@clisp.org>
50286
50287         Fix test-stdint failure on FreeBSD/ia64.
50288         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50289         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50290         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50291         * doc/headers/stdint.texi: Update.
50292
50293 2007-06-01  Bruno Haible  <bruno@clisp.org>
50294
50295         * tests/test-binary-io.c (main): Pass a third argument to open().
50296         Reported by Gary V. Vaughan <gary@gnu.org>.
50297
50298 2007-06-01  Bruno Haible  <bruno@clisp.org>
50299
50300         * doc/functions/frexpl.texi: Update for mingw.
50301
50302 2007-06-01  Bruno Haible  <bruno@clisp.org>
50303
50304         * tests/test-lseek.c (main): Disable test of errno for invalid third
50305         argument.
50306         * doc/functions/lseek.texi: Update.
50307         Reported by Gary V. Vaughan <gary@gnu.org>.
50308
50309 2007-05-28  Bruno Haible  <bruno@clisp.org>
50310
50311         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50312
50313 2007-05-31  Eric Blake  <ebb9@byu.net>
50314
50315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50316         cross compiling.
50317
50318 2007-05-30  Eric Blake  <ebb9@byu.net>
50319         and Bruno Haible  <bruno@clisp.org>
50320
50321         Work around mingw test failures exposed by m4-1.4.9b.
50322         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50323         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50324         moment.
50325
50326 2007-05-30  Bruno Haible  <bruno@clisp.org>
50327
50328         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50329         assuming that they are closed. Needed on HP-UX 11.
50330
50331 2007-05-29  Bruno Haible  <bruno@clisp.org>
50332
50333         Fix a problem with #include_next.
50334         * lib/dirent_.h: Split the double-inclusion guard.
50335         * lib/fcntl_.h: Likewise.
50336         * lib/float_.h: Likewise.
50337         * lib/iconv_.h: Likewise.
50338         * lib/inttypes_.h: Likewise.
50339         * lib/locale_.h: Likewise.
50340         * lib/math_.h: Likewise.
50341         * lib/netinet_in_.h: Likewise.
50342         * lib/search_.h: Likewise.
50343         * lib/signal_.h: Likewise.
50344         * lib/stdint_.h: Likewise.
50345         * lib/stdio_.h: Likewise.
50346         * lib/stdlib_.h: Likewise.
50347         * lib/string_.h: Likewise.
50348         * lib/sys_select_.h: Likewise.
50349         * lib/sys_socket_.h: Likewise.
50350         * lib/sys_stat_.h: Likewise.
50351         * lib/sys_time_.h: Likewise.
50352         * lib/sysexits_.h: Likewise.
50353         * lib/time_.h: Likewise.
50354         * lib/unistd_.h: Likewise.
50355         * lib/wchar_.h: Likewise.
50356         * lib/wctype_.h: Likewise.
50357
50358 2007-05-29  Bruno Haible  <bruno@clisp.org>
50359
50360         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50361         for the moment.
50362
50363 2007-05-29  Bruno Haible  <bruno@clisp.org>
50364
50365         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50366         invocation.
50367         Reported by Eric Blake.
50368
50369 2007-05-29  Bruno Haible  <bruno@clisp.org>
50370
50371         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50372         compiling case.
50373
50374 2007-05-29  Eric Blake  <ebb9@byu.net>
50375             Bruno Haible  <bruno@clisp.org>
50376
50377         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50378         cross compiles.
50379
50380 2007-05-28  Eric Blake  <ebb9@byu.net>
50381
50382         * modules/closein-tests (test_closein_LDADD): Support test on
50383         cygwin with libtool.
50384
50385 2007-05-28  Bruno Haible  <bruno@clisp.org>
50386
50387         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50388         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50389         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50390         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50391         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50392         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50393         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50394         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50395         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50396
50397 2007-05-28  Eric Blake  <ebb9@byu.net>
50398
50399         Unconditionally include <config.h> in unit tests.
50400         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50401         * tests/test-allocsa.c, tests/test-arcfour.c,
50402         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50403         tests/test-array_list.c, tests/test-array_oset.c,
50404         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50405         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50406         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50407         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50408         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50409         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50410         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50411         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50412         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50413         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50414         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50415         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50416         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50417         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50418         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50419         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50420         test-md5.c, test-memmem.c, test-printf-posix.c,
50421         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50422         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50423         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50424         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50425         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50426         test-vasnprintf-posix2.c, test-vasnprintf.c,
50427         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50428         test-vfprintf-posix.c, test-vprintf-posix.c,
50429         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50430         test-xvasprintf.c: Likewise.
50431
50432 2007-05-28  Bruno Haible  <bruno@clisp.org>
50433
50434         * gnulib-tool (func_import): Remember the --with-tests command-line
50435         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50436         Reported by Eric Blake.
50437
50438 2007-05-28  Bruno Haible  <bruno@clisp.org>
50439
50440         * modules/ftell-tests: New file.
50441         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50442         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50443
50444         * lib/ftell.c: New file.
50445         * modules/ftell: New file.
50446         * m4/ftell.m4: New file.
50447         * doc/functions/ftell.texi: Update.
50448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50449         REPLACE_FTELL.
50450         * lib/stdio_.h (rpl_ftell): New declaration.
50451         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50452         REPLACE_FTELL.
50453
50454 2007-05-28  Eric Blake  <ebb9@byu.net>
50455
50456         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50457
50458 2007-05-28  Bruno Haible  <bruno@clisp.org>
50459
50460         * modules/fseek-tests: New file.
50461         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50462         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50463
50464         * lib/fseek.c: New file.
50465         * modules/fseek: New file.
50466         * m4/fseek.m4: New file.
50467         * doc/functions/fseek.texi: Update.
50468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50469         REPLACE_FSEEK.
50470         * lib/stdio_.h (rpl_fseek): New declaration.
50471         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50472         REPLACE_FSEEK.
50473
50474 2007-05-28  Bruno Haible  <bruno@clisp.org>
50475
50476         * lib/stdio_.h (fflush): More comments.
50477
50478 2007-05-28  Bruno Haible  <bruno@clisp.org>
50479
50480         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50481         runtime test.
50482
50483 2007-05-28  Eric Blake  <ebb9@byu.net>
50484
50485         Improve lseek module.
50486         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50487         * lib/unistd_.h (lseek): Scale back link warning message.
50488         * tests/test-lseek.c: Beef up test.
50489         * tests/test-lseek.sh: Exercise more facets of lseek.
50490         Reported by Bruno Haible.
50491
50492 2007-05-28  Bruno Haible  <bruno@clisp.org>
50493
50494         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50495         to define.
50496
50497 2007-05-27  Bruno Haible  <bruno@clisp.org>
50498
50499         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50500
50501 2007-05-27  Bruno Haible  <bruno@clisp.org>
50502
50503         * modules/openmp: New file.
50504         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50505         Noah Misch.
50506
50507 2007-05-26  Bruno Haible  <bruno@clisp.org>
50508
50509         * modules/chdir-long (Depends-on): Add fchdir.
50510         * modules/chdir-safer (Depends-on): Likewise.
50511         * modules/fts (Depends-on): Likewise.
50512         * modules/fts-lgpl (Depends-on): Likewise.
50513         * modules/openat (Depends-on): Likewise.
50514         * modules/savewd (Depends-on): Likewise.
50515
50516 2007-05-24  Eric Blake  <ebb9@byu.net>
50517
50518         Fix lseek on mingw.
50519         * modules/lseek: New module.
50520         * m4/lseek.m4: New file.
50521         * lib/lseek.c: New file.
50522         * modules/lseek-tests: New file.
50523         * tests/test-lseek.c: New file.
50524         * tests/test-lseek.sh: New file.
50525         * MODULES.html.sh: Document lseek module.
50526         * modules/fflush (Depends-on): Add lseek, fseeko.
50527         * modules/fseeko (Depends-on): Likewise.
50528         * modules/ftello (Depends-on): Likewise.
50529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50530         broken.
50531         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50532         broken.
50533         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50534         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50535         * lib/ftello.c (rpl_ftello): Likewise.
50536         * tests/test-fseeko.c (main): Test this.
50537         * tests/test-fseeko.sh: Likewise.
50538         * tests/test-ftello.c (main): Likewise.
50539         * tests/test-ftello.sh: Likewise.
50540         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50541         implies replacing fseek.
50542         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50543         HAVE_FTELLO.
50544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50545         * modules/unistd (Makefile.am): Likewise.
50546         * lib/unistd_.h (lseek): Declare a replacement.
50547         * doc/functions/lseek.texi (lseek): Document this fix.
50548         * doc/functions/fseek.texi (fseek): Likewise.
50549         * doc/functions/ftell.texi (ftell): Likewise.
50550
50551 2007-05-24  Bruno Haible  <bruno@clisp.org>
50552
50553         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50554         in the printed representation of a NaN.
50555         * tests/test-vasprintf-posix.c (test_function): Likewise.
50556         * tests/test-snprintf-posix.h (test_function): Likewise.
50557         * tests/test-sprintf-posix.h (test_function): Likewise.
50558         Reported by Eric Blake.
50559
50560 2007-05-23  Eric Blake  <ebb9@byu.net>
50561
50562         Fix fseeko/ftello on cygwin 1.5.24.
50563         * doc/functions/fseeko.texi (fseeko): Document the fix.
50564         * doc/functions/ftello.texi (ftello): Document the fix.
50565         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50566         * doc/functions/stdout.text (stdout): New file.
50567         * doc/functions/stderr.text (stderr): New file.
50568         * doc/gnulib.texi (Function Substitutes): Use new files.
50569         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50570         prior to 1.7.0.
50571         * tests/test-ftello.c (main): Likewise for ftello.
50572         * tests/test-fseeko.sh: New file.
50573         * tests/test-ftello.sh: New file.
50574         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50575         with seekable stdin.
50576         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50577         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50578         (gl_REPLACE_FSEEKO): New macro.
50579         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50580         * modules/fseeko (Files): Distribute fseeko.c.
50581         * modules/ftello (Files): Distribute ftello.c.
50582         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50583         mode.
50584         * lib/ftello.c (rpl_ftello): New file.
50585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50586         fseeko, ftello.
50587         (gl_STDIN_LARGE_OFFSET): New macro.
50588         * modules/stdio (Makefile.am): Perform the replacement.
50589         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50590
50591 2007-05-23  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50594         GNULIB_POSIXCHECK is defined.
50595
50596 2007-05-21  Bruno Haible  <bruno@clisp.org>
50597
50598         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50599         Check also the output for NaN arguments. When cross-compiling, guess
50600         no on IRIX.
50601         * lib/vasnprintf.c: Update comments.
50602         * tests/test-vasnprintf-posix.c (strisnan): New function.
50603         (test_function): Use it.
50604         * tests/test-vasprintf-posix.c (strisnan): New function.
50605         (test_function): Use it.
50606         * tests/test-snprintf-posix.h (strisnan): New function.
50607         (test_function): Use it.
50608         * tests/test-sprintf-posix.h (strisnan): New function.
50609         (test_function): Use it.
50610         Reported by Eric Blake.
50611
50612 2007-05-20  Bruno Haible  <bruno@clisp.org>
50613
50614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50615         numbers that fails on BeOS.
50616         * doc/functions/frexpl.texi: Update.
50617
50618 2007-05-20  Jim Meyering  <jim@meyering.net>
50619
50620         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50621         forced upon us by glibc-2.6.
50622
50623 2007-05-20  Bruno Haible  <bruno@clisp.org>
50624
50625         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50626         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50627         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50628         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50629         NEED_PRINTF_INFINITE.
50630         (is_infinitel): New function.
50631         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50633         gl_PREREQ_VASNPRINTF_INFINITE.
50634         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50636         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50637         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50638         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50639         gl_PREREQ_VASNPRINTF_INFINITE.
50640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50647         * doc/functions/fprintf.texi: Update.
50648         * doc/functions/printf.texi: Update.
50649         * doc/functions/snprintf.texi: Update.
50650         * doc/functions/sprintf.texi: Update.
50651         * doc/functions/vfprintf.texi: Update.
50652         * doc/functions/vprintf.texi: Update.
50653         * doc/functions/vsnprintf.texi: Update.
50654         * doc/functions/vsprintf.texi: Update.
50655
50656 2007-05-20  Bruno Haible  <bruno@clisp.org>
50657
50658         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50659         was not found in libc.
50660         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50661
50662 2007-05-20  Bruno Haible  <bruno@clisp.org>
50663
50664         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50665         printed as "-nan" instead of "nan".
50666         * tests/test-vasprintf-posix.c (test_function): Likewise.
50667         * tests/test-snprintf-posix.h (test_function): Likewise.
50668         * tests/test-sprintf-posix.h (test_function): Likewise.
50669         Needed for HP-UX 11.
50670
50671 2007-05-20  Jim Meyering  <jim@meyering.net>
50672
50673         Fix buggy test for the fchownat-deref bug.
50674         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50675         symlink required for the run-test.  Without it, this test would
50676         always declare that fchownat doesn't work, and client code would
50677         unnecessarily use the replacement function with fixed libc.
50678         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50679         Reported by Greg Schafer.
50680
50681 2007-05-19  Bruno Haible  <bruno@clisp.org>
50682
50683         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50684         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50685         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50686         Needed for IRIX 6.5 and Solaris 2.5.1.
50687
50688 2007-05-19  Bruno Haible  <bruno@clisp.org>
50689
50690         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50691         (test_function): Skip tests involving -0.0 on platforms where
50692         -0.0 = 0.0.
50693         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50694         (test_function): Skip tests involving -0.0 on platforms where
50695         -0.0 = 0.0.
50696         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50697         (test_function): Skip tests involving -0.0 on platforms where
50698         -0.0 = 0.0.
50699         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50700         (test_function): Skip tests involving -0.0 on platforms where
50701         -0.0 = 0.0.
50702         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50703         tests.
50704         * tests/test-printf-posix.h (test_function): Likewise.
50705         * tests/test-printf-posix.output: Remove all -0.0 related results.
50706         Needed for IRIX 6.5.
50707
50708 2007-05-19  Bruno Haible  <bruno@clisp.org>
50709
50710         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50711         printed as "nan0x7fffffff" instead of "nan".
50712         * tests/test-vasprintf-posix.c (test_function): Likewise.
50713         * tests/test-snprintf-posix.h (test_function): Likewise.
50714         * tests/test-sprintf-posix.h (test_function): Likewise.
50715         * tests/test-fprintf-posix.h (NaN): Remove macro.
50716         (test_function): Remove all NaN related tests.
50717         * tests/test-printf-posix.h (NaN): Remove macro.
50718         (test_function): Remove all NaN related tests.
50719         * tests/test-printf-posix.output: Remove all NaN related results.
50720         Needed for IRIX 6.5.
50721
50722 2007-05-19  Bruno Haible  <bruno@clisp.org>
50723
50724         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50726
50727 2007-05-19  Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/float_.h: New file.
50730         * m4/float_h.m4: New file.
50731         * modules/float: New file.
50732         * modules/isnanl (Dependencies): Add float.
50733         * modules/isnanl-nolibm (Dependencies): Likewise.
50734         * modules/mathl (Dependencies): Likewise.
50735         * modules/printf-frexpl (Dependencies): Likewise.
50736         * modules/signbit (Dependencies): Likewise.
50737         * modules/vasnprintf (Dependencies): Likewise.
50738         * doc/headers/float.texi: Update.
50739
50740 2007-05-19  Jim Meyering  <jim@meyering.net>
50741
50742         * lib/utimens.c (gl_futimens): Rename from futimens,
50743         now that glibc-2.6 declares futimens.
50744         * lib/utimens.h: Likewise.
50745
50746 2007-05-19  Bruno Haible  <bruno@clisp.org>
50747
50748         Avoid test failures on mingw.
50749         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50750         * tests/test-printf-posix.sh: Likewise.
50751         * tests/test-vfprintf-posix.sh: Likewise.
50752         * tests/test-vprintf-posix.sh: Likewise.
50753
50754 2007-05-19  Bruno Haible  <bruno@clisp.org>
50755
50756         Fix *printf result for NaN, Inf, -0.0 on mingw.
50757         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50758         * lib/vasnprintf.c: Include math.h and isnan.h.
50759         (is_infinite_or_zero): New function.
50760         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50761         values in the %f, %F, %e, %E, %g, %G directives.
50762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50764         gl_PRINTF_INFINITE and test its result. Invoke
50765         gl_PREREQ_VASNPRINTF_INFINITE.
50766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50769         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50770         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50772         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50773         * doc/functions/fprintf.texi: Update.
50774         * doc/functions/printf.texi: Update.
50775         * doc/functions/snprintf.texi: Update.
50776         * doc/functions/sprintf.texi: Update.
50777         * doc/functions/vfprintf.texi: Update.
50778         * doc/functions/vprintf.texi: Update.
50779         * doc/functions/vsnprintf.texi: Update.
50780         * doc/functions/vsprintf.texi: Update.
50781
50782 2007-05-19  Bruno Haible  <bruno@clisp.org>
50783
50784         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50785         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50786         Instead of multiplying with 10^k, set extra_zeroes to k.
50787         (scale10_round_long_double): Remove function.
50788
50789 2007-05-18  Bruno Haible  <bruno@clisp.org>
50790
50791         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50792         introduced on 2007-05-06.
50793
50794 2007-05-18  Bruno Haible  <bruno@clisp.org>
50795
50796         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50797         %g directives.
50798         * tests/test-vasprintf-posix.c (test_function): Likewise.
50799         * tests/test-snprintf-posix.h (test_function): Likewise.
50800         * tests/test-sprintf-posix.h (test_function): Likewise.
50801
50802 2007-05-18  Bruno Haible  <bruno@clisp.org>
50803
50804         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50805         (strmatch): New function.
50806         (test_function): Test the %f directive on numbers of various exponents.
50807         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50808         (strmatch): New function.
50809         (test_function): Test the %f directive on numbers of various exponents.
50810         * tests/test-snprintf-posix.h (strmatch): New function.
50811         (test_function): Test the %f directive on numbers of various exponents.
50812         * tests/test-sprintf-posix.h (strmatch): New function.
50813         (test_function): Test the %f directive on numbers of various exponents.
50814         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50815         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50816         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50817         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50818
50819 2007-05-18  Bruno Haible  <bruno@clisp.org>
50820
50821         Add support for 'long double' number output.
50822         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50823         * lib/vasnprintf.c: Include math.h and float+.h.
50824         (mp_limb_t): New type.
50825         (GMP_LIMB_BITS): New macro.
50826         (mp_twolimb_t): New type.
50827         (GMP_TWOLIMB_BITS): New macro.
50828         (mpn_t): New type.
50829         (multiply, divide, convert_to_decimal, decode_long_double,
50830         scale10_round_long_double, scale10_round_decimal_long_double,
50831         floorlog10l): New functions.
50832         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50833         for the %f, %F, %e, %E, %g, %G directives.
50834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50836         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50837         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50845         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50846         * modules/snprintf-posix (Depends-on): Likewise.
50847         * modules/sprintf-posix (Depends-on): Likewise.
50848         * modules/vasnprintf-posix (Depends-on): Likewise.
50849         * modules/vasprintf-posix (Depends-on): Likewise.
50850         * modules/vfprintf-posix (Depends-on): Likewise.
50851         * modules/vsnprintf-posix (Depends-on): Likewise.
50852         * modules/vsprintf-posix (Depends-on): Likewise.
50853         * modules/vasnprintf (Files): Add lib/float+.h.
50854         * doc/functions/fprintf.texi: Update.
50855         * doc/functions/printf.texi: Update.
50856         * doc/functions/snprintf.texi: Update.
50857         * doc/functions/sprintf.texi: Update.
50858         * doc/functions/vfprintf.texi: Update.
50859         * doc/functions/vprintf.texi: Update.
50860         * doc/functions/vsnprintf.texi: Update.
50861         * doc/functions/vsprintf.texi: Update.
50862
50863 2007-05-18  Bruno Haible  <bruno@clisp.org>
50864
50865         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50866
50867 2007-05-18  Bruno Haible  <bruno@clisp.org>
50868
50869         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50870         for printing 64-bit integers. Needed for mingw.
50871
50872 2007-05-18  Bruno Haible  <bruno@clisp.org>
50873
50874         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50875         gl_FUNC_FREXPL_WORKS.
50876         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50877
50878 2007-05-18  Bruno Haible  <bruno@clisp.org>
50879
50880         * modules/frexpl-nolibm-tests: New file.
50881
50882         * modules/frexpl-nolibm: New file.
50883         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50884
50885 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50886
50887         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50888         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50889         GCC 4.2, which otherwise issues a lot of warnings.
50890         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50891         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50892         Likewise.
50893         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50894         * modules/iconv_open (iconv.h): Likewise.
50895         * modules/locale (locale.h): Likewise.
50896         * modules/netinet_in (netinet/in.h): Likewise.
50897         * modules/sys_select (sys_select.h): Likewise.
50898         * modules/sys_socket (sys/socket.h): Likewise.
50899         * modules/sys_stat (sys/stat.h): Likewise.
50900         * modules/sysexits (sysexits.h): Likewise.
50901         * modules/unistd (unistd.h): Likewise.
50902
50903 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50904
50905         * modules/closein-tests (Makefile.am): Distribute
50906         `test-closein.sh'.
50907
50908 2007-05-17  Bruno Haible  <bruno@clisp.org>
50909
50910         * tests/test-printf-posix.output: Renamed from
50911         tests/test-fprintf-posix.out.
50912         * modules/fprintf-posix-tests: Update.
50913         * modules/printf-posix-tests: Update.
50914         * modules/vfprintf-posix-tests: Update.
50915         * modules/vprintf-posix-tests: Update.
50916         * tests/test-fprintf-posix.sh: Update.
50917         * tests/test-printf-posix.sh: Update.
50918         * tests/test-vfprintf-posix.sh: Update.
50919         * tests/test-vprintf-posix.sh: Update.
50920         Reported by Ralf Wildenhues.
50921
50922 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50923
50924         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50925         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50926         GCC 4.2, which otherwise issues a lot of warnings.
50927         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50928         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50929         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50930         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50931         it should no longer be needed.
50932         * lib/string_.h: Likewise.
50933         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50934         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50935         * modules/inttypes (inttypes.h): Likewise.
50936         * modules/math (math.h): Likewise.
50937         * modules/search (search.h): Likewise.
50938         * modules/signal (signal.h): Likewise.
50939         * modules/stdint (stdint.h): Likewise.
50940         * modules/stdio (stdio.h): Likewise.
50941         * modules/stdlib (stdlib.h): Likewise.
50942         * modules/string (string.h): Likewise.
50943         * modules/sys_time (sys/time.h): Likewise.
50944         * modules/time (time.h): Likewise.
50945         * modules/wchar (wchar.h): Likewise.
50946         * modules/wctype (wtype.h): Likewise.
50947
50948 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50949
50950         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50951
50952 2007-05-13  Bruno Haible  <bruno@clisp.org>
50953
50954         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50955         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50956         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50957         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50958         (gl_PREREQ_STRTOK_R): Don't require it here.
50959
50960 2007-05-13  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50963         when used in C++ mode.
50964
50965 2007-05-12  Bruno Haible  <bruno@clisp.org>
50966
50967         * lib/linebuffer.h: Tweak doc.
50968         * lib/linebuffer.c: Likewise.
50969
50970 2007-05-12  James Youngman  <jay@gnu.org>
50971
50972         * lib/linebuffer.c (readlinebuffer_delim): New function,
50973         like readlinebuffer, but use a caller-specified delimiter.
50974         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50975         as the delimiter.
50976         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50977
50978 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50979
50980         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50981         * modules/openat (Files): Remove openat-die.c.
50982         (Depends-on): Add openat-die.
50983         * modules/openat-die: New module.
50984
50985 2007-05-06  Bruno Haible  <bruno@clisp.org>
50986
50987         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50988         Update with info about Cygwin.
50989         * doc/functions/fprintf.texi: Update.
50990         * doc/functions/printf.texi: Update.
50991         * doc/functions/snprintf.texi: Update.
50992         * doc/functions/sprintf.texi: Update.
50993         * doc/functions/vfprintf.texi: Update.
50994         * doc/functions/vprintf.texi: Update.
50995         * doc/functions/vsnprintf.texi: Update.
50996         * doc/functions/vsprintf.texi: Update.
50997         Reported by Eric Blake.
50998
50999 2007-05-06  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51002         padding ourselves for the floating-point directives.
51003         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51006         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51007         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51015         * tests/test-snprintf-posix.h (test_function): Also check the width
51016         and some flags in the %f directive.
51017         * tests/test-sprintf-posix.h (test_function): Likewise.
51018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51019         * tests/test-vasprintf-posix.c (test_function): Likewise.
51020         * doc/functions/fprintf.texi: Update.
51021         * doc/functions/printf.texi: Update.
51022         * doc/functions/snprintf.texi: Update.
51023         * doc/functions/sprintf.texi: Update.
51024         * doc/functions/vfprintf.texi: Update.
51025         * doc/functions/vprintf.texi: Update.
51026         * doc/functions/vsnprintf.texi: Update.
51027         * doc/functions/vsprintf.texi: Update.
51028
51029 2007-05-06  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51032         pass the ' flag character to sprintf or snprintf.
51033         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51036         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51037         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51044         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51045         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51046         flag.
51047         * tests/test-sprintf-posix.h (test_function): Likewise.
51048         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51049         * tests/test-vasprintf-posix.c (test_function): Likewise.
51050         * doc/functions/fprintf.texi: Update.
51051         * doc/functions/printf.texi: Update.
51052         * doc/functions/snprintf.texi: Update.
51053         * doc/functions/sprintf.texi: Update.
51054         * doc/functions/vfprintf.texi: Update.
51055         * doc/functions/vprintf.texi: Update.
51056         * doc/functions/vsnprintf.texi: Update.
51057         * doc/functions/vsprintf.texi: Update.
51058
51059 2007-05-01  Bruno Haible  <bruno@clisp.org>
51060
51061         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51062
51063 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51066         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51067
51068 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51069
51070         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51071         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51073
51074 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51075
51076         * lib/argp-help.c (struct hol_entry): New member `ord'.
51077         (HOL_ENTRY_PTRCMP): Use ord for comparison
51078         (hol_sort): Initialize ord.
51079
51080 2007-05-01  Bruno Haible  <bruno@clisp.org>
51081
51082         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51083         Reported by Eric Blake.
51084         * doc/gnulib.texi (Function Substitutes): Update.
51085
51086 2007-05-01  Bruno Haible  <bruno@clisp.org>
51087
51088         * doc/functions.texi: Remove file, now redundant through
51089         doc/functions/*.texi.
51090
51091 2007-05-01  Bruno Haible  <bruno@clisp.org>
51092
51093         * modules/argp (Depends-on): Add sleep.
51094
51095 2007-05-01  Bruno Haible  <bruno@clisp.org>
51096
51097         * modules/sleep-tests: New file.
51098         * tests/test-sleep.c: New file.
51099
51100         * modules/sleep: New file.
51101         * lib/sleep.c: New file.
51102         * m4/sleep.m4: New file.
51103         * lib/unistd_.h (sleep): New declaration.
51104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51105         HAVE_SLEEP.
51106         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51107         * doc/functions/sleep.texi: Document the sleep module.
51108
51109 2007-05-01  Bruno Haible  <bruno@clisp.org>
51110
51111         * lib/sigprocmask.h: Remove file.
51112         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51113         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51114         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51115         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51116         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51117         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51118         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51119         HAVE_SIGSET_T as a shell variable.
51120         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51121         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51122         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51123         (Depends-on): Add signal. Remove verify.
51124         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51125         (Include): Mention <signal.h> instead of sigprocmask.h.
51126         * NEWS: Mention the change.
51127         * lib/fatal-signal.c: Don't include sigprocmask.h.
51128
51129 2007-05-01  Bruno Haible  <bruno@clisp.org>
51130
51131         * modules/signal: New file.
51132         * lib/signal_.h: New file.
51133         * m4/signal_h.m4: New file.
51134
51135 2007-05-01  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51138         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51139         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51140         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51141
51142 2007-05-01  Bruno Haible  <bruno@clisp.org>
51143
51144         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51145         configure time.
51146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51147         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51148         * modules/sys_stat (Makefile.am): Substitute their values into
51149         sys/stat.h.
51150
51151 2007-05-01  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51154         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51155         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51156
51157 2007-05-01  Bruno Haible  <bruno@clisp.org>
51158
51159         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51160         'assert' module here.
51161
51162 2007-05-01  Bruno Haible  <bruno@clisp.org>
51163
51164         * doc/functions/*.texi: New files.
51165         * doc/functions/google-ranking.txt: New file.
51166         * doc/gnulib.texi (Function Substitutes): New chapter.
51167         (ctime, inet_ntoa): Remove sections.
51168         * doc/ctime.texi: Remove file.
51169         * doc/inet_ntoa.texi: Remove file.
51170         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51171         dependencies.
51172         (%.info): New rule, specifying a --reference-limit.
51173
51174 2007-05-01  Bruno Haible  <bruno@clisp.org>
51175
51176         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51177
51178 2007-05-01  Bruno Haible  <bruno@clisp.org>
51179
51180         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51181         the portability of 'mkdir' to mingw systems.
51182
51183 2007-05-01  Bruno Haible  <bruno@clisp.org>
51184
51185         * doc/headers/google-ranking.txt: New file.
51186
51187 2007-04-30  Eric Blake  <ebb9@byu.net>
51188
51189         Prefer fseeko to fseek.
51190         * modules/getpass (Depends-on): Add fseeko.
51191         * lib/getpass.c (getpass): Use fseeko, not fseek.
51192
51193 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51194
51195         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51196         assumes the sorting is stable, while most qsort implementations
51197         are not.  Use argument addresses to ensure they never compare as
51198         equal.
51199
51200         * tests/test-argp-2.sh (usage-indent test): Fix output
51201         (func_compare): Restore diff options
51202         * tests/test-argp.c: Restore #include "progname.h"
51203
51204 2007-04-29  Bruno Haible  <bruno@clisp.org>
51205
51206         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51208         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51210         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51211         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51212         (TESTS, check_PROGRAMS): Add test-snprintf.
51213         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51214         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51215         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51216         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51217         assertions that fail on HP-UX, OSF/1, or IRIX.
51218         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51219
51220 2007-04-29  Bruno Haible  <bruno@clisp.org>
51221
51222         * MODULES.html.sh (posix_functions): Remove 'contents'.
51223
51224 2007-04-29  Karl Berry  <karl@gnu.org>
51225
51226         * config/srclist.txt (gendocs_template_min): new entry.
51227
51228 2007-04-29  Bruno Haible  <bruno@clisp.org>
51229
51230         Work around fpurge bug on BSD systems.
51231         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51232         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51233         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51234         fpurge to rpl_fpurge if the system already has this function.
51235         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51236         the case where the system already has this function. Correct invariants
51237         on BSD systems.
51238         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51239         BSD systems.
51240
51241 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51242
51243         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51244         proposed by Sven Verdoolaege.
51245
51246         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51247         options.
51248         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51249         (usage and help tests): Update
51250
51251 2007-04-29  Bruno Haible  <bruno@clisp.org>
51252
51253         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51254         Print more information in case of failure. Disable a test on BeOS.
51255
51256 2007-04-29  Bruno Haible  <bruno@clisp.org>
51257
51258         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51259         This helps debugging on systems on which no gdb is available.
51260
51261 2007-04-29  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/freading.h: Improve comments.
51264         * lib/fwriting.h: Likewise.
51265         * tests/test-freading.c (main): Don't check freading immediately after
51266         repositioning. Needed for glibc.
51267
51268 2007-04-29  Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/freading.c (freading): Trivial simplification.
51271
51272 2007-04-28  Bruno Haible  <bruno@clisp.org>
51273
51274         * tests/test-fwriting.c (main): Also test the interaction between
51275         fflush and fwriting.
51276         * modules/fwriting-tests (Depends-on): Add fflush.
51277
51278         * tests/test-freading.c (main): Also test the interaction between
51279         fflush and freading.
51280         * modules/freading-tests (Depends-on): Add fflush.
51281
51282 2007-04-28  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51285         fseeko and ftello.
51286         Suggested by Eric Blake.
51287
51288 2007-04-28  Jim Meyering  <jim@meyering.net>
51289
51290         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51291         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51292         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51293
51294 2007-04-27  Eric Blake  <ebb9@byu.net>
51295
51296         * doc/headers/assert.texi (assert.h): Document assert module use.
51297
51298 2007-04-27  Bruno Haible  <bruno@clisp.org>
51299
51300         * doc/headers/*.texi: New files.
51301         * doc/gnulib.texi (Header File Substitutes): New chapter.
51302         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51303         dependencies.
51304         (standards.info ,standards.html, standards.dvi): Update dependencies.
51305         (mostlyclean, clean): New targets.
51306
51307 2007-04-27  Bruno Haible  <bruno@clisp.org>
51308
51309         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51310         * modules/sysexits (Files, Makefile.am): Update.
51311
51312         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51313         * modules/sys_socket (Files, Makefile.am): Update.
51314
51315         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51316         * modules/sys_stat (Files, Makefile.am): Update.
51317
51318 2007-04-27  Eric Blake  <ebb9@byu.net>
51319
51320         * lib/freading.h: Improve comments.
51321         * lib/fwriting.h: Likewise.
51322         * lib/fflush.c: Likewise.
51323
51324         Fix closein for mingw.
51325         * modules/closein-tests: Add tests for closein.
51326         * tests/test-closein.c: New file.
51327         * tests/test-closein.sh: Likewise.
51328         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51329         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51330
51331 2007-04-27  Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51334         version is < 6.
51335         * lib/math_.h [__DECC]: Likewise.
51336         * lib/stdio_.h [__DECC]: Likewise.
51337         * lib/stdlib_.h [__DECC]: Likewise.
51338         * lib/string_.h [__DECC]: Likewise.
51339         * lib/time_.h [__DECC]: Likewise.
51340         * lib/wchar_.h [__DECC]: Likewise.
51341         * lib/wctype_.h [__DECC]: Likewise.
51342
51343 2007-04-27  Bruno Haible  <bruno@clisp.org>
51344
51345         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51346
51347 2007-04-27  Bruno Haible  <bruno@clisp.org>
51348
51349         * lib/fflush.c: Add comments.
51350         * modules/fpurge-tests (Depends-on): Add fflush.
51351         * modules/freadable-tests (Depends-on): Likewise.
51352         * modules/fwritable-tests (Depends-on): Likewise.
51353
51354 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51355
51356         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51357         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51358         Report by Bruno Haible <bruno@clisp.org>.
51359
51360 2007-04-26  Eric Blake  <ebb9@byu.net>
51361
51362         Fix fflush on mingw.
51363         * modules/fflush (Depends-on): Add freading.
51364         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51365         but unread data.
51366
51367 2007-04-26  Eric Blake  <ebb9@byu.net>
51368         and Bruno Haible  <bruno@clisp.org>
51369
51370         Implement freading and fwriting.
51371         * lib/freading.c: New file.
51372         * lib/freading.h: Likewise.
51373         * m4/freading.m4: Likewise.
51374         * modules/freading: Likewise.
51375         * modules/freading-tests: Likewise.
51376         * tests/test-freading.c: Likewise.
51377         * lib/fwriting.c: New file.
51378         * lib/fwriting.h: Likewise.
51379         * m4/fwriting.m4: Likewise.
51380         * modules/fwriting: Likewise.
51381         * modules/fwriting-tests: Likewise.
51382         * tests/test-fwriting.c: Likewise.
51383         * MODULES.html.sh (File stream based Input/Output): Mention them.
51384
51385 2007-04-26  Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51388         'long' when we assume it.
51389         Suggested by Eric Blake.
51390
51391 2007-04-26  Bruno Haible  <bruno@clisp.org>
51392
51393         Ensure fseeko, ftello are declared on glibc systems.
51394         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51395         * modules/fseeko (configure.ac-early): Likewise.
51396         * modules/ftello (configure.ac-early): Likewise.
51397         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51398         AC_FUNC_FSEEKO for this.
51399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51400         (gl_CHECK_FSEEKO): Remove macro.
51401
51402 2007-04-26  Bruno Haible  <bruno@clisp.org>
51403
51404         * tests/test-fflush.c (main): Also check the ftell result after
51405         fflush and fseek/fseeko.
51406         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51407         file descriptor position cache in the stream.
51408         * lib/fseeko.c (rpl_fseeko): Likewise.
51409
51410 2007-04-26  Bruno Haible  <bruno@clisp.org>
51411
51412         * modules/fflush-tests (Depends-on): Add fseeko.
51413
51414 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51415             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51416
51417         * lib/argz_.h: ensure error_t definition is obtained in same
51418         mechanism system argz.h would have.
51419         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51420         argz facilities are known bad.  Err on the side of caution if
51421         cross-compiling.
51422
51423 2007-04-25  Eric Blake  <ebb9@byu.net>
51424
51425         * lib/fpurge.c (includes): Use stdlib.h for free.
51426         * tests/test-fflush.c (main): Also test fflush-fseeko.
51427
51428 2007-04-25  Bruno Haible  <bruno@clisp.org>
51429
51430         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51431         * lib/fseeko.c: New file.
51432         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51433         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51434         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51435         gl_FUNC_FSEEKO.
51436         (gl_FUNC_FSEEKO): Invoke it.
51437         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51438         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51439         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51440
51441 2007-04-25  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/fflush (Depends-on): Add ftello.
51444
51445 2007-04-25  Bruno Haible  <bruno@clisp.org>
51446
51447         * modules/ftello-tests: New file.
51448         * tests/test-ftello.c: New file.
51449
51450         * modules/ftello: New file.
51451         * m4/ftello.m4: New file.
51452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51453         HAVE_FTELLO.
51454         * lib/stdio_.h (ftello): New declaration.
51455         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51456         HAVE_FTELLO.
51457
51458 2007-04-25  Bruno Haible  <bruno@clisp.org>
51459
51460         * modules/fseeko-tests: New file.
51461         * tests/test-fseeko.c: New file.
51462
51463         * modules/fseeko: New file.
51464         * m4/fseeko.m4: New file.
51465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51466         HAVE_FSEEKO.
51467         * lib/stdio_.h (fseeko): New declaration.
51468         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51469         HAVE_FSEEKO.
51470
51471 2007-04-25  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51474
51475 2007-04-25  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51478         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51479         * tests/test-unistd.c: Likewise.
51480         * tests/test-fcntl.c: Likewise.
51481
51482 2007-04-23  Eric Blake  <ebb9@byu.net>
51483
51484         * lib/fflush.c: Fix missing include.
51485         Reported by Bruno Haible.
51486
51487 2007-04-23  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51490         Reported by Eric Blake.
51491
51492 2007-04-23  Bruno Haible  <bruno@clisp.org>
51493
51494         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51495
51496 2007-04-23  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51499
51500 2007-04-23  Bruno Haible  <bruno@clisp.org>
51501
51502         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51503         Needed on HP-UX 11.
51504
51505 2007-04-16  Eric Blake  <ebb9@byu.net>
51506
51507         Make fflush rely on fpurge.
51508         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51509         open coding all variants.
51510         * modules/fflush (Depends-on): Add fpurge and unistd.
51511         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51513
51514         Fix --with-tests compilation on cygwin.
51515         * modules/argmatch-tests (Makefile.am): List gnulib library first
51516         in LDADD.
51517         * modules/argp-tests (Makefile.am): Likewise.
51518         * modules/array-list-tests (Makefile.am): Likewise.
51519         * modules/array-oset-tests (Makefile.am): Likewise.
51520         * modules/avltree-list-tests (Makefile.am): Likewise.
51521         * modules/avltree-oset-tests (Makefile.am): Likewise.
51522         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51523         * modules/carray-list-tests (Makefile.am): Likewise.
51524         * modules/dirname-tests (Makefile.am): Likewise.
51525         * modules/frexp-tests (Makefile.am): Likewise.
51526         * modules/isnanl-tests (Makefile.am): Likewise.
51527         * modules/linked-list-tests (Makefile.am): Likewise.
51528         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51529         * modules/lock-tests (Makefile.am): Likewise.
51530         * modules/rbtree-list-tests (Makefile.am): Likewise.
51531         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51532         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51533         * modules/tls-tests (Makefile.am): Likewise.
51534         * modules/tsearch-tests (Makefile.am): Likewise.
51535         * modules/xvasprintf-tests (Makefile.am): Likewise.
51536
51537         Fix fpurge for cygwin.
51538         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51539         value.
51540         * modules/fpurge-tests (Depends-on): Clean up trash.
51541
51542 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51543
51544         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51545
51546         * m4/autobuild.m4: Re-indent.
51547
51548 2007-04-13  Bruno Haible  <bruno@clisp.org>
51549
51550         * modules/fpurge-tests: New file.
51551         * tests/test-fpurge.c: New file.
51552
51553         * modules/fpurge: New file.
51554         * lib/fpurge.h: New file.
51555         * lib/fpurge.c: New file.
51556         * m4/fpurge.m4: New file.
51557
51558 2007-04-13  Bruno Haible  <bruno@clisp.org>
51559
51560         * modules/fbufmode-tests: New file.
51561         * tests/test-fbufmode.c: New file.
51562
51563         * modules/fbufmode: New file.
51564         * lib/fbufmode.h: New file.
51565         * lib/fbufmode.c: New file.
51566         * m4/fbufmode.m4: New file.
51567
51568 2007-04-13  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/fwritable-tests: New file.
51571         * tests/test-fwritable.c: New file.
51572
51573         * modules/fwritable: New file.
51574         * lib/fwritable.h: New file.
51575         * lib/fwritable.c: New file.
51576         * m4/fwritable.m4: New file.
51577
51578 2007-04-13  Bruno Haible  <bruno@clisp.org>
51579
51580         * modules/freadable-tests: New file.
51581         * tests/test-freadable.c: New file.
51582
51583         * modules/freadable: New file.
51584         * lib/freadable.h: New file.
51585         * lib/freadable.c: New file.
51586         * m4/freadable.m4: New file.
51587
51588 2007-04-13  Bruno Haible  <bruno@clisp.org>
51589
51590         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51591         MOSTLYCLEANFILES.
51592
51593 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51594
51595         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51596         gzip bootstrap.conf to avoid dragging in i18n machinery.
51597         (gnulib_tool_option): Use it.
51598
51599 2007-04-13  Bruno Haible  <bruno@clisp.org>
51600
51601         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51602         %F directives.
51603         * tests/test-vasprintf-posix.c (test_function): Likewise.
51604         * tests/test-snprintf-posix.h (test_function): Likewise.
51605         * tests/test-sprintf-posix.h (test_function): Likewise.
51606         * tests/test-fprintf-posix.h (test_function): Likewise.
51607         * tests/test-printf-posix.h (test_function): Likewise.
51608         * tests/test-fprintf-posix.out: Likewise.
51609
51610 2007-04-13  Bruno Haible  <bruno@clisp.org>
51611
51612         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51613         * modules/tls-tests (configure.ac): Likewise.
51614         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51615
51616 2007-04-13  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/tls.c (glthread_tls_get): Fix return type.
51619         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51620
51621 2007-04-12  Eric Blake  <ebb9@byu.net>
51622
51623         * modules/gettime (Depends-on): Remove gettime.
51624         Reported by Dmitry V. Levin.
51625
51626 2007-04-12  Bruno Haible  <bruno@clisp.org>
51627
51628         * modules/fflush (Include): Mention <stdio.h>.
51629         * modules/strtoimax (Include): Mention <inttypes.h>.
51630         * modules/strtoumax (Include): Likewise.
51631
51632 2007-04-12  Eric Blake  <ebb9@byu.net>
51633
51634         * .cvsignore: New file.
51635         * .gitignore: Likewise.
51636
51637 2007-04-12  Bruno Haible  <bruno@clisp.org>
51638
51639         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51640         not before, since $(LDADD) often contains libgnu.a.
51641         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51642         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51643         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51644         Needed on Cygwin.
51645
51646 2007-04-12  Eric Blake  <ebb9@byu.net>
51647
51648         Work around glibc's failure to flush stdin on fclose.
51649         * lib/closein.c (close_stdin): Flush stdin before closing.
51650
51651         Work around glibc's failure to reset seekable stdin on exit.
51652         * modules/closein: New module.
51653         * lib/closein.c: New file.
51654         * lib/closein.h: Likewise.
51655         * m4/closein.m4: Likewise.
51656         * MODULES.html.sh (File stream based Input/Output): Document it.
51657
51658 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51659
51660         * gnulib-tool: Rename generated 'autobuild' script to
51661         'do-autobuild' in --create-megatestdir output.
51662
51663         * doc/gnulib.texi (Build robot for gnulib): Fix.
51664
51665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51666
51667         * modules/sysexits (Depends-on): Add absolute-header.
51668
51669 2007-04-12  Eric Blake  <ebb9@byu.net>
51670
51671         No need to preserve errno on success.
51672         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51673         Reported by Bruno Haible.
51674
51675 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51676
51677         * MODULES.html.sh (Support for maintaining and releasing
51678         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51679
51680 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51681
51682         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51683
51684 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51685
51686         * modules/autobuild: New module.
51687
51688         * m4/autobuild.m4: New file.
51689
51690 2007-04-11  Bruno Haible  <bruno@clisp.org>
51691
51692         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51693         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51697         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51698         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51700         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51701         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51703         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51704         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51706         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51707         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
51721
51722 2007-04-11  Bruno Haible  <bruno@clisp.org>
51723
51724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51725
51726 2007-04-10  Bruno Haible  <bruno@clisp.org>
51727
51728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51729         for NaN and Infinity. Needed on FreeBSD 6.1.
51730         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51731         regarding results for "%010a" of Infinity and NaN.
51732         * tests/test-vasprintf-posix.c (test_function): Likewise.
51733         * tests/test-snprintf-posix.h (test_function): Likewise.
51734         * tests/test-sprintf-posix.h (test_function): Likewise.
51735         * tests/test-fprintf-posix.h (test_function): Likewise.
51736         * tests/test-printf-posix.h (test_function): Likewise.
51737         * tests/test-fprintf-posix.out: Likewise.
51738
51739 2007-04-10  Bruno Haible  <bruno@clisp.org>
51740
51741         * modules/locale-tests: New file.
51742         * tests/test-locale.c: New file.
51743
51744         * modules/locale: New file.
51745         * lib/locale_.h: New file.
51746         * m4/locale_h.m4: New file.
51747
51748 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51749             Bruno Haible  <bruno@clisp.org>
51750
51751         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51752         be determined, test for availability of the copysignf, copysign,
51753         copysignl functions.
51754         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51755         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51756         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51757
51758 2007-04-09  Eric Blake  <ebb9@byu.net>
51759
51760         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51761         * modules/stdio (Makefile.am): Support fflush.
51762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51763         * modules/fflush: New file.
51764         * lib/fflush.c: Likewise.
51765         * m4/fflush.m4: Likewise.
51766         * modules/fflush-tests: New test.
51767         * tests/test-fflush.c: Likewise.
51768         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51769
51770 2007-04-06  Bruno Haible  <bruno@clisp.org>
51771
51772         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51773         (VASNPRINTF): Use signbit for faster determination whether to print a
51774         minus sign.
51775         * modules/vasnprintf (Files): Remove lib/float+.h.
51776         * modules/fprintf-posix (Depends-on): Add signbit.
51777         * modules/snprintf-posix (Depends-on): Likewise.
51778         * modules/sprintf-posix (Depends-on): Likewise.
51779         * modules/vasnprintf-posix (Depends-on): Likewise.
51780         * modules/vasprintf-posix (Depends-on): Likewise.
51781         * modules/vfprintf-posix (Depends-on): Likewise.
51782         * modules/vsnprintf-posix (Depends-on): Likewise.
51783         * modules/vsprintf-posix (Depends-on): Likewise.
51784
51785 2007-04-06  Bruno Haible  <bruno@clisp.org>
51786
51787         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51788         * tests/test-frexpl.c (main): Likewise.
51789         * tests/test-ldexpl.c (main): Likewise.
51790         * modules/frexp-tests (Depends-on): Add signbit.
51791         * modules/frexpl-tests (Depdends-on): Likewise.
51792         * modules/ldexpl-tests (Depdends-on): Likewise.
51793
51794 2007-04-06  Bruno Haible  <bruno@clisp.org>
51795
51796         * modules/signbit-tests: New file.
51797         * tests/test-signbit.c: New file.
51798
51799         * modules/signbit: New file.
51800         * lib/signbitf.c: New file.
51801         * lib/signbitd.c: New file.
51802         * lib/signbitl.c: New file.
51803         * m4/signbit.m4: New file.
51804         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51805         (signbit): New macro.
51806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51807         REPLACE_SIGNBIT.
51808         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51809         REPLACE_FREXPL into math.h.
51810
51811 2007-04-06  Bruno Haible  <bruno@clisp.org>
51812
51813         * modules/isnanf-nolibm-tests: New file.
51814         * tests/test-isnanf.c: New file.
51815
51816         * modules/isnanf-nolibm: New file.
51817         * lib/isnanf.h: New file.
51818         * lib/isnanf.c: New file.
51819         * lib/isnan.c: Consider the USE_FLOAT macro.
51820         * m4/isnanf.m4: New file.
51821
51822 2007-04-06  Bruno Haible  <bruno@clisp.org>
51823
51824         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51825         (Link): New section.
51826
51827         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51828
51829 2007-04-06  Bruno Haible  <bruno@clisp.org>
51830
51831         Assume the 'long double' type.
51832         * m4/longdouble.m4: Remove file.
51833         * config/srclist.txt: Don't mention longdouble.m4.
51834         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51835         * lib/float+.h: Likewise.
51836         * lib/frexp.c: Likewise.
51837         * lib/printf-args.h: Likewise.
51838         * lib/printf-args.c: Likewise.
51839         * lib/printf-frexp.c: Likewise.
51840         * lib/printf-parse.c: Likewise.
51841         * lib/vasnprintf.c: Likewise.
51842         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51843         * m4/intl.m4: Likewise.
51844         * m4/isnanl.m4: Likewise.
51845         * m4/printf.m4: Likewise.
51846         * m4/printf-frexpl.m4: Likewise.
51847         * m4/vasnprintf.m4: Likewise.
51848         * modules/allocsa (Files): Remove m4/longdouble.m4.
51849         * modules/gettext (Files): Likewise.
51850         * modules/relocatable-prog-wrapper (Files): Likewise.
51851         * modules/vasnprintf (Files): Likewise.
51852         * modules/isnanl (Files): Likewise.
51853         (Include): Simplify.
51854         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51855         (Include): Simplify.
51856         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51857         (Include): Simplify.
51858         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51859         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51860         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51861         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51862         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51863         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51864         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51865         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51866         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51867         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51868         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51870         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51871         * tests/test-isnanl.c: Likewise.
51872         * tests/test-snprintf-posix.h: Likewise.
51873         * tests/test-sprintf-posix.h: Likewise.
51874         * tests/test-vasnprintf-posix.c: Likewise.
51875         * tests/test-vasnprintf-posix2.c: Likewise.
51876         * tests/test-vasprintf-posix.c: Likewise.
51877
51878 2007-04-06  Bruno Haible  <bruno@clisp.org>
51879
51880         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51881         * lib/math_.h [__DECC]: Include the overridden include file through
51882         #include_next, outside the double-inclusion guard.
51883         * lib/stdio_.h [__DECC]: Likewise.
51884         * lib/stdlib_.h [__DECC]: Likewise.
51885         * lib/string_.h [__DECC]: Likewise.
51886         * lib/time_.h [__DECC]: Likewise.
51887         * lib/wchar_.h [__DECC]: Likewise.
51888         * lib/wctype_.h [__DECC]: Likewise.
51889         * lib/inttypes_.h [__DECC]: Likewise.
51890         Reported by Albert Chin <china@thewrittenword.com> in
51891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51892
51893 2007-04-04  Eric Blake  <ebb9@byu.net>
51894
51895         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51896         1.5.x.
51897
51898 2007-04-04  Bruno Haible  <bruno@clisp.org>
51899
51900         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51901         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51902
51903 2007-04-04  Bruno Haible  <bruno@clisp.org>
51904
51905         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51906         results for "%010a" of Infinity and NaN.
51907         * tests/test-vasprintf-posix.c (test_function): Likewise.
51908         * tests/test-snprintf-posix.h (test_function): Likewise.
51909         * tests/test-sprintf-posix.h (test_function): Likewise.
51910         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51911         * tests/test-printf-posix.h (test_function): Likewise.
51912         * tests/test-fprintf-posix.out: Update.
51913         Needed for FreeBSD 6.1.
51914
51915 2007-04-04  Bruno Haible  <bruno@clisp.org>
51916
51917         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51918         directly used by the gnulib modules nor by gnulib-tool.
51919
51920 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51921
51922         * DEPENDENCIES: Give overall description of version dependency
51923         desirability.  Use more-typical names for apps.
51924         Add shell, coreutils, diffutils, grep, tar, gzip.
51925
51926 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51927
51928         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51929
51930 2007-04-04  Karl Berry  <karl@gnu.org>
51931
51932         * MODULES.html.sh (func_module): missing '.
51933
51934 2007-04-03  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/argmatch-tests (Makefile.am): New variable
51937         test_argmatch_LDADD.
51938         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51939         * modules/array-list-tests (Makefile.am): New variable
51940         test_array_list_LDADD.
51941         * modules/array-oset-tests (Makefile.am): New variable
51942         test_array_oset_LDADD.
51943         * modules/avltree-list-tests (Makefile.am): New variable
51944         test_avltree_list_LDADD.
51945         * modules/avltree-oset-tests (Makefile.am): New variable
51946         test_avltree_oset_LDADD.
51947         * modules/avltreehash-list-tests (Makefile.am): New variable
51948         test_avltreehash_list_LDADD.
51949         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51950         test_canonicalize_lgpl_LDADD.
51951         * modules/carray-list-tests (Makefile.am): New variable
51952         test_carray_list_LDADD.
51953         * modules/dirname-tests (Makefile.am): New variable
51954         test_dirname_LDADD.
51955         * modules/linked-list-tests (Makefile.am): New variable
51956         test_linked_list_LDADD.
51957         * modules/linkedhash-list-tests (Makefile.am): New variable
51958         test_linkedhash_list_LDADD.
51959         * modules/rbtree-list-tests (Makefile.am): New variable
51960         test_rbtree_list_LDADD.
51961         * modules/rbtree-oset-tests (Makefile.am): New variable
51962         test_rbtree_oset_LDADD.
51963         * modules/rbtreehash-list-tests (Makefile.am): New variable
51964         test_rbtreehash_list_LDADD.
51965         * modules/xvasprintf-tests (Makefile.am): New variable
51966         test_xvasprintf_LDADD.
51967         Reported by Eric Blake.
51968
51969 2007-04-03  Eric Blake  <ebb9@byu.net>
51970
51971         * DEPENDENCIES: Weaken m4 requirements.
51972
51973 2007-04-03  Bruno Haible  <bruno@clisp.org>
51974
51975         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51976         * modules/isnanl-tests (configure.ac): Likewise.
51977
51978 2007-04-03  Ben Pfaff  <blp@gnu.org>
51979
51980         * modules/iconv_open: Add $(srcdir)/ to source directory
51981         references in Makefile fragments that call gperf, to fix VPATH
51982         builds.
51983
51984 2007-04-03  Bruno Haible  <bruno@clisp.org>
51985
51986         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51987         * lib/ldexpl.c: Undo last change.
51988
51989 2007-04-03  Bruno Haible  <bruno@clisp.org>
51990
51991         * modules/printf-frexpl (Depends-on): Undo last change.
51992         (Files): Add m4/ldexpl.m4.
51993
51994 2007-04-03  Bruno Haible  <bruno@clisp.org>
51995
51996         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51997         * modules/isnanl (Link): New section.
51998
51999         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52000         * modules/frexp (Link): New section.
52001
52002         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52003         * modules/frexpl (Link): New section.
52004
52005         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52006         * modules/ldexpl (Link): New section.
52007
52008 2007-04-03  Bruno Haible  <bruno@clisp.org>
52009
52010         * modules/TEMPLATE-EXTENDED: New file.
52011         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52012
52013 2007-04-03  Bruno Haible  <bruno@clisp.org>
52014
52015         * DEPENDENCIES: New file.
52016         Suggested by Simon Josefsson.
52017
52018 2007-04-03  Bruno Haible  <bruno@clisp.org>
52019
52020         * doc/gnulib.texi: Escape @.
52021
52022 2007-04-03  James Youngman  <jay@gnu.org>
52023         and Paul Eggert  <eggert@cs.ucla.edu>
52024
52025         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52026         birthtime on all systems that have birthtime, not just those which
52027         use st_birthtimensec rather than st_birthtim.  Putting zero in
52028         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52029         that the birth time is not available for files on an NFS mount.
52030
52031 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52032
52033         * modules/memxor: Move back from crypto/, suggested by Bruno.
52034         * modules/crypto/hmac-sha1: Fix memxor dependency.
52035
52036         * modules/crypto/gc: Moved from ../.
52037
52038 2007-04-02  Eric Blake  <ebb9@byu.net>
52039
52040         * lib/ldexpl.c (includes): Avoid libm.
52041
52042         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52043
52044 2007-04-02  Bruno Haible  <bruno@clisp.org>
52045
52046         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52047         on IRIX.
52048
52049 2007-04-02  Bruno Haible  <bruno@clisp.org>
52050
52051         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52052         x86 or x86_64 platforms running MacOS X.
52053         Reported by Ryan Schmidt <@ryandesign.com>.
52054
52055 2007-04-02  Bruno Haible  <bruno@clisp.org>
52056
52057         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52058         i386.
52059
52060 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52061
52062         * modules/crypto/arcfour: Moved from ../.
52063         * modules/crypto/arcfour-tests: Moved from ../.
52064         * modules/crypto/arctwo: Moved from ../.
52065         * modules/crypto/arctwo-tests: Moved from ../.
52066         * modules/crypto/des: Moved from ../.
52067         * modules/crypto/des-tests: Moved from ../.
52068         * modules/crypto/gc-arcfour: Moved from ../.
52069         * modules/crypto/gc-arcfour-tests: Moved from ../.
52070         * modules/crypto/gc-arctwo: Moved from ../.
52071         * modules/crypto/gc-arctwo-tests: Moved from ../.
52072         * modules/crypto/gc-des: Moved from ../.
52073         * modules/crypto/gc-des-tests: Moved from ../.
52074         * modules/crypto/gc-hmac-md5: Moved from ../.
52075         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52076         * modules/crypto/gc-hmac-sha1: Moved from ../.
52077         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52078         * modules/crypto/gc-md2: Moved from ../.
52079         * modules/crypto/gc-md2-tests: Moved from ../.
52080         * modules/crypto/gc-md4: Moved from ../.
52081         * modules/crypto/gc-md4-tests: Moved from ../.
52082         * modules/crypto/gc-md5: Moved from ../.
52083         * modules/crypto/gc-md5-tests: Moved from ../.
52084         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52085         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52086         * modules/crypto/gc-random: Moved from ../.
52087         * modules/crypto/gc-rijndael: Moved from ../.
52088         * modules/crypto/gc-rijndael-tests: Moved from ../.
52089         * modules/crypto/gc-sha1: Moved from ../.
52090         * modules/crypto/gc-sha1-tests: Moved from ../.
52091         * modules/crypto/gc-tests: Moved from ../.
52092         * modules/crypto/hmac-md5: Moved from ../.
52093         * modules/crypto/hmac-md5-tests: Moved from ../.
52094         * modules/crypto/hmac-sha1: Moved from ../.
52095         * modules/crypto/hmac-sha1-tests: Moved from ../.
52096         * modules/crypto/md2: Moved from ../.
52097         * modules/crypto/md2-tests: Moved from ../.
52098         * modules/crypto/md4: Moved from ../.
52099         * modules/crypto/md4-tests: Moved from ../.
52100         * modules/crypto/md5: Moved from ../.
52101         * modules/crypto/md5-tests: Moved from ../.
52102         * modules/crypto/memxor: Moved from ../.
52103         * modules/crypto/rijndael: Moved from ../.
52104         * modules/crypto/rijndael-tests: Moved from ../.
52105         * modules/crypto/sha1: Moved from ../.
52106
52107 2007-03-30  James Youngman  <jay@gnu.org>
52108
52109         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52110         rename() to change the ctime of a file (because ctime is unaffected
52111         by rename on jfs2 on AIX 5.1).
52112         (main): Start by doing cleanup, in case a previous run failed leaving
52113         test files behind.
52114
52115 2007-03-31  Bruno Haible  <bruno@clisp.org>
52116
52117         Support old proprietary implementations of iconv.
52118         * modules/iconv_open: New file.
52119         * lib/iconv_.h: New file.
52120         * m4/iconv_h.m4: New file.
52121         * lib/iconv_open.c: New file.
52122         * lib/iconv_open-aix.gperf: New file.
52123         * lib/iconv_open-hpux.gperf: New file.
52124         * lib/iconv_open-irix.gperf: New file.
52125         * lib/iconv_open-osf.gperf: New file.
52126         * m4/iconv_open.m4: New file.
52127         * modules/linebreak (Depends-on): Add iconv_open.
52128         * modules/striconv (Depends-on): Likewise.
52129         * modules/striconveh (Depends-on): Likewise.
52130         * modules/unicodeio (Depends-on): Likewise.
52131         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52132         (iconv_t)(-1).
52133         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52134         conversion if cd is (iconv_t)(-1).
52135         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52136         is not possible.
52137
52138 2007-03-31  Bruno Haible  <bruno@clisp.org>
52139
52140         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52141         work on Solaris either. Protect also second use of "autodetect_jp".
52142
52143 2007-03-31  Bruno Haible  <bruno@clisp.org>
52144
52145         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52146         the function is not present.
52147
52148 2007-03-31  Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52151         the function is not present.
52152
52153 2007-03-31  Bruno Haible  <bruno@clisp.org>
52154
52155         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52156         a bug in HP-UX iconv_open().
52157
52158 2007-03-31  Bruno Haible  <bruno@clisp.org>
52159
52160         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52161         (Mathematics <math.h>): New section, add fpieee.
52162         (Input/output <stdio.h>): Add fseterr.
52163         (Mathematics <math.h>): New section, add printf-frexp.
52164         (Container data structures): Add sublist.
52165         (Core language properties): Add fpucw, inline.
52166         (Functions for greatest-width integer types <inttypes.h>): Add
52167         imaxabs, imaxdiv, inttypes.
52168         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52169         isnanl-nolibm, ldexp.
52170         (Mathematics <math.h>): New section, add printf-frexpl.
52171         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52172         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52173         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52174         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52175         (Unicode string functions): Add unistr/u*-mbtoucr.
52176         (Java): Add javacomp-script, javaexec-script.
52177         (C#): Add csharpcomp-script, csharpexec-script.
52178         (Support for building libraries and executables): Add havelib,
52179         relocatable-*.
52180         (Support for maintaining and releasing projects): Renamed from
52181         'Support for maintaining and release projects'. Add announce-gen.
52182
52183 2007-03-31  Bruno Haible  <bruno@clisp.org>
52184
52185         * README: Talk primarily about git.
52186         (git and CVS): Renamed from CVS.
52187         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52188         gnulib is available through git.
52189         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52190
52191 2007-03-30  Bruno Haible  <bruno@clisp.org>
52192
52193         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52194         * lib/poll_.h: Likewise.
52195         * lib/stat_.h: Likewise.
52196         * lib/sys_time_.h: Likewise.
52197         * lib/sysexit_.h: Likewise.
52198         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52199         * lib/stdbool_.h: Likewise.
52200         * lib/byteswap_.h: Add double-inclusion guard.
52201
52202 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52203
52204         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52205
52206 2007-03-30  Karl Berry  <karl@gnu.org>
52207
52208         * config/srclist-update: double space after USA in the license
52209         substitution, since that's how it's usually (?) written.
52210
52211 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52214         reported by Bruno Haible.
52215
52216 2007-03-29  Bruno Haible  <bruno@clisp.org>
52217
52218         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52219         a bug in AIX iconv().
52220
52221 2007-03-29  Bruno Haible  <bruno@clisp.org>
52222
52223         * modules/ldexpl-tests: New file.
52224         * tests/test-ldexpl.c: New file.
52225
52226 2007-03-29  Bruno Haible  <bruno@clisp.org>
52227
52228         * lib/ldexpl.c: Include fpucw.h.
52229         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52230         multiplication.
52231         * modules/ldexpl (Depends-on): Add fpucw.
52232
52233 2007-03-29  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/ldexpl: New file.
52236         * m4/ldexpl.m4: New file.
52237         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52238         set.
52239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52240         REPLACE_LDEXPL.
52241         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52242         REPLACE_LDEXPL.
52243         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52244         gl_FUNC_LDEXPL_WORKS.
52245         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52246         * modules/mathl (Files): Remove lib/ldexpl.c.
52247         (Depends-on): Add ldexpl.
52248
52249 2007-03-29  Bruno Haible  <bruno@clisp.org>
52250
52251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52252
52253 2007-03-29  Bruno Haible  <bruno@clisp.org>
52254
52255         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52256         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52257         and possibly also HP-UX.
52258         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52259         work on AIX, IRIX, HP-UX, OSF/1.
52260         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52261         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52262         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52263         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52264         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52265         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52266
52267 2007-03-29  Bruno Haible  <bruno@clisp.org>
52268
52269         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52270
52271 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52272
52273         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52274         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52275
52276 2007-03-29  Eric Blake  <ebb9@byu.net>
52277
52278         * lib/acl-internal.h: Remove redundant include.
52279         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52280         Cygwin when a file is locked.
52281
52282 2007-03-29  Bruno Haible  <bruno@clisp.org>
52283
52284         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52285         file.
52286         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52287
52288 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52291         try to remove a parent directory if the child couldn't be removed
52292         (except for the first rmdir, which could fail because the child
52293         doesn't exist).  Problem reported by Jeff Blaine in
52294         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52295
52296 2007-03-28  Bruno Haible  <bruno@clisp.org>
52297
52298         * lib/striconveh.c (utf8conv_carefully): New function.
52299         (mem_cd_iconveh_internal): Invoke it.
52300
52301 2007-03-28  Bruno Haible  <bruno@clisp.org>
52302
52303         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52304         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52305         input.
52306         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52307         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52308         unistr/u8-uctomb.
52309
52310 2007-03-28  Bruno Haible  <bruno@clisp.org>
52311
52312         * modules/unistr/u8-mbtoucr: New file.
52313         * lib/unistr/u8-mbtoucr.c: New file.
52314         * modules/unistr/u16-mbtoucr: New file.
52315         * lib/unistr/u16-mbtoucr.c: New file.
52316         * modules/unistr/u16-mbtoucr: New file.
52317         * lib/unistr/u16-mbtoucr.c: New file.
52318         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52319
52320 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52321             Bruno Haible  <bruno@clisp.org>
52322
52323         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52324         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52325         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52326
52327         * m4/stdio_h.m4: Add stubs for vasprintf too.
52328
52329         * modules/stdio: Support vasprintf in sed command.
52330
52331         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52332         vasprintf.h.  Add stdio module indicator.
52333
52334         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52335         vasprintf.h.
52336
52337         * lib/vasprintf.h: File removed.
52338
52339         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52340         * lib/vasprintf.c: Ditto.
52341         * lib/xvasprintf.c: Ditto.
52342         * tests/test-vasprintf-posix.c: Ditto.
52343         * tests/test-vasprintf.c: Ditto.
52344
52345 2007-03-27  Bruno Haible  <bruno@clisp.org>
52346
52347         Make vasnprintf multithread-safe.
52348         * lib/vasnprintf.c (decimal_point_char): New function.
52349         (VASNPRINTF): Use it.
52350         Suggested by Simon Josefsson.
52351
52352 2007-03-27  Eric Blake  <ebb9@byu.net>
52353
52354         Support sub-second birthtime on cygwin.
52355         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52356         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52357         (get_stat_birthtime): Also work with st_birthtim.
52358
52359 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52362         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52363         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52364         (get_stat_birthtime_ns): Simplify compile-time tests.
52365         (get_stat_birthtime): Change the API to look like
52366         get_stat_mtime etc., except return a negative tv_nsec on error.
52367         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52368         Don't check for "spare" fields.
52369         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52370         or for struct stat.st_birthtime, as these tests aren't used.
52371         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52372
52373 2007-03-27  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/stat-time.h: Include <sys/stat.h>.
52376
52377 2007-03-27  James Youngman  <jay@gnu.org>
52378
52379         * lib/stat-time.h (get_stat_birthtime): New function for
52380           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52381         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52382           and its variants.
52383         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52384         * modules/stat-time-test: New file.
52385         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52386
52387 2007-03-26  Bruno Haible  <bruno@clisp.org>
52388
52389         Better support of signalling NaNs.
52390         * lib/atanl.c: Include isnanl.h.
52391         (atanl): Perform test for NaN at the beginning of the function and
52392         through a call to isnanl.
52393         * lib/cosl.c: Include isnanl.h.
52394         (cosl): Perform test for NaN at the beginning of the function and
52395         through a call to isnanl.
52396         * lib/ldexpl.c: Include isnanl.h.
52397         (ldexpl): Perform test for NaN through a call to isnanl.
52398         * lib/logl.c: Include isnanl.h.
52399         (logl): Perform test for NaN at the beginning of the function and
52400         through a call to isnanl.
52401         * lib/sinl.c: Include isnanl.h.
52402         (sinl): Perform test for NaN at the beginning of the function and
52403         through a call to isnanl.
52404         * lib/sqrtl.c: Include isnanl.h.
52405         (sqrtl): Perform test for NaN at the beginning of the function and
52406         through a call to isnanl.
52407         * lib/tanl.c: Include isnanl.h.
52408         (tanl): Perform test for NaN at the beginning of the function and
52409         through a call to isnanl.
52410         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52411         * modules/mathl (Depends-on): Add isnanl.
52412
52413 2007-03-26  Eric Blake  <ebb9@byu.net>
52414
52415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52416         regression in logic sense of previous patch.
52417
52418 2007-03-26  Bruno Haible  <bruno@clisp.org>
52419
52420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52421         unportable shell command "if ! ...".
52422         Reported by Ralf Wildenhues.
52423
52424 2007-03-25  Bruno Haible  <bruno@clisp.org>
52425
52426         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52427         <sysexits.h> file, and only add EX_CONFIG.
52428         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52429         absolute file name and whether it is sufficient. Substitute also
52430         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52431         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52432         ABSOLUTE_SYSEXITS_H into sysexits.h.
52433
52434 2007-03-25  Bruno Haible  <bruno@clisp.org>
52435
52436         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52437         hints is NULL.
52438
52439 2007-03-25  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52442         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52443
52444 2007-03-25  Bruno Haible  <bruno@clisp.org>
52445
52446         * lib/vasnprintf.c: Include langinfo.h.
52447         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52448         multithread-safe.
52449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52458         Reported by Simon Josefsson.
52459
52460 2007-03-25  Bruno Haible  <bruno@clisp.org>
52461
52462         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52463         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52464         * modules/vasnprintf (Depends-on): Add stdint.
52465
52466 2007-03-25  Bruno Haible  <bruno@clisp.org>
52467
52468         * modules/fpieee: New file.
52469         * m4/fpieee.m4: New file.
52470         * modules/isnan-nolibm (Depends-on): Add fpieee.
52471         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52472         * modules/isnanl (Depends-on): Add fpieee.
52473
52474 2007-03-25  Bruno Haible  <bruno@clisp.org>
52475
52476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52477
52478 2007-03-25  Bruno Haible  <bruno@clisp.org>
52479
52480         Avoid test failures on IRIX 6.5.
52481         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52482         (main): Use it.
52483         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52484         macros.
52485         (main): Use them.
52486
52487 2007-03-25  Bruno Haible  <bruno@clisp.org>
52488
52489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52490         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52491         exists but doesn't work.
52492         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52493         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52495         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52496         math.h.
52497
52498 2007-03-25  Bruno Haible  <bruno@clisp.org>
52499
52500         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52501         returns inf. Needed on IRIX 6.5.
52502
52503 2007-03-25  Bruno Haible  <bruno@clisp.org>
52504
52505         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52506         (main): Use isnanl instead of x != x idiom.
52507         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52508
52509         * tests/test-frexp.c: Include isnan.h.
52510         (main): Use isnan instead of x != x idiom.
52511         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52512
52513 2007-03-25  Bruno Haible  <bruno@clisp.org>
52514
52515         * tests/test-frexp.c (NaN): New function/macro.
52516         (main): Use it instead of 0.0 / 0.0.
52517         * tests/test-isnan.c (NaN): New function/macro.
52518         (main): Use it instead of 0.0 / 0.0.
52519         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52520         (test_function): Use it instead of 0.0 / 0.0.
52521         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52522         (test_function): Use it instead of 0.0 / 0.0.
52523         * tests/test-snprintf-posix.h (NaN): New function/macro.
52524         (test_function): Use it instead of 0.0 / 0.0.
52525         * tests/test-sprintf-posix.h (NaN): New function/macro.
52526         (test_function): Use it instead of 0.0 / 0.0.
52527         * tests/test-fprintf-posix.h (NaN): New function/macro.
52528         (test_function): Use it instead of 0.0 / 0.0.
52529         * tests/test-printf-posix.h (NaN): New function/macro.
52530         (test_function): Use it instead of 0.0 / 0.0.
52531
52532         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52533
52534 2007-03-25  Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52537
52538 2007-03-25  Bruno Haible  <bruno@clisp.org>
52539
52540         * lib/regexec.c (merge_state_with_log): Make static.
52541
52542 2007-03-25  Bruno Haible  <bruno@clisp.org>
52543
52544         * lib/trigl.c (kernel_rem_pio2): Make static.
52545
52546 2007-03-25  Bruno Haible  <bruno@clisp.org>
52547
52548         * lib/sincosl.c (sincosl_table): Make static.
52549
52550 2007-03-25  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52553         if the compiler does not support C99.
52554
52555 2007-03-25  Bruno Haible  <bruno@clisp.org>
52556
52557         * modules/time (Makefile.am): Ensure all rule action lines start with a
52558         tab.
52559
52560 2007-03-24  Bruno Haible  <bruno@clisp.org>
52561
52562         * modules/tsearch-tests: New file.
52563         * tests/test-tsearch.sh: New file.
52564         * tests/test-tsearch.c: New file, mostly copied from glibc.
52565
52566         * modules/search-tests: New file.
52567         * tests/test-search.c: New file.
52568
52569         * modules/search: New file.
52570         * lib/search_.h: New file, incorporating lib/tsearch.h.
52571         * m4/search_h.m4: New file.
52572         * lib/tsearch.h: Remove file.
52573         * lib/tsearch.c: Include search.h instead of tsearch.h.
52574         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52575         HAVE_TSEARCH.
52576         * modules/tsearch (Files): Remove lib/tsearch.h.
52577         (Depends-on): Add search.
52578         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52579         (Include): Change tsearch.h into search.h.
52580
52581 2007-03-24  Bruno Haible  <bruno@clisp.org>
52582
52583         * modules/fpucw: New file.
52584         * lib/fpucw.h: New file.
52585         * lib/frexp.c: Include fpucw.h.
52586         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52587         (FUNC): Use them.
52588         * lib/printf-frexp.c: Include fpucw.h.
52589         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52590         (FUNC): Use them.
52591         * lib/vasnprintf.c: Include fpucw.h.
52592         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52593         'long double' calculations.
52594         * tests/test-frexpl.c: Include fpucw.h.
52595         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52596         * tests/test-printf-frexpl.c: Include fpucw.h.
52597         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52598         * modules/frexpl (Depends-on): Add fpucw.
52599         * modules/printf-frexpl (Depends-on): Likewise.
52600         * modules/fprintf-posix (Depends-on): Likewise.
52601         * modules/snprintf-posix (Depends-on): Likewise.
52602         * modules/sprintf-posix (Depends-on): Likewise.
52603         * modules/vasnprintf-posix (Depends-on): Likewise.
52604         * modules/vasprintf-posix (Depends-on): Likewise.
52605         * modules/vfprintf-posix (Depends-on): Likewise.
52606         * modules/vsnprintf-posix (Depends-on): Likewise.
52607         * modules/vsprintf-posix (Depends-on): Likewise.
52608         * modules/frexpl-tests (Depends-on): Likewise.
52609         * modules/printf-frexpl-tests (Depends-on): Likewise.
52610
52611 2007-03-24  Bruno Haible  <bruno@clisp.org>
52612
52613         * lib/float+.h: New file.
52614         * lib/isnan.c: Include float+.h.
52615         (SIZE): New macro.
52616         (FUNC): Compare only SIZE bytes of the value.
52617         * lib/vasnprintf.c: Include float+.h.
52618         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52619         SIZEOF_LDBL or SIZEOF_DBL bytes.
52620         * modules/isnan-nolibm (Files): Add lib/float+.h.
52621         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52622         * modules/isnanl (Files): Add lib/float+.h.
52623         * modules/vasnprintf (Files): Add lib/float+.h.
52624
52625 2007-03-24  Bruno Haible  <bruno@clisp.org>
52626
52627         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52628         include isnanl-nolibm.h.
52629
52630 2007-03-24  Bruno Haible  <bruno@clisp.org>
52631
52632         * tests/test-read-file.c (main): Don't produce spurious output for
52633         expected situations. Make the test fail if it encountered unexpected
52634         results.
52635
52636 2007-03-24  Bruno Haible  <bruno@clisp.org>
52637
52638         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52639         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52640
52641 2007-03-24  Bruno Haible  <bruno@clisp.org>
52642
52643         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52644
52645 2007-03-24  Bruno Haible  <bruno@clisp.org>
52646
52647         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52648         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52649
52650         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52651         * modules/utf8-ucs4: Turn into a symbolic link to module
52652         unistr/u8-mbtouc.
52653
52654         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52655         utf8-ucs4-unsafe.
52656         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52657         unistr/u8-mbtouc-unsafe.
52658
52659         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52660         * modules/utf16-ucs4: Turn into a symbolic link to module
52661         unistr/u16-mbtouc.
52662
52663         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52664         utf16-ucs4-unsafe.
52665         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52666         unistr/u16-mbtouc-unsafe.
52667
52668         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52669         * modules/ucs4-utf8: Turn into a symbolic link to module
52670         unistr/u8-ubtomb.
52671
52672         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52673         * modules/ucs4-utf16: Turn into a symbolic link to module
52674         unistr/u16-ubtomb.
52675
52676 2007-03-24  Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52679         Enable the function only if HAVE_INLINE.
52680         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52681         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52682         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52683         Enable the function only if HAVE_INLINE.
52684         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52685         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52686         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52687         Enable the function only if HAVE_INLINE.
52688         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52689         Enable the function only if HAVE_INLINE.
52690         * modules/utf8-ucs4: Update.
52691         * modules/utf8-ucs4-unsafe: Update.
52692         * modules/utf16-ucs4: Update.
52693         * modules/utf16-ucs4-unsafe: Update.
52694         * modules/ucs4-utf8: Update.
52695         * modules/ucs4-utf16: Update.
52696
52697 2007-03-24  Bruno Haible  <bruno@clisp.org>
52698
52699         * lib/utf8-ucs4.h: Remove file.
52700         * lib/utf8-ucs4-unsafe.h: Remove file.
52701         * lib/utf16-ucs4.h: Remove file.
52702         * lib/utf16-ucs4-unsafe.h: Remove file.
52703         * lib/ucs4-utf8.h: Remove file.
52704         * lib/ucs4-utf16.h: Remove file.
52705         * lib/unistr.h: Include their previous contents.
52706         * m4/utf-ucs4.m4: Remove file.
52707         * m4/ucs4-utf.m4: Remove file.
52708         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52709         (Depends-on): Add unistr/base.
52710         (configure.ac): Remove gl_UTF_UCS4.
52711         (Makefile.am): Update.
52712         (Include): Change to unistr.h.
52713         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52714         (Depends-on): Add unistr/base.
52715         (configure.ac): Remove gl_UTF_UCS4.
52716         (Makefile.am): Update.
52717         (Include): Change to unistr.h.
52718         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52719         (Depends-on): Add unistr/base.
52720         (configure.ac): Remove gl_UTF_UCS4.
52721         (Makefile.am): Update.
52722         (Include): Change to unistr.h.
52723         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52724         (Depends-on): Add unistr/base.
52725         (configure.ac): Remove gl_UTF_UCS4.
52726         (Makefile.am): Update.
52727         (Include): Change to unistr.h.
52728         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52729         (Depends-on): Add unistr/base.
52730         (configure.ac): Remove gl_UCS4_UTF.
52731         (Makefile.am): Update.
52732         (Include): Change to unistr.h.
52733         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52734         (Depends-on): Add unistr/base.
52735         (configure.ac): Remove gl_UCS4_UTF.
52736         (Makefile.am): Update.
52737         (Include): Change to unistr.h.
52738         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52739         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52740         utf8-ucs4-unsafe.h.
52741         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52742         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52743         utf16-ucs4-unsafe.h.
52744         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52745         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52746         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52747         * lib/unistr/u8-strchr.c: Likewise.
52748         * lib/unistr/u8-strrchr.c: Likewise.
52749         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52750         * lib/unistr/u16-strchr.c: Likewise.
52751         * lib/unistr/u16-strrchr.c: Likewise.
52752         * lib/striconveh.c: Update.
52753         * lib/linebreak.c: Update.
52754
52755 2007-03-24  Bruno Haible  <bruno@clisp.org>
52756
52757         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52758         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52759
52760 2007-03-22  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52763
52764 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * MODULES.html.sh (File system functions): New module write-any-file.
52767         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52768         * m4/write-any-file.m4: New files.
52769
52770 2007-03-23  Eric Blake  <ebb9@byu.net>
52771
52772         * gnulib-tool: Rearrange space-tab sequences, since some editors
52773         like to eat them.
52774
52775 2007-03-23  Eric Blake  <ebb9@byu.net>
52776
52777         * lib/version-etc.c (version_etc_va): Update license wording to
52778         be more concise.  Recommended by Richard Stallman.
52779
52780 2007-03-22  Bruno Haible  <bruno@clisp.org>
52781
52782         * lib/poll.c (MSG_PEEK): New fallback definition.
52783
52784 2007-03-22  Bruno Haible  <bruno@clisp.org>
52785
52786         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52787         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52788         (main): Update.
52789         Fixes a compilation error on BeOS.
52790
52791 2007-03-22  Bruno Haible  <bruno@clisp.org>
52792
52793         * modules/frexpl-tests: New file.
52794         * tests/test-frexpl.c: New file.
52795
52796         * modules/frexpl: New file.
52797         * m4/frexpl.m4: New file.
52798         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52799         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52801         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52802         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52803         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52804
52805 2007-03-22  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/frexpl.c: Share code with lib/frexp.c.
52808         * modules/mathl (Files): Add lib/frexp.c.
52809         (Depends-on): Add isnanl-nolibm.
52810
52811 2007-03-22  Bruno Haible  <bruno@clisp.org>
52812
52813         * modules/printf-frexp (Files): Add m4/frexp.m4.
52814         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52815         only if the found frexp function actually works.
52816
52817 2007-03-22  Bruno Haible  <bruno@clisp.org>
52818
52819         * lib/frexp.c: Remove older implementation that uses divisions.
52820
52821 2007-03-21  Bruno Haible  <bruno@clisp.org>
52822
52823         * modules/frexp-tests: New file.
52824         * tests/test-frexp.c: New file.
52825
52826         * modules/frexp: New file.
52827         * lib/frexp.c: New file.
52828         * m4/frexp.m4: New file.
52829         * lib/math_.h (frexp): New declaration.
52830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52831         REPLACE_FREXP.
52832         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52833
52834 2007-03-21  Bruno Haible  <bruno@clisp.org>
52835
52836         * modules/isnanl-tests: New file.
52837         * tests/test-isnanl.c: New file.
52838
52839         * modules/isnanl: New file.
52840         * lib/isnanl.h: New file.
52841         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52842         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52843         gl_FUNC_ISNANL_WORKS.
52844         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52845         New macros.
52846
52847 2007-03-21  Bruno Haible  <bruno@clisp.org>
52848
52849         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52850         lib/isnanl.h.
52851         (Include): Update.
52852         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52853         * lib/vasnprintf.c: Update.
52854         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52855         tests/test-isnanl.h, remove tests/test-isnanl.c.
52856         (Makefile.am): Update.
52857         * tests/test-isnanl-nolibm.c: New file.
52858         * tests/test-isnanl.h: New file.
52859         * tests/test-isnanl.c: Remove file.
52860
52861 2007-03-21  Jim Meyering  <jim@meyering.net>
52862
52863         When trying to open ".", treat ESTALE like EACCES.
52864         * lib/savewd.c (savewd_save): Resort to forking not just upon
52865         failure with EACCES, but also when errno is ESTALE.
52866
52867 2007-03-20  Bruno Haible  <bruno@clisp.org>
52868
52869         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52870         Needed on AIX 5.1. Reported by Matthew Woehlke.
52871
52872 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52873
52874         Suggestions by Bruno Haible:
52875         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52876         our own.
52877         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52878         * modules/acl (Depends-on): Add gettext.
52879
52880 2007-03-19  Bruno Haible  <bruno@clisp.org>
52881
52882         * modules/iconvme: Remove file.
52883         * lib/iconvme.h: Remove file.
52884         * lib/iconvme.c: Remove file.
52885         * m4/iconvme.m4: Remove file.
52886
52887 2007-03-19  Bruno Haible  <bruno@clisp.org>
52888
52889         * doc/relocatable-maint.texi: Break long shell script line.
52890         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52891
52892 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52893
52894         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52895         handle file_has_acl.
52896         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52897         * lib/acl.c: Move header inclusions and related macro defns into
52898         lib/acl-internal.h.
52899         (S_ISLNK): Remove defn, since that's now done for us.
52900         (file_has_acl): Move to lib/file-has-acl.c.
52901         Call acl_trivial if available.  This is the crucial part of the fix.
52902         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52903         shared within the library.  Rewrite a bit, partly to make it compatible
52904         with the GNU coding style.
52905         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52906         Remove unnecessary double-quotes.
52907         Don't test for acl_to_text; the build will catch that.
52908         Replace acl_entries if it doesn't exist and it is needed.
52909         Check for -lsec and acl_trivial (as used on Solaris 10).
52910         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52911         lib/file-has-acl.c.
52912         (Depends-on): Add sys_stat, for S_ISLNK.
52913
52914 2007-03-19  Ben Pfaff  <blp@gnu.org>
52915
52916         * doc/gnulib.texi: Fix typos.
52917         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52918
52919 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52920
52921         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52922         If size is zero here, buf must be zero.
52923
52924 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52925
52926         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52927         <bruno@clisp.org>.
52928
52929 2007-03-18  Bruno Haible  <bruno@clisp.org>
52930
52931         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52932         Suggested by Eric Blake.
52933
52934 2007-03-18  Ben Pfaff  <blp@gnu.org>
52935
52936         * doc/relocatable.texi: Recommend using as prefix a directory
52937         that does not exist and will never be created.  Based on
52938         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52939         and others.
52940
52941 2007-03-17  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/fchownat.c: Include lchown.h.
52944
52945 2007-03-17  Bruno Haible  <bruno@clisp.org>
52946
52947         Fix endless loop when the given allocated size was > INT_MAX.
52948         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52949         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52950         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52951         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52952         * lib/sprintf.c (sprintf): Likewise.
52953
52954 2007-03-17  Bruno Haible  <bruno@clisp.org>
52955
52956         * tests/test-argp-2.sh (func_compare): Output a context diff.
52957
52958 2007-03-17  Bruno Haible  <bruno@clisp.org>
52959
52960         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52961         locale's decimal-point character.
52962
52963 2007-03-17  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52966         before comparing it. Needed because on some platforms (e.g. x86) a
52967         'long double' occupies less bytes than sizeof (long double).
52968
52969 2007-03-17  Bruno Haible  <bruno@clisp.org>
52970
52971         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52972         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52973         * tests/test-getaddrinfo.c (simple): Likewise.
52974         * tests/test-read-file.c (main): Likewise.
52975
52976 2007-03-17  Bruno Haible  <bruno@clisp.org>
52977
52978         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52979
52980 2007-03-17  Bruno Haible  <bruno@clisp.org>
52981
52982         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52983         unused variable.
52984
52985 2007-03-17  Bruno Haible  <bruno@clisp.org>
52986
52987         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52988         * tests/test-c-strncasecmp.c: Likewise.
52989
52990 2007-03-17  Bruno Haible  <bruno@clisp.org>
52991
52992         * modules/stdlib (Depends-on): Add unistd.
52993         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52994         Needed for MacOS X 10.3.
52995
52996 2007-03-17  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52999
53000 2007-03-17  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53003
53004 2007-03-17  Bruno Haible  <bruno@clisp.org>
53005
53006         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53007         to reflect files copied from gnulib (with or without modifications).
53008         Suggested by Jim Meyering.
53009
53010 2007-03-17  Eric Blake  <ebb9@byu.net>
53011
53012         * NEWS: Document stdlib change from 2007-02-18.
53013
53014 2007-03-17  Jim Meyering  <jim@meyering.net>
53015
53016         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53017         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53018         someone uses a name containing shell meta-characters.
53019         Reported by Alfred M. Szmidt.
53020
53021         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53022
53023 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53024
53025         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53026         and copy gettext configuration files only if configure.ac contains
53027         a use of AM_GNU_GETTEXT_VERSION.
53028
53029 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53030
53031         * build-aux/bootstrap (gnulib_name): New variable.
53032         (gnulib_tool_options): Use it.
53033
53034 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53035
53036         * tests/test-des.c: Use new namespace.
53037
53038 2007-03-15  Bruno Haible  <bruno@clisp.org>
53039
53040         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53041         Reported by James Youngman <jay@gnu.org>.
53042
53043 2007-03-15  Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53046         declared prototype. Needed with cc on OSF/1 5.1.
53047
53048 2007-03-15  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53051         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53052         (struct gl_list_implementation): Add dispose_fn argument to the
53053         'create_empty', 'create' methods.
53054         (struct gl_list_impl_base): Add field 'dispose_fn'.
53055         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53056         argument.
53057         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53058         dispose_fn argument.
53059         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53060         dispose_fn on the dropped values.
53061         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53062         dispose_fn argument.
53063         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53064         dropped values.
53065         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53066         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53067         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53068         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53069         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53070         argument.
53071         (gl_tree_list_free): Call dispose_fn on the dropped values.
53072         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53073         the dropped values.
53074         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53075         Add dispose_fn argument.
53076         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53077         Call dispose_fn on the dropped values.
53078         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53079         Add dispose_fn argument.
53080         (gl_sublist_create): Initialize the 'dispose_fn' field.
53081         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53082         * tests/test-array_list.c (main): Update.
53083         * tests/test-carray_list.c (main): Update.
53084         * tests/test-avltree_list.c (main): Update.
53085         * tests/test-rbtree_list.c (main): Update.
53086         * tests/test-avltreehash_list.c (main): Update.
53087         * tests/test-rbtreehash_list.c (main): Update.
53088         * tests/test-linked_list.c (main): Update.
53089         * tests/test-linkedhash_list.c (main): Update.
53090         * tests/test-array_oset.c (main): Update.
53091
53092 2007-03-15  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53095         (gl_oset_create_empty): Add dispose_fn argument.
53096         (struct gl_oset_implementation): Add dispose_fn argument to
53097         'create_empty' method.
53098         (struct gl_oset_impl_base): Add dispose_fn field.
53099         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53100         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53101         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53102         values.
53103         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53104         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53105         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53106         dropped value.
53107         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53108         dropped value.
53109         * tests/test-array_oset.c (main): Update.
53110         * tests/test-avltree_oset.c (main): Update.
53111         * tests/test-rbtree_oset.c (main): Update.
53112         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53113
53114 2007-03-13  Bruno Haible  <bruno@clisp.org>
53115
53116         * tests/test-stdbool.c (i): Update after last patch.
53117
53118 2007-03-12  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53121         the iswprint macro. Needed on Solaris 2.5.1.
53122
53123 2007-03-12  Bruno Haible  <bruno@clisp.org>
53124
53125         * tests/test-printf-frexp.c (main): Declare x as volatile.
53126
53127 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53128
53129         * doc/gnulib.texi (Build robot for gnulib): New section.
53130
53131 2007-03-12  Jim Meyering  <jim@meyering.net>
53132
53133         * build-aux/bootstrap: New file.
53134         * build-aux/bootstrap.conf: New file, from coreutils.
53135
53136 2007-03-11  Bruno Haible  <bruno@clisp.org>
53137
53138         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53139
53140 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53141
53142         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53143         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53144         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53145
53146 2007-03-11  Bruno Haible  <bruno@clisp.org>
53147
53148         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53149         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53150
53151 2007-03-11  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53154         formula. Needed for SunPRO C 5.0.
53155
53156 2007-03-11  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/long-options (Depends-on): Add getopt.
53159
53160 2007-03-11  Bruno Haible  <bruno@clisp.org>
53161
53162         * modules/modechange (Depends-on): Add stdbool.
53163
53164 2007-03-11  Bruno Haible  <bruno@clisp.org>
53165
53166         * modules/i-ring (Depends-on): Add stdbool.
53167
53168 2007-03-11  Bruno Haible  <bruno@clisp.org>
53169
53170         * modules/gc-des (Depends-on): Add stdbool.
53171
53172 2007-03-11  Bruno Haible  <bruno@clisp.org>
53173
53174         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53175
53176 2007-03-11  Bruno Haible  <bruno@clisp.org>
53177
53178         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53179
53180 2007-03-11  Bruno Haible  <bruno@clisp.org>
53181
53182         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53183
53184 2007-03-11  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/vasnprintf.c (sprintf): Undefine.
53187
53188 2007-03-11  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53191         initializers in SunPRO C and Compaq C compilers.
53192
53193 2007-03-11  Bruno Haible  <bruno@clisp.org>
53194
53195         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53196         decrementing code ANSI C compliant.
53197
53198 2007-03-11  Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53201         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53202
53203 2007-03-11  Bruno Haible  <bruno@clisp.org>
53204
53205         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53206         <stdbool.h> substitute doesn't pass.
53207
53208 2007-03-11  Bruno Haible  <bruno@clisp.org>
53209
53210         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53211
53212 2007-03-11  Bruno Haible  <bruno@clisp.org>
53213
53214         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53215         script, for submission to autobuild.josefsson.org.
53216
53217 2007-03-10  Bruno Haible  <bruno@clisp.org>
53218
53219         * modules/canonicalize-lgpl-tests: New file.
53220         * tests/test-canonicalize-lgpl.sh: New file.
53221         * tests/test-canonicalize-lgpl.c: New file.
53222
53223         * modules/c-strcase-tests: New file.
53224         * tests/test-c-strcase.sh: New file.
53225         * tests/test-c-strcasecmp.c: New file.
53226         * tests/test-c-strncasecmp.c: New file.
53227
53228         * modules/atexit-tests: New file.
53229         * tests/test-atexit.sh: New file.
53230         * tests/test-atexit.c: New file.
53231
53232 2007-03-10  Bruno Haible  <bruno@clisp.org>
53233
53234         * tests/test-binary-io.sh: Use temporary filenames that are not so
53235         likely to clash with those of other tests (in a parallel make).
53236         * tests/test-binary-io.c: Likewise.
53237
53238 2007-03-10  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53241         fallback; use #error instead.
53242         Suggested by Simon Josefsson.
53243
53244 2007-03-10  Bruno Haible  <bruno@clisp.org>
53245
53246         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53247         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53248         first and the last.
53249
53250 2007-03-10  Bruno Haible  <bruno@clisp.org>
53251
53252         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53253
53254 2007-03-10  Bruno Haible  <bruno@clisp.org>
53255
53256         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53257         "make distcheck".
53258         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53259         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53260         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53261
53262 2007-03-10  Bruno Haible  <bruno@clisp.org>
53263
53264         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53265         variable.
53266         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53267         variable.
53268
53269 2007-03-09  Eric Blake  <ebb9@byu.net>
53270         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53271
53272         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53273         types are not being provided by gnulib.
53274         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53275         types are supported.
53276
53277 2007-03-10  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/stdio_.h (__attribute__): New macro.
53280         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53281         vsprintf): Specify __attribute__ __format__ for GCC.
53282         Suggested by Eric Blake.
53283
53284 2007-03-09  Bruno Haible  <bruno@clisp.org>
53285
53286         * modules/printf-posix-tests: New file.
53287         * tests/test-printf-posix.sh: New file.
53288         * tests/test-printf-posix.c: New file.
53289
53290         * modules/printf-posix: New file.
53291         * lib/printf.c: New file.
53292         * m4/printf-posix-rpl.m4: New file.
53293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53294         REPLACE_PRINTF.
53295         * lib/stdio_.h (printf): New declaration.
53296         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53297         ____strfmon____): New macros.
53298         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53299         REPLACE_PRINTF.
53300
53301 2007-03-09  Bruno Haible  <bruno@clisp.org>
53302
53303         * tests/test-vasnprintf-posix2.sh: New file.
53304         * tests/test-vasnprintf-posix2.c: New file.
53305         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53306         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53307         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53308
53309         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53310         a locale dependent decimal point, rather than always '.'.
53311
53312 2007-03-09  Eric Blake  <ebb9@byu.net>
53313
53314         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53315         spite of platforms like Tandem/NSK that define it to -1.
53316
53317 2007-03-08  Bruno Haible  <bruno@clisp.org>
53318
53319         * modules/vprintf-posix-tests: New file.
53320         * tests/test-vprintf-posix.sh: New file.
53321         * tests/test-vprintf-posix.c: New file.
53322         * tests/test-printf-posix.h: New file.
53323
53324         * modules/vprintf-posix: New file.
53325         * lib/vprintf.c: New file.
53326         * m4/vprintf-posix.m4: New file.
53327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53328         REPLACE_VPRINTF.
53329         * lib/stdio_.h (vprintf): New declaration.
53330         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53331         REPLACE_VPRINTF.
53332
53333 2007-03-08  Bruno Haible  <bruno@clisp.org>
53334
53335         * modules/fprintf-posix-tests: New file.
53336         * tests/test-fprintf-posix.sh: New file.
53337         * tests/test-fprintf-posix.c: New file.
53338
53339         * modules/fprintf-posix: New file.
53340         * lib/fprintf.c: New file.
53341         * m4/fprintf-posix.m4: New file.
53342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53343         REPLACE_FPRINTF.
53344         * lib/stdio_.h (fprintf): New declaration.
53345         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53346         REPLACE_FPRINTF.
53347
53348 2007-03-08  Bruno Haible  <bruno@clisp.org>
53349
53350         * modules/vfprintf-posix-tests: New file.
53351         * tests/test-vfprintf-posix.sh: New file.
53352         * tests/test-vfprintf-posix.c: New file.
53353         * tests/test-fprintf-posix.h: New file.
53354         * tests/test-fprintf-posix.out: New file.
53355
53356         * modules/vfprintf-posix: New file.
53357         * lib/vfprintf.c: New file.
53358         * m4/vfprintf-posix.m4: New file.
53359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53360         REPLACE_VFPRINTF.
53361         * lib/stdio_.h (vfprintf): New declaration.
53362         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53363         REPLACE_VFPRINTF.
53364
53365 2007-03-08  Bruno Haible  <bruno@clisp.org>
53366
53367         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53368
53369 2007-03-08  Bruno Haible  <bruno@clisp.org>
53370
53371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53372         instead of 'expr' invocations.
53373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53374         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53375         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53378         Suggested by Paul Eggert.
53379
53380 2007-03-08  Bruno Haible  <bruno@clisp.org>
53381
53382         * modules/fseterr-tests: New file.
53383         * tests/test-fseterr.c: New file.
53384
53385         * modules/fseterr: New file.
53386         * lib/fseterr.h: New file.
53387         * lib/fseterr.c: New file.
53388
53389 2007-03-08  Bruno Haible  <bruno@clisp.org>
53390
53391         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53392         * lib/getopt_.h: Likewise.
53393         * lib/mbswidth.h: Likewise.
53394         * lib/setenv.h: Likewise.
53395         * lib/vasnprintf.h: Likewise.
53396         * lib/vasprintf.h: Likewise.
53397         * lib/verror.h: Likewise.
53398         * lib/xsetenv.h: Likewise.
53399         * lib/xvasprintf.h: Likewise.
53400
53401 2007-03-08  Jim Meyering  <jim@meyering.net>
53402
53403         * users.txt: Add parted.
53404
53405         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53406
53407 2007-03-07  Bruno Haible  <bruno@clisp.org>
53408
53409         * m4/printf.m4: Make the shell script snippets copy&pastable.
53410
53411 2007-03-02  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/netinet_in_.h: New file.
53414         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53415         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53416         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53417         (Depends-on): Add absolute-header.
53418         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53419         into netinet/in.h.
53420
53421 2007-03-03  Bruno Haible  <bruno@clisp.org>
53422
53423         * lib/sys_select_.h: New file.
53424         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53425         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53426         * modules/sys_select (Files): Add lib/sys_select_.h.
53427         (Depends-on): Add absolute-header.
53428         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53429         into sys/select.h.
53430
53431 2007-03-02  Bruno Haible  <bruno@clisp.org>
53432
53433         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53434         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53435         values.
53436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53437         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53438         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53439         * modules/sys_socket (Depends-on): Add absolute-header.
53440         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53441         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53442         (Include): Remove requirement of inclusion of <sys/types.h>.
53443
53444 2007-03-02  Bruno Haible  <bruno@clisp.org>
53445
53446         * lib/byteswap_.h (bswap_32): Fix formula.
53447
53448 2007-03-06  Bruno Haible  <bruno@clisp.org>
53449
53450         * modules/sprintf-posix-tests: New file.
53451         * tests/test-sprintf-posix.c: New file.
53452
53453         * modules/sprintf-posix: New file.
53454         * lib/sprintf.c: New file.
53455         * m4/sprintf-posix.m4: New file.
53456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53457         REPLACE_SPRINTF.
53458         * lib/stdio_.h (sprintf): New declaration.
53459         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53460         REPLACE_SPRINTF.
53461
53462 2007-03-06  Bruno Haible  <bruno@clisp.org>
53463
53464         * modules/vsprintf-posix-tests: New file.
53465         * tests/test-vsprintf-posix.c: New file.
53466         * tests/test-sprintf-posix.h: New file.
53467
53468         * modules/vsprintf-posix: New file.
53469         * lib/vsprintf.c: New file.
53470         * m4/vsprintf-posix.m4: New file.
53471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53472         REPLACE_VSPRINTF.
53473         * lib/stdio_.h (vsprintf): New declaration.
53474         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53475         REPLACE_VSPRINTF.
53476
53477 2007-03-06  Bruno Haible  <bruno@clisp.org>
53478
53479         * modules/vsnprintf (Depend-on): Remove minmax.
53480
53481 2007-03-06  Bruno Haible  <bruno@clisp.org>
53482
53483         * modules/snprintf-posix-tests: New file.
53484         * tests/test-snprintf-posix.c: New file.
53485
53486         * modules/snprintf-posix: New file.
53487         * m4/snprintf-posix.m4: New file.
53488         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53489         gl_FUNC_SNPRINTF.
53490         (gl_FUNC_SNPRINTF): Invoke it.
53491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53492         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53493         is set.
53494         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53495
53496 2007-03-06  Bruno Haible  <bruno@clisp.org>
53497
53498         * modules/vsnprintf-posix-tests: New file.
53499         * tests/test-vsnprintf-posix.c: New file.
53500         * tests/test-snprintf-posix.h: New file.
53501
53502         * modules/vsnprintf-posix: New file.
53503         * m4/vsnprintf-posix.m4: New file.
53504         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53505         gl_FUNC_VSNPRINTF.
53506         (gl_FUNC_VSNPRINTF): Invoke it.
53507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53508         * lib/stdio_.h (vsnprintf): Define as a replacement if
53509         REPLACE_VSNPRINTF is set.
53510         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53511
53512 2007-03-06  Bruno Haible  <bruno@clisp.org>
53513
53514         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53516
53517 2007-03-06  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53520         (asinl): Declare also if HAVE_DECL_ASINL is set.
53521         (atanl): Declare also if HAVE_DECL_ATANL is set.
53522         (ceill): Declare also if HAVE_DECL_CEILL is set.
53523         (cosl): Declare also if HAVE_DECL_COSL is set.
53524         (expl): Declare also if HAVE_DECL_EXPL is set.
53525         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53526         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53527         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53528         (logl): Declare also if HAVE_DECL_LOGL is set.
53529         (sinl): Declare also if HAVE_DECL_SINL is set.
53530         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53531         (tanl): Declare also if HAVE_DECL_TANL is set.
53532         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53534         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53535         declaration of frexpl, ldexpl.
53536         * modules/printf-frexpl (Depends-on): Add math.
53537         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53538
53539 2007-03-05  Bruno Haible  <bruno@clisp.org>
53540
53541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53542         frexpl and ldexpl are declared.
53543         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53544
53545 2007-03-05  Bruno Haible  <bruno@clisp.org>
53546
53547         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53548         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53549
53550 2007-03-05  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/stdio_.h: Include <stddef.h>.
53553
53554 2007-03-05  Bruno Haible  <bruno@clisp.org>
53555
53556         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53557
53558 2007-03-05  Bruno Haible  <bruno@clisp.org>
53559
53560         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53561         NetBSD 4, from Ralf Wildenhues.
53562
53563 2007-03-04  Bruno Haible  <bruno@clisp.org>
53564
53565         * lib/vasprintf.h: Update #if logic for the case when the functions
53566         exist but are overridden.
53567
53568 2007-03-04  Bruno Haible  <bruno@clisp.org>
53569
53570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53571         implementations: glibc-2.4 and MacOS X 10.3.
53572         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53573         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53574         * tests/test-vasprintf-posix.c (test_function): Likewise.
53575
53576 2007-03-04  Bruno Haible  <bruno@clisp.org>
53577
53578         * modules/vasprintf-posix-tests: New file.
53579         * tests/test-vasprintf-posix.c: New file.
53580
53581         * modules/vasprintf-posix: New file.
53582         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53583         defined.
53584         * m4/vasprintf-posix.m4: New file.
53585         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53586         gl_FUNC_VASPRINTF.
53587         (gl_FUNC_VASPRINTF): Invoke it.
53588         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53589         here.
53590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53591
53592 2007-03-04  Bruno Haible  <bruno@clisp.org>
53593
53594         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53595         REPLACE_GETTIMEOFDAY.
53596         * modules/sys_time (Makefile.am): Likewise.
53597         * m4/sys_time_h.m4: Likewise.
53598         * m4/gettimeofday.m4: Likewise.
53599
53600 2007-03-04  Bruno Haible  <bruno@clisp.org>
53601
53602         * modules/vasnprintf-posix-tests: New file.
53603         * tests/test-vasnprintf-posix.c: New file.
53604
53605         * modules/vasnprintf-posix: New file.
53606         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53607         printf-frexpl.h.
53608         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53609         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53610         REPLACE_VASNPRINTF is defined.
53611         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53612         gl_FUNC_VASNPRINTF.
53613         (gl_FUNC_VASNPRINTF): Invoke it.
53614         * m4/vasnprintf-posix.m4: New file.
53615         * m4/printf.m4: New file.
53616
53617 2007-03-04  Bruno Haible  <bruno@clisp.org>
53618
53619         Compile progreloc.c only if --enable-relocatable is specified.
53620         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53621         if --enable-relocatable was specified.
53622         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53623         lib_SOURCES.
53624
53625 2007-03-04  Jim Meyering  <jim@meyering.net>
53626
53627         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53628         Use it consistently, rather than enumerating errno constants.
53629
53630 2007-03-04  Bruno Haible  <bruno@clisp.org>
53631
53632         * modules/xvasprintf-tests: New file.
53633         * tests/test-xvasprintf.c: New file.
53634
53635         * modules/vasprintf-tests: New file.
53636         * tests/test-vasprintf.c: New file.
53637
53638         * modules/vasnprintf-tests: New file.
53639         * tests/test-vasnprintf.c: New file.
53640
53641         * modules/vsnprintf-tests: New file.
53642         * tests/test-vsnprintf.c: New file.
53643
53644         * modules/snprintf-tests: New file.
53645         * tests/test-snprintf.c: New file.
53646
53647 2007-03-04  Bruno Haible  <bruno@clisp.org>
53648
53649         Compile relocatable.c only if --enable-relocatable is specified.
53650         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53651         gl_RELOCATABLE_LIBRARY.
53652         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53653         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53654         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53655         gl_RELOCATABLE_LIBRARY.
53656         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53657         (Makefile.am): Remove lib_SOURCES.
53658         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53659         gl_RELOCATABLE_LIBRARY.
53660         (Makefile.am): Remove lib_SOURCES.
53661         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53662         always.
53663         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53664         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53665
53666 2007-03-04  Bruno Haible  <bruno@clisp.org>
53667
53668         * modules/argmatch-tests: New file.
53669         * tests/test-argmatch.c: New file.
53670
53671         * tests/test-allocsa.c (main): Halve the number of loop runs.
53672
53673         * modules/alloca-opt-tests: New file.
53674         * tests/test-alloca-opt.c: New file.
53675
53676 2007-03-04  Jim Meyering  <jim@meyering.net>
53677
53678         Work around difference between Linux ACLs and Solaris 10 ZFS.
53679         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53680         for EINVAL.
53681
53682 2007-03-03  Bruno Haible  <bruno@clisp.org>
53683
53684         * modules/relocatable-prog (Depends-on): Add back progreloc's
53685         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53686
53687 2007-03-03  Bruno Haible  <bruno@clisp.org>
53688
53689         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53690         * modules/relocatable-lib: New file.
53691
53692 2007-03-03  Bruno Haible  <bruno@clisp.org>
53693
53694         * modules/relocatable-prog: Renamed from modules/relocatable.
53695         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53696
53697 2007-03-03  Bruno Haible  <bruno@clisp.org>
53698
53699         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53700         m4/relocatable-lib.m4.
53701         (Depends-on): Remove 'relocatable'.
53702         (configure.ac): Add gl_RELOCATABLE_NOP.
53703
53704 2007-03-03  Bruno Haible  <bruno@clisp.org>
53705
53706         * modules/relocatable-prog-wrapper: New file.
53707         * modules/relocatable (Depends-on): Add it. Remove all other
53708         dependencies except progname.
53709         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53710
53711         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53712         (gl_FUNC_STRERROR): Nop.
53713         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53714
53715         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53716         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53717
53718         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53719         (gl_FUNC_READLINK): Update.
53720
53721         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53722
53723 2007-03-03  Bruno Haible  <bruno@clisp.org>
53724
53725         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53726         * modules/xreadlink (Depends-on): Add unistd.
53727         * modules/xreadlink-with-size (Depends-on): Likewise.
53728
53729 2007-03-03  Bruno Haible  <bruno@clisp.org>
53730
53731         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53732         extracted from gt_FUNC_SETENV.
53733         (gt_FUNC_SETENV): Remove macro.
53734         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53735         remove gt_FUNC_SETENV.
53736
53737 2007-03-03  Bruno Haible  <bruno@clisp.org>
53738
53739         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53740         ENABLE_RELOCATABLE here.
53741         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53742
53743 2007-03-03  Bruno Haible  <bruno@clisp.org>
53744
53745         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53746         * tests/test-rbtreehash_list.c: Include progname.h.
53747         (main): Call set_program_name.
53748
53749         * modules/rbtree-oset-tests (Depends-on): Add progname.
53750         * tests/test-rbtree_oset.c: Include progname.h.
53751         (main): Call set_program_name.
53752
53753         * modules/rbtree-list-tests (Depends-on): Add progname.
53754         * tests/test-rbtree_list.c: Include progname.h.
53755         (main): Call set_program_name.
53756
53757         * modules/linked-list-tests (Depends-on): Add progname.
53758         * tests/test-linked_list.c: Include progname.h.
53759         (main): Call set_program_name.
53760
53761 2007-03-03  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53764         All uses of __restrict changed to _Restrict_.
53765         * lib/glob_.h (__restrict): Remove macro.
53766
53767 2007-03-02  Bruno Haible  <bruno@clisp.org>
53768
53769         * modules/gettext (configure.ac): Require gettext infrastructure
53770         from version 0.16.1.
53771
53772 2007-03-02  Bruno Haible  <bruno@clisp.org>
53773
53774         * modules/linkedhash-list-tests (Depends-on): Add progname.
53775         * tests/test-linkedhash_list.c: Include progname.h.
53776         (main): Call set_program_name.
53777
53778         * modules/carray-list-tests (Depends-on): Add progname.
53779         * tests/test-carray_list.c: Include progname.h.
53780         (main): Call set_program_name.
53781
53782         * modules/avltreehash-list-tests (Depends-on): Add progname.
53783         * tests/test-avltreehash_list.c: Include progname.h.
53784         (main): Call set_program_name.
53785
53786         * modules/avltree-oset-tests (Depends-on): Add progname.
53787         * tests/test-avltree_oset.c: Include progname.h.
53788         (main): Call set_program_name.
53789
53790         * modules/avltree-list-tests (Depends-on): Add progname.
53791         * tests/test-avltree_list.c: Include progname.h.
53792         (main): Call set_program_name.
53793
53794         * modules/array-oset-tests (Depends-on): Add progname.
53795         * tests/test-array_oset.c: Include progname.h.
53796         (main): Call set_program_name.
53797
53798         * modules/array-list-tests (Depends-on): Add progname.
53799         * tests/test-array_list.c: Include progname.h.
53800         (main): Call set_program_name.
53801
53802         * modules/argp-tests (Depends-on): Add progname.
53803         * tests/test-argp.c: Include argp.h first. Include progname.h.
53804         (main): Call set_program_name.
53805
53806 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53807
53808         * doc/gnulib-tool.texi (Initial import): Reword description of
53809         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53810         limited effect even if defined after the first system include.
53811
53812 2007-03-01  Bruno Haible  <bruno@clisp.org>
53813
53814         * build-aux/config.libpath: Update to libtool-1.5.22.
53815         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53816
53817 2007-03-01  Bruno Haible  <bruno@clisp.org>
53818
53819         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53820         foo_CFLAGS.
53821         Reported by Ralf Wildenhues.
53822
53823 2007-03-01  Bruno Haible  <bruno@clisp.org>
53824
53825         * build-aux/install-reloc: Remove object files left over by some
53826         compilers.
53827         Reported by Ralf Wildenhues.
53828
53829 2007-03-01  Bruno Haible  <bruno@clisp.org>
53830
53831         * build-aux/install-reloc: Break long lines.
53832
53833 2007-03-01  Bruno Haible  <bruno@clisp.org>
53834
53835         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53836         Reported by Ralf Wildenhues.
53837
53838 2007-03-01  Bruno Haible  <bruno@clisp.org>
53839
53840         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53841         include ordering constraints.
53842
53843 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53844
53845         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53846         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53847         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53848         as another example.
53849         * lib/time_.h: Fix misspelling.
53850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53851         Require gl_HEADER_TIME_H_DEFAULTS.
53852         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53853         * m4/time_r.m4 (gl_TIME_R): Likewise.
53854         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53855
53856 2007-03-01  Bruno Haible  <bruno@clisp.org>
53857
53858         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53859         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53860
53861 2007-03-01  Jim Meyering  <jim@meyering.net>
53862
53863         * modules/xreadlink (Maintainer): Add my name.
53864         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53865
53866 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53867             Bruno Haible  <bruno@clisp.org>
53868
53869         * build-aux/install-reloc: Compile also c-ctype.c.
53870         * build-aux/relocatable.sh.in: New file.
53871         * doc/relocatable.texi: New file.
53872         * doc/relocatable-maint.texi: New file.
53873         * doc/gnulib.texi: Include relocatable-maint.texi.
53874         * lib/progreloc.c: Include unistd.h unconditionally.
53875         * lib/relocwrapper.c: Include unistd.h unconditionally.
53876         Include c-ctype.h.
53877         (add_dotbin): Use c_tolower.
53878         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53879         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53880         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53881         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53882         to m4/relocatable-lib.m4.
53883         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53884         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53885         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53886         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53887         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53888         * modules/relocatable: New file.
53889         * modules/relocatable-lib: New file.
53890         * modules/relocatable-script: New file.
53891
53892 2007-02-28  Bruno Haible  <bruno@clisp.org>
53893
53894         Import --enable-relocatable infrastructure.
53895         * build-aux/config.libpath: New file, from GNU gettext.
53896         * build-aux/install-reloc: New file, from GNU gettext.
53897         * build-aux/reloc-ldflags: New file, from GNU gettext.
53898         * lib/relocatable.h: New file, from GNU gettext.
53899         * lib/relocatable.c: New file, from GNU gettext.
53900         * lib/relocwrapper.c: New file, from GNU gettext.
53901         * m4/relocatable.m4: New file, from GNU gettext.
53902
53903 2007-02-28  Bruno Haible  <bruno@clisp.org>
53904
53905         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53906
53907         * modules/xreadlink: New file, from GNU gettext with modifications.
53908         * lib/xreadlink.c: New file, from GNU gettext.
53909         * lib/xreadlink.h: Add comments.
53910         (xreadlink): New declaration.
53911
53912         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53913         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53914         lib/xreadlink-with-size.c.
53915         (configure.ac): Remove gl_XREADLINK invocation.
53916         (Makefile.am): Augment lib_SOURCES.
53917         * m4/xreadlink.m4: Remove file.
53918         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53919         (xreadlink_with_size): Renamed from xreadink.
53920         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53921         * modules/canonicalize (Depends-on): Replace xreadlink with
53922         xreadlink-with-size.
53923         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53924
53925 2007-02-25  Jim Meyering  <jim@meyering.net>
53926
53927         * build-aux/announce-gen: When complaining about excess arguments,
53928         list them.
53929
53930 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * README: Document signed integer overflow situation more
53933         accurately.
53934
53935 2007-02-25  Bruno Haible  <bruno@clisp.org>
53936
53937         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53938         'a' or 'A' conversion.
53939
53940 2007-02-25  Bruno Haible  <bruno@clisp.org>
53941
53942         * modules/filename: Renamed from modules/pathname.
53943         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53944         lib/concatpath.c with lib/concat-filename.c.
53945         (Makefile.am): Update.
53946         (Include): Replace pathname.h with filename.h.
53947         * lib/filename.h: Renamed from lib/pathname.h.
53948         (concatenated_filename): Renamed from concatenated_pathname.
53949         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53950         (concatenated_filename): Renamed from concatenated_pathname.
53951         * lib/findprog.c: Include filename.h instead of pathname.h.
53952         (find_in_path): Update.
53953         * lib/javacomp.c: Include filename.h instead of pathname.h.
53954         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53955         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53956         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53957         is_oldgcj_14_13_usable, is_javac_usable): Update.
53958         * lib/javaexec.c: Include filename.h instead of pathname.h.
53959         (execute_java_class): Update.
53960         * modules/findprog: Update.
53961         * modules/javacomp: Update.
53962         * modules/javaexec: Update.
53963         * MODULES.html.sh (File system functions): Add 'filename', remove
53964         'pathname'.
53965
53966 2007-02-25  Bruno Haible  <bruno@clisp.org>
53967
53968         * modules/printf-frexpl-tests: New file.
53969         * tests/test-printf-frexpl.c: New file.
53970
53971         * modules/printf-frexpl: New file.
53972         * lib/printf-frexpl.h: New file.
53973         * lib/printf-frexpl.c: New file.
53974         * m4/printf-frexpl.m4: New file.
53975
53976 2007-02-25  Bruno Haible  <bruno@clisp.org>
53977
53978         * modules/printf-frexp-tests: New file.
53979         * tests/test-printf-frexp.c: New file.
53980
53981         * modules/printf-frexp: New file.
53982         * lib/printf-frexp.h: New file.
53983         * lib/printf-frexp.c: New file.
53984         * m4/printf-frexp.m4: New file.
53985
53986 2007-02-25  Bruno Haible  <bruno@clisp.org>
53987
53988         Assume automake >= 1.10 for the tests.
53989         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53990         * modules/arctwo-tests: Likewise.
53991         * modules/argp-tests: Likewise.
53992         * modules/avltree-list-tests: Likewise.
53993         * modules/avltree-oset-tests: Likewise.
53994         * modules/avltreehash-list-tests: Likewise.
53995         * modules/carray-list-tests: Likewise.
53996         * modules/crc-tests: Likewise.
53997         * modules/des-tests: Likewise.
53998         * modules/gc-arcfour-tests: Likewise.
53999         * modules/gc-arctwo-tests: Likewise.
54000         * modules/gc-des-tests: Likewise.
54001         * modules/gc-hmac-md5-tests: Likewise.
54002         * modules/gc-hmac-sha1-tests: Likewise.
54003         * modules/gc-md2-tests: Likewise.
54004         * modules/gc-md4-tests: Likewise.
54005         * modules/gc-md5-tests: Likewise.
54006         * modules/gc-pbkdf2-sha1-tests: Likewise.
54007         * modules/gc-rijndael-tests: Likewise.
54008         * modules/gc-sha1-tests: Likewise.
54009         * modules/gc-tests: Likewise.
54010         * modules/getaddrinfo-tests: Likewise.
54011         * modules/hmac-md5-tests: Likewise.
54012         * modules/hmac-sha1-tests: Likewise.
54013         * modules/linked-list-tests: Likewise.
54014         * modules/linkedhash-list-tests: Likewise.
54015         * modules/lock-tests: Likewise.
54016         * modules/md2-tests: Likewise.
54017         * modules/md4-tests: Likewise.
54018         * modules/md5-tests: Likewise.
54019         * modules/rbtree-list-tests: Likewise.
54020         * modules/rbtree-oset-tests: Likewise.
54021         * modules/rbtreehash-list-tests: Likewise.
54022         * modules/read-file-tests: Likewise.
54023         * modules/rijndael-tests: Likewise.
54024         * modules/stdint-tests: Likewise.
54025         * modules/tls-tests: Likewise.
54026
54027 2007-02-24  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54030         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54031         function; instead check whether isnan with a double argument links.
54032         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54033         function; instead check whether isnan with a 'long double' argument
54034         links.
54035         Reported by Eric Blake <ebb9@byu.net>.
54036
54037 2007-02-24  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54040         defined.
54041         * lib/isnanl.c: Remove all code. Just include isnan.c.
54042         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54043
54044 2007-02-25  Jim Meyering  <jim@meyering.net>
54045
54046         Avoid conflicting types for 'unsetenv' on FreeBSD.
54047         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54048         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54049         in stdlib.h.
54050
54051 2007-02-24  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/isnanl-nolibm-tests: New file.
54054         * tests/test-isnanl.c: New file.
54055
54056         * modules/isnanl-nolibm: New file.
54057         * lib/isnanl.h: New file.
54058         * lib/isnanl.c: New file.
54059         * m4/isnanl.m4: New file.
54060
54061 2007-02-24  Bruno Haible  <bruno@clisp.org>
54062
54063         * modules/isnan-nolibm-tests: New file.
54064         * tests/test-isnan.c: New file.
54065
54066         * modules/isnan-nolibm: New file.
54067         * lib/isnan.h: New file.
54068         * lib/isnan.c: New file.
54069         * m4/isnan.m4: New file.
54070
54071 2007-02-24  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54074         assume that an exponent fits in 20 bits.
54075
54076 2007-02-24  Jim Meyering  <jim@meyering.net>
54077
54078         * m4/regex.m4: Update the description of the configure-time option,
54079         --without-included-regex, to state accurately what the defaults are,
54080         and perhaps to give people an idea why using this option is risky.
54081
54082 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54085         loops on small arguments.  This attempts to avoid the problem
54086         Bruno Haible reported for AIX 4.3.2 in
54087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54088
54089 2007-02-23  Bruno Haible  <bruno@clisp.org>
54090
54091         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54092         Needed for help2man.
54093
54094 2007-02-23  Karl Berry  <karl@gnu.org>
54095
54096         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54097         exists, foo.h should be cvs-ignored, not committed.
54098
54099 2007-02-23  Eric Blake  <ebb9@byu.net>
54100
54101         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54102         * lib/stat-time.h (includes): Likewise.
54103         * lib/utimecmp.c (includes): Likewise.
54104         * lib/utimens.h (includes): Likewise.
54105         * lib/getdate.y (includes): Also include "timespec.h" for use
54106         internal to the module.
54107         * modules/utimens (Depends-on): Revert yesterday's patch.
54108         * modules/nanosleep (Depends-on): Add missing dependency.
54109
54110 2007-02-22  Bruno Haible  <bruno@clisp.org>
54111
54112         * lib/glob.c: Don't include getlogin_r.h.
54113
54114 2007-02-22  Jim Meyering  <jim@meyering.net>
54115
54116         * modules/utimens (Depends-on): Add timespec, required for
54117         utimens.h's inclusion of timespec.h.
54118
54119 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54120
54121         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54122         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54123         Schwab in
54124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54125         I'll try to think of a better way to fix the Solaris problem.
54126
54127         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54128         like glibc; on Solaris 10, it fails with errno == EINVAL.
54129         POSIX says the behavior is unspecified if the first argument is NULL,
54130         so play it safe and never pass NULL to the system getcwd.
54131
54132 2007-02-21  Jim Meyering  <jim@meyering.net>
54133
54134         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54135         of gettimeofday.  It would conflict with the one now always
54136         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54137         an IRIX 6.5 build failure.
54138
54139 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54140
54141         Minor fixups to port to Solaris 10 with Sun C 5.8.
54142         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54143         * modules/getcwd (Depends-on): Add dirfd.
54144         * lib/putenv.c (putenv): #undef it.
54145         (rpl_putenv): New decl.
54146         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54147
54148 2007-02-20  Bruno Haible  <bruno@clisp.org>
54149
54150         * modules/stdio-tests: New file.
54151         * tests/test-stdio.c: New file.
54152
54153         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54154         (Depends-on): Add stdio.
54155         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54156         (Include): Use <stdio.h> instead of vsnprintf.h.
54157         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54158         HAVE_DECL_VSNPRINTF.
54159         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54160
54161         * modules/snprintf (Files): Remove lib/snprintf.h.
54162         (Depends-on): Add stdio.
54163         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54164         (Include): Use <stdio.h> instead of snprintf.h.
54165         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54166         HAVE_DECL_SNPRINTF.
54167         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54168         * lib/getaddrinfo.c: Likewise.
54169
54170         * modules/stdio: New file.
54171         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54172         * lib/snprintf.h: Remove file.
54173         * lib/vsnprintf.h: Remove file.
54174         * lib/.cppi-disable: Remove snprintf.h.
54175         * m4/stdio_h.m4: New file.
54176         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54177
54178 2007-02-20  Jim Meyering  <jim@meyering.net>
54179
54180         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54181         used by e.g., mingw.  From Bruno Haible.
54182
54183 2007-02-19  Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54186         warnings.
54187         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54188
54189 2007-02-19  Bruno Haible  <bruno@clisp.org>
54190
54191         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54192         from mingw users.
54193
54194 2007-02-19  Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54197         warnings.
54198         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54199
54200 2007-02-19  Jim Meyering  <jim@meyering.net>
54201
54202         Don't use FD after a successful "fdopendir (fd)".
54203         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54204         Reset it by calling dirfd on the just-obtained DIR*.
54205
54206         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54207         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54208
54209 2007-02-18  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/readlink.c: Include <unistd.h>.
54212         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54213         HAVE_READLINK.
54214         * modules/readlink (Depends-on): Add unistd.
54215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54216         (Include): Add <unistd.h>.
54217
54218         * lib/getlogin_r.h: Remove file.
54219         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54220         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54221         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54222         HAVE_DECL_GETLOGIN_R.
54223         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54225         (Include): Use <unistd.h> instead of getlogin_r.h.
54226
54227         * lib/getcwd.h: Remove file.
54228         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54229         * lib/xgetcwd.c: Likewise.
54230         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54231         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54232         * modules/getcwd (Files): Remove lib/getcwd.h.
54233         (Depends-on): Add unistd.
54234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54235         (Include): Use <unistd.h> instad of getcwd.h.
54236
54237         * lib/ftruncate.c: Include <unistd.h> first.
54238         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54239         Set HAVE_FTRUNCATE.
54240         * modules/ftruncate (Depends-on): Add unistd.
54241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54242
54243         * lib/fchdir.c: Include <unistd.h> first.
54244         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54246         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54247         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54248         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54249
54250         * lib/dup2.c: Include <unistd.h> first.
54251         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54252         HAVE_DUP2.
54253         * modules/dup2 (Depends-on): Add unistd.
54254         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54255
54256         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54257         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54258         REPLACE_CHOWN. Don't define chown as a macro here.
54259         * modules/chown (Depends-on): Add unistd.
54260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54261
54262         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54263         Add definition for GL_LINK_WARNING.
54264         (chown, dup2): New declarations.
54265         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54266         link warning.
54267         (ftruncate): New declaration.
54268         (getcwd): New declaration, taken from old getcwd.h.
54269         (getlogin_r): New declaration, taken from old getlogin_r.h.
54270         (readlink): New declaration.
54271         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54272         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54273         (gl_PREREQ_UNISTD): Remove macro.
54274         (gl_UNISTD_MODULE_INDICATOR): New macro.
54275         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54276         many new variables. Don't set UNISTD_H.
54277         * modules/unistd (Description): Change.
54278         (Depends-on): Add link-warning.
54279         (configure.ac): Update.
54280         (Makefile.am): Create unistd.h always. Substitute many new variables
54281         into it.
54282
54283 2007-02-18  Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54286         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54287         HAVE_GETSUBOPT.
54288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54289         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54290         * lib/getsubopt.h: Remove file.
54291         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54292         (Depends-on): Add stdlib.
54293         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54294         (Includes): Use <stdlib.h> instead of getsubopt.h.
54295         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54296         Set HAVE_GETSUBOPT.
54297         * lib/getsubopt.c: Don't include getsubopt.h.
54298
54299 2007-02-18  Bruno Haible  <bruno@clisp.org>
54300
54301         * modules/fchdir (Depends-on): Add dup2.
54302
54303 2007-02-18  Bruno Haible  <bruno@clisp.org>
54304
54305         * lib/stdlib_.h: Handle glibc's special invocation convention
54306         specially.
54307
54308 2007-02-18  Bruno Haible  <bruno@clisp.org>
54309
54310         * modules/stdlib-tests: New file.
54311         * tests/test-stdlib.c: New file.
54312
54313         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54314         (Depends-on): Add stdlib.
54315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54316         (Includes): Use <stdlib.h> instead of mkstemp.h.
54317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54318         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54319         * lib/mkstemp.c: Don't include mkstemp.h.
54320         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54321         * lib/stdlib--.h: Don't include mkstemp.h.
54322
54323         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54324         (Depends-on): Add stdlib.
54325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54326         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54327         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54328         HAVE_MKDTEMP.
54329         * lib/mkdtemp.c: Don't include mkdtemp.h.
54330         * lib/clean-temp.c: Don't include mkdtemp.h.
54331
54332         * modules/exit (Files): Remove lib/exit.h.
54333         (Depends-on): Add stdlib.
54334         (Makefile.am): Remove lib_SOURCES.
54335         (Include): Use <stdlib.h> instead of exit.h.
54336         * lib/argmatch.c: Don't include exit.h.
54337         * lib/execute.c: Likewise.
54338         * lib/pagealign_alloc.c: Likewise.
54339         * lib/pipe.c: Likewise.
54340         * lib/wait-process.c: Likewise.
54341         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54342         * lib/exitfail.c: Likewise.
54343         * lib/savewd.c: Likewise.
54344         * lib/xsetenv.c: Likewise.
54345
54346         * modules/stdlib: New file.
54347         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54348         and extra comments about mkstemp().
54349         * lib/exit.h: Remove file.
54350         * lib/mkdtemp.h: Remove file.
54351         * lib/mkstemp.h: Remove file.
54352         * m4/stdlib_h.m4: New file.
54353         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54354
54355 2007-02-18  Bruno Haible  <bruno@clisp.org>
54356
54357         * modules/math-tests: New file.
54358         * tests/test-math.c: New file.
54359
54360         * modules/math: New file.
54361         * modules/mathl (Files): Remove lib/mathl.h.
54362         (Depends-on): Add math.
54363         (Makefile.am): Don't mention mathl.h.
54364         (Include): Use <math.h> instead of mathl.h.
54365         * lib/math_.h: New file.
54366         * lib/mathl.h: Remove file.
54367         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54368         mathl.h.
54369         * lib/asinl.c: Likewise.
54370         * lib/atanl.c: Likewise.
54371         * lib/ceill.c: Likewise.
54372         * lib/cosl.c: Likewise.
54373         * lib/expl.c: Likewise.
54374         * lib/floorl.c: Likewise.
54375         * lib/frexpl.c: Likewise.
54376         * lib/ldexpl.c: Likewise.
54377         * lib/logl.c: Likewise.
54378         * lib/sincosl.c: Likewise.
54379         * lib/sinl.c: Likewise.
54380         * lib/sqrtl.c: Likewise.
54381         * lib/tanl.c: Likewise.
54382         * lib/trigl.c: Likewise.
54383         * m4/math_h.m4: New file.
54384         * MODULES.html.sh (Mathematics): Add math.
54385
54386 2007-02-17  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/wctype-tests: New file.
54389         * tests/test-wctype.c: New file.
54390
54391         * modules/wchar-tests: New file.
54392         * tests/test-wchar.c: New file.
54393
54394         * modules/unistd-tests: New file.
54395         * tests/test-unistd.c: New file.
54396
54397         * modules/time-tests: New file.
54398         * tests/test-time.c: New file.
54399
54400         * modules/sysexits-tests: New file.
54401         * tests/test-sysexits.c: New file.
54402
54403         * modules/sys_time-tests: New file.
54404         * tests/test-sys_time.c: New file.
54405
54406         * modules/sys_stat-tests: New file.
54407         * tests/test-sys_stat.c: New file.
54408
54409         * modules/sys_socket-tests: New file.
54410         * tests/test-sys_socket.c: New file.
54411
54412         * modules/sys_select-tests: New file.
54413         * tests/test-sys_select.c: New file.
54414
54415         * modules/string-tests: New file.
54416         * tests/test-string.c: New file.
54417
54418         * modules/stdbool-tests: New file.
54419         * tests/test-stdbool.c: New file.
54420
54421         * modules/netinet_in-tests: New file.
54422         * tests/test-netinet_in.c: New file.
54423
54424         * modules/inttypes-tests: New file.
54425         * tests/test-inttypes.c: New file.
54426
54427         * modules/fcntl-tests: New file.
54428         * tests/test-fcntl.c: New file.
54429
54430         * modules/byteswap-tests: New file.
54431         * tests/test-byteswap.c: New file.
54432
54433         * modules/arpa_inet-tests: New file.
54434         * tests/test-arpa_inet.c: New file.
54435
54436 2007-02-17  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54439         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54440         if the corresponding module is not enabled. Emit link warnings if
54441         the function is used nevertheless.
54442         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54443         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54444         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54445         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54446         * modules/inttypes (Depends-on): Add link-warning.
54447         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54448         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54449         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54450         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54451         * modules/imaxdiv (configure.ac): Likewise.
54452         * modules/strtoimax (configure.ac): Likewise.
54453         * modules/strtoumax (configure.ac): Likewise.
54454
54455 2007-02-17  Bruno Haible  <bruno@clisp.org>
54456
54457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54458         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54459         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54460         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54461
54462 2007-02-17  Bruno Haible  <bruno@clisp.org>
54463
54464         * modules/link-warning: New file.
54465         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54466         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54467         * modules/string (Depends-on): Add link-warning.
54468         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54469         string.h.
54470         * MODULES.html.sh (Support for building libraries and executables): Add
54471         link-warning.
54472
54473 2007-02-17  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54476         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54477         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54478         long lines.
54479
54480 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54481             Bruno Haible  <bruno@clisp.org>
54482
54483         * modules/tmpfile: New file.
54484         * lib/tmpfile.c: New file.
54485         * m4/tmpfile.m4: New file.
54486         * MODULES.html.sh (func_all_modules): New section "Input/output".
54487
54488 2007-02-15  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54491         (supports_delete_on_close): New function.
54492         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54493
54494 2007-02-14  Bruno Haible  <bruno@clisp.org>
54495
54496         * modules/mbspcasecmp-tests: New file.
54497         * tests/test-mbspcasecmp.sh: New file.
54498         * tests/test-mbspcasecmp.c: New file.
54499
54500         New module mbspcasecmp.
54501         * modules/mbspcasecmp: New file.
54502         * lib/mbspcasecmp.c: New file.
54503         * lib/string_.h (strncasecmp): Change warning message.
54504         (mbspcasecmp): New declaration.
54505         * m4/mbspcasecmp.m4: New file.
54506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54507         GNULIB_MBSPCASECMP.
54508         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54509         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54510
54511 2007-02-14  Bruno Haible  <bruno@clisp.org>
54512
54513         * modules/mbsncasecmp-tests: New file.
54514         * tests/test-mbsncasecmp.sh: New file.
54515         * tests/test-mbsncasecmp.c: New file.
54516
54517         New module mbsncasecmp.
54518         * modules/mbsncasecmp: New file.
54519         * lib/mbsncasecmp.c: New file.
54520         * lib/string_.h (mbsncasecmp): New declaration.
54521         * m4/mbsncasecmp.m4: New file.
54522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54523         GNULIB_MBSNCASECMP.
54524         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54525         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54526
54527 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54530         Verify that it doesn't overlap with our flags.
54531         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54532         do not have the desired effect in multibyte locales; instead, use
54533         mbscasecmp.
54534         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54535         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54536         we don't require GNU fnmatch ourselves (if our users require it, they
54537         should do so explicitly).
54538
54539         Fix regex code so it doesn't rely on strcasecmp.
54540         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54541         Otherwise, include gnulib's langinfo.h.
54542         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54543         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54544         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54545         * modules/regex (FILES): Remove m4/codeset.m4.
54546         (Depends-on): Add localcharset.  Remove strcase.
54547
54548 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54549
54550         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54551         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54552
54553 2007-02-13  Bruno Haible  <bruno@clisp.org>
54554
54555         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54557
54558 2007-02-12  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54561         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54562         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54563         time warning rather than a link error.
54564
54565 2007-02-12  Bruno Haible  <bruno@clisp.org>
54566
54567         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54568         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54570
54571 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54572
54573         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54574         args, not 2.
54575
54576 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         New module 'time', so that apps can include <time.h> as per
54579         POSIX and GNU instead of separate include files like time_r.h
54580         and timegm.h.  This implementation tries out a simpler approach
54581         for replacing decls in standard include files (as compared to
54582         the string module), somewhat as an experiment.
54583
54584         * config/srclist.txt: Comment out mktime.c for now.
54585         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54586         since it doesn't apply any more.  Use generic wording instead.
54587         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54588         'time'.
54589         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54590         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54591         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54592         Don't include <sys/types.h>; no longer needed since we assume C89.
54593         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54594         * lib/strftime.c: Likewise.
54595         * lib/time_r.c: Likewise.
54596         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54597         * lib/nanosleep.c: Include <time.h> first, to check interface.
54598         * lib/strptime.c: Likewise.
54599         * lib/time_r.c: Likewise.
54600         * lib/timegm.c: Likewise.
54601         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54602         needed.
54603         * lib/timegm.c: Don't include timegm.h; no longer needed.
54604         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54605         time.h now handles any problems in that area.
54606         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54607         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54608         that time.h defines struct timespec.
54609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54610         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54611         handles that.
54612         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54613         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54614         needed.  Set REPLACE_LOCALTIME.
54615         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54616         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54617         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54618         nanosleep; time_h.m4 now does that.  Don't require
54619         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54620         module handles this now.
54621         * modules/getdate (Depends-on): Remove timespec.  Add time.
54622         * modules/nanosleep (Depends-on): Likewise.
54623         * modules/stat-time (Depends-on): Likewise.
54624         * modules/nanosleep (Include): Include time.h, not timespec.h.
54625         * modules/strptime (Files): Remove lib/strptime.h.
54626         (Depends-on): Add extensions, time.
54627         (Include): Include time.h, not strptime.h.
54628         * modules/time_r (Files): Remove lib/time_r.h.
54629         (Depends-on): Add time.
54630         (Include): Include time.h, not time_r.h.
54631         * modules/timegm: Likewise.
54632         * modules/timespec (Description): Now does timespec-related decls
54633         of our own, instead of struct timespec itself.
54634         (Depends-on): Add time; remove extensions.
54635         (Maintainer): Add self.
54636         * modules/utimecmp (Depends-on): Add time; remove timespec.
54637         * modules/utimens (Depends-on): Likewise.
54638         * modules/xnanosleep (Depends-on): Likewise.
54639
54640 2007-02-11  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/c-strstr.c: Include allocsa.h.
54643         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54644         * lib/c-strcasestr.c: Include allocsa.h.
54645         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54646         * lib/strcasestr.c: Include allocsa.h.
54647         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54648         * lib/mbsstr.c: Include allocsa.h.
54649         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54650         allocsa/freesa instead of malloc/free.
54651         * lib/mbscasestr.c: Include allocsa.h.
54652         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54653         allocsa/freesa instead of malloc/free.
54654         * modules/c-strstr (Depends-on): Add allocsa.
54655         * modules/c-strcasestr (Depends-on): Likewise.
54656         * modules/strcasestr (Depends-on): Likewise.
54657         * modules/mbsstr (Depends-on): Likewise.
54658         * modules/mbscasestr (Depends-on): Likewise.
54659
54660 2007-02-11  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54663
54664         * modules/mbsspn-tests: New file.
54665         * tests/test-mbsspn.sh: New file.
54666         * tests/test-mbsspn.c: New file.
54667
54668 2007-02-11  Bruno Haible  <bruno@clisp.org>
54669
54670         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54671
54672         * modules/mbspbrk-tests: New file.
54673         * tests/test-mbspbrk.sh: New file.
54674         * tests/test-mbspbrk.c: New file.
54675
54676 2007-02-11  Bruno Haible  <bruno@clisp.org>
54677
54678         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54679         unneeded cast.
54680
54681         * modules/mbscspn-tests: New file.
54682         * tests/test-mbscspn.sh: New file.
54683         * tests/test-mbscspn.c: New file.
54684
54685 2007-02-11  Bruno Haible  <bruno@clisp.org>
54686
54687         * modules/mbscasecmp-tests: New file.
54688         * tests/test-mbscasecmp.sh: New file.
54689         * tests/test-mbscasecmp.c: New file.
54690
54691 2007-02-11  Bruno Haible  <bruno@clisp.org>
54692
54693         Ensure O(n) worst-case complexity of mbscasestr.
54694         * lib/mbscasestr.c: Include stdbool.h.
54695         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54696         functions.
54697         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54698         the bookkeeping indicates that it's worth it.
54699         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54700
54701         * modules/mbscasestr-tests: New file.
54702         * tests/test-mbscasestr1.c: New file.
54703         * tests/test-mbscasestr2.sh: New file.
54704         * tests/test-mbscasestr2.c: New file.
54705         * tests/test-mbscasestr3.sh: New file.
54706         * tests/test-mbscasestr3.c: New file.
54707         * tests/test-mbscasestr4.sh: New file.
54708         * tests/test-mbscasestr4.c: New file.
54709         * m4/locale-tr.m4: New file.
54710
54711 2007-02-11  Bruno Haible  <bruno@clisp.org>
54712
54713         Ensure O(n) worst-case complexity of mbsstr.
54714         * lib/mbsstr.c: Include stdbool.h.
54715         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54716         functions.
54717         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54718         bookkeeping indicates that it's worth it.
54719         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54720
54721         * modules/mbsstr-tests: New file.
54722         * tests/test-mbsstr1.c: New file.
54723         * tests/test-mbsstr2.sh: New file.
54724         * tests/test-mbsstr2.c: New file.
54725         * tests/test-mbsstr3.sh: New file.
54726         * tests/test-mbsstr3.c: New file.
54727         * m4/locale-fr.m4: New file.
54728
54729 2007-02-11  Bruno Haible  <bruno@clisp.org>
54730
54731         * lib/mbsrchr.c (mbsrchr): Fix bug.
54732
54733         * modules/mbsrchr-tests: New file.
54734         * tests/test-mbsrchr.sh: New file.
54735         * tests/test-mbsrchr.c: New file.
54736
54737 2007-02-11  Bruno Haible  <bruno@clisp.org>
54738
54739         * lib/mbschr.c (mbschr): Fix bug.
54740
54741         * modules/mbschr-tests: New file.
54742         * tests/test-mbschr.sh: New file.
54743         * tests/test-mbschr.c: New file.
54744         * m4/locale-zh.m4: New file.
54745
54746 2007-02-11  Bruno Haible  <bruno@clisp.org>
54747
54748         Support for copying multibyte string iterators.
54749         * lib/mbiter.h: Include <string.h>.
54750         (mbiter_multi_copy): New function.
54751         (mbi_copy): New macro.
54752         * lib/mbuiter.h: Include <string.h>.
54753         (mbuiter_multi_copy): New function.
54754         (mbui_copy): New macro.
54755
54756 2007-02-11  Bruno Haible  <bruno@clisp.org>
54757
54758         New module mbslen.
54759         * modules/mbslen: New file.
54760         * lib/mbslen.c: New file.
54761         * lib/string_.h (mbslen): New declaration.
54762         * m4/mbslen.m4: New file.
54763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54764         GNULIB_MBSLEN.
54765         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54766         * MODULES.html.sh (Internationalization functions): Add mbslen.
54767
54768 2007-02-11  Bruno Haible  <bruno@clisp.org>
54769
54770         Ensure O(n) worst-case complexity of strcasestr substitute.
54771         * lib/strcasestr.c: Include stdbool.h.
54772         (knuth_morris_pratt): New function.
54773         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54774         bookkeeping indicates that it's worth it.
54775         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54776
54777         * modules/strcasestr-tests: New file.
54778         * tests/test-strcasestr.c: New file.
54779
54780 2007-02-11  Bruno Haible  <bruno@clisp.org>
54781
54782         Ensure O(n) worst-case complexity of c_strcasestr.
54783         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54784         (knuth_morris_pratt): New function.
54785         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54786         the bookkeeping indicates that it's worth it.
54787         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54788
54789         * modules/c-strcasestr-tests: New file.
54790         * tests/test-c-strcasestr.c: New file.
54791
54792 2007-02-11  Bruno Haible  <bruno@clisp.org>
54793
54794         Ensure O(n) worst-case complexity of c_strstr.
54795         * lib/c-strstr.c: Include stdbool.h, string.h.
54796         (knuth_morris_pratt): New function.
54797         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54798         bookkeeping indicates that it's worth it.
54799         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54800
54801         * lib/c-strstr.c: Complete rewrite for maintainability.
54802
54803         * modules/c-strstr-tests: New file.
54804         * tests/test-c-strstr.c: New file.
54805
54806 2007-02-11  Bruno Haible  <bruno@clisp.org>
54807
54808         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54809         5.2.1 and earlier, whereby \055 was treated just like the range
54810         delimiter '-'.
54811         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54812
54813 2007-02-08  Bruno Haible  <bruno@clisp.org>
54814
54815         * modules/regex (Depends-on): Add stdbool.
54816         Reported by Dalibor Topic <robilad@kaffe.org>.
54817
54818 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54821         Prefer returning from main to exiting from it.
54822         Remove unnecessary parens after sizeof.
54823
54824 2007-02-05  Bruno Haible  <bruno@clisp.org>
54825
54826         New module mbssep.
54827         * modules/mbssep: New file.
54828         * lib/mbssep.c: New file.
54829         * lib/string_.h (strsep): Add a conditional link warning.
54830         (mbssep): New declaration.
54831         * m4/mbssep.m4: New file.
54832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54833         GNULIB_MBSSEP.
54834         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54835         * MODULES.html.sh (Internationalization functions): Add mbssep.
54836
54837 2007-02-05  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54840         Optimize search in case of 1 delimiter.
54841
54842 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54843
54844         * lib/acl.h: Include sys/types.h before sys/acl.h.
54845
54846 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54847
54848         Merge upstream fix for glibc bugzilla #3957:
54849
54850         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54851
54852         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54853         bit for RE_HAT_LISTS_NOT_NEWLINE.
54854         (build_charclass_op): Remove bogus comment.
54855
54856 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54857
54858         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54859
54860 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54861
54862         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54863         * lib/memmem.c [!defined _LIBC]: Include config.h.
54864
54865 2007-02-04  Bruno Haible  <bruno@clisp.org>
54866
54867         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54868         warning message.
54869
54870 2007-02-04  Bruno Haible  <bruno@clisp.org>
54871
54872         New module mbstok_r.
54873         * modules/mbstok_r: New file.
54874         * lib/mbstok_r.c: New file.
54875         * lib/string_.h (strtok_r): Change argument names to match the
54876         comments. Add a conditional link warning.
54877         (mbstok_r): New declaration.
54878         * m4/mbstok_r.m4: New file.
54879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54880         GNULIB_MBSTOK_R.
54881         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54882         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54883
54884 2007-02-04  Bruno Haible  <bruno@clisp.org>
54885
54886         New module mbsspn.
54887         * modules/mbsspn: New file.
54888         * lib/mbsspn.c: New file.
54889         * lib/string_.h (strspn): Add a conditional link warning.
54890         (mbsspn): New declaration.
54891         * m4/mbsspn.m4: New file.
54892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54893         GNULIB_MBSSPN.
54894         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54895         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54896
54897 2007-02-04  Bruno Haible  <bruno@clisp.org>
54898
54899         New module mbspbrk.
54900         * modules/mbspbrk: New file.
54901         * lib/mbspbrk.c: New file.
54902         * lib/string_.h (strpbrk): Add a conditional link warning.
54903         (mbspbrk): New declaration.
54904         * m4/mbspbrk.m4: New file.
54905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54906         GNULIB_MBSPBRK.
54907         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54908         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54909
54910 2007-02-04  Bruno Haible  <bruno@clisp.org>
54911
54912         New module mbscspn.
54913         * modules/mbscspn: New file.
54914         * lib/mbscspn.c: New file.
54915         * lib/string_.h (strcspn): Add a conditional link warning.
54916         (mbscspn): New declaration.
54917         * m4/mbscspn.m4: New file.
54918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54919         GNULIB_MBSCSPN.
54920         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54921         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54922
54923 2007-02-04  Bruno Haible  <bruno@clisp.org>
54924
54925         New module mbscasestr, reduced goal of strcasestr.
54926         * modules/mbscasestr: New file.
54927         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54928         (mbscasestr): Renamed from strcasestr.
54929         * lib/strcasestr.c: Don't include mbuiter.h.
54930         (strcasestr): Remove support for multibyte locales.
54931         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54932         Change the conditional link warning.
54933         (mbscasestr): New declaration.
54934         * m4/mbscasestr.m4: New file.
54935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54936         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54937         REPLACE_STRCASESTR.
54938         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54940         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54941         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54942         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54943         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54944         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54945         (Depends-on): Remove mbuiter.
54946         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54947
54948 2007-02-04  Bruno Haible  <bruno@clisp.org>
54949
54950         Simplify handling of strncasecmp.
54951         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54952         the conditional link warning.
54953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54954         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54955         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54956         * modules/strcase (configure.ac): Don't invoke
54957         gl_STRING_MODULE_INDICATOR.
54958         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54959
54960 2007-02-04  Bruno Haible  <bruno@clisp.org>
54961
54962         New module mbscasecmp, reduced goal of strcasecmp.
54963         * modules/mbscasecmp: New file.
54964         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54965         (mbscasecmp): Renamed from strcasecmp.
54966         * lib/strcasecmp.c: Don't include mbuiter.h.
54967         (strcasecmp): Remove support for multibyte locales.
54968         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54969         Change the conditional link warning.
54970         (mbscasecmp): New declaration.
54971         * m4/mbscasecmp.m4: New file.
54972         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54973         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54974         REPLACE_STRCASECMP.
54975         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54977         GNULIB_MBSCASECMP.
54978         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54979         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54980         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54981         (Depends-on): Remove mbuiter.
54982         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54983
54984 2007-02-04  Bruno Haible  <bruno@clisp.org>
54985
54986         New module mbsstr. Remove module strstr.
54987         * modules/mbsstr: New file.
54988         * modules/strstr: Remove file.
54989         * lib/mbsstr.c: Renamed from lib/strstr.c.
54990         (mbsstr): Renamed from strstr.
54991         * lib/string_.h (strstr): Remove declaration. Change the conditional
54992         link warning.
54993         (mbsstr): New declaration.
54994         * m4/mbsstr.m4: New file.
54995         * m4/strstr.m4: Remove file.
54996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54997         REPLACE_STRSTR.
54998         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54999         Don't initialize GNULIB_STRSTR.
55000         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55001         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55002         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55003         (Support for systems lacking ANSI C 89): Remove strstr.
55004
55005 2007-02-04  Bruno Haible  <bruno@clisp.org>
55006
55007         New module mbsrchr.
55008         * modules/mbsrchr: New file.
55009         * lib/mbsrchr.c: New file.
55010         * lib/string_.h (strrchr): Add a conditional link warning.
55011         (mbsrchr): New declaration.
55012         * m4/mbsrchr.m4: New file.
55013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55014         GNULIB_MBSRCHR.
55015         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55016         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55017
55018 2007-02-04  Bruno Haible  <bruno@clisp.org>
55019
55020         New module mbschr.
55021         * modules/mbschr: New file.
55022         * lib/mbschr.c: New file.
55023         * lib/string_.h (strchr): Add a conditional link warning.
55024         (mbschr): New declaration.
55025         * m4/mbschr.m4: New file.
55026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55027         GNULIB_MBSCHR.
55028         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55029         * MODULES.html.sh (Internationalization functions): Add mbschr.
55030
55031 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55034
55035         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55036
55037 2007-02-04  Bruno Haible  <bruno@clisp.org>
55038
55039         New module description section 'configure.ac-early'.
55040         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55041         (func_get_autoconf_early_snippet): New function.
55042         (func_import, func_create_testdir): Use it. Remove special cases for
55043         modules 'extensions' and 'lock'.
55044         * modules/extensions (configure.ac-early): Require
55045         gl_USE_SYSTEM_EXTENSIONS.
55046         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55047
55048 2007-02-04  Bruno Haible  <bruno@clisp.org>
55049
55050         Make use of gcj-4.3's -fsource and -ftarget option.
55051         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55052         and if so try the options -fsource and -ftarget.
55053         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55054         source_version, ftarget_option, target_version arguments.
55055         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55056         (is_envjavac_oldgcj_14_14_usable): Renamed from
55057         is_envjavac_gcj_14_14_usable.
55058         (is_envjavac_oldgcj_14_13_usable): Renamed from
55059         is_envjavac_gcj_14_13_usable.
55060         (is_gcj_present): Update.
55061         (is_gcj_43, is_gcj43_usable): New functions.
55062         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55063         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55064         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55065         try the options -fsource and -ftarget.
55066
55067 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55068
55069         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55070         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55071         larger value.
55072
55073 2007-02-03  Jim Meyering  <jim@meyering.net>
55074
55075         Give tools a better chance to allocate space for very large buffers.
55076         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55077
55078         Make pwd and readlink work also when run with an unreadable parent dir
55079         on systems with openat support.
55080         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55081         provided getcwd function, even when we have openat support.
55082         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55083
55084 2007-02-02  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55087         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55088         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55089         portability problems if one of these functions is only used on specific
55090         platforms.
55091         Reported by Paul Eggert.
55092
55093 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55096         is causing more trouble than it's curing.
55097         * lib/regex_internal.h (__mempcpy): Remove.
55098         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55099         (and make the code a tad smaller to boot).
55100         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55101
55102 2007-02-02  Jim Meyering  <jim@meyering.net>
55103
55104         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55105         section, not in the Makefile.am: one.
55106
55107 2007-02-02  Eric Blake  <ebb9@byu.net>
55108
55109         * lib/strchrnul.c: Always include config.h first.
55110
55111         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55112         gnulib strstr is not necessary here.
55113
55114 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55115
55116         * m4/socklen.m4: Fix typo.
55117
55118 2007-02-02  Eric Blake  <ebb9@byu.net>
55119
55120         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55121         * modules/netinet_in (Makefile.am): Likewise.
55122
55123 2007-02-01  Bruno Haible  <bruno@clisp.org>
55124
55125         * lib/string_.h (GL_LINK_WARNING): New macro.
55126         (strcasecmp, strstr, strcasestr): If provided by the system,
55127         conditionally define as a macro that leads to a warning instead of to
55128         an error.
55129         (strncasecmp): Conditionally define as a macro that leads to a warning.
55130
55131 2007-02-01  Karl Berry  <karl@gnu.org>
55132
55133         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55134
55135 2007-02-01  Bruno Haible  <bruno@clisp.org>
55136
55137         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55138         renamings.
55139
55140 2007-02-01  Eric Blake  <ebb9@byu.net>
55141
55142         * modules/regex (Depends-on): Revert dependence on mempcpy.
55143         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55144         module's definition of mempcpy.
55145         Reported by Paul Eggert.
55146
55147 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55150         the symbol XYZ before redefining it.  This fixes a problem with
55151         programs that don't use XYZ, when compiled on systems that define
55152         XYZ to something else.
55153
55154 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55155
55156         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55157         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55158         writeable to group or other and (2) is intended to have a special
55159         mode bit that is set or cleared.  In such a case, the directory
55160         should be neither group- nor other-writeable until the special
55161         mode bits are right.
55162
55163 2007-01-31  Eric Blake  <ebb9@byu.net>
55164
55165         * modules/mountlist (Depends-on): Add strstr.
55166
55167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55168         bug.
55169         * modules/string (Makefile.am): Remove redundant replacement.
55170         * modules/regex (Depends-on): Add mempcpy.
55171
55172 2007-01-31  Bruno Haible  <bruno@clisp.org>
55173
55174         New module description field 'Link'.
55175         * gnulib-tool (func_usage): Document --extract-link-directive.
55176         (sed_extract_prog): Recognize 'Link' directive.
55177         (func_get_link_directive): New function.
55178         (func_import): Show summary of link directives.
55179         Handle --extract-link-directive option.
55180         * modules/acl (Link): New section.
55181         * modules/clock-time (Link): New section.
55182         * modules/euidaccess (Link): New section.
55183         * modules/gettext (Link): New section.
55184         * modules/iconv (Link): New section.
55185         * modules/lock (Link): New section.
55186         * modules/nanosleep (Link): New section.
55187         * modules/readline (Link): New section.
55188
55189 2007-01-27  Bruno Haible  <bruno@clisp.org>
55190
55191         Enforce the use of gnulib modules for unportable <string.h> functions.
55192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55193         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55194         (gl_HEADER_STRING_H_BODY): Require it.
55195         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55196         the symbol XYZ to one that gives a link error.
55197         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55198         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55199         * modules/mempcpy (configure.ac): Likewise.
55200         * modules/memrchr (configure.ac): Likewise.
55201         * modules/stpcpy (configure.ac): Likewise.
55202         * modules/stpncpy (configure.ac): Likewise.
55203         * modules/strcase (configure.ac): Likewise.
55204         * modules/strcasestr (configure.ac): Likewise.
55205         * modules/strchrnul (configure.ac): Likewise.
55206         * modules/strdup (configure.ac): Likewise.
55207         * modules/strndup (configure.ac): Likewise.
55208         * modules/strnlen (configure.ac): Likewise.
55209         * modules/strpbrk (configure.ac): Likewise.
55210         * modules/strsep (configure.ac): Likewise.
55211         * modules/strstr (configure.ac): Likewise.
55212         * modules/strtok_r (configure.ac): Likewise.
55213
55214 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55215
55216         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55217
55218 2007-01-30  Jim Meyering  <jim@meyering.net>
55219
55220         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55221
55222 2007-01-29  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55225         * lib/execute.c: Likewise.
55226         * lib/pipe.c: Likewise.
55227         * lib/printf-args.h: Likewise.
55228         * lib/printf-args.c: Likewise.
55229         * lib/printf-parse.c: Likewise.
55230         * lib/vasnprintf.c: Likewise.
55231
55232 2007-01-29  Eric Blake  <ebb9@byu.net>
55233
55234         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55235         declaration.
55236
55237 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55238
55239         * lib/strptime.h (strptime): Use 'restrict' for args where
55240         POSIX requires this.
55241         * lib/strptime.c (strptime): Likewise.
55242         Change license notice from LGPL to GPL, since gnulib-tool will
55243         change this as needed.
55244         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55245         defined.
55246         Include "strptime.h" first, to check interface.
55247         Do not #undef _LIBC and _NL_CURRENT.
55248         Do not include <stdlib.h>; no longer needed.
55249         Include "time_r.h" and declare ptime_locale_status
55250         only if _LIBC is not defined.
55251         (__P): Remove unused macro.
55252         (match_string): Bring back glibc version, but use it only if _LIBC
55253         is defined.
55254         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55255         Remove unnecessary assertion and abort() call.
55256         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55257         * m4/strptime.m4: Fix serial number comment.
55258         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55259         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55260         (Depends-on): Add time_r.
55261
55262 2007-01-29  Bruno Haible  <bruno@clisp.org>
55263
55264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55265         strptime.
55266         * modules/strptime (Depends-on): Add stdbool.
55267         * lib/strptime.h: Include <time.h> always. Add comments.
55268
55269 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55270
55271         * modules/strptime: New file.
55272         * lib/strptime.h: New file.
55273         * lib/strptime.c: New file.
55274         * m4/strptime.m4: New file.
55275
55276 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55277
55278         * MODULES.html.sh: New module mpsort.
55279         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55280
55281         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55282         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55283         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55284         All uses changed.
55285         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55286         All uses changed.
55287         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55288         to _Restrict_.
55289         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55290         the parameter matches the prototype.
55291
55292 2007-01-28  Jim Meyering  <jim@meyering.net>
55293
55294         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55295         sys/time.h here, reverting that part of the previous patch:
55296         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55297
55298 2007-01-28  Bruno Haible  <bruno@clisp.org>
55299
55300         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55301         value of $(SYS_TIME_H).
55302         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55303         remove it conditionally, too. [added by Jim Meyering]
55304         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55305         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55306         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55307         GETTIMEOFDAY_REPLACEMENT to 1.
55308
55309 2007-01-28  Bruno Haible  <bruno@clisp.org>
55310
55311         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55312         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55314         Set UNISTD_H instead of UNISTD_H2.
55315         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55316
55317 2007-01-28  Bruno Haible  <bruno@clisp.org>
55318
55319         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55320         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55321
55322 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55323
55324         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55325         (func_create_testdir): Ensure C locale for `grep' and `tr'
55326         character ranges.
55327         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55328         ACLOCAL_AMFLAGS parsing state machine.
55329
55330 2007-01-27  Bruno Haible  <bruno@clisp.org>
55331
55332         * modules/unistr/base: Update.
55333
55334 2007-01-27  Bruno Haible  <bruno@clisp.org>
55335
55336         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55337         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55338         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55339         modules/unistr/u32-mbtouc.
55340         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55341         * lib/unistr.h: Update.
55342         * lib/linebreak.c: Update.
55343         * modules/unistr/u32-mbtouc: Renamed from
55344         modules/unistr/u32-mbtouc-safe.
55345         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55346         * lib/unistr.h: Update.
55347         * lib/unistr/u32-to-u8.c: Update.
55348         * lib/unistr/u32-to-u16.c: Update.
55349
55350 2007-01-27  Bruno Haible  <bruno@clisp.org>
55351
55352         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55353         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55354         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55355         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55356         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55357         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55358         modules/unistr/u16-mbtouc.
55359         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55360         * lib/unistr.h: Update.
55361         * lib/linebreak.c: Update.
55362         * modules/linebreak: Update.
55363         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55364         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55365         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55366         * modules/unistr/u16-mbtouc: Renamed from
55367         modules/unistr/u16-mbtouc-safe.
55368         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55369         * lib/unistr.h: Update.
55370         * lib/unistr/u16-to-u8.c: Update.
55371         * modules/unistr/u16-to-u8: Update.
55372         * lib/unistr/u16-to-u32.c: Update.
55373         * modules/unistr/u16-to-u32: Update.
55374
55375 2007-01-27  Bruno Haible  <bruno@clisp.org>
55376
55377         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55378         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55379         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55380         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55381         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55382         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55383         modules/unistr/u8-mbtouc.
55384         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55385         * lib/unistr.h: Update.
55386         * lib/striconveh.c: Update.
55387         * modules/striconveh: Update.
55388         * lib/linebreak.c: Update.
55389         * modules/linebreak: Update.
55390         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55391         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55392         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55393         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55394         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55395         * lib/unistr.h: Update.
55396         * lib/striconveh.c: Update.
55397         * modules/striconveh: Update.
55398         * lib/unistr/u8-to-u16.c: Update.
55399         * modules/unistr/u8-to-u16: Update.
55400         * lib/unistr/u8-to-u32.c: Update.
55401         * modules/unistr/u8-to-u32: Update.
55402
55403 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55404
55405         Sync from Libtool.
55406         * lib/argz.c: Do not include strings.h nor memory.h, include
55407         string.h unconditionally.  Patch by Simon Josefsson.
55408
55409 2007-01-27  Bruno Haible  <bruno@clisp.org>
55410
55411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55412         from gl_HEADER_STRING_H_BODY.
55413         (gl_HEADER_STRING_H_BODY): Require it.
55414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55415         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55417         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55418         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55419         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55421         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55422         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55423         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55424         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55425         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55426         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55427         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55428         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55429
55430 2007-01-27  Bruno Haible  <bruno@clisp.org>
55431
55432         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55433         check_PROGRAMS into noinst_PROGRAMS.
55434         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55435         check_PROGRAMS in this case.
55436         (func_import): Set for_test to false.
55437         (func_create_testdir): Set for_test to true.
55438
55439 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55440             Bruno Haible  <bruno@clisp.org>
55441
55442         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55443         (Depends-on): Add string.
55444         (Includes): Use <string.h> instead of strcasestr.h.
55445         * modules/string (Makefile.am): Also substitute the value of
55446         REPLACE_STRCASESTR.
55447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55448         assume strcasestr is declared in <string.h> not <strings.h>. Also
55449         set REPLACE_STRCASESTR.
55450         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55451         REPLACE_STRCASESTR.
55452         * lib/strcasestr.h: Remove file.
55453         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55454         * lib/string_.h (strcasestr): New declaration.
55455
55456 2007-01-27  Bruno Haible  <bruno@clisp.org>
55457
55458         * lib/string_.h: Use 'extern'.
55459
55460 2007-01-27  Jim Meyering  <jim@meyering.net>
55461
55462         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55463         of set-but-not-used local, "q".
55464
55465         * lib/mempcpy.c: Include <config.h> before <string.h>.
55466         This fixes a compilation error on HP-UX, due to the system's
55467         "restrict"-using mempcpy prototype.
55468
55469 2007-01-26  Bruno Haible  <bruno@clisp.org>
55470
55471         Small optimization.
55472         * lib/javacomp.c: Include c-strstr.h.
55473          (is_envjavac_gcj): Use c_strstr instead of strstr.
55474         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55475
55476 2007-01-26  Bruno Haible  <bruno@clisp.org>
55477
55478         * MODULES.html.sh (Unicode string functions): Add the new modules.
55479
55480         * modules/uniconv/u32-strconv-to-locale: New file.
55481         * lib/uniconv/u32-strconv-to-locale.c: New file.
55482
55483         * modules/uniconv/u16-strconv-to-locale: New file.
55484         * lib/uniconv/u16-strconv-to-locale.c: New file.
55485
55486         * modules/uniconv/u8-strconv-to-locale: New file.
55487         * lib/uniconv/u8-strconv-to-locale.c: New file.
55488
55489         * modules/uniconv/u32-strconv-from-locale: New file.
55490         * lib/uniconv/u32-strconv-from-locale.c: New file.
55491
55492         * modules/uniconv/u16-strconv-from-locale: New file.
55493         * lib/uniconv/u16-strconv-from-locale.c: New file.
55494
55495         * modules/uniconv/u8-strconv-from-locale: New file.
55496         * lib/uniconv/u8-strconv-from-locale.c: New file.
55497
55498         * modules/uniconv/u32-strconv-to-enc: New file.
55499         * lib/uniconv/u32-strconv-to-enc.c: New file.
55500         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55501         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55502
55503         * modules/uniconv/u16-strconv-to-enc: New file.
55504         * lib/uniconv/u16-strconv-to-enc.c: New file.
55505         * lib/uniconv/u-strconv-to-enc.h: New file.
55506         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55507         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55508
55509         * modules/uniconv/u8-strconv-to-enc: New file.
55510         * lib/uniconv/u8-strconv-to-enc.c: New file.
55511         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55512         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55513
55514         * modules/uniconv/u32-strconv-from-enc: New file.
55515         * lib/uniconv/u32-strconv-from-enc.c: New file.
55516         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55517         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55518
55519         * modules/uniconv/u16-strconv-from-enc: New file.
55520         * lib/uniconv/u16-strconv-from-enc.c: New file.
55521         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55522         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55523
55524         * modules/uniconv/u8-strconv-from-enc: New file.
55525         * lib/uniconv/u8-strconv-from-enc.c: New file.
55526         * lib/uniconv/u-strconv-from-enc.h: New file.
55527         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55528         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55529
55530         * modules/uniconv/u32-conv-from-enc: New file.
55531         * lib/uniconv/u32-conv-from-enc.c: New file.
55532         * modules/uniconv/u32-conv-from-enc-tests: New file.
55533         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55534
55535         * modules/uniconv/u16-conv-from-enc: New file.
55536         * lib/uniconv/u16-conv-from-enc.c: New file.
55537         * lib/uniconv/u-conv-from-enc.h: New file.
55538         * modules/uniconv/u16-conv-from-enc-tests: New file.
55539         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55540
55541         * modules/uniconv/u8-conv-from-enc: New file.
55542         * lib/uniconv/u8-conv-from-enc.c: New file.
55543         * modules/uniconv/u8-conv-from-enc-tests: New file.
55544         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55545
55546         * modules/uniconv/base: New file.
55547         * lib/uniconv.h: New file.
55548
55549 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55550
55551         * doc/gnulib-tool.texi (Initial import): Update to match current
55552         behavior with strdup module.
55553         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55554         * lib/memmem.h: Remove; all uses removed.  This is now done
55555         by <string.h>.
55556         * lib/mempcpy.h: Likewise.
55557         * lib/memrchr.h: Likewise.
55558         * lib/stpcpy.h: Likewise.
55559         * lib/stpncpy.h: Likewise.
55560         * lib/strcase.h: Likewise.
55561         * lib/strchrnul.h: Likewise.
55562         * lib/strdup.h: Likewise.
55563         * lib/strndup.h: Likewise.
55564         * lib/strnlen.h: Likewise.
55565         * lib/strpbrk.h: Likewise.
55566         * lib/strsep.h: Likewise.
55567         * lib/strstr.h: Likewise.
55568         * lib/strtok_r.h: Likewise.
55569         * lib/string_.h: New file.
55570         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55571         Rely on <string.h> instead.
55572         * lib/canon-host.c: Likewise.
55573         * lib/chdir-long.c: Likewise.
55574         * lib/concatpath.c: Likewise.
55575         * lib/exclude.c: Likewise.
55576         * lib/fchdir.c: Likewise.
55577         * lib/getaddrinfo.c: Likewise.
55578         * lib/getcwd.c: Likewise.
55579         * lib/getsubopt.c: Likewise.
55580         * lib/glob.c: Likewise.
55581         * lib/hard-locale.c: Likewise.
55582         * lib/iconvme.c: Likewise.
55583         * lib/javacomp.c: Likewise.
55584         * lib/mempcpy.c: Likewise.
55585         * lib/memrchr.c: Likewise.
55586         * lib/regex_internal.h: Likewise.
55587         * lib/stpncpy.c: Likewise.
55588         * lib/strcasecmp.c: Likewise.
55589         * lib/strchrnul.c: Likewise.
55590         * lib/strdup.c: Likewise.
55591         * lib/striconv.c: Likewise.
55592         * lib/striconveh.c: Likewise.
55593         * lib/striconveha.c: Likewise.
55594         * lib/strncasecmp.c: Likewise.
55595         * lib/strndup.c: Likewise.
55596         * lib/strnlen.c: Likewise.
55597         * lib/strsep.c: Likewise.
55598         * lib/strstr.c: Likewise.
55599         * lib/strtok_r.c: Likewise.
55600         * lib/userspec.c: Likewise.
55601         * lib/w32spawn.h: Likewise.
55602         * lib/xstrndup.c: Likewise.
55603         * lib/mountlist.c (strstr): Remove decl.
55604         * m4/string_h.m4: New file.
55605         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55606         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55607         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55608         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55609         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55610         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55611         Set REPLACE_STRCASECMP if necessary.
55612         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55613         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55614         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55615         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55616         HAVE_DECL_STRDUP if necessary.
55617         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55618         since gl_FUNC_STRNDUP does that now.
55619         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55620         Check for decl here...
55621         (gl_PREREQ_STRNLEN): ... not here.
55622         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55623         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55624         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55625         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55626         necessary.
55627         * modules/string: New file.
55628         * modules/memmem (Files): Remove special-purpose include file.
55629         (Depends-on): Add string.
55630         (Include): Include <string.h>, not the removed file.
55631         * modules/mempcpy: Likewise.
55632         * modules/memrchr: Likewise.
55633         * modules/stpcpy: Likewise.
55634         * modules/stpncpy: Likewise.
55635         * modules/strcase: Likewise.
55636         * modules/strchrnul: Likewise.
55637         * modules/strdup: Likewise.
55638         * modules/strndup: Likewise.
55639         * modules/strnlen: Likewise.
55640         * modules/strpbrk: Likewise.
55641         * modules/strsep: Likewise.
55642         * modules/strstr: Likewise.
55643         * modules/strtok_r: Likewise.
55644         * tests/test-dirname.c: Don't include "strdup.h", since
55645         <string.h> now suffices.
55646         * tests/test-memmem.c: Don't include "memmem.h", since
55647         <string.h> now suffices.
55648
55649 2007-01-25  Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55652         *resultp is 0.
55653
55654         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55655         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55656         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55657         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55658
55659         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55660         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55661         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55662         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55663         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55664         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55665
55666 2007-01-24  Bruno Haible  <bruno@clisp.org>
55667
55668         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55669         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55670         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55671         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55672         gl_FUNC_FTS_CORE.
55673         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55674         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55675         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55676         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55677         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55678         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55679         gl_FUNC_FCHOWNAT.
55680         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55681         gl_FUNC_STRFTIME.
55682         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55683         Reported by Ralf Wildenhues.
55684
55685 2007-01-24  Bruno Haible  <bruno@clisp.org>
55686
55687         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55688         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55689         gl_GETADDRINFO.
55690         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55691         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55692         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55693
55694 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55695
55696         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55697         Don't use 'exit'; just return from 'main'.
55698         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55699
55700         * lib/fnmatch_.h: Readjust white space and comments to match
55701         glibc, to avoid spurious diffs.
55702
55703 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55704
55705         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55706         2004-12-01 change by Jakub Jelinek, since this code won't compile
55707         if !LIBC.  Problem reported by Bob Proulx.
55708
55709 2007-01-23  Bruno Haible  <bruno@clisp.org>
55710
55711         * lib/striconveh.c: Include c-strcaseeq.h.
55712         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55713         * modules/striconveh (Depends-on): Add c-strcaseeq.
55714
55715 2007-01-23  Bruno Haible  <bruno@clisp.org>
55716
55717         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55718
55719         * modules/c-strcaseeq: New file.
55720         * lib/c-strcaseeq.h: New file.
55721
55722         * modules/streq: New file.
55723         * lib/streq.h: New file.
55724
55725 2007-01-23  Bruno Haible  <bruno@clisp.org>
55726
55727         * modules/striconveha-tests: New file.
55728         * tests/test-striconveha.c: New file.
55729
55730         * lib/striconveha.h: Include <stdbool.h>.
55731         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55732         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55733         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55734         (mem_iconveha): New function.
55735         (str_iconveha_notranslit): Renamed from str_iconveha.
55736         (str_iconveha): New function.
55737         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55738         c-strcase.
55739
55740 2007-01-23  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55743         encodings without forgiving before trying any encoding with handler.
55744         (str_iconveha): Try all encodings without forgiving before trying any
55745         encoding with handler.
55746
55747 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55748
55749         Import the following changes from libc.
55750
55751         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55752
55753         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55754
55755         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55756
55757         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55758         normal_bracket label.
55759
55760         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55761
55762         [BZ #361]
55763         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55764         to normal_bracket after fetching the next character.
55765
55766 2007-01-22  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55769         argument.
55770         * lib/striconveh.c (iconv_carefully_1): New function.
55771         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55772         argument.
55773         (str_cd_iconveh): Update.
55774         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55775         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55776         * tests/test-striconveh.c (MAGIC): New macro.
55777         (new_offsets): New function.
55778         (main): Test call with and without offsets.
55779
55780 2007-01-22  Bruno Haible  <bruno@clisp.org>
55781
55782         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55783         * modules/sys_select (Makefile.am): Likewise.
55784         * modules/sys_socket (Makefile.am): Likewise.
55785         * modules/sys_time (Makefile.am): Likewise.
55786
55787 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55788
55789         * modules/gettimeofday (License): Change from GPL to LGPL, since
55790         gettimeofday is a library function.
55791
55792 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55793
55794         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55795
55796 2007-01-21  Bruno Haible  <bruno@clisp.org>
55797
55798         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55799
55800 2007-01-21  Bruno Haible  <bruno@clisp.org>
55801
55802         * modules/striconveha: New file.
55803         * lib/striconveha.h: New file.
55804         * lib/striconveha.c: New file.
55805         * MODULES.html.sh (Internationalization functions): Add striconveha.
55806         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55807         string.
55808         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55809
55810 2007-01-21  Bruno Haible  <bruno@clisp.org>
55811
55812         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55813         * lib/striconveh.c (str_iconveh): Likewise.
55814
55815 2007-01-21  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/striconveh.h (mem_iconveh): New declaration.
55818         * lib/striconveh.c (mem_iconveh): New function.
55819         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55820
55821 2007-01-21  Bruno Haible  <bruno@clisp.org>
55822
55823         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55824
55825         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55826         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55827         original result buffer.
55828         (str_cd_iconveh): Update.
55829         * tests/test-striconveh.c (main): Update.
55830
55831         * lib/striconv.h (mem_cd_iconv): Change specification.
55832         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55833         result buffer.
55834         (str_cd_iconv): Update.
55835         * tests/test-striconv.c (main): Update.
55836
55837 2007-01-21  Bruno Haible  <bruno@clisp.org>
55838
55839         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55840
55841 2007-01-20  Jim Meyering  <jim@meyering.net>
55842
55843         * lib/userspec.c (parse_with_separator): If a user or group string
55844         starts with "+", skip the corresponding name-to-ID look-up, since
55845         such a look-up must fail: user and group names may not include "+".
55846
55847 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55848
55849         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55850         since we now assume the sys_time module.
55851         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55852         check for sys/time.h; no longer needed.
55853         * modules/poll (Depends-on): Depend on sys_time.
55854
55855 2007-01-18  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55859
55860         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55861         gettimeofday.
55862
55863         * tests/test-gettimeofday.c: Include <time.h>.
55864         (dummy): Remove variable.
55865
55866         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55867         gl_HEADER_SYS_TIME_H.
55868         (gl_HEADER_SYS_TIME_H): New macro.
55869
55870         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55871         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55873         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55874         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55876         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55877         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55878         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55879         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55880         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55881
55882         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55883         last change; it caused a compilation error when cross-compiling to
55884         Cygwin.
55885
55886 2007-01-18  Jim Meyering  <jim@meyering.net>
55887
55888         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55889         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55890         than the race-prone "test -d sys || mkdir sys".
55891         (configure.ac): Use AC_PROG_MKDIR_P.
55892         * modules/sys_select: Likewise.
55893         * modules/sys_socket: Likewise.
55894         * modules/sys_time: Likewise.
55895
55896 2007-01-18  Eric Blake  <ebb9@byu.net>
55897
55898         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55899         replace gettimeofday.
55900         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55901         name, to avoid infinite recursion.
55902
55903 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55904
55905         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55906         module sys_time.
55907         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55908         assume timespec.h defines struct timeval.
55909         * lib/settime.c: Likewise.
55910         * lib/utimens.c: Likewise.
55911         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55912         since we now assume the gettimeofday module.
55913         * lib/tempname.c (__gen_tempname): Likewise.
55914         * lib/gettimeofday.h: Remove.
55915         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55916         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55917         Include <time.h>, for 'time()'.
55918         (localtime_buffer_addr): Also use this workaround if
55919         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55920         to simplify the uses.  All uses changed.
55921         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55922         that #undef is inside {}, and 'const' follows type name consistently.
55923         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55924         (gettimeofday): Do not use the maximum possible value for
55925         tv->tv_usec, since that might break usages other than ls.c.
55926         Instead, we'll leave ls.c alone.  This undoes today's patch
55927         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55928         we've never observed the problem but might as well keep the
55929         canary.
55930         * lib/nanosleep.c: Include timespec.h first, for interface check.
55931         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55932         now assume the sys_time module.
55933         * lib/tempname.c: Likewise.
55934         * lib/timespec.h: Likewise.
55935         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55936         needed.
55937         * lib/strftime.c: Likewise.
55938         * lib/timespec.h: Likewise.
55939         * lib/posixtm.c: Include posixtm.h first, for interface check.
55940         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55941         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55942         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55943         * lib/sys_time_.h: New file.
55944         * lib/timespec.h (struct timespec): Use long int, not long.
55945         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55946         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55947         Remove obsolescent call to AC_HEADER_TIME.
55948         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55950         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55951         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55952         Likewise.
55953         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55954         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55955         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55956         into the sys_time module.  Check for gettimeofday just once.
55957         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55958         for gettimeofday signature to just check the signature.  Merely
55959         compile it, since linking doesn't test signature.  Improve test for
55960         whether gettimeofday.o is actually needed.
55961         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55962         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55963         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55964         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55965         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55966         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55967         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55968         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55969         than worrying about sys/time.h.
55970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55971         Don't bother worrying about TIME_WITH_SYS_TIME.
55972         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55973         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55974         * m4/sys_time_h.m4: New file.
55975         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55976         Don't include sys/time.h.  Return from main rather than exiting.
55977         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55978         all uses changed.
55979         * modules/gethrxtime (Depends-on): Add sys_time.
55980         * modules/gettime (Depends-on): Likewise.
55981         * modules/gettimeofday (Depends-on): Likewise.
55982         * modules/nanosleep (Depends-on): Likewise.
55983         * modules/settime (Depends-on): Likewise.
55984         * modules/tempname (Depends-on): Likewise.
55985         * modules/utimens (Depends-on): Likewise.
55986         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55987         (Include): Change back to <sys/time.h>.
55988         (Maintainer): Add self.
55989         * modules/sys_time: New file.
55990         * modules/tempname (Depends-on): Add gettimeofday.
55991         * tests/test-gettimeofday.c: Include <sys/time.h>
55992         rather than gettimeofday.h.
55993
55994 2007-01-17  Bruno Haible  <bruno@clisp.org>
55995
55996         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55997         the license default to GPL.
55998         (func_create_testdir): Don't complain if a module is LGPL and its
55999         tests module depends on GPLed modules.
56000
56001 2007-01-17  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/gettimeofday.c (gettimeofday): Add code for the case
56004         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56005         maximum possible value for tv->tv_usec, rather than the minimum one.
56006
56007 2005-10-08  Martin Lambers  <marlam@marlam.de>
56008 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56009 2007-01-16  Bruno Haible  <bruno@clisp.org>
56010
56011         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56012         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56013         gl_FUNC_GETTIMEOFDAY.
56014         (Include): Add gettimeofday.h.
56015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56016         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56017         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56018         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56019         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56020         * lib/gettimeofday.h: New file.
56021         * lib/gettimeofday.c: Include <sys/timeb.h>.
56022         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56023         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56024         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56025         fall back on time().
56026
56027         * tests/test-gettimeofday.c: New file.
56028         * modules/gettimeofday-tests: New file.
56029
56030 2007-01-16  Eric Blake  <ebb9@byu.net>
56031
56032         * modules/fnmatch (Depends-on): Depend on wchar.
56033         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56034         * m4/fnmatch.m4: Likewise.
56035         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56036         * m4/mbchar.m4: Likewise.
56037         * modules/mbswidth (Depends-on): Depend on wchar.
56038         * lib/mbswidth.c: Assume <wchar.h>.
56039         * m4/mbswidth.m4: Likewise.
56040         * modules/quotearg (Depends-on): Depend on wchar.
56041         * lib/quotearg.c: Assume <wchar.h>.
56042         * m4/quotearg.m4: Likewise.
56043         * modules/regex (Depends-on): Depend on wchar.
56044         * lib/regex_internal.h: Assume <wchar.h>.
56045         * m4/regex.m4: Likewise.
56046         * modules/stdint (Depends-on): Depend on wchar.
56047         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56048         * m4/stdint.m4: Likewise.
56049         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56050         * modules/strftime (Depends-on): Depend on wchar.
56051         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56052         * modules/strtol (Depends-on): Depend on wchar.
56053         * lib/strtol.c: Assume <wchar.h>.
56054         * modules/wcwidth (Depends-on): Depend on wchar.
56055         * lib/wcwidth.h: Assume <wchar.h>.
56056         * m4/wcwidth.m4: Likewise.
56057
56058 2007-01-16  Bruno Haible  <bruno@clisp.org>
56059
56060         * modules/csharpexec-script: New, created from...
56061         * modules/csharpexec: ... this.
56062
56063 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56064
56065         * modules/javaexec-script: New, created from...
56066         * modules/javaexec: ... this.
56067
56068 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56069
56070         * modules/poll (Dependencies): Add sys_select.
56071
56072 2007-01-15  Jim Meyering  <jim@meyering.net>
56073
56074         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56075         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56076         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56077         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56078
56079 2007-01-15  Bruno Haible  <bruno@clisp.org>
56080
56081         * modules/striconveh: New file.
56082         * lib/striconveh.h: New file.
56083         * lib/striconveh.c: New file.
56084         * MODULES.html.sh (Internationalization functions): Add striconveh.
56085
56086         * modules/striconveh-tests: New file.
56087         * tests/test-striconveh.c: New file.
56088
56089 2007-01-15  Bruno Haible  <bruno@clisp.org>
56090
56091         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56092         not from GNU libiconv or GNU libc.
56093
56094 2007-01-15  Bruno Haible  <bruno@clisp.org>
56095
56096         * doc/gnulib-intro.texi (Copyright): Explain the different license
56097         terms for module descriptions, autoconf macros, tests, documentation.
56098
56099 2007-01-14  Bruno Haible  <bruno@clisp.org>
56100
56101         * modules/striconv-tests: New file.
56102         * tests/test-striconv.c: New file.
56103
56104 2007-01-14  Bruno Haible  <bruno@clisp.org>
56105
56106         * modules/iconv-tests: New file.
56107         * tests/test-iconv.c: New file.
56108
56109 2007-01-14  Bruno Haible  <bruno@clisp.org>
56110
56111         * gnulib-tool (func_get_license): For test modules, use the license of
56112         the main module.
56113
56114 2007-01-14  Bruno Haible  <bruno@clisp.org>
56115
56116         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56117         if iconv is found to exist.
56118
56119 2007-01-14  Bruno Haible  <bruno@clisp.org>
56120
56121         * modules/c-ctype-tests: New file.
56122         * tests/test-c-ctype.c: New file.
56123
56124 2007-01-14  Bruno Haible  <bruno@clisp.org>
56125
56126         * modules/binary-io-tests: New file.
56127         * tests/test-binary-io.sh: New file.
56128         * tests/test-binary-io.c: New file.
56129
56130 2007-01-14  Bruno Haible  <bruno@clisp.org>
56131
56132         * modules/array-oset-tests: New file.
56133         * tests/test-array_oset.c: New file.
56134
56135 2007-01-14  Bruno Haible  <bruno@clisp.org>
56136
56137         * modules/array-list-tests: New file.
56138         * tests/test-array_list.c: New file.
56139
56140 2007-01-14  Bruno Haible  <bruno@clisp.org>
56141
56142         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56143         and make.
56144         Reported by Simon Josefsson in
56145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56146
56147 2007-01-14  Bruno Haible  <bruno@clisp.org>
56148
56149         * modules/allocsa-tests: New file.
56150         * tests/test-allocsa.c: New file.
56151
56152 2007-01-14  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/fchdir (Depends-on): Add absolute-header.
56155         * modules/unistd (Depends-on): Likewise.
56156
56157 2006-12-30  Bruno Haible  <bruno@clisp.org>
56158
56159         * modules/fchdir: New file.
56160         * modules/unistd (Files): Add lib/unistd_.h.
56161         (Makefile.am): Generate unistd.h from unistd_.h.
56162         * lib/fchdir.c: New file.
56163         * lib/dirent_.h: New file.
56164         * lib/unistd_.h: New file.
56165         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56166         * m4/fchdir.m4: New file.
56167         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56168         (gl_HEADER_UNISTD): Invoke it.
56169         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56170         function.
56171         * lib/backupfile.c (opendir, closedir): Undefine.
56172         * lib/chown.c (open, close): Undefine.
56173         * lib/clean-temp.c (open, close): Undefine.
56174         * lib/copy-file.c (open, close): Undefine.
56175         * lib/execute.c (open, close): Undefine.
56176         * lib/fsusage.c (open, close): Undefine.
56177         * lib/gc-gnulib.c (open, close): Undefine.
56178         * lib/getcwd.c (opendir, closedir): Undefine.
56179         * lib/glob.c (opendir, closedir): Undefine.
56180         * lib/javacomp.c (open, close): Undefine.
56181         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56182         * lib/openat-proc.c (open, close): Undefine.
56183         * lib/pagealign_alloc.c (open, close): Undefine.
56184         * lib/pipe.c (open, close): Undefine.
56185         * lib/progreloc.c (open, close): Undefine.
56186         * lib/savedir.c (opendir, closedir): Undefine.
56187         * lib/utime.c (open, close): Undefine.
56188         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56189
56190 2007-01-10  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56193
56194 2007-01-12  Eric Blake  <ebb9@byu.net>
56195
56196         Provide a robust <wchar.h>.  Further simplifications are now
56197         possible in other modules, but not included here.
56198         * modules/wchar: New module.
56199         * m4/wchar.m4: New file.
56200         * lib/wchar_.h: Likewise.
56201         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56202         of the new module.
56203         * MODULES.html.sh (Extended multibyte and wide character utilities):
56204         New section.
56205
56206 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56207
56208         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56209         to a reasonable default for memory allocation.
56210         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56211         file system that reports garbage st_size values for symlinks.
56212         Problem reported by Liyang Hu.
56213
56214 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56215
56216         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56217         Emacs .#* auto-save files).
56218
56219 2007-01-11  Bruno Haible  <bruno@clisp.org>
56220
56221         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56222         directory.
56223
56224 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56225
56226         Use @...@ consistently in lib/wctype_.h.
56227         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56228         on it being set to 1 or 0.
56229         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56230         go back to AC_SUBSTing it.
56231         * modules/wctype (Makefile.am): Undo previous change.
56232
56233 2007-01-10  Eric Blake  <ebb9@byu.net>
56234
56235         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56236         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56237         * modules/wctype (Makefile.am): Likewise.
56238         Reported by Chris McGuire.
56239
56240 2007-01-10  Jim Meyering  <jim@meyering.net>
56241
56242         fts.c: a small readability/maintainability improvement
56243         * lib/fts.c (fts_read): Make this code slightly more readable and
56244         maintainable by hoisting the "sp->fts_cur = p" assignments to
56245         immediately follow the statements that set P.  Derived from
56246         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56247
56248 2007-01-10  Eric Blake  <ebb9@byu.net>
56249
56250         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56251         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56253         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56254         Reported by Chris McGuire.
56255
56256 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56257
56258         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56259         in sed script.
56260
56261 2007-01-09  Bruno Haible  <bruno@clisp.org>
56262
56263         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56264         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56265         variables.
56266         (func_module): Use them.
56267
56268 2007-01-09  Bruno Haible  <bruno@clisp.org>
56269
56270         * modules/unistr/base: New file.
56271         * lib/unistr.h: New file.
56272
56273         * modules/unistr/u8-to-u16: New file.
56274         * lib/unistr/u8-to-u16.c: New file.
56275
56276         * modules/unistr/u8-to-u32: New file.
56277         * lib/unistr/u8-to-u32.c: New file.
56278
56279         * modules/unistr/u16-to-u8: New file.
56280         * lib/unistr/u16-to-u8.c: New file.
56281
56282         * modules/unistr/u16-to-u32: New file.
56283         * lib/unistr/u16-to-u32.c: New file.
56284
56285         * modules/unistr/u32-to-u8: New file.
56286         * lib/unistr/u32-to-u8.c: New file.
56287
56288         * modules/unistr/u32-to-u16: New file.
56289         * lib/unistr/u32-to-u16.c: New file.
56290
56291         * modules/unistr/u8-check: New file.
56292         * modules/unistr/u16-check: New file.
56293         * modules/unistr/u32-check: New file.
56294         * lib/unistr/u8-check.c: New file.
56295         * lib/unistr/u16-check.c: New file.
56296         * lib/unistr/u32-check.c: New file.
56297
56298         * modules/unistr/u8-chr: New file.
56299         * modules/unistr/u16-chr: New file.
56300         * modules/unistr/u32-chr: New file.
56301         * lib/unistr/u8-chr.c: New file.
56302         * lib/unistr/u16-chr.c: New file.
56303         * lib/unistr/u32-chr.c: New file.
56304
56305         * modules/unistr/u8-cmp: New file.
56306         * modules/unistr/u16-cmp: New file.
56307         * modules/unistr/u32-cmp: New file.
56308         * lib/unistr/u8-cmp.c: New file.
56309         * lib/unistr/u16-cmp.c: New file.
56310         * lib/unistr/u32-cmp.c: New file.
56311
56312         * modules/unistr/u8-cpy: New file.
56313         * modules/unistr/u16-cpy: New file.
56314         * modules/unistr/u32-cpy: New file.
56315         * lib/unistr/u8-cpy.c: New file.
56316         * lib/unistr/u16-cpy.c: New file.
56317         * lib/unistr/u32-cpy.c: New file.
56318         * lib/unistr/u-cpy.h: New file.
56319
56320         * modules/unistr/u8-cpy-alloc: New file.
56321         * modules/unistr/u16-cpy-alloc: New file.
56322         * modules/unistr/u32-cpy-alloc: New file.
56323         * lib/unistr/u8-cpy-alloc.c: New file.
56324         * lib/unistr/u16-cpy-alloc.c: New file.
56325         * lib/unistr/u32-cpy-alloc.c: New file.
56326         * lib/unistr/u-cpy-alloc.h: New file.
56327
56328         * modules/unistr/u8-endswith: New file.
56329         * modules/unistr/u16-endswith: New file.
56330         * modules/unistr/u32-endswith: New file.
56331         * lib/unistr/u8-endswith.c: New file.
56332         * lib/unistr/u16-endswith.c: New file.
56333         * lib/unistr/u32-endswith.c: New file.
56334         * lib/unistr/u-endswith.h: New file.
56335
56336         * modules/unistr/u8-mblen: New file.
56337         * modules/unistr/u16-mblen: New file.
56338         * modules/unistr/u32-mblen: New file.
56339         * lib/unistr/u8-mblen.c: New file.
56340         * lib/unistr/u16-mblen.c: New file.
56341         * lib/unistr/u32-mblen.c: New file.
56342
56343         * modules/unistr/u8-mbtouc: New file.
56344         * modules/unistr/u16-mbtouc: New file.
56345         * modules/unistr/u32-mbtouc: New file.
56346         * lib/unistr/u8-mbtouc.c: New file.
56347         * lib/unistr/u16-mbtouc.c: New file.
56348         * lib/unistr/u32-mbtouc.c: New file.
56349
56350         * modules/unistr/u8-mbtouc-safe: New file.
56351         * modules/unistr/u16-mbtouc-safe: New file.
56352         * modules/unistr/u32-mbtouc-safe: New file.
56353         * lib/unistr/u8-mbtouc-safe.c: New file.
56354         * lib/unistr/u16-mbtouc-safe.c: New file.
56355         * lib/unistr/u32-mbtouc-safe.c: New file.
56356
56357         * modules/unistr/u8-move: New file.
56358         * modules/unistr/u16-move: New file.
56359         * modules/unistr/u32-move: New file.
56360         * lib/unistr/u8-move.c: New file.
56361         * lib/unistr/u16-move.c: New file.
56362         * lib/unistr/u32-move.c: New file.
56363         * lib/unistr/u-move.h: New file.
56364
56365         * modules/unistr/u8-next: New file.
56366         * modules/unistr/u16-next: New file.
56367         * modules/unistr/u32-next: New file.
56368         * lib/unistr/u8-next.c: New file.
56369         * lib/unistr/u16-next.c: New file.
56370         * lib/unistr/u32-next.c: New file.
56371
56372         * modules/unistr/u8-prev: New file.
56373         * modules/unistr/u16-prev: New file.
56374         * modules/unistr/u32-prev: New file.
56375         * lib/unistr/u8-prev.c: New file.
56376         * lib/unistr/u16-prev.c: New file.
56377         * lib/unistr/u32-prev.c: New file.
56378
56379         * modules/unistr/u8-set: New file.
56380         * modules/unistr/u16-set: New file.
56381         * modules/unistr/u32-set: New file.
56382         * lib/unistr/u8-set.c: New file.
56383         * lib/unistr/u16-set.c: New file.
56384         * lib/unistr/u32-set.c: New file.
56385         * lib/unistr/u-set.h: New file.
56386
56387         * modules/unistr/u8-startswith: New file.
56388         * modules/unistr/u16-startswith: New file.
56389         * modules/unistr/u32-startswith: New file.
56390         * lib/unistr/u8-startswith.c: New file.
56391         * lib/unistr/u16-startswith.c: New file.
56392         * lib/unistr/u32-startswith.c: New file.
56393         * lib/unistr/u-startswith.h: New file.
56394
56395         * modules/unistr/u8-stpcpy: New file.
56396         * modules/unistr/u16-stpcpy: New file.
56397         * modules/unistr/u32-stpcpy: New file.
56398         * lib/unistr/u8-stpcpy.c: New file.
56399         * lib/unistr/u16-stpcpy.c: New file.
56400         * lib/unistr/u32-stpcpy.c: New file.
56401         * lib/unistr/u-stpcpy.h: New file.
56402
56403         * modules/unistr/u8-stpncpy: New file.
56404         * modules/unistr/u16-stpncpy: New file.
56405         * modules/unistr/u32-stpncpy: New file.
56406         * lib/unistr/u8-stpncpy.c: New file.
56407         * lib/unistr/u16-stpncpy.c: New file.
56408         * lib/unistr/u32-stpncpy.c: New file.
56409         * lib/unistr/u-stpncpy.h: New file.
56410
56411         * modules/unistr/u8-strcat: New file.
56412         * modules/unistr/u16-strcat: New file.
56413         * modules/unistr/u32-strcat: New file.
56414         * lib/unistr/u8-strcat.c: New file.
56415         * lib/unistr/u16-strcat.c: New file.
56416         * lib/unistr/u32-strcat.c: New file.
56417         * lib/unistr/u-strcat.h: New file.
56418
56419         * modules/unistr/u8-strchr: New file.
56420         * modules/unistr/u16-strchr: New file.
56421         * modules/unistr/u32-strchr: New file.
56422         * lib/unistr/u8-strchr.c: New file.
56423         * lib/unistr/u16-strchr.c: New file.
56424         * lib/unistr/u32-strchr.c: New file.
56425
56426         * modules/unistr/u8-strcmp: New file.
56427         * modules/unistr/u16-strcmp: New file.
56428         * modules/unistr/u32-strcmp: New file.
56429         * lib/unistr/u8-strcmp.c: New file.
56430         * lib/unistr/u16-strcmp.c: New file.
56431         * lib/unistr/u32-strcmp.c: New file.
56432
56433         * modules/unistr/u8-strcpy: New file.
56434         * modules/unistr/u16-strcpy: New file.
56435         * modules/unistr/u32-strcpy: New file.
56436         * lib/unistr/u8-strcpy.c: New file.
56437         * lib/unistr/u16-strcpy.c: New file.
56438         * lib/unistr/u32-strcpy.c: New file.
56439         * lib/unistr/u-strcpy.h: New file.
56440
56441         * modules/unistr/u8-strcspn: New file.
56442         * modules/unistr/u16-strcspn: New file.
56443         * modules/unistr/u32-strcspn: New file.
56444         * lib/unistr/u8-strcspn.c: New file.
56445         * lib/unistr/u16-strcspn.c: New file.
56446         * lib/unistr/u32-strcspn.c: New file.
56447         * lib/unistr/u-strcspn.h: New file.
56448
56449         * modules/unistr/u8-strdup: New file.
56450         * modules/unistr/u16-strdup: New file.
56451         * modules/unistr/u32-strdup: New file.
56452         * lib/unistr/u8-strdup.c: New file.
56453         * lib/unistr/u16-strdup.c: New file.
56454         * lib/unistr/u32-strdup.c: New file.
56455         * lib/unistr/u-strdup.h: New file.
56456
56457         * modules/unistr/u8-strlen: New file.
56458         * modules/unistr/u16-strlen: New file.
56459         * modules/unistr/u32-strlen: New file.
56460         * lib/unistr/u8-strlen.c: New file.
56461         * lib/unistr/u16-strlen.c: New file.
56462         * lib/unistr/u32-strlen.c: New file.
56463         * lib/unistr/u-strlen.h: New file.
56464
56465         * modules/unistr/u8-strmblen: New file.
56466         * modules/unistr/u16-strmblen: New file.
56467         * modules/unistr/u32-strmblen: New file.
56468         * lib/unistr/u8-strmblen.c: New file.
56469         * lib/unistr/u16-strmblen.c: New file.
56470         * lib/unistr/u32-strmblen.c: New file.
56471
56472         * modules/unistr/u8-strmbtouc: New file.
56473         * modules/unistr/u16-strmbtouc: New file.
56474         * modules/unistr/u32-strmbtouc: New file.
56475         * lib/unistr/u8-strmbtouc.c: New file.
56476         * lib/unistr/u16-strmbtouc.c: New file.
56477         * lib/unistr/u32-strmbtouc.c: New file.
56478
56479         * modules/unistr/u8-strncat: New file.
56480         * modules/unistr/u16-strncat: New file.
56481         * modules/unistr/u32-strncat: New file.
56482         * lib/unistr/u8-strncat.c: New file.
56483         * lib/unistr/u16-strncat.c: New file.
56484         * lib/unistr/u32-strncat.c: New file.
56485         * lib/unistr/u-strncat.h: New file.
56486
56487         * modules/unistr/u8-strncmp: New file.
56488         * modules/unistr/u16-strncmp: New file.
56489         * modules/unistr/u32-strncmp: New file.
56490         * lib/unistr/u8-strncmp.c: New file.
56491         * lib/unistr/u16-strncmp.c: New file.
56492         * lib/unistr/u32-strncmp.c: New file.
56493
56494         * modules/unistr/u8-strncpy: New file.
56495         * modules/unistr/u16-strncpy: New file.
56496         * modules/unistr/u32-strncpy: New file.
56497         * lib/unistr/u8-strncpy.c: New file.
56498         * lib/unistr/u16-strncpy.c: New file.
56499         * lib/unistr/u32-strncpy.c: New file.
56500         * lib/unistr/u-strncpy.h: New file.
56501
56502         * modules/unistr/u8-strnlen: New file.
56503         * modules/unistr/u16-strnlen: New file.
56504         * modules/unistr/u32-strnlen: New file.
56505         * lib/unistr/u8-strnlen.c: New file.
56506         * lib/unistr/u16-strnlen.c: New file.
56507         * lib/unistr/u32-strnlen.c: New file.
56508         * lib/unistr/u-strnlen.h: New file.
56509
56510         * modules/unistr/u8-strpbrk: New file.
56511         * modules/unistr/u16-strpbrk: New file.
56512         * modules/unistr/u32-strpbrk: New file.
56513         * lib/unistr/u8-strpbrk.c: New file.
56514         * lib/unistr/u16-strpbrk.c: New file.
56515         * lib/unistr/u32-strpbrk.c: New file.
56516         * lib/unistr/u-strpbrk.h: New file.
56517
56518         * modules/unistr/u8-strrchr: New file.
56519         * modules/unistr/u16-strrchr: New file.
56520         * modules/unistr/u32-strrchr: New file.
56521         * lib/unistr/u8-strrchr.c: New file.
56522         * lib/unistr/u16-strrchr.c: New file.
56523         * lib/unistr/u32-strrchr.c: New file.
56524
56525         * modules/unistr/u8-strspn: New file.
56526         * modules/unistr/u16-strspn: New file.
56527         * modules/unistr/u32-strspn: New file.
56528         * lib/unistr/u8-strspn.c: New file.
56529         * lib/unistr/u16-strspn.c: New file.
56530         * lib/unistr/u32-strspn.c: New file.
56531         * lib/unistr/u-strspn.h: New file.
56532
56533         * modules/unistr/u8-strstr: New file.
56534         * modules/unistr/u16-strstr: New file.
56535         * modules/unistr/u32-strstr: New file.
56536         * lib/unistr/u8-strstr.c: New file.
56537         * lib/unistr/u16-strstr.c: New file.
56538         * lib/unistr/u32-strstr.c: New file.
56539         * lib/unistr/u-strstr.h: New file.
56540
56541         * modules/unistr/u8-strtok: New file.
56542         * modules/unistr/u16-strtok: New file.
56543         * modules/unistr/u32-strtok: New file.
56544         * lib/unistr/u8-strtok.c: New file.
56545         * lib/unistr/u16-strtok.c: New file.
56546         * lib/unistr/u32-strtok.c: New file.
56547         * lib/unistr/u-strtok.h: New file.
56548
56549         * modules/unistr/u8-uctomb: New file.
56550         * modules/unistr/u16-uctomb: New file.
56551         * modules/unistr/u32-uctomb: New file.
56552         * lib/unistr/u8-uctomb.c: New file.
56553         * lib/unistr/u16-uctomb.c: New file.
56554         * lib/unistr/u32-uctomb.c: New file.
56555
56556         * MODULES.html.sh (Unicode string functions): Add the new modules.
56557
56558 2007-01-08  Bruno Haible  <bruno@clisp.org>
56559
56560         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56561         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56562         subdirectories.
56563
56564 2007-01-08  Karl Berry  <karl@gnu.org>
56565
56566         * doc/error.texi: mention that main() fns must set program_name
56567         when progname is used.
56568
56569 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56570
56571         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56572         WCTYPE_H is empty, for the benefit of builds from non-distclean
56573         directories.  Problem reported by Eric Blake in
56574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56575
56576 2007-01-08  Bruno Haible  <bruno@clisp.org>
56577
56578         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56579         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56580         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56581         PROVIDE_CANONICALIZE_FILENAME_MODE.
56582         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56583
56584 2007-01-08  Bruno Haible  <bruno@clisp.org>
56585
56586         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56587         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56588         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56589         * lib/fts.c: Likewise.
56590         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56591
56592 2006-12-25  Bruno Haible  <bruno@clisp.org>
56593
56594         * modules/utf8-ucs4-safe: New file.
56595         * lib/utf8-ucs4-safe.h: New file.
56596         * lib/unistr/utf8-ucs4-safe.c: New file.
56597
56598         * modules/utf16-ucs4-safe: New file.
56599         * lib/utf16-ucs4-safe.h: New file.
56600         * lib/unistr/utf16-ucs4-safe.c: New file.
56601
56602         * MODULES.html.sh (Unicode string functions): Add the new modules.
56603
56604 2007-01-08  Bruno Haible  <bruno@clisp.org>
56605
56606         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56607         (Depends-on): Add unitypes.
56608         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56609         (u8_mbtouc_aux): Move out to separate file.
56610         (u8_mbtouc): Use ucs4_t, uint8_t types.
56611         * lib/unistr/utf8-ucs4.c: New file.
56612
56613         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56614         (Depends-on): Add unitypes.
56615         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56616         (u16_mbtouc_aux): Move out to separate file.
56617         (u16_mbtouc): Use ucs4_t, uint16_t types.
56618         * lib/unistr/utf16-ucs4.c: New file.
56619
56620         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56621         (Depends-on): Add unitypes.
56622         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56623         (u8_uctomb_aux): Move out to separate file.
56624         (u8_uctomb): Use ucs4_t, uint8_t types.
56625         * lib/unistr/ucs4-utf8.c: New file.
56626
56627         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56628         (Depends-on): Add unitypes.
56629         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56630         (u16_uctomb_aux): Move out to separate file.
56631         (u16_uctomb): Use ucs4_t, uint16_t types.
56632         * lib/unistr/ucs4-utf16.c: New file.
56633
56634 2006-12-25  Bruno Haible  <bruno@clisp.org>
56635
56636         * modules/unitypes: New file.
56637         * lib/unitypes.h: New file.
56638         * MODULES.html.sh (func_all_modules): New section "Unicode string
56639         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56640         this section. Add unitypes.
56641
56642 2007-01-08  Bruno Haible  <bruno@clisp.org>
56643
56644         Avoid variable names that conflict with those from libtool.
56645         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56646         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56647         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56648         library_names_spec to acl_library_names_spec, hardcode_* to
56649         acl_hardcode_*.
56650         Reported by Ralf Wildenhues.
56651
56652 2007-01-08  Bruno Haible  <bruno@clisp.org>
56653
56654         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56655         definition.
56656         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56657         definition.
56658         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56659         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56660         definition.
56661         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56662         definition.
56663         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56664         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56665         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56666         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56667         definition.
56668         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56669         definition.
56670         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56671         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56672         GC_USE_<algorithm>.
56673         * lib/gc-libgcrypt.c: Likewise.
56674         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56675         * modules/gc-arctwo (configure.ac): Likewise.
56676         * modules/gc-des (configure.ac): Likewise.
56677         * modules/gc-hmac-md5 (configure.ac): Likewise.
56678         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56679         * modules/gc-md2 (configure.ac): Likewise.
56680         * modules/gc-md4 (configure.ac): Likewise.
56681         * modules/gc-md5 (configure.ac): Likewise.
56682         * modules/gc-random (configure.ac): Likewise.
56683         * modules/gc-rijndael (configure.ac): Likewise.
56684         * modules/gc-sha1 (configure.ac): Likewise.
56685
56686 2007-01-08  Bruno Haible  <bruno@clisp.org>
56687
56688         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56689         macro definition.
56690         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56691         definition.
56692         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56693         definition.
56694         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56695         * modules/fcntl-safer (configure.ac): Likewise.
56696         * modules/fopen-safer (configure.ac): Likewise.
56697         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56698         GNULIB_FWRITEERROR macro definition.
56699
56700 2007-01-08  Bruno Haible  <bruno@clisp.org>
56701
56702         * m4/gnulib-common.m4: New file.
56703         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56704         (func_get_filelist): Add m4/gnulib-common.m4.
56705
56706 2007-01-08  Bruno Haible  <bruno@clisp.org>
56707
56708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56709         command.
56710
56711 2007-01-08  Jim Meyering  <jim@meyering.net>
56712
56713         Use a more robust test for a "can't happen" condition.
56714         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56715         narrowed the st_size value.  Presuming the "can't happen" condition
56716         is true, that narrowing could conceivably convert an invalid st_size
56717         value into a valid one.  Instead, use a change based on Matthew
56718         Woehlke's original patch.
56719
56720         Slight readability improvement: use an assert-like macro
56721         in place of literal "abort ()" uses.
56722         * lib/fts.c (fts_assert): Define.
56723         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56724         Use this macro instead of a bare 'abort'.
56725
56726 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56727
56728         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56729         simply work around them.
56730         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56731         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56732         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56733         declaring.
56734         Don't bother to define as macros, since the standard doesn't require it.
56735         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56736         longer worry about IRIX 5.3.
56737         (HAVE_WCTYPE_CTMP_BUG): Remove.
56738
56739 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56740
56741         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56742         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56743         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56744         Problems reported by Georg Schwarz for IRIX 5.3.
56745
56746         * gnulib-tool (autoconf_minversion): Take the maximum version number
56747         found, not the minimum.  Problem reported by James Youngman.
56748
56749 2007-01-03  Karl Berry  <karl@gnu.org>
56750
56751         * doc/error.texi: new file, explaining interaction with progname.
56752         * doc/gnulib.texi: include it.  Update copyright.
56753
56754 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56755
56756         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56757         AC_CANONICAL_HOST, to improve autobuild outputs.
56758
56759 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56760             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56761
56762         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56763         sockets, server sockets, and other file descriptors.  Count errors
56764         to compute the return value.  Reorder the code a bit to be easier
56765         to follow.  Don't set event bits that were not requested (except
56766         POLLERR and POLLHUP).
56767
56768 2007-01-01  Bruno Haible  <bruno@clisp.org>
56769
56770         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56771
56772 2007-01-03  Jim Meyering  <jim@meyering.net>
56773
56774         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56775
56776 2007-01-02  Bruno Haible  <bruno@clisp.org>
56777
56778         * modules/settime (Include): Require timespec.h.
56779         * modules/nanosleep (Include): Likewise.
56780
56781 2007-01-01  Bruno Haible  <bruno@clisp.org>
56782
56783         * gnulib-tool (func_emit_copyright_notice): Bump year.
56784         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56785
56786 2007-01-01  Bruno Haible  <bruno@clisp.org>
56787
56788         Improve support for OpenBSD.
56789         * build-aux/config.rpath (libname_spec): Export.
56790         (library_names_spec): New variable. Export.
56791         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56792         library_names_spec from the config.rpath output. Locate shared library
56793         through the name pattern in library_names_spec.
56794
56795 2007-01-01  Eric Blake  <ebb9@byu.net>
56796
56797         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56798
56799 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56800
56801         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56802         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56803         assume the C locale, and avoid an "eval" that could cause trouble.
56804         Problem with SORT reported by Bob Proulx.
56805
56806         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56807         Define.  Trivial patch from Henning Nielsen Lund, originally
56808         sent to bug-grep@gnu.org today.
56809
56810 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56811
56812         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56813         struct stat.  Problem reported by Henning Nielsen Lund.
56814         * lib/acl.c: Include acl.h first, to check interface.  Don't
56815         bother to include sys/types.h and sys/stat.h again.
56816
56817 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56818
56819         Import the following change from libc; problem reported by
56820         Sven Verdoolaege.
56821
56822         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56823
56824         [BZ #1373]
56825         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56826
56827 2006-12-28  Jim Meyering  <jim@meyering.net>
56828
56829         * build-aux/announce-gen: Do not assume that the package
56830         builds any of tar.gz, tar.bz2, and .xdelta files.
56831         Suggestion from Simon Josefsson.
56832
56833 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56834
56835         * modules/announce-gen: New file.
56836
56837 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56840         handles its gotchas now.
56841         * lib/mbswidth.c: Likewise.
56842         * lib/wcwidth.h: Likewise.
56843         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56844         and iswcntrl; the wctype module does this stuff now.
56845         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56847         * modules/mbchar (Depends-on): Add wctype.
56848         * modules/mbswidth (Depends-on): Likewise.
56849         * modules/wcwidth (Depends-on): Likewise.
56850
56851 2006-12-27  Eric Blake  <ebb9@byu.net>
56852
56853         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56854         module uses more than what <wctype.h> is required to provide.
56855
56856 2006-12-26  Eric Blake  <ebb9@byu.net>
56857
56858         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56859
56860 2006-12-26  Eric Blake  <ebb9@byu.net>
56861
56862         * modules/absolute-header: New module.
56863         * modules/fcntl (Depends-on): Depend on it.
56864         * modules/inttypes (Depends-on): Likewise.
56865         * modules/stdint (Depends-on): Likewise.
56866         * modules/sys_stat (Depends-on): Likewise.
56867         * modules/wctype (Depends-on): Likewise.
56868         * MODULES.html.sh (Support for building libraries and
56869         executables): Document it.
56870
56871 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56872
56873         * gnulib-tool (SED): Remove, undoing previous change.
56874         The problem was that it broke coreutils on Solaris, because
56875         "sed --posix" leaked into a makefile.
56876         (sed): New alias, if 'alias' and GNU sed.
56877
56878 2006-12-24  Jim Meyering  <jim@meyering.net>
56879
56880         Work around an fchownat bug in glibc-2.4:
56881         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56882         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56883         in spite of the -P option.
56884         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56885         New macros.
56886         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56887         * modules/openat (Files): Add lib/fchownat.c.
56888         * lib/openat.c (fchownat): Don't define here.  Move to...
56889         * lib/fchownat.c: ...this new file.
56890
56891 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56892
56893         Fix bug reported by Bruno Haible in
56894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56895         where quotearg.c didn't compile on Mac OS X 10.2 because it
56896         lacks <wchar.h> and wint_t.
56897         * lib/wctype_.h (__wctype_wint_t): New type.
56898         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56899         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56900         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56901         Arg is now of type __wctype_wint_t, not wint_t.
56902         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56903         substitute HAVE_WINT_T.
56904         * modules/wctype (Files): Add m4/wint_t.m4.
56905         (wctype.h): Substitute HAVE_WINT_T.
56906
56907 2006-12-23  Bruno Haible  <bruno@clisp.org>
56908
56909         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56910
56911 2006-12-23  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56914         S_ISLNK.
56915         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56916         mingw.
56917
56918 2006-12-22  Bruno Haible  <bruno@clisp.org>
56919
56920         * lib/copy-file.c: Include acl.h.
56921         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56922         Close the file descriptors only after being done with copy_acl.
56923         * modules/copy-file (Depends-on): Add acl.
56924
56925 2006-12-22  Bruno Haible  <bruno@clisp.org>
56926
56927         * gnulib-tool (SED): New variable.
56928         Use $SED instead of sed everywhere.
56929
56930 2006-12-22  Bruno Haible  <bruno@clisp.org>
56931
56932         * modules/no-c++: New file.
56933         * m4/no-c++.m4: New file.
56934         * MODULES.html.sh (Support for building libraries and executables):
56935         Add no-c++.
56936
56937 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56938
56939         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56940         Include <limits.h>, and use its INT_MAX to rewrite the
56941         j loop so that it does not overflow 'int'.  Problem reported by
56942         Ralf Wildenhues in
56943         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56944         Play it safe by shifting left by 1 rather than multiplying by 2,
56945         as GCC is less likely to optimize this away when the value
56946         is signed (when it assumes overflow leads to undefined behavior).
56947         Also, don't assume time_t uses two's complement.
56948
56949 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56950
56951         * MODULES.html.sh: New module wctype.
56952         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56953         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56954         <wctype.h>, since the new wctype module should fix this.
56955         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56956         the wctype module should arrange for it.
56957         * lib/regex_internal.h: Likewise.
56958         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56959         since the wctype module should handle this now.
56960         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56961         * modules/fnmatch (Depends-on): Add wctype.
56962         * modules/quotearg (Depends-on): Likewise.
56963         * modules/regex (Depends-on): Likewise.
56964
56965 2006-12-19  Bruno Haible  <bruno@clisp.org>
56966
56967         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56968         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56969
56970 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56971
56972         * modules/savewd (Depends-on): Fix dependency on fcntl.
56973
56974 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56975
56976         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56977         conforms to C99, rather than relying on the user's environment
56978         setting of STDINT_H.
56979
56980 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56981         and Eric Blake  <ebb9@byu.net>
56982
56983         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56984         This is more consistent with the other defines here.
56985         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56986         Port to z/OS.  Problem reported by Paul Gilmartin.
56987         Change local vars to use gl_ prefix rather than ac_.
56988         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56989         with other defines.
56990         * modules/double-slash-root: New module.
56991         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56992         (Depends-on): Add double-slash-root.
56993         * MODULES.html.sh (File system functions): Mention new module.
56994
56995 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56996
56997         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56998         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56999         This is for the benefit of gzip, which doesn't do i18n.
57000
57001 2006-12-12  Jim Meyering  <jim@meyering.net>
57002
57003         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57004         Reported by Andreas Schwab <schwab@suse.de>.
57005
57006 2006-12-12  Bruno Haible  <bruno@clisp.org>
57007
57008         Merge these changes.
57009         2006-09-05  Bruno Haible  <bruno@clisp.org>
57010         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57011         iconv_alloc succeeded.
57012         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57013         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57014         test for " && dest " at the end - dest is always != NULL there. Call
57015         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57016         with 2xNULL arguments, also to flush the state storage. Handle the
57017         IRIX iconv behaviour. Realloc the final result, to throw away unused
57018         memory.
57019
57020 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57021
57022         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57023         and fchmodat unconditionally, since glibc 2.4 has them.
57024         Problem reported by Arkadiusz Miskiewicz.
57025
57026 2006-12-10  Bruno Haible  <bruno@clisp.org>
57027
57028         * gnulib-tool (func_import): Show the include files only for those
57029         modules that are copied and specified.
57030         Reported by Karl Berry.
57031
57032 2006-12-08  Jim Meyering  <jim@meyering.net>
57033
57034         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57035         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57036
57037         * build-aux/announce-gen: Add two new options, both optional:
57038         --bootstrap-tools=TOOL_LIST
57039               a comma-separated list of tools, e.g.,
57040               autoconf,automake,bison,gnulib
57041         --gnulib-snapshot-date=DATE
57042               if gnulib is in the bootstrap tool list,
57043               then report this as the snapshot date.
57044               If not specified, use the current date/time.
57045               If you specify a date here, be sure it's UTC.
57046
57047 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57048
57049         * tests/test-argp-2.sh: Fix test to match actual output.
57050         (func_compare): Fix sed script to be portable.
57051
57052 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57053
57054         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57055         workaround for this case.  It is not autoconfigured now; offhand
57056         it's hard to see how to autoconfigure it.
57057
57058 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57061         a directory that is about to be chowned.  Such a directory's
57062         initial file permissions should permit the owner only and this
57063         should not be changed until after the chown, since the group and
57064         other bits would be incorrect if they granted permission before
57065         the chown.
57066
57067         Fix porting problem for iswctype reported by Georg Schwarz in:
57068         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57069         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57070         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57071         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57072         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57073
57074 2006-12-03  Jim Meyering  <jim@meyering.net>
57075
57076         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57077         p->fts_statp may not yet be defined.
57078         (fts_read): Instead, set it in the caller, once p->fts_statp is
57079         sure to be defined, and corresponds to a top-level directory.
57080         This bug made du -x fail.  Here's the coreutils test case:
57081         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57082         Reported by Mike Frysinger.
57083
57084 2006-12-01  Jim Meyering  <jim@meyering.net>
57085
57086         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57087         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57088         Reported by Simon Josefsson.
57089
57090 2006-11-30  Jim Meyering  <jim@meyering.net>
57091
57092         * m4/warning.m4: Use the all-permissive copyright notice
57093         recommended by RMS (rather than LGPL).
57094         * m4/vararrays.m4: Likewise.
57095         * m4/flexmember.m4: Likewise.
57096
57097 2006-11-29  Bruno Haible  <bruno@clisp.org>
57098
57099         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57100         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57101         using +=.
57102         Reported by Simon Josefsson <simon@josefsson.org>.
57103
57104 2006-11-28  James Youngman <jay@gnu.org>
57105
57106         * README: Advise users that they might find the bug-gnulib@gnu.org
57107         and autotools-announce@gnu.org mailing lists useful.
57108
57109 2006-11-28  Bruno Haible  <bruno@clisp.org>
57110
57111         * m4/ptrdiff_max.m4: Remove file.
57112
57113 2006-11-21  Bruno Haible  <bruno@clisp.org>
57114
57115         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57116         _AC_COMPUTE_INT.
57117         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57118         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57119         _AC_COMPUTE_INT.
57120         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57121         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57122         _AC_COMPUTE_INT.
57123         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57124
57125 2006-11-28  Jim Meyering  <jim@meyering.net>
57126
57127         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57128         warning from "gcc -Wshadow" about shadowing the builtin.
57129
57130 2006-11-27  Bruno Haible  <bruno@clisp.org>
57131
57132         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57133         _AC_COMPUTE_INT.
57134         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57135
57136 2006-11-27  Bruno Haible  <bruno@clisp.org>
57137             Paul Eggert  <eggert@cs.ucla.edu>
57138
57139         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57140
57141 2006-11-26  Bruno Haible  <bruno@clisp.org>
57142
57143         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57144         noinst_LTLIBRARIES.
57145
57146 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57147             Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57150         if compiling with "gcc -ansi".
57151
57152 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57153
57154         Fix some incompatibilities with gcc -ansi -pedantic.
57155         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57156         if compiling pedantically with GCC, unless it's C99 or later.
57157         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57158         it mishandles gcc -ansi -pedantic as well.
57159         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57160         if gcc -pedantic.
57161         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57162         initializers for struct if -pedantic, unless it's C99 or later.
57163
57164 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57165
57166         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57167         Don't close an fd more than once. Identical atimes indicate
57168         success, not failure.
57169
57170 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57171
57172         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57173
57174 2006-11-23  Jim Meyering  <jim@meyering.net>
57175
57176         * build-aux/announce-gen: New file.  From coreutils.
57177
57178 2006-11-22  Jim Meyering  <jim@meyering.net>
57179
57180         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57181         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57182         (fts_read): Use a temporary to narrow the overused st_size member
57183         before using it in a switch statement.  Reported by Matthew Woehlke.
57184
57185         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57186         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57187
57188 2006-11-20  Bruno Haible  <bruno@clisp.org>
57189
57190         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57191         changequote instead of pairs of brackets.
57192         Reported by Andreas Schwab <schwab@suse.de>.
57193
57194 2006-11-21  Jim Meyering  <jim@meyering.net>
57195
57196         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57197         so as to remain compatible with older compilers.
57198         Patch from Michael Deutschmann.
57199
57200 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57201
57202         * MODULES.html.sh (File system functions): Add openat.
57203
57204         * lib/openat.h (rpl_fstatat): New macro, if
57205         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57206         (fstatat): Define to rpl_fstatat under the same conditions,
57207         unless COMPILING_FSTATAT.
57208         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57209         seems to have the bug.
57210         * lib/fstatat.c: New file.
57211         * modules/openat (Files): Add it.
57212
57213 2006-11-20  Bruno Haible  <bruno@clisp.org>
57214
57215         * Makefile: New file.
57216
57217 2006-11-20  Jim Meyering  <jim@meyering.net>
57218
57219         The beginnings of syntax-related checks for gnulib.
57220         * lib/Makefile: New file.
57221         * lib/t-idcache: New script.  Ensure that the two halves of
57222         idcache.c stay in sync.
57223
57224         * lib/idcache.c: Adjust comments in user- and group- portions to
57225         be more accurate, and to be consistent with one another.
57226
57227 2006-11-20  Jim Meyering  <jim@meyering.net>
57228
57229         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57230         continue using the flexible array member (thus, this module performs
57231         half as many malloc calls), with the addition that...
57232         (getgroup, getuser): Consistently record a non-match via an empty
57233         "name" string, and map an empty string match to a NULL return value.
57234         * modules/idcache (Depends-on): Re-add flexmember.
57235
57236         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57237         (getuidbyname, getgroup, getgidbyname): Likewise.
57238
57239         Use cleaner syntax: NULL rather than 0.
57240         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57241
57242 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57243
57244         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57245         It mishandled the case where the group was missing.
57246         Problem reported by Greg Schafer.
57247         * modules/idcache: Likewise.
57248
57249 2006-11-18  Jim Meyering  <jim@meyering.net>
57250
57251         * check-module (%exempt_header): Add exception for some
57252         conditionally-included headers.
57253
57254         * modules/i-ring (Depends-on): Add verify.
57255         (License): Change to LGPL.
57256
57257 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57258
57259         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57260         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57261         and inttostr.h.  Use snprintf rather than uinttostr, so that
57262         LGPLed code doesn't depend on GPLed.
57263
57264 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57265
57266         * modules/inline (License): Change from GPL to LGPL.
57267
57268 2006-11-17  Jim Meyering  <jim@meyering.net>
57269
57270         * modules/d-type (License): Switch to LGPL.
57271
57272 2006-11-15  Bruno Haible  <bruno@clisp.org>
57273
57274         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57275
57276 2006-11-15  Eric Blake  <ebb9@byu.net>
57277
57278         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57279         the module dependency.
57280
57281 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57282             Bruno Haible  <bruno@clisp.org>
57283
57284         * gnulib-tool (func_create_testdir): Add license consistency check.
57285
57286 2006-11-15  Eric Blake  <ebb9@byu.net>
57287
57288         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57289         random "(cached)" in configure output.
57290
57291 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57292
57293         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57294         test for conforming inttypes.h is both announced and cached.
57295
57296         * MODULES.html.sh (seen_modules, seen_files): New variables.
57297         (func_module): Rewrite to use a few less gnulib-tool and sed
57298         invocations.  Avoid a couple of quadratic algorithms for ...
57299         (missed_modules, missed_files): ... these, with ...
57300         (func_append, func_tmpdir): ... these new functions, from
57301         gnulib-tool.  Analogously, install traps for cleanup.
57302
57303         * tests/test-gc.c (main): Remove unused variables.
57304         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57305
57306 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57307
57308         * modules/inttostr (License): Change to LGPL.
57309
57310 2006-11-14  Eric Blake  <ebb9@byu.net>
57311
57312         * modules/tempname (License): Change to LGPL.
57313
57314 2006-11-14  Eric Blake  <ebb9@byu.net>
57315
57316         * doc/functions.texi (Function Portability): *printf functions on
57317         Cygwin now understand all POSIX size specifiers.
57318
57319 2006-11-14  Bruno Haible  <bruno@clisp.org>
57320
57321         * modules/c-ctype (License): Change to LGPL.
57322
57323 2006-11-12  Bruno Haible  <bruno@clisp.org>
57324
57325         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57326         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57327         for GNOME libraries, for which the include files are installed in
57328         subdirectories of $prefix/include.
57329
57330 2006-11-12  Bruno Haible  <bruno@clisp.org>
57331
57332         * m4/lib-link.m4: Require at least autoconf-2.54.
57333         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57334         name to underscores for the --with option.
57335
57336 2006-11-13  Bruno Haible  <bruno@clisp.org>
57337
57338         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57339         the tests directory.
57340         Reported by Ralf Wildenhues.
57341
57342 2006-11-13  Bruno Haible  <bruno@clisp.org>
57343
57344         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57345         (func_emit_initmacro_end): Undo the override here.
57346         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57347         Works around the famous automake error in coreutils.
57348
57349 2006-11-13  Eric Blake  <ebb9@byu.net>
57350
57351         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57352         element, not its node.
57353
57354 2006-11-12  Bruno Haible  <bruno@clisp.org>
57355
57356         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57357         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57358
57359 2006-11-12  Bruno Haible  <bruno@clisp.org>
57360
57361         * gnulib-tool: New option --local-symlink.
57362         (func_usage): Document it.
57363         (lsymbolic): New variable.
57364         (func_import, func_create_testdir): If --symlink was not specified,
57365         test whether --local-symlink was specified and the file comes from
57366         the local_gnulib_dir.
57367
57368 2006-11-12  Bruno Haible  <bruno@clisp.org>
57369
57370         * gnulib-tool (func_ln): New function.
57371         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57372
57373 2006-11-12  Bruno Haible  <bruno@clisp.org>
57374
57375         Finish support for source files in subdirectories.
57376         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57377         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57378         AUTOMAKE_OPTIONS.
57379         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57380
57381 2006-11-12  Bruno Haible  <bruno@clisp.org>
57382
57383         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57384         EXTRA_lib_SOURCES augmentation.
57385         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57386
57387 2006-11-12  Jim Meyering  <jim@meyering.net>
57388
57389         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57390         file descriptors.  This also averts a failure on systems with
57391         native openat support when a traversed directory lacks "x" access.
57392         * lib/fts_.h: Include "i-ring.h"
57393         (struct FTS) [fts_fd_ring]: New member.
57394         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57395         (FCHDIR): Add parentheses.
57396         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57397         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57398         When descending, rather than simply closing the previous
57399         fts_cwd_fd value, push that file descriptor onto the ring.
57400         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57401         (fts_open): Initialize the new fd_ring member.
57402         (fts_close): Clear the ring.
57403         (fts_safe_changedir): When possible, use our new fd_ring to skip
57404         the diropen and fstat and dev/ino comparison that would normally
57405         accompany a virtual `chdir ("..")'.
57406
57407         * modules/fts (Depends-on): Add i-ring.
57408         * modules/i-ring: New module.
57409         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57410         * m4/i-ring.m4: New file.
57411
57412 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57413
57414         * gnulib-tool (func_create_testdir): Fix replacement of
57415         `build-aux' in configure.ac.  Run autotools in gltests
57416         subdirectory.
57417         (func_create_testdir, func_create_megatestdir, test): There is
57418         no need for '--force' in most autotool invocations in a new
57419         tree.  Actually fail the whole test if any of the tools, or the
57420         configure or make stages fail.
57421
57422         Sync from Automake.
57423         * build-aux/gnupload: Revert last change.  Add pointer to upload
57424         instructions of the GNU Maintenance Instructions.
57425         Suggestion by Karl Berry.
57426
57427 2006-11-10  Jim Meyering  <jim@meyering.net>
57428
57429         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57430
57431 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57432
57433         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57434         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57435         (bind_textdomain_codeset) [! ENABLE_NLS]:
57436         Evaluate all the arguments.  That way, callers get compatible behavior
57437         if the arguments have side effects.  Also, it avoids some GCC
57438         diagnostics in some cases; Joel E. Denny reported problems when Bison
57439         was configured with --enable-gcc-warnigs.
57440
57441 2006-11-10  Jim Meyering  <jim@meyering.net>
57442
57443         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57444         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57445         account.
57446
57447 2006-11-10  Jim Meyering  <jim@meyering.net>
57448
57449         * modules/inline: New file/module.
57450         * modules/xalloc (Files): Remove m4/inline.m4.
57451         (Depends-on): Add inline, instead.
57452         * modules/oset: Likewise.
57453         * modules/list: Likewise.
57454
57455 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57458         Problem reported by Matthew Woehlke.
57459
57460 2006-11-09  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/tempname.c (gen_tempname): Remove variant that invokes
57463         __gen_tempname.
57464         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57465         __gen_tempname.
57466
57467 2006-11-08  Bruno Haible  <bruno@clisp.org>
57468
57469         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57470         to 'yes' instead of 'cross-compiling'.
57471
57472 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57473
57474         * lib/quotearg.h (quotearg_free): New decl.
57475         * lib/quotearg.c (quotearg_free): New function.
57476         (slot0, nslots, slotvec0, slotvec):
57477         Now file-scope so that quotearg_free can get at them.
57478
57479 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57480
57481         Sync from Automake.
57482         * build-aux/gnupload: Add missing 'gnu' to example URL.
57483         Report by Karl Berry.
57484
57485 2006-11-08  Bruno Haible  <bruno@clisp.org>
57486
57487         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57488         Suggested by Paul Eggert.
57489
57490 2006-11-08  Jim Meyering  <jim@meyering.net>
57491
57492         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57493         It's already included if !_LIBC.
57494         (fts_safe_changedir): Add a comment.
57495
57496 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57499         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57500         Matthew Woehlke.
57501
57502         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57503         definitions up, to avoid colliding with change below.
57504         (static_inline) [HAVE_INLINE]: New macro.
57505         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57506         Provide extern decls when !HAVE_INLINE.  Do not define unless
57507         static_inline is defined, either by us or by xmalloc.c.  Use
57508         static_inline rather than static inline.
57509         (XCALLOC): Optimize sizeof(T) = 1 case.
57510         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57511
57512 2006-11-07  Bruno Haible  <bruno@clisp.org>
57513
57514         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57515         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57516         AC_C_INLINE.
57517         * modules/xalloc (Files): Add m4/inline.m4.
57518
57519 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57520
57521         * README: Fix typo.
57522         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57523         (Miscellanous Notes): ...from this.
57524
57525 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57528         Mention that offsetof should be used instead of sizeof.
57529         From Bruno Haible.
57530
57531 2006-11-07  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57534
57535 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57538         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57539         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57540         (gl_tree_add_before, gl_tree_add_after):
57541         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57542         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57543         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57544         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57545         (gl_linked_add_after, gl_linked_add_at): Likewise.
57546         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57547         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57548         (gl_tree_add_before, gl_tree_add_after): Likewise.
57549         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57550         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57551         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57552
57553 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57554
57555         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57556
57557 2006-11-06  Bruno Haible  <bruno@clisp.org>
57558
57559         * m4/inline.m4: New file.
57560         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57561         * modules/list (Files): Add m4/inline.m4.
57562         * modules/oset (Files): Likewise.
57563
57564 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57565
57566         * lib/idcache.c: Include <stddef.h>, for offsetof.
57567         (struct userid.name): Change from char * to a flexible array member.
57568         All uses changed.
57569         * modules/idcache (Depends-on): Add flexmember.
57570
57571         * MODULES.html.sh (Core language properties): New module flexmember.
57572         * modules/flexmember, m4/flexmember.m4: New files.
57573
57574         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57575         inline functions that are identical with the old xnmalloc_inline,
57576         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57577         that we can avoid some unnecessary integer multiplications and
57578         divisions in the common case where the element size is known at
57579         compile time.
57580         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57581         needed.
57582         (xnboundedmalloc): Remove.
57583         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57584         arguments, for consistency with rest of this header.
57585         (xcharalloc): Rewrite using XNMALLOC.
57586         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57587         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57588         versions have been moved to lib/xalloc.h and renamed to be the
57589         non-*_inline versions.
57590         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57591         and xnrealloc functions, since those functions are now inline and
57592         now call us.
57593         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57594         renaming described above.
57595         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57596         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57597         captures the dependency in AC_C_INLINE.
57598
57599         New module canonicalize-lgpl, proposed by Charles Wilson in
57600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57601         with a few small changes afterwards.
57602         * MODULES.html.sh (File system functions): New module
57603         canonicalize-lgpl.
57604         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57605         and canonicalize_file_name.
57606         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57607         * modules/canonicalize-lgpl: New files.
57608
57609 2006-11-05  Bruno Haible  <bruno@clisp.org>
57610
57611         * gnulib-tool (func_import, func_create_testdir): Create directories
57612         also for files in subdirectories of lib/.
57613
57614 2006-11-05  Bruno Haible  <bruno@clisp.org>
57615
57616         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57617         ANSI C compliant.
57618
57619 2006-11-03  Bruno Haible  <bruno@clisp.org>
57620
57621         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57622         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57623         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57624         (xnboundedmalloc): New inline function.
57625         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57626         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57627         xmalloc.
57628         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57629         xmalloc.
57630         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57631         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57632         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57633         xmalloc.
57634         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57635         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57636         xmalloc.
57637         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57638         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57639         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57640         xmalloc.
57641         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57642         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57643         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57644         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57645         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57646         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57647         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57648
57649 2006-11-03  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/c-ctype.h [C++]: Define functions without name mangling.
57652         * lib/fwriteerror.h [C++]: Likewise.
57653         * lib/gcd.h [C++]: Likewise.
57654         * lib/linebreak.h [C++]: Likewise.
57655
57656 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57657
57658         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57659         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57660         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57661         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57662         Check for functions and headers just once.
57663         Check for declaration of canonicalize_file_name.
57664         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57665
57666 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57667
57668         * gnulib-tool (func_import): Fix typo in actioncmd.
57669
57670 2006-11-02  Bruno Haible  <bruno@clisp.org>
57671
57672         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57673         newline sequence in the Makefile.am snippet as a space, like "make"
57674         does.
57675         Reported by Roger Persson <perrog@gmail.com>.
57676
57677 2006-11-01  Bruno Haible  <bruno@clisp.org>
57678
57679         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57680         already declared in <string.h>.
57681         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57682
57683 2006-11-01  Bruno Haible  <bruno@clisp.org>
57684
57685         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57686         * lib/strcase.h: Include <string.h>.
57687         (strcasecmp): Define to rpl_strcasecmp here.
57688
57689 2006-11-01  Bruno Haible  <bruno@clisp.org>
57690
57691         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57692
57693 2006-11-01  Eric Blake  <ebb9@byu.net>
57694
57695         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57696
57697         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57698
57699 2006-10-29  Bruno Haible  <bruno@clisp.org>
57700
57701         Make it compile in C++ mode.
57702         * lib/full-write.c (full_rw): Add a cast.
57703
57704 2006-11-01  Bruno Haible  <bruno@clisp.org>
57705
57706         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57707         be POSIX compliant.
57708         Reported by Roger Persson <perrog@gmail.com>.
57709
57710 2006-11-01  Eric Blake  <ebb9@byu.net>
57711
57712         * lib/getopt_.h: Fix comments.
57713
57714 2006-10-31  Eric Blake  <ebb9@byu.net>
57715
57716         * modules/tmpdir (Depends-on): Add sys_stat.
57717         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57718         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57719         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57720         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57721         tempname.
57722
57723 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57724
57725         Avoid some C++ diagnostics reported by Bruno Haible.
57726         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57727         xmalloc.
57728         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57729         (struct slotvec): Move to top level.
57730         (quotearg_n_options): Rewrite to avoid xmalloc.
57731         * lib/xalloc.h (xcharalloc): New function.
57732         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57733         [defined __cplusplus]: Add function template that provides result
57734         type propagation.  This part of the change is from Bruno Haible.
57735
57736 2006-10-29  Bruno Haible  <bruno@clisp.org>
57737
57738         Make it compile in C++ mode.
57739         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57740         * lib/strnlen1.c (strnlen1): Cast memchr result.
57741         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57742         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57743         (create_temp_dir): Rename local variable 'template'.
57744         (compile_csharp_using_sscli): Add cast.
57745         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57746         * lib/findprog.c (find_in_path): Likewise.
57747         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57748         * lib/wait-process.c (register_slave_subprocess): Likewise.
57749
57750 2006-10-22  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/tsearch: New file.
57753         * lib/tsearch.h: New file.
57754         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57755         * m4/tsearch.m4: New file.
57756         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57757
57758 2006-10-29  Eric Blake  <ebb9@byu.net>
57759
57760         * lib/arcfour.c: Assume config.h.
57761         * lib/arctwo.c: Likewise.
57762         * lib/base64.c: Likewise.
57763         * lib/check-version.c: Likewise.
57764         * lib/crc.c: Likewise.
57765         * lib/des.c: Likewise.
57766         * lib/gc-gnulib.c: Likewise.
57767         * lib/gc-libgcrypt.c: Likewise.
57768         * lib/gc-pbkdf2-sha1.c: Likewise.
57769         * lib/getaddrinfo.c: Likewise.
57770         * lib/getdelim.c: Likewise.
57771         * lib/getline.c: Likewise.
57772         * lib/hmac-md5.c: Likewise.
57773         * lib/hmac-sha1.c: Likewise.
57774         * lib/iconvme.c: Likewise.
57775         * lib/md2.c: Likewise.
57776         * lib/md4.c: Likewise.
57777         * lib/memxor.c: Likewise.
57778         * lib/read-file.c: Likewise.
57779         * lib/readline.c: Likewise.
57780         * lib/rijndael-alg-fst.c: Likewise.
57781         * lib/rijndael-api-fst.c: Likewise.
57782         * lib/xgetdomainname.c: Likewise.
57783
57784 2006-10-28  Eric Blake  <ebb9@byu.net>
57785
57786         * lib/xstrndup.c: Assume config.h.
57787
57788 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57791         stat-macros.h is now for our own macros, whereas stat_h is for
57792         macros in the <sys/stat.h> name space.
57793         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57794         (STAT_MACROS_H): Remove.
57795         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57796         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57797         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57798         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57799         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57800         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57801         Move these macros to ...
57802         * lib/stat_.h: here.  Don't include stat-macros.h.
57803         * lib/canonicalize.c: Don't include stat-macros.h.
57804         * lib/chown.c: Likewise.
57805         * lib/euidaccess.c: Likewise.
57806         * lib/file-type.c: Likewise.
57807         * lib/filemode.c: Likewise.
57808         * lib/glob.c: Likewise.
57809         * lib/isapipe.c: Likewise.
57810         * lib/lchown.c: Likewise.
57811         * lib/lstat.c: Likewise.
57812         * lib/mkdir-p.c: Likewise.
57813         * lib/rmdir.c: Likewise.
57814         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57816         unless mkdir isn't declared, to speed up 'configure'.
57817         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57818         would define all the S_* symbols.
57819         * modules/canonicalize (Depends-on):
57820         Depend on sys_stat, not stat-macros.
57821         * modules/chown: Likewise.
57822         * modules/euidaccess: Likewise.
57823         * modules/filemode: Likewise.
57824         * modules/file-type: Likewise.
57825         * modules/glob: Likewise.
57826         * modules/isapipe: Likewise.
57827         * modules/lchown: Likewise.
57828         * modules/lstat: Likewise.
57829         * modules/mkancesdirs: Likewise.
57830         * modules/rmdir: Likewise.
57831         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57832         * modules/modechange: Likewise.
57833         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57834         (configure.ac): Remove gl_STAT_MACROS.
57835         * modules/sys_stat (Depends-on): Remove stat-macros.
57836
57837 2006-10-27  Bruno Haible  <bruno@clisp.org>
57838
57839         * m4/signed.m4: Remove file.
57840         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57841         invocation.
57842         * modules/vasnprintf (Files): Remove m4/signed.m4.
57843
57844 2006-10-27  Bruno Haible  <bruno@clisp.org>
57845
57846         Update to GNU gettext 0.16.
57847         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57848         m4/inttypes-h.m4, m4/signed.m4.
57849         * m4/gettext.m4: Update to GNU gettext 0.16.
57850         * m4/intl.m4: New file, from GNU gettext.
57851         * m4/intldir.m4: New file, from GNU gettext.
57852         * config/srclist.txt: Update
57853
57854 2006-10-27  Eric Blake  <ebb9@byu.net>
57855
57856         * MODULES.html.sh: Document tempname.
57857         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57858         dependencies.
57859         (Files): Move lib/tempname.c...
57860         * modules/tempname: ...to this new module.
57861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57862         (gl_PREREQ_TEMPNAME): Move...
57863         * m4/tempname.m4: ...to this new file.
57864         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57865         * modules/sys_stat (Depends-on): Add stat-macros.
57866         * lib/stat_.h (includes): Pick up stat macros.
57867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57868         if stat macros are broken.
57869         * lib/tempname.c (includes): No need to include "stat-macros.h".
57870         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57871         (direxists, __path_search) [!_LIBC]: Don't compile these in
57872         gnulib; the tmpdir module covers that.
57873         * lib/tempname.h: New file.
57874
57875 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57876
57877         * COPYING: Explain how gnulib-tool converts licence headers.
57878         Almost all wording by Eric Blake.
57879
57880 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57881
57882         * lib/mbchar.h (is_basic_table): Make read-only.
57883         * lib/mbchar.c (is_basic_table): Likewise.
57884         Reported by John Darrington.
57885
57886 2006-10-25  Bruno Haible  <bruno@clisp.org>
57887
57888         * lib/progname.h (set_program_name): Undefine before defining.
57889
57890 2006-10-25  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57893         false for non-gcc C++ compilers.
57894         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57895
57896 2006-10-24  Bruno Haible  <bruno@clisp.org>
57897
57898         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57899         iconv implementations like Irix iconv.
57900
57901 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * modules/vararrays: New file.
57904         * m4/vararrays.m4: New file, taken from diffutils.
57905         * MODULES.html.sh: New module vararrays.
57906
57907 2006-10-24  Karl Berry  <karl@gnu.org>
57908
57909         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57910         Don't call GNU Unix.
57911
57912 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57913
57914         * users.txt: Add Libtool.
57915
57916         Sync from Libtool:
57917
57918         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57921         to gnulib's policy of including config.h unconditionally.
57922
57923 2006-10-24  Bruno Haible  <bruno@clisp.org>
57924
57925         * modules/wcwidth (Files): Add m4/wint_t.m4.
57926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57927         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57928
57929 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57930
57931         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57932         to pacify GCC with some -W flags enabled.  Problem reported by
57933         Bruno Haible.
57934
57935 2006-10-24  Jim Meyering  <jim@meyering.net>
57936
57937         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57938         Reported by Karl Berry.
57939
57940 2006-10-23  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57943
57944 2006-10-24  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/gl_list.h: Use C comment style, not C++ comment style.
57947
57948 2006-10-23  Eric Blake  <ebb9@byu.net>
57949
57950         * lib/getaddrinfo.c (includes): Add missing include.
57951
57952 2006-10-23  Bruno Haible  <bruno@clisp.org>
57953             Paul Eggert  <eggert@cs.ucla.edu>
57954
57955         Ability to rename obstack_free.
57956         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57957         obstack_free.
57958         (obstack_free): Invoke the __obstack_free macro.
57959         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57960
57961 2006-10-23  Bruno Haible  <bruno@clisp.org>
57962             Paul Eggert  <eggert@cs.ucla.edu>
57963
57964         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57965         __argc, __argv from the declaration. (They are defined as macros on
57966         mingw.)
57967
57968 2006-10-22  Bruno Haible  <bruno@clisp.org>
57969
57970         * doc/gnulib-intro.texi: New file.
57971         * doc/gnulib.texi: Include it.
57972
57973 2006-10-21  Bruno Haible  <bruno@clisp.org>
57974
57975         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57976         "Introduction", "Miscellanous Notes", "Particular Modules".
57977
57978 2006-10-21  Bruno Haible  <bruno@clisp.org>
57979
57980         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57981         Change mostlyclean-local rule to avoid sh syntax error from bash
57982         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57983
57984 2006-10-23  Jim Meyering  <jim@meyering.net>
57985
57986         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57987         in place of snprintf.
57988
57989         * modules/inttostr (Files): Add lib/uinttostr.c.
57990         * lib/uinttostr.c (inttostr): New file/function.
57991         * lib/inttostr.h (uinttostr): Declare.
57992         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57993         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57994         Add uinttostr.
57995         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57996
57997 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57998
57999         * lib/canonicalize.c (ELOOP): Define if not already defined.
58000         Problem reported by Bruno Haible in
58001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58002
58003 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58004
58005         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58006         Problem reported by Perry Smith and Ville Laurikari.
58007
58008         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58009         uses.
58010
58011 2006-10-19  Bruno Haible  <bruno@clisp.org>
58012
58013         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58014         for mingw.
58015
58016 2006-10-19  Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58019         Needed for mingw.
58020
58021 2006-10-19  Bruno Haible  <bruno@clisp.org>
58022
58023         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58024
58025 2006-10-19  Bruno Haible  <bruno@clisp.org>
58026
58027         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58028         it.
58029
58030 2006-10-19  Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58033         invocation.
58034
58035 2006-10-19  Bruno Haible  <bruno@clisp.org>
58036
58037         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58038         mountlist by default.
58039
58040 2006-10-16  Bruno Haible  <bruno@clisp.org>
58041
58042         * lib/c-strstr.c: Include c-strstr.h.
58043
58044 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58045
58046         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58047         in a slash.
58048
58049 2006-10-18  Bruno Haible  <bruno@clisp.org>
58050
58051         * lib/lock.h [C++]: Wrap definitions in extern "C".
58052
58053 2006-10-18  Bruno Haible  <bruno@clisp.org>
58054
58055         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58056         gl_LIBOBJS list.
58057
58058 2006-10-18  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58061
58062 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58063
58064         * lib/xstrtol.h: Include gettext.h.
58065         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58066         Problem reported by Eric Blake.
58067         * modules/xstrtol (Depends-on): Add gettext-h.
58068
58069 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58070
58071         * lib/strftime.c (advance): New macro.
58072         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58073         incomplete type, so you can't add 0 to it.  Problem and patch
58074         reported by Eelco Dolstra for dietlibc.
58075
58076 2006-10-18  Jim Meyering  <jim@meyering.net>
58077
58078         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58079         type for a local, and rename it: s/up/user_proc/.
58080
58081 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58082
58083         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58084         READ_UTMP_USER_PROCESS.
58085         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58086
58087 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58088
58089         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58090         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58091
58092 2006-10-17  Eric Blake  <ebb9@byu.net>
58093
58094         * lib/sigprocmask.c (sigprocmask): Fix typo.
58095
58096         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58097
58098         * modules/clean-temp (Makefile.am): Don't add to make output...
58099         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58100         config.h.
58101
58102 2006-10-17  Bruno Haible  <bruno@clisp.org>
58103
58104         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58105         differently if DEFAULT_TEXT_DOMAIN is set.
58106
58107 2006-10-16  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/clean-temp.c: Include fwriteerror.h.
58110
58111 2006-10-16  Bruno Haible  <bruno@clisp.org>
58112
58113         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58114
58115 2006-10-16  Bruno Haible  <bruno@clisp.org>
58116
58117         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58118         * lib/sigprocmask.h: Include <sys/types.h>.
58119         (sigset_t): Use the system's definition if present.
58120
58121 2006-10-17  Eric Blake  <ebb9@byu.net>
58122
58123         * lib/xvasprintf.c (includes): Assume config.h.
58124         * lib/xasprintf.c (includes): Likewise.
58125
58126 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58127
58128         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58129         at least as wide as intmax_t.
58130
58131 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58132
58133         (Imported from Automake.)
58134         * build-aux/gnupload: Update to version 1.1 of directive file.
58135
58136 2006-10-16  Eric Blake  <ebb9@byu.net>
58137
58138         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58139         match Automake 1.10a.
58140
58141 2006-10-14  Bruno Haible  <bruno@clisp.org>
58142
58143         * modules/sigprocmask: New file.
58144         * lib/sigprocmask.h: New file.
58145         * lib/sigprocmask.c: New file.
58146         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58147         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58148         request sigprocmask.o.
58149         (gl_PREREQ_SIGPROCMASK): New macro.
58150         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58151         (Depends-on): Add sigprocmask.
58152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58153         gt_SIGNALBLOCKING. Test for 'raise' only once.
58154         * lib/fatal-signal.c: Include sigprocmask.h.
58155         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58156         unblock_fatal_signals): Define always.
58157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58158         sigprocmask.
58159
58160 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58161
58162         Sync from Automake.
58163         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58164         which incorrectly sets the mode of an existing destination
58165         directory.  In some cases the unpatched install-sh could do the
58166         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58167         system.  We hope this is rare in practice, but it's clearly worth
58168         fixing.  Problem reported by Alex Unleashed in
58169         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58170         Also, don't bother to check for -m bugs unless we're using -m;
58171         suggested by Stepan Kasal.
58172
58173 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58174
58175         Sync from Automake.
58176         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58177         `-c' flag, so they appear at the same position as in %FASTDEP%
58178         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58179         which ignores unknown options only after the first non-option.
58180         Bug report against M4 by Nelson H. F. Beebe.
58181
58182 2006-10-13  Jim Meyering  <jim@meyering.net>
58183
58184         Fix a bug in yesterday's change.
58185         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58186         p->fts_statp->st_dev would be used uninitialized.
58187         Ensures that we always call fts_stat on the very first entry.
58188         Miklos Szeredi reported that find -xdev stopped working.
58189
58190 2006-10-12  Bruno Haible  <bruno@clisp.org>
58191
58192         * gnulib-tool (func_get_automake_snippet): Append an automatically
58193         computed EXTRA_DIST augmentation.
58194         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58195         * modules/alloca-opt (Makefile.am): Likewise.
58196         * modules/allocsa (Makefile.am): Likewise.
58197         * modules/arcfour (Makefile.am): Likewise.
58198         * modules/arctwo (Makefile.am): Likewise.
58199         * modules/argmatch (Makefile.am): Likewise.
58200         * modules/argz (Makefile.am): Likewise.
58201         * modules/atexit (Makefile.am): Likewise.
58202         * modules/backupfile (Makefile.am): Likewise.
58203         * modules/byteswap (Makefile.am): Likewise.
58204         * modules/c-strtod (Makefile.am): Likewise.
58205         * modules/c-strtold (Makefile.am): Likewise.
58206         * modules/calloc (Makefile.am): Likewise.
58207         * modules/canon-host (Makefile.am): Likewise.
58208         * modules/canonicalize (Makefile.am): Likewise.
58209         * modules/chdir-long (Makefile.am): Likewise.
58210         * modules/chdir-safer (Makefile.am): Likewise.
58211         * modules/check-version (Makefile.am): Likewise.
58212         * modules/chown (Makefile.am): Likewise.
58213         * modules/cloexec (Makefile.am): Likewise.
58214         * modules/close-stream (Makefile.am): Likewise.
58215         * modules/closeout (Makefile.am): Likewise.
58216         * modules/crc (Makefile.am): Likewise.
58217         * modules/csharpexec (Makefile.am): Likewise.
58218         * modules/cycle-check (Makefile.am): Likewise.
58219         * modules/des (Makefile.am): Likewise.
58220         * modules/dev-ino (Makefile.am): Likewise.
58221         * modules/dirfd (Makefile.am): Likewise.
58222         * modules/dirname (Makefile.am): Likewise.
58223         * modules/dup2 (Makefile.am): Likewise.
58224         * modules/eealloc (Makefile.am): Likewise.
58225         * modules/error (Makefile.am): Likewise.
58226         * modules/euidaccess (Makefile.am): Likewise.
58227         * modules/exclude (Makefile.am): Likewise.
58228         * modules/exitfail (Makefile.am): Likewise.
58229         * modules/fcntl-safer (Makefile.am): Likewise.
58230         * modules/fcntl (Makefile.am): Likewise.
58231         * modules/file-type (Makefile.am): Likewise.
58232         * modules/fileblocks (Makefile.am): Likewise.
58233         * modules/filemode (Makefile.am): Likewise.
58234         * modules/filenamecat (Makefile.am): Likewise.
58235         * modules/fnmatch (Makefile.am): Likewise.
58236         * modules/fopen-safer (Makefile.am): Likewise.
58237         * modules/fpending (Makefile.am): Likewise.
58238         * modules/fprintftime (Makefile.am): Likewise.
58239         * modules/free (Makefile.am): Likewise.
58240         * modules/fsusage (Makefile.am): Likewise.
58241         * modules/ftruncate (Makefile.am): Likewise.
58242         * modules/fts (Makefile.am): Likewise.
58243         * modules/gc-arcfour (Makefile.am): Likewise.
58244         * modules/gc-des (Makefile.am): Likewise.
58245         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58246         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58247         * modules/gc-md4 (Makefile.am): Likewise.
58248         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58249         * modules/gc-sha1 (Makefile.am): Likewise.
58250         * modules/gc (Makefile.am): Likewise.
58251         * modules/getaddrinfo (Makefile.am): Likewise.
58252         * modules/getcwd (Makefile.am): Likewise.
58253         * modules/getdelim (Makefile.am): Likewise.
58254         * modules/getdomainname (Makefile.am): Likewise.
58255         * modules/getgroups (Makefile.am): Likewise.
58256         * modules/gethostname (Makefile.am): Likewise.
58257         * modules/gethrxtime (Makefile.am): Likewise.
58258         * modules/getline (Makefile.am): Likewise.
58259         * modules/getloadavg (Makefile.am): Likewise.
58260         * modules/getlogin_r (Makefile.am): Likewise.
58261         * modules/getndelim2 (Makefile.am): Likewise.
58262         * modules/getopt (Makefile.am): Likewise.
58263         * modules/getpagesize (Makefile.am): Likewise.
58264         * modules/getpass-gnu (Makefile.am): Likewise.
58265         * modules/getpass (Makefile.am): Likewise.
58266         * modules/getsubopt (Makefile.am): Likewise.
58267         * modules/gettime (Makefile.am): Likewise.
58268         * modules/gettimeofday (Makefile.am): Likewise.
58269         * modules/getugroups (Makefile.am): Likewise.
58270         * modules/getusershell (Makefile.am): Likewise.
58271         * modules/glob (Makefile.am): Likewise.
58272         * modules/group-member (Makefile.am): Likewise.
58273         * modules/hard-locale (Makefile.am): Likewise.
58274         * modules/hash (Makefile.am): Likewise.
58275         * modules/hmac-md5 (Makefile.am): Likewise.
58276         * modules/hmac-sha1 (Makefile.am): Likewise.
58277         * modules/human (Makefile.am): Likewise.
58278         * modules/idcache (Makefile.am): Likewise.
58279         * modules/imaxabs (Makefile.am): Likewise.
58280         * modules/imaxdiv (Makefile.am): Likewise.
58281         * modules/inet_ntop (Makefile.am): Likewise.
58282         * modules/inet_pton (Makefile.am): Likewise.
58283         * modules/intprops (Makefile.am): Likewise.
58284         * modules/inttostr (Makefile.am): Likewise.
58285         * modules/inttypes (Makefile.am): Likewise.
58286         * modules/isapipe (Makefile.am): Likewise.
58287         * modules/javaversion (Makefile.am): Likewise.
58288         * modules/lchmod (Makefile.am): Likewise.
58289         * modules/lchown (Makefile.am): Likewise.
58290         * modules/localcharset (Makefile.am): Likewise.
58291         * modules/long-options (Makefile.am): Likewise.
58292         * modules/lstat (Makefile.am): Likewise.
58293         * modules/malloc (Makefile.am): Likewise.
58294         * modules/mathl (Makefile.am): Likewise.
58295         * modules/mbchar (Makefile.am): Likewise.
58296         * modules/md2 (Makefile.am): Likewise.
58297         * modules/md4 (Makefile.am): Likewise.
58298         * modules/md5 (Makefile.am): Likewise.
58299         * modules/memcasecmp (Makefile.am): Likewise.
58300         * modules/memchr (Makefile.am): Likewise.
58301         * modules/memcmp (Makefile.am): Likewise.
58302         * modules/memcoll (Makefile.am): Likewise.
58303         * modules/memcpy (Makefile.am): Likewise.
58304         * modules/memmem (Makefile.am): Likewise.
58305         * modules/memmove (Makefile.am): Likewise.
58306         * modules/mempcpy (Makefile.am): Likewise.
58307         * modules/memrchr (Makefile.am): Likewise.
58308         * modules/memset (Makefile.am): Likewise.
58309         * modules/memxor (Makefile.am): Likewise.
58310         * modules/mkancesdirs (Makefile.am): Likewise.
58311         * modules/mkdir-p (Makefile.am): Likewise.
58312         * modules/mkdir (Makefile.am): Likewise.
58313         * modules/mkdtemp (Makefile.am): Likewise.
58314         * modules/mkstemp (Makefile.am): Likewise.
58315         * modules/mktime (Makefile.am): Likewise.
58316         * modules/modechange (Makefile.am): Likewise.
58317         * modules/mountlist (Makefile.am): Likewise.
58318         * modules/nanosleep (Makefile.am): Likewise.
58319         * modules/obstack (Makefile.am): Likewise.
58320         * modules/openat (Makefile.am): Likewise.
58321         * modules/pagealign_alloc (Makefile.am): Likewise.
58322         * modules/pathmax (Makefile.am): Likewise.
58323         * modules/physmem (Makefile.am): Likewise.
58324         * modules/poll (Makefile.am): Likewise.
58325         * modules/posixtm (Makefile.am): Likewise.
58326         * modules/posixver (Makefile.am): Likewise.
58327         * modules/putenv (Makefile.am): Likewise.
58328         * modules/quote (Makefile.am): Likewise.
58329         * modules/quotearg (Makefile.am): Likewise.
58330         * modules/raise (Makefile.am): Likewise.
58331         * modules/read-file (Makefile.am): Likewise.
58332         * modules/readline (Makefile.am): Likewise.
58333         * modules/readlink (Makefile.am): Likewise.
58334         * modules/readtokens (Makefile.am): Likewise.
58335         * modules/readutmp (Makefile.am): Likewise.
58336         * modules/realloc (Makefile.am): Likewise.
58337         * modules/regex (Makefile.am): Likewise.
58338         * modules/rename-dest-slash (Makefile.am): Likewise.
58339         * modules/rename (Makefile.am): Likewise.
58340         * modules/rijndael (Makefile.am): Likewise.
58341         * modules/rmdir (Makefile.am): Likewise.
58342         * modules/rpmatch (Makefile.am): Likewise.
58343         * modules/safe-read (Makefile.am): Likewise.
58344         * modules/safe-write (Makefile.am): Likewise.
58345         * modules/same-inode (Makefile.am): Likewise.
58346         * modules/same (Makefile.am): Likewise.
58347         * modules/save-cwd (Makefile.am): Likewise.
58348         * modules/savedir (Makefile.am): Likewise.
58349         * modules/setenv (Makefile.am): Likewise.
58350         * modules/settime (Makefile.am): Likewise.
58351         * modules/sha1 (Makefile.am): Likewise.
58352         * modules/sig2str (Makefile.am): Likewise.
58353         * modules/snprintf (Makefile.am): Likewise.
58354         * modules/stat-macros (Makefile.am): Likewise.
58355         * modules/stat-time (Makefile.am): Likewise.
58356         * modules/stdbool (Makefile.am): Likewise.
58357         * modules/stdint (Makefile.am): Likewise.
58358         * modules/stdlib-safer (Makefile.am): Likewise.
58359         * modules/stpcpy (Makefile.am): Likewise.
58360         * modules/stpncpy (Makefile.am): Likewise.
58361         * modules/strcase (Makefile.am): Likewise.
58362         * modules/strcasestr (Makefile.am): Likewise.
58363         * modules/strchrnul (Makefile.am): Likewise.
58364         * modules/strcspn (Makefile.am): Likewise.
58365         * modules/strdup (Makefile.am): Likewise.
58366         * modules/strerror (Makefile.am): Likewise.
58367         * modules/strftime (Makefile.am): Likewise.
58368         * modules/strndup (Makefile.am): Likewise.
58369         * modules/strnlen (Makefile.am): Likewise.
58370         * modules/strpbrk (Makefile.am): Likewise.
58371         * modules/strsep (Makefile.am): Likewise.
58372         * modules/strstr (Makefile.am): Likewise.
58373         * modules/strtod (Makefile.am): Likewise.
58374         * modules/strtoimax (Makefile.am): Likewise.
58375         * modules/strtok_r (Makefile.am): Likewise.
58376         * modules/strtol (Makefile.am): Likewise.
58377         * modules/strtoll (Makefile.am): Likewise.
58378         * modules/strtoul (Makefile.am): Likewise.
58379         * modules/strtoull (Makefile.am): Likewise.
58380         * modules/strtoumax (Makefile.am): Likewise.
58381         * modules/strverscmp (Makefile.am): Likewise.
58382         * modules/sys_socket (Makefile.am): Likewise.
58383         * modules/sys_stat (Makefile.am): Likewise.
58384         * modules/sysexits (Makefile.am): Likewise.
58385         * modules/time_r (Makefile.am): Likewise.
58386         * modules/timegm (Makefile.am): Likewise.
58387         * modules/timespec (Makefile.am): Likewise.
58388         * modules/tmpfile-safer (Makefile.am): Likewise.
58389         * modules/trim (Makefile.am): Likewise.
58390         * modules/unistd-safer (Makefile.am): Likewise.
58391         * modules/unlinkdir (Makefile.am): Likewise.
58392         * modules/unlocked-io (Makefile.am): Likewise.
58393         * modules/userspec (Makefile.am): Likewise.
58394         * modules/utime (Makefile.am): Likewise.
58395         * modules/utimecmp (Makefile.am): Likewise.
58396         * modules/utimens (Makefile.am): Likewise.
58397         * modules/vasnprintf (Makefile.am): Likewise.
58398         * modules/vasprintf (Makefile.am): Likewise.
58399         * modules/vsnprintf (Makefile.am): Likewise.
58400         * modules/xalloc (Makefile.am): Likewise.
58401         * modules/xgetcwd (Makefile.am): Likewise.
58402         * modules/xnanosleep (Makefile.am): Likewise.
58403         * modules/xreadlink (Makefile.am): Likewise.
58404         * modules/xstrtod (Makefile.am): Likewise.
58405         * modules/xstrtol (Makefile.am): Likewise.
58406         * modules/xstrtold (Makefile.am): Likewise.
58407         * modules/yesno (Makefile.am): Likewise.
58408         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58409
58410 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * modules/error (Makefile.am): Distribute files through
58413         EXTRA_DIST, not lib_SOURCES.
58414
58415 2006-10-12  Eric Blake  <ebb9@byu.net>
58416
58417         * modules/error (Makefile.am): Distribute files in /lib.
58418         * modules/obstack (Makefile.am): Likewise.
58419
58420 2006-10-12  Bruno Haible  <bruno@clisp.org>
58421
58422         * modules/acl (Makefile.am): Distribute all files in lib/ through
58423         EXTRA_DIST.
58424         * modules/arcfour (Makefile.am): Likewise.
58425         * modules/arctwo (Makefile.am): Likewise.
58426         * modules/argmatch (Makefile.am): Likewise.
58427         * modules/argz (Makefile.am): Likewise.
58428         * modules/atexit (Makefile.am): Likewise.
58429         * modules/backupfile (Makefile.am): Likewise.
58430         * modules/c-strtod (Makefile.am): Likewise.
58431         * modules/c-strtold (Makefile.am): Likewise.
58432         * modules/calloc (Makefile.am): Likewise.
58433         * modules/canon-host (Makefile.am): Likewise.
58434         * modules/canonicalize (Makefile.am): Likewise.
58435         * modules/chdir-long (Makefile.am): Likewise.
58436         * modules/chdir-safer (Makefile.am): Likewise.
58437         * modules/check-version (Makefile.am): Likewise.
58438         * modules/chown (Makefile.am): Likewise.
58439         * modules/cloexec (Makefile.am): Likewise.
58440         * modules/close-stream (Makefile.am): Likewise.
58441         * modules/closeout (Makefile.am): Likewise.
58442         * modules/crc (Makefile.am): Likewise.
58443         * modules/cycle-check (Makefile.am): Likewise.
58444         * modules/des (Makefile.am): Likewise.
58445         * modules/dirfd (Makefile.am): Likewise.
58446         * modules/dirname (Makefile.am): Likewise.
58447         * modules/dup2 (Makefile.am): Likewise.
58448         * modules/euidaccess (Makefile.am): Likewise.
58449         * modules/exclude (Makefile.am): Likewise.
58450         * modules/exitfail (Makefile.am): Likewise.
58451         * modules/fcntl-safer (Makefile.am): Likewise.
58452         * modules/file-type (Makefile.am): Likewise.
58453         * modules/fileblocks (Makefile.am): Likewise.
58454         * modules/filemode (Makefile.am): Likewise.
58455         * modules/filenamecat (Makefile.am): Likewise.
58456         * modules/fnmatch (Makefile.am): Likewise.
58457         * modules/fopen-safer (Makefile.am): Likewise.
58458         * modules/fpending (Makefile.am): Likewise.
58459         * modules/fprintftime (Makefile.am): Likewise.
58460         * modules/free (Makefile.am): Likewise.
58461         * modules/fsusage (Makefile.am): Likewise.
58462         * modules/ftruncate (Makefile.am): Likewise.
58463         * modules/fts (Makefile.am): Likewise.
58464         * modules/gc (Makefile.am): Likewise.
58465         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58466         * modules/getaddrinfo (Makefile.am): Likewise.
58467         * modules/getcwd (Makefile.am): Likewise.
58468         * modules/getdelim (Makefile.am): Likewise.
58469         * modules/getdomainname (Makefile.am): Likewise.
58470         * modules/getgroups (Makefile.am): Likewise.
58471         * modules/gethostname (Makefile.am): Likewise.
58472         * modules/gethrxtime (Makefile.am): Likewise.
58473         * modules/getline (Makefile.am): Likewise.
58474         * modules/getloadavg (Makefile.am): Likewise.
58475         * modules/getlogin_r (Makefile.am): Likewise.
58476         * modules/getopt (Makefile.am): Likewise.
58477         * modules/getpass (Makefile.am): Likewise.
58478         * modules/getpass-gnu (Makefile.am): Likewise.
58479         * modules/getsubopt (Makefile.am): Likewise.
58480         * modules/gettime (Makefile.am): Likewise.
58481         * modules/gettimeofday (Makefile.am): Likewise.
58482         * modules/getugroups (Makefile.am): Likewise.
58483         * modules/getusershell (Makefile.am): Likewise.
58484         * modules/glob (Makefile.am): Likewise.
58485         * modules/group-member (Makefile.am): Likewise.
58486         * modules/hard-locale (Makefile.am): Likewise.
58487         * modules/hash (Makefile.am): Likewise.
58488         * modules/hmac-md5 (Makefile.am): Likewise.
58489         * modules/hmac-sha1 (Makefile.am): Likewise.
58490         * modules/human (Makefile.am): Likewise.
58491         * modules/idcache (Makefile.am): Likewise.
58492         * modules/imaxabs (Makefile.am): Likewise.
58493         * modules/imaxdiv (Makefile.am): Likewise.
58494         * modules/inet_ntop (Makefile.am): Likewise.
58495         * modules/inet_pton (Makefile.am): Likewise.
58496         * modules/inttostr (Makefile.am): Likewise.
58497         * modules/isapipe (Makefile.am): Likewise.
58498         * modules/lchown (Makefile.am): Likewise.
58499         * modules/long-options (Makefile.am): Likewise.
58500         * modules/lstat (Makefile.am): Likewise.
58501         * modules/malloc (Makefile.am): Likewise.
58502         * modules/mathl (Makefile.am): Likewise.
58503         * modules/mbchar (Makefile.am): Likewise.
58504         * modules/md2 (Makefile.am): Likewise.
58505         * modules/md4 (Makefile.am): Likewise.
58506         * modules/md5 (Makefile.am): Likewise.
58507         * modules/memcasecmp (Makefile.am): Likewise.
58508         * modules/memchr (Makefile.am): Likewise.
58509         * modules/memcmp (Makefile.am): Likewise.
58510         * modules/memcoll (Makefile.am): Likewise.
58511         * modules/memcpy (Makefile.am): Likewise.
58512         * modules/memmem (Makefile.am): Likewise.
58513         * modules/memmove (Makefile.am): Likewise.
58514         * modules/mempcpy (Makefile.am): Likewise.
58515         * modules/memrchr (Makefile.am): Likewise.
58516         * modules/memset (Makefile.am): Likewise.
58517         * modules/memxor (Makefile.am): Likewise.
58518         * modules/mkancesdirs (Makefile.am): Likewise.
58519         * modules/mkdir (Makefile.am): Likewise.
58520         * modules/mkdir-p (Makefile.am): Likewise.
58521         * modules/mkdtemp (Makefile.am): Likewise.
58522         * modules/mkstemp (Makefile.am): Likewise.
58523         * modules/mktime (Makefile.am): Likewise.
58524         * modules/modechange (Makefile.am): Likewise.
58525         * modules/mountlist (Makefile.am): Likewise.
58526         * modules/nanosleep (Makefile.am): Likewise.
58527         * modules/openat (Makefile.am): Likewise.
58528         * modules/pagealign_alloc (Makefile.am): Likewise.
58529         * modules/physmem (Makefile.am): Likewise.
58530         * modules/poll (Makefile.am): Likewise.
58531         * modules/posixtm (Makefile.am): Likewise.
58532         * modules/posixver (Makefile.am): Likewise.
58533         * modules/putenv (Makefile.am): Likewise.
58534         * modules/quote (Makefile.am): Likewise.
58535         * modules/quotearg (Makefile.am): Likewise.
58536         * modules/raise (Makefile.am): Likewise.
58537         * modules/read-file (Makefile.am): Likewise.
58538         * modules/readline (Makefile.am): Likewise.
58539         * modules/readlink (Makefile.am): Likewise.
58540         * modules/readtokens (Makefile.am): Likewise.
58541         * modules/readutmp (Makefile.am): Likewise.
58542         * modules/realloc (Makefile.am): Likewise.
58543         * modules/regex (Makefile.am): Likewise.
58544         * modules/rename (Makefile.am): Likewise.
58545         * modules/rename-dest-slash (Makefile.am): Likewise.
58546         * modules/rijndael (Makefile.am): Likewise.
58547         * modules/rmdir (Makefile.am): Likewise.
58548         * modules/rpmatch (Makefile.am): Likewise.
58549         * modules/safe-read (Makefile.am): Likewise.
58550         * modules/safe-write (Makefile.am): Likewise.
58551         * modules/same (Makefile.am): Likewise.
58552         * modules/save-cwd (Makefile.am): Likewise.
58553         * modules/savedir (Makefile.am): Likewise.
58554         * modules/setenv (Makefile.am): Likewise.
58555         * modules/settime (Makefile.am): Likewise.
58556         * modules/sha1 (Makefile.am): Likewise.
58557         * modules/sig2str (Makefile.am): Likewise.
58558         * modules/snprintf (Makefile.am): Likewise.
58559         * modules/stdlib-safer (Makefile.am): Likewise.
58560         * modules/stpcpy (Makefile.am): Likewise.
58561         * modules/stpncpy (Makefile.am): Likewise.
58562         * modules/strcase (Makefile.am): Likewise.
58563         * modules/strcasestr (Makefile.am): Likewise.
58564         * modules/strchrnul (Makefile.am): Likewise.
58565         * modules/strcspn (Makefile.am): Likewise.
58566         * modules/strdup (Makefile.am): Likewise.
58567         * modules/strerror (Makefile.am): Likewise.
58568         * modules/strftime (Makefile.am): Likewise.
58569         * modules/strndup (Makefile.am): Likewise.
58570         * modules/strnlen (Makefile.am): Likewise.
58571         * modules/strpbrk (Makefile.am): Likewise.
58572         * modules/strsep (Makefile.am): Likewise.
58573         * modules/strstr (Makefile.am): Likewise.
58574         * modules/strtod (Makefile.am): Likewise.
58575         * modules/strtoimax (Makefile.am): Likewise.
58576         * modules/strtok_r (Makefile.am): Likewise.
58577         * modules/strtol (Makefile.am): Likewise.
58578         * modules/strtoll (Makefile.am): Likewise.
58579         * modules/strtoul (Makefile.am): Likewise.
58580         * modules/strtoull (Makefile.am): Likewise.
58581         * modules/strtoumax (Makefile.am): Likewise.
58582         * modules/strverscmp (Makefile.am): Likewise.
58583         * modules/time_r (Makefile.am): Likewise.
58584         * modules/timegm (Makefile.am): Likewise.
58585         * modules/tmpfile-safer (Makefile.am): Likewise.
58586         * modules/unistd-safer (Makefile.am): Likewise.
58587         * modules/unlinkdir (Makefile.am): Likewise.
58588         * modules/userspec (Makefile.am): Likewise.
58589         * modules/utime (Makefile.am): Likewise.
58590         * modules/utimecmp (Makefile.am): Likewise.
58591         * modules/utimens (Makefile.am): Likewise.
58592         * modules/vasnprintf (Makefile.am): Likewise.
58593         * modules/vasprintf (Makefile.am): Likewise.
58594         * modules/vsnprintf (Makefile.am): Likewise.
58595         * modules/xalloc (Makefile.am): Likewise.
58596         * modules/xgetcwd (Makefile.am): Likewise.
58597         * modules/xnanosleep (Makefile.am): Likewise.
58598         * modules/xreadlink (Makefile.am): Likewise.
58599         * modules/xstrtod (Makefile.am): Likewise.
58600         * modules/xstrtol (Makefile.am): Likewise.
58601         * modules/xstrtold (Makefile.am): Likewise.
58602         * modules/yesno (Makefile.am): Likewise.
58603
58604 2006-10-12  Jim Meyering  <jim@meyering.net>
58605
58606         * m4/getloadavg.m4: Revert the change below.
58607
58608         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58609         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58610         fail with a symlink, which is what coreutils' ./bootstrap now
58611         creates by default.
58612
58613 2006-10-12  Bruno Haible  <bruno@clisp.org>
58614
58615         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58616         mingw.
58617         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58618         MSVC and mingw explicitly.
58619
58620 2006-10-11  Simon Josefsson  <jas@extundo.com>
58621             Bruno Haible  <bruno@clisp.org>
58622
58623         Add support for multiple gnulib-tool invocations in the scope of a
58624         single configure.ac file.
58625         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58626         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58627         with the same contents as the _LIBADD variable.
58628         (func_emit_initmacro_start, func_emit_initmacro_end,
58629         func_emit_initmacro_done): New functions.
58630         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58631         gl_LIBOBJS and gl_LTLIBOBJS.
58632
58633 2006-10-11  Bruno Haible  <bruno@clisp.org>
58634
58635         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58636         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58637         autoreconf. Instead, invoke autopoint explicitly but move back the
58638         *.m4 files from gnulib.
58639
58640 2006-10-11  Bruno Haible  <bruno@clisp.org>
58641
58642         * gnulib-tool (func_usage): Make module names after --create-testdir
58643         optional.
58644         (func_create_testdir): If no module was specified, use nearly all
58645         modules.
58646
58647 2006-10-12  Jim Meyering  <jim@meyering.net>
58648
58649         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58650         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58651         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58652         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58653         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58654         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58655         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58656         (fts_set_stat_required): New function.
58657         (fts_open): Defer the calls to fts_stat, if possible or requested.
58658         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58659         into fts_stat itself.
58660         (fts_read): Perform any required (deferred) fts_stat call.
58661         (fts_build): Likewise, for the directory we're about to open and read.
58662         In the readdir loop, carefully decide whether each entry will require
58663         an eventual call to fts_stat, using dirent.d_type info if available.
58664         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58665         a command line argument into this function.  Update all callers.
58666         Map a return value of FTS_DOT to FTS_D for a command line argument.
58667         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58668         Thanks to Miklos Szeredi for his tenacity and for the initial
58669         bug report about "find" failing on a FUSE-based file system.
58670
58671         * lib/fts.c (fts_open): Use consistent indentation.
58672
58673 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58676         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58677         reported by Jim Meyering.  All uses of cache variables renamed
58678         to match Autoconf's.
58679         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58680         the other one.
58681
58682         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58683         Fix misspelling in diagnostic.
58684
58685 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58686
58687         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58688         defined.  Problem reported by Matthew Woehlke.
58689
58690         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58691         Add support for Tandem NonStop R series.
58692         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58693         Use new macro.
58694
58695         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58696         (has_trailing_slash): Omit size arg; all callers changed.
58697         Omit 'inline', since it doesn't help performance and we'd
58698         need to configure it.
58699         Don't count //, ///, etc. as having a trailing slash.
58700         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58701         (rpl_rename_dest_slash): On failure, use rename's errno rather
58702         than (in some cases) an incorrect or junk errno.
58703         Simplify code by removing need to compute length; this does
58704         cause it to make two passes instead of one over the file name,
58705         but it's worth it.
58706
58707         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58708         change, since Autoconf's version may no longer be appropriate now
58709         that we are using CVS Autoconf's version.  Add support for Tandem.
58710
58711 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58712             Bruno Haible  <bruno@clisp.org>
58713
58714         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58715         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58716         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58717         gl_AC_TYPE_LONG_LONG.
58718
58719         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58720         instead of HAVE_LONG_LONG.
58721         * lib/printf-args.c (printf_fetchargs): Likewise.
58722         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58723         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58724         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58725         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58726         gl_AC_TYPE_LONG_LONG.
58727
58728 2006-10-11  Bruno Haible  <bruno@clisp.org>
58729
58730         * m4/longlong.m4: Add comments.
58731         * m4/ulonglong.m4: Likewise.
58732
58733 2006-10-10  Bruno Haible  <bruno@clisp.org>
58734
58735         Make it possible to #define stpcpy, strdup to aliases.
58736         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58737         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58738
58739 2006-10-10  Bruno Haible  <bruno@clisp.org>
58740
58741         Make it possible to #define gcd to an alias.
58742         * lib/gcd.c: Include config.h.
58743
58744 2006-10-10  Bruno Haible  <bruno@clisp.org>
58745
58746         Make it possible to #define c_isascii to an alias.
58747         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58748         defined. Undefine the macros before defining them, to avoid gcc
58749         warnings.
58750         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58751         define NO_C_CTYPE_MACROS early.
58752
58753 2006-10-10  Bruno Haible  <bruno@clisp.org>
58754
58755         Make it possible to #define set_program_name to an alias.
58756         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58757         ENABLE_RELOCATABLE early.
58758
58759 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58760
58761         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58762         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58763         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58764         More generally, don't assume that 64-bit signed int is available
58765         if unsigned int is, and vice versa.
58766         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58767         unsigned symbols, not on their signed counterparts.
58768         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58769         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58770         (UINT64_C, UINTMAX_C):
58771         Likewise.
58772         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58773         unsigned counterparts.
58774         (Have_long_long, Unsigned): New macros.
58775         (Int): Renamed from INT.
58776         (strtoimax): Use the new macros.
58777         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58778         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58779         * modules/inttypes (inttypes.h): Substitute
58780         HAVE_UNSIGNED_LONG_LONG_INT.
58781         * modules/stdint (stdint.h): Likewise.
58782         (Files): Add m4/ulonglong.m4.
58783
58784 2006-10-10  Bruno Haible  <bruno@clisp.org>
58785
58786         Fix a gcc -Wshadow warning.
58787         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58788         to 'bucket'.
58789         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58790         gl_linked_indexof_from_to): Likewise.
58791         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58792         Likewise.
58793         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58794         Likewise.
58795         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58796         Reported by Eric Blake.
58797
58798 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58801         for NetBSD.  Problem reported by Bruno Haible.
58802
58803 2006-10-09  Jim Meyering  <jim@meyering.net>
58804
58805         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58806         Patch from Bruno Haible.
58807
58808 2006-10-09  Jim Meyering  <jim@meyering.net>
58809
58810         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58811         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58812         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58813
58814 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58815
58816         Don't include <config.h> twice; this doesn't work in some cases,
58817         e.g., when config.h has "#define intmax_t long long int" and
58818         we include <config.h>, <inttypes.h>, <config.h> in that order.
58819         Problem reported by Matthew Woehlke in:
58820         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58821         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58822         * lib/fts-cycle.c: Don't include config.h.
58823         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58824         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58825         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58826         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58827         inttypes.h.
58828         * lib/xstrtoumax.c: Likewise.
58829         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58830         __strtol and the like, so that this module is more like its siblings.
58831         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58832         Remove; no longer needed now that we assume gnulib inttypes.h.
58833
58834 2006-10-08  Bruno Haible  <bruno@clisp.org>
58835
58836         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58837         option.
58838
58839 2006-10-07  Jim Meyering  <jim@meyering.net>
58840
58841         * modules/inttypes (inttypes.h): Revert what seems to have been
58842         an inadvertent part of today's change: use "|", not "/" in the
58843         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58844
58845 2006-10-07  Bruno Haible  <bruno@clisp.org>
58846
58847         * modules/sublist: New file.
58848
58849 2006-10-07  Bruno Haible  <bruno@clisp.org>
58850
58851         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58852         * modules/argz (argz.h): Likewise.
58853         * modules/arpa_inet (arpa/inet.h): Likewise.
58854         * modules/byteswap (byteswap.h): Likewise.
58855         * modules/configmake (configmake.h): Likewise.
58856         * modules/fcntl (fcntl.h): Likewise.
58857         * modules/fnmatch (fnmatch.h): Likewise.
58858         * modules/getopt (getopt.h): Likewise.
58859         * modules/glob (glob.h): Likewise.
58860         * modules/inttypes (inttypes.h): Likewise.
58861         * modules/netinet_in (netinet/in.h): Likewise.
58862         * modules/poll (poll.h): Likewise.
58863         * modules/stdbool (stdbool.h): Likewise.
58864         * modules/stdint (stdint.h): Likewise.
58865         * modules/sys_select (sys/select.h): Likewise.
58866         * modules/sys_socket (sys/socket.h): Likewise.
58867         * modules/sys_stat (sys/stat.h): Likewise.
58868         * modules/sysexits (sysexits.h): Likewise.
58869         * modules/unistd (unistd.h): Likewise.
58870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58871         Add a "DO NOT EDIT" comment to the generated file.
58872         (func_import): Likewise for gnulib-comp.m4.
58873
58874 2006-10-07  Bruno Haible  <bruno@clisp.org>
58875
58876         * lib/gl_sublist.h: New file.
58877         * lib/gl_sublist.c: New file.
58878
58879 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58882         name (relative to the original working directory) and the file
58883         name component (relative to the temporary working directory).  All
58884         callers changed.
58885         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58886         * lib/mkdir-p.c (make_dir_parents): Likewise.
58887         * lib/mkdir-p.h (make_dir_parents): Likewise.
58888
58889 2006-10-06  Eric Blake  <ebb9@byu.net>
58890
58891         Define several macros for use by the clean-temp module.
58892         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58893         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58894         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58895
58896         * lib/clean-temp.h (close_stream_temp): New declaration.
58897         * lib/clean-temp.c (includes): Pull in headers according to what
58898         other modules are in use.
58899         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58900
58901 2006-10-06  Bruno Haible  <bruno@clisp.org>
58902
58903         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58904         instead of fopen, fwriteerror.
58905
58906 2006-10-06  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58909         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58910         int.
58911         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58912         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58913         Return an error indicator.
58914         Suggested by Eric Blake.
58915
58916 2006-10-06  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58919         Reported by Eric Blake.
58920
58921 2006-10-06  Bruno Haible  <bruno@clisp.org>
58922
58923         * modules/closeout (Description): Mention stderr too.
58924
58925 2006-10-06  Bruno Haible  <bruno@clisp.org>
58926         and Paul Eggert  <eggert@cs.ucla.edu>
58927
58928         * lib/closeout.c (close_stdout): Also close stderr.
58929         * lib/closeout.h: Update comment.
58930
58931 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58934         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58935         * lib/dirchownmod.c: Include lchown.h.
58936         * lib/lchown.c: Don't include files that lchown.h now includes.
58937         Don't declare chown, since lchown.h now does that.
58938         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58939         (lchown): Define to rpl_chown if lchown is declared but
58940         does not exist.  Declare using a prototype if lchown is not
58941         declared.  Add a copyright notice.
58942         * lib/mkstemp.h: Include <unistd.h>.
58943         * lib/openat.c: Include lchown.h.
58944
58945         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58946         we now test for that separately.
58947         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58948         rather than O_NOFOLLOW, when testing whether it's possible to
58949         avoid a race condition reliably.
58950         * lib/savewd.c (savewd_chdir): Likewise.
58951
58952         Remove macros that are no longer needed now that stdint.h is
58953         reliable.
58954         * lib/fsusage.c (UINTMAX_MAX): Remove.
58955         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58956         * lib/utimecmp.c (SIZE_MAX): Remove.
58957
58958         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58959
58960         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58961         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58962         O_NOATIME works.
58963
58964 2006-10-05  Bruno Haible  <bruno@clisp.org>
58965
58966         * lib/gl_list.h (gl_sortedlist_search_from_to,
58967         gl_sortedlist_indexof_from_to): New declarations.
58968         (gl_list_implementation): New fields sortedlist_search_from_to,
58969         sortedlist_indexof_from_to.
58970         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58971         inline functions.
58972         * lib/gl_list.c (gl_sortedlist_search_from_to,
58973         gl_sortedlist_indexof_from_to): New functions.
58974         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58975         function.
58976         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58977         (gl_array_sortedlist_search_from_to): New function.
58978         (gl_array_list_implementation): Update.
58979         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58980         function.
58981         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58982         (gl_carray_sortedlist_search_from_to): New function.
58983         (gl_carray_list_implementation): Update.
58984         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58985         gl_linked_sortedlist_indexof_from_to): New functions.
58986         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58987         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58988         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58989         gl_tree_sortedlist_indexof_from_to): New functions.
58990         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58991         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58992         Update.
58993         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58994         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58995         Update.
58996
58997 2006-10-05  Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59000         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59001         (struct gl_list_implementation): Add fields search_from_to,
59002         indexof_from_to. Remove fields search, indexof.
59003         (gl_list_search): Use the search_from_to method.
59004         (gl_list_search_from, gl_list_search_from_to): New functions.
59005         (gl_list_indexof): Use the indexof_from_to method.
59006         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59007         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59008         (gl_list_search_from, gl_list_search_from_to): New functions.
59009         (gl_list_indexof): Use the indexof_from_to method.
59010         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59011         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59012         gl_array_indexof. Add start_index, end_index arguments.
59013         (gl_array_search_from_to): Renamed from gl_array_search. Add
59014         start_index, end_index arguments.
59015         (gl_array_remove, gl_array_list_implementation): Update.
59016         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59017         gl_carray_indexof. Add start_index, end_index arguments.
59018         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59019         start_index, end_index arguments.
59020         (gl_carray_remove, gl_carray_list_implementation): Update.
59021         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59022         gl_linked_search. Add start_index, end_index arguments.
59023         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59024         start_index, end_index arguments.
59025         (gl_linked_remove): Update.
59026         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59027         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59028         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59029         field to 'size_t'.
59030         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59031         gl_tree_search. Add start_index, end_index arguments.
59032         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59033         start_index, end_index arguments.
59034         (gl_tree_remove): Update.
59035         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59036         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59037         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59038         function.
59039         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59040         gl_tree_search. Add start_index, end_index arguments.
59041         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59042         start_index, end_index arguments.
59043         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59044         Update.
59045         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59046
59047 2006-10-05  Bruno Haible  <bruno@clisp.org>
59048
59049         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59050
59051         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59052         fwriteerror_temp): New declarations.
59053         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59054         (descriptors): New variable.
59055         (cleanup): First, close the descriptors.
59056         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59057         fclose_temp, fwriteerror_temp): New functions.
59058
59059 2006-10-04  Jim Meyering  <jim@meyering.net>
59060
59061         * lib/fts.c (fts_open): Tiny comment change.
59062
59063 2006-10-04  Bruno Haible  <bruno@clisp.org>
59064
59065         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59066         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59067         gl_LOCK_BODY.
59068         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59069         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59070         gl_LOCK_EARLY_BODY.
59071         (gl_LOCK): Require gl_LOCK_BODY.
59072
59073 2006-10-04  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59076         (gl_oset_search_atleast): New declaration.
59077         (struct gl_oset_implementation): Add field 'search_atleast'.
59078         (gl_oset_search_atleast): New inline function.
59079         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59080         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59081         (gl_array_oset_implementation): Update.
59082         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59083         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59084         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59085
59086 2006-10-04  Bruno Haible  <bruno@clisp.org>
59087
59088         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59089
59090 2006-10-03  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59093         from gl_avltreehash_list_implementation.
59094
59095 2006-10-03  Bruno Haible  <bruno@clisp.org>
59096
59097         * lib/gl_oset.c (gl_oset_add): Fix return type.
59098
59099 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59100
59101         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59102
59103 2006-10-02  Eric Blake  <ebb9@byu.net>
59104
59105         * modules/strnlen (Depends-on): Add extensions.
59106
59107 2006-10-02  Eric Blake  <ebb9@byu.net>
59108
59109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59110         definition in 2.60+.
59111
59112 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59113
59114         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59115         checks.
59116
59117 2006-10-02  Bruno Haible  <bruno@clisp.org>
59118
59119         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59120         to the AUTOMAKE_OPTIONS.
59121         Reported by Jim Meyering.
59122
59123 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59124
59125         Work around bug in Solaris 10 /proc file system:
59126         /proc/self/fd/NNN/.. isn't the parent directory of
59127         the directory whose file descriptor is NNN.  This needs to
59128         be worked around at run time, not compile time, since a
59129         program might be built on Solaris 8, where things work, and
59130         run on Solaris 10.
59131         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59132         to use the following interface instead:
59133         (OPENAT_BUFFER_SIZE): New macro.
59134         (openat_proc_name): New function.
59135         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59136         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59137         Likewise.
59138         * lib/openat-proc.c: New file.
59139         * modules/openat (Files): Add lib/openat-proc.c.
59140         (Depends-on): Add same-inode, stdbool.
59141         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59142
59143 2006-09-29  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59146         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59147         argument. Set stdout_closed before testing for ferror, not after.
59148         (fwriteerror, fwriteerror_no_ebadf): New functions.
59149
59150 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59151
59152         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59153
59154 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59155
59156         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59157         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59158
59159 2006-09-28  Jim Meyering  <jim@meyering.net>
59160
59161         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59162         Include <unistd.h>.
59163
59164 2006-09-28  Bruno Haible  <bruno@clisp.org>
59165
59166         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59167         * modules/linkedhash-list (Depends-on): Likewise.
59168         * modules/rbtreehash-list (Depends-on): Likewise.
59169
59170 2006-09-28  Bruno Haible  <bruno@clisp.org>
59171
59172         * lib/strndup.h: Simplify the redefinition of strndup.
59173         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59174         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59175
59176 2006-09-28  Bruno Haible  <bruno@clisp.org>
59177
59178         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59179         * lib/gl_linkedhash_list.c: Likewise.
59180         * lib/gl_rbtreehash_list.c: Likewise.
59181
59182 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59183
59184         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59185         getaddrinfo.
59186
59187         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59188         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59189         it causes <stdio_ext.h> to cause a compile-time error.
59190         Problem reported by Nelson H. F. Beebe.
59191         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59192         of HAVE_DECL___PENDING.
59193
59194         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59195         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59196         declaration.
59197
59198 2006-09-27  Jim Meyering  <jim@meyering.net>
59199
59200         This file could end up with a definition for a function
59201         named __strndup, rather than rpl_strndup on a system with
59202         incomplete weak_alias support.
59203         * lib/strndup.c (strndup): Rename from __strndup.
59204         Remove #defines that used to map __strndup to strndup.
59205         Don't use K&R prototypes.
59206         Remove LIBC-related code, since this file is not sync'd with glibc.
59207         * lib/strndup.h: Revamp, accordingly.
59208         * m4/strndup.m4: Modernize.
59209
59210 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * modules/savewd (Depends-on): Add 'raise'.
59213         * lib/savewd.c: Include <signal.h>, for 'raise'.
59214
59215 2006-09-26  Jim Meyering  <jim@meyering.net>
59216
59217         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59218         when we detect Darwin 8.7.0's acl_get_file bug.
59219         Rearrange to perform the new (below) run-test while $LIBS
59220         contains any acl-related library.  Set USE_ACL at the end.
59221         (gl_ACL_GET_FILE): New function.
59222
59223 2006-09-26  Eric Blake  <ebb9@byu.net>
59224
59225         * lib/verror.c: Include <config.h> unconditionally.
59226
59227 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * modules/clock-time (Maintainer): Add self.
59230         * modules/getlogin_r (Depends-on): Add extensions.
59231
59232 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59233
59234         * modules/clock-time: New module.
59235         * modules/nanosleep (Depends-on): Add clock-time.
59236         * modules/gethrxtime (Depends-on): Likewise.
59237         * modules/gettime (Depends-on): Likewise.
59238         * modules/settime (Depends-on): Likewise.
59239
59240         * modules/fts-lgpl: Depend on openat.
59241         * modules/mkancesdirs: Depend on savewd.
59242         * modules/mkdir-p: Likewise.
59243
59244 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59245
59246         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59247
59248         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59249         `gl_have_arbitrary_file_name_length_limit' to
59250         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59251         actually works between configure runs.
59252
59253 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59254             Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59257
59258 2006-09-25  Jim Meyering  <jim@meyering.net>
59259
59260         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59261         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59262
59263 2006-09-25  Eric Blake  <ebb9@byu.net>
59264
59265         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59266         exec's in 2006-09-18 patch when shuffling fds.
59267
59268 2006-09-25  Bruno Haible  <bruno@clisp.org>
59269
59270         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59271         Reported by Jim Meyering.
59272
59273 2006-09-24  Jim Meyering  <jim@meyering.net>
59274
59275         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59276         compare a pointer against a literal "0".  That caused failures with
59277         at least HP-UX's hpcc.
59278
59279 2006-09-22  Simon Josefsson  <jas@extundo.com>
59280
59281         * modules/gc-sha1:
59282         * modules/gc-md4:
59283         * modules/gc-hmac-sha1:
59284         * modules/gc-hmac-md5:
59285         * modules/gc-des:
59286         * modules/gc-arcfour: Distribute more files.
59287
59288 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59289
59290         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59291         (gl_linked_iterator_from_to): Initialize struct completely.
59292         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59293         (gl_tree_iterator_from_to): Likewise
59294         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59295         * lib/gl_array_list.c [lint] (gl_array_iterator)
59296         (gl_array_iterator_from_to): Likewise.
59297         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59298         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59299         (gl_carray_iterator_from_to): Likewise.
59300
59301         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59302         * lib/md4.c (md4_process_block): Remove unused variable.
59303         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59304         parentheses for clarity.
59305
59306 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59307
59308         * modules/bison-i18n (Depends-on): Add gettext.
59309
59310 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59311
59312         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59313         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59314         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59315         also add missing comma that caused broken test.
59316         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59317         stdlib.h, for `abort'.
59318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59319         variables.
59320         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59321         include unistd.h if present, for `rmdir'.
59322         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59323         variables.
59324         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59325         in the process include standard headers for prototypes.
59326         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59327         gets declared on GNU/Linux.
59328         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59329         unistd.h, for `rmdir'.
59330         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59331
59332         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59333         always true.
59334         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59335
59336         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59337
59338 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59339
59340         * gnulib-tool (func_version): Create output all at once.  This
59341         may help avoid triggering unnecessary SIGPIPEs, and at any
59342         rate it doesn't hurt.
59343
59344 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59345             Bruno Haible  <bruno@clisp.org>
59346
59347         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59348         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59349         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59350
59351         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59352         (gl_FUNC_VASPRINTF): Invoke it.
59353
59354 2006-09-22  Bruno Haible  <bruno@clisp.org>
59355
59356         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59357         getloadavg.c as first argument.
59358
59359 2006-09-22  Bruno Haible  <bruno@clisp.org>
59360
59361         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59362         at the beginning of the gl_INIT macro.
59363         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59364         gl_GETLOADAVG.
59365
59366 2006-09-22  Bruno Haible  <bruno@clisp.org>
59367
59368         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59369         module.
59370         Suggested by Ralf Wildenhues.
59371
59372 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         Import this patch from libc:
59375
59376         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59377
59378         * lib/regex_internal.c (re_string_reconstruct): Handle
59379         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59380         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59381         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59382         re_string_context_at.
59383
59384         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59385         now requires it.
59386         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59387         gl_REGEX now does it for us.
59388         (gl_REGEX): Add test taken from
59389         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59390
59391         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59392         Check that large offsets work.  Modernize Autoconf usages.
59393         Prefer "yes" to mean a good thing rather than a bad.
59394         Don't put "#define mkstemp" in config.h, as this might interfere
59395         with standard system headers that "#define mkstemp mkstemp64".
59396
59397         * modules/mkstemp (Depends-on): Add extensions, so that
59398         mkstemp is visible on some platforms.
59399         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59400         (Include): Change to "mkstemp.h" from <stdlib.h>.
59401         (Files): Add mkstemp.h.
59402
59403         * lib/mkstemp.h: New file, since some standard headers
59404         #define mkstemp.
59405         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59406         Include "mkstemp.h".
59407         Make the _LIBC code resemble glibc original more,
59408         e.g., use K&R style.
59409         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59410         (mkstemp): Remove, since mkstemp.h does this for us.
59411         * lib/stdlib--.h: Include mkstemp.h.
59412
59413         Import this patch from libc:
59414
59415         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59416
59417         * lib/tempname.c (__gen_tempname): Change attempts_min
59418         into a macro.  Use preprocessor to decide how to initialize
59419         attempts [Coverity CID 67].
59420
59421 2006-09-20  Bruno Haible  <bruno@clisp.org>
59422
59423         * lib/mkdtemp.c: Import from libc.
59424         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59425                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59426                 attempts_min into a macro.  Use preprocessor to decide how to
59427                 initialize attempts [Coverity CID 67].
59428         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59429                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59430                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59431
59432 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59433
59434         * gnulib-tool (func_exit): New function, to allow to pass the
59435         exit status portably through the trap.  Use everywhere.
59436         (--help, --version): Signal a write error.
59437         (trap): catch SIGPIPE, for write errors.
59438         Exit at the end of the trap, with the correct exit status.
59439
59440 2006-09-19  Karl Berry  <karl@gnu.org>
59441
59442         * doc/gnulib.texi: note about the license texinfo files.
59443
59444 2006-09-19  Eric Blake  <ebb9@byu.net>
59445
59446         * gnulib-tool: Avoid space-tab.
59447
59448 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59451         that prevented coreutils 6.1 from building.  Problem reported
59452         by Petter Reinholdtsen.
59453
59454 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59455
59456         * gnulib-tool (avoidlist): Fix typo that broke options like
59457         --avoid=lock that are used by coreutils bootstrap.
59458
59459 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59460
59461         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59462         more systematically.
59463
59464 2006-09-18  Jim Meyering  <jim@meyering.net>
59465
59466         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59467
59468 2006-09-18  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59471
59472 2006-09-18  Bruno Haible  <bruno@clisp.org>
59473
59474         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59475         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59476         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59477         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59478         * m4/gettext.m4: Require autoconf >= 2.52.
59479         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59480         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59481         of gl_cv_header_inttypes_h.
59482
59483 2006-09-18  Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/javaversion.c: Include configmake.h.
59486
59487 2006-09-18  Bruno Haible  <bruno@clisp.org>
59488
59489         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59490         avoid that the while loops be executed in a subshell.
59491
59492 2006-09-18  Bruno Haible  <bruno@clisp.org>
59493
59494         * MODULES.html.sh (func_module): Break long lines.
59495         Suggested by Bruce Korb <bkorb@gnu.org>.
59496
59497 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59498
59499         Speed up by a factor of 1.12.
59500         * gnulib-tool (nl): New variable.
59501         (func_import): Rewrite include directive extraction to only read each
59502         directive once.
59503
59504 2006-09-17  Bruno Haible  <bruno@clisp.org>
59505
59506         * modules/javaversion (Makefile.am): Remove DEFS setting.
59507         (Depends-on): Add configmake, for PKGDATADIR definition.
59508
59509 2006-09-17  Bruno Haible  <bruno@clisp.org>
59510
59511         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59512
59513 2006-09-17  Bruno Haible  <bruno@clisp.org>
59514
59515         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59516         (func_modules_transitive_closure, func_modules_add_dummy,
59517         func_modules_to_filelist, func_import, func_create_testdir,
59518         func_create_megatestdir, ...): Use it wherever possible.
59519         Suggested by Ralf Wildenhues.
59520
59521 2006-09-16  Karl Berry  <karl@gnu.org>
59522
59523         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59524         to avoid sectioning errors.
59525         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59526         [ifinfo]: blank line after @center-ed titles.
59527         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59528         Spell FSF address consistently with others.
59529         (These changes approved by rms.)
59530
59531 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59532
59533         Speed up by a factor of 1.61.
59534         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59535         already checked module names again.
59536
59537 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59538
59539         Speed up by a factor of 1.13.
59540         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59541         for new_files, and the input to func_add_or_update.
59542
59543 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59544
59545         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59546         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59547
59548 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         * modules/mkancesdirs (Depends-on): Add fcntl.
59551         * modules/savewd: New file.
59552         * MODULES.html.sh (File system functions): Add savewd.
59553
59554         * modules/configmake (Makefile.am): Add support for the
59555         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59556
59557 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * m4/savewd.m4: New file.
59560
59561 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59564         (dirchownmod): New arg FD.  All callers changed.
59565         Use FD rather than opening the directory ourself, as opening is
59566         now the caller's responsibility.
59567         * lib/dirchownmod.h: Likewise.
59568         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59569         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59570         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59571         (test_dir): Remove.
59572         (mkancesdirs): Return length of prefix of FILE that has already
59573         been made, or -2 if there is a child doing the work.  Redo
59574         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59575         ".", and treat ".." specially since it might stray back into
59576         already-created areas.  Use a subprocess if necessary.  New arg
59577         WD; all users changed.  MAKE_DIR function should now return 1
59578         if it creates a directory that is not readable.  Return -2 if
59579         a child process is spun off.
59580         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59581         Adjust signature to match code.
59582         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59583         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59584         all users changed.
59585         * lib/savewd.c, lib/savewd.h: New files.
59586
59587 2006-09-15  Jim Meyering  <jim@meyering.net>
59588
59589         * modules/rename-dest-slash: New module.
59590         * MODULES.html.sh (posix_compat): Add it here.
59591
59592         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59593
59594 2006-09-15  Jim Meyering  <jim@meyering.net>
59595
59596         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59597         file.
59598
59599         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59600
59601 2006-09-15  Jim Meyering  <jim@meyering.net>
59602
59603         * lib/rename-dest-slash.c (has_trailing_slash): Use
59604         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59605         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59606         test before testing whether SRC is a directory.
59607         Suggestions from Bruno Haible.
59608
59609         Avoid a warning about an unused variable.
59610         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59611         into the #ifdef block where it's used.
59612
59613         * lib/rename-dest-slash.c: New file.
59614
59615 2006-09-14  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/allocsa.c: Include <config.h> unconditionally.
59618         * lib/asnprintf.c: Likewise.
59619         * lib/asprintf.c: Likewise.
59620         * lib/c-strcasecmp.c: Likewise.
59621         * lib/c-strcasestr.c: Likewise.
59622         * lib/c-strncasecmp.c: Likewise.
59623         * lib/c-strstr.c: Likewise.
59624         * lib/classpath.c: Likewise.
59625         * lib/clean-temp.c: Likewise.
59626         * lib/concatpath.c: Likewise.
59627         * lib/copy-file.c: Likewise.
59628         * lib/csharpcomp.c: Likewise.
59629         * lib/csharpexec.c: Likewise.
59630         * lib/execute.c: Likewise.
59631         * lib/fatal-signal.c: Likewise.
59632         * lib/findprog.c: Likewise.
59633         * lib/fwriteerror.c: Likewise.
59634         * lib/gl_array_list.c: Likewise.
59635         * lib/gl_array_oset.c: Likewise.
59636         * lib/gl_avltree_list.c: Likewise.
59637         * lib/gl_avltree_oset.c: Likewise.
59638         * lib/gl_avltreehash_list.c: Likewise.
59639         * lib/gl_carray_list.c: Likewise.
59640         * lib/gl_linked_list.c: Likewise.
59641         * lib/gl_linkedhash_list.c: Likewise.
59642         * lib/gl_list.c: Likewise.
59643         * lib/gl_oset.c: Likewise.
59644         * lib/gl_rbtree_list.c: Likewise.
59645         * lib/gl_rbtree_oset.c: Likewise.
59646         * lib/gl_rbtreehash_list.c: Likewise.
59647         * lib/imaxabs.c: Likewise.
59648         * lib/imaxdiv.c: Likewise.
59649         * lib/javacomp.c: Likewise.
59650         * lib/javaexec.c: Likewise.
59651         * lib/javaversion.c: Likewise.
59652         * lib/linebreak.c: Likewise.
59653         * lib/localcharset.c: Likewise.
59654         * lib/lock.c: Likewise.
59655         * lib/mbchar.c: Likewise.
59656         * lib/mbswidth.c: Likewise.
59657         * lib/mkdtemp.c: Likewise.
59658         * lib/pipe.c: Likewise.
59659         * lib/printf-args.c: Likewise.
59660         * lib/printf-parse.c: Likewise.
59661         * lib/progname.c: Likewise.
59662         * lib/progreloc.c: Likewise.
59663         * lib/readlink.c: Likewise.
59664         * lib/sh-quote.c: Likewise.
59665         * lib/stpcpy.c: Likewise.
59666         * lib/stpncpy.c: Likewise.
59667         * lib/strcasecmp.c: Likewise.
59668         * lib/strcasestr.c: Likewise.
59669         * lib/strcspn.c: Likewise.
59670         * lib/striconv.c: Likewise.
59671         * lib/strncasecmp.c: Likewise.
59672         * lib/strnlen1.c: Likewise.
59673         * lib/strstr.c: Likewise.
59674         * lib/strtok_r.c: Likewise.
59675         * lib/tls.c: Likewise.
59676         * lib/tmpdir.c: Likewise.
59677         * lib/unicodeio.c: Likewise.
59678         * lib/unsetenv.c: Likewise.
59679         * lib/vasnprintf.c: Likewise.
59680         * lib/vasprintf.c: Likewise.
59681         * lib/wait-process.c: Likewise.
59682         * lib/xallocsa.c: Likewise.
59683         * lib/xsetenv.c: Likewise.
59684         * lib/xstriconv.c: Likewise.
59685
59686 2006-09-13  Simon Josefsson  <jas@extundo.com>
59687
59688         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59689         that internally, suggested by Ralf Wildenhues
59690         <Ralf.Wildenhues@gmx.de>.
59691
59692 2006-09-13  Simon Josefsson  <jas@extundo.com>
59693
59694         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59695         @LIBOBJS@.
59696         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59697
59698 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59699
59700         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59701         longer worry about uses that don't define HAVE_CONFIG_H.
59702         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59703         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59704         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59705         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59706         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59707         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59708         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59709         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59710         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59711         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59712         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59713         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59714         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59715         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59716         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59717         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59718         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59719         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59720         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59721         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59722         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59723         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59724         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59725         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59726         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59727         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59728         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59729         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59730         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59731         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59732         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59733         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59734         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59735         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59736         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59737         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59738         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59739         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59740         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59741         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59742         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59743         Likewise.
59744
59745 2006-09-13  Eric Blake  <ebb9@byu.net>
59746
59747         * lib/getopt.c: Fix typo in last commit.
59748
59749 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59750
59751         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59752         dgettext.
59753
59754 2006-09-12  Jim Meyering  <jim@meyering.net>
59755
59756         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59757         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59758         Reported by Nelson H. F. Beebe.
59759
59760 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59761
59762         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59763         program_invocation_name and program_invocation_short_name are
59764         initialized.
59765         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59766         and program_invocation_short_name to argp.h, so they are visible
59767         to user programs.
59768         * lib/argp.h: Likewise
59769
59770 2006-09-10  Bruno Haible  <bruno@clisp.org>
59771
59772         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59773         m4/inttypes_h.m4, m4/uintmax_t.m4.
59774
59775 2006-09-10  Bruno Haible  <bruno@clisp.org>
59776
59777         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59778         gl_AC_TYPE_UINTMAX_T.
59779
59780 2006-09-10  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59783
59784 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59785
59786         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59787         convention.  Text proposed by Bruno Haible.
59788         (struct argp_option): Document the use of N_() wrappers.
59789
59790         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59791         '\v', and translate the two parts separately, instead of feeding
59792         the whole string to gettext.  This allows to exclude
59793         '\v' from the strings visible to the translator by writing doc
59794         strings as N_("..") "\v" N_("..").
59795
59796 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         * config/srclist.txt: Undo latest change; the bug was fixed.
59799
59800 2006-09-09  Bruno Haible  <bruno@clisp.org>
59801
59802         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59803         assignments if building a library without libtool.
59804         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59805         in func_emit_lib_Makefile_am.
59806         (func_import): When building a static library libfoo.a, arrange to
59807         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59808         (func_create_testdir): Likewise.
59809         * modules/gc (configure.ac, Makefile.am): If building statically,
59810         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59811         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59812         * modules/striconv (configure.ac, Makefile.am): Likewise.
59813         Based on a suggestion by Ralf Wildenhues.
59814
59815 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59816
59817         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59818         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59819         Also:
59820
59821         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59822         Add year_2050_test to catch glibc bug 2821
59823         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59824
59825         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59826         Prefer #ifdef to #if.
59827
59828         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59829         Return from 'main' instead of calling 'exit'.
59830
59831 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59832
59833         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59834         returned the maximum time_t value rather than (time_t) -1.
59835         Problem originally reported by William Bardwell
59836         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59837
59838         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59839         Moved to here ...
59840         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59841         ... from here.
59842
59843 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59846         2821 is fixed.
59847
59848 2006-09-08  Jim Meyering  <jim@meyering.net>
59849
59850         Don't make generated files read-only.  That would bother too many
59851         people.  However, do retain the ability to work when targets are
59852         read-only: remove the destination and temporary files before writing
59853         them (when generated via sed or echo), or by using the -f option for
59854         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59855         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59856         * modules/byteswap, modules/configmake, modules/fcntl:
59857         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59858         * modules/localcharset, modules/netinet_in, modules/poll:
59859         * modules/stdbool, modules/stdint, modules/sys_select:
59860         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59861
59862 2006-09-08  Jim Meyering  <jim@meyering.net>
59863
59864         Avoid new build failure on FreeBSD 6.0.
59865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59866         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59867         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59868
59869 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59870
59871         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59872
59873 2006-09-07  Jim Meyering  <jim@meyering.net>
59874
59875         Fix global typo in last change: use chmod u-w, not chmod u-x.
59876         Spotted by Paul Eggert and Bruce Korb.
59877         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59878         * modules/byteswap, modules/configmake, modules/fcntl:
59879         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59880         * modules/localcharset, modules/netinet_in, modules/poll:
59881         * modules/stdbool, modules/stdint, modules/sys_select:
59882         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59883
59884 2006-09-06  Jim Meyering  <jim@meyering.net>
59885
59886         Make generated files be read-only.
59887         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59888         Ensure that each generated file is now read-only.
59889         * modules/argz: Likewise.
59890         * modules/arpa_inet: Likewise.
59891         * modules/byteswap: Likewise.
59892         * modules/configmake: Likewise.
59893         * modules/fcntl: Likewise.
59894         * modules/fnmatch: Likewise.
59895         * modules/getopt: Likewise.
59896         * modules/glob: Likewise.
59897         * modules/inttypes: Likewise.
59898         * modules/netinet_in: Likewise.
59899         * modules/poll: Likewise.
59900         * modules/stdbool: Likewise.
59901         * modules/stdint: Likewise.
59902         * modules/sys_select: Likewise.
59903         * modules/sys_socket: Likewise.
59904         * modules/sys_stat: Likewise.
59905         * modules/sysexits: Likewise.
59906         * modules/localcharset: Same as above, but continue using temporary
59907         file named "t-$@" (why different?) rather than the "$@-t" used
59908         everywhere else.
59909
59910         * modules/sysexits (Makefile.am): Replace literal occurrences
59911         of "sysexit.h" more readable, and more consistent, "$@".
59912
59913 2006-09-06  Bruno Haible  <bruno@clisp.org>
59914
59915         * modules/striconv: New file.
59916         * modules/xstriconv: New file.
59917         * MODULES.html.sh (Internationalization functions): Add striconv,
59918         xstriconv.
59919
59920 2006-09-06  Bruno Haible  <bruno@clisp.org>
59921
59922         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59923         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59924         not using libtool correctly.
59925
59926 2006-09-06  Bruno Haible  <bruno@clisp.org>
59927
59928         * lib/striconv.h: New file.
59929         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59930         iconvstring.c.
59931         * lib/xstriconv.h: New file.
59932         * lib/xstriconv.c: New file.
59933
59934 2006-09-06  Bruno Haible  <bruno@clisp.org>
59935
59936         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59937         lib_..._LDFLAGS.
59938
59939 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59940
59941         * lib/argz_.h: Sync from Libtool.
59942
59943         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59944                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59945
59946         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59947
59948 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59949
59950         * modules/trim: New file.
59951
59952 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59953
59954         * lib/trim.h: New file.
59955         * lib/trim.c: New file.
59956
59957 2006-09-05  Bruno Haible  <bruno@clisp.org>
59958
59959         * MODULES.html.sh (String handling): Add trim.
59960
59961 2006-09-04  Karl Berry  <karl@gnu.org>
59962
59963         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59964         until next release.
59965
59966 2006-09-03  Bruno Haible  <bruno@clisp.org>
59967
59968         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59969         correctly.
59970
59971 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59972
59973         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59974         not gl_GETLOADAVG.  Omit unneeded semicolons.
59975         Problems reported by Ralf Wildenhues in
59976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59977         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59978         at the end, which is the usual gnulib style.
59979
59980         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59981         of doing all the work ourselves.
59982         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59983         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59984
59985 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59986
59987         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59988         Problem reported by Ralf Wildenhues in
59989         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59990
59991         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59992         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59993
59994 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59997         yesterday's patch by changing test -n to test -z.
59998
59999 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60002         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60003         the former is now obsolescent.
60004
60005         * modules/chdir-long (Depends-on): Add fcntl.
60006
60007 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60010         obsolescent, and programs should use gnulib instead.
60011         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60012         but with prefixes changed.
60013
60014 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60015
60016         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60017         or stdbool.h, because they might not exist while configuring.
60018
60019         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60020         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60021         does that for us.
60022         (O_DIRECTORY): Remove.
60023
60024 2006-08-31  Eric Blake  <ebb9@byu.net>
60025
60026         * gnulib-tool: Don't let emacs change spaces to TAB.
60027
60028 2006-08-31  Bruno Haible  <bruno@clisp.org>
60029
60030         * gnulib-tool: When calling func_import more than once, do it in a
60031         subshell.
60032         Reported by Eric Blake <ebb9@byu.net>.
60033
60034 2006-08-31  Bruno Haible  <bruno@clisp.org>
60035
60036         * gnulib-tool (nl): Remove variable.
60037         (sed_transform_lib_file): Use more robust test for config-h module.
60038         (func_import): Fix typo in 2006-08-25 patch.
60039
60040 2006-08-31  Bruno Haible  <bruno@clisp.org>
60041
60042         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60043         specified, augment Makefile.am variables instead of assigning them.
60044
60045 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60046
60047         Work around a bug in both the Linux and SunOS 64-bit kernels:
60048         nanosleep mishandles sleeps for longer than 2**31 seconds.
60049         Problem reported by Frank v Waveren in
60050         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60052         Check for nanosleep bug.
60053         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60054
60055 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         Work around a bug in both the Linux and SunOS 64-bit kernels:
60058         nanosleep mishandles sleeps for longer than 2**31 seconds.
60059         Problem reported by Frank v Waveren in
60060         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60061         * lib/nanosleep.c (BILLION): New constant.
60062         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60063         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60064         implementation.
60065
60066 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60067
60068         * modules/nanosleep (Depends-on): Add gettime.
60069
60070 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60071         and Simon Josefsson  <jas@extundo.com>
60072         and Oskar Liljeblad  <oskar@osk.mine.nu>
60073
60074         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60075         * gnulib-tool (func_import): New license type 'unmodifiable license
60076         text'.
60077         * modules/fdl: Use it.  Longer description.
60078         * module/gpl, module/lgpl: New files.
60079
60080 2006-08-30  Jim Meyering  <jim@meyering.net>
60081
60082         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60083         shadowing the parameter.
60084
60085 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60086
60087         Sync from Libtool:
60088
60089         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60090
60091         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60092         sharing with gnulib.  Report by Eric Blake.
60093
60094 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         * modules/isapipe: New file.
60097         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60098
60099 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60100
60101         * modules/configmake (Makefile.am): Add a comment, and omit
60102         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60103         by Bruno Haible.
60104
60105 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60106
60107         * m4/isapipe.m4: New file.
60108
60109 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60110
60111         * lib/isapipe.c, lib/isapipe.h: New files.
60112
60113 2006-08-29  Jim Meyering  <jim@meyering.net>
60114
60115         * modules/configmake (Makefile.am): Make configmake.h depend on
60116         Makefile.  Otherwise, a stale configmake.h could hang around.
60117
60118 2006-08-29  Eric Blake  <ebb9@byu.net>
60119
60120         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60121         resolution of upstream bug 3044.
60122
60123 2006-08-29  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/localcharset (Depends-on): Add configmake.
60126         (Makefile.am): Remove setting of LIBDIR through DEFS.
60127
60128 2006-08-29  Bruno Haible  <bruno@clisp.org>
60129
60130         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60131         defined.
60132
60133 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60134
60135         * modules/fcntl: New file.
60136         * modules/chdir-safer (Depends-on): Add fcntl.
60137         * modules/fts: Likewise.
60138         * modules/mkdir-p: Likewise.
60139
60140         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60141         This undoes the most recent change, since we're now addressing the
60142         problem in a different way.
60143
60144         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60145         into output, since the output might be called Makefile.am even
60146         if $makefile_name is something different.
60147         (func_import): Use $makefile_am rather than
60148         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60149         empty.
60150
60151         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60152
60153 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60154
60155         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60156         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60157         recent change to stdint.m4, since we're now addressing the problem in a
60158         different way.
60159
60160 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         * m4/fcntl_h.m4: New file.
60163
60164 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60165
60166         * lib/fcntl_.h: New file.
60167         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60168         the fcntl module.
60169         * lib/dirchownmod.c: Likewise.
60170         * lib/fts.c: Likewise.
60171
60172         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60173         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60174         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60175         just before including <inttypes.h>, to avoid circular inclusion.
60176
60177 2006-08-28  Jim Meyering  <jim@meyering.net>
60178
60179         * doc/visibility.texi: Actually read and correct the grammar of the
60180         sentence affected by yesterday's change.
60181
60182 2006-08-28  Eric Blake  <ebb9@byu.net>
60183
60184         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60185         needs wrapper.
60186
60187 2006-08-28  Eric Blake  <ebb9@byu.net>
60188
60189         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60190
60191 2006-08-28  Eric Blake  <ebb9@byu.net>
60192
60193         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60194
60195 2006-08-28  Bruno Haible  <bruno@clisp.org>
60196
60197         * modules/c-strstr: New file, from GNU gettext.
60198         * MODULES.html.sh (String handling): Add c-strstr.
60199
60200 2006-08-28  Bruno Haible  <bruno@clisp.org>
60201
60202         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60203         macros.
60204         Reported by Eric Blake.
60205
60206 2006-08-28  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60209         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60210         * lib/vasprintf.c: Include errno.h, limits.h.
60211         (EOVERFLOW): New fallback definition.
60212         (vasprintf): Test here whether the string length is > INT_MAX.
60213         * lib/vsnprintf.c: Include errno.h, limits.h.
60214         (EOVERFLOW): New fallback definition.
60215         (vsnprintf): Fix bug when generated string was too long for the buffer.
60216         Test here whether the string length is > INT_MAX.
60217
60218 2006-08-28  Bruno Haible  <bruno@clisp.org>
60219
60220         * lib/inttypes_.h (SCNX*): Remove definitions.
60221         Reported by Eric Blake.
60222
60223 2006-08-28  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/c-strstr.h: New file, from GNU gettext.
60226         * lib/c-strstr.c: New file, from GNU gettext.
60227
60228 2006-08-28  Bruno Haible  <bruno@clisp.org>
60229
60230         * gnulib-tool: Reorder some statements.
60231
60232 2006-08-28  Bruno Haible  <bruno@clisp.org>
60233
60234         * gnulib-tool: New option --makefile-name.
60235         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60236         $makefile_name.
60237         (func_import): Write $makefile_name to the cache file, and read it from
60238         there unless explicitly specified. Use $makefile_name as file name
60239         instead of Makefile.am. Adjust the recommendations accordingly.
60240
60241 2006-08-28  Bruno Haible  <bruno@clisp.org>
60242
60243         * gnulib-tool (func_verify_module): Check against misapplying patch.
60244
60245 2006-08-28  Bruno Haible  <bruno@clisp.org>
60246
60247         * gnulib-tool (func_relativize, func_relconcat): New functions.
60248         Give an error if --local-dir is given with --update.
60249         Remove trailing slashes from $local_gnulib_dir.
60250         (func_import): Store the relativized $local_gnulib_dir in
60251         gnulib-cache.m4, and read it from there if not specified explicitly.
60252
60253 2006-08-28  Bruno Haible  <bruno@clisp.org>
60254
60255         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60256         is the current directory. Respect also $local_gnulib_dir.
60257
60258 2006-08-28  Bruno Haible  <bruno@clisp.org>
60259             Simon Josefsson  <jas@extundo.com>
60260
60261         BeOS portability.
60262         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60263
60264 2006-08-27  Jim Meyering  <jim@meyering.net>
60265
60266         * doc/visibility.texi: Remove duplicate word: "pointer".
60267
60268 2006-08-26  Bruno Haible  <bruno@clisp.org>
60269
60270         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60271         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60272         (Makefile.am): Create inttypes.h from inttypes_.h.
60273         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60274
60275         * modules/imaxabs: New file.
60276
60277         * modules/imaxdiv: New file.
60278
60279 2006-08-26  Bruno Haible  <bruno@clisp.org>
60280
60281         * m4/inttypes.m4: New file.
60282         * m4/_inttypes_h.m4: Remove file.
60283         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60284         PRI_MACROS_BROKEN.
60285         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60286
60287         * m4/imaxabs.m4: New file.
60288
60289         * m4/imaxdiv.m4: New file.
60290
60291 2006-08-26  Bruno Haible  <bruno@clisp.org>
60292
60293         * lib/inttypes_.h: New file.
60294         * lib/inttypes.h: Remove file.
60295         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60296
60297         * lib/imaxabs.c: New file.
60298
60299         * lib/imaxdiv.c: New file.
60300
60301 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60302
60303         New config-h module, so that "make" output needn't be cluttered
60304         by -DHAVE_CONFIG_H.
60305         * MODULES.html.sh (Support for building libraries and executables):
60306         Add config-h.
60307         * modules/config-h: New file.
60308         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60309         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60310         the config-h module is used.
60311
60312         New configmake module, so that "make" output needn't be cluttered
60313         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60314         * MODULES.html.sh (Support for building libraries and executables):
60315         Add configmake.
60316         * modules/configmake: New file.
60317
60318 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60319
60320         * m4/config-h.m4: New file.
60321
60322 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60323
60324         * config/srclist.txt: Add elisp-comp.
60325
60326 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         * MODULES.html.sh (Support for building libraries and executables):
60329         Add elisp-comp.
60330         * build-aux/elisp-comp: New file.
60331         * modules/elisp-comp: New file.
60332
60333 2006-08-24  Bruno Haible  <bruno@clisp.org>
60334
60335         * gnulib-tool (func_create_testdir): Use non-default values of
60336         sourcebase and m4base.
60337
60338 2006-08-24  Bruno Haible  <bruno@clisp.org>
60339
60340         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60341         HTML structure.
60342
60343 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60344
60345         * modules/openat (Depends-on): Add lchown.
60346
60347 2006-08-23  Bruno Haible  <bruno@clisp.org>
60348
60349         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60350         of gl_LOCK_EARLY instead of gl_LOCK.
60351
60352 2006-08-23  Bruno Haible  <bruno@clisp.org>
60353
60354         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60355         on OSF/1 to no.
60356         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60357
60358 2006-08-23  Bruno Haible  <bruno@clisp.org>
60359
60360         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60361         as unusable.
60362
60363         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60364         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60365         (gl_LOCK): New macro.
60366
60367 2006-08-22  Simon Josefsson  <jas@extundo.com>
60368
60369         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60370         to md5 module.
60371
60372 2006-08-22  Simon Josefsson  <jas@extundo.com>
60373
60374         * MODULES.html.sh: Add "Support for maintaining and release
60375         projects".
60376
60377         * build-aux/gnupload: New file, from coreutils.
60378
60379 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         Avoid the need for AC_LIBSOURCES in m4 macros.
60382         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60383         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60384         * modules/check-version (EXTRA_DIST): Add check-version.h.
60385         * modules/crc (EXTRA_DIST): Add crc.h.
60386         * modules/des (EXTRA_DIST): Add des.h.
60387         * modules/gc (EXTRA_DIST): Add gc.h.
60388         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60389         * modules/getline (EXTRA_DIST): Add getline.h.
60390         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60391         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60392         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60393         * modules/md2 (EXTRA_DIST): Add md2.h.
60394         * modules/md4 (EXTRA_DIST): Add md4.h.
60395         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60396         * modules/read-file (EXTRA_DIST): Add read-file.h.
60397         * modules/readline (EXTRA_DIST): Add readline.h.
60398         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60399         rijndael-api-fst.h.
60400
60401 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * m4/rijndael.m4 (gl_ARCFOUR):
60404         * m4/arctwo.m4 (gl_ARCTWO):
60405         * m4/check-version.m4 (gl_CHECK_VERSION):
60406         * m4/crc.m4 (gl_CRC):
60407         * m4/des.m4 (gl_DES):
60408         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60409         * m4/gc.m4 (gl_GC):
60410         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60411         * m4/getline.m4 (gl_FUNC_GETLINE):
60412         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60413         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60414         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60415         * m4/md2.m4 (gl_MD2):
60416         * m4/md4.m4 (gl_MD4):
60417         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60418         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60419         * m4/readline.m4 (gl_FUNC_READLINE):
60420         * m4/rijndael.m4 (gl_RIJNDAEL):
60421         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60422         to get the necessary .h files and whatnot.
60423
60424 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60425
60426         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60427         gnulib rather than the other way around.
60428         * config/srclistvars.sh (COREUTILS): Remove.
60429
60430 2006-08-22  Jim Meyering  <jim@meyering.net>
60431
60432         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60433
60434         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60435
60436 2006-08-22  Eric Blake  <ebb9@byu.net>
60437
60438         * modules/regexprops-generic: New file.
60439         * MODULES.html.sh (Support for building documentation): List it.
60440
60441 2006-08-22  Eric Blake  <ebb9@byu.net>
60442
60443         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60444         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60445         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60446         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60447
60448 2006-08-22  Bruno Haible  <bruno@clisp.org>
60449
60450         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60451         and lib_LTLIBRARIES like the other lib_* variables.
60452
60453 2006-08-22  Bruno Haible  <bruno@clisp.org>
60454
60455         * build-aux/x-to-1.in: New file, from GNU gettext.
60456
60457 2006-08-22  Bruno Haible  <bruno@clisp.org>
60458
60459         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60460         <utmpx.h> exists.
60461
60462 2006-08-22  Bruno Haible  <bruno@clisp.org>
60463
60464         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60465         <utmpx.h> exists.
60466
60467 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60468
60469         BeOS portability.
60470         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60471         exist.
60472         Problem reported by Bruno Haible.
60473
60474 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60475
60476         Avoid the need for AC_LIBSOURCES in m4 macros.
60477         * modules/acl (EXTRA_DIST): Add acl.h.
60478         * modules/argmatch (Files): Add m4/argmatch.m4.
60479         (configure.ac): Add gl_ARGMATCH.
60480         (EXTRA_DIST): Renamed from lib_SOURCES, for
60481         consistency with the other modules.  Remove argmatch.c.
60482         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60483         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60484         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60485         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60486         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60487         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60488         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60489         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60490         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60491         * modules/closeout (EXTRA_DIST): Add closeout.h.
60492         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60493         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60494         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60495         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60496         dirname.h; remove basename.c and stripslash.c.
60497         * modules/exclude (EXTRA_DIST): Add exclude.h.
60498         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60499         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60500         * modules/file-type (EXTRA_DIST): Add file-type.h.
60501         * modules/filemode (EXTRA_DIST): Add filemode.h.
60502         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60503         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60504         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60505         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60506         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60507         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60508         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60509         * modules/getdate (EXTRA_DIST): Add getdate.c.
60510         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60511         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60512         * modules/getpass (EXTRA_DIST): Add getpass.h.
60513         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60514         * modules/group-member (EXTRA_DIST): Add group-member.h.
60515         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60516         * modules/hash (EXTRA_DIST): Add hash.h.
60517         * modules/human (EXTRA_DIST): Add human.h.
60518         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60519         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60520         * modules/lchown (EXTRA_DIST): Add lchown.h.
60521         * modules/long-options (EXTRA_DIST): Add long-options.h.
60522         * modules/lstat (EXTRA_DIST): Add lstat.h.
60523         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60524         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60525         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60526         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60527         * modules/memxor (EXTRA_DIST): Add memxor.h.
60528         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60529         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60530         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60531         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60532         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60533         * modules/physmem (EXTRA_DIST): Add physmem.h.
60534         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60535         * modules/posixver (EXTRA_DIST): Add posixver.h.
60536         * modules/quote (EXTRA_DIST): Add quote.h.
60537         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60538         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60539         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60540         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60541         regex_internal.h regexec.c.
60542         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60543         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60544         * modules/same (EXTRA_DIST): Add same.h.
60545         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60546         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60547         * modules/savedir (EXTRA_DIST): Add savedir.h.
60548         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60549         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60550         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60551         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60552         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60553         * modules/strdup (EXTRA_DIST): Add strdup.h.
60554         * modules/strftime (EXTRA_DIST): Add strftime.h.
60555         * modules/strndup (EXTRA_DIST): Add strndup.h.
60556         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60557         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60558         * modules/time_r (EXTRA_DIST): Add time_r.h.
60559         * modules/timespec (EXTRA_DIST): Add timespec.h.
60560         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60561         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60562         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60563         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60564         * modules/userspec (EXTRA_DIST): Add userspec.h.
60565         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60566         * modules/utimens (EXTRA_DIST): Add utimens.h.
60567         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60568         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60569         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60570         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60571         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60572         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60573         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60574         * modules/yesno (EXTRA_DIST): Add yesno.h.
60575
60576 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60579
60580         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60581         * m4/dev-ino.m4, same-inode.m4: Remove.
60582
60583         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60584         * m4/acl.m4 (AC_FUNC_ACL):
60585         * m4/backupfile.m4 (gl_BACKUPFILE):
60586         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60587         * m4/canon-host.m4 (gl_CANON_HOST):
60588         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60589         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60590         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60591         * m4/cloexec.m4 (gl_CLOEXEC):
60592         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60593         * m4/closeout.m4 (gl_CLOSEOUT):
60594         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60595         * m4/dirname.m4 (gl_DIRNAME):
60596         * m4/exclude.m4 (gl_EXCLUDE):
60597         * m4/exitfail.m4 (gl_EXITFAIL):
60598         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60599         * m4/file-type.m4 (gl_FILE_TYPE):
60600         * m4/filemode.m4 (gl_FILEMODE):
60601         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60602         * m4/fpending.m4 (gl_FUNC_FPENDING):
60603         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60604         * m4/fts.m4 (gl_FUNC_FTS):
60605         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60606         * m4/getdate.m4 (gl_GETDATE):
60607         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60608         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60609         * m4/getpass.m4 (gl_FUNC_GETPASS):
60610         * m4/gettime.m4 (gl_GETTIME):
60611         * m4/getugroups.m4 (gl_GETUGROUPS):
60612         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60613         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60614         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60615         * m4/hash.m4 (gl_HASH):
60616         * m4/idcache.m4 (gl_IDCACHE):
60617         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60618         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60619         * m4/long-options.m4 (gl_LONG_OPTIONS):
60620         * m4/lstat.m4 (gl_FUNC_LSTAT):
60621         * m4/md5.m4 (gl_MD5):
60622         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60623         * m4/memcoll.m4 (gl_MEMCOLL):
60624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60626         * m4/memxor.m4 (gl_MEMXOR):
60627         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60628         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60629         * m4/modechange.m4 (gl_MODECHANGE):
60630         * m4/mountlist.m4 (gl_MOUNTLIST):
60631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60632         * m4/openat.m4 (gl_FUNC_OPENAT):
60633         * m4/pathmax.m4 (gl_PATHMAX):
60634         * m4/physmem.m4 (gl_PHYSMEM):
60635         * m4/posixtm.m4 (gl_POSIXTM):
60636         * m4/posixver.m4 (gl_POSIXVER):
60637         * m4/quote.m4 (gl_QUOTE):
60638         * m4/quotearg.m4 (gl_QUOTEARG):
60639         * m4/readtokens.m4 (gl_READTOKENS):
60640         * m4/readutmp.m4 (gl_READUTMP):
60641         * m4/regex.m4 (gl_REGEX):
60642         * m4/safe-read.m4 (gl_SAFE_READ):
60643         * m4/safe-write.m4 (gl_SAFE_WRITE):
60644         * m4/same.m4 (gl_SAME):
60645         * m4/save-cwd.m4 (gl_SAVE_CWD):
60646         * m4/savedir.m4 (gl_SAVEDIR):
60647         * m4/settime.m4 (gl_SETTIME):
60648         * m4/sha1.m4 (gl_SHA1):
60649         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60650         * m4/stat-macros.m4 (gl_STAT_MACROS):
60651         * m4/stat-time.m4 (gl_STAT_TIME):
60652         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60653         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60654         * m4/strdup.m4 (gl_FUNC_STRDUP):
60655         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60656         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60657         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60658         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60659         * m4/time_r.m4 (gl_TIME_R):
60660         * m4/timespec.m4 (gl_TIMESPEC):
60661         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60662         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60663         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60664         * m4/userspec.m4 (gl_USERSPEC):
60665         * m4/utimecmp.m4 (gl_UTIMECMP):
60666         * m4/utimens.m4 (gl_UTIMENS):
60667         * m4/xalloc.m4 (gl_XALLOC):
60668         * m4/xgetcwd.m4 (gl_XGETCWD):
60669         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60670         * m4/xreadlink.m4 (gl_XREADLINK):
60671         * m4/xstrtod.m4 (gl_XSTRTOD):
60672         * m4/yesno.m4 (gl_YESNO):
60673         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60674         to get the necessary .h files and whatnot.
60675
60676 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60677             Bruno Haible  <bruno@clisp.org>
60678
60679         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60680         /bin/sh understanding of '!' conditional negation.
60681
60682 2006-08-21  Jim Meyering  <jim@meyering.net>
60683
60684         * modules/openat (Depends-on): Really alphabetize.
60685
60686         * modules/acl (Depends-on): Add error and quote.
60687
60688         * check-module (find_included_lib_files): Add at-func.c to the
60689         ok-to-include-more-than-once white list.
60690
60691         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60692
60693 2006-08-21  Bruno Haible  <bruno@clisp.org>
60694
60695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60696         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60697         Reported by Martin Lambers <marlam@marlam.de>.
60698
60699 2006-08-21  Bruno Haible  <bruno@clisp.org>
60700
60701         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60702         specify an installation location, don't emit a noinst_LIBRARIES or
60703         noinst_LTLIBRARIES assignment.
60704
60705 2006-08-21  Bruno Haible  <bruno@clisp.org>
60706
60707         BeOS portability.
60708         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60709         BeOS has mbrtowc() but no <wctype.h>.
60710
60711 2006-08-21  Bruno Haible  <bruno@clisp.org>
60712
60713         BeOS portability.
60714         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60715         exist.
60716
60717 2006-08-21  Bruno Haible  <bruno@clisp.org>
60718
60719         BeOS portability.
60720         * lib/mbchar.h: Include <wctype.h> only if it exists.
60721
60722 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60723
60724         Remove files that are no longer needed by their respective modules.
60725         * m4/obstack.m4: Remove.
60726         * m4/strerror_r.m4: Remove.
60727         * m4/uint32_t.m4: Remove.
60728         * m4/uintptr_t.m4: Remove.
60729         * m4/ullong_max.m4: Remove.
60730         * m4/xstrtoimax.m4: Remove.
60731         * m4/xstrtoumax.m4: Remove.
60732
60733         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60734         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60735         dependencies now capture this.
60736
60737         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60738         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60739         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60740         * m4/human.m4 (gl_HUMAN): Likewise.
60741         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60742         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60743
60744         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60745
60746         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60747         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60748         stdint.
60749         * m4/human.m4 (gl_HUMAN): Likewise.
60750         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60751         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60752         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60753         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60754         * m4/xstrtol (gl_XSTRTOL): Likewise.
60755
60756         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60757         AC_TYPE_LONG_LONG_INT.
60758         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60759         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60760         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60761         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60762
60763         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60764         on stdbool.
60765
60766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60767         (gl_PREREQ_XSTRTOUL): Remove.
60768
60769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60770
60771         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60772         mode.
60773
60774 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         Add and change modules to make it easier for coreutils to use
60777         gnulib-tool.
60778         * modules/backupfile (Files): Remove m4/d-ino.m4.
60779         (Depends-on): Add d-ino.
60780         * modules/cycle-check (Depends-on): Add stdint.
60781         (lib_SOURCES): Add cycle-check.h.
60782         * modules/d-ino: New module.
60783         * modules/d-type: New module.
60784         * modules/error (Files): Remove m4/strerror_r.m4.
60785         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60786         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60787         m4/inttypes_h.m4, m4/uintmax_t.m4.
60788         (Depends-on): Add stdint.
60789         (lib_SOURCES): Add fsusage.h.
60790         * modules/getcwd (Files): Remove d-ino.m4.
60791         (Depends-on): Add d-ino.
60792         * modules/getndelim2 (Depends-on): Add stdint.
60793         * modules/glob (Files): Remove m4/d-type.m4.
60794         (Depends-on): Add d-type.
60795         * modules/host-os: New module.
60796         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60797         m4/inttypes_h.m4, m4/uintmax_t.m4.
60798         * Depends-on: Add stdint.
60799         (lib_SOURCES): Add human.h.
60800         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60801         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60802         m4/uintmax_t.m4, m4/ulonglong.m4.
60803         (Depends-on): Add stdint.
60804         (EXTRA_DIST): Add inttostr.h.
60805         * modules/lchmod: New module.
60806         * modules/link-follow: New module.
60807         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60808         (Depends-on): Add lchmod.
60809         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60810         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60811         (Depends-on): Add stdint.
60812         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60813         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60814         (Depends-on): Add stdint.
60815         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60816         * modules/perl: New module.
60817         * modules/regex (Depends-on): Add stdint.
60818         * modules/rmdir-errno: New module.
60819         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60820         m4/intmax_t.m4.
60821         (Depends-on): Add stdint.
60822         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60823         m4/uintmax_t.m4.
60824         (Depends-on): Add stdint.
60825         * modules/unlink-busy: New module.
60826         * modules/utimecmp (Depends-on): Add stdint.
60827         * modules/uptime: New module.
60828         * modules/winsz-ioctl: New module.
60829         * modules/winsz-termios: New module.
60830         * modules/xnanosleep (Depends-on): Add nanosleep.
60831         * modules/ullong_max: Remove.
60832         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60833         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60834         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60835         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60836         (Depends-on): Add inttypes.
60837         (lib_SOURCES): Add xstrtol.h.
60838         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60839         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60840         * MODULES.html.sh: Move 'assert' into the assert section.
60841         Move 'dummy' into the linking section.
60842         Remove ullong_max.
60843         Add section for compatibility checks for POSIX:2001 functions,
60844         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60845         winsz-ioctl, and winsz-termios into it.
60846         Add lchmod.
60847         Add top-level Misc section and put host-os, perl, and uptime
60848         into it.
60849
60850 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60853         now assume the stdint module.  Do not include inttypes.h.
60854         * lib/fsusage.h: Likewise.
60855         * lib/getndelim2.c: Likewise.
60856         * lib/human.h: Likewise.
60857         * lib/inttostr.h: Likewise.
60858         * lib/obstack.c: Likewise.
60859         * lib/regex_internal.h: Likewise.
60860         * lib/tempname.c: Likewise.
60861         * lib/utimecmp.c: Likewise.
60862         * lib/xstrtol.h: Likewise.
60863
60864         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60865
60866         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60867         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60868         * lib/xtime.h: Likewise.
60869
60870 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         * modules/openat (Files): Add lib/fchmodat.c.
60873         Fixes problem reported by Jay Youngman.
60874
60875 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60876
60877         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60878         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60879
60880 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60881             Bruno Haible  <bruno@clisp.org>
60882
60883         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60884         and is a script that invokes bison. Tighten the code. Add comments.
60885
60886 2006-08-18  Jim Meyering  <jim@meyering.net>
60887
60888         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60889         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60890         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60891         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60892
60893 2006-08-18  Bruno Haible  <bruno@clisp.org>
60894
60895         * modules/bison-i18n: New file.
60896         * MODULES.html.sh (Internationalization functions): Add it.
60897
60898 2006-08-18  Bruno Haible  <bruno@clisp.org>
60899
60900         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60901         sys/statvfs.h. When getmntinfo was found, check its declaration and
60902         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60903
60904 2006-08-18  Bruno Haible  <bruno@clisp.org>
60905
60906         * m4/bison-i18n.m4: New file, from bison.
60907
60908 2006-08-18  Bruno Haible  <bruno@clisp.org>
60909
60910         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60911         (ME_DUMMY): Treat "kernfs" as a dummy.
60912         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60913
60914 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         Update from coreutils.
60917
60918         2006-08-15  Jim Meyering  <jim@meyering.net>
60919
60920         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60921
60922         2006-01-17  Jim Meyering  <jim@meyering.net>
60923
60924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60925
60926         2006-01-11  Jim Meyering  <jim@meyering.net>
60927
60928         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60929         Check for the lchmod function.
60930
60931 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         Update from coreutils.
60934
60935         * lib/__fpending.h: Add copyright notice.
60936         * lib/fprintftime.h: Likewise.
60937         * lib/savedir.c: Use (C) in copyright notice.
60938         * lib/savedir.h: Likewise.
60939
60940         2006-08-15  Jim Meyering  <jim@meyering.net>
60941
60942         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60943         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60944         in support of the EXPECTED_ERRNO macro.
60945         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60946         definitions.  Instead, define the appropriate symbols and include
60947         "at-func.c".
60948         * lib/mkdirat.c (mkdirat): Likewise.
60949         * lib/fchmodat.c (fchmodat): Likewise.
60950         (ENOSYS): Remove definition.
60951         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60952         it.  Don't include "unistd--.h" -- it wasn't ever used.
60953
60954         2006-01-17  Jim Meyering  <jim@meyering.net>
60955
60956         Rewrite fts.c not to change the current working directory,
60957         by using openat, fstatat, fdopendir, etc..
60958
60959         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60960         (HAVE_OPENAT_SUPPORT): Define.
60961         [_LIBC] (fchdir): Don't undef or define; no longer used.
60962         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60963         Now, this `function' always succeeds, and consumes its file descriptor
60964         parameter -- so callers must not close such FDs.  Update callers.
60965         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60966         (diropen): Add parameter, SP.  Adjust all callers.
60967         Implement using diropen_fd, rather than open.
60968         (fts_open): Initialize new member, fts_cwd_fd.
60969         Remove fts_rft-setting code.
60970         (fts_close): Close fts_cwd_fd, if necessary.
60971         (__opendir2): Define in terms of opendir or opendirat,
60972         depending on whether the FST_NOCHDIR flag is set.
60973         (fts_build): Since fts_safe_changedir consumes its FD, and since
60974         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60975         and close the dup'd file descriptor upon failure.
60976         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60977         (fts_safe_changedir): Tweak semantics to reflect that this function
60978         now calls cwd_advance_fd and hence consumes its FD argument.
60979         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60980         [struct FTS] (fts_rft): Remove now-unused member.
60981         [struct FTS] (fts_cycle.state): Improve comment.
60982
60983         * lib/openat.c (openat_needs_fchdir): New function.
60984         * lib/openat.h (openat_needs_fchdir): Declare it.
60985
60986 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60989         Problem and fix reported by Pádraig Brady in
60990         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60991
60992 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60995
60996 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         * lib/memcoll.c (memcoll): Optimize for the common case where the
60999         arguments are bytewise equal.
61000
61001 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * doc/regexprops-generic.texi: Add a copyright notice.
61004
61005 2006-08-15  Bruno Haible  <bruno@clisp.org>
61006
61007         * modules/tmpdir (License): Change to LGPL.
61008
61009 2006-08-15  Bruno Haible  <bruno@clisp.org>
61010
61011         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61012         module.
61013
61014 2006-08-14  Simon Josefsson  <jas@extundo.com>
61015
61016         * config/srclist.txt: Add gnupload.
61017
61018 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         Change copyright notice from LGPL 2 to GPL 2, since that's the
61021         standard form used in the gnulib repository.
61022         * tests/test-lock.c: Likewise.
61023         * tests/test-stdint.c: Likewise.
61024         * tests/test-tls.c: Likewise.
61025
61026         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61027         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61028         Add copyright notice.
61029
61030         * check-module: Add copyright notice.  Output a copyright
61031         notice if "--version" is specified.
61032         * modules/COPYING: New file.
61033         * tests/test-getaddrinfo.c: Add copyright notice.
61034         * tests/test-verify.c: Likewise.
61035
61036 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         Change copyright notice from LGPL 2 to GPL 2, since that's the
61039         standard form used in the gnulib repository.
61040         * lib/lock.c: LGPL -> GPL.
61041         * lib/lock.h: Likewise.
61042         * lib/strnlen1.c: Likewise.
61043         * lib/strnlen1.h: Likewise.
61044         * lib/tls.c: Likewise.
61045         * lib/tls.h: Likewise.
61046         * lib/tmpdir.c: Likewise.
61047
61048         * lib/TODO: Remove; this belongs only in coreutils.
61049
61050 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61051
61052         Add copyright notices to long-enough files that lack them, since
61053         otherwise the files aren't clearly free.  Use the same notice that
61054         getdate.texi already uses.
61055         * doc/alloca-opt.texi: Add copyright notice.
61056         * doc/alloca.texi: Likewise.
61057         * doc/ctime.texi: Likewise.
61058         * doc/functions.texi: Likewise.
61059         * doc/gcd.texi: Likewise.
61060         * doc/gnulib-tool.texi: Likewise.
61061         * doc/inet_ntoa.texi: Likewise.
61062         * doc/visibility.texi: Likewise.
61063
61064         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61065         * doc/quote.texi: Add copyright notice.
61066
61067         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61068         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61069         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61070         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61071         is now obsolete, and give a pointer to the Sun list.
61072         Add copyright notice.
61073
61074 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * config/srclistvars.sh: Add copyright notice.
61077
61078 2006-08-14  Eric Blake  <ebb9@byu.net>
61079
61080         Import the following change from libc:
61081
61082         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61083
61084         Upstream bug 2997.
61085         * lib/misc/error.c: Add space between program name and message if file
61086         name is missing.
61087
61088 2006-08-12  Karl Berry  <karl@gnu.org>
61089
61090         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61091         remove, these originate in gnulib now.
61092
61093 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61094
61095         * doc/Makefile (standards.info standards.html standards.dvi):
61096         Also depend on make-stds.texi.
61097
61098 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61099
61100         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61101         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61102
61103         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61104         in wchar_t.  Problem reported by Eric Blake.
61105
61106         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61107         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61108         Also, help the compiler to keep LEN in a register.
61109
61110 2006-08-11  Eric Blake  <ebb9@byu.net>
61111
61112         * users.txt: Sort.  Add tar.
61113
61114 2006-08-11  Bruno Haible  <bruno@clisp.org>
61115
61116         * users.txt: New file.
61117
61118 2006-08-11  Bruno Haible  <bruno@clisp.org>
61119
61120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61121         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61122
61123 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * modules/snprintf (Depends-on): Remove minmax.
61126         (Maintainer): Add self and Bruno.
61127
61128 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61129
61130         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61131         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61132         (EOVERFLOW): Define if the system does not.
61133         Do not include "minmax.h"; it wasn't used.
61134         (snprintf): Don't assume size_t promotes to an unsigned type.
61135         Fix bug when generated string was too long for the buffer: the
61136         buffer's contents are supposed to be the initial prefix of the
61137         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61138         exceeds INT_MAX; do the check ourselves.
61139
61140         Import the following changes from libc:
61141
61142         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61143
61144         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61145         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61146         set wc to the byte which couldn't be converted.
61147         (re_string_reconstruct): Don't clear valid_raw_len before calling
61148         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61149         tip_context using re_string_context_at.
61150
61151         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61152
61153         * lib/posix/regex.h: g++ still cannot handled [restrict].
61154
61155         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61156
61157         * lib/posix/regex.h: Remove special handling for VMS.
61158
61159 2006-08-10  Jim Meyering  <jim@meyering.net>
61160
61161         * modules/same-inode: New module.
61162         * modules/dev-ino: New module.
61163         * modules/cycle-check: Depend on these modules, rather than simply
61164         including their .h files.
61165         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61166         required via m4/cycle-check.m4.
61167         * modules/same: Depend on new same-inode module, rather than
61168         including same-inode.h.
61169         * modules/chdir-safer: New file.
61170
61171         * modules/chown (Depends-on): Add stat-macros.
61172
61173 2006-08-10  Jim Meyering  <jim@meyering.net>
61174
61175         * m4/cycle-check.m4: New file.
61176         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61177         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61178
61179 2006-08-10  Eric Blake  <ebb9@byu.net>
61180
61181         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61182         in from original proposal.
61183
61184 2006-08-10  Eric Blake  <ebb9@byu.net>
61185         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61186
61187         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61188         namespace.
61189
61190 2006-08-10  Bruno Haible  <bruno@clisp.org>
61191
61192         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61193         as well.
61194
61195 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         Sync from coreutils.
61198
61199         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61200
61201         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61202         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61203
61204 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61205
61206         * modules/restrict: Remove; no longer needed now that we assume
61207         Autoconf 2.59 or later.
61208         * MODULES.html.sh: Remove 'restrict'.
61209         * modules/argp (Depends-on): Remove 'restrict'.
61210         * modules/base64 (Depends-on): Likewise.
61211         * modules/gc (Depends-on): Likewise.
61212         * modules/getaddrinfo (Depends-on): Likewise.
61213         * modules/glob (Depends-on): Likewise.
61214         * modules/inet_ntop (Depends-on): Likewise.
61215         * modules/inet_pton (Depends-on): Likewise.
61216         * modules/memxor (Depends-on): Likewise.
61217         * modules/regex (Depends-on): Likewise.
61218         * modules/strtok_r (Depends-on): Likewise.
61219         * modules/time_r (Depends-on): Likewise.
61220
61221 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61222
61223         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61224         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61225         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61226         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61227         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61228         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61229         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61230         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61231
61232         Merge from coreutils.
61233         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61234         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61236         * m4/time_r.m4 (gl_TIME_R): Likewise.
61237
61238 2006-08-09  Karl Berry  <karl@gnu.org>
61239
61240         * config/srclist.txt: no more gettext-tools, per Bruno.
61241
61242 2006-08-08  Eric Blake  <ebb9@byu.net>
61243
61244         * modules/verror: New module.
61245         * MODULES.html.sh: Document it.
61246
61247 2006-08-08  Eric Blake  <ebb9@byu.net>
61248
61249         * lib/verror.h, lib/verror.c: New files.
61250
61251 2006-08-08  Eric Blake  <ebb9@byu.net>
61252
61253         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61254         verror_at_line output complies with GNU Coding Standards even when
61255         file is NULL.
61256
61257 2006-08-07  Bruno Haible  <bruno@clisp.org>
61258
61259         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61260         versions of AIX.
61261         Reported by Ralf Wildenhues.
61262
61263 2006-08-07  Bruno Haible  <bruno@clisp.org>
61264
61265         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61266         in an AC_DEFUN. Needed so that the autoconf snippets can use
61267         AC_REQUIRE.
61268
61269 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61270
61271         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61272         Initialize pkgdata_DATA.
61273         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61274         overriding it.
61275
61276 2006-08-06  Eric Blake  <ebb9@byu.net>
61277
61278         * lib/error.h: Fold in some upstream changes from glibc.
61279         * lib/error.c: Likewise.
61280
61281 2006-08-04  Bruno Haible  <bruno@clisp.org>
61282
61283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61284         Make the mostlyclean-local rule depend on mostlyclean-generic.
61285         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61286
61287 2006-07-31  Bruno Haible  <bruno@clisp.org>
61288
61289         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61290         <stdlib.h>, <string.h>.
61291
61292 2006-07-30  Bruno Haible  <bruno@clisp.org>
61293
61294         * modules/readlink (License): Change to LGPL.
61295
61296 2006-07-30  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61299         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61300         set PKGDATADIR to point to it.
61301
61302 2006-07-30  Bruno Haible  <bruno@clisp.org>
61303
61304         * modules/csharpexec (configure.ac): Comment out macro invocation.
61305         * modules/javaexec (configure.ac): Likewise.
61306         * modules/javacomp-script (configure.ac): Likewise.
61307
61308         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61309
61310 2006-07-30  Bruno Haible  <bruno@clisp.org>
61311
61312         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61313         linked-list.
61314
61315 2006-07-30  Bruno Haible  <bruno@clisp.org>
61316
61317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61318
61319 2006-07-30  Bruno Haible  <bruno@clisp.org>
61320
61321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61322         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61323         get removed.
61324
61325 2006-07-29  Bruno Haible  <bruno@clisp.org>
61326
61327         Make it possible for gnulib-tool to work with locally modified or
61328         augmented gnulib repositories.
61329         * gnulib-tool (func_usage): Document --local-dir option.
61330         (local_gnulib_dir): New variable.
61331         Handle --local-dir option.
61332         (func_lookup_file): New function.
61333         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61334         (func_get_description, func_get_filelist, func_get_description,
61335         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61336         func_get_automake_snippet, func_get_include_directive,
61337         func_get_license, func_get_maintainer): Use func_lookup_file.
61338         (func_import, func_create_testdir): Use func_lookup_file.
61339
61340 2006-07-29  Bruno Haible  <bruno@clisp.org>
61341
61342         * modules/setenv (Depends-on): Add unistd.
61343
61344 2006-07-29  Bruno Haible  <bruno@clisp.org>
61345
61346         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61347
61348 2006-07-29  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61351
61352 2006-07-29  Bruno Haible  <bruno@clisp.org>
61353
61354         * gnulib-tool (import, update): If there is no Makefile.am, look at
61355         aclocal.m4, instead of bailing out.
61356
61357 2006-07-29  Bruno Haible  <bruno@clisp.org>
61358
61359         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61360         Categorize the options by when they are useful.
61361
61362 2006-07-29  Bruno Haible  <bruno@clisp.org>
61363
61364         * gnulib-tool (func_usage): Document option --no-libtool.
61365         Handle option --no-libtool.
61366         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61367         for changed semantics of $libtool variable.
61368         (func_import): Likewise. If libtool is not used, show this through
61369         an option --no-libtool.
61370         (func_create_testdir): Update.
61371
61372 2006-07-29  Bruno Haible  <bruno@clisp.org>
61373
61374         * gnulib-tool (func_import): Extend error message about missing
61375         --doc-base.
61376
61377 2006-07-29  Bruno Haible  <bruno@clisp.org>
61378
61379         * gnulib-tool (func_import): Don't create the $docbase directory if
61380         there is no file to store there.
61381
61382 2006-07-29  Bruno Haible  <bruno@clisp.org>
61383
61384         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61385         relevant, look for configure.ac there, not in the current directory.
61386         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61387
61388 2006-07-29  Bruno Haible  <bruno@clisp.org>
61389
61390         * gnulib-tool (SORT): New variable.
61391         (func_usage): Undocument --assume-autoconf option.
61392         Remove --assume-autoconf option handling.
61393         (autoconf_minversion): Determine from the contents of configure.ac.
61394         (func_import): Remove autoconf_minversion handling.
61395         Suggested by Eric Blake.
61396
61397 2006-07-29  Bruno Haible  <bruno@clisp.org>
61398
61399         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61400
61401 2006-07-29  Bruno Haible  <bruno@clisp.org>
61402
61403         * config/srclist.txt (*setenv.[ch]): Remove rules.
61404
61405 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61406
61407         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61408
61409 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61410
61411         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61412         arpa/inet.h.
61413
61414 2006-07-28  Simon Josefsson  <jas@extundo.com>
61415
61416         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61417         * modules/inet_pton (Depends-on): Likewise.
61418
61419 2006-07-28  Simon Josefsson  <jas@extundo.com>
61420
61421         * m4/netinet_in_h.m4: New file.
61422
61423 2006-07-28  Simon Josefsson  <jas@extundo.com>
61424
61425         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61426         #include's.
61427
61428 2006-07-28  Simon Josefsson  <jas@extundo.com>
61429
61430         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61431         #include's.
61432
61433 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61436         setgid on directories only if they set these bits.
61437         * lib/modechange.h: Remove obsolete comment about masks.
61438
61439 2006-07-28  Eric Blake  <ebb9@byu.net>
61440
61441         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61442         macro expansion.
61443
61444 2006-07-28  Bruno Haible  <bruno@clisp.org>
61445
61446         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61447
61448 2006-07-28  Bruno Haible  <bruno@clisp.org>
61449
61450         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61451
61452 2006-07-28  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61455         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61456         Define fallbacks.
61457         Avoids link error on FreeBSD 4.x.
61458         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61459
61460         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61461         encoding.
61462         * lib/mbswidth.c (iswcntrl): Likewise.
61463
61464 2006-07-27  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61467         test.
61468
61469 2006-07-27  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61472         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61473         defined.
61474
61475 2006-07-26  Eric Blake  <ebb9@byu.net>
61476
61477         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61478
61479 2006-07-26  Eric Blake  <ebb9@byu.net>
61480
61481         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61482         like mingw that lack mkstemp.
61483         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61484         avoid compilation warning on mingw.
61485
61486 2006-07-26  Bruno Haible  <bruno@clisp.org>
61487
61488         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61489         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61490         INT_FAST*_MIN, INTPTR_MIN.
61491
61492 2006-07-25  Bruno Haible  <bruno@clisp.org>
61493
61494         * modules/version-etc (Depends-on): Add stdarg.
61495
61496 2006-07-25  Bruno Haible  <bruno@clisp.org>
61497
61498         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61499         complex commands.
61500
61501 2006-07-25  Bruno Haible  <bruno@clisp.org>
61502
61503         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61504         defined in <stdarg.h> or config.h.
61505
61506 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61507
61508         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61509         (gl_STDIO_SAFER): Remove.
61510
61511 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61512
61513         * MODULES.html.sh (File stream based Input/Output):
61514         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61515         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61516         * modules/fopen-safer, modules/tmpfile-safer: New files.
61517         * modules/stdio-safer: Remove.
61518
61519 2006-07-24  Bruno Haible  <bruno@clisp.org>
61520
61521         * modules/tmpdir: New file.
61522         * MODULES.html.sh (File system functions): Add it.
61523
61524 2006-07-24  Bruno Haible  <bruno@clisp.org>
61525
61526         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61527         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61528
61529 2006-07-24  Bruno Haible  <bruno@clisp.org>
61530
61531         * modules/clean-temp: New file.
61532
61533 2006-07-24  Bruno Haible  <bruno@clisp.org>
61534
61535         * m4/tmpdir.m4: New file, from GNU gettext.
61536
61537 2006-07-24  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/tmpdir.h: New file, from GNU gettext.
61540         * lib/tmpdir.c: New file, from GNU gettext.
61541
61542 2006-07-24  Bruno Haible  <bruno@clisp.org>
61543
61544         * lib/clean-temp.h: New file, from GNU gettext.
61545         * lib/clean-temp.c: New file, from GNU gettext.
61546
61547 2006-07-23  Eric Blake  <ebb9@byu.net>
61548
61549         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61550         (Depends-on): Add binary-io.
61551
61552 2006-07-23  Eric Blake  <ebb9@byu.net>
61553
61554         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61555
61556 2006-07-23  Eric Blake  <ebb9@byu.net>
61557
61558         * lib/tmpfile-safer.c: New file.
61559         * lib/stdio-safer.h (fopen_safer): Add prototype.
61560         * lib/stdio--.h (tmpfile): Make safer.
61561
61562 2006-07-23  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61565         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61566         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61567         gl_linked_remove_at): Use it.
61568
61569 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61570         and Simon Josefsson <jas@extundo.com>
61571
61572         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61573
61574         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61575
61576 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * modules/close-stream: New file.
61579         * modules/closeout (Description): Make it clear that it exits
61580         with a diagnostic on error.
61581         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61582         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61583
61584 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * m4/close-stream.m4: New file.
61587
61588 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61589
61590         * lib/close-stream.c, lib/close-stream.h: New files.
61591
61592 2006-07-22  Bruno Haible  <bruno@clisp.org>
61593
61594         Merge from GNU gettext 0.15.
61595
61596         2006-05-01  Bruno Haible  <bruno@clisp.org>
61597
61598                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61599
61600         2006-07-22  Bruno Haible  <bruno@clisp.org>
61601
61602                 * modules/javaversion: New file.
61603                 * MODULES.html.sh (Java): Add javaversion.
61604
61605         2006-03-12  Bruno Haible  <bruno@clisp.org>
61606
61607                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61608
61609         2005-12-04  Bruno Haible  <bruno@clisp.org>
61610
61611                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61612                 (untested).
61613
61614         2006-06-21  Bruno Haible  <bruno@clisp.org>
61615
61616                 Avoid warnings from recent versions of mcs.
61617                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61618                 -o, -L, -r any more. Use options documented since mcs-1.0
61619                 instead. Similarly for -g.
61620
61621         2005-12-04  Bruno Haible  <bruno@clisp.org>
61622
61623                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61624                 .resources, not .resource.
61625
61626         2005-07-09  Bruno Haible  <bruno@clisp.org>
61627
61628                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61629                 add a .dll suffix.
61630                 Reported by Mark Junker <mjscod@gmx.de>.
61631
61632         2006-07-22  Bruno Haible  <bruno@clisp.org>
61633
61634                 * modules/gettext: Upgrade to gettext-0.15.
61635                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61636                 m4/visibility.m4.
61637                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61638
61639 2006-07-22  Bruno Haible  <bruno@clisp.org>
61640
61641         Merge from GNU gettext 0.15.
61642
61643         2006-03-25  Bruno Haible  <bruno@clisp.org>
61644
61645                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61646
61647         2006-07-21  Bruno Haible  <bruno@clisp.org>
61648
61649                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61650                 "1.1".
61651
61652         2006-05-09  Bruno Haible  <bruno@clisp.org>
61653
61654                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61655                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61656                 for the conftestver execution.
61657
61658         2006-05-01  Bruno Haible  <bruno@clisp.org>
61659
61660                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61661                 optional target-version argument. Verify that the compiler
61662                 groks source of the specified source-version, or add -source
61663                 option as necessary. Verify that the compiler produces
61664                 bytecode in the specified target-version, or add -target and
61665                 -source options as necessary. Make the result of the test
61666                 available as variable CONF_JAVAC. Also log error output in
61667                 config.log.
61668
61669         2006-03-11  Bruno Haible  <bruno@clisp.org>
61670
61671                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61672
61673         2006-05-09  Bruno Haible  <bruno@clisp.org>
61674
61675                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61676                 CLASSPATH_SEPARATOR to a semicolon.
61677
61678         2006-03-12  Bruno Haible  <bruno@clisp.org>
61679
61680                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61681                 available as variable CONF_JAVA, for subsequent autoconf
61682                 tests. Also log error output in config.log.
61683
61684         2006-07-19  Bruno Haible  <bruno@clisp.org>
61685
61686                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61687                 that getline works on glibc2 systems. Needed to avoid trouble
61688                 in relocatable.c.
61689                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61690
61691         2005-12-04  Bruno Haible  <bruno@clisp.org>
61692
61693                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61694                 launcher (untested).
61695
61696         2005-12-04  Bruno Haible  <bruno@clisp.org>
61697
61698                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61699
61700         2006-07-22  Bruno Haible  <bruno@clisp.org>
61701
61702                 * gettext.m4: Update from GNU gettext-0.15.
61703                 * nls.m4: Likewise.
61704                 * po.m4: Likewise.
61705                 * inttypes-pri.m4: Likewise.
61706                 * inttypes-h.m4: Renamed from inttypes.m4.
61707                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61708
61709 2006-07-22  Bruno Haible  <bruno@clisp.org>
61710
61711         Merge from GNU gettext 0.15.
61712
61713         2005-07-05  Bruno Haible  <bruno@clisp.org>
61714
61715                 * printf-args.c (printf_fetchargs): Work around broken
61716                 definition of wint_t on mingw.
61717
61718         2005-02-12  Bruno Haible  <bruno@clisp.org>
61719
61720                 * xallocsa.h: Add extern "C" for C++.
61721
61722         2006-05-17  Bruno Haible  <bruno@clisp.org>
61723
61724                 Cygwin portability.
61725                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61726
61727         2006-04-30  Bruno Haible  <bruno@clisp.org>
61728
61729                 * progreloc.c: Include <mach-o/dyld.h> if available.
61730                 (find_executable): Use _NSGetExecutablePath when possible.
61731
61732         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61733
61734                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61735                 function.
61736
61737         2005-12-29  Bruno Haible  <bruno@clisp.org>
61738
61739                 * progreloc.c (set_program_name_and_installdir): Fix
61740                 compilation error.
61741
61742         2005-12-04  Bruno Haible  <bruno@clisp.org>
61743
61744                 Cygwin portability.
61745                 * progreloc.c: Include <windows.h> also on Cygwin.
61746                 (find_executable): Add support for Cygwin.
61747                 (set_program_name_and_installdir): Handle also platforms with
61748                 nonempty EXEEXT.
61749
61750         2006-07-11  Bruno Haible  <bruno@clisp.org>
61751
61752                 * javacomp.c: Fix a comment.
61753                 Reported by Jim Meyering.
61754
61755         2006-04-30  Bruno Haible  <bruno@clisp.org>
61756
61757                 * javacomp.h (compile_java_class): Add source_version,
61758                 target_version arguments.
61759                 * javacomp.c: Rewritten to choose only a compiler that
61760                 respects the specified source_version and target_version.
61761
61762         2006-06-27  Bruno Haible  <bruno@clisp.org>
61763
61764                 Assume correct S_ISDIR macro.
61765                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61766
61767         2006-07-22  Bruno Haible  <bruno@clisp.org>
61768
61769                 * javaversion.h: New file, from GNU gettext.
61770                 * javaversion.c: New file, from GNU gettext.
61771                 * javaversion.java: New file, from GNU gettext.
61772                 * javaversion.class: New file, from GNU gettext.
61773
61774         2006-05-17  Bruno Haible  <bruno@clisp.org>
61775
61776                 Cygwin portability.
61777                 * javaexec.c (execute_java_class): Test for jview program
61778                 also on Cygwin.
61779
61780         2006-04-09  Bruno Haible  <bruno@clisp.org>
61781
61782                 * fatal-signal.c: Don't include string.h.
61783                 (at_fatal_signal): Use a copying loop instead of memcpy.
61784
61785         2005-12-04  Bruno Haible  <bruno@clisp.org>
61786
61787                 * csharpexec.c: Add support for 'clix' launcher (untested).
61788                 (execute_csharp_using_sscli): New function.
61789                 (execute_csharp_program): Call it.
61790
61791         2006-06-21  Bruno Haible  <bruno@clisp.org>
61792
61793                 Avoid warnings from recent versions of mcs.
61794                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61795                 -o, -L, -r any more. Use options documented since mcs-1.0
61796                 instead. Similarly for -g.
61797
61798         2005-07-09  Bruno Haible  <bruno@clisp.org>
61799
61800                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61801                 add a .dll suffix.
61802                 Reported by Mark Junker <mjscod@gmx.de>.
61803
61804         2006-06-17  Bruno Haible  <bruno@clisp.org>
61805
61806                 * config.charset: Update for NetBSD 3.0.
61807
61808         2006-05-17  Bruno Haible  <bruno@clisp.org>
61809
61810                 Cygwin portability.
61811                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61812
61813         2006-05-16  Bruno Haible  <bruno@clisp.org>
61814
61815                 * localcharset.c [CYGWIN]: Include <windows.h>.
61816                 (get_charset_aliases): For Cygwin, return the same CPxxx
61817                 aliases list as under WIN32.
61818                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61819                 the environment variables. Fall back to GetACP().
61820
61821         2006-04-05  Bruno Haible  <bruno@clisp.org>
61822
61823                 * config.charset: Update Juan Manuel Guerrero's address.
61824
61825         2005-02-12  Bruno Haible  <bruno@clisp.org>
61826
61827                 * allocsa.h: Add extern "C" for C++.
61828
61829         2005-02-10  Bruno Haible  <bruno@clisp.org>
61830
61831                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61832                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61833
61834         2006-07-22  Bruno Haible  <bruno@clisp.org>
61835
61836                 * gettext.h: Update to GNU gettext-0.15.
61837
61838 2006-07-22  Bruno Haible  <bruno@clisp.org>
61839
61840         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61841         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61842         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61843
61844 2006-07-21  Eric Blake  <ebb9@byu.net>
61845
61846         * modules/stdlib-safer: New file.
61847         * MODULES.html.sh (File stream based Input/Output): Add
61848         stdlib-safer.
61849
61850 2006-07-21  Eric Blake  <ebb9@byu.net>
61851
61852         * lib/stdlib-safer.h: New file from coreutils, required by
61853         stdlib--.h.
61854
61855 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61856
61857         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61858
61859 2006-07-20  Bruno Haible  <bruno@clisp.org>
61860
61861         * gnulib-tool: Recognize new option --assume-autoconf.
61862         (autoconf_minversion): New variable.
61863         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61864
61865 2006-07-20  Bruno Haible  <bruno@clisp.org>
61866
61867         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61868
61869 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61870
61871         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61872         Reindent and repaginate.
61873
61874 2006-07-19  Derek Price  <derek@ximbiot.com>
61875
61876         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61877         Correct grammar.
61878
61879 2006-07-17  Bruno Haible  <bruno@clisp.org>
61880
61881         * modules/list: New file.
61882         * modules/array-list: New file.
61883         * modules/carray-list, modules/carray-list-tests: New files.
61884         * modules/linked-list, modules/linked-list-tests: New files.
61885         * modules/avltree-list, modules/avltree-list-tests: New files.
61886         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61887         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61888         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61889         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61890         * modules/oset: New file.
61891         * modules/array-oset: New file.
61892         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61893         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61894         * tests/test-carray_list.c: New file.
61895         * tests/test-linked_list.c: New file.
61896         * tests/test-avltree_list.c: New file.
61897         * tests/test-rbtree_list.c: New file.
61898         * tests/test-linkedhash_list.c: New file.
61899         * tests/test-avltreehash_list.c: New file.
61900         * tests/test-rbtreehash_list.c: New file.
61901         * tests/test-avltree_oset.c: New file.
61902         * tests/test-rbtree_oset.c: New file.
61903         * MODULES.html.sh (Container data structures): New section.
61904
61905 2006-07-17  Bruno Haible  <bruno@clisp.org>
61906
61907         * m4/gl_list.m4: New file.
61908
61909 2006-07-17  Bruno Haible  <bruno@clisp.org>
61910
61911         * lib/gl_list.h: New file.
61912         * lib/gl_list.c: New file.
61913         * lib/gl_array_list.h: New file.
61914         * lib/gl_array_list.c: New file.
61915         * lib/gl_carray_list.h: New file.
61916         * lib/gl_carray_list.c: New file.
61917         * lib/gl_linked_list.h: New file.
61918         * lib/gl_linked_list.c: New file.
61919         * lib/gl_anylinked_list1.h: New file.
61920         * lib/gl_anylinked_list2.h: New file.
61921         * lib/gl_avltree_list.h: New file.
61922         * lib/gl_avltree_list.c: New file.
61923         * lib/gl_anyavltree_list1.h: New file.
61924         * lib/gl_anyavltree_list2.h: New file.
61925         * lib/gl_rbtree_list.h: New file.
61926         * lib/gl_rbtree_list.c: New file.
61927         * lib/gl_anyrbtree_list1.h: New file.
61928         * lib/gl_anyrbtree_list2.h: New file.
61929         * lib/gl_anytree_list1.h: New file.
61930         * lib/gl_anytree_list2.h: New file.
61931         * lib/gl_linkedhash_list.h: New file.
61932         * lib/gl_linkedhash_list.c: New file.
61933         * lib/gl_anyhash_list1.h: New file.
61934         * lib/gl_anyhash_list2.h: New file.
61935         * lib/gl_avltreehash_list.h: New file.
61936         * lib/gl_avltreehash_list.c: New file.
61937         * lib/gl_rbtreehash_list.h: New file.
61938         * lib/gl_rbtreehash_list.c: New file.
61939         * lib/gl_anytreehash_list1.h: New file.
61940         * lib/gl_anytreehash_list2.h: New file.
61941
61942         * lib/gl_oset.h: New file.
61943         * lib/gl_oset.c: New file.
61944         * lib/gl_array_oset.h: New file.
61945         * lib/gl_array_oset.c: New file.
61946         * lib/gl_avltree_oset.h: New file.
61947         * lib/gl_avltree_oset.c: New file.
61948         * lib/gl_rbtree_oset.h: New file.
61949         * lib/gl_rbtree_oset.c: New file.
61950         * lib/gl_anytree_oset.h: New file.
61951
61952 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * m4/mkancesdirs.m4: New file.
61955         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61956         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61957         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61958         it.
61959
61960 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61961
61962         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61963         * lib/mkancesdirs.h: New files.
61964         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61965         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61966         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61967         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61968         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61969         callers changed.  Revamp internals significantly, by not
61970         attempting to create directories that are temporarily more
61971         permissive than the final results.  Do not attempt to use
61972         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61973         This removes some race conditions, fixes some bugs, and simplifies
61974         things.  Use new dirchownmod function to do owner and mode changes.
61975         * lib/mkdir-p.h: Likewise.
61976         * lib/modechange.c (octal_to_mode): New function.
61977         (struct mode_change): New member mentioned.
61978         (make_node_op_equals): New arg mentioned.  All callers changed.
61979         (mode_compile): Keep track of which mode bits the user has explicitly
61980         mentioned.
61981         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61982         New arg PMODE_BITS, to keep track of which mode bits the user
61983         mentioned; it treats S_ISUID and S_ISGID speciall.
61984         All callers changed.
61985         * lib/modechange.h: Likewise.
61986
61987 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         * MODULES.html.sh: Add mkancestors.
61990         * modules/mkancesdirs: New module.
61991         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61992         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61993         The chdir-safer and afs files are now orphans; I'll remove them
61994         unless someone speaks up.
61995         Add lib/dirchownmod.c, lib/dirchownmod.h.
61996         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61997         Add lchown, mkancesdirs.
61998         (Maintainer): Add self.
61999
62000 2006-07-15  Karl Berry  <karl@gnu.org>
62001
62002         * gnulib-tool: help message wording/arrangement.
62003
62004 2006-07-14  Simon Josefsson  <jas@extundo.com>
62005
62006         * doc/gnulib.texi (Libtool and Windows): New section.
62007
62008 2006-07-12  Simon Josefsson  <jas@extundo.com>
62009
62010         * modules/gendocs (License): Fix license, approved by Karl.
62011
62012 2006-07-12  Eric Blake  <ebb9@byu.net>
62013
62014         * MODULES.html.sh: Add gendocs.
62015
62016 2006-07-11  Eric Blake  <ebb9@byu.net>
62017
62018         * modules/fdl: New module, to install doc/fdl.texi.
62019         * MODULES.html.sh: Add new section for documentation modules.
62020         * gnulib-tool: Avoid space-tab.
62021         (--doc-base): New option, to manage files from doc.
62022
62023 2006-07-11  Eric Blake  <ebb9@byu.net>
62024
62025         * m4/absolute-header.m4: Fix comments to match recent change.
62026
62027 2006-07-11  Eric Blake  <ebb9@byu.net>
62028
62029         * gnulib-tool: List --doc-base before --tests-base.
62030
62031 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62032
62033         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62034
62035 2006-07-11  Bruno Haible  <bruno@clisp.org>
62036
62037         * README: Mention where to put documentation.
62038
62039 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62040
62041         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62042
62043 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62044
62045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62046         to stdint.m4.
62047
62048 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62049
62050         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62051         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62052         "no/such/file/stdint.h" when there is no such file, so that
62053         the resulting C code can be parsed by dodgy compilers.
62054         Problems reported by Bob Proulx.
62055
62056 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62057
62058         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62059         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62060         macros into the GNU _D_EXACT_NAMLEN.
62061         * lib/savedir.c:  Likewise.
62062         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62063
62064 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62065         and Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62068         * m4/savedir.m4:
62069         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62070         macros into the GNU _D_EXACT_NAMLEN.
62071
62072 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62073
62074         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62075         around the absolute name, to work around a problem with the HP-UX
62076         11.23 native C compiler, reported by Bob Proulx.
62077
62078 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62079
62080         * doc/maintain.texi, make-stds.texi: Sync from
62081         <http://savannah.gnu.org/projects/gnustandards>.
62082
62083 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62084
62085         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62086
62087 2006-07-09  Jim Meyering  <jim@meyering.net>
62088
62089         * m4/glob.m4: Remove a doubled word in a comment.
62090
62091 2006-07-09  Jim Meyering  <jim@meyering.net>
62092
62093         * lib/argp-pv.c: Remove a doubled word in a comment.
62094         * lib/check-version.c (check_version): Likewise.
62095         * lib/javacomp.c (compile_java_class): Likewise.
62096
62097 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62100         for the benefit of people using Autoconf 2.60.  If you want to
62101         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62102         (or m4/onceonly.m4, if pre-2.57) manually.
62103
62104 2006-07-08  Jim Meyering  <jim@meyering.net>
62105
62106         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62107         comment.
62108         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62109         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62110         comment.
62111
62112 2006-07-08  Jim Meyering  <jim@meyering.net>
62113
62114         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62115
62116 2006-07-07  Simon Josefsson  <jas@extundo.com>
62117
62118         * tests/test-crc.c: Change expected crc value, the test vector
62119         were probably computed using the old broken crc.c?
62120
62121 2006-07-06  Simon Josefsson  <jas@extundo.com>
62122
62123         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62124         now the canonical place for the M4 file).
62125
62126         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62127         from the sys_socket dependency now.
62128
62129         * modules/inet_pton (Files): Ditto.
62130
62131         * modules/inet_ntop (Files): Ditto.
62132
62133 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62134
62135         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62136         not gl_PREREQ_GETUSERSHELL.
62137
62138 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62139
62140         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62141         with only one argument, for Autoconf 2.60.
62142         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62143         expand to nothing, so add a shell command to avoid syntax error.
62144         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62145
62146 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62147
62148         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62149
62150 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62151
62152         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62153         no longer needed.  Check for isblank decl.
62154         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62155         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62156         of existence.
62157
62158 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         * lib/getloadavg.c: Use __VMS, not VMS.
62161         * lib/getopt.c: Likewise.
62162         * lib/getpagesize.h: Likewise.
62163         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62164         and probably does not work.
62165
62166 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * lib/.cppi-disable: Add wcwidth.
62169         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62170         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62171         (ISGRAPH): Remove.  All uses changed to isgraph.
62172         (FOLD) [!defined _LIBC]: Remove special case.
62173         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62174         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62175         HAVE_ISBLANK.
62176         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62177         case.
62178
62179 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62180
62181         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62182         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62183         brackets.  Other minor changes to suppress some compiler
62184         warnings.
62185
62186 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62187         and Paul Eggert  <eggert@cs.ucla.edu>
62188
62189         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62190         of invoking obsolescent AC_HEADER_DIRENT macro.
62191         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62192         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62193         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62194         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62195         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62196         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62197         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62198         * m4/readdir.m4: Remove; no longer needed.
62199
62200 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62201         and Paul Eggert  <eggert@cs.ucla.edu>
62202
62203         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62204         Don't worry about this obsolete case any more.
62205         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62206         directories.
62207         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62208         worry about this obsolete case any more.
62209         * lib/fts.c: Likewise.
62210         * lib/getcwd.c: Likewise.
62211         * lib/glob.h: Likewise.
62212         * lib/savedir.c: Likewise.
62213
62214 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62215
62216         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62217         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62218         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62219         needed.
62220         All uses removed.
62221         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62222         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62223         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62224         needed.
62225         * m4/getdate.m4 (gl_GETDATE): Likewise.
62226         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62227         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62228         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62229         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62230         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62231         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62232         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62233         needed.
62234
62235 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62236
62237         * lib/memcasecmp.c: Include <limits.h>.
62238         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62239         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62240         Don't assume isdigit succeeds only on '0' through '9'.
62241
62242 2006-07-05  Eric Blake  <ebb9@byu.net>
62243
62244         * modules/getaddrinfo (Depends-on): Add snprintf.
62245
62246 2006-07-05  Eric Blake  <ebb9@byu.net>
62247
62248         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62249         to avoid 'header present but could not be compiled' on cygwin.
62250
62251 2006-07-05  Eric Blake  <ebb9@byu.net>
62252
62253         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62254         missing from netdb.h.
62255         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62256
62257 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62258
62259         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62260         no longer needed.
62261         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62262         * m4/getdate.m4 (gl_GETDATE): Likewise.
62263         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62264         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62265         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62266         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62267         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62268
62269 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62270
62271         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62272         All uses of is_space replaced by isspace.
62273         * lib/exit.h: Don't talk about STDC_HEADERS.
62274         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62275         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62276         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62277         replaced by isprint etc.
62278         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62279         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62280         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62281         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62282         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62283         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62284
62285 2006-07-05  Bruno Haible  <bruno@clisp.org>
62286
62287         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62288         the function exists, before testing against AIX.
62289         Reported by Martin Lambers <marlam@marlam.de>.
62290
62291 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62292
62293         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62294         From Mark D. Baushke.
62295
62296 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62299         to the absolute name, not just one, to bypass Sun C 5.8's
62300         "warning: #include of /usr/include/... may be non-portable".
62301
62302 2006-07-04  Eric Blake  <ebb9@byu.net>
62303
62304         * modules/dirname-tests: New test module.
62305         * tests/test-dirname.c: New file, replacing dirname.c
62306         TEST_DIRNAME section that was recently deleted.
62307
62308 2006-07-04  Bruno Haible  <bruno@clisp.org>
62309
62310         Assume ANSI C header files and <ctype.h> functions.
62311         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62312         (mbsnwidth): Use isprint, iscntrl instead.
62313
62314 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62315
62316         Merge from coreutils.
62317         * MODULES.html.sh: Add xstrtold.
62318         * modules/xstrtold: New file.
62319         * modules/cycle-check (Files): Add lib/same-inode.h.
62320         * modules/dirname (Files): Add m4/double-slash-root.m4.
62321         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62322         * modules/mkdir-p (Files): Add lib/same-inode.h.
62323         * modules/same (Files): Add lib/same-inode.h.
62324
62325 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62326
62327         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62328         This is to keep the terminology clean; POSIX talks about
62329         "absolute pathnames", not "full pathnames", but the GNU
62330         Coding Standards say to use "path" for something else;
62331         so use "absolute" to keep both sides happy.
62332         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62333         Set gl_absolute_header, not gl_full_header_path.
62334         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62335         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62336         All uses changed.
62337
62338         Merge from coreutils.
62339
62340         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62341
62342         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62343         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62344         want to require the building of c-strtod.o.
62345         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62346         needs -lm directly.
62347         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62348
62349         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62350
62351         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62352         --as-needed option if available.  Problem reported by Albert Chin in
62353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62354         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62355         cc merely issues a bunch of annoying warnings for --as-needed
62356         (this problem was reported by Bob Proulx).  Also, try linking with
62357         -lm to detect a bug in binutils 2.16 (this problem was reported
62358         by Ralf Wildenhues).
62359
62360         2006-06-18  Jim Meyering  <jim@meyering.net>
62361
62362         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62363         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62364         macro.
62365         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62366         also check for glibc-2.4's abort-inducing bug.
62367
62368         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62369         Low-probability clean-up should be to use rmdir to get rid of
62370         the just-created directory, not unlink.
62371
62372         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62373         configure fail, and request a bug report to inform us about it.
62374         Add a comment that, barring reports to the contrary, in 2007 we'll
62375         assume ftruncate is universally available.
62376
62377         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62378
62379         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62380
62381         2006-03-12  Jim Meyering  <jim@meyering.net>
62382
62383         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62384         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62385         * m4/same.m4 (gl_SAME): Likewise.
62386         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62387
62388         2006-03-11  Eric Blake  <ebb9@byu.net>
62389
62390         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62391         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62392         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62393         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62394
62395 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62398         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62399         reported by Mark D. Baushke, one in
62400         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62401
62402         Merge from coreutils.
62403
62404         * lib/.cppi-disable: Add stdint_.h.
62405         * lib/.cvsignore: Add stdint.h.
62406
62407         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62410         both double and long double versions.
62411         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62412         * lib/xstrtold.c: New file.
62413         * lib/xstrtod.h (xstrtold): New decl.
62414
62415         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62416
62417         * lib/filemode.c (setst): Remove.
62418         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62419         (arguably) clearer, and the generated code is a bit smaller on my
62420         Debian GNU/Linux stable x86 host.
62421
62422         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62425         Assume that filemode.h includes sys/types.h and sys/stat.h.
62426         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62427         (ftypelet): Reorder to put common cases first, for efficiency.
62428         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62429         to do 'M'.
62430         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62431         of 10, for compatibility with FreeBSD.  All callers changed.
62432         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62433         types that can't be deduced solely from st_mode.  First arg is now a
62434         const pointer.
62435         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62436         (strmode): Renamed from mode_string.
62437         (filemodestring): New decl.
62438         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62439         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62440         needed.
62441         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62442
62443         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62444
62445         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62446         fsusage.h now does that.  Include fsusage.h first, to test interface.
62447         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62448         at most one method (the old code could have generated decls that
62449         didn't conform to C89, not that this was ever exercised).
62450         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62451
62452         2006-03-19  Jim Meyering  <jim@meyering.net>
62453
62454         Work even in a chroot where d_ino values for entries in "/"
62455         don't match the stat.st_ino values for the same names.
62456         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62457         number, iterate through all entries again, using lstat instead.
62458         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62459         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62460
62461         * lib/getcwd.c (__getcwd): Clarify a comment.
62462         Use memcpy in place of a call to strcpy.
62463
62464         2006-03-12  Jim Meyering  <jim@meyering.net>
62465
62466         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62467         matches that of the current directory (which we're about to chdir ".."
62468         out of), then save the dev-ino of the parent, instead.
62469
62470         * lib/same-inode.h (SAME_INODE): New file/macro.
62471         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62472         Include "same-inode.h", instead.
62473         * lib/same.c: Likewise.
62474         * lib/cycle-check.h: Include "same-inode.h".
62475         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62476         * lib/cycle-check.c (SAME_INODE): Remove definition.
62477         * lib/root-dev-ino.h: Include "same-inode.h".
62478
62479         2006-03-11  Eric Blake  <ebb9@byu.net>
62480
62481         * lib/same.c (same_name): s/base_name/last_component/
62482         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62483         * lib/filenamecat.c (file_name_concat): Likewise.
62484
62485         2006-03-11  Eric Blake  <ebb9@byu.net>,
62486                     Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62489         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62490         drive prefix.
62491         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62492         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62493         (last_component): New method.
62494         * lib/dirname.c (dir_len): Determine when drive letters need a
62495         subsequent slash.  Preserve // when it is special.
62496         (dir_name): Don't append dot when drive letter is absolute.
62497         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62498         * lib/basename.c (base_name): New semantics - malloc the result.
62499         Preserve // when it is special.  Preserve relative files that look
62500         like drive letters.
62501         (base_len): Preserve // when it is special.
62502         (last_component): New method, similar to old base_name semantics.
62503         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62504         base_name.  Strip redundant slashes from ///.
62505
62506 2006-07-03  Jim Meyering  <jim@meyering.net>
62507
62508         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62509         macro is used before the first cycle_check call.
62510
62511 2006-07-03  Eric Blake  <ebb9@byu.net>
62512
62513         * modules/dirname (Depends-on): Add xstrndup.
62514
62515 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62518         test cases, so that config.log is a bit easier to follow.
62519
62520 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62521
62522         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62523         both are 64 bits, since this seems to be the tradition, and this
62524         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62525         we ever run into a host that prefers long long to long in this
62526         case, we'll need another configure-time test.  Problem reported by
62527         Jim Meyering.
62528
62529 2006-07-02  Eric Blake  <ebb9@byu.net>
62530
62531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62532
62533 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62534
62535         * modules/inttypes (Depends-on): No longer depends on stdint.
62536         * modules/stdint (Description): Say more about assumptions.
62537         Say that the fast types might differ.  Say macros are used.
62538         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62539         (Makefile.am): Revise list of substituted symbols to match
62540         new stdint.m4.
62541         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62542         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62543         * tests/test-stdint.c (verify_same_types)
62544         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62545         the code conforms to C99/C89.
62546         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62547         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62548
62549 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62552         but fix a bug, by requiring at least 64 bits.
62553         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62554         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62555         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62556         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62557
62558         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62559         changes.  Make 2.59 a prerequisite.  Check and substitute for
62560         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62561         inttypes.h.  Do not use special include files; just use the
62562         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62563         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62564         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62565         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62566         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62567         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62568         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62569         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62570         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62571         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62572         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62573         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62574         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62575         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62576         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62577         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62578         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62579         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62580         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62581         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62582         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62583         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62584         not check for things that C99 does not require, e.g., int8_t.  If
62585         a test isn't needed unless <stdint.h> isn't working, and is
62586         unlikely to be needed for any other reason, then don't do it
62587         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62588         size_t, since we assume C89 freestanding at least.  Do not check
62589         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62590         the right thing even if the types are not defined.  Instead use:
62591         (gl_STDINT_TYPE_PROPERTIES): New macro.
62592         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62593         testing whether <sys/types.h> clashes, as Autoconf does this for
62594         us now.  All uses removed.
62595         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62596         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62597         (gl_CHECK_TYPE_SAME):
62598         Remove; no longer needed.
62599         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62600         exists, since we'll return 0 anyway in that case.
62601         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62602
62603 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62606         possible collision with system files.
62607         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62608         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62609         WCHAR_MIN and WCHAR_MAX in this case.
62610         (<stddef.h>): Do not include; no longer needed.
62611         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62612         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62613         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62614         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62615         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62616         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62617         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62618         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62619         !defined(__c99))]: Include in this case too, since it's harmless
62620         now.
62621         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62622         dangerous to do so.
62623         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62624         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62625         (_STDINT_MIN, _STDINT_MAX): New macros.
62626         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62627         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62628         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62629         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62630         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62631         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62632         macros, not typedefs; this simplifies things quite a bit.
62633         Use long int for all types narrower than int64_t.
62634         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62635         Define in terms of long long int or int64_t or long int,
62636         not int64_t or int32_t.  This saves some compile-time testing.
62637         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62638         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62639         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62640         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62641         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62642         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62643         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62644         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62645         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62646         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62647         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62648         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62649         undef any previous version and define our own version, for
62650         simplicity and consistency with the new macros for types.
62651         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62652         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62653         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62654         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62655         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62656         @WINT_T_SUFFIX@ to keep things simple here.
62657         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62658         Simplify by assuming typical 8/16/32/64 host, since we're
62659         already doing that elsewhere anyway.
62660         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62661         and assume long long int is 64 bits if available.  This
62662         speeds up 'configure'.
62663
62664 2006-07-01  Eric Blake  <ebb9@byu.net>
62665
62666         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62667         Reported by Andreas Buening.
62668
62669 2006-07-01  Eric Blake  <ebb9@byu.net>
62670
62671         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62672
62673 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62674
62675         * lib/getaddrinfo.c: fixed typo
62676
62677 2006-06-29  Jim Meyering  <jim@meyering.net>
62678
62679         * modules/strftime (Maintainer): Add my name, since with the
62680         FPRINTFTIME changes strftime.c has forked from glibc.
62681
62682 2006-06-29  Eric Blake  <ebb9@byu.net>
62683
62684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62685
62686 2006-06-29  Eric Blake  <ebb9@byu.net>
62687
62688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62689
62690 2006-06-29  Eric Blake  <ebb9@byu.net>
62691
62692         * lib/stat_.h: New file.
62693
62694 2006-06-29  Eric Blake  <ebb9@byu.net>
62695
62696         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62697         unused static function.
62698
62699 2006-06-29  Eric Blake  <ebb9@byu.net>
62700
62701         * doc/functions.texi (Function Portability): Document missing lstat
62702         on mingw.
62703
62704 2006-06-29  Eric Blake  <ebb9@byu.net>
62705
62706         * MODULES.html.sh: Add sys_stat.
62707         * modules/sys_stat: New module.
62708         * modules/mkstemp (Depends-on): Add sys_stat.
62709
62710 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62711
62712         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62713
62714 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62715
62716         * m4/c-bs-a.m4: Removed.
62717
62718 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62719
62720         * lib/strftime.c: Assume strftime() exists.
62721
62722 2006-06-29  Derek Price  <derek@ximbiot.com>
62723
62724         * modules/c-bs-a: Removed - \a is C89.
62725         * MODULES.html.sh: Remove c-bs-a.
62726
62727 2006-06-29  Bruno Haible  <bruno@clisp.org>
62728
62729         * modules/wcwidth (License): Change to LGPL.
62730
62731 2006-06-28  Simon Josefsson  <jas@extundo.com>
62732
62733         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62734         on _WIN32.
62735
62736         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62737         getnameinfo.
62738
62739 2006-06-28  Simon Josefsson  <jas@extundo.com>
62740
62741         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62742
62743 2006-06-28  Simon Josefsson  <jas@extundo.com>
62744
62745         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62746         functions there.  It will succeed on Windows XP, but on Windows
62747         2000 and (presumably) earlier, it will fail, and use the internal
62748         re-implementation.
62749         (use_win32_p): New function.
62750         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62751         Support AI_NUMERICSERV to disable getservbyname.
62752         (getnameinfo): New function, only supports
62753         NI_NUMERICHOST|NI_NUMERICSERV for now.
62754
62755         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62756         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62757         getnameinfo.
62758
62759 2006-06-28  Eric Blake  <ebb9@byu.net>
62760
62761         * modules/wcwidth: New file.
62762         * modules/mbchar (Depends-on): Add wcwidth.
62763         * modules/mbswidth (Depends-on): Add wcwidth.
62764         * MODULES.html.sh: Add wcwidth.
62765
62766 2006-06-28  Eric Blake  <ebb9@byu.net>
62767
62768         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62770
62771 2006-06-28  Eric Blake  <ebb9@byu.net>
62772
62773         * lib/xvasprintf.h: Fix comments.
62774
62775 2006-06-28  Eric Blake  <ebb9@byu.net>
62776
62777         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62778         * lib/mbswidth.c (wcwidth): Move from here...
62779         * lib/wcwidth.h: ...to this new file.
62780
62781 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62782
62783         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62784
62785         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62786         it's obsolete.
62787         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62788
62789 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62790
62791         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62792         Autoconf 2.60 says this stuff was obsolete.
62793
62794 2006-06-28  Bruno Haible  <bruno@clisp.org>
62795
62796         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62797
62798 2006-06-28  Bruno Haible  <bruno@clisp.org>
62799
62800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62801         gt_TYPE_WCHAR_T.
62802
62803 2006-06-28  Bruno Haible  <bruno@clisp.org>
62804
62805         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62806         declaration for wcwidth.
62807         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62808
62809 2006-06-28  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62812         (mkdir): Define using _mkdir.
62813
62814 2006-06-28  Bruno Haible  <bruno@clisp.org>
62815
62816         * lib/getaddrinfo.h: Fix POSIX URL.
62817         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62818         _WIN32.
62819         (use_win32_p): Make static.
62820         (getaddrinfo): Reject service name if it is empty or does not consist
62821         solely of decimal digits, or if its value is > 65535.
62822         (getnameinfo): Remove useless casts.
62823
62824 2006-06-27  Simon Josefsson  <jas@extundo.com>
62825
62826         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62827         Eggert and Martin Lambers.
62828
62829 2006-06-27  Simon Josefsson  <jas@extundo.com>
62830
62831         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62832         Eggert and Martin Lambers.
62833
62834 2006-06-27  Bruno Haible  <bruno@clisp.org>
62835
62836         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62837         result to 0, not to empty.
62838         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62839
62840 2006-06-27  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62843
62844 2006-06-26  Simon Josefsson  <jas@extundo.com>
62845
62846         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62847         present.
62848
62849 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62852         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62853         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62854
62855 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62856
62857         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62858
62859 2006-06-26  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62862
62863 2006-06-26  Bruno Haible  <bruno@clisp.org>
62864
62865         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62866
62867 2006-06-26  Bruno Haible  <bruno@clisp.org>
62868
62869         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62870         SGI C compiler in pre-C99 mode.
62871         Suggested by Mark D. Baushke and Larry Jones.
62872
62873 2006-06-26  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62876         WCHAR_MAX.
62877         Reported by Mark D. Baushke and Larry Jones.
62878
62879 2006-06-26  Bruno Haible  <bruno@clisp.org>
62880
62881         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62882         in pre-C99 mode.
62883         Suggested by Mark D. Baushke and Larry Jones.
62884
62885 2006-06-23  Simon Josefsson  <jas@extundo.com>
62886             Bruno Haible  <bruno@clisp.org>
62887
62888         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62889         Emit mostlyclean-local rule.
62890         (func_emit_tests_Makefile_am): Likewise.
62891         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62892
62893 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62894
62895         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62896
62897 2006-06-23  Bruno Haible  <bruno@clisp.org>
62898
62899         * tests/test-stdint.c: Update to match ISO C 99 Technical
62900         Corrigendum 1.
62901
62902 2006-06-23  Bruno Haible  <bruno@clisp.org>
62903
62904         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62905
62906 2006-06-23  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/stdint_.h: Treat IRIX like OpenBSD.
62909
62910 2006-06-23  Bruno Haible  <bruno@clisp.org>
62911
62912         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62913         ISO C 99 Technical Corrigendum 1.
62914
62915 2006-06-22  Simon Josefsson  <jas@extundo.com>
62916
62917         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62918         MinGW.
62919
62920 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62923         needed.  Some compiler complained about some of them.  Problem reported
62924         by Larry Jones in
62925         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62926
62927 2006-06-21  Simon Josefsson  <jas@extundo.com>
62928
62929         * tests/test-getaddrinfo.c: New file.
62930
62931         * modules/getaddrinfo-tests: New file.
62932
62933         * MODULES.html.sh: Add inet_pton.
62934
62935         * modules/inet_pton: New file.
62936
62937 2006-06-21  Simon Josefsson  <jas@extundo.com>
62938
62939         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62940         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62941         of using the (limited) gnulib implementation on Windows XP.
62942
62943         * m4/inet_pton.m4: New file.
62944
62945 2006-06-21  Simon Josefsson  <jas@extundo.com>
62946
62947         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62948         variable.
62949
62950         * lib/socket_.h: Don't define WINVER.
62951
62952         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62953         slightly modified to work in gnulib.
62954
62955 2006-06-21  Simon Josefsson  <jas@extundo.com>
62956
62957         * doc/gnulib.texi (Windows sockets): Add.
62958
62959 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * lib/read-file.c (fread_file): Start with buffer allocation of
62962         0 bytes rather than 1 byte; this simplifies the code.
62963         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62964         code to free buffer and save/restore errno.
62965         (internal_read_file): Remove unused local.
62966
62967 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62968
62969         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62970         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62971         Problem reported by Denis Excoffier in
62972         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62973
62974 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62975
62976         * modules/sys_socket, modules/socklen: Include sys/types since
62977         FreeBSD 4.x's sys/socket.h needs it.
62978
62979 2006-06-19  Simon Josefsson  <jas@extundo.com>
62980
62981         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62982
62983 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62986
62987 2006-06-19  Bruno Haible  <bruno@clisp.org>
62988
62989         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62990         and FULL_PATH_INTTYPES_H in angle brackets.
62991         Reported by Mark D. Baushke <mdb@gnu.org>.
62992
62993 2006-06-17  Eric Blake  <ebb9@byu.net>
62994
62995         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62996         errno.
62997
62998 2006-06-17  Bruno Haible  <bruno@clisp.org>
62999
63000         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63001         <sys/inttypes.h>.
63002
63003 2006-06-17  Bruno Haible  <bruno@clisp.org>
63004
63005         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63006         whether errno is declared. Assume <errno.h> declares errno.
63007
63008 2006-06-17  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63011
63012 2006-06-17  Bruno Haible  <bruno@clisp.org>
63013
63014         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63015         problem on Solaris 2.5.1.
63016
63017 2006-06-16  Eric Blake  <ebb9@byu.net>
63018
63019         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63020         * lib/unicodeio.c [!defined errno]: Likewise.
63021         * lib/strtol.c [!defined errno]: Likewise.
63022         * lib/strtod.c [!defined errno]: Likewise.
63023
63024 2006-06-15  Eric Blake  <ebb9@byu.net>
63025
63026         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63027
63028 2006-06-15  Eric Blake  <ebb9@byu.net>
63029
63030         * config/srclist.txt (ssize_t.m4): Lose sync.
63031
63032 2006-06-15  Bruno Haible  <bruno@clisp.org>
63033
63034         * modules/stdint (Files): Include m4/full-header-path.m4,
63035         m4/size_max.m4, m4/wchar_t.m4.
63036         (Makefile.am): Many more substitutions.
63037         * modules/stdint-tests: New file.
63038         * tests/test-stdint.c: New file.
63039
63040 2006-06-15  Bruno Haible  <bruno@clisp.org>
63041
63042         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63043         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63044         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63045         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63046         gl_CHECK_TYPE_SAME): New macros.
63047
63048 2006-06-15  Bruno Haible  <bruno@clisp.org>
63049
63050         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63051
63052 2006-06-15  Bruno Haible  <bruno@clisp.org>
63053
63054         * lib/stdint_.h: Rewritten to be fully auto-configured.
63055         Fixes bug on HP-UX/IA64.
63056
63057 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         * lib/getdate.y (__attribute__): Don't define if already defined.
63060         Problem reported by Larry Jones.
63061         * lib/utimens.c (__attribute__): Likewise.
63062
63063 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63064
63065         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63066         reported by Andreas Schwab.
63067
63068 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63069             Bruno Haible  <bruno@clisp.org>
63070
63071         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63072         check for the declaration of strnlen and a run test that exposes the
63073         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63074         rpl_strndup.
63075
63076 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63077             Bruno Haible  <bruno@clisp.org>
63078
63079         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63080
63081 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63082
63083         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63084         compile test, for Tru64 4.0D.
63085
63086 2006-05-28  Karl Berry  <karl@gnu.org>
63087
63088         * config/srclist.txt (printf-args.c): lose sync.
63089
63090 2006-05-26  Martin Lambers  <marlam@marlam.de>
63091
63092         * lib/getpass.c: Updates the test for the native W32 API, and adds
63093         missing includes, thus fixing compilation warnings.
63094
63095 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63096
63097         * lib/exclude.c (exclude_fnmatch): New function.
63098         (excluded_file_name): Call exclude_fnmatch.
63099         * lib/exclude.h (excluded_file_name): New prototype
63100
63101 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         * lib/tempname.c (small_open, large_open): New macros.
63104         (__open, __open64) [!_LIBC]: Remove.
63105         (__gen_tempname): Use small_open and large_open instead of __open
63106         and __open64.  This fixes a portability bug on HP-UX 11.11i
63107         reported by Simon Wing-Tang in
63108         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63109
63110 2006-05-24  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63113         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63114         Reported by Thorsten Maerz <torte@netztorte.de> via
63115         Aaron Stone <aaron@serendipity.cx>.
63116
63117 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63118
63119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63120         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63121         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63122         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63123         not really conditional on the cache.
63124         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63125
63126 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63129         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63130         (my_usleep): Don't mishandle maximum value.
63131
63132 2006-05-19  Jim Meyering  <jim@meyering.net>
63133
63134         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63135
63136 2006-05-17  Bruno Haible  <bruno@clisp.org>
63137
63138         Cygwin portability.
63139         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63140
63141 2006-05-17  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/stdint_.h: Fix recognition of Cygwin.
63144
63145 2006-05-15  Bruno Haible  <bruno@clisp.org>
63146
63147         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63148         on libtool patch by Ralf Wildenhues.
63149
63150 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63153         test for C99 conformance; (bool) 0.5 is an integer constant
63154         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63155         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63156
63157 2006-05-11  Simon Josefsson  <jas@extundo.com>
63158
63159         * m4/xvasprintf.m4: Fix obvious typo.
63160
63161 2006-05-11  Jim Meyering  <jim@meyering.net>
63162
63163         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63164         James Lemley.
63165
63166 2006-05-10  Simon Josefsson  <jas@extundo.com>
63167
63168         * lib/md4.c: Typo fix, update copyright years.
63169         (K1, K2): Don't use L because it turn computations into 64-bit on
63170         64-bit platforms.
63171
63172 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63173
63174         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63175         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63176         unwanted sign propagation, e.g., on hosts with 64-bit int.
63177         There still are some problems with reeelly weird theoretical hosts
63178         (e.g., 33-bit int) but it's not worth worrying about now.
63179         * lib/sha1.c (rol): Likewise.
63180         (K1, K2, K3, K4): Remove unnecessary L suffix.
63181
63182 2006-05-10  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/des.c: Cast to avoid warnings.
63185
63186 2006-05-09  Bruno Haible  <bruno@clisp.org>
63187
63188         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63189         (Depends-on): Depend also on xsize, stdarg.
63190         (configure.ac): Add gl_XVASPRINTF.
63191
63192 2006-05-09  Bruno Haible  <bruno@clisp.org>
63193
63194         * m4/xvasprintf.m4: New file.
63195
63196 2006-05-09  Bruno Haible  <bruno@clisp.org>
63197
63198         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63199         (EOVERFLOW): Define fallback value.
63200         (xstrcat): New function.
63201         (xvasprintf): Recognize the special case of a string concatenation.
63202
63203 2006-05-08  Eric Blake  <ebb9@byu.net>
63204
63205         * gnulib-tool (func_version): Base copyright year on CVS date.
63206         (func_emit_copyright_notice): New function.
63207         (func_emit_lib_Makefile_am): Use it.
63208         (func_emit_tests_Makefile_am): Likewise.
63209         (func_import): Likewise.
63210
63211 2006-05-08  Bruno Haible  <bruno@clisp.org>
63212
63213         * modules/stdarg: New file.
63214         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63215
63216 2006-05-08  Bruno Haible  <bruno@clisp.org>
63217
63218         * m4/stdarg.m4: New file, from GNU gettext.
63219
63220 2006-05-08  Bruno Haible  <bruno@clisp.org>
63221
63222         * config/srclist.txt (build-aux/config.rpath): different from latest
63223         release.
63224
63225 2006-05-08  Bruno Haible  <bruno@clisp.org>
63226
63227         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63228
63229 2006-05-05  Jim Meyering  <jim@meyering.net>
63230
63231         * m4/warning.m4: New file, derived from bison's file by the same name.
63232
63233 2006-05-03  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/stdint_.h: Shorter URL.
63236         * lib/inttypes.h: Likewise.
63237
63238 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63239
63240         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63241
63242 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * lib/verify.h: Document the internals better.  Most of this change
63245         was written by Bruno Haible.
63246
63247 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63248
63249         * doc/verify.texi: New file, partly based on a proposal by
63250         Bruno Haible.
63251
63252 2006-05-02  Bruno Haible  <bruno@clisp.org>
63253
63254         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63255         test from here...
63256         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63257
63258 2006-04-29  Bruno Haible  <bruno@clisp.org>
63259
63260         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63261         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63262
63263 2006-04-29  Bruno Haible  <bruno@clisp.org>
63264
63265         * gnulib-tool: Make --update option actually work.
63266
63267 2006-04-29  Bruno Haible  <bruno@clisp.org>
63268
63269         * doc/gcd.texi: New file.
63270         * doc/gnulib.texi: Include it.
63271
63272 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63273
63274         * lib/getdate.y (get_date): When adding relative date, start with the
63275         initial time, not with the result of the first mktime call.
63276
63277 2006-04-25  Bruno Haible  <bruno@clisp.org>
63278
63279         * gnulib-tool (func_import): Output the include directives in three
63280         blocks, sorted separately.
63281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63282
63283 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63286         to define main with arguments, for C++.  Reported by Eric Blake.
63287         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63288         Prefer 'int main ()' to 'int main (void)', for C++.
63289         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63290         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63291         for 'main', for C99 and C++.
63292
63293 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63294
63295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63296         Don't assume that exit status -1 is valid.
63297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63298         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63299         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63300         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63301         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63302         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63303         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63304         functions can be used without declaring them, or that you can
63305         exit with status -1.
63306         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63307
63308 2006-04-24  Karl Berry  <karl@gnu.org>
63309
63310         * config/srclist.txt (longdouble.m4): sync lost.
63311
63312 2006-04-24  Eric Blake  <ebb9@byu.net>
63313
63314         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63315
63316 2006-04-24  Bruno Haible  <bruno@clisp.org>
63317
63318         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63319         poll() implementation in AIX.
63320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63321
63322 2006-04-24  Bruno Haible  <bruno@clisp.org>
63323
63324         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63325         assigned exactly once.
63326
63327 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63328             Bruno Haible  <bruno@clisp.org>
63329
63330         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63331         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63332         for AM_CPPFLAGS.
63333
63334 2006-04-23  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/copy-file: Depend on unistd.
63337         * modules/execute: Likewise.
63338         * modules/fatal-signal: Likewise.
63339         * modules/findprog: Likewise.
63340         * modules/mkdtemp : Likewise.
63341         * modules/pipe: Likewise.
63342         * modules/wait-process: Likewise.
63343
63344 2006-04-23  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63347         condition was already detected.
63348         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63349
63350 2006-04-23  Bruno Haible  <bruno@clisp.org>
63351
63352         * lib/copy-file.c: Include <unistd.h> unconditionally.
63353         * lib/execute.c: Likewise.
63354         * lib/fatal-signal.c: Likewise.
63355         * lib/findprog.c: Likewise.
63356         * lib/mkdtemp.c: Likewise.
63357         * lib/pipe.h: Likewise.
63358         * lib/pipe.c: Likewise.
63359         * lib/wait-process.h: Likewise.
63360
63361 2006-04-23  Bruno Haible  <bruno@clisp.org>
63362
63363         * gnulib-tool (func_usage): Fix --import description. Document
63364         --update.
63365         (func_import): Create temporary file in a temporary directory, if
63366         --dry-run is specified. Silence errors from 'grep' when there are no
63367         m4 files in $m4dir.
63368         (func_create_testdir): Silence errors from 'grep' when there are no
63369         m4 files in $m4dir.
63370         Reported by Karl Berry <karl@freefriends.org>.
63371
63372 2006-04-20  Bruno Haible  <bruno@clisp.org>
63373
63374         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63375         one argument, so that the code will be portable to Autoconf 2.60.
63376         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63377         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63378         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63379
63380 2006-04-19  Derek Price  <derek@ximbiot.com>
63381             Eric Blake  <ebb9@byu.net>
63382
63383         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63384         rather than "/full/path.h".  Update comment to match.  Shorten &
63385         generalize m4_translit call via AS_TR_CPP.
63386
63387 2006-04-19  Derek Price  <derek@ximbiot.com>
63388             Eric Blake  <ebb9@byu.net>
63389
63390         * lib/inttypes.h: Correct grammar in comment.
63391
63392 2006-04-18  Derek Price  <derek@ximbiot.com>
63393             Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         * modules/inttypes: New file.
63396         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63397
63398 2006-04-18  Derek Price  <derek@ximbiot.com>
63399             Paul Eggert  <eggert@cs.ucla.edu>
63400
63401         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63402         New files.
63403
63404 2006-04-18  Derek Price  <derek@ximbiot.com>
63405             Paul Eggert  <eggert@cs.ucla.edu>
63406
63407         * lib/inttypes.h: New file.
63408         * lib/strtoimax.c: Assume <inttypes.h>.
63409
63410 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63411
63412         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63413         isn't mounted.  Problem reported by Kir Kolyshkin.
63414
63415 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63416
63417         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63418         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63419         Derek R. Price.
63420         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63421         implementation.
63422
63423 2006-04-12  Eric Blake  <ebb9@byu.net>
63424
63425         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63426         is now done automatically by the corresponding Autoconf macro.
63427
63428 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63429
63430         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63431         time_r.h.
63432
63433 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         Merge regex changes from libc, removing some of our
63436         POSIX-conformance changes that were rejected and redoing them in a
63437         less-intrusive way.
63438
63439         * lib/regcomp.c (re_compile_internal, init_dfa):
63440         Length arg is now size_t, not Idx.  All uses changed.
63441         (peek_token): Forward decl now says internal_function.
63442         (__re_error_msgid, __re_error_msgid_idx):
63443         Now static rather than extern with attribute_hidden.
63444         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63445         For some reason libc prefers K&R style defns for external functions.
63446         (regerror) [!defined _LIBC]: Likewise.
63447         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63448         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63449         (build_range_exp, build_collating_symbol):
63450         Use K&R-style defn.
63451         (re_compile_fastmap): Use '\0' to memset, not 0.
63452         (utf8_sb_map): Make the calculations more obvious.
63453         (init_dfa, parse_bracket_exp, build_charclass_op):
63454         Call calloc and cast result, as glibc does.
63455         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63456         (build_range_exp, build_collating_symbol):
63457         Now internal functions.
63458
63459         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63460
63461         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63462         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63463         Don't depend on VMS; depend on __VMS instead, for POSIX
63464         namespace cleanness.
63465         (regoff_t): Define to ssize_t, not long int.
63466
63467         Remove the REG_ macros named below.  Instead, make the old names
63468         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63469         __USE_GNU_REGEX.
63470         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63471         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63472         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63473         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63474         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63475         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63476         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63477         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63478         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63479         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63480         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63481         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63482         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63483         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63484         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63485         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63486         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63487         (REG_NREGS):
63488         Remove.  All uses replaced by the old RE_* names.
63489         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63490         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63491         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63492         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63493         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63494         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63495         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63496         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63497         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63498         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63499         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63500         Don't bother having these macros be independent of each others'
63501         values, since they no longer exist in the POSIX name space.
63502
63503         Rename the following member names back to their old names,
63504         unless !__USE_GNU_REGEX.  All uses changed back.
63505         (buffer): Renamed from re_buffer.
63506         (allocated): Renamed from re_allocated.
63507         (used): Renamed from re_used.
63508         (syntax): Renamed from re_syntax.
63509         (fastmap): Renamed from re_fastmap.
63510         (translate): Renamed from re_translate.
63511         (can_be_null): Renamed from re_can_be_null.
63512         (regs_allocated): Renamed from re_regs_allocated.
63513         (fastmap_accurate): Renamed from re_fastmap_accurate.
63514         (no_sub): Renamed from re_no_sub.
63515         (not_bol): Renamed from re_not_bol.
63516         (not_eol): Renamed from re_not_eol.
63517         (newline_anchor): Renamed from re_newline_anchor.
63518         (num_regs): Renamed from rm_num_regs.
63519         (start): Renamed from rm_start.
63520         (end): Renamed from rm_end.
63521
63522         (free_state): Move up a bit.
63523
63524         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63525         #define to be empty.
63526         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63527         when that is what is intended.
63528         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63529         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63530         (MAX): New macro.
63531         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63532         All uses changed back to re_malloc, etc.  It's now the caller's
63533         responsibility to check for overflow; all callers changed.
63534         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63535         (re_x2nrealloc): Remove.
63536         (free_state): Remove decl.
63537
63538         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63539         (re_set_registers, re_exec):
63540         Use K&R-style defn.
63541
63542         2006-01-31  Roland McGrath  <roland@redhat.com>
63543
63544         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63545         Reported by Mike Frysinger <vapier@gentoo.org>.
63546
63547         2006-01-15  Andreas Jaeger  <aj@suse.de>
63548
63549         [BZ #1950]
63550         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63551         build_wcs_upper_buffer change.
63552         (build_wcs_upper_buffer): Change return type.
63553
63554         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63555
63556         * lib/regex_internal.h: Include <stdint.h> if available.
63557
63558         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63559
63560         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63561
63562         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63563
63564         * lib/regcomp.c: Adjust for changed secondary hash function.
63565
63566         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63567
63568         * lib/regex.h: Pretty printing.
63569         Clean up namespace a bit.
63570
63571         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63572
63573         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63574         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63575
63576         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63577                     Ulrich Drepper  <drepper@redhat.com>
63578
63579         [BZ #1302]
63580         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63581         changed.
63582         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63583
63584         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63585
63586         [BZ #281]
63587         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63588         * lib/regcomp.c: Remove unnecessary uses of
63589         unsigned RE_TRANSLATE_TYPE.
63590         * lib/regex_internal.h: Likewise.
63591         * lib/regex_internal.c: Likewise.
63592         * lib/regexec.c: Likewise.
63593         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63594
63595         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63596
63597         * lib/regexec.c (find_recover_state): Remove unnecessary
63598         initialization.
63599         (transit_state_bkref): Make DFA a const pointer.
63600         (get_subexp): Likewise.
63601         (check_arrival): Likewise.
63602         (update_cur_sifted_state): Likewise.
63603         (re_search_internal): Likewise.
63604         (prune_impossible_nodes): Likewise.
63605         (acquire_init_state_context): Likewise.
63606         (proceed_next_node): Likewise.
63607         (set_regs): Likewise.
63608         (free_fail_stack_return): Likewise.
63609         (check_arrival_expand_ecl): Mark DFA parameter as const.
63610         (check_arrival_expand_ecl_sub): Likewise.
63611         (check_subexp_limits): Likewise.
63612         (sub_epsilon_src_nodes):  Likewise.
63613         (add_epsilon_src_nodes):  Likewise.
63614         (merge_state_array): Likewise.
63615         (update_regs): Likewise.
63616         (build_trtable): Likewise.
63617         (sift_states_backward): Mark MCTX parameter as const.
63618         (build_sifted_states): Likewise.
63619         (update_cur_sifted_state): Likewise.
63620         (sift_states_mkref): Likewise.
63621         (check_arrival_expand_ecl): Mark eclosure as const.
63622         (check_dst_limits_calc_pos_1): Likewise.
63623         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63624         pointer.
63625
63626         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63627
63628         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63629         (transit_state_sb): Likewise.
63630         (transit_state_mb): Likewise.
63631         (sift_states_iter_mb): Likewise.
63632         (check_arrival_add_next_nodes): Likewise.
63633         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63634         [_LIBC] (re_search_2_stub): Use mempcpy.
63635
63636         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63637         mbrtowc for very simple UTF-8 case.
63638
63639         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63640         a pointer-to-const.
63641         (re_acquire_state_context): Likewise.
63642         * lib/regex_internal.h: Adjust prototypes.
63643
63644         * lib/regex.c: Prevent using C++ compilers.
63645
63646         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63647         (re_acquire_state_context): Likewise.
63648
63649 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63650
63651         * modules/regex (Depends-on): Add ssize_t.
63652
63653 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63656         translation table.
63657
63658 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63661
63662 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63663             Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63666         <sys/types.h> and <inttypes.h>.
63667
63668 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63669
63670         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63671         `__error_t_defined', so argp.h will not typedef the former.
63672
63673 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63676         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63677         glibc names.  Even if glibc is changed to conform to POSIX, the
63678         traditional names will be available anyway, since regex depends on
63679         the extensions module.  Also, fix a longstanding typo in the
63680         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63681         reported by Emanuele Giaquinta.  Also, change sense of cached
63682         variable, so that the message makes sense.
63683
63684 2006-03-24  Simon Josefsson  <jas@extundo.com>
63685
63686         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63687         including some doc fixes.
63688         (base64_encode_alloc): Fix +1 bug on allocation failures.
63689
63690 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63691
63692         * lib/base64.c (base64_encode): Do not read past end of array with
63693         unsanitized input on systems with CHAR_BIT > 8.
63694
63695 2006-03-24  Eric Blake  <ebb9@byu.net>
63696
63697         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63698
63699 2006-03-22  Karl Berry  <karl@gnu.org>
63700
63701         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63702         * config/srclistvars.sh (COREUTILS): new var.
63703
63704 2006-03-17  Jim Meyering  <jim@meyering.net>
63705
63706         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63707         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63708
63709 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63710
63711         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63712         no longer needs it.  Instead, check that regoff_t is as least
63713         as wide as ptrdiff_t.
63714
63715         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63716         so that our regex.h stays compatible with the installed regex.
63717         This is helpful for installers who configure --without-included-regex.
63718         Problem reported by Emanuele Giaquinta.
63719
63720 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63721
63722         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63723         Typedef to long int, not to off_, as POSIX will likely change
63724         in that direction.
63725
63726 2006-03-15  Eric Blake  <ebb9@byu.net>
63727
63728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63729
63730 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63731
63732         * lib/argp-help.c (validate_uparams): Fix typo
63733         * lib/argp-parse.c (argp_default_options): Consistently begin help
63734         messages with a lowercase letter.
63735
63736 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63737
63738         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63739         overrun buffers and shouldn't be used (much as gets shouldn't be
63740         used).
63741         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63742
63743 2006-03-08  Simon Josefsson  <jas@extundo.com>
63744
63745         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63746         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63747
63748 2006-03-08  Simon Josefsson  <jas@extundo.com>
63749
63750         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63751         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63752
63753 2006-03-08  Simon Josefsson  <jas@extundo.com>
63754
63755         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63756         signal that configure disabled the device.
63757
63758 2006-03-08  Simon Josefsson  <jas@extundo.com>
63759
63760         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63761         languages.
63762
63763 2006-03-07  Simon Josefsson  <jas@extundo.com>
63764
63765         * modules/getopt (Depends-on): Add unistd.
63766
63767         * modules/unistd: New file.
63768
63769 2006-03-07  Simon Josefsson  <jas@extundo.com>
63770
63771         * modules/gc-random: New file.
63772
63773 2006-03-07  Simon Josefsson  <jas@extundo.com>
63774
63775         * m4/unistd_h.m4: New file.
63776
63777 2006-03-07  Simon Josefsson  <jas@extundo.com>
63778
63779         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63780         test to be side-effect free by storing the result in the cache
63781         variable gl_cv_lib_readline, and moving the assignment of
63782         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63783         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63784
63785 2006-03-07  Simon Josefsson  <jas@extundo.com>
63786
63787         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63788         error on missing devices (the functions will return an error).
63789
63790         * m4/gc.m4: Move random stuff to gc-random.m4
63791
63792 2006-03-07  Simon Josefsson  <jas@extundo.com>
63793
63794         * lib/unistd_.h: New file.
63795
63796 2006-03-07  Simon Josefsson  <jas@extundo.com>
63797
63798         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63799
63800 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63803         Problem reported by Juan Manuel Guerrero.
63804
63805 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63808         the unistd module.
63809         * lib/getlogin_r.c: Likewise.
63810         * lib/getlogin_r.h: Likewise.
63811         * lib/glob.c: Likewise.
63812         * lib/pagealign_alloc.c: Likewise.
63813         * lib/unistd_.h: Remove; no longer needed.
63814
63815 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63818         Add unistd.
63819         * modules/c-stack (Depends-on): Add unistd.
63820         * modules/getlogin_r: Likewise.
63821         * modules/glob: Likewise.
63822         * modules/pagealign_alloc: Likewise.
63823         * modules/unistd (Files): Remove lib/unistd_.h.
63824         (EXTRA_DIST): Remove.
63825         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63826         need unistd_.h.
63827         (MOSTLYCLEANFILES): Remove unistd.h-t.
63828
63829 2006-03-03  Simon Josefsson  <jas@extundo.com>
63830
63831         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63832
63833 2006-03-03  Simon Josefsson  <jas@extundo.com>
63834
63835         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63836         libidn and bison.
63837
63838 2006-03-03  Simon Josefsson  <jas@extundo.com>
63839
63840         * build-aux/maint.mk: Add indent target.
63841
63842 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63843
63844         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63845         our replacement poll.h in any case, to avoid a differing
63846         declaration from a system header.  Seen on AIX.
63847
63848 2006-03-01  Simon Josefsson  <jas@extundo.com>
63849
63850         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63851         <kasal@ucw.cz>.
63852
63853 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63854
63855         * modules/gettime (Depends-on): Add extensions module.
63856         * modules/nanosleep (Depends-on): Likewise.
63857         * modules/settime (Depends-on): Likewise.
63858
63859 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63860
63861         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63862         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63863         pedantically.
63864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63865         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63866
63867         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63868         not "==".  Reported by Ralf Wildenhues.
63869
63870 2006-03-01  Karl Berry  <karl@gnu.org>
63871
63872         * doc/Copyright/request-*: new files, synced from gnuorg.
63873
63874 2006-03-01  Karl Berry  <karl@gnu.org>
63875
63876         * config/srclist.txt (Copyright/*): new entries.
63877
63878 2006-02-28  Simon Josefsson  <jas@extundo.com>
63879
63880         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63881
63882 2006-02-27  Simon Josefsson  <jas@extundo.com>
63883
63884         * lib/base64.h: Indent #define's.  From Jim Meyering
63885         <jim@meyering.net>.
63886
63887 2006-02-27  Jim Meyering  <jim@meyering.net>
63888
63889         Revert the change of 2006-02-24, so these files can continue
63890         to be sync'd from gettext.
63891         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63892         of `config.h'.
63893
63894 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63895
63896         * modules/intprops: New file.
63897         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63898         Add intprops.
63899         * modules/getloadavg (Files): Remove lib/intprops.h.
63900         (Depends-on): Add intprops.
63901         * modules/human: Likewise.
63902         * modules/inttostr: Likewise.
63903         * modules/openat: Likewise.
63904         * modules/sig2str: Likewise.
63905         * modules/userspec: Likewise.
63906         * modules/utimecmp: Likewise.
63907         * modules/xnanosleep: Likewise.
63908         * modules/xstrtol: Likewise.
63909
63910 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63911
63912         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63913         * modules/lock-tests (TESTS): Use $(EXEEXT).
63914         * modules/tls-tests: Likewise.
63915         * modules/argp-tests: Likewise.
63916         (check_PROGRAMS): New var, replacing...
63917         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63918
63919 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63920
63921         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63922         `config.h'.
63923
63924 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63927
63928 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63929
63930         Sync from coreutils.
63931         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63932         gl_CHDIR_SAFER.
63933
63934 2006-02-22  Jim Meyering  <jim@meyering.net>
63935
63936         Sync from coreutils.
63937         * m4/chdir-safer.m4: New file.
63938
63939 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63940
63941         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63942         AT_FDCWD exceeds INT_MAX.
63943         * lib/openat.h (AT_FDCWD): Likewise.
63944
63945 2006-02-17  Eric Blake  <address@hidden>
63946
63947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63948
63949 2006-02-16  Simon Josefsson  <jas@extundo.com>
63950
63951         * modules/getaddrinfo (Depends-on): Add sys_socket.
63952
63953 2006-02-15  Simon Josefsson  <jas@extundo.com>
63954
63955         * build-aux/maint.mk: Add dsyntax-check rule.
63956
63957 2006-02-15  Eric Blake  <ebb9@byu.net>
63958
63959         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63960         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63961         'present but cannot compile' warnings on cygwin.
63962         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63963         use ws2tcpip.h if sys/socket.h works.
63964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63965         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63966
63967 2006-02-14  Simon Josefsson  <jas@extundo.com>
63968
63969         * modules/maintainer-makefile (Files): Rename.
63970
63971         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63972         and (the local) Makefile.cfg to maint-cfg.mk.
63973
63974         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63975         to the latter.
63976
63977         * modules/maintainer-makefile: New module.
63978
63979         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63980         severaly stripped to make it possible to build it up from scratch
63981         with reliable tests.
63982
63983         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63984         fixes to permit overriding the default actions when configure and
63985         makefile are not available.
63986
63987 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         Sync from coreutils.
63990         * modules/lstat (Depends-on): Don't depend on xalloc.
63991         (License): Change from GPL to LGPL, since this is now simply a
63992         replacement for a libc function.
63993
63994 2006-02-14  Jim Meyering  <jim@meyering.net>
63995
63996         Sync from coreutils.
63997
63998         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63999         failure on deficient systems, and simplify gnulib lgpl dependencies.
64000         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64001         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64002
64003         * lib/xalloc-die.c: Remove unused definition of N_.
64004
64005 2006-02-14  Jim Meyering  <jim@meyering.net>
64006
64007         Sync from coreutils.
64008         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64009         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64010         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64011         double-quote uses of that variable, to accommodate the rare case in
64012         which getmntent is available in none of the libraries checked.  This
64013         happens at least on FreeBSD 5.0.
64014
64015 2006-02-13  Simon Josefsson  <jas@extundo.com>
64016
64017         * gnulib-tool (Usage): Fix --import, from
64018         karl@freefriends.org (Karl Berry).
64019
64020 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64021
64022         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64023
64024 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64025
64026         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64027         "autoupdate" on 2005-12-12.
64028
64029 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         * modules/closeout (Depends-on): Remove atexit.
64032
64033 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64034
64035         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64036         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64037
64038 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64039
64040         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64041         __EXTENSIONS__ if this causes compilation to fail.  Problem
64042         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64043         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64044
64045 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64048         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64050         All uses changed.
64051
64052 2006-01-26  Simon Josefsson  <jas@extundo.com>
64053
64054         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64055         prototype is visible on mingw32.
64056
64057         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64058         for mingw32.
64059
64060         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64061         mingw32).
64062
64063 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64066         attempt to open for write; this always fails, at least on POSIX
64067         hosts.  This reinstates the 2006-01-09 change, which was
64068         inadvertently removed.
64069
64070 2006-01-26  Bruno Haible  <bruno@clisp.org>
64071
64072         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64073         Reported by Paul Eggert.
64074
64075 2006-01-26  Bruno Haible  <bruno@clisp.org>
64076             Paul Eggert  <eggert@cs.ucla.edu>
64077
64078         * lib/stdbool_.h (_Bool)
64079         [(! (defined __cplusplus || defined __BEOS__)
64080           && !defined __GNUC__
64081           && !(defined __HP_cc || defined __xlc__
64082                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64083                || defined __sgi))]:
64084         #define to signed char in these cases too; this simplifies
64085         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64086         etc., separately) and makes it more conservative.
64087
64088 2006-01-25  Simon Josefsson  <jas@extundo.com>
64089
64090         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64091         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64092         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64093
64094 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64095
64096         * lib/argp-namefrob.h: Bugfix. Remove stray #
64097
64098 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64101         so that we test the test.
64102         Check for yet another HP-UX cc bug involving *bool |= bool.
64103
64104 2006-01-25  Karl Berry  <karl@gnu.org>
64105
64106         * config/srclist.txt (vasnprintf.c): sync lost.
64107
64108 2006-01-25  Jim Meyering  <jim@meyering.net>
64109
64110         Sync from the stable (b5) branch of coreutils:
64111
64112         * lib/fts.c (fts_children): Don't let close() clobber errno from
64113         failed fchdir().
64114
64115         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64116         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64117         a dangling symlink.  That can also happen at least for ELOOP.
64118         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64119         FYI, this bug predates the inclusion of fts.c in coreutils.
64120
64121         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64122         in their own block, so pre-c99 compilers don't object.
64123
64124         Avoid the double-free (first in fts_read, second in fts_close) that
64125         would occur when an `active' directory is made inaccessible (e.g.,
64126         via chmod a-x) during a traversal.
64127         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64128         before returning.  Reproduce this failure by
64129         mkdir -p a/b; cd a; chmod a-x . b
64130         Reported by Stavros Passas.
64131
64132 2006-01-25  Jim Meyering  <jim@meyering.net>
64133
64134         * lib/fileblocks.c: Remove more useless parentheses.
64135         * lib/readutmp.h: Likewise.
64136
64137 2006-01-25  Bruno Haible  <bruno@clisp.org>
64138
64139         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64140         warnings.
64141         Reported by Paul Eggert.
64142
64143 2006-01-25  Bruno Haible  <bruno@clisp.org>
64144
64145         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64146         rid of a trap command. For Solaris sh.
64147         Reported by Mark D. Baushke <mdb@gnu.org>.
64148
64149 2006-01-24  Simon Josefsson  <jas@extundo.com>
64150
64151         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64152         Bruno.
64153
64154 2006-01-24  Karl Berry  <karl@gnu.org>
64155
64156         * config/srclist.txt (argp-namefrob.h): sync lost.
64157
64158 2006-01-24  Jim Meyering  <jim@meyering.net>
64159
64160         * modules/openat (Files): Add lib/intprops.h.
64161         From Mark D. Baushke.
64162
64163 2006-01-24  Jim Meyering  <jim@meyering.net>
64164
64165         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64166         Reported by Mark D. Baushke.
64167
64168 2006-01-24  Jim Meyering  <jim@meyering.net>
64169
64170         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64171
64172 2006-01-24  Bruno Haible  <bruno@clisp.org>
64173
64174         * modules/strnlen (Maintainer): Change from glibc to all.
64175
64176 2006-01-24  Bruno Haible  <bruno@clisp.org>
64177
64178         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64179         Patch by Paul Eggert.
64180
64181 2006-01-24  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64184         already has it.
64185         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64186         2005-11-26.
64187
64188         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64189         'signed char' to avoid problems with the built-in _Bool type.
64190         Reported by Paul Eggert on 2005-11-26.
64191
64192 2006-01-24  Bruno Haible  <bruno@clisp.org>
64193
64194         * gnulib-tool (func_import): Avoid constructing complicated sed
64195         expressions inside backquote.
64196         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64197
64198 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64199
64200         These changes imported from libc.
64201         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64202         test and two separate function calls.
64203         * lib/strndup.c (__strndup): Add libc_hidden_def.
64204
64205 2006-01-23  Simon Josefsson  <jas@extundo.com>
64206
64207         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64208         Remove the test_*_SOURCES variable: automake infers it by default.
64209         * modules/tls-tests: Likewise.
64210
64211 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         Work around porting bugs reported by Dieter in
64214         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64215         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64216         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64217         Include "getopt.h" first, to check interface.
64218         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64219         !HAVE_DECL_GETENV.
64220         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64221         (__strndup): Revert to K&R-style function dfns, the glibc style.
64222         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64223         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64224         Include strnlen.h first, to get prototype properly.
64225         (strnlen): Renamed from __strnlen.
64226         Remove weak alias.
64227
64228 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64231
64232 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64233
64234         * config/srclist.txt: Adjust to reflect glibc reorganization.
64235         This affects only comments.
64236
64237 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64238
64239          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64240          Reported by Bruce Korb <bkorb@gnu.org>.
64241
64242 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64245         to pacify gcc -Wswitch-default.
64246
64247 2006-01-22  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64250         temporary buffer for sprintf, take into account the precision also
64251         for 'd', 'i', 'u', 'o', 'x', 'X'.
64252
64253 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64254
64255         * modules/argp-tests: New module
64256         * tests/test-argp.c: New file
64257         * tests/test-argp-2.sh: New file
64258
64259 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64260
64261         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64262         (__argp_base_name): Removed
64263         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64264         typo.
64265         (__argp_base_name): Provide macro definition or extern declaration
64266         depending on the configuration
64267
64268 2006-01-20  Simon Josefsson  <jas@extundo.com>
64269
64270         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64271
64272 2006-01-20  Simon Josefsson  <jas@extundo.com>
64273
64274         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64275
64276 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64279         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64280         Suggested by Bruno Haible.
64281
64282 2006-01-20  Karl Berry  <karl@gnu.org>
64283
64284         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64285         until changes propagate, I guess.
64286
64287 2006-01-19  Simon Josefsson  <jas@extundo.com>
64288
64289         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64290
64291 2006-01-19  Simon Josefsson  <jas@extundo.com>
64292
64293         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64294
64295 2006-01-19  Simon Josefsson  <jas@extundo.com>
64296
64297         * gnulib-tool: Set check_PROGRAMS.
64298
64299         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64300         modules/des-tests, modules/gc-arcfour-tests,
64301         modules/gc-arctwo-tests, modules/gc-des-tests,
64302         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64303         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64304         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64305         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64306         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64307         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64308         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64309         test_*_SOURCES.
64310
64311 2006-01-18  Simon Josefsson  <jas@extundo.com>
64312
64313         * modules/socklen (Depends-on): Depend on sys_socket.
64314
64315 2006-01-18  Simon Josefsson  <jas@extundo.com>
64316
64317         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64318         modules/des-tests, modules/gc-arcfour-tests,
64319         modules/gc-arctwo-tests, modules/gc-des-tests,
64320         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64321         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64322         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64323         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64324         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64325         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64326         $(EXEEXT) to automake TESTS variable, for mingw32.
64327
64328 2006-01-17  Simon Josefsson  <jas@extundo.com>
64329
64330         * modules/socklen (Include): Need sys/socket.h.
64331
64332 2006-01-17  Bruno Haible  <bruno@clisp.org>
64333
64334         * modules/ssize_t (Include): Add <sys/types.h>.
64335
64336 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64337
64338         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64339         it's not portable and it doesn't work with cross-compiles.
64340         Problem reported by Bruno Haible.  Fix missing-$ typo in
64341         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64342         -zignore from being used with Sun's C compiler.
64343
64344 2006-01-12  Simon Josefsson  <jas@extundo.com>
64345
64346         * lib/base64.c: Fix warning, reported by Bruno Haible
64347         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64348
64349 2006-01-12  Bruno Haible  <bruno@clisp.org>
64350
64351         * modules/ldd: New file.
64352         * build-aux/ldd.sh.in: New file.
64353         * MODULES.html.sh (Support for building libraries and executables): Add
64354         ldd.
64355
64356 2006-01-12  Bruno Haible  <bruno@clisp.org>
64357
64358         * m4/ldd.m4: New file.
64359
64360 2006-01-12  Bruno Haible  <bruno@clisp.org>
64361
64362         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64363         endless loop while replacing $auxdir with build-aux.
64364
64365 2006-01-11  Simon Josefsson  <jas@extundo.com>
64366
64367         * lib/stdint_.h (SIZE_MAX): Add missing (.
64368
64369 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         Sync from coreutils.
64372         * lib/md5.c: Fix commentary typos.
64373         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64374         * lib/md5.h (__attribute__): Remove; unused.
64375         * lib/sha1.c: Fix commentary to match md5 better.
64376         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64377         so that we don't need to worry about alignment.  All uses changed.
64378         This merges the 2005-10-28 md5 change into sha1.
64379
64380 2006-01-11  Jim Meyering  <jim@meyering.net>
64381
64382         Sync from coreutils.
64383         * lib/md5.c (OP): Fix spacing.
64384
64385 2006-01-11  Bruno Haible  <bruno@clisp.org>
64386
64387         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64388         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64389         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64390
64391 2006-01-11  Bruno Haible  <bruno@clisp.org>
64392
64393         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64394         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64395         the "early" section as well.
64396
64397 2006-01-11  Bruno Haible  <bruno@clisp.org>
64398
64399         Avoid "ar: no archive members specified" error on MacOS X.
64400         * gnulib-tool (func_modules_add_dummy): New function.
64401         (func_import, func_create_testdir): Invoke it.
64402
64403 2006-01-11  Bruno Haible  <bruno@clisp.org>
64404
64405         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64406         with $auxdir in AC_CONFIG_FILES statements.
64407
64408 2006-01-11  Bruno Haible  <bruno@clisp.org>
64409
64410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64411         Initialize also noinst_HEADERS to empty.
64412
64413 2006-01-11  Bruno Haible  <bruno@clisp.org>
64414
64415         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64416         variables.
64417         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64418         autoreconf.
64419
64420 2006-01-11  Bruno Haible  <bruno@clisp.org>
64421
64422         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64423         overridable by the user.
64424         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64425
64426 2006-01-10  Simon Josefsson  <jas@extundo.com>
64427
64428         * modules/sys_socket: New file.
64429
64430 2006-01-10  Simon Josefsson  <jas@extundo.com>
64431
64432         * m4/sys_socket_h.m4: New file.
64433
64434 2006-01-10  Simon Josefsson  <jas@extundo.com>
64435
64436         * lib/socket_.h: New file.
64437
64438 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64439
64440         * modules/readutmp (Maintainer): Add myself.
64441
64442 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64443
64444         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64445         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64446         People who are still concerned with buggy memcmp implementations
64447         can invoke gl_FUNC_MEMCMP themselves.
64448
64449 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64450
64451         * lib/regex_internal.h (BITSET_WORD_BITS):
64452         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64453         preprocessor mishandles large unsigned values as if they were signed.
64454         Problem reported by Claudio Fontana in
64455         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64456
64457 2006-01-10  Jim Meyering  <jim@meyering.net>
64458
64459         Avoid the double-free (first in fts_read, second in fts_close) that
64460         would occur when an `active' directory is made inaccessible (e.g.,
64461         via chmod a-x) during a traversal.
64462         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64463         before returning.  Reproduce this failure by
64464         mkdir -p a/b; cd a; chmod a-x . b
64465         Reported by Stavros Passas.
64466
64467         Sync from coreutils.
64468         * lib/sha1.c: Tweak grammar in a comment.
64469
64470 2006-01-10  Jim Meyering  <jim@meyering.net>
64471
64472         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64473         Patch by Joerg Sonnenberger.
64474
64475 2006-01-10  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/readutmp: Depend on module free.
64478         * modules/strtok_r: Depend on module restrict.
64479
64480 2006-01-10  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/gettext (configure.ac): Add an invocation of
64483         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64484
64485 2006-01-10  Bruno Haible  <bruno@clisp.org>
64486
64487         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64488         Reported by Werner Lemberg <wl@gnu.org>.
64489
64490 2006-01-10  Bruno Haible  <bruno@clisp.org>
64491
64492         * lib/localcharset.c: Update from GNU gettext.
64493
64494 2006-01-10  Bruno Haible  <bruno@clisp.org>
64495
64496         * lib/argp.h (__const): Remove macro. Use const instead.
64497         * lib/argp-fmtstream.h (__const): Likewise.
64498         * lib/glob_.h (__const): Remove macro.
64499         * lib/glob-libc.h: Use const instead of __const.
64500
64501 2006-01-10  Bruno Haible  <bruno@clisp.org>
64502
64503         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64504         variable.
64505         Needed to avoid an automake error regarding the 'gettext' module.
64506
64507 2006-01-09  Simon Josefsson  <jas@extundo.com>
64508
64509         * modules/inet_ntop (Depends-on): Add restrict.
64510
64511 2006-01-09  Simon Josefsson  <jas@extundo.com>
64512
64513         * modules/gc-rijndael-tests (License): Put under LGPL.
64514
64515         * modules/gc-des-tests (License): Likewise.
64516
64517         * modules/gc-arcfour-tests (License): Likewise.
64518
64519         * modules/gc-arctwo-tests (License): Likewise.
64520
64521         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64522
64523         * modules/gc-hmac-sha1-tests (Files): Likewise.
64524
64525         * modules/gc-hmac-md5-tests (License): Likewise.
64526
64527         * modules/gc-sha1-tests (License): Likewise.
64528
64529         * modules/gc-md5-tests (License): Likewise.
64530
64531         * modules/gc-md4-tests (License): Likewise.
64532
64533         * modules/gc-md2-tests (License): Likewise.
64534
64535         * modules/gc-tests (License): Likewise.
64536
64537         * modules/des-tests (License): Likewise.
64538
64539         * modules/md4-tests (License): Likewise.
64540
64541         * modules/md2-tests (License): Likewise.
64542
64543 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64544
64545         Sync from coreutils:
64546
64547         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64548         * modules/lib-ignore: New file.
64549         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64550         chdir-safer.m4, lchmod.m4.
64551         * modules/openat: Add mkdirat.c, openat-priv.h.
64552
64553 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64554
64555         Sync from coreutils.
64556         * m4/lib-ignore.m4: New file.
64557         * m4/lchmod.m4: New file.
64558
64559 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         Sync from coreutils.
64562         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64563         for write access: POSIX says that must fail.
64564         * lib/fts.c (diropen): Likewise.
64565         * lib/save-cwd.c (save_cwd): Likewise.
64566         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64567         well, for minor improvements on hosts that lack O_DIRECTORY.
64568         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64569         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64570         Fall back on chown if open failed with EACCES.
64571
64572         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64573         Report an error at compile-time if only a 1-second nominal clock
64574         resolution is found.
64575
64576         * lib/lchmod.h: New file.
64577         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64578         (make_dir_parents): Use lchown rather than chown, and
64579         lchmod rather than chmod.
64580
64581         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64582         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64583         "proc" reported by n0dalus.
64584
64585         * lib/mountlist.c: Include <limits.h>.
64586         (dev_from_mount_options)
64587         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64588         New function.  It no longer assumes "dev=" has the System V meaning
64589         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64590         (read_file_system_list)
64591         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64592         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64593         dev= in that case.
64594
64595         * lib/posixtm.h (PDS_PRE_2000): New macro.
64596         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64597         allow_century.  All usages changed.  Reject dates outside the range
64598         1969-1999 if PDS_PRE_2000 is used.
64599
64600 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         Sync from coreutils.
64603         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64604         (Time of day items): Mention the possibility of leap seconds.
64605         Problem reported by Dr. David Alan Gilbert.
64606
64607 2006-01-09  Jim Meyering  <jim@meyering.net>
64608
64609         Sync from coreutils.
64610
64611         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64612
64613         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64614
64615         * lib/modechange.c (mode_compile): Reject an invalid mode string
64616         that starts with an octal digit.  From Andreas Gruenbacher.
64617
64618         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64619         and dup to open_safer and dup_safer, respectively.
64620         (openat_permissive): Fix typo in comment.
64621
64622         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64623         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64624         (_): Remove; no longer needed.
64625         (openat): Renamed from rpl_openat; no need for rpl_openat
64626         since openat.h renames openat for us.
64627         Replace most of the body with a call to openat_permissive,
64628         to avoid duplicate code.
64629         Port to (probably hypothetical) environments were mode_t is
64630         wider than int.
64631         (openat_permissive): Require mode arg, so that we can check
64632         types better.  Put it just after flags.  Change cwd failure
64633         indicator from pointer-to-bool to pointer-to-errno-value.
64634         All callers changed.
64635         Invoke openat_save_fail and/or openat_restore_fail if
64636         cwd_errno is null, so that openat can call us.
64637         (openat_permissive, fdopendir, fstatat, unlinkat):
64638         Simplify errno handling to avoid some duplicate code,
64639         as it's OK to set errno on success.
64640         * lib/openat.h: Revamp code so that function macros depend on
64641         __OPENAT_PREFIX only, not also on AT_FDCWD.
64642         (openat_ro): Remove.  Caller changed to use openat_permissive.
64643         (openat_permissive): Now a macro, if not a function.
64644         (openat_restore_fail, openat_save_fail): Now always functions,
64645         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64646
64647         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64648         and openat.c.
64649         * lib/mkdirat.c: Include openat-priv.h.
64650         Remove definitions of macros defined therein.
64651         * lib/openat.c: Likewise.
64652
64653         * lib/mkdirat.c (mkdirat): New file and function.
64654         * lib/openat.h (mkdirat): Declare.
64655
64656         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64657
64658         * lib/openat.h (openat_permissive): Declare.
64659         (openat_ro): Define.
64660
64661         * lib/openat.c (EXPECTED_ERRNO): New macro.
64662         (openat_permissive): New function -- used in remove.c rewrite.
64663         (all functions): Set errno just before returning, only if there
64664         was an actual failure.
64665         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64666
64667         Emulate openat-family functions using Linux's procfs, if possible.
64668         Idea and some code based on Ulrich Drepper's glibc changes.
64669
64670         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64671         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64672         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64673         before falling back on save_cwd and restore_cwd.
64674         (fdopendir, fstatat, unlinkat): Likewise.
64675
64676         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64677         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64678
64679         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64680         as second argument to va_arg.  Otherwise, some versions of gcc
64681         warn that `if this code is reached, the program will abort'.
64682
64683 2006-01-09  Jim Meyering  <jim@meyering.net>
64684
64685         Sync from coreutils.
64686         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64687         Require openat-priv.h.
64688
64689 2006-01-09  Bruno Haible  <bruno@clisp.org>
64690
64691         * modules/strnlen (Include): Use strnlen.h.
64692
64693 2006-01-09  Bruno Haible  <bruno@clisp.org>
64694
64695         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64696
64697 2006-01-09  Bruno Haible  <bruno@clisp.org>
64698
64699         * lib/sysexit_.h (EX_OK): New macro.
64700         Suggested by Martin Lambers <marlam@marlam.de>.
64701
64702 2006-01-09  Bruno Haible  <bruno@clisp.org>
64703
64704         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64705         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64706
64707 2006-01-09  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64710         numbers.
64711
64712 2006-01-09  Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64715         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64716         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64717         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64718
64719 2006-01-09  Bruno Haible  <bruno@clisp.org>
64720
64721         * build-aux/javacomp.sh.in: New file, moved from lib/.
64722         * modules/javacomp-script (Files): Update.
64723         (configure.ac): Add AC_CONFIG_FILES invocation.
64724         (EXTRA_DIST): Remove variable.
64725
64726         * build-aux/javaexec.sh.in: New file, moved from lib/.
64727         * modules/javaexec (Files): Update.
64728         (configure.ac): Add AC_CONFIG_FILES invocation.
64729         (EXTRA_DIST): Remove javaexec.sh.in.
64730
64731         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64732         * modules/csharpcomp-script (Files): Update.
64733         (configure.ac): Add AC_CONFIG_FILES invocation.
64734         (EXTRA_DIST): Remove variable.
64735
64736         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64737         * modules/csharpexec (Files): Update.
64738         (configure.ac): Add AC_CONFIG_FILES invocation.
64739         (EXTRA_DIST): Remove csharpexec.sh.in.
64740
64741 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64742
64743         Sync from coreutils.
64744
64745         Add POSIX ACL support
64746         * lib/acl.h (copy_acl, set_acl): Add declarations.
64747         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64748         systems other than Linux.
64749         (chmod_or_fchmod): New function: use fchmod when possible,
64750         and chmod otherwise.
64751         (file_has_acl): Add a POSIX ACL implementation, with a
64752         Linux-specific subcase.
64753         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64754         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64755         acls are unsupported.
64756         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64757         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64758         are unsupported.
64759
64760 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64761
64762         Sync from coreutils.
64763         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64764
64765 2006-01-07  Bruno Haible  <bruno@clisp.org>
64766
64767         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64768         gl_EARLY.
64769
64770 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64773         Problem reported for Mingw by Mark Junker.
64774
64775 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64776
64777         * README: Gnulib normally doesn't generate a tarball.
64778
64779 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64782         long int, not int, for nanosecond counts, so that people who are
64783         used to POSIX struct timespec won't be surprised.  Reported by Jim
64784         Meyering.
64785
64786 2005-12-28  Bruno Haible  <bruno@clisp.org>
64787
64788         * build-aux/config.rpath: Update from GNU gettext.
64789
64790 2005-12-16  Jim Meyering  <jim@meyering.net>
64791
64792         * modules/fprintftime: New module.
64793         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64794
64795 2005-12-16  Jim Meyering  <jim@meyering.net>
64796
64797         * m4/fprintftime.m4: New file.
64798
64799 2005-12-16  Jim Meyering  <jim@meyering.net>
64800
64801         * lib/fprintftime.c, lib/fprintftime.h: New files.
64802
64803 2005-12-15  Simon Josefsson  <jas@extundo.com>
64804
64805         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64806         new m4/socklen.m4.
64807
64808 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64809
64810         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64811         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64812
64813 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64814
64815         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64816         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64817         struct uparams is valid. Fall back to the default values if it is
64818         not.
64819
64820 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64821
64822         * modules/argp (Files): Add argp-pin.c
64823         (Depends-on): dirname
64824         (lib_SOURCES): Add argp-pin.c
64825
64826 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64827
64828         * m4/argp.m4:  Check if program_invocation_name and
64829         program_invocation_short_name are declared and define appropriate
64830         macros if they are not.
64831
64832 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64833
64834         * lib/argp-help.c (__argp_base_name): New function
64835         (__argp_short_program_name): Rewrite using __argp_base_name
64836         * lib/argp-namefrob.h: Define program_invocation_name and
64837         program_invocation_short_name if requested
64838         (__argp_base_name): Add prototype
64839         * lib/argp-parse.c (argp_def): Use gettext wrappers
64840         (argp_default_parser): Use __argp_base_name
64841         * lib/argp-pin.c: New file. Defines program_invocation_name and
64842         program_invocation_short_name on systems that lack them.
64843
64844 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64847         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64848         porting problem reported by Georg Schwarz in
64849         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64850
64851 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64852
64853         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64854         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64855         porting problem reported by Georg Schwarz in
64856         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64857
64858 2005-12-05  Bruno Haible  <bruno@clisp.org>
64859
64860         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64861         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64862         Reported by Mark Junker <mjscod@gmx.de>.
64863
64864 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64865
64866         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64867         Use implementation from Albert Chin, with some
64868         comments/corrections by Stepan Kasal and myself.
64869
64870 2005-12-02  Bruno Haible  <bruno@clisp.org>
64871
64872         * gnulib-tool (func_import): Accept GPLed build tool modules when
64873         --lgpl is given.
64874         * modules/csharpcomp-script: New file.
64875         * modules/csharpcomp: Depend on it.
64876         * modules/javacomp-script: New file.
64877         * modules/javacomp: Depend on it.
64878         Suggested by Simon Josefsson.
64879
64880 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64883         statement, to work around an HP-UX 10.20 compiler bug reported by
64884         Peter O'Gorman.
64885
64886 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * modules/savedir (Depends-on): Add openat.
64889
64890 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64893         (uintmax_t) [defined uintmax_t]: Do not declare.
64894         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64895         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64896         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64897         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64898         sake of portability to weird hosts that C allows (though we don't
64899         know of any practical examples).
64900
64901         * lib/savedir.h (fdsavedir): New decl.
64902         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64903         contains most of the former guts of savedir.
64904         (savedir): Use savedirstream.
64905         Include "openat.h".
64906
64907 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * modules/obstack (Files): Add m4/ulonglong.m4.
64910         Problem reported by Davide Angelocola.
64911
64912 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64913
64914         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64915         coreutils no longer futzes with rounding modes.
64916
64917 2005-11-14  Jim Meyering  <jim@meyering.net>
64918
64919         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64920         replacement of mkstemp.
64921
64922 2005-11-10  Simon Josefsson  <jas@extundo.com>
64923
64924         * lib/readline.c: Remove EOL.
64925
64926 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64927
64928         * modules/gethrxtime (Depends-on): Add gettime.
64929
64930 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64931
64932         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64933         or gettimeofday; no longer needed.
64934
64935 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64936
64937         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64938         time business.
64939         (gethrxtime) [! (HAVE_NANOUPTIME
64940         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64941         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64942         our own approximation.
64943
64944 2005-11-08  Eric Blake  <ebb9@byu.net>
64945
64946         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64947
64948 2005-11-08  Eric Blake  <ebb9@byu.net>
64949
64950         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64951
64952 2005-11-04  Bruno Haible  <bruno@clisp.org>
64953
64954         * gnulib-tool: Implement --update mode.
64955
64956 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64957
64958         Fix porting problem reported by Theodoros V. Kalamatianos.
64959         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64960         Don't assume that futimes failing means we must fail.
64961
64962 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64965         variables to suggest the intended function of the PATH_MAX check.
64966
64967 2005-10-30  Kean Johnston  <jkj@sco.com>
64968
64969         Trivial changes to support SCO systems.
64970         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64971         as PATH_MAX.
64972         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64973         where __ptr is null when no I/O is pending.
64974
64975 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64978         leave errno alone.  Problem reported by Dmitry V. Levin.
64979
64980 2005-10-28  Simon Josefsson  <jas@extundo.com>
64981
64982         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64983         Test more.
64984
64985         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64986
64987         * modules/md2, modules/md2-tests: New files.
64988
64989 2005-10-28  Simon Josefsson  <jas@extundo.com>
64990
64991         * m4/inet_ntop.m4: More tests.
64992
64993         * m4/gc-md2.m4, md2.m4: New file.
64994
64995 2005-10-28  Simon Josefsson  <jas@extundo.com>
64996
64997         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64998         "restrict" keywords, as per POSIX.  Protect the function
64999         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65000         Don't use K&R prototypes.  Check the sprintf return values.
65001         Re-define EAFNOSUPPORT if not present.  Indent.
65002
65003         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65004         suggested by Bruno Haible <bruno@clisp.org>.
65005
65006         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65007
65008         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65009
65010         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65011         libgcrypt).
65012
65013         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65014
65015         * lib/md2.h, lib/md2.c: New files.
65016
65017 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65018
65019         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65020         errno alone.  Problem reported by Frederic Jolliton.
65021
65022 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         * modules/verify (License): Change from GPL to LGPL.  This is a
65025         tiny module and there are apparently near-equivalents that are
65026         under the BSD license.
65027
65028 2005-10-24  Simon Josefsson  <jas@extundo.com>
65029
65030         * modules/sha1: Relicense to LGPL.
65031
65032 2005-10-24  Simon Josefsson  <jas@extundo.com>
65033
65034         * lib/md4.h: Shrink buffer size, now that we changed the type.
65035
65036 2005-10-23  Simon Josefsson  <jas@extundo.com>
65037
65038         * gnulib-tool (func_import): Fix --tests-base.
65039
65040 2005-10-22  Simon Josefsson  <jas@extundo.com>
65041
65042         * modules/arcfour (Depends-on): Need stdint.
65043
65044 2005-10-22  Simon Josefsson  <jas@extundo.com>
65045
65046         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65047         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65048
65049 2005-10-22  Simon Josefsson  <jas@extundo.com>
65050
65051         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65052         suggested by Bruno Haible <bruno@clisp.org>.
65053
65054 2005-10-22  Simon Josefsson  <jas@extundo.com>
65055
65056         * lib/crc.h: Include stddef.h, for size_t.
65057
65058 2005-10-22  Simon Josefsson  <jas@extundo.com>
65059
65060         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65061         arcfour_context struct (simplify test vector testing in GNU
65062         Shishi).
65063
65064 2005-10-21  Simon Josefsson  <jas@extundo.com>
65065
65066         * modules/des, modules/des-tests: New files.
65067
65068         * modules/gc-des, modules/gc-des-tests: New files.
65069
65070         * tests/test-des.c, tests/test-gc-des.c: New file.
65071
65072 2005-10-21  Simon Josefsson  <jas@extundo.com>
65073
65074         * modules/arctwo, modules/arctwo-tests: New files.
65075
65076         * tests/test-arctwo.c: New file.
65077
65078         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65079
65080         * tests/test-gc-arctwo.c: New file.
65081
65082 2005-10-21  Simon Josefsson  <jas@extundo.com>
65083
65084         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65085         Bruno Haible <bruno@clisp.org>.
65086
65087         * m4/gc-des.m4: New file.
65088
65089 2005-10-21  Simon Josefsson  <jas@extundo.com>
65090
65091         * m4/arctwo.m4: New file.
65092
65093         * m4/gc-arctwo.m4: New file.
65094
65095 2005-10-21  Simon Josefsson  <jas@extundo.com>
65096
65097         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65098         block.
65099
65100 2005-10-21  Simon Josefsson  <jas@extundo.com>
65101
65102         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65103         <bruno@clisp.org>.
65104
65105         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65106
65107         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65108         Bruno Haible <bruno@clisp.org>.
65109
65110         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65111         <bruno@clisp.org>.
65112
65113 2005-10-21  Simon Josefsson  <jas@extundo.com>
65114
65115         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65116
65117 2005-10-21  Simon Josefsson  <jas@extundo.com>
65118
65119         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65120
65121 2005-10-21  Simon Josefsson  <jas@extundo.com>
65122
65123         * lib/des.h, lib/des.c: New files.
65124
65125         * lib/gc-gnulib.c: Support DES.c
65126
65127 2005-10-21  Simon Josefsson  <jas@extundo.com>
65128
65129         * lib/arctwo.h, lib/arctwo.c: New files.
65130
65131         * lib/gc-gnulib.c: Support ARCTWO.
65132
65133 2005-10-21  Simon Josefsson  <jas@extundo.com>
65134
65135         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65136         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65137
65138 2005-10-21  Simon Josefsson  <jas@extundo.com>
65139
65140         * gnulib-tool (func_import, func_create_testdir): Define automake
65141         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65142         Makefile.am snippet),
65143         suggested by Bruno Haible <bruno@clisp.org>.
65144
65145         * modules/gc (Makefile.am): Use it.
65146
65147 2005-10-21  Bruno Haible  <bruno@clisp.org>
65148
65149         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65150         patch.
65151
65152 2005-10-19  Simon Josefsson  <jas@extundo.com>
65153
65154         * tests/test-gc-rijndael.c: New file.
65155
65156         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65157
65158 2005-10-19  Simon Josefsson  <jas@extundo.com>
65159
65160         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65161         interface too.
65162
65163 2005-10-19  Simon Josefsson  <jas@extundo.com>
65164
65165         * tests/test-gc-arcfour.c: New file.
65166
65167         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65168
65169 2005-10-19  Simon Josefsson  <jas@extundo.com>
65170
65171         * modules/gc-md4, modules/gc-md4-tests: New file.
65172
65173         * tests/test-gc-md4.c: New file.
65174
65175 2005-10-19  Simon Josefsson  <jas@extundo.com>
65176
65177         * m4/gc-md4.m4: New file.
65178
65179 2005-10-19  Simon Josefsson  <jas@extundo.com>
65180
65181         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65182         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65183         <kasal@ucw.cz>.
65184
65185 2005-10-19  Simon Josefsson  <jas@extundo.com>
65186
65187         * m4/gc-arcfour.m4: New file.
65188
65189         * m4/gc-rijndael.m4: New file.
65190
65191 2005-10-19  Simon Josefsson  <jas@extundo.com>
65192
65193         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65194
65195 2005-10-19  Simon Josefsson  <jas@extundo.com>
65196
65197         * lib/gc-gnulib.c: Support ARCFOUR.
65198
65199 2005-10-19  Simon Josefsson  <jas@extundo.com>
65200
65201         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65202         support.
65203
65204         * lib/gc.h: Add ECB enum type.
65205
65206         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65207
65208 2005-10-18  Simon Josefsson  <jas@extundo.com>
65209
65210         * tests/test-md5.c: New file.
65211
65212         * modules/md5-tests: New file.
65213
65214 2005-10-18  Simon Josefsson  <jas@extundo.com>
65215
65216         * tests/test-md4.c: New file.
65217
65218         * modules/md4, modules/md4-tests: New files.
65219
65220 2005-10-18  Simon Josefsson  <jas@extundo.com>
65221
65222         * m4/md4.m4: New file.
65223
65224 2005-10-18  Simon Josefsson  <jas@extundo.com>
65225
65226         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65227
65228 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65229
65230         * gnulib-tool (func_create_testdir): Omit the second check whether
65231         BUILT_SOURCES in nonempty.
65232
65233 2005-10-17  Simon Josefsson  <jas@extundo.com>
65234
65235         * tests/test-rijndael.c: New file.
65236
65237 2005-10-17  Simon Josefsson  <jas@extundo.com>
65238
65239         * modules/sha1: Depend on stdint instead of md5.
65240
65241         * modules/md5: Depend on stdint, remove uint32_t.
65242
65243 2005-10-17  Simon Josefsson  <jas@extundo.com>
65244
65245         * modules/gc-sha1-tests: New file.
65246
65247         * tests/test-gc-sha1.c: New file.
65248
65249 2005-10-17  Simon Josefsson  <jas@extundo.com>
65250
65251         * m4/md5.m4: Remove call to uint32_t.m4.
65252
65253 2005-10-17  Simon Josefsson  <jas@extundo.com>
65254
65255         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65256
65257         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65258         md5.h.
65259
65260         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65261
65262         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65263
65264 2005-10-17  Simon Josefsson  <jas@extundo.com>
65265
65266         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65267
65268 2005-10-17  Simon Josefsson  <jas@extundo.com>
65269
65270         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65271
65272 2005-10-17  Simon Josefsson  <jas@extundo.com>
65273
65274         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65275
65276         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65277
65278 2005-10-17  Bruno Haible  <bruno@clisp.org>
65279
65280         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65281         that it can also be used in a test.
65282
65283 2005-10-16  Bruno Haible  <bruno@clisp.org>
65284
65285         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65286         TESTS_ENVIRONMENT, so that individual tests can augment it.
65287
65288         * gnulib-tool (func_create_testdir): Use an intermediate target for
65289         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65290         macros, like $(ALLOCA_H), which cannot be passed through the command
65291         line.
65292
65293 2005-10-15  Simon Josefsson  <jas@extundo.com>
65294
65295         * modules/rijndael-tests: New file.
65296
65297         * modules/rijndael: New file.
65298
65299 2005-10-15  Simon Josefsson  <jas@extundo.com>
65300
65301         * m4/rijndael.m4: New file.
65302
65303 2005-10-15  Simon Josefsson  <jas@extundo.com>
65304
65305         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65306
65307         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65308
65309 2005-10-14  Simon Josefsson  <jas@extundo.com>
65310
65311         * tests/test-arcfour.c: New file.
65312
65313         * modules/arcfour, modules/arcfour-tests: New files.
65314
65315 2005-10-14  Simon Josefsson  <jas@extundo.com>
65316
65317         * m4/arcfour.m4: New file.
65318
65319 2005-10-14  Simon Josefsson  <jas@extundo.com>
65320
65321         * lib/arcfour.h, lib/arcfour.c: New files.
65322
65323 2005-10-14  Roland McGrath  <roland@redhat.com>
65324
65325         Import from libc.  [BZ #1331]
65326         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65327         macro argument.
65328         Reported by Matej Vela <vela@debian.org>.
65329
65330 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65331
65332         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65333         include <wchar.h>; no longer needed.
65334
65335 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65336
65337         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65338
65339 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65340         and  Ulrich Drepper  <drepper@redhat.com>
65341
65342         Import from libc.
65343         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65344         instead of inline stream orientation test and two separate
65345         function calls.  Pay no attention to USE_IN_LIBIO.
65346
65347 2005-10-13  Simon Josefsson  <jas@extundo.com>
65348
65349         * modules/gc-hmac-md5-tests: New file.
65350
65351         * tests/test-gc-hmac-sha1.c: New file.
65352
65353         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65354
65355         * modules/gc-hmac-md5-tests: New file.
65356
65357         * tests/test-gc-md5.c: New file.
65358
65359         * modules/gc-md5-tests: New file.
65360
65361 2005-10-13  Simon Josefsson  <jas@extundo.com>
65362
65363         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65364         Move memory allocation outside of loop.
65365
65366 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65367
65368         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65369         intermediate directory is in a read-only file system.  Problem
65370         reported by Eric Blake.
65371
65372 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65373
65374         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65375
65376 2005-10-12  Simon Josefsson  <jas@extundo.com>
65377
65378         * tests/test-hmac-sha1.c: New file.
65379
65380         * modules/hmac-sha1-tests: New file.
65381
65382         * modules/hmac-sha1: New file.
65383
65384 2005-10-12  Simon Josefsson  <jas@extundo.com>
65385
65386         * modules/gc-sha1: New file.
65387
65388 2005-10-12  Simon Josefsson  <jas@extundo.com>
65389
65390         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65391
65392         * tests/test-gc-pbkdf2-sha1.c: New file.
65393
65394 2005-10-12  Simon Josefsson  <jas@extundo.com>
65395
65396         * modules/gc-md5, modules/gc-hmac-md5: New files.
65397
65398         * modules/gc (Files): Remove md5, memxor and hmac files.
65399
65400 2005-10-12  Simon Josefsson  <jas@extundo.com>
65401
65402         * m4/gc-pbkdf2-sha1.m4: New file.
65403
65404         * m4/gc-hmac-sha1.m4: New file.
65405
65406         * m4/gc-sha1: New file.
65407
65408         * m4/hmac-sha1.m4: New file.
65409
65410 2005-10-12  Simon Josefsson  <jas@extundo.com>
65411
65412         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65413
65414         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65415
65416 2005-10-12  Simon Josefsson  <jas@extundo.com>
65417
65418         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65419         suggested by Bruno Haible <bruno@clisp.org>.
65420
65421 2005-10-12  Simon Josefsson  <jas@extundo.com>
65422
65423         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65424
65425 2005-10-12  Simon Josefsson  <jas@extundo.com>
65426
65427         * lib/gc-pbkdf2-sha1.c: New file.
65428
65429         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65430
65431 2005-10-12  Simon Josefsson  <jas@extundo.com>
65432
65433         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65434
65435         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65436
65437 2005-10-12  Simon Josefsson  <jas@extundo.com>
65438
65439         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65440         GC_USE_HMAC_MD5, respectively.
65441
65442         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65443         (gc_md5): Fix typo.
65444
65445         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65446
65447         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65448
65449         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65450
65451 2005-10-12  Bruno Haible  <bruno@clisp.org>
65452
65453         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65454         Reported by Stepan Kasal <kasal@ucw.cz>.
65455
65456 2005-10-11  Simon Josefsson  <jas@extundo.com>
65457
65458         * tests/test-crc.c: New file.
65459
65460         * modules/crc, modules/crc-tests: New files.
65461
65462 2005-10-11  Simon Josefsson  <jas@extundo.com>
65463
65464         * m4/crc.m4: New file.
65465
65466 2005-10-11  Simon Josefsson  <jas@extundo.com>
65467
65468         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65469
65470         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65471
65472         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65473
65474 2005-10-11  Simon Josefsson  <jas@extundo.com>
65475
65476         * lib/crc.h, lib/crc.c: New files.
65477
65478         * lib/gc.h (gc_hash_buffer): Add doc.
65479
65480 2005-10-11  Bruno Haible  <bruno@clisp.org>
65481
65482         * modules/c-strcasestr: New file.
65483         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65484
65485 2005-10-11  Bruno Haible  <bruno@clisp.org>
65486
65487         * modules/c-strcase: New file.
65488         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65489
65490 2005-10-11  Bruno Haible  <bruno@clisp.org>
65491
65492         * lib/strcasecmp.c: Include limits.h.
65493         (strcasecmp): Avoid integer overflow on exotic platforms.
65494         * lib/strncasecmp.c: Include limits.h.
65495         (strncasecmp): Avoid integer overflow on exotic platforms.
65496         Reported by Paul Eggert.
65497
65498 2005-10-11  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/c-strcasestr.h: New file, from GNU gettext.
65501         * lib/c-strcasestr.c: New file, from GNU gettext.
65502
65503 2005-10-11  Bruno Haible  <bruno@clisp.org>
65504
65505         * lib/c-strcase.h: New file, from GNU gettext.
65506         * lib/c-strcasecmp.c: New file, from GNU gettext.
65507         * lib/c-strncasecmp.c: New file, from GNU gettext.
65508
65509 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * modules/mempcpy (License): GPL -> LGPL.
65512         * modules/strchrnul (License): Likewise.
65513         * modules/sysexits (License): Likewise.
65514
65515 2005-10-08  Simon Josefsson  <jas@extundo.com>
65516
65517         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65518
65519 2005-10-07  Simon Josefsson  <jas@extundo.com>
65520
65521         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65522
65523 2005-10-06  Simon Josefsson  <jas@extundo.com>
65524
65525         * tests/test-hmac-md5.c: New file.
65526
65527         * modules/hmac-md5-tests: New file.
65528
65529         * modules/hmac-md5: New file.
65530
65531 2005-10-06  Simon Josefsson  <jas@extundo.com>
65532
65533         * m4/hmac-md5.m4: New file.
65534
65535         * m4/memxor.m4: Require gl_C_RESTRICT.
65536
65537 2005-10-06  Simon Josefsson  <jas@extundo.com>
65538
65539         * lib/memxor.c (memxor): Avoid casts and warnings.
65540
65541 2005-10-06  Simon Josefsson  <jas@extundo.com>
65542
65543         * lib/hmac-md5.c: New file.
65544
65545         * lib/hmac.h: New file.
65546
65547 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65550         promotes to int, not unsigned int, to catch the AIX 5.3
65551         compiler bug.
65552
65553 2005-10-05  Simon Josefsson  <jas@extundo.com>
65554
65555         * modules/memxor: New file.
65556
65557         * modules/iconv (Files): Move config.rpath to havelib, it is used
65558         there.
65559
65560         * modules/havelib (Files): Add config.rpath.
65561
65562 2005-10-05  Simon Josefsson  <jas@extundo.com>
65563
65564         * m4/memxor.m4: New file.
65565
65566 2005-10-05  Simon Josefsson  <jas@extundo.com>
65567
65568         * lib/memxor.c (memxor): Fix compiler error.
65569
65570         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65571         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65572
65573         * lib/memxor.h, lib/memxor.c: New files.
65574
65575         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65576         we assume all systems have it, suggested by Jim Meyering
65577         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65578         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65579         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65580         same reasons.
65581
65582 2005-10-05  Simon Josefsson  <jas@extundo.com>
65583
65584         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65585
65586 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65589         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65590         needed, since the source code now assumes these .h files.
65591
65592 2005-10-05  Derek Price  <derek@ximbiot.com>
65593
65594         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65595
65596 2005-10-05  Bruno Haible  <bruno@clisp.org>
65597
65598         * modules/stdint (License): Change to LGPL.
65599
65600 2005-10-04  Simon Josefsson  <jas@extundo.com>
65601
65602         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65603         D. Baushke" <mdb@gnu.org>.
65604
65605 2005-10-04  Bruno Haible  <bruno@clisp.org>
65606
65607         * lib/verify.h (verify_true): Provide alternative definition for C++.
65608
65609 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65612         (SSIZE_MAX): New macro, if not already defined.
65613         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65614         than 2 GiB.
65615
65616 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         Sync from coreutils.
65619         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65620         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65621         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65622         ULLONG_MAX doesn't work with 2.7.2.1.
65623
65624 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65627         From Ben Pfaff.
65628
65629         * modules/exclude (Depends-on): Depend on verify.
65630         * modules/strtoimax (Depends-on): Likewise.
65631         * modules/utimecmp (Depends-on): Likewise.
65632
65633 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65634
65635         * lib/exclude.c: Include verify.h.
65636         (verify): Remove.  All callers changed to use verify.h's version.
65637         * lib/strtoimax.c: Likewise.
65638         * lib/utimecmp.c: Likewis.e
65639
65640         Sync from coreutils.
65641         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65642         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65643         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65644         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65645         bother returning ENOSYS if settimeofday or stime fails; just let
65646         them return whatever errno they want to return.
65647         * lib/utimens.c: Include unistd.h, for dup2.
65648         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65649         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65650
65651 2005-10-02  Jim Meyering  <jim@meyering.net>
65652
65653         Sync from coreutils.
65654         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65655         from glibc-2.2.5 that fails for read-only files.
65656
65657 2005-10-02  Jim Meyering  <jim@meyering.net>
65658
65659         Sync from coreutils.
65660         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65661         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65662         `#if HAVE_CONFIG_H'.
65663         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65664         Remove AT_FDCWD test.
65665         Do not consume the fd unless successful.
65666         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65667         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65668         block, so that we don't even try to compile it if settimeofday is
65669         available.  This works around a compilation failure on OSF1 V5.1,
65670         due to stime requiring a `long int*' while tv_sec is `int'.
65671
65672 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65673
65674         Sync from coreutils.
65675         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65676         against `yes', rather than just testing for nonempty.
65677
65678 2005-10-01  Simon Josefsson  <jas@extundo.com>
65679
65680         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65681         and Darwin.
65682
65683         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65684         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65685         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65686         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65687         Check if struct addrinfo is declared.
65688
65689 2005-10-01  Simon Josefsson  <jas@extundo.com>
65690
65691         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65692         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65693         AI_* and EAI_* definitions.  Protect function declarations.
65694
65695 2005-10-01  Jim Meyering  <jim@meyering.net>
65696
65697         Sync from coreutils.
65698
65699         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65700         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65701         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65703         in the inet and nsl libraries.  Required on Solaris 5.7.
65704
65705 2005-10-01  Jim Meyering  <jim@meyering.net>
65706
65707         Sync from coreutils.
65708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65709         in the inet and nsl libraries.  Required on Solaris 5.7.
65710
65711 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65712
65713         * lib/getdelim.c (getdelim): Remove unused variables.
65714
65715 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65718         so that the code works even with ancient cpp.  Portability problem
65719         with GCC 2.7.2.1 reported by Thomas M.Ott.
65720
65721 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         * modules/regex (Depends-on): Add strcase.
65724
65725         * modules/gethostname (Licence): Change from GPL to LGPL, since
65726         gethostname.c is a trivial implementation of a standard library
65727         function.
65728         * modules/poll (License): Change from GPL to LGPL, since it's
65729         derived from LGPL code.
65730
65731 2005-09-27  Jim Meyering  <jim@meyering.net>
65732
65733         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65734         HAVE_CONFIG_H.
65735
65736         * lib/intprops.h (signed_type_or_expr__): Define.
65737         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65738         for unsigned types.
65739
65740 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65741
65742         * lib/verify.h (verify_expr): Remove, replacing with:
65743         (verify_true): New macro that returns true instead of void.
65744         (verify_type__): Remove.
65745         (verify): Use verify_true rather than verify_type__.
65746
65747 2005-09-26  Bruno Haible  <bruno@clisp.org>
65748
65749         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65750         is necessary.
65751         (lib_SOURCES): Remove mbchar.c.
65752         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65753         (Files): Add m4/mbrtowc.m4.
65754         * modules/mbiter: Likewise.
65755         * modules/mbuiter: Likewise.
65756
65757 2005-09-26  Bruno Haible  <bruno@clisp.org>
65758
65759         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65760         compile mbchar.c if they are not both present.
65761         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65762         * m4/mbiter.m4 (gl_MBITER): Likewise.
65763         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65764         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65765         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65766
65767 2005-09-25  Jim Meyering  <jim@meyering.net>
65768
65769         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65770         also uses socklen_t.
65771
65772 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * lib/utimens.c (ENOSYS): Define if not already defined.
65775         (futimens): Support having a null PATH if the file descriptor
65776         is nonnegative.
65777
65778         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65779         Remove.
65780         (__attribute): Define to empty unless GCC 3.1 or later.
65781         This works around a core dump on OpenBSD 3.4, which has GCC
65782         2.95.3, which dumps core when given __attribute__(()).  It also
65783         simplifies other tests, since we really don't want to bother with
65784         worrying about which ancient version of GCC supported what.
65785         Original problem reported by Yoann Vandoorselaere, with part of
65786         the fix suggested by Derek Price.
65787
65788 2005-09-24  Jim Meyering  <jim@meyering.net>
65789
65790         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65791         so we can once again use a positive bitfield width of 1 -- now we
65792         don't have to explain why we were using a bitfield width of 2.
65793
65794 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65795
65796         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65797         and similarly for the other external symbols.  Problem reported
65798         by James Gallager.
65799
65800         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65801         bug reported by Jim Meyering.
65802
65803         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65805         not needed, since socklen is a prerequisite module.
65806
65807 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65810         Problem reported by Eric Blake.
65811         (getaddrinfo): Initialize se so that it's not garbage.
65812         Redo internal storage allocation so that it doesn't make unportable
65813         assumptions about alignment.
65814         Fix a memory leak.
65815
65816         * lib/utimens.c (futimens): Use futimesat if available.
65817         Prefer it to futimes since it doesn't have the futimes bug.
65818
65819         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65820         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65821         Instead, declare a function that returns a pointer to an array,
65822         and use verify_type__ to declare the size of the array.
65823         Problem and germ of a solution reported by Bruno Haible.
65824         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65825         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65826
65827 2005-09-23  Jim Meyering  <jim@meyering.net>
65828
65829         Sync from coreutils.
65830         Correct build failure (socklen_t not defined) on at least
65831         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65833
65834 2005-09-23  Jim Meyering  <jim@meyering.net>
65835
65836         * modules/getaddrinfo (Depends-on): Add socklen.
65837
65838 2005-09-23  Bruno Haible  <bruno@clisp.org>
65839
65840         * tests/test-verify.c: New file.
65841
65842 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65843
65844         Sync from coreutils.
65845
65846         * modules/argmatch (Depends-on): Add verify.
65847         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65848         unistd-safer.
65849         * modules/save-cwd (Depends-on): Likewise.
65850
65851         * modules/openat (Files): Add lib/openat-die.c.
65852         (Depends-on): Remove error, exitfail.
65853         Add dirname.
65854
65855         * modules/verify: New file.
65856         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65857         with "verify" module.
65858
65859 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         Sync from coreutils.
65862
65863         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65864         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65865         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65866         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65867         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65868         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65869         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65870         Don't bother checking for string.h, stdlib.h, unistd.h.
65871         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65872         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65873         module's job.
65874         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65875         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65876
65877         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65878         (gl_GETDATE): Use it.
65879
65880         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65881
65882 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65883
65884         Sync from coreutils.
65885
65886         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65887         stat-time.h.
65888         * lib/argmatch.h: Include verify.h
65889         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65890         (ARGMATCH_ASSERT): Remove; unused.
65891         * lib/canonicalize.c: Assume STDC_HEADERS.
65892         * lib/exclude.c: Include "strcase.h".
65893         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65894         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65895         and stdio-safer.h.
65896         (getusershell): Call fopen, not fopen_safer.
65897         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65898         Do not include unistd-safer.h.
65899         (save_cwd): Don't call fd_safer; no longer needed
65900         now that we include fcntl--.h.
65901
65902         * lib/getdate.y (relative_time): New type.
65903         (RELATIVE_TIME_0): New constant.
65904         (parser_control): Use relative_time instead of doing it ourselves.
65905         (%union): Add new relative_time rel member.
65906         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65907         Now typeless.
65908         (relunit, relunit_snumber): Now of type rel.
65909         (zone, rel, relunit, get_date): Adjust to above changes.
65910
65911         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65912         Do not include unistd-safer.h.
65913         (getloadavg): Don't call fd_safer; no longer needed
65914         now that we include fcntl--.h.
65915
65916         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65917         (make_dir_parents): Treat ENOSYS like EEXIST.
65918
65919         Improve quality of diagnostics on restore_cwd failure.
65920         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65921         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65922         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65923         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65924         each time through the loop.  Do not diagnose restore_cwd failure;
65925         that is the caller's job (and perhaps the caller does not care).
65926
65927         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65928         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65929         If the file already exists but is not a directory, don't bother
65930         to try to make its parents.
65931         Close potential file descriptor leak if we can't chdir("/") (!).
65932         Don't always return true if chdir($PWD) fails; return true only
65933         if the requested action was done successfully (except for the
65934         chdir($PWD)).
65935         Don't log final directory unless we actually made it.
65936         Refactor to avoid duplicate code to fix up permissions.
65937         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65938
65939         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65940         to make it a bit faster and (I hope) clearer.
65941         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65942         Fix bug in formats like %2N.
65943
65944         * lib/verify.h: New file.
65945
65946 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         Sync from coreutils.
65949         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65950
65951 2005-09-22  Jim Meyering  <jim@meyering.net>
65952
65953         Sync from coreutils.
65954
65955         * m4/lstat.m4 (gl_FUNC_LSTAT):
65956         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65957         Remove obsolete comment.
65958         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65959         * m4/xstrtod.m4: Likewise.
65960
65961         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65962
65963 2005-09-22  Jim Meyering  <jim@meyering.net>
65964
65965         Sync from coreutils.
65966
65967         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65968
65969         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65970         the .tm_year member, since otherwise gcc-4.0 would now warn about
65971         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65972
65973         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65974         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65975
65976         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65977         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65978         when run in a time zone for which daylight savings time is in effect
65979         for the starting date.
65980
65981         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65982         stop us from restricting permissions of just-created absolute-named
65983         directories.
65984         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65985         to restore initial working directory.
65986         * lib/mkdir-p.c (make_dir_parents): New parameter:
65987         different_working_dir, to tell caller if/when we change the working
65988         directory and are unable to return to the initial one.
65989         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65990         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65991         `return false'.  This fixes a bug introduced on 2004-07-30.
65992
65993         * lib/openat.c (fdopendir): Be sure to close the supplied
65994         file descriptor before returning.  This makes our replacement
65995         implementation a little closer to Solaris's, where fdopendir
65996         ties the file descriptor to the returned DIR* pointer.
65997         * lib/openat.c (unlinkat): New function.
65998         * lib/openat.h (unlinkat): Add prototype.
65999         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66000         (openat_restore_fail): Rename from openat_restore_die.
66001         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66002
66003         Provide an alternative to exiting immediately upon save_cwd or
66004         restore_cwd failure.  Now, an application can arrange e.g.,
66005         to perform a longjump in that case.
66006         * lib/openat.c: Include dirname.h.
66007         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66008         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66009         and openat_restore_die rather than calling error directly.
66010         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66011
66012         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66013         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66014         define.
66015
66016         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66017         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66018                             int utc, int nanoseconds);
66019         Background:
66020         date should not have to allocate a megabyte of virtual memory to
66021         handle a format argument like +%1048575T.  When implemented with
66022         strftime, it must allocate such a buffer, use strftime to fill it
66023         in, print it, then free it.
66024         With fprintftime, it simply prints everything and exits.
66025         With no need for memory allocation, that's one fewer way to fail.
66026         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66027         optional field width, not before, so we accept %9:z, not %:9z.
66028         (my_strftime): Be sure to use L_('x') for literals.
66029
66030         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66031         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66032         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66033         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66034         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66035         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66036         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66037         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66038         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66039         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66040         * lib/xgethostname.c, lib/xreadlink.c:
66041         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66042
66043         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66044         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66045         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66046         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66047         and don't include <sys/file.h>).
66048
66049 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66050
66051         Sync from coreutils.
66052
66053         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66054         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66055         [!LDAV_DONE]: Avoid unused variable warning.
66056
66057 2005-09-21  Bruno Haible  <bruno@clisp.org>
66058
66059         * lib/unicodeio.h (unicode_to_mb): New declaration.
66060
66061 2005-09-20  Derek Price  <derek@ximbiot.com>
66062
66063         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66064         getaddrinfo.h.
66065
66066 2005-09-20  Bruno Haible  <bruno@clisp.org>
66067
66068         * gnulib-tool: Remove trailing slashes from the values specified for
66069         --source-base, --m4-base, --tests-base, --aux-dir.
66070         Suggested by Simon Josefsson <jas@extundo.com>.
66071
66072 2005-09-20  Bruno Haible  <bruno@clisp.org>
66073
66074         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66075         func_modules_to_filelist, func_import, func_create_testdir): Make all
66076         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66077         change when gnulib-tool is invoked in a different locale.
66078
66079 2005-09-19  Simon Josefsson  <jas@extundo.com>
66080
66081         * m4/socklen.m4: Fix typo.
66082
66083 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66084
66085         Use a consistent style for including <config.h>.
66086         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66087         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66088         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66089         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66090         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66091         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66092         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66093         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66094         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66095         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66096         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66097         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66098         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66099         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66100         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66101         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66102         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66103         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66104         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66105         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66106         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66107         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66108         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66109         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66110         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66111         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66112         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66113         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66114         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66115         lib/xstrtoumax.c, lib/yesno.c:
66116         Standardize inclusion of config.h.
66117         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66118         lib/inttostr.h:  Removed inclusion of config.h from header files.
66119         * lib/inttostr.c:  Adjusted in-tree users.
66120         * lib/timespec.h: Remove superfluous warning to include config.h.
66121         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66122         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66123         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66124         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66125         config.h with HAVE_CONFIG_H.
66126
66127 2005-09-19  Jim Meyering  <jim@meyering.net>
66128
66129         * modules/pathmax (License): Change to LGPL.
66130
66131 2005-09-19  Derek Price  <derek@ximbiot.com>
66132
66133         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66134
66135 2005-09-19  Bruno Haible  <bruno@clisp.org>
66136
66137         * gnulib-tool (import): Provide default for --tests-base.
66138
66139 2005-09-19  Bruno Haible  <bruno@clisp.org>
66140
66141         * doc/quote.texi: New file, extracted from gnulib.texi.
66142         * doc/ctime.texi: New file, extracted from gnulib.texi.
66143         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66144         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66145         * doc/gnulib.texi: Include them.
66146
66147 2005-09-18  Bruno Haible  <bruno@clisp.org>
66148
66149         Portability fix.
66150         * gnulib-tool (func_readlink): New function.
66151         (func_ln_if_changed): Use it.
66152
66153 2005-09-18  Bruno Haible  <bruno@clisp.org>
66154
66155         * gnulib-tool: Support --with-tests also with --import.
66156         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66157         (func_import): Use variables $testsbase and $inctests. Emit a
66158         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66159         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66160         SUBDIRS += $testsdir.
66161         (func_create_testdir): Update.
66162
66163 2005-09-18  Bruno Haible  <bruno@clisp.org>
66164
66165         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66166         instead of $dry_run.
66167         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66168         (func_ln_if_changed): Don't handle dry-run here.
66169         (func_import): In dry-run mode, detect more precisely which actions
66170         would be performed, and don't use "...ing" verbs.
66171
66172 2005-09-18  Bruno Haible  <bruno@clisp.org>
66173
66174         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66175         (func_import): Use join on two temporary files instead of three nested
66176         loops, in order to determine which files are new or old.
66177
66178 2005-09-18  Bruno Haible  <bruno@clisp.org>
66179
66180         * gnulib-tool (func_import): Comment out code that spits out the
66181         new files with --dry-run.
66182
66183 2005-09-18  Bruno Haible  <bruno@clisp.org>
66184
66185         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66186
66187 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66188
66189         * lib/stat-time.h: New file.
66190         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66191         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66192         in a different way.
66193         (timespec_cmp): New function.
66194         * lib/utimecmp.c: Include stat-time.h.
66195         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66196         members exist, not on the obsolescent ST_MTIM_NSEC.
66197         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66198
66199 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66200
66201         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66202
66203 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * MODULES.html.sh (File system functions): Add stat-time.
66206         * modules/stat-time: New file.
66207         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66208         is now done in a different way, by the stat-time module.
66209         * modules/utimecmp (Depends-on): Add stat-time.
66210
66211 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66212
66213         * m4/st_mtim.m4: Remove.  Superseded by...
66214         * m4/stat-time.m4: New file.
66215         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66216         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66217
66218 2005-09-15  Derek Price  <derek@ximbiot.com>
66219
66220         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66221
66222 2005-09-15  Derek Price  <derek@ximbiot.com>
66223
66224         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66225         * lib/regex_internal.c: Ditto, using this...
66226         (__GNUC_PREREQ): ...new macro.
66227         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66228         using...
66229         (__GNUC_PREREQ): ...this new macro.
66230
66231         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66232
66233 2005-09-15  Derek Price  <derek@ximbiot.com>
66234             Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66237         changes, consolidating in...
66238         * lib/regex_internal.h: ...this file.
66239
66240 2005-09-13  Jim Meyering  <jim@meyering.net>
66241
66242         * lib/canon-host.c: Filter through gnu indent and reword comments
66243         slightly.
66244         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66245
66246 2005-09-13  Derek Price  <derek@ximbiot.com>
66247
66248         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66249         failure.
66250         Reported by Jim Meyering  <jim@meyering.net>.
66251
66252 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66253
66254         * lib/base64.c: Typo.
66255         (base64_encode): Put b64str in initialized data section.
66256
66257 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66258
66259         Merge glibc and coreutils changes into gnulib, plus a few
66260         extra fixes.
66261         * lib/md5.c: Use #error rather than a string.
66262         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66263         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66264         (__attribute__): Define to empty for non recent-GCC.
66265         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66266         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66267         Renamed from their non-__ counterparts, with new macros replacing
66268         them if not _LIBC.  Add __THROW attribute.
66269         (rol): Remove.
66270         (struct md5_ctx): Align buffer if using GCC.
66271         * lib/sha1.h (struct sha1_ctx): Likewise.
66272         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66273         The old name was backwards.
66274         (NOTSWAP): Remove; not used.
66275         (rol): New macro, moved here from md5.h.
66276         (sha1_process_block): Remove a FIXME that doesn't make sense.
66277
66278 2005-09-12  Derek Price  <derek@ximbiot.com>
66279
66280         Return usable errors from canon-host.
66281         * lib/canon-host.h: New file.
66282         * lib/canon-host.c (canon_host): Wrap...
66283         (canon_host_r): ...this new function, which now relies exclusively on
66284         getaddrinfo.
66285         (ch_strerror): New function.
66286         (last_cherror): New global.
66287         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66288         interface.
66289         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66290         void *.
66291         (freeaddrinfo): Free ai->ai_canonname when set.
66292
66293 2005-09-12  Derek Price  <derek@ximbiot.com>
66294
66295         Make canon-host require getaddrinfo.
66296         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66297         AC_LIBSOURCE canon-host.h.  Call...
66298         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66299         gl_GETADDRINFO.
66300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66301
66302 2005-09-12  Derek Price  <derek@ximbiot.com>
66303
66304         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66305         LGPL.
66306         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66307
66308 2005-09-12  Derek Price  <derek@ximbiot.com>
66309
66310         * lib/gai_strerror.c: Include config.h when available.  Include
66311         getaddrinfo.h before other headers to test interface.
66312         Reported by Larry Jones <lawrence.jones@ugs.com>.
66313
66314 2005-09-12  Derek Price  <derek@ximbiot.com>
66315             Paul Eggert  <eggert@cs.ucla.edu>
66316
66317         * modules/glob (Files): Add glob-libc.h.
66318
66319 2005-09-12  Derek Price  <derek@ximbiot.com>
66320             Paul Eggert  <eggert@cs.ucla.edu>
66321
66322         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66323         glob_.h, glob-libc.h.
66324         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66325
66326 2005-09-12  Derek Price  <derek@ximbiot.com>
66327             Paul Eggert  <eggert@cs.ucla.edu>
66328
66329         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66330         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66331         protecting things that should be done only in gnulib contexts.
66332         * lib/glob_.h: New file, containing only the glob things needed for
66333         gnulib.
66334         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66335         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66336         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66337         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66338         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66339         and to respect the namespace rules better.
66340
66341 2005-09-08  Simon Josefsson  <jas@extundo.com>
66342
66343         * modules/socklen: New file.
66344
66345 2005-09-08  Simon Josefsson  <jas@extundo.com>
66346
66347         * m4/socklen.m4: New file.
66348
66349 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66350
66351         * modules/utimens (Files): Add m4/utimbuf.m4, since
66352         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66353         Reported by Sergey Poznyakoff.
66354
66355 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66358         definitions, since that's the preferred style in glibc.
66359         Fix a minor spacing issue, and update copyright notice to match
66360         glibc's.
66361
66362 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66363
66364         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66365
66366 2005-09-06  Simon Josefsson  <jas@extundo.com>
66367
66368         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66369         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66370
66371 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66372
66373         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66374         warning.
66375
66376 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66377
66378         * config/srclist.txt: Add glibc bug 1302.
66379
66380 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         Change bitset word type from unsigned int to unsigned long int,
66383         as this has better performance on typical 64-bit hosts.
66384         Port bitset code to hosts with unusual word sizes.
66385         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66386         (build_collating_symbol):
66387         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66388         argument is a bitset.  This is merely a style issue, but it makes
66389         it clearer that an entire array is expected.
66390         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66391         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66392         Port to the case where bitset_word is not the same as unsigned int.
66393         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66394         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66395         Likewise.
66396         * lib/regexec.c (check_dst_limits_calc_pos_1,
66397         check_subexp_matching_top):
66398         (build_trtable, group_nodes_into_DFAstates):
66399         Likewise.
66400         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66401         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66402         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66403         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66404         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66405         * lib/regcomp.c (optimize_subexps, lower_subexp):
66406         Work even if bitset_word has holes in its bitwise representation.
66407         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66408         * lib/regexec.c (check_dst_limits_calc_pos_1,
66409         check_subexp_matching_top):
66410         Likewise.
66411         * lib/regex_internal.c (re_string_reconstruct):
66412         Don't assume UCHAR_MAX == 255.
66413         * lib/regex_internal.h (bitset_set_all): Likewise.
66414         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66415         All uses changed.
66416         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66417         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66418         All uses changed.
66419         (BITSET_WORD_MAX): New macro.
66420         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66421         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66422         (bitset_empty, bitset_copy):
66423         Prefer sizeof (bitset) to multiplying it out ourselves.
66424         (bitset_not_merge): Remove; unused.
66425         (bitset_contain): Return bool, not unsigned int with one bit on.
66426         All callers changed.
66427         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66428         alignment than re_node_set; do this by defining a new internal
66429         type struct dests_alloc and using it to allocate memory.
66430
66431 2005-09-05  Bruno Haible  <bruno@clisp.org>
66432
66433         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66434         links.
66435
66436 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66437
66438         * modules/size_max (Makefile.am): Add size_max.h
66439
66440 2005-09-04  Derek Price  <derek@ximbiot.com>
66441
66442         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66443
66444 2005-09-03  Simon Josefsson  <jas@extundo.com>
66445
66446         * gnulib-tool: Fix typo.
66447
66448 2005-09-03  Simon Josefsson  <jas@extundo.com>
66449
66450         * config/srclist.txt: Add glibc bug 1293.
66451
66452 2005-09-03  Derek Price  <derek@ximbiot.com>
66453
66454         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66455         From Larry Jones <lawrence.jones@ugs.com>.
66456
66457 2005-09-02  Simon Josefsson  <jas@extundo.com>
66458
66459         * modules/socklen: New file.
66460
66461 2005-09-02  Simon Josefsson  <jas@extundo.com>
66462
66463         * modules/havelib: New module.
66464
66465         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66466         Use havelib.
66467
66468 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66469
66470         Check for arithmetic overflow when calculating sizes, to prevent
66471         some buffer-overflow issues.  These patches are conservative, in the
66472         sense that when I couldn't determine whether an overflow was possible,
66473         I inserted a run-time check.
66474         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66475         macros.
66476         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66477         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66478         (re_xnrealloc, re_x2nrealloc): New inline functions.
66479         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66480         parse_bracket_exp):
66481         (build_equiv_class, build_charclass): Check for arithmetic overflow
66482         in size expression calculations.
66483         * lib/regex_internal.c (re_string_realloc_buffers):
66484         (build_wcs_upper_buffer, re_node_set_add_intersect):
66485         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66486         (re_dfa_add_node, register_state): Likewise.
66487         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66488         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66489         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66490         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66491
66492 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66495         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66496
66497 2005-09-02  Bruno Haible  <bruno@clisp.org>
66498
66499         Support for lib vs. lib64 distinction on biarch platforms.
66500         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66501         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66502         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66503
66504 2005-09-02  Bruno Haible  <bruno@clisp.org>
66505
66506         * gnulib-tool (import): In the other first-use case, provide defaults
66507         as well.
66508
66509 2005-09-02  Bruno Haible  <bruno@clisp.org>
66510
66511         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66512         patches not yet found in the latest gettext release.
66513
66514 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66515
66516         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66517         to avoid a collision with bits/local_lim.h in glibc.
66518         All uses changed.  Problem reported by Dmitry V. Levin in
66519         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66520
66521         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66522         bugs in int versus size_t comparisons.
66523         (re_string_context_at): Fix bug where the code assumed that
66524         Idx is signed.
66525
66526         Use bool where appropriate.
66527         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66528         All callers changed.
66529         (calc_eclosure_iter): Likewise, for ROOT arg.
66530         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66531         (build_charclass_op): Likewise, for NON_MATCH arg.
66532         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66533         (re_string_construct_common): Likewise, for ICASE arg.
66534         * lib/regexec.c (re_search_2_stub, re_search_stub):
66535         Likewise, for RET_LEN arg.
66536         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66537         (set_regs): Likewise, for FL_BACKTRACK arg.
66538         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66539         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66540         (calc_eclosure_iter, parse_bracket_exp):
66541         Use bool for internal variables that are booleans.
66542         * lib/regexec.c (re_search_internal, check_matching,
66543         proceed_next_node):
66544         (set_regs, build_sifted_states, sift_states_bkref):
66545         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66546         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66547         (find_collation_sequence_value):
66548         Likewise.
66549         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66550         (re_node_set_compare):
66551         Return bool, not int. All callers changed.
66552         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66553         (build_trtable, check_node_accept): Likewise.
66554         * lib/regex_internal.h: Include stdbool.h.
66555
66556         Fix bugs uncovered when converting to bool.
66557         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66558         failure instead of charging ahead blindly.
66559         * lib/regex_internal.c (register_state): Likewise.
66560         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66561         for freeing internal storage.
66562         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66563         bitset pieces used as boolean, to avoid undefined behavior
66564         on hosts that do int overflow checking.
66565
66566 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * config/srclist.txt: Add glibc bugs 1285-1287.
66569
66570 2005-09-01  Jim Meyering  <jim@meyering.net>
66571
66572         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66573         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66574         Require gl_STAT_MACROS, too.
66575
66576 2005-09-01  Bruno Haible  <bruno@clisp.org>
66577
66578         * gnulib-tool (import): In the first-use case, provide defaults.
66579
66580 2005-09-01  Bruno Haible  <bruno@clisp.org>
66581
66582         * gnulib-tool (func_import): Remove the .tmp files.
66583
66584 2005-09-01  Bruno Haible  <bruno@clisp.org>
66585
66586         * gnulib-tool (func_import): Fix handling of symbolic links.
66587
66588 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66591         old glibc regex code mishandles strings longer than 2**31 bytes.
66592         This patch fixes this when the regex code is used in gnulib
66593         (i.e., outside glibc).
66594
66595         This patch should not affect the use of the regex code inside
66596         glibc.  No doubt this problem also needs to be handled for glibc
66597         as well, but the result will be an incompatible change to the
66598         glibc ABI, and the old ABI will have to be supported too.  That
66599         can be the the subject for another patch.
66600
66601         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66602         governing whether the rest of this patch is active.  By default,
66603         the macro is disabled and the patch has no effect.
66604         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66605         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66606         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66607         (re_match_2, re_set_registers): Use the new types.
66608         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66609         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66610         New macros.
66611         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66612         (re_string_context_at, bin_tree_t, re_dfastate_t):
66613         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66614         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66615         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66616         (re_string_char_size_at, re_string_wchar_at):
66617         (re_string_elem_size_at):
66618         Use the new types and macros to port to 64-bit hosts.
66619         Use unsigned types for internal values, so that the code
66620         mostly works even for arrays larger than SSIZE_MAX.
66621         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66622         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66623         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66624         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66625         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66626         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66627         (calc_inveclosure, parse_dup_op, build_range_exp):
66628         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66629         (fetch_number, create_token_tree, mark_opt_subexp):
66630         Likewise.
66631         * lib/regex_internal.c (re_string_construct_common,
66632         create_ci_newstate):
66633         (create_cd_newstate, re_string_allocate, re_string_construct):
66634         (re_string_realloc_buffers, build_wcs_upper_buffer):
66635         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66636         (re_string_reconstruct, re_string_peek_byte_case):
66637         (re_string_fetch_byte_case, re_string_context_at):
66638         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66639         (re_node_set_init_copy, re_node_set_add_intersect):
66640         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66641         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66642         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66643         (re_acquire_state, re_acquire_state_context, register_state):
66644         Likewise.
66645         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66646         search_cur_bkref_entry):
66647         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66648         (re_search_internal, re_search_2_stub, re_search_stub)
66649         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66650         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66651         (update_cur_sifted_state, check_dst_limits):
66652         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66653         (check_subexp_limits, sift_states_bkref, merge_state_array):
66654         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66655         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66656         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66657         (expand_bkref_cache, check_node_accept_bytes):
66658         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66659         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66660         (acquire_init_state_context, check_halt_node_context):
66661         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66662         (sift_states_backward, clean_state_log_if_needed):
66663         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66664         (find_recover_state, transit_state_sb, transit_state_mb):
66665         (transit_state_bkref, build_trtable, match_ctx_clean):
66666         Likewise.
66667         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66668         to work around an assumption that REG_MISSING is negative.
66669
66670         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66671         (seek_collating_symbol_entry) [defined _LIBC]:
66672         (lookup_collation_sequence_value) [defined _LIBC]:
66673         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66674         Use prototypes rather than old-style function definitions.
66675         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66676         (transit_state_sb) [0]:
66677         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66678
66679         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66680         rm_eo.
66681
66682         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66683         (optimize_subexps, lower_subexp):
66684         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66685         since the signed shift might overflow.  Use 1u<<31 instead.
66686         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66687         Likewise.
66688         * lib/regexec.c (check_dst_limits_calc_pos_1,
66689         check_subexp_matching_top): Likewise.
66690
66691         * lib/regcomp.c (optimize_subexps, lower_subexp):
66692         Use CHAR_BIT rather than 8, for clarity.
66693         * lib/regexec.c (check_dst_limits_calc_pos_1):
66694         (check_subexp_matching_top): Likewise.
66695         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66696         have to worry about portability issues when shifting it left.
66697         Remove no-longer-needed test for table_size > 0.
66698         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66699         in a word, as the resulting behavior is undefined.
66700         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66701         in one case, a <= should have been an <, and in another case the
66702         whole test was missing.
66703         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66704         the standard name CHAR_BIT.
66705         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66706         this is not true on one's complement and signed-magnitude hosts.
66707
66708         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66709         next_last_offset.
66710         (struct re_dfa_t): Remove unused member states_alloc.
66711         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66712
66713 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66716         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66717         and large-file glibc and in 32-bit large-file Solaris.
66718
66719 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66720
66721         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66722         lengths fit in regoff_t; this isn't true if regoff_t is the same
66723         width as size_t.
66724         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66725         (= START + RANGE) instead of RANGE.  This avoids overflow
66726         problems when regoff_t is the same width as size_t.
66727         All callers changed.
66728         (re_search_2_stub): Check for overflow when adding the
66729         sizes of the two strings.
66730         (re_search_stub): Check for overflow when adding START
66731         to RANGE; if it occurs, substitute the extreme value.
66732
66733 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66736
66737 2005-08-31  Jim Meyering  <jim@meyering.net>
66738
66739         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66740         a pointer-to-const.
66741         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66742         (register_state): Likewise.
66743         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66744         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66745         (group_nodes_into_DFAstates): Likewise.
66746
66747 2005-08-31  Jim Meyering  <jim@meyering.net>
66748
66749         * check-module: Add a FIXME comment.
66750
66751 2005-08-31  Eric Blake  <ebb9@byu.net>
66752
66753         * modules/unistd-safer (Files): Add unistd--.h.
66754         * modules/stdio-safer (Files): Add stdio--.h.
66755
66756 2005-08-31  Derek Price  <derek@ximbiot.com>
66757
66758         * lib/getdelim.c (getdelim): Return EOF on EOF.
66759         Reported by Larry Jones <lawrence.jones@ugs.com>.
66760
66761 2005-08-31  Bruno Haible  <bruno@clisp.org>
66762
66763         Avoid unnecessary diffs in the generated lib/Makefile.am.
66764         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66765         the generated files.
66766         (func_import): Don't set cmd.
66767
66768 2005-08-31  Bruno Haible  <bruno@clisp.org>
66769
66770         * lib/strstr.c: Include <stddef.h>, for NULL.
66771         * lib/strcasestr.c: Likewise.
66772         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66773
66774 2005-08-31  Bruno Haible  <bruno@clisp.org>
66775
66776         * gnulib-tool: New option --macro-prefix.
66777         (func_import): Use macro_prefix.
66778         (import): Handle option --macro-prefix.
66779
66780 2005-08-31  Bruno Haible  <bruno@clisp.org>
66781
66782         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66783         Also use new variables cached_lgpl, cached_libtool.
66784
66785 2005-08-31  Bruno Haible  <bruno@clisp.org>
66786
66787         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66788         always instantiating them.
66789
66790 2005-08-31  Bruno Haible  <bruno@clisp.org>
66791
66792         * gnulib-tool (func_import): Read the previous cached settings
66793         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66794         earlier added by gnulib but are now dropped. Warn when a gnulib file
66795         overwrites a non-gnulib file.
66796
66797 2005-08-31  Bruno Haible  <bruno@clisp.org>
66798
66799         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66800         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66801         projects that don't keep autogenerated files in CVS. Put into
66802         actioncmd only the specified modules, not the transitive closure.
66803
66804 2005-08-31  Bruno Haible  <bruno@clisp.org>
66805
66806         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66807         Create directories that shall be filled.
66808         (import): Don't look for gl_* macros in configure.ac. Recurse across
66809         all directories containing a gnulib-cache.m4 files, if meaningful.
66810
66811 2005-08-31  Bruno Haible  <bruno@clisp.org>
66812
66813         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66814         (import): Set seen_libtool when we see gl_LIBTOOL.
66815
66816 2005-08-31  Bruno Haible  <bruno@clisp.org>
66817
66818         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66819         declaration macro definitions from generated gnulib.m4.
66820
66821 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66822
66823         * lib/iconvme.h: Add prototype for iconv_alloc.
66824
66825 2005-08-29  Simon Josefsson  <jas@extundo.com>
66826
66827         * lib/iconvme.c: Fix errno.
66828
66829 2005-08-29  Bruno Haible  <bruno@clisp.org>
66830
66831         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66832         that it works when the directory contains spaces.
66833
66834 2005-08-29  Bruno Haible  <bruno@clisp.org>
66835
66836         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66837
66838 2005-08-29  Bruno Haible  <bruno@clisp.org>
66839
66840         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66841         Emit more advice.
66842
66843 2005-08-29  Bruno Haible  <bruno@clisp.org>
66844         and Stepan Kasal  <kasal@ucw.cz>
66845
66846         * check-module: If more parameters are given, check each of them
66847         separately; add more exceptions, as noted by Jim Meyering.
66848         (check_module): New procedure.
66849         (%exempt_header): Now contains all exceptions.
66850
66851 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66852
66853         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66854
66855 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66856
66857         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66858
66859 2005-08-28  Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/gnulib-tool.m4: New file.
66862
66863 2005-08-27  Jim Meyering  <jim@meyering.net>
66864
66865         * modules/unistd-safer (Files): Add pipe-safer.c.
66866         * modules/fcntl-safer (Files): Add creat-safer.c.
66867
66868 2005-08-27  Jim Meyering  <jim@meyering.net>
66869
66870         * m4/stdlib-safer.m4: New file.  From coreutils.
66871         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66872         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66873         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66874         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66875         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66876
66877 2005-08-27  Jim Meyering  <jim@meyering.net>
66878
66879         * lib/fopen-safer.c: Merge minor changes from coreutils.
66880         * lib/dup-safer.c: Likewise.
66881         * lib/fd-safer.c: Likewise.
66882
66883         Merge from coreutils.
66884         * lib/stdio--.h: New file.
66885         * lib/stdlib--.h: New file.
66886         * lib/mkstemp-safer.c: New file.
66887
66888         GNU tar needs these.
66889         * lib/pipe-safer.c: New file.
66890         * lib/creat-safer.c: New file.
66891         * lib/fcntl--.h (creat): Define to creat_safer.
66892         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66893         * lib/unistd--.h (pipe): Define to pipe_safer.
66894         * lib/unistd-safer.h: Declare pipe_safer.
66895
66896 2005-08-26  Simon Josefsson  <jas@extundo.com>
66897
66898         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66899         Haible <bruno@clisp.org>.
66900
66901 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66902
66903         * lib/regex_internal.h: Remove all references to
66904         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66905         or better.
66906         (bitset_not, bitset_merge, bitset_not_merge):
66907         (bitset_mask, re_string_allocate, re_string_construct):
66908         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66909         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66910         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66911         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66912         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66913         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66914         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66915         (re_acquire_state_context):
66916         Remove unnecessary forward decls.
66917         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66918         Put __attribute at function definition,
66919         now that the function decl has been removed.
66920         * lib/regex_internal.c (re_string_peek_byte_case):
66921         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66922         Likewise.
66923
66924 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66925
66926         * m4/regex.m4: Add AC_PREREQ(2.50).
66927         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66928
66929 2005-08-25  Simon Josefsson  <jas@extundo.com>
66930
66931         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66932         __fsetlocking.
66933
66934 2005-08-25  Simon Josefsson  <jas@extundo.com>
66935
66936         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66937         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66938         GLIBC specific code.
66939
66940 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         Make regex safe for g++.  This fixes one real bug (an "err"
66943         that should have been "*err").  g++ problem reported by
66944         Sam Steingold.
66945         * lib/regex_internal.h (re_calloc): New macro, consistent with
66946         re_malloc etc.  All callers of calloc changed to use re_calloc.
66947         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66948         not int.  All callers changed.
66949         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66950         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66951         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66952         (find_recover_state): Change "err" to "*err"; this fixes what
66953         appears to be a real bug.
66954         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66955         versus int.
66956
66957 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * modules/regex (Depends-on): Add malloc, since the code
66960         assumes that !malloc(0) means failure.
66961
66962 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66965
66966         alloca modernization/simplification for regex.
66967         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66968         needs to be at the start of the file, and can be moved into
66969         regex_internal.h and simplified.
66970         * lib/regex_internal.h: Include <alloca.h>.
66971         (__libc_use_alloca) [!defined _LIBC]: New macro.
66972         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66973         now works outside glibc.
66974
66975 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66976
66977         * config/srclist.txt: Add glibc bugs 1241, 1245.
66978
66979 2005-08-25  Jim Meyering  <jim@meyering.net>
66980
66981         * lib/open-safer.c: Include <config.h>.
66982         Otherwise, we'd lose LARGEFILE support in any file using
66983         e.g. "fcntl--.h"
66984
66985 2005-08-25  Bruno Haible  <bruno@clisp.org>
66986
66987         * m4/minmax.m4: Require autoconf 2.52.
66988         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66989         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66990         alternatives of translit over the alphabet.
66991         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66992
66993 2005-08-24  Simon Josefsson  <jas@extundo.com>
66994
66995         * tests/test-getpass.c: New file.
66996
66997 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67000         for GNU regex features.
67001
67002 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67005         * lib/regex.h (regerror): Likewise.
67006
67007         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67008         requires this.  (The code never needed it.)
67009
67010         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67011         All uses of recently-renamed identifiers changed to use the new,
67012         POSIX-compliant names.  The code will build and run just fine
67013         without these changes, but it's better to eat our own dog food
67014         and use the standard-conforming names.
67015
67016         * lib/regex.h: Fix a multitude of POSIX name space violations.
67017         These changes have an effect only for programs that define
67018         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67019         do not change anything for programs compiled in the normal way.
67020         Also, there is no effect on the ABI.
67021
67022         (_REGEX_SOURCE): New macro.
67023         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67024         defined and _GNU_SOURCE is not; this fixes a name space violation.
67025
67026         Rename the following macros to obey POSIX requirements.
67027         The old names are still visible as macros if _REGEX_SOURCE is defined.
67028         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67029         RE_BACKSLASH_ESCAPE_IN_LISTS.
67030         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67031         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67032         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67033         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67034         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67035         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67036         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67037         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67038         (REG_INTERVALS): renamed from RE_INTERVALS.
67039         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67040         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67041         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67042         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67043         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67044         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67045         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67046         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67047         RE_UNMATCHED_RIGHT_PAREN_ORD.
67048         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67049         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67050         (REG_DEBUG): renamed from RE_DEBUG.
67051         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67052         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67053         unusual, since we can't clash with the POSIX REG_ICASE.
67054         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67055         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67056         (REG_NO_SUB): renamed from RE_NO_SUB.
67057         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67058         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67059         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67060         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67061         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67062         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67063         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67064         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67065         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67066         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67067         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67068         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67069         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67070         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67071         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67072         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67073         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67074         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67075         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67076         (REG_FIXED): Renamed from REGS_FIXED.
67077         (REG_NREGS): Renamed from RE_NREGS.
67078
67079         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67080         of other REG_* macros, since POSIX says the user is allowed to
67081         #undef these macros selectively.
67082
67083         (reg_errcode_t): Update comment stating what other tables need
67084         to be consistent.
67085
67086         Rename the following enum values to obey POSIX requirements.
67087         The old names are still visible as macros.
67088         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67089         is not defined, since GNU is supposed to be a superset of POSIX as
67090         much as possible, and since we want reg_errcode_t to be a signed
67091         type for implementation consistency.
67092         (_REG_NOERROR): Renamed from REG_NOERROR.
67093         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67094         (_REG_BADPAT): Renamed from REG_BADPAT.
67095         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67096         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67097         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67098         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67099         (_REG_EBRACK): Renamed from REG_EBRACK.
67100         (_REG_EPAREN): Renamed from REG_EPAREN.
67101         (_REG_EBRACE): Renamed from REG_EBRACE.
67102         (_REG_BADBR): Renamed from REG_BADBR.
67103         (_REG_ERANGE): Renamed from REG_ERANGE.
67104         (_REG_ESPACE): Renamed from REG_ESPACE.
67105         (_REG_BADRPT): Renamed from REG_BADRPT.
67106         (_REG_EEND): Renamed from REG_EEND.
67107         (_REG_ESIZE): Renamed from REG_ESIZE.
67108         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67109         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67110         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67111         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67112         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67113
67114         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67115         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67116         changed.  But support the old name if the new one is not defined
67117         and if _REGEX_SOURCE.
67118
67119         Change the following member names in struct re_pattern_buffer.
67120         The old names are still supported if !_REGEX_SOURCE.
67121         The new names are always supported, regardless of _REGEX_SOURCE.
67122         (re_buffer): Renamed from buffer.
67123         (re_allocated): Renamed from allocated.
67124         (re_used): Renamed from used.
67125         (re_syntax): Renamed from syntax.
67126         (re_fastmap): Renamed from fastmap.
67127         (re_translate): Renamed from translate.
67128         (re_can_be_null): Renamed from can_be_null.
67129         (re_regs_allocated): Renamed from regs_allocated.
67130         (re_fastmap_accurate): Renamed from fastmap_accurate.
67131         (re_no_sub): Renamed from no_sub.
67132         (re_not_bol): Renamed from not_bol.
67133         (re_not_eol): Renamed from not_eol.
67134         (re_newline_anchor): Renamed from newline_anchor.
67135
67136         Change the following member names in struct re_registers.
67137         The old names are still supported if !_REGEX_SOURCE.
67138         The new names are always supported, regardless of _REGEX_SOURCE.
67139         (rm_num_regs): Renamed from num_regs.
67140         (rm_start): Renamed from start.
67141         (rm_end): Renamed from end.
67142
67143         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67144         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67145         Prepend __ to parameter names.
67146
67147         Undo yesterday's changes.
67148
67149 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67150
67151         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67152         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67153         lib/regex.c.
67154
67155 2005-08-24  Jim Meyering  <jim@meyering.net>
67156
67157         Sync from coreutils.
67158         * m4/fcntl-safer.m4: New file.
67159
67160         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67161         and object files for this module.
67162
67163 2005-08-24  Jim Meyering  <jim@meyering.net>
67164
67165         Sync from coreutils.
67166         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67167
67168 2005-08-24  Jim Meyering  <jim@meyering.net>
67169
67170         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67171         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67172
67173 2005-08-24  Jim Meyering  <jim@meyering.net>
67174
67175         * modules/fcntl-safer: New module.
67176         * modules/fts (Depends-on): Add fcntl-safer.
67177         * MODULES.html.sh (File descriptor based Input/Output):
67178         Add fcntl-safer.
67179
67180 2005-08-24  Bruno Haible  <bruno@clisp.org>
67181
67182         Support for unit test modules.
67183         * modules/README: Mention tests modules.
67184         * modules/TEMPLATE-TESTS: New file.
67185         * gnulib-tool: New options --extract-tests-module, --with-tests and
67186         --tests-base (unused for the moment).
67187         (testsbase, inctests): New variables.
67188         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67189         (func_verify_module): Exclude TEMPLATE-TESTS.
67190         (func_verify_nontests_module, func_verify_tests_module): New functions.
67191         (func_get_dependencies): Add implicit dependency for tests modules.
67192         (func_get_tests_module): New function.
67193         (func_modules_transitive_closure): When --with-tests was specified,
67194         include the unit tests as well, unless explicitly avoided.
67195         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67196         (func_emit_tests_Makefile_am): New function.
67197         (func_create_testdir): When --with-tests was specified, emit a
67198         tests/ directory.
67199         * MODULES.html.sh (Future developments): Update.
67200
67201 2005-08-24  Bruno Haible  <bruno@clisp.org>
67202
67203         * modules/tls-tests: New file.
67204         * tests/test-tls.c: New file, from GNU gettext.
67205
67206 2005-08-24  Bruno Haible  <bruno@clisp.org>
67207
67208         * modules/lock-tests: New file.
67209         * tests/test-lock.c: New file, from GNU gettext.
67210
67211 2005-08-24  Bruno Haible  <bruno@clisp.org>
67212
67213         * lib/lock.h: Add multiple inclusion guard.
67214         * lib/tls.h: Add multiple inclusion guard.
67215
67216 2005-08-24  Bruno Haible  <bruno@clisp.org>
67217
67218         * gnulib-tool: Add support for the --aux-dir option to
67219         --create-testdir, --create-megatestdir, --test, --megatest.
67220         (func_create_testdir, func_create_megatestdir): Optionally emit a
67221         AC_CONFIG_AUX_DIR directive.
67222         (create-testdir, create-megatestdir, test, megatest): Provide a
67223         default value for $auxdir.
67224
67225 2005-08-24  Bruno Haible  <bruno@clisp.org>
67226
67227         * gnulib-tool (import): Use compound statement instead of subshell
67228         where possible.
67229
67230 2005-08-24  Bruno Haible  <bruno@clisp.org>
67231
67232         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67233
67234 2005-08-24  Bruno Haible  <bruno@clisp.org>
67235
67236         * gnulib-tool (func_version): Update.
67237
67238 2005-08-24  Bruno Haible  <bruno@clisp.org>
67239
67240         * gnulib-tool (func_import, func_create_testdir,
67241         func_create_megatestdir): Quote all autoconf macro arguments.
67242
67243 2005-08-24  Bruno Haible  <bruno@clisp.org>
67244
67245         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67246         option --force, because --force causes the aclocal.m4 of each
67247         subdirectory to be newer than the corresponding config.h.in.
67248
67249 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67252         All contents moved to gl_REGEX.
67253         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67254         assume that it does.
67255
67256 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * lib/regex.h (REG_NOSYS)
67259         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67260         Define, since POSIX requires it as of 2001.
67261         (_REG_ENOSYS)
67262         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67263         New private symbol, used to keep the enum signed in all cases.
67264         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67265         Youngman in
67266         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67267
67268         * lib/regex_internal.c (re_string_skip_chars, register_state):
67269         (calc_state_hash):
67270         Remove forward decls; no longer needed now that we use prototypes.
67271         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67272         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67273         (clean_state_log_if_needed): Likewise.
67274
67275 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67276
67277         * config/srclist.txt: Add glibc bugs 1231-1233.
67278
67279 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         Fix problems reported by Sam Steingold in
67282         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67283         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67284         assumed that reg_errcode_t is a signed type, which is not
67285         necessarily true if _XOPEN_SOURCE is not defined.
67286         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67287         since some compilers warn about it otherwise.
67288
67289 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67290
67291         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67292         (init_word_char, create_initial_state, duplicate_node_closure):
67293         (fetch_token, peek_token_bracket, build_range_exp):
67294         (build_collating_symbol): Remove forward decls; no longer needed
67295         now that we use prototypes.
67296
67297         * lib/regcomp.c:
67298         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67299         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67300         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67301         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67302         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67303         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67304         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67305         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67306         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67307         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67308         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67309         (build_charclass, build_charclass_op, fetch_number, create_tree):
67310         (create_token_tree, mark_opt_subexp, duplicate_tree):
67311         Use prototypes rather than old-style definitions.
67312
67313         * lib/regex_internal.c:
67314         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67315         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67316         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67317         (re_string_reconstruct, re_string_peek_byte_case):
67318         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67319         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67320         (re_node_set_init_copy, re_node_set_add_intersect):
67321         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67322         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67323         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67324         (re_acquire_state, re_acquire_state_context, register_state):
67325         (create_ci_newstate, create_cd_newstate, free_state):
67326         Likewise.
67327         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67328         re_search_2):
67329         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67330         (re_search_internal, prune_impossible_nodes):
67331         (acquire_init_state_context, check_matching, static):
67332         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67333         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67334         (update_regs, sift_states_backward, build_sifted_states):
67335         (clean_state_log_if_needed, merge_state_array):
67336         (update_cur_sifted_state, add_epsilon_src_nodes):
67337         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67338         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67339         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67340         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67341         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67342         (check_arrival, check_arrival_add_next_nodes):
67343         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67344         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67345         (check_node_accept_bytes, check_node_accept, extend_buffers):
67346         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67347         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67348         (sift_ctx_init):
67349         Likewise.
67350
67351         * lib/regex_internal.h:
67352         (re_string_allocate, re_string_construct, re_string_reconstruct):
67353         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67354         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67355         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67356         (re_string_context_at, re_string_peek_byte_case):
67357         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67358         is defined, since we now use prototypes always.
67359
67360         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67361         C89 or better.  All uses removed.
67362
67363 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67364
67365         * config/srclist.txt: Add glibc bugs 1220-1227.
67366
67367 2005-08-20  Jim Meyering  <jim@meyering.net>
67368
67369         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67370         of unused local, dfa.
67371
67372 2005-08-20  Bruno Haible  <bruno@clisp.org>
67373
67374         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67375
67376 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67379         (re_node_set_insert_last, re_dfa_add_node):
67380         Rename local variables to avoid GCC shadowing warnings.
67381
67382 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67385         [defined lint]: Suppress bogus uninitialized-variable warnings.
67386
67387         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67388         and let the caller return REG_ESPACE if out of space.  This
67389         removes an uninitialied-variable warning with GCC 4.0.1, and also
67390         avoids taking the address of a local variable.  All callers
67391         changed.
67392
67393 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67396         $LIBCSRC/posix/regexec.c.
67397         Add glibc bug 1217 for regcomp.c.
67398
67399 2005-08-19  Jim Meyering  <jim@meyering.net>
67400
67401         * lib/regexec.c (proceed_next_node): Redo local variables to
67402         avoid GCC shadowing warnings.
67403
67404 2005-08-18  Bruno Haible  <bruno@clisp.org>
67405
67406         * lib/strstr.c (strstr): Fix return value in multibyte case.
67407         * lib/strcasestr.c (strcasestr): Likewise.
67408
67409 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67410
67411         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67412
67413 2005-08-17  Jim Meyering  <jim@meyering.net>
67414
67415         Make the %s format (seconds since the epoch) work for a negative
67416         number and when used with a zero-padded field width, e.g. %015s.
67417
67418         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67419         label so that it precedes the code to set `digits'.  Otherwise,
67420         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67421         print `00-22'.  Now, it prints `-0022', as it should.
67422
67423 2005-08-17  Bruno Haible  <bruno@clisp.org>
67424
67425         * modules/strstr (Files): Add m4/mbrtowc.m4.
67426         (Depends-on): Add mbuiter.
67427
67428 2005-08-17  Bruno Haible  <bruno@clisp.org>
67429
67430         * modules/strcasestr: New file.
67431         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67432         strcasestr.
67433
67434 2005-08-17  Bruno Haible  <bruno@clisp.org>
67435
67436         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67437
67438 2005-08-17  Bruno Haible  <bruno@clisp.org>
67439
67440         * modules/mbuiter: New file.
67441         * MODULES.html.sh (Extended multibyte and wide character utilities):
67442         Add mbuiter.
67443
67444 2005-08-17  Bruno Haible  <bruno@clisp.org>
67445
67446         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67447         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67448
67449 2005-08-17  Bruno Haible  <bruno@clisp.org>
67450
67451         * m4/strcasestr.m4: New file.
67452
67453 2005-08-17  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67456         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67457
67458 2005-08-17  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/strcasestr.h: New file.
67461         * lib/strcasestr.c: New file.
67462
67463 2005-08-17  Bruno Haible  <bruno@clisp.org>
67464
67465         * lib/strcasecmp.c: Use mbuiter.h.
67466
67467 2005-08-17  Bruno Haible  <bruno@clisp.org>
67468
67469         * lib/mbuiter.h: New file.
67470
67471 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67472
67473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67474         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67475         and gl_GETOPT are both invoked via different paths (as happens
67476         with GNU tar CVS because it uses both argp and getopt), the former
67477         wins.
67478
67479 2005-08-16  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/tls: New file.
67482         * MODULES.html.sh (Multithreading): Add tls.
67483
67484 2005-08-16  Bruno Haible  <bruno@clisp.org>
67485
67486         * modules/strnlen1: New file.
67487         * MODULES.html.sh (String handling): Add strnlen1.
67488
67489 2005-08-16  Bruno Haible  <bruno@clisp.org>
67490
67491         * modules/strcase (Files): Add m4/mbrtowc.m4.
67492         (Depends-on): Add strnlen1, mbchar.
67493
67494 2005-08-16  Bruno Haible  <bruno@clisp.org>
67495
67496         * modules/mbiter: New file.
67497         * MODULES.html.sh (Extended multibyte and wide character utilities):
67498         Add mbiter.
67499
67500 2005-08-16  Bruno Haible  <bruno@clisp.org>
67501
67502         * modules/mbfile: New file.
67503         * MODULES.html.sh (Extended multibyte and wide character utilities):
67504         Add mbfile.
67505
67506 2005-08-16  Bruno Haible  <bruno@clisp.org>
67507
67508         * modules/mbchar: New file.
67509         * MODULES.html.sh (Extended multibyte and wide character utilities):
67510         New section.
67511
67512 2005-08-16  Bruno Haible  <bruno@clisp.org>
67513
67514         * m4/tls.m4: New file, from GNU gettext.
67515
67516 2005-08-16  Bruno Haible  <bruno@clisp.org>
67517
67518         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67519         always.
67520         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67521
67522 2005-08-16  Bruno Haible  <bruno@clisp.org>
67523
67524         * m4/mbiter.m4: New file.
67525
67526 2005-08-16  Bruno Haible  <bruno@clisp.org>
67527
67528         * m4/mbfile.m4: New file.
67529
67530 2005-08-16  Bruno Haible  <bruno@clisp.org>
67531
67532         * m4/mbchar.m4: New file.
67533
67534 2005-08-16  Bruno Haible  <bruno@clisp.org>
67535
67536         * lib/tls.h: New file, from GNU gettext.
67537         * lib/tls.c: New file, from GNU gettext.
67538
67539 2005-08-16  Bruno Haible  <bruno@clisp.org>
67540
67541         * lib/strnlen1.h: New file.
67542         * lib/strnlen1.c: New file.
67543
67544 2005-08-16  Bruno Haible  <bruno@clisp.org>
67545
67546         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67547         (mbi_init): Update.
67548         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67549         NUL byte, not after it.
67550
67551 2005-08-16  Bruno Haible  <bruno@clisp.org>
67552
67553         * lib/strcase.h (strcasecmp): Add note in comments.
67554         * lib/strncasecmp.c: Use code from strcasecmp.c.
67555         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67556         (strcasecmp): Work correctly in multibyte locales.
67557
67558 2005-08-16  Bruno Haible  <bruno@clisp.org>
67559
67560         * lib/mbiter.h: New file.
67561
67562 2005-08-16  Bruno Haible  <bruno@clisp.org>
67563
67564         * lib/mbfile.h: New file.
67565
67566 2005-08-16  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/mbchar.h: New file.
67569         * lib/mbchar.c: New file.
67570
67571 2005-08-16  Bruno Haible  <bruno@clisp.org>
67572
67573         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67574         the valid ones. Makes the comparison operations transitive:
67575         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67576         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67577
67578 2005-08-15  Simon Josefsson  <jas@extundo.com>
67579
67580         * modules/ssize_t (License): Change to 'unlimited'.
67581
67582         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67583
67584 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67587         Add comments for each pending glibc patch.
67588
67589 2005-08-15  Bruno Haible  <bruno@clisp.org>
67590
67591         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67592         __cplusplus is defined.
67593
67594 2005-08-14  Jim Meyering  <jim@meyering.net>
67595
67596         Sync from coreutils.
67597
67598         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67599         Use the hash-table-based cycle-detection code not just when
67600         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67601         Reported by James Youngman in
67602         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67603         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67604         FTS_TIGHT_CYCLE_CHECK.
67605         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67606         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67607         once again.
67608         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67609         * lib/fts.c (fd_safer): Remove decl.
67610         Include fcntl--.h rather than unistd-safer.h
67611         (fts_safe_changedir): Don't call fd_safer; no longer needed
67612         now that we include fcntl--.h.
67613
67614 2005-08-12  Simon Josefsson  <jas@extundo.com>
67615
67616         * modules/getndelim2: Use ssize_t module.
67617         * modules/getnline: Likewise.
67618         * modules/safe-read: Likewise.
67619         * modules/xreadlink: Likewise.
67620
67621         * modules/ssize_t: New file.
67622
67623 2005-08-12  Simon Josefsson  <jas@extundo.com>
67624
67625         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67626
67627 2005-08-12  Simon Josefsson  <jas@extundo.com>
67628
67629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67630         ssize_t.
67631
67632 2005-08-12  Simon Josefsson  <jas@extundo.com>
67633
67634         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67635         readline, getdelim and check_version.
67636         (Support for systems lacking ISO C 99: Sizes of integer types):
67637         Add size_max.
67638
67639 2005-08-12  Bruno Haible  <bruno@clisp.org>
67640
67641         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67642
67643 2005-08-11  Simon Josefsson  <jas@extundo.com>
67644
67645         * modules/readline: New file.
67646
67647         * modules/strnlen (Files): Add strnlen.h.
67648
67649 2005-08-11  Simon Josefsson  <jas@extundo.com>
67650
67651         * m4/readline.m4: New file.
67652
67653 2005-08-11  Simon Josefsson  <jas@extundo.com>
67654
67655         * lib/readline.h, readline.c: New file.
67656
67657 2005-08-11  Simon Josefsson  <jas@extundo.com>
67658
67659         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67660         gl_AVOID.
67661
67662 2005-08-11  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67665
67666 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67667
67668         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67669
67670 2005-08-10  Simon Josefsson  <jas@extundo.com>
67671
67672         * tests/test-iconvme.c: New file.
67673
67674 2005-08-10  Simon Josefsson  <jas@extundo.com>
67675
67676         * m4/strnlen.m4: New file.
67677
67678         * m4/strndup.m4: Don't check for strnlen declaration, done in
67679         strnlen.m4.
67680
67681 2005-08-10  Simon Josefsson  <jas@extundo.com>
67682
67683         * lib/strndup.c: Use strnlen.h.
67684
67685         * lib/strnlen.h: New file.
67686
67687 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67688
67689         * README: Typos.
67690
67691 2005-08-02  Simon Josefsson  <jas@extundo.com>
67692
67693         * modules/readline: New file.
67694
67695 2005-08-02  Simon Josefsson  <jas@extundo.com>
67696
67697         * modules/getdelim: New file.
67698
67699         * modules/getline: Rewrite, don't use getndelim2.
67700
67701 2005-08-02  Simon Josefsson  <jas@extundo.com>
67702
67703         * m4/getline.m4: Separate out getdelim stuff into separate module.
67704
67705         * m4/getdelim.m4: New file.
67706
67707 2005-08-02  Simon Josefsson  <jas@extundo.com>
67708
67709         * lib/getline.h, getline.c: Rewrite.
67710
67711         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67712
67713 2005-07-31  Bruno Haible  <bruno@clisp.org>
67714
67715         * lib/lock.h (gl_lock_initializer): New macro.
67716         (gl_lock_define_initialized): Use it.
67717         (gl_rwlock_initializer): New macro.
67718         (gl_rwlock_define_initialized): Use it.
67719         (gl_recursive_lock_initializer): New macro.
67720         (gl_recursive_lock_define_initialized): Use it.
67721
67722 2005-07-30  Karl Berry  <karl@gnu.org>
67723
67724         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67725         Report from Ben Pfaff, regarding getopt.
67726
67727 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67728
67729         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67730         normal way.
67731         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67732         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67733         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67734         (gl_GETOPT): Use the new macros.  Most of the implementation
67735         is moved to the new macros.  This is for programs like Emacs
67736         that don't want all the functionality of gl_GETOPT.
67737
67738 2005-07-26  Bruno Haible  <bruno@clisp.org>
67739
67740         * m4/lock.m4: Update from GNU gettext.
67741
67742 2005-07-26  Bruno Haible  <bruno@clisp.org>
67743
67744         * lib/lock.h: Update from GNU gettext.
67745         * lib/lock.c: Update from GNU gettext.
67746
67747 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67750         obsolescent AC_TRY_RUN.  Include the default includes files, for
67751         'exit'.
67752
67753 2005-07-24  Bruno Haible  <bruno@clisp.org>
67754
67755         * modules/visibility: New file.
67756         * MODULES.html.sh (Misc): Add visibility.
67757
67758 2005-07-24  Bruno Haible  <bruno@clisp.org>
67759
67760         * m4/visibility.m4: New file.
67761
67762 2005-07-24  Bruno Haible  <bruno@clisp.org>
67763
67764         * doc/visibility.texi: New file.
67765
67766 2005-07-22  Bruno Haible  <bruno@clisp.org>
67767
67768         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67769         $(ALLOCA_H), redundant through BUILT_SOURCES.
67770         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67771         redundant through BUILT_SOURCES.
67772         * modules/byteswap (Makefile.am): Remove explicit dependency on
67773         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67774         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67775         $(FNMATCH_H), redundant through BUILT_SOURCES.
67776         * modules/getopt (Makefile.am): Remove explicit dependency on
67777         $(GETOPT_H), redundant through BUILT_SOURCES.
67778         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67779         redundant through BUILT_SOURCES.
67780         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67781         redundant through BUILT_SOURCES.
67782         * modules/stdbool (Makefile.am): Remove explicit dependency on
67783         $(STDBOOL_H), redundant through BUILT_SOURCES.
67784         * modules/stdint (Makefile.am): Remove explicit dependency on
67785         $(STDINT_H), redundant through BUILT_SOURCES.
67786         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67787         Remove explicit dependency on $(SYSEXITS_H).
67788         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67789
67790 2005-07-18  Simon Josefsson  <jas@extundo.com>
67791
67792         * lib/check-version.c (check_version): Accept identical versions too.
67793
67794 2005-07-18  Bruno Haible  <bruno@clisp.org>
67795
67796         * modules/lock: New file.
67797         * MODULES.html.sh (Multithreading): New section.
67798
67799 2005-07-18  Bruno Haible  <bruno@clisp.org>
67800
67801         * m4/lock.m4: New file, from GNU gettext.
67802
67803 2005-07-18  Bruno Haible  <bruno@clisp.org>
67804
67805         * lib/lock.h: New file, from GNU gettext.
67806         * lib/lock.c: New file, from GNU gettext.
67807
67808 2005-07-18  Bruno Haible  <bruno@clisp.org>
67809
67810         * lib/lock.h (gl_once_t): New type.
67811         (gl_once_define, gl_once): New macros.
67812         * lib/lock.c (fresh_once): New variable.
67813         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67814         functions.
67815
67816 2005-07-16  Simon Josefsson  <jas@extundo.com>
67817
67818         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67819         workaround, suggested by Bruno.
67820
67821 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * modules/xalloc (Depends-on): Add xalloc-die.
67824         * modules/xvasprintf (Depends-on): Add xalloc-die.
67825
67826 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67829         with a minor change.
67830
67831 2005-07-15  Bruno Haible  <bruno@clisp.org>
67832
67833         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67834         When using lib/poll.c, define poll as rpl_poll.
67835
67836 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67837
67838         * modules/argp (Depends-on): Remove unlocked-io.
67839
67840 2005-07-14  Derek Price  <derek@ximbiot.com>
67841
67842         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67843         for glob symlink bug.
67844
67845 2005-07-14  Bruno Haible  <bruno@clisp.org>
67846
67847         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67848         Instead, test for *_unlocked function declarations directly.
67849
67850 2005-07-11  Simon Josefsson  <jas@extundo.com>
67851
67852         * modules/size_max: New file.
67853
67854         * modules/xsize: Depend on size_max module for size_max.m4.
67855
67856 2005-07-11  Simon Josefsson  <jas@extundo.com>
67857
67858         * lib/size_max.h: New file.
67859
67860 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67861
67862         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67863         copyright symbol and the year.
67864         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67865         (version_etc_va): Use parameterized copyright notice.
67866         Reword to conform to the current GNU coding standards.
67867
67868 2005-07-11  Karl Berry  <karl@gnu.org>
67869
67870         * doc/gnulib.texi (Quoting): new node.
67871         (Initial import): more info, from Patrice.
67872
67873 2005-07-11  Bruno Haible  <bruno@clisp.org>
67874
67875         * gnulib-tool (func_usage): Document option --avoid.
67876         (Command line options): Handle --avoid.
67877         (func_acceptable): New function.
67878         (func_modules_transitive_closure): Use it.
67879
67880 2005-07-11  Bruno Haible  <bruno@clisp.org>
67881
67882         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67883         Reported by Jim Meyering.
67884
67885 2005-07-10  Bruno Haible  <bruno@clisp.org>
67886
67887         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67888         Needed when size_t is smaller than 'unsigned int'.
67889         Reported by Paul Eggert.
67890
67891 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67892
67893         * modules/argp (Depends-on): Add unlocked-io
67894
67895 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67896
67897         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67898         block of defines.
67899
67900 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67903         fix now.
67904
67905 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67906         and Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67909         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67910
67911 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * modules/regex (Files): Add lib/regex_internal.c,
67914         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67915         (Depends-on): Add extensions.
67916         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67917
67918 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67921         pathconf.
67922         * m4/same.m4 (gl_SAME): Likewise.
67923         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67924
67925         * m4/regex.m4: Adjust to new libc regex implementation.
67926         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67927         all the .c and .h parts of (the new) regex.
67928         Quote the m4 stuff better.
67929         Check for RE_ICASE bug of old gnulib.
67930         Check for REG_STARTEND of recent libc.
67931         Rename local variables from jm_* to gl_*.
67932         Quote operand of "test -f".
67933         Say "recent enough" version of libc, not "version 2".
67934         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67935         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67936         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67937         Remove check for btowc, isascii.
67938         Require AM_LANGINFO_CODESET.
67939
67940 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67941
67942         * lib/regex.c, regex.h: Sync from libc.
67943         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67944         * lib/regexec.c:
67945         New files, synced from libc, except that regex_internal.h
67946         currently has a small porting fix.
67947
67948 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67951         regex_internal.c, regexec.c.
67952         Add regex_internal.h too, but as a comment, since the libc version
67953         is currently broken in gnulib mode.
67954
67955 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         Support programs like Emacs that use gnulib but not gettext.
67958         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67959         * modules/gettext-h: New file.
67960         * modules/gettext (Files): Remove lib/gettext.h.
67961         (Depends-on): Add gettext-h.
67962         (Makefile.am): Remove lib_SOURCES.
67963         * modules/argmatch, modules/c-stack, modules/closeout:
67964         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67965         * modules/execute, modules/file-type, modules/getaddrinfo:
67966         * modules/getopt, modules/human, modules/javacomp:
67967         * modules/javaexec, modules/mkdir-p, modules/obstack:
67968         * modules/openat, modules/pagealign_alloc, modules/pipe:
67969         * modules/quotearg, modules/regex, modules/rpmatch:
67970         * modules/unicodeio, modules/userspec, modules/version-etc:
67971         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67972         * modules/xsetenv:
67973         Depend on gettext-h, not gettext.
67974
67975 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * gnulib-tool (func_import): Add support for 'public domain' license.
67978         * modules/alloca, modules/atexit, modules/memmove:
67979         Now public domain, not GPL.
67980         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67981         * modules/realloc, modules/strerror, modules/strtod:
67982         Now LGPL, not GPL.
67983
67984 2005-07-05  Bruno Haible  <bruno@clisp.org>
67985
67986         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67987         autoconf CVS. Needed for mingw.
67988
67989 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         Remove the dependency of the strftime module on the tzset module.
67992         * modules/strftime (Depends-on): Remove dependency on tzset.
67993
67994 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         Remove the dependency of the strftime module on the tzset module.
67997         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67998         gl_FUNC_TZSET_CLOBBER.
67999
68000 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68001
68002         Remove the dependency of the strftime module on the tzset module.
68003         * lib/strftime.c (my_strftime)
68004         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68005         Copy the input structure, to work around some of the bug with
68006         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68007         Solaris releases, you should also use the tzset module, but we won't
68008         require it as a dependency any more since we don't want LGPLed code
68009         to depend on GPLed code.
68010
68011 2005-07-02  Jim Meyering  <jim@meyering.net>
68012
68013         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68014         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68015         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68016         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68017
68018 2005-07-02  Jim Meyering  <jim@meyering.net>
68019
68020         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68021
68022 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68023
68024         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68025         declares only 'struct timespec;' (!).
68026
68027 2005-07-01  Jim Meyering  <jim@meyering.net>
68028
68029         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68030         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68031         * lib/save-cwd.c, tempname.c:
68032         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68033         and don't include <sys/file.h>).
68034
68035 2005-06-29  Jim Meyering  <jim@meyering.net>
68036
68037         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68038         type name.  Use the variable name instead.
68039         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68040         Likewise.
68041
68042 2005-06-28  Simon Josefsson  <jas@extundo.com>
68043
68044         * modules/check-version (Files): Add check-version.m4.
68045
68046 2005-06-28  Simon Josefsson  <jas@extundo.com>
68047
68048         * m4/check-version.m4: New file, suggested by Jim Meyering
68049         <jim@meyering.net>.
68050
68051 2005-06-28  Simon Josefsson  <jas@extundo.com>
68052
68053         * lib/check-version.h, lib/check-version.c: New files.
68054
68055 2005-06-28  Simon Josefsson  <jas@extundo.com>
68056
68057         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68058         collision with global variable.  Better indentation.  Don't
68059         increment buffer pointer beyond buffer end.  Based on comments
68060         from Paul Eggert <eggert@cs.ucla.edu>.
68061
68062         * lib/base64.h: Indent.
68063
68064 2005-06-28  Simon Josefsson  <jas@extundo.com>
68065
68066         * doc/gnulib.texi (Library version handling): New section.
68067
68068 2005-06-28  Jim Meyering  <jim@meyering.net>
68069
68070         * check-module (find_included_lib_files): Hard-code another
68071         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68072         but modules/fts-lgpl (correctly) does not list those files.
68073
68074         * modules/canonicalize (Files): Add lib/pathmax.h.
68075
68076 2005-06-25  Simon Josefsson  <jas@extundo.com>
68077
68078         * modules/check-version: New file.
68079
68080 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68083         initializer of struct addrinfo, as an indication that we don't
68084         care how many members the structure has.
68085
68086 2005-06-24  Derek Price  <derek@ximbiot.com>
68087         and Bruno Haible  <bruno@clisp.org>
68088
68089         Remove stat module & update lstat.
68090         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68091         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68092         * m4/stat.m4: Remove this file.
68093
68094 2005-06-24  Derek Price  <derek@ximbiot.com>
68095         and Bruno Haible  <bruno@clisp.org>
68096
68097         Remove stat module & update lstat.
68098         * lib/stat.c: Remove this file...
68099         (slash_aware_lstat): ...moving this content and its support...
68100         * lib/lstat.c (rpl_lstat): ...into here.
68101         * lib/lstat.h: New file.
68102
68103 2005-06-24  Derek Price  <derek@ximbiot.com>
68104         and Bruno Haible  <bruno@clisp.org>
68105
68106         Remove stat module & update lstat.
68107         * config/srclist.txt (libc sources): Remove stat.
68108
68109 2005-06-24  Derek Price  <derek@ximbiot.com>
68110         and Bruno Haible  <bruno@clisp.org>
68111
68112         Remove stat module & update lstat.
68113         * MODULES.html.sh (stat): Remove.
68114         * MODULES.html: Regenerated.
68115         * modules/lstat (Description): Correct function name.
68116         (Files): Add "lstat.h".
68117         (Depends-on): Remove stat, add xalloc, stat-macros.
68118         * modules/stat: Remove this file.
68119         (Include): Add "lstat.h", remove <sys/stat.h>.
68120
68121 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68122
68123         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68124         (ranged_convert): Don't save conversion in a temporary struct.
68125         This causes a warning with GCC 4.0.0, and anyway in the typical
68126         case it's not worth the extra 100 bytes or so of code.
68127         (ranged_convert, __mktime_internal): When calling a function via a
68128         pointer P, use P () rather than (*P) (), as we now assume C89 or
68129         better.
68130
68131 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68134         "who -r" failed to give output.  Problem reported by Tim Waugh.
68135
68136         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68137         (xcalloc): Use it to avoid needless tests.
68138         Problem reported by Jim Meyering.
68139
68140 2005-06-20  Derek Price  <derek@ximbiot.com>
68141
68142         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68143         unnecessary for Autoconfs > 2.59c.
68144
68145 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68146
68147         * lib/argp.h (__option_is_short): Check upper limit of
68148         __key. Isprint() requires its argument to have the value
68149         of an unsigned char or EOF.
68150
68151 2005-06-16  Jim Meyering  <jim@meyering.net>
68152
68153         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68154         when either N or S is zero.
68155
68156 2005-06-16  Derek Price  <derek@ximbiot.com>
68157
68158         * m4/bison.m4: Declare YACC & YFLAGS precious.
68159
68160 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68163         multibyte string or pattern, fall back on unibyte matching.
68164         Problem reported by James Youngman.
68165
68166 2005-06-08  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/csharpcomp: New file.
68169         * MODULES.html.sh (C#): Add csharpcomp.
68170
68171 2005-06-08  Bruno Haible  <bruno@clisp.org>
68172
68173         * m4/csharpcomp.m4: New file, from GNU gettext.
68174
68175 2005-06-08  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/csharpcomp.h: New file, from GNU gettext.
68178         * lib/csharpcomp.c: New file, from GNU gettext.
68179         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68180
68181 2005-06-08  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68184         warning on mingw.
68185
68186 2005-06-07  Derek Price  <derek@ximbiot.com>
68187
68188         Sync from CVS.
68189         * lib/glob_.h: Indent nested #ifdef.
68190
68191 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         Sync from coreutils.
68194         Use "file name" when talking about file names, instead of "filename"
68195         or "path", as per the GNU coding standards.
68196         * lib/mkdir-p.c: Renamed from makepath.c.
68197         (make_dir_parents): Renamed from make_path.  All callers changed.
68198         * lib/mkdir-p.h: Likewise.  All includers changed.
68199         * lib/filenamecat.c: Renamed from path-concat.c.
68200         (file_name_concat): Renamed from path_concat.  All callers changed.
68201         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68202         * lib/filenamecat.h: Likewise.  All includers changed.
68203         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68204         in comments or local variable names.
68205         * lib/basename.c: Likewise.
68206         * lib/canonicalize.c, canonicalize.h: Likewise.
68207         * lib/dirname.c, dirname.h: Likewise.
68208         * lib/euidaccess.c: Likewise.
68209         * lib/exclude.c: Likewise
68210         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68211         * lib/fsusage.c, fsuage.h: Likewise.
68212         * lib/fts.c, fts_.h: Likewise.
68213         * lib/getcwd.c: Likewise.
68214         * lib/getloadavg.c: Likewise.
68215         * lib/mkstemp.c: Likewise.
68216         * lib/mountlist.c, mountlist.h: Likewise.
68217         * lib/openat.c, openat.h: Likewise.
68218         * lib/readlink-stub.c: Likewise.
68219         * lib/readutmp.c, readutmp.h: Likewise.
68220         * lib/rename.c: Likewise.
68221         * lib/rmdir.c: Likewise.
68222         * lib/same.c: Likewise.
68223         * lib/savedir.c: Likewise.
68224         * lib/stripslash.c: Likewise.
68225         * lib/tempname.c: Likewise.
68226         * lib/xreadlink.c: Likewise.
68227         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68228         All uses changed.
68229         * lib/exclude.h: Likewise.
68230
68231         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68232         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68233         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68234         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68235         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68236         files have been getting away with it for years (MORE/BSD 4.3
68237         is extinct now).
68238         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68239         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68240
68241         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68242         Define to 256, not 255, as per modern POSIX.
68243
68244 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68245
68246         Sync from coreutils.
68247         Use "file name" when talking about file names, instead of "filename"
68248         or "path", as per the GNU coding standards.
68249         * MODULES.html.sh: mkdir-p renamed from makepath.
68250         filenamecat renamed from path-concat.
68251         * modules/filenamecat: Renamed from modules/path-concat.
68252         (Files): filenamecat.h and filenamecat.c renamed from
68253         path-concat.h and path-concat.c.
68254         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68255         (Include): filenamecat.h, not path-concat.h.
68256         * modules/mkdir-p: Renamed from modules/makepath.
68257         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68258         makepath.c.
68259         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68260         (Include): mkdir-p.h, not makepath.h.
68261
68262 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68263
68264         Sync from coreutils.
68265         * m4/mkdir-p.m4: Renamed from makepath.m4.
68266         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68267         Rename files from makepath.c to mkdir-p.c, and from
68268         makepath.h to mkdir-p.h.
68269         * m4/filenamecat.m4: Renamed from path-concat.m4.
68270         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68271         Rename files from path-concat.c to filenamecat.c,
68272         and from path-concat.h to filenamecat.h.
68273         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68274         "file name" in local variables or comments.
68275         * m4/rename.m4: Likewise.
68276
68277 2005-06-01  Bruno Haible  <bruno@clisp.org>
68278
68279         * modules/csharpexec: New file.
68280         * MODULES.html.sh (C#): New section.
68281
68282 2005-06-01  Bruno Haible  <bruno@clisp.org>
68283
68284         * m4/csharp.m4: New file, from GNU gettext.
68285         * m4/csharpexec.m4: New file, from GNU gettext.
68286
68287 2005-06-01  Bruno Haible  <bruno@clisp.org>
68288
68289         * lib/csharpexec.h: New file, from GNU gettext.
68290         * lib/csharpexec.c: New file, from GNU gettext.
68291         * lib/csharpexec.sh.in: New file, from GNU gettext.
68292
68293 2005-05-31  Derek Price  <derek@ximbiot.com>
68294             Paul Eggert  <eggert@cs.ucla.edu>
68295
68296         Sync from cvs.
68297         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68298
68299 2005-05-31  Derek Price  <derek@ximbiot.com>
68300             Paul Eggert  <eggert@cs.ucla.edu>
68301
68302         Sync from cvs.
68303         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68304
68305 2005-05-29  Derek Price  <derek@ximbiot.com>
68306
68307         * config/srclist.txt (glob_.h, glob.c): Add these files.
68308
68309 2005-05-29  Derek Price  <derek@ximbiot.com>
68310
68311         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68312         * modules/glob: New file.
68313         * modules/getlogin_r: Add link to POSIX spec in description.
68314
68315 2005-05-29  Derek Price  <derek@ximbiot.com>
68316             Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * m4/glob.m4: New file.
68319
68320 2005-05-29  Derek Price  <derek@ximbiot.com>
68321             Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         * lib/glob_.h, lib/glob.c: New files.
68324
68325 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68326
68327         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68328         * modules/fts-lgpl (Depends-on): Remove gettext.
68329
68330 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68333         and don't require gt_INTTYPES_PRI.
68334
68335 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68338
68339         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68340         the configuration hassle isn't worth it.
68341         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68342         (LONGEST_MODIFIER, PRIuMAX): Remove.
68343
68344 2005-05-27  Bruno Haible  <bruno@clisp.org>
68345
68346         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68347
68348 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68351         _POSIX_PTHREAD_SEMANTICS for Solaris.
68352
68353 2005-05-25  Derek Price  <derek@ximbiot.com>
68354
68355         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68356
68357 2005-05-25  Derek Price  <derek@ximbiot.com>
68358             Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68361         * lib/getlogin_r.c, getlogin_r.h: New files.
68362
68363 2005-05-25  Bruno Haible  <bruno@clisp.org>
68364             Derek Price  <derek@ximbiot.com>
68365
68366         * lib/getlogin_r.h: Simplify API documentation.
68367
68368 2005-05-23  Derek Price  <derek@ximbiot.com>
68369
68370         * modules/minmax (Files): Add m4/minmax.m4.
68371         (configure.ac): Add gl_MINMAX.
68372
68373 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68376         so that unistd-safer.h (GPL'ed code) need not be included.
68377
68378 2005-05-22  Bruno Haible  <bruno@clisp.org>
68379
68380         * m4/minmax.m4: New file.
68381         Based on a patch by Derek Price <derek@ximbiot.com>.
68382
68383 2005-05-22  Bruno Haible  <bruno@clisp.org>
68384
68385         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68386         (INT64_MIN): Fix definition.
68387         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68388
68389         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68390         NEED_SIGNED_INT_TYPES.
68391
68392         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68393         HAVE_SYSTEM_INTTYPES.
68394
68395 2005-05-22  Bruno Haible  <bruno@clisp.org>
68396
68397         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68398         Also include <sys/param.h> if it defines MIN, MAX.
68399         Based on a patch by Derek Price <derek@ximbiot.com>.
68400
68401 2005-05-21  Jim Meyering  <jim@meyering.net>
68402
68403         * modules/fts (Files): Add m4/inttypes-pri.m4.
68404         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68405
68406 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         New fts module.
68409         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68410         (setup_dir, free_dir): New functions.
68411         (enter_dir, leave_dir): Define trivial
68412         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68413         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68414         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68415         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68416         Move to fts-cycle.c.
68417         (fts_open): Use setup_dir.
68418         (fts_close): Use free_dir.
68419         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68420         This adds a label and some gotos, but the alternatives were messier.
68421         Check for memory allocation failure when entering a dir.
68422         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68423         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68424         (FTS): New member fts_cycle, that is a union that contains the
68425         old active_dir_ht and cycle_state.  All uses changed to mention
68426         fts_cycle.ht and fts_cycle.state.
68427         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68428         fts.c, with the following changes:
68429         (setup_dir, free_dir): New functions.
68430         (enter_dir): Now returns bool.  Return true if successful, false
68431         if memory exhausted.  All callers changed.
68432         Do not bother partly cleaning up on
68433         memory allocation failure; that is free_dir's job.
68434         However, free ad if hash_insert fails, to avoid memory leak.
68435         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68436         fts->fts_options to see which union member to use.
68437
68438 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68441         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68442
68443 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68446
68447 2005-05-20  Jim Meyering  <jim@meyering.net>
68448
68449         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68450         Now a macro, to pacify GCC.
68451
68452 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68453
68454         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68455         of -1.
68456
68457 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68458
68459         * lib/chown.c (rpl_chown): Return -1 on failure.
68460
68461 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68462
68463         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68464         Don't check for stddef.h.
68465         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68466         don't use its results.
68467         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68468         since we include them unconditionally.  Don't require
68469         AM_STDBOOL_H, since stdbool is a prerequisite.
68470         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68471         since we assume C89 or better.
68472         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68473         as we don't use their results.
68474         Don't check for fchdir, memmove, memset, strrchr, as we use
68475         them unconditionally.
68476         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68477         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68478
68479 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68482         Include <stddef.h> unconditionally, since we assume C89 now.
68483         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68484         * lib/fts.c: Include fts_.h first, to check interface.
68485         Do not include intprops.h; no longer needed.
68486         Include cycle-check.h and hash.h, since fts_.h no longer does.
68487         Remove unnecessary casts of closedir to void.
68488         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68489         decide whether to decrement nlinks.
68490         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68491         (FTS): Use struct hash_table * instead of Hash_table, so that
68492         we no longer need to include hash.h here.
68493
68494 2005-05-18  Jim Meyering  <jim@meyering.net>
68495
68496         * modules/dirfd (License): Change to LGPL.  Most of the code
68497         is already in the public domain.
68498
68499 2005-05-18  Jim Meyering  <jim@meyering.net>
68500
68501         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68502         Reported by Yoann Vandoorselaere.
68503
68504 2005-05-17  Jim Meyering  <jim@meyering.net>
68505
68506         * m4/fts.m4: New file, from coreutils.
68507
68508 2005-05-17  Jim Meyering  <jim@meyering.net>
68509
68510         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68511
68512 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         Sync from coreutils.
68515         * m4/unlinkdir.m4: New file.
68516
68517 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         Sync from coreutils.
68520         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68521         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68522         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68523         White space changes only.
68524         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68525         special.
68526         * lib/yesno.c: Include getline.h, not ctype.h.
68527         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68528         Use getline to remove arbitrary restriction on response length.
68529
68530 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68531
68532         * config/srclist-update: Spell out "Street" in FSF postal
68533         mail address; this is the style the FSF seems to prefer.
68534
68535         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68536         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68537         this updates FSF postal mail address.
68538
68539         Sync from coreutils.
68540         * modules/unlinkdir: New file.
68541         * modules/yesno (Depends-on): Add getline.
68542         * MODULES.html.sh (File system functions): Add unlinkdir.
68543
68544 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68545
68546         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68547         lib/strsep.h:
68548         Change the initial comment to refer to GPL, not LGPL.
68549         gnulib-tool will change it to LGPL as needed.
68550
68551         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68552         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68553         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68554         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68555         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68556         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68557         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68558         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68559         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68560         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68561         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68562         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68563         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68564         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68565         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68566         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68567         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68568         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68569         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68570         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68571         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68572         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68573         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68574         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68575         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68576         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68577         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68578         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68579         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68580         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68581         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68582         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68583         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68584         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68585         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68586         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68587         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68588         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68589         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68590         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68591         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68592         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68593         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68594         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68595         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68596         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68597         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68598         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68599         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68600         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68601         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68602         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68603         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68604         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68605         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68606         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68607         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68608         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68609         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68610         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68611         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68612         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68613         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68614         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68615         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68616         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68617         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68618         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68619         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68620         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68621         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68622         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68623         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68624         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68625         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68626         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68627         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68628         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68629         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68630         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68631         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68632         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68633         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68634         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68635         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68636         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68637         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68638         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68639         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68640         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68641         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68642         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68643         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68644         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68645         lib/yesno.c, lib/yesno.h:
68646         Update FSF postal mail address.
68647
68648 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68651         tests/test-memmem.c, tests/test-stpncpy.c:
68652         Update FSF postal mail address.
68653
68654 2005-05-13  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68657         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68658         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68659         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68660         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68661         Add support for 64-bit integers in the MSVC compiler.
68662
68663 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68664
68665         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68666
68667 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68668
68669         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68670
68671 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         * doc/getdate.texi (General date syntax): Don't say that date
68674         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68675         Problem reported by Nic Ferrier.
68676
68677 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68678
68679         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68680         specified in ai_socktype. Fix invalid ai_protocol
68681         check. ai_protocol is usually set to 0 or depending on
68682         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68683         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68684         ai_socktype / ai_protocol in the returned addrinfo structure.
68685
68686 2005-05-10  Simon Josefsson  <jas@extundo.com>
68687
68688         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68689         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68690
68691 2005-05-10  Karl Berry  <karl@gnu.org>
68692
68693         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68694         (from http://www.gnu.org/licenses).
68695         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68696         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68697         fdl.texi suffices.
68698
68699 2005-05-10  Karl Berry  <karl@gnu.org>
68700
68701         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68702         (COPYING.DOC): remove.
68703
68704         * config/srclist-update: new FSF address.
68705
68706 2005-05-10  Derek Price  <derek@ximbiot.com>
68707
68708         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68709         possible.
68710
68711 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68712             Bruno Haible  <bruno@clisp.org>
68713
68714         * modules/inet_ntop: New file.
68715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68716         inet_ntop.
68717
68718 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68719             Bruno Haible  <bruno@clisp.org>
68720
68721         * m4/inet_ntop.m4: New file.
68722
68723 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68724             Bruno Haible  <bruno@clisp.org>
68725
68726         * lib/inet_ntop.h: New file.
68727         * lib/inet_ntop.c: New file, from glibc with modifications.
68728
68729 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * modules/time_r (License): Change to LGPL.
68732         * modules/extensions (License): Change to LGPL.  Actually,
68733         the license is more permissive than that, but currently gnulib-tool
68734         doesn't know how to handle more-permissive licenses.
68735
68736         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68737         Problem reported by Dave Love.
68738
68739 2005-05-08  Jim Meyering  <jim@meyering.net>
68740
68741         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68742         blank.
68743
68744 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68745
68746         * modules/argmatch (Depends-on): Add stdbool.
68747         * modules/backupfile (Depends-on): Likewise.
68748         * modules/chdir-long (Depends-on): Likewise.
68749         * modules/closeout (Depends-on): Likewise.
68750         * modules/cycle-check (Depends-on): Likewise.
68751         * modules/dirname (Depends-on): Likewise.
68752         * modules/fnmatch (Depends-on): Likewise.
68753         * modules/fsusage (Depends-on): Likewise.
68754         * modules/fwriteerror (Depends-on): Likewise.
68755         * modules/getcwd (Depends-on): Likewise.
68756         * modules/getloadavg (Depends-on): Likewise.
68757         * modules/hard-locale (Depends-on): Likewise.
68758         * modules/makepath (Depends-on): Likewise.
68759         * modules/mountlist (Depends-on): Likewise.
68760         * modules/nanosleep (Depends-on): Likewise.
68761         * modules/posixtm (Depends-on): Likewise.
68762         * modules/quotearg (Depends-on): Likewise.
68763         * modules/readtokens (Depends-on): Likewise.
68764         * modules/readtokens0 (Depends-on): Likewise.
68765         * modules/readutmp (Depends-on): Likewise.
68766         * modules/save-cwd (Depends-on): Likewise.
68767         * modules/strftime (Depends-on): Likewise.
68768         * modules/userspec (Depends-on): Likewise.
68769         * modules/utimecmp (Depends-on): Likewise.
68770         * modules/xgetcwd (Depends-on): Likewise.
68771         * modules/xnanosleep (Depends-on): Likewise.
68772         * modules/xstrtod (Depends-on): Likewise.
68773         * modules/yesno (Depends-on): Likewise.
68774
68775 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68778         needless checks.
68779
68780 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         Merge from coreutils.  Among other things,
68783         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68784         * lib/fd-safer.c: New file.
68785         * lib/fcntl-safer.h, open-safer.c: Remove.
68786         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68787         * lib/dup-safer.c: Include unistd-safer.h first.
68788         Don't include errno.h.
68789         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68790         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68791         * lib/file-type.c: Rely on file-type.h change.
68792         * lib/getloadavg.c: Include unistd-safer.h.
68793         (getloadavg): Use safer open.
68794         * lib/getusershell.c: Include "stdio-safer.h".
68795         (getusershell): Use safer fopen.
68796         * lib/long-options.c (long_options): Use NULL rather than 0.
68797         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68798         'free'.
68799         * lib/modechange.c: Likewise.
68800         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68801         (MODE_DONE): New constant.
68802         (struct mode_change): Remove 'next' member.
68803         (make_node_op_equals): New function; like the old one of the
68804         same name, except it allocates an array.
68805         (mode_compile, mode_create_from_ref): Use it.
68806         (mode_compile): Allocate result as an array, not a linked list.
68807         Parse octal string ourself, so that we catch mistakes like "+0".
68808         (mode_adjust): Arg is an array, not a linked list.
68809         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68810         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68811         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68812         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68813         Remove.  This is now stat-macros.h's job.
68814         (talloc): Remove.  All callers replaced by xalloc, so that
68815         our invokers don't have to worry about reporting memory failures.
68816         (make_node_op_equals): Remove.
68817         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68818         New constants.
68819         (struct mode_change): Moved here from modechange.h.
68820         (mode_append_entry): Remove.
68821         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68822         apps to have incorrect behavior.  Use simpler algorithm for head
68823         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68824         Detect more invalid usages rather than having somewhat-random behavior.
68825         Don't insert an "a=" action, as that leads to incorrect behavior.
68826         (mode_compile, mode_create_from_ref): Return NULL on error instead
68827         of an enum, since now there's only one way to have an error.  All
68828         callers changed.
68829         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68830         at the correct time.  Simplify calculation of "+u" and its ilk.
68831         Don't mishandle "+X".
68832         (mode_free): Remove "register" and localize decls.
68833         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68834         (struct mode_change): Move to modechange.c; callers don't
68835         need to see this stuff.
68836         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68837         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68838         (mode_change, mode_adjust): Reflect the new signatures noted above.
68839         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68840         that might redefine system include files.
68841         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68842         (my_usleep): Use NULL rather than (void *) 0.
68843         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68844         Use siginterrupt to specify that system calls should be interrupted.
68845         (rpl_nanosleep): Move initialization of suspended closer to call of
68846         my_usleep.
68847         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68848         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68849         (desirable_utmp_entry): New function.
68850         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68851         using x2nrealloc, to simplify logic.
68852         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68853         size calculation.  Do not assume utmp file is a regular file.
68854         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68855         (READ_UTMP_CHECK_PIDS): New constant.
68856         * lib/save-cwd.c: Include unistd-safer.h.
68857         (save_cwd): Use fd_safer.
68858         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68859         [!_LIBC] Include "stat-macros.h" instead.
68860         * lib/unistd-safer.h (fd_safer): New decl.
68861
68862 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         * modules/getloadavg (Depends-on): Add unistd-safer.
68865         * modules/getusershell (Depends-on): Add stdio-safer.
68866         * modules/lstat (Depends-on): Remove xalloc.
68867         * modules/mkstemp (Depends-on): Add stat-macros.
68868         * modules/modechange (Depends-on): Remove xstrtol.
68869         Add stat-macros, xalloc.
68870         * modules/save-cwd (Depends-on): Add unistd-safer.
68871         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68872         * modules/unistd-safer (Files): Add lib/fd-safer.c
68873         (Makefile.am): Remove lib_SOURCES.
68874
68875         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68876         Remove fcntl-safer; unistd-safer supersedes it.
68877
68878 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68879
68880         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68881         AC_HEADER_STAT.
68882         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68883         (gl_PREREQ_CHOWN): Remove.
68884         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68885         it.  Don't require AC_HEADER_STAT.
68886         (gl_PREREQ_LSTAT): Remove.
68887         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68888         Don't require AC_HEADER_STAT.
68889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68890         (gl_PREREQ_RMDIR): Remove.
68891         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68892         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68893         the stat-macros module a prerequisite.
68894         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68895         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68896         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68897         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68898         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68899         variable names.
68900         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68901         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68902         variable prefixes.
68903         * m4/fcntl-safer.m4: Remove.
68904         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68905         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68906         Invoke gl_PREREQ_FD_SAFER.
68907         (gl_PREREQ_FD_SAFER): New macro.
68908         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68909         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68910         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68911         Remove duplicate call to AC_LIBOBJ(readutmp).
68912         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68913
68914         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68915         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68916
68917 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * MODULES.html.sh (Misc): Add byteswap.
68920
68921 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68922
68923         * modules/getcwd (Depends-on): Add extensions.
68924         * modules/openat (Depends-on): Likewise.
68925
68926 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68927
68928         * modules/byteswap: New file.
68929
68930 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68931
68932         * m4/byteswap.m4: New file.
68933
68934 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68935
68936         * lib/byteswap_.h: New file.
68937
68938 2005-04-25  Karl Berry  <karl@gnu.org>
68939
68940         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68941
68942 2005-04-25  Albert Chin  <china@thewrittenword.com>
68943
68944         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68945         Toolkit C bug.
68946
68947 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68948
68949         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68950         (func_ln_if_changed): Remove forcibly for no error message
68951         in case file does not exist.
68952
68953 2005-04-19  Simon Josefsson  <jas@extundo.com>
68954
68955         * gnulib-tool (Options): Make --symlink mean --symbolic.
68956
68957 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68958
68959         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68960
68961 2005-04-16  Simon Josefsson  <jas@extundo.com>
68962
68963         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68964
68965 2005-04-15  Simon Josefsson  <jas@extundo.com>
68966
68967         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68968
68969 2005-04-15  Simon Josefsson  <jas@extundo.com>
68970
68971         * gnulib-tool: Rename --symlink to --symbolic.
68972
68973 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68974
68975         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68976         symbolic links to files instead of copying/moving.  Add --aux-dir,
68977         specifying directory relative --dir where auxiliary build tools
68978         are placed.
68979
68980 2005-04-14  Bruno Haible  <bruno@clisp.org>
68981
68982         * modules/allocsa (License): Change to LGPL.
68983         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68984
68985 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68986
68987         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68988         that "UTC +1 second" continues to work.  Problem reported
68989         by Dmitry V. Levin.
68990         (relunit_snumber): New rule.
68991         (relunit): Use it.
68992
68993 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68994
68995         * lib/getdate.y (universal_time_zone_table): New constant.
68996         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68997         universal_time_zone_table.
68998         (lookup_zone): Prefer universal_time_zone_table to
68999         local_time_zone_table, so that "GMT" time stamps are allowed in
69000         London during the summer.  Problem reported by Ian Abbott.
69001
69002 2005-04-12  Jim Meyering  <jim@meyering.net>
69003
69004         * lib/human.c (humblock): Set *options even when returning due to
69005         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69006         warning from gcc-4.
69007
69008 2005-04-09  Jim Meyering  <jim@meyering.net>
69009
69010         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69011         -Wuninitialized: initialize tm0.tm_year.
69012
69013 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69016         count, since there's no maximum.  All uses changed.
69017         Add member dsts_seen.
69018         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69019         not being INT_MAX.
69020         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69021         Use pc_rels_seen to decide whther a date is absolute.
69022
69023         * lib/getdate.y (number): Don't overwrite year.
69024         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69025         check.
69026
69027 2005-04-02  Simon Josefsson  <jas@extundo.com>
69028
69029         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69030         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69031
69032 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69033
69034         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69035         where no absolute path name can be longer than PATH_MAX.
69036
69037 2005-03-27  Jim Meyering  <jim@meyering.net>
69038
69039         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69040
69041 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69044         "one's complement" -> "ones' complement" in comment, as per Knuth.
69045         "value of type" -> "type or expression" in comment.
69046         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69047
69048 2005-03-26  Jim Meyering  <jim@meyering.net>
69049
69050         Comment nits.
69051         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69052         Correct typos: s/or/of/.
69053
69054 2005-03-26  Jim Meyering  <jim@meyering.net>
69055
69056         * modules/check-include-files: Move to ../ and rename to...
69057         * check-module: ...this.
69058
69059 2005-03-25  Jim Meyering  <jim@meyering.net>
69060
69061         * modules/xvasprintf (Files): Add xalloc.h.
69062
69063 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         * modules/gettext (Files): config/config.rpath ->
69066         build-aux/config.rpath
69067         * modules/iconv (Files): Likewise.
69068         Problem reported by Oskar Liljeblad.
69069
69070 2005-03-23  Jim Meyering  <jim@meyering.net>
69071
69072         * modules/check-include-files: New script to check for
69073         missing dependencies, multiple includes, etc.
69074
69075         * modules/c-strtold (Depends-on): Add xalloc.
69076         * modules/c-strtod (Depends-on): Add xalloc.
69077         * modules/hash (Depends-on): Add xalloc.
69078         (Files): Remove lib/xalloc.h.
69079
69080         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69081         * modules/userspec (Files): Add lib/inttostr.h.
69082
69083 2005-03-23  Jim Meyering  <jim@meyering.net>
69084
69085         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69086
69087 2005-03-22  Jim Meyering  <jim@meyering.net>
69088
69089         * modules/stat-macros: New module.
69090         * modules/canonicalize, modules/euidaccess, modules/file-type,
69091         * modules/filemode, modules/lchown, modules/makepath,
69092         * modules/rmdir, modules/stat: Depend on new stat-macros module
69093         rather than listing lib/stat-macros.h manually.
69094         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69095
69096 2005-03-22  Jim Meyering  <jim@meyering.net>
69097
69098         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69099
69100 2005-03-22  Bruno Haible  <bruno@clisp.org>
69101
69102         * config/srclist.txt: Replace target directory 'config' with
69103         'build-aux'.
69104         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69105         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69106         ../build-aux/.
69107
69108 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * modules/chdir-long (Depends-on): Add mempcpy.
69111
69112         * modules/acl, modules/backupfile, modules/c-strtod,
69113         modules/c-strtold, modules/canon-host, modules/canonicalize,
69114         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69115         modules/exclude, modules/exitfail, modules/file-type,
69116         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69117         modules/getdate, modules/getline, modules/getpagesize,
69118         modules/getpass, modules/getugroups, modules/group-member,
69119         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69120         modules/inttostr, modules/long-options, modules/makepath,
69121         modules/md5, modules/memcasecmp, modules/memcoll,
69122         modules/modechange, modules/mountlist, modules/path-concat,
69123         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69124         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69125         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69126         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69127         modules/strftime, modules/strndup, modules/strverscmp,
69128         modules/timespec, modules/unlocked-io, modules/userspec,
69129         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69130         modules/yesno:
69131         Remove lib_SOURCES line from Makefile.am section, as this is now
69132         done automatically by the corresponding Autoconf macro.
69133
69134 2005-03-21  Jim Meyering  <jim@meyering.net>
69135
69136         Changes imported from coreutils.
69137
69138         * lib/cycle-check.c: Don't include xalloc.h.
69139
69140         * lib/path-concat.c: Don't include assert.h.
69141         (path_concat): Remove assertion that would have triggered
69142         for ABASE starting with more than one slash.
69143         Reported by Andreas Schwab.
69144
69145         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69146         properly when ABASE is an absolute file name.
69147         Correct the description of this function.
69148         Include <assert.h>.
69149         Add an assertion and a test driver.
69150         This fixes a bug introduced on 2004-07-02.
69151         Andreas Schwab reported the resulting failure of cp --parents:
69152         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69153
69154 2005-03-21  Jim Meyering  <jim@meyering.net>
69155
69156         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69157         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69158
69159 2005-03-21  Jim Meyering  <jim@meyering.net>
69160         and  Paul Eggert  <eggert@cs.ucla.edu>
69161
69162         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69163         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69164         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69165         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69166         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69167         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69168         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69169         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69170         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69171         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69172         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69173         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69174         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69175         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69176         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69177         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69178         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69179         for these modules.
69180
69181 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69184         (which shouldn't happen), generate nothing instead of returning 0
69185         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69186
69187 2005-03-16  Bruno Haible  <bruno@clisp.org>
69188
69189         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69190         HAVE_LONGLONG_64BIT.
69191
69192 2005-03-16  Bruno Haible  <bruno@clisp.org>
69193
69194         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69195         HAVE_LONGLONG_64BIT.
69196
69197 2005-03-16  Bruno Haible  <bruno@clisp.org>
69198
69199         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69200         HAVE_LONGLONG_64BIT.
69201
69202 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69205         reliably distinguish strftime failure from empty output on POSIX
69206         hosts.
69207
69208 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69211         (iconv_string): Don't guess a size-zero buffer, as that might cause
69212         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69213         result would be 'too large', where 'too large' is (heuristically)
69214         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69215         overflow concerns.  This will prevent some unwanted malloc failures
69216         when the inputs are very large.
69217
69218 2005-03-15  Karl Berry  <karl@gnu.org>
69219
69220         * config/srclist.txt (config.rpath): from gettext.
69221         * config/config.rpath: update.
69222
69223 2005-03-15  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69226         to 'negate'.
69227
69228         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69229         variable.
69230
69231         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69232         results.
69233
69234 2005-03-14  Simon Josefsson  <jas@extundo.com>
69235
69236         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69237         <fx@gnu.org>.
69238
69239 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69240
69241         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69242         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69243         intprops.h.
69244         * lib/strtol.c: Likewise.
69245
69246 2005-03-14  Jim Meyering  <jim@meyering.net>
69247
69248         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69249         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69250         to be nonzero so that we (and caller) can detect the difference
69251         between a valid zero-length expansion and an error return, even
69252         when the underlying strftime fails before writing anything into
69253         that location.
69254
69255 2005-03-14  Bruno Haible  <bruno@clisp.org>
69256
69257         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69258         Update from GNU gettext 0.14.3.
69259
69260 2005-03-10  Jim Meyering  <jim@meyering.net>
69261
69262         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69263
69264 2005-03-10  Jim Meyering  <jim@meyering.net>
69265
69266         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69267         so that this module works on systems without fchdir.
69268
69269 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69270
69271         Factor int-properties macros into a single file, except for
69272         glibc-related files.
69273         * lib/intprops.h: New file.
69274         * lib/getloadavg.c: Include it instead of limits.h.
69275         (INT_STRLEN_BOUND): Remove.
69276         * lib/human.c: Include intprops.h.
69277         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69278         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69279         302/1000.
69280         * lib/inttostr.h: Include intprops.h instead of limits.h.
69281         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69282         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69283         for consistency with intprops.h.
69284         (time_t_is_integer, twos_complement_arithmetic): Use them.
69285         * lib/sig2str.h: Include <signal.h>, intprops.h.
69286         (INT_STRLEN_BOUND): Remove.
69287         * lib/strftime.c (TYPE_SIGNED): Remove.
69288         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69289         * lib/strtol.c: Adjust comments to match intprops.h.
69290         * lib/userspec.c: Include intprops.h.
69291         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69292         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69293         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69294         instead of rolling our own expressions.
69295         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69296
69297         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69298         instead of int.
69299         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69300         the right thing even if adding 1900 would overflow.  Similarly
69301         for tm_mon + 1 and tm_yday + 1.
69302         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69303         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69304         (DO_SIGNED_NUMBER): New macro.
69305         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69306
69307 2005-03-07  Bruno Haible  <bruno@clisp.org>
69308
69309         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69310
69311 2005-03-07  Bruno Haible  <bruno@clisp.org>
69312
69313         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69314
69315 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69316
69317         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69318         (func_import): Only replace files via --import when they have actually
69319         changed.
69320
69321 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69322
69323         * m4/mmap-anon.m4: New file.
69324         * m4/pagealign_alloc.m4: New file.
69325
69326 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69327             Bruno Haible  <bruno@clisp.org>
69328
69329         * modules/pagealign_alloc: New file.
69330         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69331
69332 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69333             Bruno Haible  <bruno@clisp.org>
69334
69335         * lib/pagealign_alloc.h: New file.
69336         * lib/pagealign_alloc.c: New file.
69337
69338 2005-03-03  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69341         Use an all-permissive copyright notice, recommended by RMS.
69342
69343 2005-03-02  Bruno Haible  <bruno@clisp.org>
69344
69345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69346         of AIX, the replacement has to be done only after <string.h> is
69347         included, therefore not in config.h. stpncpy.h does the replacement,
69348         and stpncpy.c uses it.
69349
69350 2005-03-02  Bruno Haible  <bruno@clisp.org>
69351
69352         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69353         stpncpy.c uses it.
69354
69355 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69358         The workaround isn't strictly needed for POSIX conformance, and
69359         it's too much of a pain to configure and maintain.  We'll ask
69360         people to fix their kernels instead.
69361         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69362         (NANOSLEEP_BUG_WORKAROUND): Remove.
69363         (xnanosleep): Remove the workaround.
69364
69365 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69368         Reported by Derek Price.
69369         (Include): Add "timespec.h".
69370
69371         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69372
69373 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69376         to detect nanosleep bug.
69377
69378 2005-03-01  Bruno Haible  <bruno@clisp.org>
69379
69380         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69381
69382 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69383
69384         * modules/gethrxtime: New file.
69385         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69386         (Depends-on): Add gethrxtime.
69387         (configure.ac): Add gl_XNANOSLEEP.
69388         (Makefile.am): Remove lib_SOURCES line.
69389
69390 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69393         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69394
69395 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69398         * lib/timespec.h (gettime): Return void, since it always
69399         succeeds now.  All uses changed.
69400         * lib/gettime.c (gettime): Likewise.
69401         [HAVE_NANOTIME]: Prefer nanotime.
69402         Assume gettimeofday succeeds, as POSIX requires.
69403         Assime time () succeeds, since other code already does.
69404         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69405         (timespec_subtract): Remove.
69406         (NANOSLEEP_BUG_WORKAROUND): New constant.
69407         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69408         things considerably.  Use it only on GNU/Linux hosts, since the
69409         workaround shouldn't be needed elsewhere.
69410
69411 2005-02-24  Bruno Haible  <bruno@clisp.org>
69412
69413         * modules/gettext (Files): Add m4/glibc2.m4.
69414
69415 2005-02-24  Bruno Haible  <bruno@clisp.org>
69416
69417         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69418         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69419         * m4/progtest.m4:
69420         Update from GNU gettext 0.14.2.
69421         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69422
69423 2005-02-24  Bruno Haible  <bruno@clisp.org>
69424
69425         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69426         * lib/config.charset: Update from GNU gettext 0.14.2.
69427
69428 2005-02-24  Bruno Haible  <bruno@clisp.org>
69429
69430         * lib/gettext.h: Update from GNU gettext 0.14.2.
69431
69432 2005-02-23  Simon Josefsson  <jas@extundo.com>
69433
69434         * m4/iconvme.m4: New file.
69435
69436 2005-02-23  Jim Meyering  <jim@meyering.net>
69437
69438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69439         change.
69440         Thanks to Bruno Haible for catching it.
69441
69442 2005-02-22  Simon Josefsson  <jas@extundo.com>
69443
69444         * modules/iconvme: New file.
69445
69446         * MODULES.html.sh: Add iconvme.
69447
69448 2005-02-22  Simon Josefsson  <jas@extundo.com>
69449
69450         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69451
69452 2005-02-22  Simon Josefsson  <jas@extundo.com>
69453
69454         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69455
69456 2005-02-22  Jim Meyering  <jim@meyering.net>
69457
69458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69459         s/ifndef/ifdef/.
69460
69461 2005-02-20  Neil Conway  <neilc@samurai.com>
69462
69463         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69464         returned by OSX/Darwin if the specified buffer is not large
69465         enough for the hostname.
69466
69467 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69468
69469         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69470         pass it to _help, otherwise the latter coredumps trying to
69471         dereference state.root_argp.
69472
69473 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         * modules/chdir-long (Depends-on): Add memrchr.
69476         * modules/memrchr (Files): Add lib/memrchr.h.
69477         (Include): "memrchr.h".
69478
69479 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69482
69483 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         * lib/memrchr.h: New file.
69486         * lib/chdir-long.c: Include it.
69487         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69488         Don't bother including stddef.h.
69489
69490 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69493         inclusion.
69494         Include <sys/types.h>, for dev_t.
69495         (ME_DUMMY, ME_REMOTE): Move from here....
69496         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69497         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69498         Dmitry V. Levin.
69499         Include mountlist.h first, to test the interface.
69500
69501 2005-01-29  Bruno Haible  <bruno@clisp.org>
69502
69503         * lib/progname.c (program_name): Initialize.
69504         Needed when linking statically on MacOS X.
69505
69506 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         Sync from coreutils.
69509         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69510         (Depends-on): Add c-strtod.
69511         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69512
69513 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         Sync from coreutils.
69516         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69517
69518         Remove files that are specific to coreutils.
69519         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69520
69521 2005-01-28  Bruno Haible  <bruno@clisp.org>
69522
69523         * modules/javacomp: New file.
69524         * MODULES.html.sh (Java): Add javacomp.
69525
69526 2005-01-28  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/javacomp.m4: New file, from GNU gettext.
69529
69530 2005-01-28  Bruno Haible  <bruno@clisp.org>
69531
69532         * lib/javacomp.sh.in: New file, from GNU gettext.
69533         * lib/javacomp.h: New file, from GNU gettext.
69534         * lib/javacomp.c: New file, from GNU gettext.
69535
69536 2005-01-26  Simon Josefsson  <jas@extundo.com>
69537
69538         * lib/gai_strerror.c: Use GPL in header.
69539
69540 2005-01-26  Bruno Haible  <bruno@clisp.org>
69541
69542         * modules/javaexec: New file.
69543         * MODULES.html.sh (Java): Add javaexec.
69544
69545 2005-01-26  Bruno Haible  <bruno@clisp.org>
69546
69547         * m4/javaexec.m4: New file, from GNU gettext.
69548
69549 2005-01-26  Bruno Haible  <bruno@clisp.org>
69550
69551         * lib/javaexec.sh.in: New file, from GNU gettext.
69552         * lib/javaexec.h: New file, from GNU gettext.
69553         * lib/javaexec.c: New file, from GNU gettext.
69554
69555 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69556
69557         * modules/lchown (Depends-on): Remove lchown.h
69558
69559 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69560
69561         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69562         must be defined if the header file was not found, in order
69563         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69564
69565 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69566
69567         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69568         initializers for struct pentry_state.
69569         (__argp_error): Check return value of __asprintf
69570         (__argp_failure): Translate error message
69571
69572         * lib/argp-parse.c: Removed braces around the expansion of N_()
69573
69574 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69575
69576         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69577         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69578         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69579         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69580         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69581         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69582         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69583         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69584         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69585         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69586         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69587         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69588         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69589         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69590         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69591         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69592         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69593         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69594         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69595         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69596         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69597         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69598         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69599         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69600         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69601         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69602         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69603         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69604         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69605         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69606         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69607         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69608         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69609         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69610         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69611         Use an all-permissive copyright notice, recommended by RMS.
69612
69613 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69614
69615         * modules/chdir-long (Depends-on): Remove mempcpy.
69616
69617 2005-01-21  Jim Meyering  <jim@meyering.net>
69618
69619         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69620         same value as for Solaris 9.
69621
69622         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69623         component length.  This included changing the parameter to be
69624         of type `char *' rather than `char const *'.
69625         * lib/chdir-long.h (chdir_long): Update prototype.
69626
69627         * lib/openat.c (fdopendir, fstatat): New functions.
69628         * lib/openat.h: Include headers required for use of DIR and struct
69629         stat.
69630         [AT_SYMLINK_NOFOLLOW]: Define.
69631         (fdopendir, fstatat): Add prototypes.
69632
69633 2005-01-21  Bruno Haible  <bruno@clisp.org>
69634
69635         * modules/classpath: New file.
69636         * MODULES.html.sh (Java): Add classpath.
69637
69638 2005-01-21  Bruno Haible  <bruno@clisp.org>
69639
69640         * lib/classpath.h: New file, from GNU gettext.
69641         * lib/classpath.c: New file, from GNU gettext.
69642
69643 2005-01-20  Simon Josefsson  <jas@extundo.com>
69644
69645         * modules/version-etc-fsf: New file.
69646
69647 2005-01-20  Simon Josefsson  <jas@extundo.com>
69648
69649         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69650         * lib/version-etc.c: Remove version_etc_copyright.
69651         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69652         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69653
69654 2005-01-20  Simon Josefsson  <jas@extundo.com>
69655
69656         * lib/base64.h (isbase64): Add.
69657
69658         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69659         using a unsigned prototype, don't inline.
69660         (base64_decode): Use it.
69661
69662 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69663
69664         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69665         it.
69666
69667 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69668
69669         * lib/save-cwd.c (save_cwd): Remove code to support the case
69670         where fchdir is missing or flaky.
69671
69672 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69675
69676 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69677
69678         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69679         AC_LIBSOURCES now does this.
69680         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69681         with new ullong_max module.
69682
69683 2005-01-19  Bruno Haible  <bruno@clisp.org>
69684
69685         * modules/sh-quote: New file.
69686         * MODULES.html.sh (Executing programs): Add sh-quote.
69687
69688 2005-01-19  Bruno Haible  <bruno@clisp.org>
69689
69690         * lib/sh-quote.h: New file, from GNU gettext.
69691         * lib/sh-quote.c: New file, from GNU gettext.
69692
69693 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         Merge from coreutils.
69696         * m4/ullong_max.m4: New file.
69697         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69698         (gl_MACROS): Assume localeconv exists.
69699
69700 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69701
69702         Merge changes from coreutils, as described below in several
69703         changelogs dated today.
69704
69705         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69706         (O_DIRECTORY): Remove; not needed here, since "." must be
69707         a directory.  All uses removed.
69708         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69709         universal on Suns, and we also need to test for IRIX.
69710         Revamp code to use 'if' rather than '#if'.
69711         Avoid unnecessary comparison of cwd->desc to 0.
69712
69713         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69714         for known valid error numbers rather than observed invalid ones.
69715
69716 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * modules/ullong_max: New file.
69719
69720         * modules/chdir-long, modules/openat: New files.
69721         * modules/save-cwd (Depends-on): Depend on chdir-long.
69722         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69723
69724 2005-01-18  Jim Meyering  <jim@meyering.net>
69725
69726         Merge from coreutils.
69727         * m4/chdir-long.m4, m4/openat.m4: New files.
69728         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69729         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69730         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69731         is sane and DOES follow symlinks.  Besides, testing 20 different
69732         systems found no broken chown implementations.
69733         Prompted by a change in rsync's copy of this macro.
69734         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69735
69736         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69737
69738         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69739         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69740         NULL-means-set-to-current-time semantics.
69741         Remove temporary file immediately, rather than waiting
69742         for configure's at-exit trap code to do it.
69743
69744 2005-01-18  Jim Meyering  <jim@meyering.net>
69745
69746         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69747
69748         * lib/utimens.c (futimens): Account for the fact that futimes
69749         can also fail with errno == ENOSYS or errno == ENOENT.
69750         Patch from Dmitry V. Levin.
69751
69752         Change the name of the robust chdir function from chdir to chdir_long.
69753         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69754         (restore_cwd): Use chdir_long, not chdir.
69755         * lib/chdir-long.c: Renamed from chdir.c.
69756         * lib/chdir-long.h: Renamed from chdir.h.
69757         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69758         Hurd.
69759
69760 2005-01-18  Bruno Haible  <bruno@clisp.org>
69761
69762         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69763         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69764         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69765         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69766         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69767         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69768         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69769         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69770         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69771         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69772         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69773         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69774         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69775         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69776         Use an all-permissive copyright notice, recommended by RMS.
69777
69778 2005-01-18  Bob Proulx  <bob@proulx.com>
69779
69780         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69781         simplify offsetof() macro construct to avoid compile failure with
69782         native HP-UX 11.0 ANSI C compiler.
69783
69784 2005-01-17  Bruno Haible  <bruno@clisp.org>
69785
69786         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69787         redundant because stpncpy.m4 takes care of it.
69788
69789 2005-01-17  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69792
69793 2005-01-17  Bruno Haible  <bruno@clisp.org>
69794
69795         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69796         used.
69797
69798 2005-01-17  Bruno Haible  <bruno@clisp.org>
69799
69800         * lib/fwriteerror.h (fwriteerror): Change specification to include
69801         fclose.
69802         * lib/fwriteerror.c: Include <stdbool.h>.
69803         (fwriteerror): At the end, close the file stream. Record whether
69804         stdout was already closed.
69805
69806 2005-01-17  Bruno Haible  <bruno@clisp.org>
69807
69808         * lib/execute.c (environ): Declare if needed.
69809         * lib/pipe.c (environ): Likewise.
69810         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69811
69812 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69813
69814         * modules/argp: Depend on vsnprintf
69815
69816 2005-01-10  Jim Meyering  <jim@meyering.net>
69817
69818         * modules/closeout (Depends-on): Add atexit.
69819
69820 2005-01-06  Bruno Haible  <bruno@clisp.org>
69821
69822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69823
69824 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69827         definitions to be after all include files, to avoid collisions.
69828         Problem reported by Bob Proulx.
69829
69830 2005-01-04  Jim Meyering  <jim@meyering.net>
69831
69832         Changes imported from coreutils.
69833         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69834         as the mkstemp template, use a temporary directory and an
69835         8.3-friendly template to avoid trouble on systems like DJGPP.
69836         Reported by Juan M. Guerrero via Stepan Kasal.
69837         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69838         close. Remove the temporary directory right away, rather than waiting
69839         for configure's at-exit trap code to do it.
69840         Suggestion from Stepan Kasal.
69841
69842 2005-01-01  Simon Josefsson  <jas@extundo.com>
69843
69844         * gnulib-tool: Print #include directives when --import'ing.
69845
69846 2004-12-28  Simon Josefsson  <jas@extundo.com>
69847
69848         * tests/test-base64.c: Include required header files.  Remove
69849         unused variables.
69850
69851 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69852
69853         * modules/error (Depends-on): Remove gettext.
69854
69855 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69858         not needed.  This removes a dependency on the gettext module.
69859         [defined _LIBC]: Do not include <libintl.h>; not needed.
69860
69861 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69864         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69865
69866 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69869         HAVE_DECL_STRTOLD.
69870
69871 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * modules/getdate (Depends-on): Remove alloca-opt.
69874
69875 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69876
69877         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69878
69879 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69880
69881         * lib/argp-parse.c: Include <stddef.h>.
69882         (alignof, alignto): New macros.
69883         (parser_init): Don't assume that void * is aligned sufficiently
69884         for struct option.
69885
69886         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69887         need to extend the stack.
69888         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69889         large.
69890
69891 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69892
69893         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69894
69895 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69898         (2004-10-24) change.  Apparently this was a false alarm.
69899
69900         * modules/getdate: Depend on alloca-opt, not alloca.
69901
69902 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69905         Remove now-obsolete comment about AIX.
69906         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69907         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69908         (YYMAXDEPTH): New macro.
69909
69910 2004-12-18  Simon Josefsson  <jas@extundo.com>
69911
69912         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69913
69914 2004-12-18  Bruno Haible  <bruno@clisp.org>
69915
69916         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69917
69918 2004-12-18  Bruno Haible  <bruno@clisp.org>
69919
69920         * lib/fatal-signal.c (fatal_signals): Make non-const.
69921         (init_fatal_signals): New function.
69922         (uninstall_handlers, install_handlers): Ignore signals that were set to
69923         SIG_IGN.
69924         (at_fatal_signal): Call init_fatal_signals.
69925         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69926         SIG_IGN.
69927         Reported by Paul Eggert.
69928
69929 2004-12-18  Bruno Haible  <bruno@clisp.org>
69930
69931         * doc/alloca.texi: New file.
69932         * doc/alloca-opt.texi: New file.
69933
69934 2004-12-17  Jim Meyering  <jim@meyering.net>
69935
69936         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69937         Otherwise, install-sh could exit with improper exit status when
69938         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69939
69940 2004-12-16  Simon Josefsson  <jas@extundo.com>
69941
69942         * tests/test-base64.c: Add license.
69943
69944 2004-12-15  Stepan Kasal  <address@hidden>
69945
69946         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69947
69948 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * modules/getcwd (Files): Add m4/d-ino.m4.
69951         Suggested by Mark D. Baushke.
69952
69953 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69954
69955         * lib/getdate.y (textint): New member "negative".
69956         (time_zone_hhmm): New function.
69957         Expect 14 shift-reduce conflicts, not 13.
69958         (o_colon_minutes): New rule.
69959         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69960         (yylex): Set the "negative" member of signed numbers.
69961
69962 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * doc/getdate.texi (Time of day items, Time zone items):
69965         Describe new formats +00:00, UTC+00:00.
69966
69967 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69970         spurious "-l"s.  Problem reported by Stepan Kasal.
69971
69972 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69973
69974         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69975         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69976
69977 2004-12-04  Simon Josefsson  <jas@extundo.com>
69978
69979         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69980         Vandoorselaere <yoann@prelude-ids.org>.
69981
69982 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         Changes imported from coreutils.
69985         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69986         exist.
69987         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69988
69989 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         Changes imported from coreutils.
69992         * lib/hard-locale.c: Assume <locale.h> exists.
69993         Include "strdup.h".
69994         (GLIBC_VERSION): New macro.
69995         (hard_locale): Assume setlocale exists.
69996         Rewrite to avoid #ifdef.
69997         Use strdup rather than malloc + strcpy.
69998         * lib/human.c: Assume <locale.h> exists.
69999         (human_readable): Assume localeconv exists.
70000
70001 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70002
70003         * modules/hard-locale (Depends-on): Add strdup.
70004
70005 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70006
70007         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70008         convert T2, not T.  (Imported from libc.)
70009
70010 2004-11-30  Simon Josefsson  <jas@extundo.com>
70011
70012         * modules/restrict (License): Change to LGPL.
70013
70014 2004-11-30  Simon Josefsson  <jas@extundo.com>
70015
70016         * m4/restrict.m4: Add copyright and copying conditions.
70017
70018 2004-11-30  Simon Josefsson  <jas@extundo.com>
70019
70020         * m4/base64.m4: New file.
70021
70022 2004-11-30  Simon Josefsson  <jas@extundo.com>
70023
70024         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70025         base64.
70026
70027         * tests/test-base64.c: New file.
70028
70029         * modules/base64: New file.
70030
70031 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70034         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70035
70036         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70037
70038 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70041         (__getcwd.c): Don't restore errno; glibc doesn't.
70042         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70043         first, falling back to our code only if its results look suspicious.
70044         Ensure that the resulting buffer is only as large as necessary.
70045
70046         * lib/readutmp.c: Include readutmp.h first.
70047         Include <errno.h>, since readutmp.h no longer does that.
70048         * lib/readutmp.h: Don't include <errno.h>,
70049         <sys/param.h>, <time.h>; not needed to establish interface.
70050         (errno): Remove decl.
70051         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70052         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70053         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70054
70055 2004-11-28  Simon Josefsson  <jas@extundo.com>
70056
70057         * lib/base64.h, base64.c: New file.
70058
70059 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70062
70063 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70066         (Depends-on): Remove pathmax, same.  Add mempcpy.
70067         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70068         (Makefile.am): Append getcwd.h to lib_SOURCES.
70069         (Include): Add getcwd.h.
70070         (Maintainer): Change from Jim Meyering to "all, glibc",
70071         since getdate now uses intended-for-glibc code.
70072         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70073         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70074
70075 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70078         HP's ANSI C compiler.
70079         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70080         Declaring int functions causes warnings on some modern systems and
70081         shouldn't be needed to compile on ancient ones.
70082         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70083         defined.
70084
70085         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70086         with the following changes.
70087         (__set_errno): Parenthesize properly.
70088         Include <stdbool.h>.
70089         (MIN, MAX, MATCHING_INO): New macros.
70090         (__getcwd): Define with prototype, not K&R form.
70091         Use heuristics to allocate default buffer on stack if possible.
70092         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70093         behavior, and to avoid the PATH_MAX limit when computing
70094         ../../../../...
70095         Use MATCHING_INO to compare inode number to file.
70096         Check for arithmetic overflow in size calculations.
70097         Fix bug in reallocation of dot array that caused getcwd to fail
70098         on directories nested deeper than 75.
70099         Be more careful about saving errno on error.
70100         Do not use realloc; use only free+malloc, as this is a bit
70101         more flexible and avoids a needless copy operation.
70102         Do not inspect st_dev and st_ino for symbolic links; POSIX
70103         doesn't specify the latter.
70104         Check for closedir errors.
70105         Avoid needless casts.
70106         Use "#ifdef weak_alias" around weak_alias, to be like other
70107         glibc code.
70108         The following changes to getcwd.c have effect only when used in
70109         gnulib; they have no effect inside glibc proper.
70110         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70111         as alloca isn't used.
70112         (alloca, __alloca): Likewise.
70113         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70114         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70115         unconditionally, as gnulib assumes C89 or better.
70116         Do not include <sys/param.h>.
70117         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70118         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70119         better.
70120         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70121         Include <dirent.h> in a way that is compatible with modern Autoconf.
70122         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70123         New macros, if not already defined.
70124         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70125         Use "_LIBC", not "defined _LIBC", for consistency.
70126         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70127         a mempcpy module.
70128         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70129         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70130         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70131         credit only to Jim Meyering and adjust the copyright dates.
70132         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70133         <stdlib.h>, <unistd.h>, "pathmax.h".
70134         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70135         (INITIAL_BUFFER_SIZE): Remove.
70136         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70137
70138 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70141         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70142         Use the _ONCE methods, for efficiency.
70143         Check for fcntl.h.  In test program, include <errno.h>
70144         and <fcntl.h> if available.  Remove old K&R cruft from
70145         test program.  Check for common errors in GNU/Linux,
70146         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70147         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70148         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70149         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70150         name accordingly.
70151         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70152         accommodate new getcwd.c.
70153         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70154         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70155         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70156         that's all we need now.
70157
70158 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70159
70160         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70161         argp-parse.c depends on getopt internals, that means we should
70162         always use our getopt, to be on the safe side.
70163         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70164         order not to spoil the result of an eventual previous invocation
70165         of gl_GETOPT_SUBSTITUTE.
70166
70167 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70168
70169         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70170         redefinition warnings. To avoid them, include the defines
70171         in `#if !defined __need_getopt ... #endif'. The only place
70172         where __getopt_argv_const is used is in definitions
70173         of getopt_long and getopt_long_only below, which are as well
70174         protected by `#ifndef __need_getopt'.
70175         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70176         __need_getopt after including <stdio.h> and <unistd.h> These
70177         headers might have defined it.
70178
70179 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70180
70181         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70182
70183 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70186         (futimens): New function, which uses futimes if available.
70187         (futimens, utimens): Support timespec==NULL, with same semantics
70188         as utime and utimens.
70189         * lib/utimens.h (futimens): New decl.
70190
70191 2004-11-23  Jim Meyering  <jim@meyering.net>
70192
70193         * lib/getopt_.h: Remove trailing blanks.
70194
70195 2004-11-23  Jim Meyering  <jim@meyering.net>
70196
70197         * lib/__fpending.c: Add comment.
70198
70199 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70200
70201         * modules/canonicalize (Depends-on): Add xreadlink.
70202         Problem reported by James Youngman.
70203
70204 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70207         New macros.
70208         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70209         optopt): Use them instead of invoking ## directly; otherwise, the
70210         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70211
70212 2004-11-19  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/strtok_r.c: Move comments from here...
70215         * lib/strtok_r.h: ... to here.
70216
70217 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70218
70219         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70220         implementations that mishandle size_t overflow.
70221
70222 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70225         might fail.  Problem reported by Yoann Vandoorselaere.
70226         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70227         implementations that mishandle size_t overflow.
70228
70229 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * modules/canon-host (Depends-on): Add strdup.
70232
70233 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70236
70237 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * lib/canon-host.c: Include "strdup.h".
70240         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70241         Use strdup instead of malloc/strcpy to duplicate strings.
70242
70243         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70244         (human_space_before_unit): New constant.
70245         * lib/human.c (human_readable): Support it.
70246
70247         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70248         (xgetcwd): Set errno correctly when failing.
70249         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70250         the failure is actually due to a PATH_MAX problem.
70251
70252         Further getopt changes to make it more likely that glibc will
70253         buy the changes back.
70254         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70255         (getopt): Use it, so to preserve glibc semantic
70256         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70257         when compiling for libc.
70258         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70259         (getopt_long, getopt_long_only): Use it.
70260
70261         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70262         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70263         (getopt): Argv is now char * const *, as per standard.
70264         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70265         not char *__getopt_argv_const *.
70266         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70267         _getopt_long_only_r): Likewise.
70268         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70269         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70270         _getopt_long_r, _getopt_long_only_r): Likewise.
70271         * lib/getopt_.h (__getopt_argv_const): Remove.
70272         (getopt): Argv is now char * const *, as per standard.
70273
70274         * lib/getdate.y (tORDINAL): New token.
70275         (day, relunit): Allow it for relative times.
70276         (relative_time_table): Use tORDINAL for ordinals.
70277
70278 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70279
70280         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70281         Document that "second" isn't allowed as an ordinal number.
70282
70283 2004-11-16  Jim Meyering  <jim@meyering.net>
70284
70285         * modules/closeout (Depends-on): Add fpending.
70286
70287 2004-11-15  Jim Meyering  <jim@meyering.net>
70288
70289         * lib/closeout.c: Include "__fpending.h" once again.
70290         Include <stdbool.h>.
70291         (close_stdout): Don't fail just because stdout was closed initially,
70292         since some programs don't write to stdout in the normal course of
70293         operation (other than --version and --help), and we don't want this
70294         function to make e.g. `touch file >&-' fail.
70295         But do fail if it was closed and someone has tried to write to it.
70296         E.g., `printf foo >&-' must fail.
70297
70298 2004-11-13  Jim Meyering  <jim@meyering.net>
70299
70300         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70301
70302 2004-11-12  Simon Josefsson  <jas@extundo.com>
70303
70304         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70305         small doc fix is still pending.
70306
70307 2004-11-11  Simon Josefsson  <jas@extundo.com>
70308
70309         * modules/strtok_r: New file.
70310
70311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70312         strtok_r.
70313
70314 2004-11-11  Simon Josefsson  <jas@extundo.com>
70315
70316         * m4/strtok_r.m4: New file.
70317
70318         * m4/getopt.m4: Replace opterr.
70319
70320 2004-11-11  Simon Josefsson  <jas@extundo.com>
70321
70322         * lib/strtok_r.h, strtok_r.c: New file.
70323
70324 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70325
70326         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70327         of replacing opterr, getopt, etc.  This should handle the
70328         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70329
70330 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70331
70332         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70333         we can stop lying to compilers about the constness of argv when we
70334         are compiled outside glibc.
70335         (getopt, getopt_long, getopt_long_only): Use it.
70336         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70337         _getopt_internal, getopt): Likewise.
70338         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70339         _getopt_long_only_r): Likewise.
70340         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70341         _getopt_long_r, _getopt_long_only_r): Likewise.
70342
70343         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70344         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70345         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70346         the other external symbols.
70347         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70348         declaration, since the above renaming now works around collisions.
70349
70350 2004-11-11  Jim Meyering  <jim@meyering.net>
70351
70352         * lib/linebreak.c: Remove trailing blanks.
70353         * lib/alloca_.h: Likewise.
70354         * lib/acosl.c: Likewise.
70355         * lib/euidaccess.c: Likewise.
70356         * lib/allocsa.h: Likewise.
70357
70358 2004-11-10  Simon Josefsson  <jas@extundo.com>
70359
70360         * m4/getaddrinfo.m4: New file.
70361
70362 2004-11-10  Simon Josefsson  <jas@extundo.com>
70363
70364         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70365
70366 2004-11-10  Simon Josefsson  <jas@extundo.com>
70367
70368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70369         getaddrinfo.
70370
70371         * modules/getaddrinfo: New file.
70372
70373 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70376
70377 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70378
70379         * lib/mktime.c (SHR): New macro, which is a portable
70380         substitute for >> that should work even on Crays.
70381         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70382         Problem reported by Mark D. Baushke in
70383         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70384         * lib/getdate.y (SHR): Likewise.
70385         (tm_diff): Use it.
70386         * lib/strftime.c (SHR): Likewise.
70387         (tm_diff): Use it.
70388         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70389         quote_these_too, so that right shifts are well defined.  All uses
70390         changed.
70391
70392 2004-11-10  Jim Meyering  <jim@meyering.net>
70393
70394         Ensure that no close failure goes unreported.
70395         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70396         return early when it seems there's nothing to flush.
70397         Don't include __fpending.h.
70398
70399 2004-11-10  Jim Meyering  <jim@meyering.net>
70400
70401         * modules/closeout (Depends-on): Remove fpending.
70402
70403 2004-11-10  Jim Meyering  <jim@meyering.net>
70404
70405         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70406
70407 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70410         gl_FUNC_STRFTIME.
70411         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70412         and AC_REQUIRE when possible, to avoid duplicate checks.
70413         Check for <wchar.h>.
70414
70415 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70418
70419 2004-11-09  Bruno Haible  <bruno@clisp.org>
70420
70421         * m4/sockpfaf.m4: New file.
70422
70423 2004-11-05  Bruno Haible  <bruno@clisp.org>
70424
70425         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70426         Reported by Mark D. Baushke <mdb@cvshome.org>.
70427
70428 2004-11-04  Bruno Haible  <bruno@clisp.org>
70429
70430         2004-09-11  Bruno Haible  <bruno@clisp.org>
70431                 * allocsa.valgrind: New file.
70432         2004-02-06  Bruno Haible  <bruno@clisp.org>
70433                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70434                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70435                 Reported by Christopher Seip <chris.seip@hp.com>.
70436
70437 2004-11-04  Bruno Haible  <bruno@clisp.org>
70438
70439         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70440         (Makefile.am): Distribute it.
70441
70442 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70443
70444         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70445         with errno == ERANGE if the buffer is too small.
70446         Problem reported by Mark D. Baushke.
70447
70448 2004-11-03  Albert Chin  <china@thewrittenword.com>
70449             Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70452         equivalent, substitute $ac_type for equivalent type rather than
70453         blindly using uint32_t *always* which won't work if uint32_t is not
70454         available.  Define _UINT32_T to work around typedef of uint32_t if
70455         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70456         2.5.1.
70457
70458 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70459
70460         * m4/jm-macros.m4: Sync from coreutils.
70461         (gl_MACROS): Check for mbrlen, for pathchk.
70462         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70463
70464 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         * lib/xreadlink.c (MAXSIZE): New macro.
70467         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70468         size does not exceed MAXSIZE.  Avoid cast.
70469         As suggested by Mark D. Baushke in
70470         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70471         if readlink fails with buffer size just under MAXSIZE, try again
70472         with MAXSIZE.
70473
70474 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70477
70478 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70479         and  Paul Eggert  <eggert@cs.ucla.edu>
70480
70481         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70482         (get_date): Overparenthesize to avoid GCC warning.
70483
70484 2004-11-02  Bruno Haible  <bruno@clisp.org>
70485
70486         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70487         returns void.
70488
70489 2004-11-02  Bruno Haible  <bruno@clisp.org>
70490
70491         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70492         function returns void.
70493
70494 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70495
70496         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70497         fflush_unlocked, flockfile, funlockfile, funlockfile,
70498         fputs_unlocked, putc_unlocked.
70499
70500 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70501
70502         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70503         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70504         already declared.
70505
70506 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         * modules/getdate (Files): Add doc/getdate.texi.
70509         (Depends-on): Add setenv, xalloc.
70510
70511 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * lib/getdate.y: Add support for TZ="foo" within a date string.
70514         Fix some bugs near time_t boundaries.  Reject dates with
70515         out-of-range components, e.g., "Sept 31".
70516         Include <stdlib.h>, "setenv.h", "xalloc.h".
70517         (ISDIGIT_LOCALE): Remove; unused.
70518         Note that the TZ and time functions used here are not reentrant.
70519         (mktime_ok, get_tz): New functions.
70520         (TZBUFSIZE): New constant.
70521         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70522         This requires that we sometimes generate our own TZ="XXX..." setting.
70523
70524 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * doc/getdate.texi: New file, from coreutils with modifications for
70527         the new TZ parsing.
70528
70529 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70530
70531         * lib/mktime.c (not_equal_tm): Remove redundant check.
70532
70533 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         * modules/regex (lib_SOURCES): Add regex.c.
70536         Reported by James Youngman in
70537         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70538
70539 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * lib/getdate.y: Use Bison 1.875 features, and some minor
70542         code cleanups.  This change does not affect semantics.
70543         Don't include <stdlib.h>; no longer needed.
70544         Don't include unlocked-io.h; only the "#if TEST" code uses
70545         stdio, and performance isn't crucial there.
70546         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70547         Bison 1.875 features as described below.
70548         All uses of "PC." replaced by "pc->".
70549         (YYSTYPE): Add a forward declaration.
70550         (yylex, yyerror): Use full prototypes in forward decls.
70551         Use "%pure-parser" rather than obsolescent "%pure_parser".
70552         Use %parse-param and %lex-param instead of obsolescent
70553         YYPARSE_PARAM and YYLEX_PARAM.
70554         (meridian_table, month_and_day_table, time_units_table,
70555         relative_time_table, time_zone_table, military_table,
70556         lookup_zone, lookup_word, get_date):
70557         Use NULL instead of 0 where appropriate.
70558         (to_hour): Avoid abort (), to avoid a dependency on
70559         stdlib.h.
70560         (yyerror, yylex): Now accepts parser_control * arg.
70561         (main) [TEST]: Use '\0' rather than 0 for char.
70562
70563 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70566
70567 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70568
70569         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70570         It's now the caller's responsibility to handle the case where
70571         !HAVE_GETPAGESIZE && !defined getpagesize.
70572
70573         * lib/mktime.c (leapyear): Arg is long int, not int.
70574
70575 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70578
70579 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70582         missing.  Problem reported by James Youngman.
70583
70584 2004-10-16  Simon Josefsson  <jas@extundo.com>
70585
70586         * gnulib-tool: Fix comments.  Fix parse problem.
70587         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70588
70589 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70592         implementation of getopt_long.  Problem reported by Alexander Taler in:
70593         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70594
70595 2004-10-15  Bruno Haible  <bruno@clisp.org>
70596
70597         * gnulib-tool: Untabify. Initialize supplied_libname.
70598         (func_usage): More homogenous output.
70599         (func_modules_transitive_closure, func_modules_to_filelist,
70600         func_emit_lib_Makefile_am): New functions.
70601         (func_import): New function, extracted from big case statement. Use
70602         func_get_license, func_modules_transitive_closure,
70603         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70604         opt_lgpl. Don't use test -a, as it's not portable.
70605         (func_create_testdir): Use func_modules_transitive_closure,
70606         func_modules_to_filelist, func_emit_lib_Makefile_am.
70607
70608 2004-10-15  Bruno Haible  <bruno@clisp.org>
70609
70610         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70611
70612 2004-10-15  Bruno Haible  <bruno@clisp.org>
70613
70614         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70615         the portions belonging to each module.
70616         Suggested by Derek Robert Price <derek@ximbiot.com>.
70617
70618 2004-10-12  Simon Josefsson  <jas@extundo.com>
70619
70620         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70621         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70622         to real functions.
70623
70624 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70625
70626         * modules/vsnprintf: New file.
70627
70628 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70629
70630         * m4/vsnprintf.m4: New file.
70631
70632 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70633
70634         * lib/vsnprintf.h: New file.
70635         * lib/vsnprintf.c: New file.
70636
70637 2004-10-11  Bruno Haible  <bruno@clisp.org>
70638
70639         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70640         vsnprintf.
70641
70642 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70645
70646 2004-10-07  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70649         fits into the provided buffer.
70650
70651 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * lib/diacrit.c, diacrit.h: Add GPL notice.
70654
70655         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70656         notice.
70657         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70658         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70659         This avoids a potential constant-folding bug.
70660
70661 2004-10-05  Bruno Haible  <bruno@clisp.org>
70662
70663         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70664         for the declaration of strsep.
70665
70666 2004-10-05  Bruno Haible  <bruno@clisp.org>
70667
70668         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70669
70670 2004-10-04  Simon Josefsson  <jas@extundo.com>
70671
70672         * modules/memmem: New file.
70673         * tests/test-memmem.c: New file.
70674         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70675
70676 2004-10-04  Simon Josefsson  <jas@extundo.com>
70677
70678         * m4/memmem.m4: New file.
70679
70680 2004-10-04  Simon Josefsson  <jas@extundo.com>
70681
70682         * lib/memmem.h: New file.
70683         * lib/memmem.c: New file, taken from glibc.
70684
70685 2004-10-04  Simon Josefsson  <jas@extundo.com>
70686
70687         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70688         '#ifdef USE_UNLOCKED_IO'.
70689
70690 2004-10-04  Simon Josefsson  <jas@extundo.com>
70691
70692         * config/srclist.txt: Add memmem from glibc.
70693
70694 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70697
70698         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70699         modules/exclude, modules/getdate, modules/getline,
70700         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70701         modules/getusershell, modules/linebuffer, modules/md5,
70702         modules/mountlist, modules/posixtm, modules/readtokens,
70703         modules/readutmp, modules/regex, modules/sha1,
70704         modules/version-etc, modules/yesno:
70705         Remove dependency on unlocked-io.
70706
70707 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70710
70711         * m4/unlocked-io.m4: Add copyright notice.
70712         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70713
70714 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70717         * lib/xmalloc.c (xmemdup): Likewise.
70718         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70719         XFREE): Remove these long-obsolescent macros.
70720         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70721         * lib/xstrdup.c: Remove.
70722
70723         * lib/regex.c (re_comp): Cast gettext return value to char *,
70724         Problem reported by Martin Neitzel via Mark D. Baushke.
70725
70726 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70729         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70730         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70731         regex.c, sha1.c, version-etc.c, yesno.c:
70732         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70733         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70734         the includer's responsibility.
70735
70736         Sync from coreutils.
70737
70738         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70739         points to the start of a string, as the C Standard says the
70740         resulting behavior is undefined.
70741
70742         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70743         simple -> simple_backups, numbered_existing ->
70744         numbered_existing_backups, numbered -> numbered_backups
70745         to avoid shadowing problems.  All uses changed.
70746         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70747         * lib/backupfile.c (check_extension, numbered_backup):
70748         Rename locals to avoid shadowing 'basename'.
70749         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70750         once.
70751
70752         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70753         * lib/.cvsignore: Add getopt.h.
70754
70755 2004-10-04  Bruno Haible  <bruno@clisp.org>
70756
70757         * modules/README: New file.
70758         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70759         not a module.
70760
70761 2004-10-02  Jim Meyering  <jim@meyering.net>
70762
70763         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70764
70765 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70766
70767         * modules/strsep: New file.
70768
70769 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70770
70771         * m4/strsep.m4: New file.
70772
70773 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70774
70775         * lib/strsep.h: New file.
70776         * lib/strsep.c: New file.
70777
70778 2004-10-01  Simon Josefsson  <jas@extundo.com>
70779
70780         * lib/snprintf.c (snprintf): Handle size==0.
70781
70782 2004-10-01  Simon Josefsson  <jas@extundo.com>
70783             Bruno Haible  <bruno@clisp.org>
70784
70785         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70786         (snprintf): Declare 'args'.
70787
70788 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * lib/snprintf.c: Remove comments as to why each header is needed.
70791
70792 2004-10-01  Bruno Haible  <bruno@clisp.org>
70793
70794         * MODULES.html.sh: Add strsep.
70795
70796 2004-09-30  Simon Josefsson  <jas@extundo.com>
70797
70798         * modules/snprintf: New file.
70799
70800 2004-09-30  Simon Josefsson  <jas@extundo.com>
70801
70802         * m4/snprintf.m4: New file.
70803
70804 2004-09-30  Simon Josefsson  <jas@extundo.com>
70805
70806         * lib/snprintf.h, lib/snprintf.c: New files.
70807
70808 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70809
70810         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70811         (hol_entry_help): Never translate an empty string.
70812         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70813         * lib/argp.h (OPTION_NO_TRANS): New option.
70814
70815 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * modules/argp (Maintainer): Replace Simon Josefsson
70818         by Sergey Poznyakoff.
70819
70820 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70823         changes merged back into glibc.
70824
70825 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70828
70829 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70830
70831         * lib/xvasprintf.c: Include xalloc.h.
70832         (xvasprintf): Use xalloc_die, not xmalloc_die.
70833
70834 2004-09-29  Bruno Haible  <bruno@clisp.org>
70835
70836         * modules/alloca-opt: New file, derived from modules/alloca.
70837         * modules/allocsa: Depend on alloca-opt instead of alloca.
70838         * modules/setenv: Likewise.
70839         * modules/vasnprintf: Likewise.
70840         * MODULES.html.sh: Add alloca-opt.
70841
70842 2004-09-28  Simon Josefsson  <jas@extundo.com>
70843
70844         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70845         LGPL, and to replace license template from GPL to LGPL.
70846
70847 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70848
70849         * modules/dummy: Change license to LGPL.
70850
70851 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70854
70855 2004-09-24  Simon Josefsson  <jas@extundo.com>
70856
70857         * modules/minmax (License): Change from GPL to LGPL.
70858
70859 2004-09-23  Simon Josefsson  <jas@extundo.com>
70860
70861         * gnulib-tool (--import): Typo.
70862
70863 2004-09-23  Simon Josefsson  <jas@extundo.com>
70864
70865         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70866
70867 2004-09-22  Bruno Haible  <bruno@clisp.org>
70868
70869         * modules/*: Add 'License' field.
70870         * gnulib-tool: Accept --extract-license option.
70871         (func_get_license): New function.
70872
70873 2004-09-21  Bruno Haible  <bruno@clisp.org>
70874
70875         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70876         Reported by Simon Josefsson.
70877
70878 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70879
70880         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70881         gl_AC_TYPE_LONG_LONG.
70882
70883 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70884
70885         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70886
70887 2004-09-18  Simon Josefsson  <jas@extundo.com>
70888         and  Paul Eggert  <eggert@cs.ucla.edu>
70889
70890         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70891         calls with autoreconf.  Define GL_LIB.
70892
70893 2004-09-14  Karl Berry  <karl@gnu.org>
70894
70895         * config/srclist.txt: unsync setenv.c, sigh.
70896
70897 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70898
70899         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70900         Problem reported by Bruno Haible in:
70901         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70902
70903 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * config/srclist.txt: Comment out argp-pvh.c.
70906
70907 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70908
70909         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70910         in case some system header has #define'd it.  Problem reported by
70911         Soeren D. Schulze in
70912         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70913
70914 2004-09-09  Karl Berry  <karl@gnu.org>
70915
70916         * regex.[ch]: delete from the root.  These were supposed to be
70917                 synced with emacs cvs, but this has not happened for about
70918                 a year, and anyway nothing else uses emacs regex.[ch].
70919                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70920                 lib/regex[.ch] is untouched.
70921
70922 2004-09-09  Bruno Haible  <bruno@clisp.org>
70923
70924         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70925
70926 2004-09-09  Bruno Haible  <bruno@clisp.org>
70927
70928         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70929         modifications.
70930         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70931
70932 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70933
70934         * modules/xvasprintf: New file.
70935         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70936
70937 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70938
70939         * lib/xvasprintf.h: New file.
70940         * lib/xvasprintf.c: New file.
70941         * lib/xasprintf.c: New file.
70942
70943 2004-09-08  Bruno Haible  <bruno@clisp.org>
70944
70945         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70946
70947 2004-09-08  Bruno Haible  <bruno@clisp.org>
70948
70949         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70950         length is > INT_MAX.
70951         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70952         more.
70953
70954 2004-09-08  Bruno Haible  <bruno@clisp.org>
70955
70956         * lib/stdint_.h: New file, taken from GNU clisp.
70957
70958 2004-09-08  Bruno Haible  <bruno@clisp.org>
70959             Oskar Liljeblad  <oskar@osk.mine.nu>
70960
70961         * modules/stdint: New file.
70962         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70963
70964 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         Import from coreutils.
70967         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70968         strings on unbounded length.  alloca's performance benefits aren't
70969         that important here.
70970         (V_STRDUP): Remove.
70971         (parse_with_separator): New function, with most of the internals
70972         of the old parse_user_spec.  Allow user to omit both user and group,
70973         for compatibility with FreeBSD.
70974         Clone only the user name, not the entire spec.
70975         Do not set *uid, *gid unless entirely successful.
70976         Avoid memory leak in some failing cases.
70977         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70978         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70979         (parse_user_spec): Rewrite to use parse_with_separator.
70980
70981 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * modules/userspec: Don't depend on alloca.
70984
70985 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70988
70989 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70992         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70993         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70994
70995 2004-08-16  Simon Josefsson  <jas@extundo.com>
70996
70997         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70998         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70999         Add --dry-run for --import.
71000         Let user provided command line parameters override configure.ac
71001         settings.
71002
71003 2004-08-12  Simon Josefsson  <jas@extundo.com>
71004
71005         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71006         as discussed with Paul Eggert in threads rooted at
71007         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71008         and
71009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71010         Before, the test was empty, and relied on ELIDE_CODE in source
71011         code.)
71012         (gl_PREREQ_GETOPT): New macro.
71013         (gl_GETOPT): Use them.
71014
71015 2004-08-12  Simon Josefsson  <jas@extundo.com>
71016
71017         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71018         * lib/getopt_.h: Renamed from getopt.h.
71019
71020 2004-08-12  Simon Josefsson  <jas@extundo.com>
71021
71022         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71023         Change default library name from libfoo to libgnu.
71024         Now, if you have a configure.ac that says:
71025                 gl_SOURCE_BASE(gl)
71026                 gl_M4_BASE(gl/m4)
71027                 gl_MODULES(error getopt etcetera)
71028                 gl_INIT
71029         you can import all you need by running:
71030                 ../gnulib/gnulib-tool --import
71031
71032         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71033         (Makefile.am): Rewrite, use logic from argz.
71034         (Include): Use <getopt.h> instead of "getopt.h".
71035
71036 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         * modules/argp (Files): Add m4/unlocked-io.m4.
71039         (Depends-on): Add extensions.
71040
71041 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71042
71043         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71044         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71045         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71046         Check for program_invocation_name, program_invocation_short_name,
71047         flockfile, funlockfile, features.h, _getopt_long_only_r.
71048
71049 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71052         its complicated substitute.
71053         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71054         and program_invocation_name.
71055         (__argp_basename) [!_LIBC]: Remove; the only use was
71056         replaced by its body.
71057         (__argp_short_program_name): Change condition from
71058         !defined __argp_short_program_name to
71059         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71060         to match argp-namefrob.h.
71061         (__argp_failure): Don't assume strerror_r returns char *.
71062         * lib/argp-parse.c (N_): Define unconditionally.
71063         (argp_default_options): Fill out initializers with 0 to avoid
71064         gcc warnings.
71065
71066 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71069         getopt1.c.
71070
71071 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71072
71073         Merge from coreutils.
71074
71075         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71076
71077         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71078         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71079
71080 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         Merge from coreutils.
71083
71084         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71085         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71086         for Reliant Unix 5.43.
71087
71088         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71089         (union fooround): Use uintmax_t, not long int.
71090         The rest is a merge from libc:
71091         [defined _LIBC]: Include <shlib-compat.h>.
71092         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71093
71094         * lib/settime.c (settime): Recode to avoid warning with
71095         Sun Forte C 6U2.
71096
71097         * lib/strverscmp.c: Convert to UTF-8.
71098
71099 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71102         m4/uintmax_t.m4.
71103
71104 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * modules/xalloc-die: New file.
71107         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71108
71109         * modules/md5 (Files): Add m4/uint32_t.m4.
71110         * modules/sha1: Renamed from modules/sha.
71111         (Files):
71112         Rename lib/sha.h to lib/sha1.h.
71113         Rename lib/sha.c to lib/sha1.c.
71114         Rename m4/sha.m4 to m4/sha1.m4.
71115         (lib_SOURCES): Likewise.
71116         (configure.ac): Rename gl_SHA to gl_SHA1.
71117         (Include): sha.h -> sha1.h.
71118
71119 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71122         * m4/sha1.m4: Renamed from sha.m4.
71123         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71124
71125 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * lib/obstack.h (obstack_empty_p):
71128         Don't assume that chunk->contents is suitably aligned.
71129         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71130         Likewise. Problem reported by Benno in
71131         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71132
71133         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71134         readable.  This could be improved further but it'd take some work.
71135
71136 2004-08-08  Simon Josefsson  <jas@extundo.com>
71137
71138         * modules/xgethostname (Depends-on): Remove exit and error (not
71139         used).
71140
71141         * modules/getpass-gnu: Add getpass.h.
71142         (Depends-on): Add stdbool.
71143         * modules/getpass: Add getpass.h.
71144
71145 2004-08-08  Simon Josefsson  <jas@extundo.com>
71146
71147         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71148         Check getpass declaration.
71149
71150 2004-08-08  Simon Josefsson  <jas@extundo.com>
71151
71152         * lib/xgethostname.c: Don't include error.h (not used).
71153
71154         * lib/getpass.h: Add.
71155         * lib/getpass.c: Include getpass.h first.
71156
71157 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * lib/xalloc-die.c: New file.
71160         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71161         All uses removed.
71162         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71163         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71164         xalloc-die.c.
71165         (_, N_, xalloc_die): Move to xalloc-die.c.
71166         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71167         so that we needn't mess with xalloc_msg_memory_exhausted.
71168
71169         * lib/sha1.h: Renamed from sha.h.
71170         (SHA1_H): Renamed from _SHA_H.
71171         (sha1_ctx): Renamed from sha_ctx.
71172         (sha1_init_ctx): Renamed from sha_init_ctx.
71173         (sha1_process_block): Renamed from sha_process_block.
71174         (sha1_process_bytes): Renamed from sha_process_bytes.
71175         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71176         (sha1_read_ctx): Renamed from sha_read_ctx.
71177         (sha1_stream): Renamed from sha_stream.
71178         (sha1_buffer): Renamed from sha_buffer.
71179         * lib/sha1.c: Likewise; renamed from sha.c.
71180         Do not include <sys/types.h>.
71181         Include <stddef.h> rather than <stdlib.h>.
71182
71183 2004-08-08  Bruno Haible  <bruno@clisp.org>
71184
71185         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71186         FILESYSTEM_PREFIX_LEN.
71187         * lib/progreloc.c: Likewise.
71188         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71189
71190 2004-08-06  Simon Josefsson  <jas@extundo.com>
71191
71192         * modules/progname (Depends-on): Don't depend on stdbool.
71193
71194 2004-08-06  Simon Josefsson  <jas@extundo.com>
71195
71196         * modules/getsubopt: New file.
71197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71198         getsubopt.
71199
71200 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         More merge from coreutils.
71203
71204         * m4/utimens.m4, m4/utimecmp.m4: New files.
71205         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71206         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71207         prereq.m4, sha.m4: Import changes from coreutils.
71208
71209 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         More merge from coreutils.
71212         * modules/raise, modules/readtokens0, modules/utimens:
71213         * modules/utimecmp, module/xnanosleep: New files.
71214         * modules/strftime: Add lib/strftime.h.
71215         Change include from <time.h> to "strftime.h".
71216         * modules/yesno: Add lib/yesno.h.
71217         * modules/backupfile: Remove lib/addext.c.
71218         * modules/euidaccess: Add stat-macros.h.
71219         * modules/canonicalize, modules/euidaccess,
71220         modules/filemode, modules/lchown, modules/makepath,
71221         modules/rmdir, modules/stat: Likewise.
71222
71223 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         Merge from tar.
71226         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71227         SIZE_MAX is a valid preprocessor constant.
71228         (__argp_basename): Change from "#ifndef _LIBC"
71229         to "#ifndef __argp_short_program_name", so that
71230         we don't compile these functions for tar.
71231
71232         More merges from coreutils.
71233         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71234         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71235         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71236         * lib/addext.c: Remove; no longer needed.
71237         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71238         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71239         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71240         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71241         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71242         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71243         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71244         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71245         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71246         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71247         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71248         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71249         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71250         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71251         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71252         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71253         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71254         Import changes from coreutils.
71255
71256 2004-08-05  Simon Josefsson  <jas@extundo.com>
71257
71258         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71259
71260 2004-08-05  Simon Josefsson  <jas@extundo.com>
71261
71262         * m4/getsubopt.m4: New file.
71263
71264 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         Merge from coreutils.
71267
71268         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71269         * m4/getcwd-path-max.m4: New files.
71270
71271         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71272         FILESYSTEM_PREFIX_LEN ->
71273         FILE_SYSTEM_PREFIX_LEN.
71274         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71275         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71276         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71277         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71278
71279         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71280         prerequisite modules now handle the DOS stuff.
71281         Don't check for unistd.h.
71282
71283 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         Merge from coreutils.
71286
71287         * lib/.gdb-history: Remove; this doesn't belong here.
71288
71289         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71290         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71291         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71292         * lib/getcwd.c: New files.
71293
71294         * lib/dirname.h: Include <stdbool.h>.
71295         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71296         for consistency with POSIX terminology.  All uses changed.
71297         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71298         (strip_trailing_slashes): Use bool for booleans.
71299         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71300
71301         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71302         sometimes returns a positive errno value even when it succeeds.
71303         (print_errno_message) [!LIBC]: Fall back on strerror if
71304         __strerror_r fails.
71305
71306         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71307         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71308         (longest_relative_suffix): New function.
71309         (path_concat): Use it.  Assume first argument is not NULL.
71310         Port to DOS.  Omit redundant separators.
71311         Report an error instead of returning NULL.
71312         Use mempcpy instead of memcpy.
71313         (xpath_concat): Remove: not declared or used.
71314
71315         * lib/same.h: Include <stdbool.h>
71316         (same_name): Return bool, not int.
71317         * lib/same.c (same_name): Likewise.
71318         (errno): Don't declare; we assume C89 or better now.
71319
71320         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71321         if not already defined.
71322
71323         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71324         * lib/dup-safer.c (errno): Likewise.
71325
71326 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         Merge from coreutils.
71329         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71330         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71331         * modules/path-concat: Don't depend on strdup.
71332
71333 2004-08-03  Simon Josefsson  <jas@extundo.com>
71334
71335         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71336         * lib/progname.h: Don't include stdbool.h.
71337
71338 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71341         * MODULES.html.sh (func_all_modules): Remove fatal.
71342
71343 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71344
71345         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71346
71347 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71348
71349         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71350         working.
71351
71352 2004-08-02  Simon Josefsson  <jas@extundo.com>
71353
71354         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71355         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71356         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71357
71358 2004-08-01  Simon Josefsson  <jas@extundo.com>
71359
71360         * lib/xgetdomainname.c: Include stdlib.h, for free().
71361
71362 2004-07-19  Bruno Haible  <bruno@clisp.org>
71363
71364         * MODULES.html.sh (func_all_modules): Add dummy.
71365
71366 2004-07-16  Simon Josefsson  <jas@extundo.com>
71367
71368         * modules/dummy: New file.
71369
71370 2004-07-16  Simon Josefsson  <jas@extundo.com>
71371
71372         * lib/dummy.c: New file.
71373
71374 2004-07-16  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/backupfile.h: Add extern "C" for C++.
71377         * lib/closeout.h: Likewise.
71378         * lib/copy-file.h: Likewise.
71379         * lib/findprog.h: Likewise.
71380         * lib/full-write.h: Likewise.
71381         * lib/pathname.h: Likewise.
71382         * lib/progname.h: Likewise.
71383         * lib/stpcpy.h: Likewise.
71384         * lib/stpncpy.h: Likewise.
71385         * lib/strcase.h: Likewise.
71386         * lib/strstr.h: Likewise.
71387         * lib/xalloc.h: Likewise.
71388
71389         * lib/mbswidth.h: Add extern "C" for C++.
71390         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71391
71392 2004-07-13  Robert Millan  <robertmh@gnu.org>
71393
71394         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71395
71396 2004-07-09  Simon Josefsson  <jas@extundo.com>
71397
71398         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71399         failed without this.)
71400
71401 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         * modules/chown (Files): Add lib/fchown-stub.c, since
71404         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71405
71406 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * lib/fchown-stub.c: New file.
71409
71410 2004-06-24  Jim Meyering  <jim@meyering.net>
71411
71412         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71413
71414 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * modules/argz: Omit "#include".
71417
71418         * MODULES.html.sh (func_all_modules): Add calloc, to match
71419         2004-06-01 addition of calloc module.
71420
71421 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71422
71423         * m4/argz.m4: New file, which is autoupdated from libtool.
71424
71425 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71428         libtool.
71429
71430 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * config/srclist-update: Don't insist on "USA." before the
71433         close-comment, as libtool omits the period and puts the */ on a
71434         separate line.
71435         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71436         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71437
71438 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71439
71440         * modules/argz: New file.
71441         * MODULES.html.sh (func_all_modules): Add argz.
71442
71443 2004-06-12  Jim Meyering  <jim@meyering.net>
71444         and  Paul Eggert  <eggert@cs.ucla.edu>
71445
71446         * modules/hash (Files): Add lib/xalloc.h.
71447         * modules/pipe (Depends-on): Add wait-process.
71448         * modules/stat (Depends-on): Add xalloc.
71449         * modules/userspec (Files): Add lib/userspec.h.
71450         * modules/xstrto
71451
71452         Upgrade from gettext-0.13.
71453         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71454         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71455         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71456
71457 2004-06-10  Jim Meyering  <jim@meyering.net>
71458
71459         * lib/calloc.c: New file.
71460
71461 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * lib/getdate.y (yylex): Allow space between sign and number.
71464         Problem reported by Dan Jacobson.
71465
71466 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         Merge from coreutils CVS.
71469
71470         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71471         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71472         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71473         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71474         xstrtol.m4: Fix copyright date and/or serial number.
71475
71476         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71477         See if we need an fchown replacement.
71478         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71479         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71480         and use the replacement function if we detect either defect.
71481
71482         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71483         gl_UTIMECMP.
71484
71485 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71486         and  Jim Meyering  <jim@meyering.net>
71487
71488         Merge from coreutils CVS.
71489
71490         * lib/stat-macros.h: New file, with contents from file-type.h
71491         and coreutils' system.h.
71492         * lib/file-type.c: Include "stat-macros.h".
71493         * lib/file-type.h (file_type): Move all macro definitions to new file,
71494         stat-macros.h.
71495
71496         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71497         Wrap old code with this conditional.
71498         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71499         function that does not dereference symlinks.
71500         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71501
71502         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71503         dependency problems.
71504         (xreadlink): Accept new arg SIZE, for efficiency.
71505         All decls and uses changed.
71506         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71507
71508         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71509         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71510
71511         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71512         sysexits.h.
71513
71514 2004-06-01  Jim Meyering  <jim@meyering.net>
71515
71516         * m4/calloc.m4: New file.
71517
71518 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71521         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71522         Also, fix a typo in a diagnostic.
71523
71524 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71527         or AC_FUNC_REALLOC.
71528
71529 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71532         macros to be defined.
71533         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71534         the allocator returns NULL because the requested size is zero.
71535
71536 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71539         var.  Add comment explaining why libc still defines it.  This
71540         merges the following patch from glibc:
71541         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71542
71543 2004-05-20  Andreas Schwab  <schwab@suse.de>
71544
71545         * m4/free.m4: Replace free if it not known to work, not the other
71546         way round.
71547
71548 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71551         present in glibc since revision 1.1 of this file.
71552         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71553         obstack_alignment_mask, obstack_alloc, obstack_base,
71554         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71555         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71556         obstack_grow0, obstack_init, obstack_int_grow,
71557         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71558         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71559         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71560         nonexistent functions.
71561
71562 2004-05-18  Karl Berry  <karl@gnu.org>
71563
71564         * config/srclist.txt: break link for vasnprintf.c.
71565
71566 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         Port obstack to the AS/400, where pointers are 16 bytes wide and
71569         you cannot cast an integer to a valid pointer.  This patch is
71570         currently waiting to be integrated into glibc; see
71571         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71572
71573         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71574         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71575         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71576         (struct obstack): temp member is now a union of a pointer and
71577         an integer, instead of an integer.  All integer uses changed.
71578         This does not affect the physical layout of struct obstack,
71579         except on hosts (like the AS/400) where the size or alignment of
71580         void * is greater than that of ptrdiff_t.
71581         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71582         __STDC__)]: Store temporary in pointer member of union, not
71583         integer member.
71584         * lib/obstack.c: Include <stddef.h>, for offsetof.
71585         (struct fooalign): Remove; it doesn't need a name.
71586         (union fooround): Change double to long double, and add void *.
71587         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71588         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71589         not a macro.  Hence the values are always int; so remove all
71590         casts-to-int in uses.
71591
71592 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71595         we can get this patch merged into glibc.
71596
71597 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71598             Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * m4/argp: Depend on alloca.
71601
71602 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71603             Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71606         freecoding.
71607
71608 2004-05-17  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71611         precision that consists of a '.' followed by an empty digit string.
71612         Patch by Tor Lillqvist <tml@iki.fi>.
71613
71614 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71615
71616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71617         for backward compatibility with older code.  We need our own
71618         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71619         it under some other name, and our alloca.h will define it.
71620
71621 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71622             Derek Price  <derek@ximbiot.com>
71623
71624         * lib/alloca.c: Include <alloca.h>, to get our interface.
71625         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71626         include <alloca.h> first.  Use C89 prototype for alloca; this
71627         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71628         Use #elif for simplicity, since we can assume C89 now.
71629         Don't try to source the system alloca.h since it will not be found
71630         and to prevent recursively including its replacement.
71631         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71632         * lib/regex.c: Likewise.
71633
71634 2004-05-16  Derek Price  <derek@ximbiot.com>
71635             Paul Eggert  <eggert@cs.ucla.edu>
71636
71637         getline cleanup.  This changes the getndelim2 API: both order of
71638         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71639         no delimiter).
71640
71641         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71642         interface does that.
71643         (getline): Always use getdelim, so that we don't have two
71644         copies of this code.
71645         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71646         if available.
71647         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71648         (GETNDELIM2_MAXIMUM): New macro.
71649         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71650         instead of the old practice of delim2==0.  All callers changed.
71651         Return -1 on overflow, instead of returning junk.
71652         Do not set *linesize unless allocation succeeds.
71653         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71654         that we include sys/types.h.
71655         * lib/getnline.h: Likewise.
71656         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71657         (getndelim2): Reorder arguments.
71658         * lib/getnline.c (getnline, getndelim):
71659         Don't discard the NMAX argument.
71660         (getnline): Invoke getndelim, to avoid code duplication.
71661         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71662         of (size_t) -1 by callers of the getnline family.
71663
71664 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71665
71666         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71667         Check for gettimeofday.
71668         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71669         Check for settimeofday, stime.
71670
71671 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * lib/nanosleep.c (suspended): Change its type from int to
71674         sig_atomic_t volatile.
71675         (first_call): Make it private to rpl_nanosleep, and have it
71676         be zero initially as that's a bit faster.
71677         (my_usleep): Round up fractional times instead of truncating them,
71678         as this is the usual meaning for 'sleep'.
71679
71680         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71681         doesn't work.
71682         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71683         (ENOSYS): Define if not defined.
71684         (settime): Fall back on stime if it exists and settimeofday fails.
71685         But don't bother with fallbacks if a method fails with errno == EPERM.
71686
71687 2004-05-11  Jim Meyering  <jim@meyering.net>
71688
71689         Prior to this change, the save_cwd caller required read access to the
71690         current directory on most systems (ones with the fchdir function).
71691
71692         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71693         fails, try write-only, and finally, resort to using xgetcwd.
71694
71695 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71696
71697         * lib/obstack.c, obstack.h: Import changes from libc.
71698
71699 2004-04-28  Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71702         also implicitly appends .exe to executables.
71703         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71704         accepts Windows pathnames.
71705         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71706         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71707         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71708         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71709         Reported by Derek Robert Price <derek@ximbiot.com>.
71710
71711 2004-04-21  Karl Berry  <karl@gnu.org>
71712
71713         * config/srclist.txt (localcharset.c): break sync.
71714
71715 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71716
71717         * m4/host-os.m4: Add a copyright notice.
71718
71719 2004-04-20  Jim Meyering  <jim@meyering.net>
71720
71721         Change UTILS_ to gl_ in AC_DEFINE'd names.
71722         Change utils_- and jm_-prefixed variables, too.
71723         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71724         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71726
71727         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71728         Don't emit trailing blanks.
71729         Also rename jm_-prefixed variables to have gl_ prefix.
71730
71731         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71732         Also rename jm_-prefixed variables to have gl_ prefix.
71733
71734         * m4/jm-macros.m4: Reflect the renamings.
71735         * m4/prereq.m4: Likewise.
71736
71737 2004-04-20  Jim Meyering  <jim@meyering.net>
71738
71739         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71740         memory.
71741
71742 2004-04-20  Jim Meyering  <jim@meyering.net>
71743             Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71746         memory when realloc fails.
71747
71748 2004-04-19  Jim Meyering  <jim@meyering.net>
71749
71750         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71751         now that readutmp.c may call `free (0)'.
71752
71753 2004-04-19  Bruno Haible  <bruno@clisp.org>
71754
71755         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71756         * m4/inttypes_h.m4: Likewise.
71757         * m4/stdint_h.m4: Likewise.
71758         * m4/intmax_t.m4: Likewise.
71759         * m4/uintmax_t.m4: Likewise.
71760
71761 2004-04-18  Jim Meyering  <jim@meyering.net>
71762
71763         * m4/prereq.m4: Don't forbid jm_ prefix.
71764
71765         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71766         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71767         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71768         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71769         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71770         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71771         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71772         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71773         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71774         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71775         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71776         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71777         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71778         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71779         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71780         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71781         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71782         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71783         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71784
71785 2004-04-18  Jim Meyering  <jim@meyering.net>
71786
71787         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71788         failure, don't leak memory and do call END_UTMP_ENT.
71789
71790 2004-04-16  Jim Meyering  <jim@meyering.net>
71791
71792         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71793         coreutils' stat program.
71794         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71795
71796 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71797
71798         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71799         C89.
71800         (CHAR_BIT): Remove, since we assume C89.
71801         Include <stdint.h> if available, as per current Autoconf CVS advice.
71802
71803 2004-03-31  Jim Meyering  <jim@meyering.net>
71804
71805         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71806         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71807         * m4/xalloc.m4: Likewise.
71808
71809 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71810
71811         Merge from coreutils.
71812
71813         * m4/inttostr.m4: New file.
71814         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71815         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71816         Require gl_CLOCK_TIME.
71817         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71818
71819 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71820
71821         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71822         not bool, to be more consistent with Unix conventions.
71823         Suggested by Bruno Haible.
71824
71825         Merge from coreutils.
71826
71827         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71828         * lib/umaxtostr.c: New files.
71829
71830         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71831         the usual <time.h> dance.
71832         (get_date): Change signature to support fractional time stamps.
71833         All callers changed.
71834         * lib/getdate.y: Include "getdate.h" first, as we can now
71835         assume C89 and don't need to worry about 'const'.
71836         Similarly, include "unlocked-io.h" near start, not in middle.
71837         Include <limits.h>.
71838         (textint.value): Use long int rather than int.
71839         (textint.digits): Use size_t rather than int.
71840         (BILLION, LOG10_BILLION): New constants.
71841         (parser_control): New member rel_ns.  Members day_ordinal,
71842         time_zone, month, day, hour, minutes, rel_year, rel_month,
71843         rel_day, rel_hour, rel_minutes, rel_seconds
71844         are now long int, not int.  Member seconds is now struct timespec,
71845         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71846         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71847         not int.
71848         (%union.intval): Now long int, not int.
71849         New member timespec.
71850         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71851         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71852         (spec): Now is a timespec or an item list.
71853         (timespec, items): New nonterminals.
71854         (time, rel, relunit, number, get_date):
71855         Add support for fractional seconds.
71856         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71857         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71858         (to_hour): First arg is now long int, not int.
71859         (to_year): Returns long int, not int.
71860         Don't treat year -70 like 70.
71861         (tm_diff): Returns long int, not int.
71862         (lookup_word): Use bool instead of int when appropriate.
71863         (yylex): Use size_t for count, not int.
71864         Detect overflow when parsing large integer constants.
71865         Add support for fractions.
71866         (get_date): Make pointers 'const' if possible.
71867         Use more-portable code to detect integer overflow.
71868         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71869         Don't use ctime; it's not reliable if the year has >4 digits.
71870
71871         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71872         This is for compatibility with BSD.
71873
71874         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71875         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71876         From coreutils' system.h.
71877
71878         * lib/userspec.c: Don't include "posixver.h".
71879         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71880         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71881         compatible extension.  Simplify code by removing a boolean int
71882         that was always nonzero if a string was nonnull.
71883
71884 2004-03-30  Jim Meyering  <jim@meyering.net>
71885
71886         Merge from coreutils.
71887
71888         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71889         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71890         on some systems one must include <grp.h> before it.
71891         Reported by Christian Krackowizer.
71892
71893 2004-03-30  Jim Meyering  <jim@meyering.net>
71894
71895         Merge from coreutils.
71896
71897         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71898
71899         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71900         an empty input stream.
71901
71902         * lib/readtokens.c: Include <stdbool.h>.
71903         (readtoken): Use `size_t' rather than int/long.
71904         All callers adjusted.
71905         Use `bool' rather than `int' where appropriate.
71906         Use memset rather than an explicit loop.
71907         Use x2nrealloc rather than xrealloc.
71908         Allow the use of `\0' as a delimiter.
71909         (readtokens): Likewise.
71910         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71911
71912 2004-03-30  Jim Meyering  <jim@meyering.net>
71913
71914         * m4/realloc.m4: Remove file, since now it does no more than
71915         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71916         the `configure.ac' section of module/realloc.
71917         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71918
71919 2004-03-30  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71922         nonnull.
71923
71924 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71925
71926         Merge changes to getloadavg.c from coreutils and Emacs.
71927
71928         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71929         Define to an expression, not to the empty string.
71930         Include cloexec.h and xalloc.h.
71931         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71932         Use set_cloexec_flag rather than rolling our own.
71933         * lib/cloexec.c, lib/cloexec.h: New files.
71934
71935 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71936
71937         * m4/cloexec.m4: New file.
71938
71939 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71940
71941         * lib/getopt.h: Sync with libc CVS.
71942
71943 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71944             Bruno Haible  <bruno@clisp.org>
71945
71946         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71947         mbswidth.
71948
71949 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71950             Bruno Haible  <bruno@clisp.org>
71951
71952         * lib/mbswidth.h: Include <wchar.h> only if
71953         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71954         <wchar.h>.
71955         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71956
71957 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71958
71959         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71960         Sync with libc CVS.
71961         * lib/getopt_int.h: New file, also synced from libc.
71962
71963 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71964
71965         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71966         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71967         Bring back getopt.c, getopt.h, getopt1.c.
71968
71969 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71970
71971         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71972         All uses changed.  Check for sa_sigaction member; this fixes
71973         a bug first reported by Jason Andrade in
71974         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71975
71976 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71977
71978         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71979         '#if' expressions.  Unlike the code it replaces, it does not
71980         depend on (defined _SC_PAGESIZE).  However, it does depend on
71981         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71982         first reported by Jason Andrade in
71983         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71984
71985 2004-02-25  Simon Josefsson  <jas@extundo.com>
71986
71987         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71988
71989 2004-02-25  Simon Josefsson  <jas@extundo.com>
71990
71991         * lib/strdup.h: New file.
71992         * lib/strdup.c: Include it.
71993         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71994         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71995
71996 2004-02-23  Karl Berry  <karl@gnu.org>
71997
71998         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71999         (from fencepost.gnu.org:/gd/gnuorg).
72000
72001 2004-02-23  Karl Berry  <karl@gnu.org>
72002
72003         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72004         * config/srclist.txt: add maintain/standards documents.
72005
72006 2004-02-18  Bruno Haible  <bruno@clisp.org>
72007
72008         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72009         Reported by Derek Robert Price <derek@ximbiot.com>.
72010
72011 2004-02-16  Karl Berry  <karl@gnu.org>
72012
72013         * config/mkinstalldirs, install-sh: update from automake.
72014
72015 2004-02-06  Karl Berry  <karl@gnu.org>
72016
72017         * m4/po.m4: update from gettext 0.14.1.
72018
72019 2004-02-06  Karl Berry  <karl@gnu.org>
72020
72021         * lib/config.charset: update from gettext 0.14.1.
72022
72023 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72024
72025         Add comments and code, prompted by suggestions from Bruno Haible
72026         for sh-quote.
72027         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72028         describing the enum quoting_style values.
72029         * lib/quotearg.c (quotearg_alloc): New function.
72030         (quotearg_buffer_restyled): Treat lone { and } as special.
72031         Treat = as special.  Work around bug with older shells
72032         that "see" a '\' that is really the 2nd byte of a multibyte char.
72033         Quote empty string with shell_quoting_style.
72034
72035 2004-02-03  Bruno Haible  <bruno@clisp.org>
72036
72037         * m4/pipe.m4: New file, from GNU gettext.
72038
72039 2004-02-03  Bruno Haible  <bruno@clisp.org>
72040
72041         * lib/pipe.h: New file, from GNU gettext.
72042         * lib/pipe.c: New file, from GNU gettext.
72043
72044 2004-01-27  Bruno Haible  <bruno@clisp.org>
72045
72046         * m4/execute.m4: New file, from GNU gettext.
72047
72048 2004-01-27  Bruno Haible  <bruno@clisp.org>
72049
72050         * lib/execute.h: New file, from GNU gettext.
72051         * lib/execute.c: New file, from GNU gettext.
72052         * lib/w32spawn.h: New file, from GNU gettext.
72053
72054 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72055
72056         Merge from diffutils.
72057
72058         * lib/file-type.c (file_type): Add typed memory objects.
72059         * lib/file-type.h (S_TYPEISTMO): New macro.
72060
72061         * lib/c-stack.h (c_stack_action): Remove argv argument.
72062         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72063         (die): Don't calculate message unless segv_action returns.
72064         (get_stack_location, min_address_from_argv, max_address_from_argv,
72065         volatile stack_base, volatile_stack_size): Remove.
72066         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72067         that every segmentation violation is a stack overflow.  (Ouch!)
72068         See Debian bug 136249 (still outstanding) for more info about why
72069         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72070
72071 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72072
72073         Exit-status fix from coreutils.
72074
72075         Use exit_failure consistently in place of EXIT_FAILURE,
72076         so that program exit statuses are consistent on failure.
72077
72078         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72079         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72080         * lib/argmatch.h: Comment fix to match the above.
72081         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72082         Now a macro referring to exit_failure, instead of a separate
72083         variable.  Include "exitfail.h" to get it.
72084         * lib/xstrtol.h: Include "exitfail.h".
72085         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72086
72087         * lib/long-options.c (parse_long_options): Use prototype
72088         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72089         for clarity.
72090
72091 2004-01-21  Jim Meyering  <jim@meyering.net>
72092
72093         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72094         so as not to conflict with a different-sized __mktime_internal
72095         function in GNU libc.
72096         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72097         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72098
72099 2004-01-20  Karl Berry  <karl@gnu.org>
72100
72101         * config/config.guess: update from config.
72102
72103         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72104
72105 2004-01-20  Bruno Haible  <bruno@clisp.org>
72106
72107         Safer stack allocation.
72108         * lib/setenv.c: Include allocsa.h.
72109         (alloca): Remove fallback definition.
72110         (freea): Remove macro.
72111         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72112         instead of freea.
72113
72114 2004-01-20  Bruno Haible  <bruno@clisp.org>
72115
72116         * m4/eealloc.m4: New file, from GNU gettext.
72117
72118 2004-01-20  Bruno Haible  <bruno@clisp.org>
72119
72120         * m4/allocsa.m4: New file, from GNU gettext.
72121
72122 2004-01-20  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/xallocsa.h: New file, from GNU gettext.
72125         * lib/xallocsa.c: New file, from GNU gettext.
72126
72127 2004-01-20  Bruno Haible  <bruno@clisp.org>
72128
72129         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72130
72131 2004-01-20  Bruno Haible  <bruno@clisp.org>
72132
72133         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72134         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72135         specially.
72136
72137 2004-01-20  Bruno Haible  <bruno@clisp.org>
72138
72139         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72140         patch.
72141
72142 2004-01-20  Bruno Haible  <bruno@clisp.org>
72143
72144         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72145
72146 2004-01-20  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/eealloc.h: New file.
72149
72150 2004-01-20  Bruno Haible  <bruno@clisp.org>
72151
72152         * lib/binary-io.h: Avoid warnings on Cygwin.
72153
72154 2004-01-20  Bruno Haible  <bruno@clisp.org>
72155
72156         * lib/allocsa.h: New file, from GNU gettext.
72157         * lib/allocsa.c: New file, from GNU gettext.
72158
72159 2004-01-18  Karl Berry  <karl@gnu.org>
72160
72161         * doc/gpl.texi, doc/lgpl.texi: new files.
72162
72163 2004-01-18  Karl Berry  <karl@gnu.org>
72164
72165         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72166         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72167
72168 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72169
72170         Merge from coreutils.
72171
72172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72173         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72174         (gl_DEFAULT_POSIX2_VERSION): Move
72175         the documentation from 'configure' into 'config.hin',
72176         so that 'configure --help' isn't burdened by it and
72177         we don't have to worry about its formatting there.
72178         Reword the documentation so that it's more succinct
72179         and can be run together into a single paragraph.
72180         * m4/same.m4 (gl_SAME): Check for pathconf.
72181
72182 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72183
72184         Merge from coreutils.
72185
72186         * lib/posixver.c: Include posixver.h.
72187
72188         * lib/same.c: Include <stdbool.h>, <limits.h>.
72189         (_POSIX_NAME_MAX): Define if not defined.
72190         (MIN): New macro.
72191         (same_name): If file names are silently truncated, report
72192         that the file names are the same if they are the same after
72193         the silent truncation.
72194
72195         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72196         conversion function.
72197         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72198         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72199         longer needed.
72200
72201 2004-01-15  Jim Meyering  <jim@meyering.net>
72202
72203         Merge from coreutils.
72204
72205         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72206         if no library is required.
72207         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72208         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72209         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72210         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72211         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72212         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72213         value, $ac_cv_search_crypt, if it's "none required".
72214         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72215         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72216         not gl_FUNC_GETLOADAVG.
72217         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72218         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72219
72220 2004-01-15  Jim Meyering  <jim@meyering.net>
72221
72222         Merge from coreutils.
72223
72224         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72225         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72226         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72227
72228         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72229         optional configure-time default.
72230
72231         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72232
72233         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72234
72235 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72236
72237         Merge from coreutils.
72238
72239         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72240         value, $ac_cv_search_nanosleep, if it's "none required".
72241
72242 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72243
72244         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72245         with like-named macro in fnmatch.c.
72246         (EXT): Use an internal constant instead.
72247
72248         Merge fnmatch patches from glibc.
72249         * lib/fnmatch.c (mbsinit): Remove define.
72250         Add libc_hidden_ver (__fnmatch, fnmatch).
72251         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72252         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72253
72254 2004-01-14  Karl Berry  <karl@gnu.org>
72255
72256         * config/install-sh: update from automake.
72257
72258 2004-01-13  Karl Berry  <karl@gnu.org>
72259
72260         * config/install-sh: update from automake.
72261
72262 2004-01-09  Karl Berry  <karl@gnu.org>
72263
72264         * config/install-sh: update from automake.
72265
72266 2004-01-05  Karl Berry  <karl@gnu.org>
72267
72268         * config/config.{sub,guess}: update from config.
72269
72270 2003-12-31  Karl Berry  <karl@gnu.org>
72271
72272         * config/depcomp: update from automake.
72273
72274 2003-12-14  Karl Berry  <karl@gnu.org>
72275
72276         * lib/config.charset: update from gettext-runtime.
72277
72278 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72279
72280         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72281         Bug reported by Alfred M. Szmidt.
72282
72283 2003-12-03  Bruno Haible  <bruno@clisp.org>
72284
72285         * m4/gettext.m4: Upgrade from gettext-0.13.
72286         * m4/po.m4: Upgrade from gettext-0.13.
72287         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72288         * m4/intmax.m4: New file, from gettext-0.13.
72289         * m4/printf-posix.m4: New file, from gettext-0.13.
72290
72291 2003-11-29  Karl Berry  <karl@gnu.org>
72292
72293         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72294
72295 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72296             Bruno Haible  <bruno@clisp.org>
72297
72298         * lib/printf-parse.h: Don't include sys/types.h.
72299         (ARG_NONE): New macro.
72300         (char_directive): Change type of *arg_index fields to size_t.
72301         * lib/printf-parse.c: Don't include sys/types.h.
72302         (SSIZE_MAX): Remove macro.
72303         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72304         Remove unnecessary overflow check.
72305         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72306         fields.
72307
72308 2003-11-25  Bruno Haible  <bruno@clisp.org>
72309
72310         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72311
72312 2003-11-25  Bruno Haible  <bruno@clisp.org>
72313
72314         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72315         gt_TYPE_SSIZE_T.
72316
72317 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72318
72319         * modules/alloca: Remove dependency on xalloc.
72320
72321 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72322
72323         * lib/alloca.c: Remove dependency on xalloc module.
72324         (xalloc_die): Remove.
72325         (memory_full) [!defined emacs]: New macro.
72326         [!defined emacs]: Don't include xalloc.h.
72327         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72328         address arithmetic overflows.  Change datatypes a bit to avoid
72329         unnecessary casts.
72330
72331 2003-11-22  Jim Meyering  <jim@meyering.net>
72332
72333         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72334         s/size/size_t/.
72335
72336 2003-11-21  Karl Berry  <karl@gnu.org>
72337
72338         * config/config.{sub,guess}: update from config.
72339
72340 2003-11-18  Karl Berry  <karl@gnu.org>
72341
72342         * config/config.{sub,guess}: update from config.
72343
72344         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72345
72346 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72347
72348         * README: Mention that S+T cannot overflow if S is the size of
72349         an existing object and T is sufficiently small.
72350
72351 2003-11-17  Jim Meyering  <jim@meyering.net>
72352
72353         On systems without utime and without a utimes function capable of
72354         dealing with a NULL struct utimbuf* argument, this utime replacement
72355         could -- in unusual circumstances -- leak a file descriptor.
72356         * lib/utime.c: Include <unistd.h> and <errno.h>.
72357         (utime_null): Be sure to close `fd' and to preserve errno.
72358         Reported by Geoff Collyer via Arnold Robbins.
72359
72360 2003-11-17  Bruno Haible  <bruno@clisp.org>
72361
72362         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72363         (Depends-on): Add xsize.
72364
72365 2003-11-17  Bruno Haible  <bruno@clisp.org>
72366
72367         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72368
72369 2003-11-17  Bruno Haible  <bruno@clisp.org>
72370
72371         * lib/vasnprintf.c (alloca): Remove fallback definition.
72372         (freea): Remove definition.
72373         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72374         Reported by Paul Eggert.
72375
72376 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72377             Bruno Haible  <bruno@clisp.org>
72378
72379         Protect against address arithmetic overflow.
72380         * lib/printf-args.h: Include stddef.h.
72381         (arguments): Change type of field 'count' to size_t.
72382         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72383         'unsigned int' where appropriate.
72384         * lib/printf-parse.h: Include sys/types.h.
72385         (char_directive): Change type of *arg_index fields to ssize_t.
72386         (char_directives): Change type of fields 'count', max_*_length to
72387         size_t.
72388         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72389         (SSIZE_MAX): Define fallback value.
72390         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72391         instead of 'int' where appropriate. Check a_allocated, d_allocated
72392         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72393         * lib/vasnprintf.c: Include xsize.h.
72394         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72395         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72396         overflow. Avoid wraparound when converting a width or precision from
72397         decimal to binary.
72398
72399 2003-11-16  Bruno Haible  <bruno@clisp.org>
72400
72401         Update from GNU gettext.
72402         * lib/printf-parse.c: Generalize to it can be compiled for wide
72403         strings.
72404         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72405         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72406         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72407         SNPRINTF): New macros.
72408         Don't include <alloca.h> if the file is used inside libintl.
72409         (local_wcslen): New function, for Solaris 2.5.1.
72410         (VASNPRINTF): Use it instead of wcslen.
72411
72412 2003-11-16  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/xsize.h (xmax): New function.
72415         (xsum, xsum3, xsum4): Declare as "pure" functions.
72416
72417 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72418
72419         * modules/xalloc (Files): Undo latest change, since xalloc.h
72420         no longer needs SIZE_MAX or PTRDIFF_MAX.
72421
72422 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72423
72424         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72425         gl_PTRDIFF_MAX.
72426
72427 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72428
72429         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72430         "return", to pacify some unknown compiler.  Problem reported
72431         by Joerg Schilling.
72432
72433 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72434
72435         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72436         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72437         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72438         heuristic is just as accurate as far as we know, and it removes a
72439         dependency on size_max.m4 and ptrdiff_max.m4.
72440
72441 2003-11-11  Bruno Haible  <bruno@clisp.org>
72442
72443         * modules/xsize (Files): Add m4/size_max.m4.
72444         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72445
72446 2003-11-11  Bruno Haible  <bruno@clisp.org>
72447
72448         * m4/size_max.m4: New file.
72449         * m4/ptrdiff_max.m4: New file.
72450         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72451         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72452         (gl_XALLOC): Invoke it.
72453
72454 2003-11-11  Bruno Haible  <bruno@clisp.org>
72455
72456         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72457         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72458         defined.
72459
72460 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72461
72462         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72463         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72464         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72465         From Bruno Haible.
72466         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72467         not (size_t) -1, since it's defined here.
72468
72469 2003-11-09  Karl Berry  <karl@gnu.org>
72470
72471         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72472
72473 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72474
72475         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72476         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72477         Reject sizes of exactly SIZE_MAX bytes.
72478         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72479         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72480
72481 2003-11-05  Bruno Haible  <bruno@clisp.org>
72482
72483         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72484         SIZE_MAX defined in <limits.h> on Solaris.
72485
72486 2003-11-04  Jim Meyering  <jim@meyering.net>
72487
72488         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72489         variable names, rather than @VAR@.
72490         * modules/poll: Likewise.
72491
72492 2003-11-04  Bruno Haible  <bruno@clisp.org>
72493
72494         * modules/xsize: New file.
72495         * modules/linebreak: Depend on xsize.
72496         * MODULES.html.sh (func_all_modules): Add xsize.
72497
72498 2003-11-04  Bruno Haible  <bruno@clisp.org>
72499
72500         * m4/xsize.m4: New file.
72501
72502 2003-11-04  Bruno Haible  <bruno@clisp.org>
72503
72504         * lib/xsize.h: New file.
72505         * lib/linebreak.c: Include xsize.h.
72506         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72507         argument for overflow.
72508         Suggested by Paul Eggert.
72509
72510 2003-11-03  Karl Berry  <karl@gnu.org>
72511
72512         * config/config.{guess,sub}: update from config.
72513
72514 2003-11-03  Jim Meyering  <jim@meyering.net>
72515
72516         * modules/userspec (lib_SOURCES): Add userspec.h.
72517         (Include): Add "userspec.h".
72518         Improve description.
72519
72520 2003-11-03  Jim Meyering  <jim@meyering.net>
72521
72522         * lib/userspec.c: Include "userspec.h".
72523         * lib/userspec.h: New file.
72524
72525 2003-11-03  Bruno Haible  <bruno@clisp.org>
72526
72527         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72528
72529 2003-11-03  Bruno Haible  <bruno@clisp.org>
72530
72531         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72532         available, to avoid (extremely rare) race condition.
72533         Suggested by Paul Eggert.
72534
72535 2003-11-02  Karl Berry  <karl@gnu.org>
72536
72537         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72538
72539 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72540
72541         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72542         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72543         (read_filesystem_list): Set and use me_type_malloced.
72544         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72545         whatever the type happens to be), for brevity and consistency.
72546         Check for size calculation overflow on Alphas running OSF/1.
72547
72548 2003-10-31  Jim Meyering  <jim@meyering.net>
72549
72550         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72551
72552         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72553
72554 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72555             Bruno Haible  <bruno@clisp.org>
72556
72557         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72558         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72559
72560 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72563         netbsd*-gnu*.  Suggested by Robert Millan.
72564
72565 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72566
72567         * modules/group-member: Depend on stdbool.
72568
72569 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72570
72571         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72572
72573 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72574
72575         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72576         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72577         after the 'gnu' in these cases.  This fixes some bugs in the
72578         previous change, and is based on suggestions by Robert Millan.
72579
72580 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72581
72582         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72583         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72584         no longer needed.
72585         * lib/quotearg.c (quotearg_n_options): Use it.
72586         * lib/group-member.c: Include <stdbool.h>.
72587         (free_group_info): Arg is now const *; don't free arg.
72588         (get_group_info): Now returns bool and accepts struct group_info *,
72589         rather than returning a malloc'ed struct group_info *.
72590         All uses changed.  Check for overflow in internal size calculation.
72591
72592         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72593         rather than xmalloc/xrealloc.
72594         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72595         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72596         conformance bug: the old code used a pointer after freeing the
72597         storage that it addressed.
72598         * lib/hash.c (hash_initialize): Simplify the code by using
72599         xalloc_oversized rather than doing it by hand.
72600         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72601         the buffer preserved.  Use free and xmalloc instead.
72602         * lib/quotearg.c (quotearg_n_options): Likewise.
72603         Use a simpler test for size overflow.  Don't use xalloc_oversized
72604         because unsigned int might be wider than size_t (!); this suggests
72605         that we should switch from unsigned int to size_t for slot numbers.
72606
72607 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72608
72609         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72610         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72611         NetBSD kernels.  Requested by Richard Stallman.
72612
72613 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72614
72615         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72616         to allocate the returned structure.  Do not allocate a subarray,
72617         as x2nrealloc will do that.
72618         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72619         instead of xnrealloc.
72620         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72621
72622 2003-10-27  Bruno Haible  <bruno@clisp.org>
72623
72624         * lib/stdbool_.h: Better support for BeOS.
72625
72626 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72627
72628         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72629         now uses inline.
72630
72631 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72632
72633         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72634         callers that want to do their own size-overflow checking.  Include
72635         <stdbool.h>, since xalloc_oversized returns bool.
72636         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72637         to use xalloc_oversized.
72638
72639         Add two functions x2realloc, x2nrealloc, for programs that grow
72640         arrays dynamically by doubling their sizes.
72641         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72642         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72643         New functions.
72644
72645         Port to C99 semantics for 'inline' of external functions.
72646         Bug reported by Bruno Haible.
72647         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72648         with the old contents of xnmalloc.
72649         (xnmalloc, xmalloc): Use it.
72650         (xnrealloc_inline): New static inline function,
72651         with the old contents of xnrealloc.
72652         (xnrealloc, xrealloc): Use it.
72653
72654         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72655         that.
72656
72657 2003-10-26  Karl Berry  <karl@gnu.org>
72658
72659         * config/srclist.txt (COPYING.DOC): no longer available from
72660         /gd/gnuorg; don't know where the ultimate source is.
72661
72662 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72663
72664         Fix several address-calculation bugs in the hash modules,
72665         plus some minor code cleanup.
72666
72667         * lib/hash.h: Include <stdbool.h>, for bool.
72668         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72669         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72670         hash_get_n_entries, hash_get_max_bucket_length,
72671         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72672         hash_rehash): Use size_t rather than unsigned.
72673         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72674         hash_get_n_buckets_used, hash_get_n_entries,
72675         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72676         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72677         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72678         Likewise.
72679         (SIZE_MAX): Define if not defined.
72680         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72681         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72682         hash_print):
72683         Use const * when possible.
72684         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72685         (check_tuning): Fix bug: if tuning parameters were very close to
72686         0 or 1, rounding errors could have caused subscript violations.
72687         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72688         (hash_initialize): Add 'fail:' label
72689         to free table and return NULL, and use it to simplify code.
72690         Use calloc rather than clearing the storage ourself.
72691         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72692         buffer size calculations.
72693         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72694         Include <stddef.h>, for size_t.
72695         * lib/hash-pjw.c (hash_pjw): Likewise.
72696         Switch to method described by Bruno Haible.
72697         Include <limits.h>, for CHAR_BIT.
72698         (SIZE_BITS): New macro.
72699
72700 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72701
72702         * m4/getline.m4 (AM_FUNC_GETLINE):
72703         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72704         hosts.  Problem reported by Derek Robert Price in
72705         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72706         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72707         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72708
72709 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72710
72711         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72712         ceiling the allocation at NMAX bytes rather than silently
72713         discarding input bytes before NMAX is reached.  This makes
72714         a difference only if NMAX exceeds SIZE_MAX / 2.
72715
72716         * lib/obstack.c: Merge from glibc.
72717         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72718         Add libc_hidden_def (_obstack_newchunk).
72719         (_obstack_free) [! defined _LIBC]: Remove.
72720         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72721         a clone of the function body.
72722         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72723         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72724
72725         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72726         glibc.
72727         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72728         arg to memcpy.
72729
72730         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72731         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72732         Don't use lvalue casts, as GCC plans to remove support for them
72733         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72734         was also present in the non-GCC version, indicating that this
72735         code had always been buggy and had never been widely used.
72736         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72737         Use the fast variant of each macro, rather than copying the
72738         definiens of the fast variant; that way, we'll be more likely to
72739         catch future bugs in the fast variants.
72740
72741 2003-10-20  Bruno Haible  <bruno@clisp.org>
72742
72743         * modules/wait-process: New file.
72744         * MODULES.html.sh (func_all_modules): Add wait-process.
72745
72746 2003-10-20  Bruno Haible  <bruno@clisp.org>
72747
72748         * m4/wait-process.m4: New file.
72749
72750 2003-10-20  Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/wait-process.h: New file, from GNU gettext.
72753         * lib/wait-process.c: New file, from GNU gettext.
72754
72755 2003-10-19  Jim Meyering  <jim@meyering.net>
72756
72757         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72758         HPUX 10.20.
72759
72760 2003-10-18  Karl Berry  <karl@gnu.org>
72761
72762         * config/config.guess: update from config.
72763
72764 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72765
72766         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72767         (getgroups): First arg is int, not size_t.
72768         Don't let 'free' mangle errno.
72769
72770 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72771
72772         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72773
72774 2003-10-16  Karl Berry  <karl@gnu.org>
72775
72776         * config/config.{guess,sub}: update from config.
72777
72778 2003-10-16  Jim Meyering  <jim@meyering.net>
72779
72780         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72781         memcpy.
72782
72783 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72784
72785         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72786         (SIZE_MAX): Remove.
72787         (new_exclude, add_exclude_file): Initial size no longer needs to
72788         be a power of 2.
72789         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72790         our own address arithmetic overflow checking.
72791
72792         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72793         (fnmatch): Do not alloca more than 2000 wide characters;
72794         instead, use malloc for large buffers.
72795         Check for address arithmetic overflow, and return -1
72796         with errno set to ENOMEM in that case.
72797         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72798         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72799         instead, return -1.  Check for address arithmetic overflow.
72800
72801 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72802
72803         Handle invalid suffixes and overflow independently, so that
72804         callers can treat them independently as needed.  Fix some bugs in
72805         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72806         suffix for a human-readable blocksize.  The major caller-visible
72807         change is the addition of a new
72808         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72809         that both overflow and suffix chars were found.
72810
72811         * lib/human.c (humblock): Don't check separately for invalid suffix
72812         char; that is xstrtoumax's job (now that its bug is fixed).
72813         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72814         INTMAX_MAX]: New macros.
72815         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72816         TYPE_MAXIMUM): New macros.
72817         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72818         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72819         if overflow occurs, as it's what __strtol does and it's more useful
72820         in practice.
72821         (__xstrtol): If __strtol reports some error other than ERANGE,
72822         reflect it to the caller as LONGINT_INVALID.  If it reports
72823         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72824         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72825         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72826         value.
72827         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72828         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72829         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72830         [defined UINTMAX_MAX]: New macros.
72831
72832 2003-10-14  Bruno Haible  <bruno@clisp.org>
72833
72834         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72835
72836 2003-10-14  Bruno Haible  <bruno@clisp.org>
72837
72838         * m4/sig_atomic_t: New file, from GNU gettext.
72839         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72840
72841 2003-10-14  Bruno Haible  <bruno@clisp.org>
72842
72843         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72844         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72845         Also use volatile where needed.
72846
72847 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72848
72849         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72850         Change maintainer from Bruno Haible to 'all'.
72851
72852 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72853
72854         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72855
72856 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72857
72858         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72859         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72860         and define in terms of the other primitives.
72861         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72862         (SIZE_MAX): Define if not already defined.
72863         (array_size_overflow): New function.
72864         (xalloc_die): Abort instead of exiting if 'error' returns.
72865         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72866         (xmalloc, xrealloc): Use them.
72867         (xcalloc): Check for address arithmetic overflow.
72868         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72869         a bit faster than strcpy.
72870
72871 2003-10-10  Simon Josefsson  <jas@extundo.com>
72872
72873         * modules/argp (Depends-on): Add restrict and strcase.
72874
72875 2003-10-10  Simon Josefsson  <jas@extundo.com>
72876
72877         * m4/argp.m4: Add AC_C_INLINE.
72878
72879 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72880
72881         Merge getpass from libc, plus a few fixes.
72882
72883         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72884         Include <stdbool.h>.
72885         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72886         __fsetlocking to empty.
72887         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72888         do include <bits/libc-lock.h>.
72889         Do not include <fcntl.h>; not needed.
72890         [_LIBC]: Include <wchar.h>.
72891         (NOTCANCEL_MODE): New macro.
72892         (flockfile, funlockfile) [_LIBC]: New macros.
72893         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72894         [!_LIBC]: New macros.
72895         (call_fclose): New function.
72896         (getpass): Use it.  Save tty stream separately; this simplifies the
72897         code and makes it more reliable if stdin happens to equal stdout.
72898         Invoke __fsetlocking on tty.
72899         Handle thread cancellation if needed.
72900         Namespace cleanup (use __tcgetattr, __getline).
72901         Use bool for Booleans.
72902         [USE_IN_LIBIO]: Handle wide streams.
72903         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72904         stream might go where.
72905
72906         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72907         doesn't have to include <stdio.h> before us.
72908         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72909         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72910         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72911         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72912         if not declared, so that we can use getpass.c code from libc without
72913         rewriting it.
72914         (flockfile, ftrylockfile, funlockfile): New macros.
72915
72916 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72917
72918         * modules/getpass: Depend on stdbool.
72919
72920 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72921
72922         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72923
72924 2003-10-07  Karl Berry  <karl@gnu.org>
72925
72926         * config/config.{guess,sub}: update from config.
72927
72928 2003-10-06  Jim Meyering  <jim@meyering.net>
72929             Bruno Haible  <bruno@clisp.org>
72930
72931         This lets translators provide better translations for the
72932         "Written by ..." part of --version output.
72933         * lib/version-etc.h: Include stdarg.h.
72934         (version_etc_copyright): Declare as readonly.
72935         (version_etc): Make this function variadic with a NULL-terminated list
72936         of author name strings.
72937         (version_etc_va): New declaration.
72938         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72939         (version_etc_copyright): Declare as readonly.
72940         (version_etc_va): New function. Provide a different translatable string
72941         for each possible number of authors < 10. Abbreviate when there are 10
72942         authors or more.
72943         (version_etc): Make this function variadic. Call version_etc_va.
72944         Suggestion from Gary V. Vaughan.
72945
72946         * lib/long-options.h (parse_long_options): Change prototype: the
72947         authors string is moved to the end and becomes variadic.
72948         * lib/long-options.c: Include stdarg.h.
72949         (parse_long_options): Make this function variadic, too.
72950         Call version_etc_va, not version_etc.
72951
72952 2003-10-06  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/version-etc-2: Remove file.
72955         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72956
72957 2003-10-06  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/fatal-signal: New file.
72960         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72961
72962 2003-10-06  Bruno Haible  <bruno@clisp.org>
72963
72964         * m4/fatal-signal.m4: New file.
72965         * m4/signalblocking.m4: New file, from GNU gettext.
72966
72967 2003-10-06  Bruno Haible  <bruno@clisp.org>
72968
72969         * lib/version-etc-2.h: Remove file.
72970         * lib/version-etc-2.c: Remove file.
72971
72972 2003-10-06  Bruno Haible  <bruno@clisp.org>
72973
72974         * lib/fatal-signal.h: New file, from GNU gettext.
72975         * lib/fatal-signal.c: New file, from GNU gettext.
72976
72977 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72978
72979         * README: Rework advice for preventing empty .o files.
72980         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72981         not <sys/types.h>.
72982
72983 2003-10-04  Karl Berry  <karl@gnu.org>
72984
72985         * lib/argp*: update from libc.
72986
72987 2003-10-04  Karl Berry  <karl@gnu.org>
72988
72989         * config/config.{guess,sub}: update from config.
72990
72991 2003-10-02  Bruno Haible  <bruno@clisp.org>
72992
72993         * modules/lchown (Include): Add lchown.h.
72994         * modules/time_r (Include): Use "..." syntax.
72995         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72996
72997 2003-10-01  Simon Josefsson  <jas@extundo.com>
72998
72999         * MODULES.html.sh (func_all_modules): Move gethostname from section
73000         'based on' to section 'lacking' POSIX:2001.
73001
73002 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73003
73004         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73005         to output mode on the same stream.
73006
73007 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73008
73009         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73010         Fix arg typo in previous patch.
73011
73012 2003-09-28  Jim Meyering  <jim@meyering.net>
73013
73014         * lib/error.c: Correct cpp indentation.
73015
73016 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73017
73018         * modules/free: New file.
73019
73020 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73021
73022         * m4/free.m4: New file.
73023
73024 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73025
73026         * lib/minmax.h (MIN, MAX)
73027         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73028         Omit the special code that used __typeof__, since we worry that
73029         it could be more trouble than it's worth.  See:
73030         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73031         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73032
73033         * lib/free.c: New file.
73034
73035 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73036
73037         Trivial fixes to Makefile.am parts of module listings.
73038         * modules/strstr: Append strstr.h to lib_SOURCES.
73039         * modules/strcase: Likewise, for strcase.h.
73040
73041 2003-09-27  Karl Berry  <karl@gnu.org>
73042
73043         * config/mkinstalldirs: update from automake.
73044
73045 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73046
73047         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73048         (error_tail): Do not loop, reallocating temporary buffer, since
73049         the output cannot contain more wide characters than the input
73050         contains bytes, the size must be big enough already.  This avoids
73051         one potential size overflow calculation.  Check for size overflow
73052         when calculating temporary buffer size.  Free temporary buffer
73053         when done, if it was allocated with malloc; this plugs a memory
73054         leak.  Remove casts from void * to pointers, that are no longer
73055         needed now that we're assuming C89 or better.
73056
73057         Merge error changes from glibc.
73058
73059         * lib/error.c, error.h: Update copyright notice header to match glibc.
73060         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73061         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73062         Disable cancellation while printing error.
73063         * lib/error.h: Prepend __ to parameter names.
73064
73065 2003-09-26  Jim Meyering  <jim@meyering.net>
73066
73067         * lib/error.c (error_tail): Move some declarations
73068         into inner scope where the local variables are used.
73069
73070 2003-09-26  Bruno Haible  <bruno@clisp.org>
73071
73072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73073         stpncpy().
73074         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73075
73076 2003-09-26  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73079         (stpncpy): Define as alias for gnu_stpncpy.
73080         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73081
73082 2003-09-25  Simon Josefsson  <jas@extundo.com>
73083
73084         * lib/xgetdomainname.h: New file.
73085         * lib/xgetdomainname.c: New file.
73086
73087 2003-09-25  Simon Josefsson  <jas@extundo.com>
73088             Bruno Haible  <bruno@clisp.org>
73089
73090         * modules/getdomainname: New file.
73091         * modules/xgetdomainname: New file.
73092         * MODULES.html.sh (func_all_modules): Add getdomainname,
73093         xgetdomainname.
73094
73095 2003-09-25  Simon Josefsson  <jas@extundo.com>
73096             Bruno Haible  <bruno@clisp.org>
73097
73098         * m4/getdomainname.m4: New file.
73099
73100 2003-09-25  Simon Josefsson  <jas@extundo.com>
73101             Bruno Haible  <bruno@clisp.org>
73102
73103         * lib/getdomainname.h: New file.
73104         * lib/getdomainname.c: New file.
73105
73106 2003-09-25  Karl Berry  <karl@gnu.org>
73107
73108         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73109
73110 2003-09-25  Karl Berry  <karl@gnu.org>
73111
73112         * config/install-sh: update from automake.
73113
73114 2003-09-25  Bruno Haible  <bruno@clisp.org>
73115
73116         * modules/version-etc-2: New file, from modules/version-etc with
73117         modifications.
73118         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73119
73120 2003-09-25  Bruno Haible  <bruno@clisp.org>
73121
73122         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73123         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73124
73125 2003-09-24  Simon Josefsson  <jas@extundo.com>
73126
73127         * modules/xgethostname: Add xgethostname.h.
73128
73129 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73130
73131         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73132         the buffer associated with the argument.  Bug reported by
73133         Simon Josefsson.
73134
73135 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73136
73137         * README: Document assumptions that 'int' is at least 32 bits
73138         wide, that integer arithmetic is 2's complement without overflow,
73139         that there are no holes in integer values, that adding sizes of
73140         two nonoverlapping objects can't overflow, and that all-bits-zero
73141         yields scalar zero.  Fix spelling and capitalization typos.
73142
73143 2003-09-19  Karl Berry  <karl@gnu.org>
73144
73145         * lib/argp.h: update from libc.
73146
73147 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73148
73149         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73150         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73151         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73152
73153 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73154
73155         * gnulib-tool: Use "test -h", not "test -L", for portability
73156         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73157         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73158         (sed_extract_prog): Issue s commands one-by-one, rather than
73159         using \| in one s command.
73160
73161 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73162
73163         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73164         input error, instead of returning NULL the next time we are called
73165         (and therefore losing track of errno).
73166
73167 2003-09-16  Bruno Haible  <bruno@clisp.org>
73168
73169         * gnulib-tool (func_create_testdir): Warn about duplicated
73170         dependencies.
73171
73172 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73173
73174         * modules/argmatch, modules/fatal, modules/obstack,
73175         modules/xalloc, modules/xgethostname: Sort dependencies by
73176         importance, not alphabetically.
73177
73178 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73179
73180         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73181         fails, so that the caller gets the proper errno.
73182
73183         * lib/readutmp.c (read_utmp): Likewise.
73184         Check for fstat error.  Close stream and free storage
73185         when failing.
73186
73187 2003-09-14  Karl Berry  <karl@gnu.org>
73188
73189         * config/srclist.txt (strdup.c): disable for c89 changes.
73190
73191 2003-09-14  Jim Meyering  <jim@meyering.net>
73192
73193         * lib/getloadavg.c: Correct cpp indentation.
73194         * lib/strdup.c: Likewise.
73195         * lib/vasnprintf.c: Likewise.
73196
73197 2003-09-14  Bruno Haible  <bruno@clisp.org>
73198
73199         * modules/fwriteerror: New file.
73200         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73201
73202 2003-09-14  Bruno Haible  <bruno@clisp.org>
73203
73204         * lib/fwriteerror.h: New file.
73205         * lib/fwriteerror.c: New file.
73206
73207 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73208
73209         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73210         modules/xgethostname, modules/xalloc: Depend on exit.
73211
73212 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73213
73214         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73215
73216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73217         and AC_MINIX, too, so that their extensions are available.
73218
73219         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73220         This macro has been superseded by gl_BACKUPFILE.
73221
73222         More patches to assume C89 or better.
73223
73224         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73225
73226         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73227         unconditionally.
73228         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73229         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73230         Include <string.h>, <stdlib.h> unconditionally.
73231         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73232         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73233         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73234         headers or for string.h.
73235         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73236         or strtoul.
73237
73238         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73239         headers.
73240         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73241         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73242         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73243         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73244         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73245         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73246         memcpy, memset.
73247         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73248         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73249         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73250         strtol.
73251         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73252         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73253         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73254         strtoul.
73255
73256 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73257
73258         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73259         * lib/obstack.c [!defined _LIBC]: Likewise.
73260         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73261         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73262         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73263
73264         More changes to assume C89 or better.
73265
73266         * lib/error.c (error_tail): Assume vprintf.
73267
73268         * lib/argmatch.c (getenv): Remove decl.
73269         * lib/progreloc.c (get_full_program_name): Define via prototype.
73270         * lib/setenv.c (clearenv): Likewise.
73271         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73272         needed.
73273         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73274         (malloc, memcpy): Remove decls.
73275         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73276         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73277         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73278         (memcpy): Remove macro.
73279         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73280         (__P): Remove.  All uses removed.
73281         (PTR): Remove.  All uses changed to void *.
73282         (CHAR_BIT, NULL): Remove.
73283         (spaces, zeros, memset_space, memset_zero)
73284         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73285         Remove.
73286         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73287         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73288         Define with prototype.
73289         Remove now-unnecessary prototype decl.
73290         (extra_args_spec): Assume ANSI C.  All uses changed.
73291         (extra_args_spec_iso): Remove.
73292         (my_strftime, emacs_strftimeu): Define via prototype.
73293         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73294         unconditionally.
73295         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73296         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73297         (strtoul, strtol): Remove decls.
73298         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73299         LONG_MAX): Remove.
73300         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73301         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73302         (LOCALE_PARAM_PROTO): New macro.
73303         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73304         (INTERNAL (strtol), strtol): Define with a prototype.
73305         (PARAMS): Remove.  All uses removed.
73306         * lib/tempname.c: Include <string.h> unconditionally.
73307         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73308         * lib/xgethostname.c (main): Define with a prototype.
73309         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73310         Include <stdlib.h> unconditionally.
73311         (calloc, malloc, realloc, free): Remove decls.
73312         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73313         Include <stdlib.h> unconditionally.  Sort include file names.
73314         (strtod): Remove.
73315         (xstrtod): Define with a prototype.
73316         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73317         (strtol, strtoul): Remove decls.
73318
73319 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73320
73321         More patches to assume C89 or better.
73322         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73323         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73324         string.h, memchr, STDC_HEADERS.
73325
73326 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73327
73328         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73329         Include <stdlib.h>, <string.h> unconditionally.
73330         Remove now-unnecessary cast to char *.
73331         * lib/strnlen.c: Include <string.h> unconditionally.
73332         * lib/yesno.c (yesno): Define with a prototype.
73333
73334 2003-09-11  Bruno Haible  <bruno@clisp.org>
73335
73336         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73337
73338 2003-09-10  Jim Meyering  <jim@meyering.net>
73339
73340         * lib/error.c: Correct indentation of cpp directives.
73341
73342 2003-09-10  Bruno Haible  <bruno@clisp.org>
73343
73344         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73345         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73346         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73347         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73348         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73349         <stdlib.h> and <string.h> checks.
73350         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73351         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73352
73353 2003-09-10  Bruno Haible  <bruno@clisp.org>
73354
73355         * lib/strcspn.c: Include <string.h> unconditionally.
73356         * lib/strpbrk.c: Include <string.h> unconditionally.
73357         * lib/strstr.c: Include <string.h> unconditionally.
73358         * lib/unicodeio.c: Include <string.h> unconditionally.
73359         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73360         * lib/unsetenv.c: Likewise.
73361         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73362         * lib/yesno.c: Include <stdlib.h> unconditionally.
73363         (rpmatch): Add prototype.
73364
73365 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73366
73367         More patches to assume C89 or better.
73368         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73369         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73370         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73371         or for string.h.
73372         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73373         stdlib.h.
73374         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73375         C headers.
73376         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73377         string.h.
73378         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73379         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73380         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73381         or for string.h.
73382         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73383         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73384         C headers.
73385         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73386         memcpy.
73387         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73388         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73389         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73390         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73391         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73392         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73393         string.h, free.
73394         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73395         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73396         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73397         C headers, or for string.h.
73398         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73399         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73400         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73401         headers, memory.h, stdlib.h, string.h, strings.h.
73402         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73403         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73404         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73405         strchr.
73406         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73407         headers, memory.h, string.h.
73408         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73409         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73410         free.
73411         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73412         headers.
73413         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73414         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73415         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73416         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73417         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73418
73419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73420
73421         More K&R removal.
73422
73423         * lib/acosl.c (main): Use a prototype.
73424         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73425         tanl.c: Likewise.
73426
73427         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73428
73429         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73430         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73431         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73432         with a prototype.
73433         * lib/getopt.c (const): Remove macro.
73434         Include <string.h> unconditionally.
73435         (my_index): Remove; all uses changed to strchr.
73436         (strlen): Remove decl.
73437         (exchange): Remove forward decl; no longer needed.
73438         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73439         Define with prototype.
73440         * lib/getopt1.c (const): Remove macro.
73441         (getopt_long, getopt_long_only, main): Define with prototype.
73442
73443         * lib/getugroups.c: Include <string.h> unconditionally.
73444
73445         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73446         (getusershell, setusershell, endusershell, readname, main):
73447         Define with prototypes.
73448
73449         * lib/group-member.c: Include group-member.h first.
73450         Include <stdlib.h> unconditionally.
73451
73452         * lib/hard-locale.c: Include hard-locale.h first.
73453         Include <stdlib.h>, <string.h> unconditionally.
73454
73455         * lib/hash.c (free, malloc): Remove decls.
73456         Include <stdlib.h> unconditionally.
73457
73458         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73459         (getenv): Do not declare.
73460
73461         * lib/idcache.c: Include <string.h> unconditionally.
73462
73463         * lib/long-options.c: Include long-options.h first, to test interface.
73464         Include <stdlib.h> unconditionally.
73465
73466         * lib/makepath.c: Include makepath.h first, to test interface.
73467         Include <stdlib.h> and <string.h> unconditionally.
73468
73469         * lib/linebuffer.c: Include <stdlib.h>.
73470         (free): Remove decl.
73471
73472         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73473         stddef.h. rpl_malloc returns void *, not char *.
73474         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73475         prototype.
73476
73477         * lib/md5.h: Include <limits.h> unconditionally.
73478         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73479         (__P): Remove; all uses removed.
73480         * lib/md5.c: Include "md5.h" first.
73481         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73482         md5_buffer, md5_process_bytes, md5_process_block):
73483         Define with prototypes.
73484         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73485         * lib/sha.c: Include "sha.h" first.
73486         Include <stdlib.h>, <string.h> unconditionally.
73487
73488         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73489         * lib/memcmp.c (__ptr_t): Likewise.
73490         * lib/memrchr.c (__ptr_t): Likewise.
73491         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73492         Include <string.h> unconditionally.
73493         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73494         * lib/memchr.c: Include <stdlib.h> unconditionally.
73495         * lib/memchr.c (LONG_MAX): Remove.
73496         * lib/memrchr.c (LONG_MAX): Likewise.
73497         * lib/memchr.c (__memchr): Define via a prototype.
73498         * lib/memrchr.c (__memrchr): Likewise.
73499         * lib/memcmp.c (__P): Remove, and remove all uses.
73500         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73501         Remove forward decls; no longer needed.
73502         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73503         Use types required by C89 in prototype.
73504
73505         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73506         * lib/savedir.c: Likewise.
73507         * lib/mkdir.c (free): Remove decl.
73508         * lib/rmdir.c (rmdir): Define with a prototype.
73509         * lib/savedir.c: Include savedir.h first, to test interface.
73510
73511         * lib/mktime.c (STDC_HEADERS): Remove.
73512         Include <stdlib.h>, <string.h> unconditionally.
73513
73514         * lib/modechange.c: Include <stdlib.h> unconditionally.
73515         (malloc): Remove decl.
73516
73517         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73518         (free): Remove decl.
73519
73520         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73521         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73522         (This type really should be intptr_t, but that's a C99ism.)
73523         (_obstack_memcpy): Remove: all uses changed to memcpy.
73524         Include <string.h> unconditionally.
73525         (struct obstack): Assume __STDC__ for types of members
73526         chunkfun, freefun, extra_arg.
73527         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73528         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73529         obstack_begin, obstack_specify_allocation,
73530         obstack_specify_allocation_with_arg, obstack_chunkfun,
73531         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73532         Remove unprototyped decls and the macros that use them.
73533         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73534         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73535         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73536         (defined __STDC__ && __STDC__)]:
73537         Remove nonprototyped code.
73538         Include <stdlib.h> unconditionally.
73539         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73540         _obstack_allocated_p, _obstack_free, obstack_free,
73541         _obstack_memory_used, print_and_abort):
73542         Define using prototypes.
73543         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73544         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73545         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73546         obstack_next_free, obstack_object_size, obstack_room) [0]:
73547         Remove unused, unprototyped code.
73548
73549         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73550
73551         * lib/physmem.c (physmem_total, physmem_available, main): Define
73552         with prototypes.
73553
73554         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73555         (main): Define with a prototype.
73556
73557         * lib/posixver.c (getenv): Remove decl.
73558
73559         * lib/putenv.c (malloc): Returns void *, not char *.
73560         Include <string.h> unconditionally.
73561         (strchr, memcpy, NULL): Do not define.
73562
73563         * lib/readtokens.c: Include readtokens.h first, to test interface.
73564         Include <stdlib.h>, <string.h> unconditionally.
73565         (init_tokenbuffer): Define with a prototype.
73566
73567         * lib/regex.c (PARAMS): Remove.  All uses removed.
73568         All uses of _RE_ARGS removed, too.
73569         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73570         unconditionally.
73571         (bzero): Assume memset exists.
73572         (memcmp, memcpy, NULL): Remove.
73573         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73574         char, or assignments to local vars of type signed char.
73575         (init_syntax_once, PREFIX(extract_number_and_incr),
73576         PREFIX(print_partial_compiled_pattern),
73577         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73578         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73579         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73580         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73581         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73582         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73583         wcs_compile_range, byte_compile_range, truncate_wchar,
73584         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73585         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73586         count_mbs_length, wcs_re_match_2_internal,
73587         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73588         PREFIX(alt_match_null_string_p),
73589         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73590         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73591         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73592         now-unnecessary declaration, if any.
73593         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73594         regcomp, regexec):
73595         Remove now-unnecessary casts among pointer types.
73596         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73597
73598         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73599         (free): Remove decl.
73600
73601         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73602
73603         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73604         (free): Remove decl.
73605
73606         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73607         * lib/xgetcwd.c: Likewise.
73608
73609         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73610         (free): Remove decl.
73611
73612         * lib/strchrnul.c (strchrnul): Define with a prototype.
73613         Fix bug: c_in was not converted to char before searching.
73614
73615         The following changes are not K&R related:
73616
73617         * lib/group-member.h: Include <sys/types.h>, so that this file is
73618         self-contained.
73619         * lib/makepath.h: Likewise.
73620
73621         * lib/getusershell.c (readname, default_index, line_size, readname):
73622         Use size_t, not int, for sizes.
73623         (readname): If the size overflows, report an error instead of
73624         looping forever.
73625
73626 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73627
73628         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73629         libc.
73630
73631 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73632
73633         * README: New section: portability guidelines.
73634
73635 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73636
73637         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73638         C89 spec.
73639
73640 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73641
73642         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73643
73644 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73645
73646         Assume C89 or better; remove K&R cruft.
73647         A few of these changes were first proposed by Derek Robert Price
73648         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73649
73650         * lib/addext.c: Include <string.h> unconditionally.
73651         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73652         Don't declare getenv or malloc.
73653
73654         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73655         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73656         (NULL): Remove.
73657         (find_stack_direction, alloca): Use prototypes.
73658
73659         * lib/atexit.c (atexit): Define using a prototype.
73660
73661         * lib/basename.c, dirname.c, stripslash.c:
73662         Include <string.h> unconditionally.
73663
73664         * lib/bcopy.c: Include <stddef.h>.
73665         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73666
73667         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73668
73669         * lib/error.h (error, error_at_line, error_print_progname)
73670         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73671         * lib/error.c: Include error.h first, to check interface.
73672         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73673         (VA_START): Remove; all uses changeed to va_start.
73674         (exit, strerror): Remove decls.
73675         (error_print_progname): Prototype uncondionally.
73676         Don't include <errno.h>; no longer needed.
73677         (private_strerror): Remove.
73678         (error_tail): Always define.
73679         (error, error_at_line): Assume C89 or better; always use prototypes.
73680         * lib/fatal.c: Include "fatal.h" first, to test interface.
73681         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73682         (VA_START): Remove; all uses changed to va_start.
73683         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73684         this case.
73685         (exit): Remove decl.
73686         (fatal): Prototype unconditionally.  Assume va_start works.
73687         Abort at end, to pacify gcc.
73688
73689         * lib/euidaccess.c (main): Define with a prototype.
73690
73691         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73692
73693         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73694
73695         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73696         prototypes.
73697         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73698         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73699         (getenv): Remove decl.
73700         (fnmatch): Define using a prototype.
73701         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73702         (FCT): Define using a prototype.
73703
73704         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73705
73706         * lib/gethostname.c: Include <stddef.h>.
73707         (gethostname): Define with prototype.  Length is size_t, not int.
73708
73709 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73710
73711         Assume C89 or better; remove K&R cruft.
73712         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73713         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73714         string.h, getenv, malloc.
73715         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73716         headers.
73717         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73718         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73719         do not check for strerror.
73720         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73721         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73722         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73723         do not check for doprnt or vprintf.
73724         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73725         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73726
73727 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73728
73729         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73730         getversion.c should have been removed then, but was accidentally
73731         preserved.
73732
73733         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73734         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73735
73736 2003-09-08  Karl Berry  <karl@gnu.org>
73737
73738         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73739                 config, forget about prep.
73740
73741         * config/depcomp, missing: update from automake.
73742
73743 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73744
73745         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73746         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73747
73748 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73749
73750         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73751         copy_tm_result.  Bug reported by Simon Josefsson in
73752         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73753
73754 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73755
73756         * m4/time_r.m4: New file.
73757         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73758         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73759         is. Check for timegm declaration.
73760         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73761         Do not check for gmtime_r.
73762         Replace mktime if __mktime_internal does not exist and if mktime
73763         hasn't been replaced already.
73764
73765 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73766
73767         * lib/time_r.c, lib/time_r.h: New files.
73768
73769         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73770         __localtime_r.
73771         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73772         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73773
73774         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73775         __gmtime_r.
73776         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73777         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73778         Include <time_r.h>.
73779
73780         * lib/timegm.c: Switch to glibc implementation, with the following
73781         changes:
73782         [defined HAVE_CONFIG_H]: Include <config.h>.
73783         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73784         (__mktime_internal) [!defined _LIBC]: New decl.
73785         (__gmtime_r) [!defined _LIBC]: New macro and function.
73786         (timegm): Use a prototype, since gnulib assumes C89.
73787         Do not bother declaring tmp to be const, as it's not really usefu.
73788         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73789         (timegm): Declare only if HAVE_DECL_TIMEGM.
73790
73791 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73792
73793         * MODULES.html.sh (func_all_modules): Add time_r.
73794         * modules/time_r: New file.
73795         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73796         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73797
73798 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73799
73800         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73801         Bug reported by Lute Kamstra in
73802         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73803
73804         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73805         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73806         course with correspondingly smaller numbers for tomorrow and
73807         yesterday.  From Tadayoshi Funaba.  Originally installed into
73808         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73809         coreutils merge?).
73810
73811 2003-08-31  Simon Josefsson  <jas@extundo.com>
73812
73813         * modules/timegm: New file.
73814         * MODULES.html.sh (func_all_modules): Add timegm.
73815
73816 2003-08-31  Simon Josefsson  <jas@extundo.com>
73817
73818         * m4/timegm.m4: New file.
73819
73820 2003-08-31  Simon Josefsson  <jas@extundo.com>
73821
73822         * lib/timegm.h: New file.
73823         * lib/timegm.c: New file.  Based on
73824         wget-1.8.2/src/http.c:mktime_from_utc.
73825
73826 2003-08-31  Karl Berry  <karl@gnu.org>
73827
73828         * lib/argp.h: update from libc.
73829
73830 2003-08-28  Bruno Haible  <bruno@clisp.org>
73831
73832         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73833         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73834         followed by '#define fnmatch fnmatch_posix' gives an error.
73835
73836 2003-08-28  Bruno Haible  <bruno@clisp.org>
73837
73838         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73839         warning on QNX, which defines O_BINARY to 000000.
73840
73841 2003-08-27  Jim Meyering  <jim@meyering.net>
73842
73843         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73844         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73845         would fail after 32.  Reported by Danny Levinson.  Details here:
73846         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73847
73848 2003-08-24  Bruno Haible  <bruno@clisp.org>
73849
73850         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73851         MSVC7 <stdio.h> is included later.
73852
73853 2003-08-22  Simon Josefsson  <jas@extundo.com>
73854
73855         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73856
73857 2003-08-20  Karl Berry  <karl@gnu.org>
73858
73859         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73860
73861 2003-08-20  Bruno Haible  <bruno@clisp.org>
73862
73863         * modules/progname: New file.
73864         * MODULES.html.sh (func_all_modules): Add progname.
73865
73866 2003-08-20  Bruno Haible  <bruno@clisp.org>
73867
73868         * lib/progname.h: New file, from GNU gettext.
73869         * lib/progname.c: New file, from GNU gettext.
73870         * lib/progreloc.c: New file, from GNU gettext.
73871
73872 2003-08-19  Jim Meyering  <jim@meyering.net>
73873
73874         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73875         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73876
73877 2003-08-19  Bruno Haible  <bruno@clisp.org>
73878
73879         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73880         more.
73881
73882 2003-08-19  Bruno Haible  <bruno@clisp.org>
73883
73884         * lib/xstrdup.c: Assume <string.h> exists.
73885
73886 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73887
73888         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73889         in makefile rules.
73890
73891 2003-08-18  Jim Meyering  <jim@meyering.net>
73892
73893         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73894         * m4/lib-ld.m4: Likewise.
73895
73896 2003-08-18  Jim Meyering  <jim@meyering.net>
73897
73898         * lib/setenv.h: Indent nested cpp directive.
73899         * lib/vasnprintf.c: Remove trailing blanks.
73900
73901 2003-08-17  Simon Josefsson  <jas@extundo.com>
73902
73903         * modules/xstrndup: New file.
73904         * MODULES.html.sh (func_all_modules): Add xstrndup.
73905
73906 2003-08-17  Simon Josefsson  <jas@extundo.com>
73907
73908         * modules/argp: Fix autoconf macro name. Add more dependencies.
73909
73910 2003-08-17  Simon Josefsson  <jas@extundo.com>
73911
73912         * m4/xstrndup.m4: New file.
73913
73914 2003-08-17  Simon Josefsson  <jas@extundo.com>
73915
73916         * m4/argp.m4: New file.
73917
73918 2003-08-17  Simon Josefsson  <jas@extundo.com>
73919             Bruno Haible  <bruno@clisp.org>
73920
73921         * lib/xstrndup.h: New file.
73922         * lib/xstrndup.c: New file.
73923
73924 2003-08-17  Bruno Haible  <bruno@clisp.org>
73925
73926         * modules/strndup (Files, Include): Add lib/strndup.h.
73927
73928 2003-08-17  Bruno Haible  <bruno@clisp.org>
73929
73930         * modules/euidaccess (Files): Add lib/euidaccess.h.
73931
73932 2003-08-17  Bruno Haible  <bruno@clisp.org>
73933
73934         * lib/strndup.h: New file.
73935
73936 2003-08-17  Bruno Haible  <bruno@clisp.org>
73937
73938         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73939         like AC_GNU_SOURCE.
73940         * modules/extensions (configure.ac): Comment out the invocation of
73941         gl_USE_SYSTEM_EXTENSIONS.
73942
73943 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73944
73945         Merges from coreutils, etc.
73946         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73947         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73948         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73949         fixing a typo.
73950         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73951         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73952
73953 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73954
73955         Document merge from coreutils.
73956         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73957         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73958         * modules/utime: Add m4/utimes-null.m4.
73959
73960 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73961
73962         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73963         space, undoing this 2003-08-12 change:
73964         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73965
73966 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73967
73968         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73969         strtoul.c from libc, undoing this 2003-08-12 change:
73970         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73971
73972 2003-08-16  Jim Meyering  <jim@meyering.net>
73973
73974         Merges from coreutils.
73975         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73976         prefix.  Adjust cache variables similarly.  Create 500 rather than
73977         just 300 files, to exercise bug on Darwin6.5, too.
73978         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73979         $missing_dir.
73980         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73981         AM_SYS_POSIX_TERMIOS.
73982         Reported by mkc@mathdogs.com.
73983         Also change use of $am_cv_sys_posix_termios
73984         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73985         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73986         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73987         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73988         in /proc/mounts until it finds one with matching device number.  This
73989         is unnecessary when the FILE argument *is* a mount point.  No stat call
73990         is necessary in that case.  So, disable the statvfs-testing code on
73991         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73992         as RedHat bug# 84846.
73993         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73994         to 1MB, so as not to render systems with no stack size limit (e.g.,
73995         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73996         Include <unistd.h>.  On some systems,
73997         it is required for the definition of _SC_PAGESIZE.
73998
73999 2003-08-16  Jim Meyering  <jim@meyering.net>
74000
74001         Merge from coreutils.
74002         * lib/xstrtoimax.c: #else #if -> #elif.
74003         * lib/xstrtoumax.c: Likewise.
74004
74005 2003-08-16  Jim Meyering  <jim@meyering.net>
74006
74007         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74008         * m4/utimes.m4: Removed.
74009         * m4/utimes-null.m4: Renamed from utimes.m4.
74010
74011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74012         to 1MB, so as not to render systems with no stack size limit (e.g.,
74013         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74014         Include <unistd.h>.  On some systems,
74015         it is required for the definition of _SC_PAGESIZE.
74016
74017 2003-08-16  Jim Meyering  <jim@meyering.net>
74018         and Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         Merges from coreutils, etc.
74021
74022         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74023         using the latest version from cvs.  This avoids problems with #line
74024         directives using a vendor (Sun) compiler.
74025         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74026         Don't set GETGROUPS_LIB here; now it's
74027         done via getgroups.m4's wrapper function.
74028         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74029         rather than just in sh-util/configure.in, so that the
74030         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74031         same.
74032         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74033         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74034         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74035         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74036         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74037         Remove code that is now done by the newly-required macros.
74038         Append $(EXEEXT) to DF_PROG.
74039         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74040         Do not invoke or require the following here,
74041         since prereq.m4 or some gnulib .m4 now does this for us:
74042         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74043         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74044         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74045         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74046         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74047         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74048         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74049         AC_FUNC_OBSTACK.
74050         Do not replace the following functions, as this is now the job
74051         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74052         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74053         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74054         atexit getpass, strdup, getpagesize.
74055         Replace 'raise'.
74056         Do not check for the following functions, as this is now the job
74057         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74058         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74059         setregid.
74060         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74061         Check for sys/sysctl.h.
74062         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74063         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74064         of checking for ssize_t ourselves.
74065
74066         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74067         Require every macro that gnulib/modules/* suggests for us.
74068         (jm_PREREQ_ADDEXT): New macro.
74069         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74070         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74071
74072         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74073         (gl_PHYSMEM): Use it.
74074         Also check for `table' function.
74075         Check for new headers and functions.
74076         Add check for sys/sysmp.h.
74077         With suggestions from Kaveh Ghazi.
74078         Ignore headers that are present but cannot be compiled.  This
74079         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74080         C 5.4.
74081
74082 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74083
74084         Document merge from coreutils.
74085         * modules/userspec: Depend on posixver.
74086         * modules/strftime: Depend on tzset.
74087
74088 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74089
74090         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74091         rather than tab, after '#' in shell-script copyright notices.
74092         Suggested by Bruno Haible.
74093
74094 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74095
74096         * config/srclist-update: Use three spaces, rather than tab, after '#'
74097         in shell-script copyright notices.  Suggested by Bruno Haible.
74098         Remove unnecessary parenthesization in regular expression.
74099
74100 2003-08-15  Jim Meyering  <jim@meyering.net>
74101
74102         Merge from coreutils.
74103         * lib/xgethostname.c: Include <stdlib.h>.
74104         (xghostname): Don't exit for anything other than memory-related
74105         failure; just return NULL.
74106         * lib/userspec.c: Include "posixver.h".
74107         (parse_user_spec): Accept `.' as a separator only
74108         in pre-POSIX-200112 mode.
74109         * lib/strtoimax.c: Use #elif rather than #else #if.
74110         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74111         Remove function, now that we can rely on a working tzset function.
74112         [!_LIBC]: Ensure that the required autoconf test has been run.
74113         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74114         Use underlying_strftime for %r.
74115         * lib/sha.c: Merge in some clean-up and optimization changes from
74116         glibc.
74117         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74118         Ensure that it is a multiple of 64.
74119         Rearrange loop exit tests so as to avoid performing an
74120         additional fread after encountering an error or EOF.
74121         * lib/realloc.c: Update copyright date.
74122
74123 2003-08-15  Jim Meyering  <jim@meyering.net>
74124         and Paul Eggert  <eggert@twinsun.com>
74125
74126         Merge from coreutils.
74127         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74128         member but strut utmpx does not.  Needed for AIX 4.3.3.
74129         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74130
74131 2003-08-15  Jim Meyering  <jim@meyering.net>
74132         and Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         Merges from coreutils, etc.
74135         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74136         Require gl_FUNC_TZSET_CLOBBER.
74137         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74138         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74139         members.
74140
74141 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74142
74143         Help the merge from coreutils.
74144         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74145         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74146         * m4/tzset.m4: Use it too.
74147
74148 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74149
74150         * modules/tzset: New file.
74151
74152 2003-08-14  Jim Meyering  <jim@meyering.net>
74153
74154         Merges from coreutils.
74155         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74156         variable names, rather than @FNMATCH_H@.
74157         * modules/alloca: Likewise for $(ALLOCA_H).
74158
74159         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74160         the three copies of the literal target, `fnmatch.h'.
74161         * modules/alloca (alloca.h): Likewise.
74162
74163 2003-08-14  Jim Meyering  <jim@meyering.net>
74164
74165         Merge from coreutils.
74166         * m4/tzset.m4: New file.
74167         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74168         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74169         otherwise, AIX 5.1 systems would end up using the latter.
74170         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74171         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74172         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74173         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74174
74175 2003-08-14  Jim Meyering  <jim@meyering.net>
74176
74177         Merge from coreutils.
74178         * lib/obstack.h: Whitespace changes.
74179         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74180         and xcalloc return values.
74181         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74182         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74183         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74184         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74185         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74186         error from mntctl.
74187         Use mntctl's return value to drive the entry-processing loop, since
74188         we can't rely on the value of the vmt_length member in the last
74189         entry.  On some systems doing so could result in exhausting
74190         virtual memory.  Based in part on a patch from Mike Jetzer.
74191
74192 2003-08-14  Jim Meyering  <jim@meyering.net>
74193         and Paul Eggert  <eggert@twinsun.com>
74194
74195         Merges from coreutils, plus other fixes.
74196         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74197         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74198         for credits and details.  Thanks to Kaveh Ghazi for helping
74199         to keep these files in sync.
74200         (ARRAY_SIZE): Define it.
74201         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74202         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74203         (memcasecmp): Don't assume size_t fits in unsigned int.
74204         Remove casts and duplicate code.
74205         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74206         (memcpy): Remove definition.
74207         Merge in some clean-up and optimization changes from glibc.
74208         [BLOCKSIZE]: Move definition to top of file.
74209         Ensure that it is a multiple of 64.
74210         Rearrange loop exit tests so as to avoid performing an
74211         additional fread after encountering an error or EOF.
74212         * lib/md5.h (md5_uintptr): Define.
74213         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74214         return to the initial working directory.  Preserve errno
74215         for caller.
74216         * lib/idcache.c: Include "xalloc.h".
74217         (xmalloc, xrealloc): Remove decls.
74218         (getuser): Remove casts no longer required in C89.
74219         * lib/human.c: Include stdio.h, for sprintf.
74220         * lib/group-member.c: Include "xalloc.h".
74221         (xmalloc, xrealloc): Remove decls.
74222         (get_group_info): Remove casts no longer required in C89.
74223         * lib/getusershell.c (readname): Remove casts no longer required in
74224         C89.
74225         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74226         * lib/getline.c: Whitespace fix, from coreutils.
74227
74228 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74229
74230         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74231         Check for isascii.
74232
74233         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74234         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74235         Undo previous (whitespace-only) change.
74236
74237 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74238
74239         * lib/exclude.c: Include <ctype.h>
74240         (IN_CTYPE_DOMAIN): New macro.
74241         (is_space): New fn.
74242         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74243         and empty lines.
74244
74245         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74246         Undo previous (whitespace-only) change.
74247
74248 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74249
74250         * config/srclist-update: Change update back to the old behavior,
74251         leaving whitespace alone.  Use one 'sed' command rather than a
74252         pipeline.
74253         (fixlicense): Now a variable, not a function.
74254         (remove_trailing_blanks): Remove.
74255         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74256         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74257         Undo previous (whitespace-only) change.
74258
74259 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74260
74261         Merge from coreutils.
74262         * modules/euidaccess: Add lib_SOURCES, include for new
74263         file euidaccess.h
74264
74265 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74266
74267         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74268         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74269         Normalize leading white space and remove trailing white space.
74270
74271         Merge from coreutils
74272         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74273
74274         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74275         0.12.1.  These files are now being upgraded automatically by
74276         ../config/srclist-update.
74277
74278 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74279
74280         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74281         Normalize leading white space and remove trailing white space.
74282         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74283         notice, as per ../config/srclist-update.
74284
74285         Merge from coreutils.
74286         * lib/euidaccess.h: New file.
74287         * lib/euidaccess.c: Include it.
74288         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74289         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74290         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74291
74292 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74293
74294         * config/srclist-update: Add copyright notice.
74295         (remove_id_lines, remove_trailing_blanks): New constants.
74296         (fixfile): Use them to normalize spacing a bit in copied files.
74297         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74298         Normalize leading white space and remove trailing white space.
74299
74300         * config/texinfo.tex: Sync with texinfo.
74301
74302         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74303         strtoul.c from libc, to merge coreutils whitespace changes.
74304
74305         * config/srclist.txt: Get the following m4 files from gettext:
74306         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74307         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74308         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74309         wint_t.m4.
74310
74311 2003-08-12  Karl Berry  <karl@gnu.org>
74312
74313         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74314         been made.
74315
74316 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74317
74318         * modules/gnu-source, m4/gnu-source.m4:
74319         Remove; we're assuming Autoconf 2.54 or later now.
74320         Suggested by Bruno Haible.
74321         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74322
74323 2003-08-11  Bruno Haible  <bruno@clisp.org>
74324
74325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74326
74327 2003-08-11  Bruno Haible  <bruno@clisp.org>
74328
74329         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74330         (vasnprintf): Use it instead of wcslen.
74331
74332 2003-08-11  Bruno Haible  <bruno@clisp.org>
74333
74334         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74335         value to ensure that _Bool promotes to int. Use #define for _Bool when
74336         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74337
74338 2003-08-10  Karl Berry  <karl@gnu.org>
74339
74340         * lib/regex.h: update from libc (whitespace fix).
74341
74342 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74343
74344         Merge some files from coreutils.  These changes were
74345         originally made by Jim Meyering.
74346         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74347         many older Unixes require this.
74348         * lib/alloca.c (alloca): Remove cast to argument of free;
74349         no longer needed in C89.
74350         * lib/alloca_.h, regex.h: Fix white space to match
74351         what GNU indent does.
74352
74353 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74354
74355         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74356         apparently Emacs's Unicode mode got confused before my 2003-08-05
74357         checkin.
74358
74359 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74360
74361         * m4/extensions.m4: New file.
74362         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74363         Require gl_USE_SYSTEM_EXTENSIONS.
74364         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74365         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74366
74367 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74368
74369         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74370         * modules/extensions, modules/gnu-source: New files.
74371         * modules/timespec, modules/unlocked-io: Depend on extensions.
74372
74373 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74374
74375         * modules/restrict: New file.
74376         * MODULES.html.sh (func_all_modules): Add restrict.
74377         * modules/regex: Depend on restrict.
74378
74379 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74380
74381         * m4/restrict.m4: New file.
74382         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74383
74384 2003-08-07  Bruno Haible  <bruno@clisp.org>
74385
74386         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74387         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74388
74389 2003-08-07  Bruno Haible  <bruno@clisp.org>
74390
74391         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74392         makes the module 'getndelim2' compatible with the module 'getline'.
74393
74394 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74395
74396         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74397         byte with "\201" to avoid glitches when editing that source file
74398         with multi-gnome-terminal.
74399
74400 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74401
74402         * lib/bumpalloc.h: Remove.
74403
74404 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74405
74406         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74407         * modules/bumpalloc: Remove.
74408
74409 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74410
74411         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74412         GNU coding style.
74413
74414         Merge from coreutils.
74415         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74416         1. From glibc.
74417         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74418         from Karl Berry, implemented by Jim Meyering.
74419         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74420         from Dmitry V. Levin.
74421         Remove anachronistic cast of xrealloc.
74422         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74423         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74424         type. Otherwise, it wouldn't compile with at least /bin/cc on
74425         ymp-cray-unicos9.0.2.X.
74426         Combine two mostly-identical uses of alloca into one.
74427         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74428
74429 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74430
74431         [From Emacs.]
74432
74433         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74434         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74435         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74436         obsolete NLIST_NAME_UNION.
74437         [__GNU__]: Undef BSD and FSCALE.
74438         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74439
74440 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74441
74442         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74443         an enum type, so that it's guaranteed to promote to int.  See:
74444         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74445
74446 2003-08-03  Karl Berry  <karl@gnu.org>
74447
74448         * config/depcomp: update from automake.
74449
74450 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74451
74452         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74453         (strerror): Don't assume that a printable int fits in 14 bytes.
74454
74455 2003-07-31  Bruno Haible  <bruno@clisp.org>
74456
74457         * modules/getpass-gnu: New file.
74458         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74459
74460 2003-07-31  Bruno Haible  <bruno@clisp.org>
74461
74462         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74463
74464 2003-07-24  Karl Berry  <karl@gnu.org>
74465
74466         * config/missing: update from automake.
74467
74468 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74469             Bruno Haible  <bruno@clisp.org>
74470
74471         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74472         * lib/getline.c (getline, getdelim): Likewise.
74473         Remove _GNU_SOURCE define; now it's defined in config.h through
74474         m4/getline.m4.
74475
74476 2003-07-23  Karl Berry  <karl@gnu.org>
74477
74478         * config/config.sub: update from prep.
74479
74480 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74481
74482         * modules/xalloc (Depends-on): Add exitfail.
74483         * modules/xmemcoll: Likewise.
74484
74485 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74486
74487         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74488         over-parenthesization in macros.
74489
74490         Sync with coreutils.
74491
74492         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74493         required by C99.
74494
74495         Use `exit_failure' for xalloc and xmemcoll instead of their own
74496         private exit-failure variables.
74497         * lib/xalloc.h (xalloc_exit_failure): Remove.
74498         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74499         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74500         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74501         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74502         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74503
74504 2003-07-20  Jim Meyering  <jim@meyering.net>
74505
74506         * modules/closeout (Depends-on): Add exitfail.
74507         Suggestion from Bruno Haible.
74508
74509 2003-07-19  Karl Berry  <karl@gnu.org>
74510
74511         * config/config.sub: update from prep.
74512
74513 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74514
74515         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74516         Remove.
74517         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74518         to test that it can stand by itself.  Include "exitfail.h".
74519         Clients should set exit_failure instead.
74520         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74521
74522 2003-07-18  Bruno Haible  <bruno@clisp.org>
74523
74524         * modules/getndelim2: New file.
74525         * modules/getline: Share files with module getndelim2.
74526         * modules/getnline: Depend on getndelim2 instead of sharing files with
74527         it. Add getnline.c to lib_SOURCES.
74528         * MODULES.html.sh (func_all_modules): Add getndelim2.
74529
74530 2003-07-18  Bruno Haible  <bruno@clisp.org>
74531
74532         * m4/getndelim2.m4: New file.
74533         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74534         invoke gl_PREREQ_GETNDELIM2.
74535         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74536         gl_PREREQ_GETNDELIM2.
74537         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74538         gl_GETNDELIM2.
74539
74540 2003-07-18  Bruno Haible  <bruno@clisp.org>
74541
74542         * lib/getndelim2.h: New file.
74543         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74544         getndelim2.h.
74545         (getndelim2): Make non-static. Change return type to ssize_t.
74546         * lib/getline.h: Change argument names.
74547         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74548         * lib/getnline.c: Include getndelim2.h.
74549
74550 2003-07-18  Andreas Schwab  <schwab@suse.de>
74551
74552         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74553
74554 2003-07-17  Karl Berry  <karl@gnu.org>
74555
74556         * config/config.sub: update from prep.
74557
74558 2003-07-17  Bruno Haible  <bruno@clisp.org>
74559
74560         * modules/getnline: New file.
74561         * modules/getline: Add lib/getndelim2.c to source file list.
74562         * MODULES.html.sh (func_all_modules): Add getnline.
74563
74564 2003-07-17  Bruno Haible  <bruno@clisp.org>
74565
74566         * m4/getnline.m4: New file.
74567
74568 2003-07-17  Bruno Haible  <bruno@clisp.org>
74569
74570         * m4/Makefile.am.in: Remove file.
74571         * m4/Makefile.am: Remove file.
74572         * m4/Makefile.in: Remove file.
74573
74574 2003-07-17  Bruno Haible  <bruno@clisp.org>
74575
74576         * lib/getnline.h: New file.
74577         * lib/getnline.c: New file.
74578         * lib/getndelim2.c: New file, extracted from getline.c.
74579         (getndelim2): Renamed from getdelim2, with added nmax argument.
74580         * lib/getline.c: Include getndelim2.c.
74581         (getdelim2): Moved out to getndelim2.c.
74582         (getline, getdelim): Update.
74583
74584 2003-07-17  Bruno Haible  <bruno@clisp.org>
74585
74586         * lib/Makefile.am: Remove file.
74587         * lib/Makefile.in: Remove file.
74588
74589 2003-07-17  Bruno Haible  <bruno@clisp.org>
74590
74591         * configure.in: Remove file.
74592         * Makefile.in: Remove file.
74593
74594 2003-07-17  Bruno Haible  <bruno@clisp.org>
74595
74596         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74597
74598 2003-07-16  Karl Berry  <karl@gnu.org>
74599
74600         * config/srclist-update: was running fixlicense twice, which caused
74601                 texinfo.tex to be nullified for some reason.  Simplify,
74602                 $gplsrc is no longer needed as far as I can see?
74603
74604 2003-07-16  Jim Meyering  <jim@meyering.net>
74605
74606         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74607
74608 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74609
74610         * config/srclist.txt: Get the following files from gettext-runtime/intl
74611         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74612         ref-del.sin.  From Bruno Haible.
74613         * config/srclist-update (fixfile): Change grep pattern again, since the
74614         previous fix didn't work (there was another trailing $).  Use
74615         '[$]' to escape the $s.
74616
74617 2003-07-15  Karl Berry  <karl@gnu.org>
74618
74619         * lib/vasnprintf.c: update from gettext.
74620
74621 2003-07-15  Karl Berry  <karl@gnu.org>
74622
74623         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74624         gets expanded when surrounded by '$'.
74625
74626 2003-07-15  Jim Meyering  <jim@meyering.net>
74627
74628         * modules/save-cwd: Don't depend on error.  From Derek Price.
74629
74630 2003-07-15  Jim Meyering  <jim@meyering.net>
74631
74632         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74633
74634 2003-07-14  Simon Josefsson  <jas@extundo.com>
74635
74636         * modules/mempcpy: New file.
74637         * MODULES.html.sh (func_all_modules): Add mempcpy.
74638
74639 2003-07-14  Simon Josefsson  <jas@extundo.com>
74640
74641         * m4/mempcpy.m4: New file.
74642
74643 2003-07-14  Simon Josefsson  <jas@extundo.com>
74644
74645         * lib/mempcpy.h: New file.
74646         * lib/mempcpy.c: New file.
74647
74648 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74649
74650         * modules/getdate, modules/posixtm: Depend on mktime.
74651
74652 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74653
74654         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74655         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74656         unicodeio.c, unicodeio.h, unlocked-io.h:
74657         Switch from LGPL to GPL.
74658
74659 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74660
74661         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74662         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74663         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74664         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74665         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74666         updated automatically by ../config/srclist-update.  This changes
74667         their license from LPGL to GPL.
74668
74669 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74670
74671         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74672         assumed to refer to the root of the most recent stable gettext version.
74673         * config/srclistvars.sh: Add defaults for eggert.
74674         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74675         Match "This program" as well as "The program".  This is needed
74676         for gettext.
74677
74678 2003-07-14  Jim Meyering  <jim@meyering.net>
74679
74680         Don't emit diagnostics.  Let callers do that.
74681         * lib/save-cwd.c: Don't include "error.h".
74682         (save_cwd): Don't call error.  Ensure that errno is valid
74683         when returning nonzero.
74684
74685         * lib/save-cwd.h (restore_cwd): Update prototype.
74686         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74687         Simplify.  Don't call error upon failure.  Let callers do that.
74688         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74689         when auditing is enabled.  But don't bother updating the #if.
74690
74691 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74692
74693         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74694         it breaks C++ compilation.
74695         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74696
74697 2003-07-10  Simon Josefsson  <jas@extundo.com>
74698
74699         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74700
74701 2003-07-10  Jim Meyering  <jim@meyering.net>
74702
74703         * m4/clock_time.m4: Remove trailing blank.
74704         * m4/intmax_t.m4: Likewise.
74705
74706 2003-07-10  Jim Meyering  <jim@meyering.net>
74707
74708         * lib/vasnprintf.c: Remove trailing blanks.
74709         Make cpp indentation consistent.
74710
74711 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74712
74713         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74714         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74715         Switch from LGPL to GPL.
74716
74717 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74718
74719         * config/srclist.txt: Sort sublists.  Add
74720         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74721         that differ from gnulib for one reason or another; we'd like this list
74722         to be smaller but for now let's document what we have.
74723
74724 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74725
74726         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74727         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74728         and sweeter "eval x=$x".
74729         * config/srclist.txt: Get lib/argp* from glibc.
74730
74731 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74732
74733         * lib/mktime.c: Fix some boundary cases and remove need for floating
74734         point.
74735
74736         Issue a compile-time diagnostic if time_t is floating point, or if
74737         two's complement arithmetic is not in effect, or if arithmetic
74738         right shift does not propagate the sign.  These assumptions were
74739         all in the original code but they weren't checked.
74740
74741         (TIME_T_MIDPOINT, verify): New macros.
74742         (__isleap): Remove; it has integer overflow problems.
74743         (leapyear): New function, without those problems.
74744         (ydhms_tm_diff): Remove; splitting into two parts.
74745         (ydhms_diff): New function, containing the arithmetic part of
74746         the old ydhms_tm_diff function.  Issue a compile-time
74747         diagnostic if we are not using C99 integer division.
74748         Avoid casts when possible.
74749         (guess_time_tm): New function, containing the checking part of
74750         the old ydhms_tm_diff function.  Return the new value, rather than
74751         the difference between it and the old.  Accept a new argument T
74752         so that *T specifies the old value.  Check for overflow in the result.
74753
74754         (__mktime_internal): Use a time_t offset, not a long int offset.
74755         This undoes the 2003-06-04 change, which is no longer needed now
74756         that we have better overflow checking.
74757         (localtime_offset): Likewise.
74758
74759         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74760         and long are 64-bit but int is only 32-bit.
74761         (ydhms_diff): Use long int to store year1 and yday1.
74762         Issue a compile-time diagnostic if long int is not wide enough.
74763
74764         (__mktime_internal): Use long int to store adjusted year and yday.
74765         Use plain C rather than preprocessor commands, if that doesn't
74766         affect efficiency.
74767         Check for overflow (and try to repair) after each probe
74768         rather than checking only at the very end.  This avoids some bugs
74769         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74770         does not equal GMT offset at maximum time).
74771         Use integer to check for overflow rather than floating point; this
74772         is more portable to non-IEEE hosts, and is a tad faster.
74773         When we detect that we are oscillating between two values,
74774         don't check whether tm_isdst has the requested value, since
74775         we already know the answer.  When tm_isdst has the wrong value,
74776         use a different heuristic to find the right one, based on the
74777         extreme values actually observed in practice in tz2003a,
74778         rather than the (overly optimistic) "previous 3 calendar quarters".
74779
74780         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74781         "T const" to accommodate glibc style.
74782         (check_result): Use less-confusing report format.  "long" -> "long int.
74783         (main): Likewise.
74784         Don't loop if the iteration overflows time_t.
74785         Allow a negative step in the iteration.
74786
74787 2003-07-06  Karl Berry  <karl@gnu.org>
74788
74789         * config/depcomp: update from automake.
74790         * config/config.sub: update from prep.
74791
74792 2003-07-03  Karl Berry  <karl@gnu.org>
74793
74794         * config/config.guess: update from prep.
74795
74796 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74797
74798         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74799         xreadlink.c now includes it unconditionally.
74800
74801 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74802
74803         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74804         having it depend on HAVE_SYS_TYPES_H.
74805
74806 2003-07-01  Bruno Haible  <bruno@clisp.org>
74807
74808         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74809         <sys/types.h> should be sufficient.
74810         Reported by Paul Eggert.
74811
74812 2003-06-26  Karl Berry  <karl@gnu.org>
74813
74814         * config/depcomp: update from automake.
74815
74816 2003-06-26  Bruno Haible  <bruno@clisp.org>
74817
74818         * modules/human: Depend on module stdbool.
74819
74820 2003-06-25  Bruno Haible  <bruno@clisp.org>
74821
74822         * modules/readlink: New file.
74823         * modules/xreadlink: Depend on it.
74824         * MODULES.html.sh (func_all_modules): Add readlink.
74825
74826 2003-06-25  Bruno Haible  <bruno@clisp.org>
74827
74828         * m4/readlink.m4: New file.
74829
74830 2003-06-25  Bruno Haible  <bruno@clisp.org>
74831
74832         * lib/readlink.c: New file.
74833
74834 2003-06-22  Karl Berry  <karl@gnu.org>
74835
74836         * config/srclist.txt: update mkinstalldirs from automake.
74837         * config/mkinstalldirs: update.
74838
74839 2003-06-22  Bruno Haible  <bruno@clisp.org>
74840
74841         Portability to mingw32.
74842         * m4/ssize_t.m4: New file, from GNU gettext.
74843         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74844         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74845
74846 2003-06-22  Bruno Haible  <bruno@clisp.org>
74847
74848         * modules/safe-read: Add m4/ssize_t.m4.
74849         * modules/xreadlink: Add m4/ssize_t.m4.
74850
74851 2003-06-20  Bruno Haible  <bruno@clisp.org>
74852
74853         Assume C89, so PARAMS isn't needed.
74854         * lib/unicodeio.h (PARAMS): Remove.
74855         * lib/unicodeio.c: Don't use PARAMS.
74856
74857 2003-06-18  Karl Berry  <karl@gnu.org>
74858
74859         * config/config.{guess,sub}: update from prep.
74860
74861 2003-06-18  Jim Meyering  <jim@meyering.net>
74862
74863         Merge changes from coreutils.
74864         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74865         Remove explicit declarations of xmalloc and realloc.
74866         Include xalloc.h.
74867         (read_utmp): Remove anachronistic cast of xmalloc.
74868
74869 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74870
74871         Assume C89, so PARAMS isn't needed.
74872         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74873         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74874         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74875         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74876         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74877         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74878         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74879         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74880         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74881         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74882         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74883         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74884         no longer needed. Anyway, config.h should always be included before any
74885         other file.
74886
74887 2003-06-11  Simon Josefsson  <jas@extundo.com>
74888
74889         * modules/sysexits: New file.
74890         * MODULES.html.sh (func_all_modules): Add sysexits.
74891
74892 2003-06-11  Simon Josefsson  <jas@extundo.com>
74893
74894         * lib/sysexit_.h: New file.
74895
74896 2003-06-11  Derek Price  <derek@ximbiot.com>
74897
74898         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74899         necessary.
74900
74901 2003-06-11  Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/sysexits.m4: New file.
74904
74905 2003-06-10  Simon Josefsson  <jas@extundo.com>
74906
74907         * lib/argp.h: New file, from glibc.
74908         * lib/argp-ba.c: New file, from glibc.
74909         * lib/argp-eexst.c: New file, from glibc.
74910         * lib/argp-fmtstream.c: New file, from glibc.
74911         * lib/argp-fmtstream.h: New file, from glibc.
74912         * lib/argp-fs-xinl.c: New file, from glibc.
74913         * lib/argp-help.c: New file, from glibc.
74914         * lib/argp-namefrob.h: New file, from glibc.
74915         * lib/argp-parse.c: New file, from glibc.
74916         * lib/argp-pv.c: New file, from glibc.
74917         * lib/argp-pvh.c: New file, from glibc.
74918         * lib/argp-xinl.c: New file, from glibc.
74919
74920 2003-06-10  Simon Josefsson  <jas@extundo.com>
74921
74922         * modules/strchrnul: New file.
74923
74924 2003-06-10  Simon Josefsson  <jas@extundo.com>
74925
74926         * modules/argp: New file.
74927
74928 2003-06-10  Simon Josefsson  <jas@extundo.com>
74929
74930         * m4/strchrnul.m4: New file.
74931
74932 2003-06-10  Simon Josefsson  <jas@extundo.com>
74933
74934         * lib/strchrnul.h: New file.
74935         * lib/strchrnul.c: New file.
74936
74937 2003-06-10  Bruno Haible  <bruno@clisp.org>
74938
74939         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74940
74941 2003-06-07  Karl Berry  <karl@gnu.org>
74942
74943         * config/config.{guess,sub}: update from prep.
74944
74945 2003-06-07  Jim Meyering  <jim@meyering.net>
74946
74947         * modules/strtod: Use $(...) notation, not @...@ for
74948         AC_REPLACE'd variables.
74949         * modules/localcharset: Likewise.
74950
74951 2003-06-07  Jim Meyering  <jim@meyering.net>
74952
74953         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74954         in place of my name in the copyright comment.
74955         Remove definition and uses of __P.
74956
74957         From coreutils.
74958         * lib/stat.c: Don't declare xmalloc explicitly.
74959         Instead, include "xalloc.h".
74960         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74961         xrealloc, and xcalloc return values.
74962         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74963         Improve comment.
74964         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74965
74966 2003-06-07  Bruno Haible  <bruno@clisp.org>
74967
74968         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74969         avoid AC_CONFIG_LINKS.
74970         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74971         fnmatch.h, to avoid AC_CONFIG_LINKS.
74972         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74973
74974 2003-06-07  Bruno Haible  <bruno@clisp.org>
74975
74976         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74977         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74978         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74979         directory.
74980         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74981         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74982         directory.
74983
74984 2003-06-06  Jim Meyering  <jim@meyering.net>
74985
74986         Merge from coreutils.
74987         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74988         Consolidate declarations and initializations of *_base* locals.
74989
74990         Merge from coreutils.
74991         This avoids a core dump on systems without GNU putenv,
74992         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74993         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74994         (unsetenv): New static function, from GNU libc.
74995         (rpl_putenv): Use it.
74996
74997         * lib/modechange.c: Remove trailing blanks.
74998
74999         Merge from coreutils.
75000         * lib/fsusage.c: Remove declaration of statfs.
75001         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75002
75003         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75004
75005 2003-06-06  Jim Meyering  <jim@meyering.net>
75006
75007         * lib/stdbool_.h: Renamed from stdbool.h.in.
75008
75009 2003-06-06  Jim Meyering  <jim@meyering.net>
75010             Bruno Haible  <bruno@clisp.org>
75011
75012         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75013         Adjust Makefile.am snippet not to redirect directly to target.
75014         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75015
75016 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75017
75018         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75019         mismatch, look in future quarters as well as past.  This fixes a
75020         bug when processing fall-backwards gaps immediately after a long
75021         period of daylight-saving time.
75022
75023         * lib/mktime.c: Assume freestanding C89 or better.
75024         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75025         (__P): Remove; not used.
75026         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75027         (mktime, not_equal_tm, print_tm, check_result,
75028         main): Use prototypes.  Use const * where appropriate.
75029         (main): Fix typo in testing code that uncovered by above changes.
75030         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75031
75032 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75033
75034         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75035         locale.h, localeconv.  This merges changes from coreutils.
75036
75037         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75038         It can be removed after the next Autoconf is released.
75039         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75040         needed.
75041
75042 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75043
75044         * lib/mktime.c: Fix Debian bug 177940
75045         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75046         (localtime_offset): Now long int, not time_t, because we want it
75047         to be guaranteed to be signed.  All uses changed.
75048         (__mktime_internal): If overflow would occur when adding offset,
75049         don't add it.
75050
75051         Merge 'human' changes from coreutils.  Rewrite to support
75052         locale-specific notations like thousands separators.
75053         * lib/human.c: Simplify authorship notice.
75054         Include human.h immediately after config.h.
75055         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75056         <limits.h>: Do not include, since human.h does.
75057         (SIZE_MAX, UINTMAX_MAX): New macros.
75058         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75059         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75060         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75061         (power_letter): Renamed from suffixes.
75062         (generate_suffix_backwards): Remove.
75063         (adjust_value): Now takes int style (because of human.h changes)
75064         and long double value (for greater precision on some platforms).
75065         (group_number): New function.
75066         (human_readable): Use it.  Use integer options, not enum.
75067         Put the options before the sizes in the arg list.
75068         Support all the new options.
75069         The old human_readable function has been removed;
75070         use inttostr.h instead.
75071         (human_readable, default_block_size, humblock):
75072         Use uintmax_t, not int, for block sizes.
75073         (human_readable_inexact, block_size_types): Remove.
75074         (block_size_opts): New constant.
75075         (human_options): Renamed from human_block_size, with new signature
75076         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75077         * lib/human.h: Add copyright and authorship notice.
75078         Include <limits.h> and <stdbool.h> unconditionally.
75079         (PARAMS): Remove.  All uses removed.
75080         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75081         (enum human_inexact_style): Remove tag; now a nameless enum.
75082         (human_floor, human_ceiling, human_round_to_even): Now have
75083         values 2, 0, 1 rather than -1, 1, 0.
75084         (human_group_digits, human_suppress_point_zero, human_autoscale,
75085         human_base_1024, human_SI, human_B): New constants.
75086         (human_readable_inexact, human_block_size): Remove.
75087         (human_readable): Size args are now uintmax_t, not int.
75088         (human_options): New decl.
75089
75090         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75091         unnecessary now that we assume C89 or better.  This change
75092         imported from coreutils.
75093
75094         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75095         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75096         in the 2003-05-30 sync from glibc.
75097
75098         .h files should stand alone, but we shouldn't include <sys/types.h>
75099         if we can get away with just <stddef.h>.
75100
75101         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75102         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75103         rather than <sys/types.h>, as we merely need size_t.
75104         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75105         to get size_t.
75106         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75107         Include <stdio.h>, to get FILE.
75108         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75109         memcasecmp.h has included <stddef.h> and all we need is size_t.
75110         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75111         our interface, instead of including <sys/types.h>
75112
75113 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75114
75115         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75116         now, as glibc mktime is buggy on non-glibc systems.
75117
75118 2003-06-03  Karl Berry  <karl@gnu.org>
75119
75120         * config/config.sub: update from prep.
75121
75122 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75123
75124         [from coreutils]
75125         Fix some minor time-related bugs with POSIX time arguments.
75126         Some valid time stamps were being rejected (notably -1, and
75127         time stamps before 1900 on 64-bit hosts).  And some invalid
75128         time stamps were being accepted, e.g. September 31.
75129
75130         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75131         that we can return (time_t) -1 successfully.
75132         * lib/posixtm.c: Likewise.
75133         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75134         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75135         (t): Remove static var.
75136         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75137         of static var.  All uses changed.
75138         (year): Do not reject years before 1900; they can occur with
75139         64-bit time_t.
75140         (posix_time_parse): Do not check for out-of-range components;
75141         that is now the caller's responsibility, since our checks were
75142         only approximations.
75143         (posixtime): Use mktime to check for out-of-range components,
75144         since it knows them exactly.
75145         If mktime returns (time_t) -1, check whether an error actually occurred
75146         by invoking localtime on -1.
75147         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75148         posixtime failures better.
75149         Improve the test data (in comments only).
75150
75151 2003-06-02  Karl Berry  <karl@gnu.org>
75152
75153         * config/mkinstalldirs (version): new variable.
75154         (--version): new option.
75155         (usage): improve message.
75156
75157 2003-05-30  Karl Berry  <karl@gnu.org>
75158
75159         * lib/mktime.c: update from libc.
75160
75161 2003-05-30  Bruno Haible  <bruno@clisp.org>
75162
75163         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75164         * config/config.rpath: Upgrade to gettext-0.12.1.
75165
75166 2003-05-30  Bruno Haible  <bruno@clisp.org>
75167
75168         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75169         * m4/nls.m4: New file, from gettext-0.12.1.
75170         * m4/po.m4: New file, from gettext-0.12.1.
75171         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75172
75173 2003-05-30  Bruno Haible  <bruno@clisp.org>
75174
75175         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75176         * lib/localcharset.h: Likewise.
75177         * lib/localcharset.c: Likewise.
75178
75179 2003-05-29  Karl Berry  <karl@gnu.org>
75180
75181         * config/config.rpath: update from gettext.
75182
75183 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75184
75185         Assume the headers required for C89 freestanding compilers.
75186         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75187         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75188         * m4/human.m4 (gl_HUMAN): Likewise.
75189         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75190         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75191         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75192         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75193         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75194         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75195
75196 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75197
75198         Assume the headers required for C89 freestanding compilers.
75199         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75200         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75201         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75202         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75203         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75204         define, since <limits.h> is guaranteed to do that.
75205         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75206         * lib/exclude.c: Include <stdbool.h> unconditionally.
75207         * lib/tempname.c: Include <stddef.h> unconditionally.
75208         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75209         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75210         <stddef.h> does that.
75211         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75212         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75213         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75214         needed.
75215         * lib/xstrtol.c: Likewise.
75216         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75217         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75218
75219         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75220         warnings on some platforms.
75221
75222         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75223         arbitrarily.
75224
75225 2003-05-26  Jim Meyering  <jim@meyering.net>
75226
75227         Merge in a change from coreutils:
75228         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75229         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75230         that condition, rather than `-1' which is slightly misleading.
75231         Change the name of the cache variable to have the gl_ prefix.
75232         Prompted by a patch from Richard Dawe for DJGPP.
75233
75234 2003-05-24  Karl Berry  <karl@gnu.org>
75235
75236         * config/config.guess: update from prep.
75237
75238 2003-05-22  Karl Berry  <karl@gnu.org>
75239
75240         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75241
75242 2003-05-20  Karl Berry  <karl@gnu.org>
75243
75244         * config/config.guess: update from prep.
75245
75246 2003-05-18  Karl Berry  <karl@gnu.org>
75247
75248         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75249         might actually be set by the user.
75250
75251         * config/depcomp, install-sh, mdate-sh: update from automake.
75252
75253 2003-05-17  Bruno Haible  <bruno@clisp.org>
75254
75255         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75256         invalid expansion for AC_EGREP_CPP.
75257         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75258         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75259         Suggested by Akim Demaille <akim@epita.fr> in
75260         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75261
75262 2003-05-12  Jim Meyering  <jim@meyering.net>
75263
75264         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75265         the space-padded-by-default conversion specifiers, %e, %k, %l.
75266
75267 2003-05-12  Bruno Haible  <bruno@clisp.org>
75268
75269         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75270         the string is longer than 4 KB.
75271
75272 2003-05-11  Karl Berry  <karl@gnu.org>
75273
75274         * config/config.{guess,sub}: update from prep.
75275
75276 2003-05-09  Bruno Haible  <bruno@clisp.org>
75277
75278         * modules/error: Add m4/strerror_r.m4 to file list.
75279
75280 2003-05-03  Bruno Haible  <bruno@clisp.org>
75281
75282         Upgrade to Unicode-4.0.
75283         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75284         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75285         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75286         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75287         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75288         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75289         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75290         Change width of U+E0100..U+E01EF from 1 to 0.
75291
75292 2003-04-25  Jim Meyering  <jim@meyering.net>
75293
75294         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75295         of type size_t, not int.
75296
75297 2003-04-25  Bruno Haible  <bruno@clisp.org>
75298
75299         * lib/copy-file.c: Include <stddef.h>, for size_t.
75300
75301 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75302
75303         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75304         code which expansion is under static control.  Patch imported from
75305         Akim Demaille's patch to Bison; see
75306         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75307
75308 2003-04-14  Bruno Haible  <bruno@clisp.org>
75309
75310         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75311
75312 2003-04-11  Jim Meyering  <jim@meyering.net>
75313
75314         Merge changes from Coreutils.
75315
75316         2003-03-22  Jim Meyering  <jim@meyering.net>
75317
75318         * lib/strftime.c (widen): Cast alloca return value to proper type.
75319
75320         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75321
75322         From GNU libc.
75323         * lib/strftime.c (my_strftime): Handle very large width
75324         specifications for numeric values correctly.  Improve checks for
75325         overflow.
75326
75327         2003-01-19  Jim Meyering  <jim@meyering.net>
75328
75329         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75330         definitions.
75331         (nl_get_alt_digit) [! defined my_strftime]: Define.
75332         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75333         _nl_get_alt_digit and _nl_get_walt_digit.
75334
75335         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75336         libc. These changes have no effect outside of _LIBC.
75337
75338 2003-04-10  Bruno Haible  <bruno@clisp.org>
75339
75340         * modules/findprog: New file.
75341         * MODULES.html.sh (func_all_modules): Add it.
75342
75343 2003-04-10  Bruno Haible  <bruno@clisp.org>
75344
75345         * m4/findprog.m4: New file.
75346         * m4/eaccess.m4: New file.
75347
75348 2003-04-10  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/findprog.h: New file, from GNU gettext.
75351         * lib/findprog.c: New file, from GNU gettext.
75352
75353 2003-04-05  Jim Meyering  <jim@meyering.net>
75354
75355         Merge changes from Coreutils.
75356
75357         * lib/exclude.h (PARAMS): Remove definition and uses.
75358         * lib/exclude.c: Remove uses of `PARAMS'.
75359
75360         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75361         Add test-cases for DOS filenames. Declare program_name.
75362         (main): Set up program_name.  Patch by Rich Dawe.
75363
75364         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75365         error from mntctl.
75366         Use mntctl's return value to drive the entry-processing loop, since
75367         we can't rely on the value of the vmt_length member in the last
75368         entry.  On some systems doing so could result in exhausting
75369         virtual memory.  Based in part on a patch from Mike Jetzer.
75370
75371 2003-04-04  Bruno Haible  <bruno@clisp.org>
75372
75373         * modules/linebreak: New file.
75374         * MODULES.html.sh (func_all_modules): Add it.
75375
75376 2003-04-04  Bruno Haible  <bruno@clisp.org>
75377
75378         * m4/linebreak.m4: New file.
75379
75380 2003-04-04  Bruno Haible  <bruno@clisp.org>
75381
75382         * lib/linebreak.h: New file, from GNU gettext.
75383         * lib/linebreak.c: New file, from GNU gettext with slight
75384         modifications.
75385         * lib/lbrkprop.h: New file, from GNU gettext.
75386
75387 2003-04-03  Bruno Haible  <bruno@clisp.org>
75388
75389         * modules/utf8-ucs4: New file.
75390         * modules/utf16-ucs4: New file.
75391         * modules/ucs4-utf8: New file.
75392         * modules/ucs4-utf16: New file.
75393         * MODULES.html.sh (func_all_modules): Add them.
75394
75395 2003-04-03  Bruno Haible  <bruno@clisp.org>
75396
75397         * m4/utf-ucs4.m4: New file.
75398         * m4/ucs4-utf.m4: New file.
75399
75400 2003-04-03  Bruno Haible  <bruno@clisp.org>
75401
75402         * lib/utf8-ucs4.h: New file, from GNU gettext.
75403         * lib/utf16-ucs4.h: New file, from GNU gettext.
75404         * lib/ucs4-utf8.h: New file, from GNU gettext.
75405         * lib/ucs4-utf16.h: New file, from GNU gettext.
75406
75407 2003-04-02  Bruno Haible  <bruno@clisp.org>
75408
75409         * modules/binary-io: New file.
75410         * MODULES.html.sh (func_all_modules): Add it.
75411
75412 2003-04-02  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/binary-io.h: New file, from GNU gettext.
75415
75416 2003-04-01  Bruno Haible  <bruno@clisp.org>
75417
75418         * modules/pathname: New file.
75419         * MODULES.html.sh (func_all_modules): Add it.
75420
75421 2003-04-01  Bruno Haible  <bruno@clisp.org>
75422
75423         * lib/pathname.h: New file, from GNU gettext.
75424         * lib/concatpath.c: New file, from GNU gettext.
75425
75426 2003-03-30  Bruno Haible  <bruno@clisp.org>
75427
75428         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75429
75430 2003-03-30  Bruno Haible  <bruno@clisp.org>
75431
75432         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75433         function chown() doesn't exist.
75434
75435 2003-03-28  Bruno Haible  <bruno@clisp.org>
75436
75437         * modules/copy-file: New file.
75438         * MODULES.html.sh (func_all_modules): Add it.
75439
75440 2003-03-28  Bruno Haible  <bruno@clisp.org>
75441
75442         * m4/copy-file.m4: New file.
75443
75444 2003-03-28  Bruno Haible  <bruno@clisp.org>
75445
75446         * lib/copy-file.h: New file, from GNU gettext.
75447         * lib/copy-file.c: New file, from GNU gettext.
75448
75449 2003-03-18  Jim Meyering  <jim@meyering.net>
75450
75451         * lib/quote.c (quote_n): Fix typo in comment.
75452
75453 2003-03-18  Bruno Haible  <bruno@clisp.org>
75454
75455         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75456         checking.
75457         * m4/onceonly_2_57.m4: Likewise.
75458
75459 2003-03-17  Bruno Haible  <bruno@clisp.org>
75460
75461         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75462         (m4_quote): Remove macro.
75463         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75464
75465 2003-03-14  Jim Meyering  <jim@meyering.net>
75466
75467         Merge changes from Coreutils.
75468         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75469         to be const, in order to avoid warnings.
75470         (obstack_room): Likewise.
75471         (obstack_empty_p): Likewise.
75472
75473 2003-03-14  Bruno Haible  <bruno@clisp.org>
75474
75475         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75476         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75477
75478 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75479
75480         Merge changes from Bison.
75481         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75482         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75483         when compiling Bison 1.875's `bitset bset = obstack_alloc
75484         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75485         * lib/hash.c: Include <stdbool.h> unconditionally.
75486
75487 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75488
75489         * m4/onceonly.m4 (m4_quote): New macro.
75490         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75491         Quote AC_FOREACH variable-expansions properly.
75492
75493 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75494
75495         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75496
75497 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75498
75499         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75500         Reported by Bruce Becker; see:
75501         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75502
75503 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75504             Bruno Haible  <bruno@clisp.org>
75505
75506         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75507         Reported by John Hughes, see
75508         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75509
75510 2003-02-20  Bruno Haible  <bruno@clisp.org>
75511
75512         * MODULES.html.sh (func_all_modules): Add poll.
75513
75514 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75515
75516         * modules/poll: New file.
75517
75518 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75519
75520         * lib/poll_.h: New file.
75521         * lib/poll.c: New file.
75522
75523 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75524
75525         * m4/poll.m4: New file.
75526
75527 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75528
75529         * modules/mathl: New file.
75530
75531 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75532
75533         * lib/mathl.h: New file.
75534         * lib/acosl.c: New file.
75535         * lib/asinl.c: New file.
75536         * lib/atanl.c: New file.
75537         * lib/ceill.c: New file.
75538         * lib/cosl.c: New file.
75539         * lib/expl.c: New file.
75540         * lib/floorl.c: New file.
75541         * lib/frexpl.c: New file.
75542         * lib/ldexpl.c: New file.
75543         * lib/logl.c: New file.
75544         * lib/sincosl.c: New file.
75545         * lib/sinl.c: New file.
75546         * lib/sqrtl.c: New file.
75547         * lib/tanl.c: New file.
75548         * lib/trigl.c: New file.
75549         * lib/trigl.h: New file.
75550
75551 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75552
75553         * m4/mathl.m4: New file.
75554
75555 2003-02-18  Bruno Haible  <bruno@clisp.org>
75556
75557         * MODULES.html.sh (func_all_modules): Add mathl.
75558
75559 2003-02-17  Bruno Haible  <bruno@clisp.org>
75560
75561         * modules/mkdtemp: New module.
75562         * MODULES.html.sh (func_all_modules): Add it.
75563
75564 2003-02-17  Bruno Haible  <bruno@clisp.org>
75565
75566         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75567
75568 2003-02-17  Bruno Haible  <bruno@clisp.org>
75569
75570         * lib/mkdtemp.h: New file, from GNU gettext.
75571         * lib/mkdtemp.c: New file, from GNU gettext.
75572
75573 2003-02-02  Jim Meyering  <jim@meyering.net>
75574
75575         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75576         e.g. glibc-2.2.93.
75577
75578 2003-01-31  Bruno Haible  <bruno@clisp.org>
75579
75580         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75581         'rpl_rename'.
75582         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75583         'rpl_strnlen'.
75584         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75585         'rpl_strtod'.
75586         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75587         'rpl_utime'.
75588
75589 2003-01-31  Bruno Haible  <bruno@clisp.org>
75590
75591         * lib/rename.c: #undef rename before defining rpl_rename.
75592         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75593
75594 2003-01-30  Bruno Haible  <bruno@clisp.org>
75595
75596         * modules/vasnprintf, modules/vasprintf: New modules.
75597         * MODULES.html.sh (func_all_modules): Add them.
75598
75599 2003-01-30  Bruno Haible  <bruno@clisp.org>
75600
75601         * m4/signed.m4: New file, from GNU gettext.
75602         * m4/longdouble.m4: New file, from GNU gettext.
75603         * m4/wchar_t.m4: New file, from GNU gettext.
75604         * m4/wint_t.m4: New file, from GNU gettext.
75605         * m4/vasnprintf.m4: New file.
75606         * m4/vasprintf.m4: New file.
75607
75608 2003-01-30  Bruno Haible  <bruno@clisp.org>
75609
75610         * lib/printf-args.h: New file, from GNU gettext.
75611         * lib/printf-args.c: New file, from GNU gettext.
75612         * lib/printf-parse.h: New file, from GNU gettext.
75613         * lib/printf-parse.c: New file, from GNU gettext.
75614         * lib/vasnprintf.h: New file, from GNU gettext.
75615         * lib/vasnprintf.c: New file, from GNU gettext.
75616         * lib/asnprintf.c: New file, from GNU gettext.
75617         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75618         * lib/vasprintf.c: New file, from GNU gettext.
75619         * lib/asprintf.c: New file, from GNU gettext.
75620
75621 2003-01-29  Bruno Haible  <bruno@clisp.org>
75622
75623         * modules/stpncpy: New module.
75624         * MODULES.html.sh (func_all_modules): Add it.
75625
75626 2003-01-29  Bruno Haible  <bruno@clisp.org>
75627
75628         * m4/stpncpy.m4: New file.
75629
75630 2003-01-29  Bruno Haible  <bruno@clisp.org>
75631
75632         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75633         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75634
75635 2003-01-28  Bruno Haible  <bruno@clisp.org>
75636
75637         * modules/c-ctype: New module.
75638         * MODULES.html.sh (func_all_modules): Add it.
75639
75640 2003-01-28  Bruno Haible  <bruno@clisp.org>
75641
75642         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75643         Paul Eggert.
75644         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75645         Paul Eggert.
75646
75647 2003-01-27  Bruno Haible  <bruno@clisp.org>
75648
75649         * modules/xsetenv: New module.
75650         * MODULES.html.sh (func_all_modules): Add it.
75651
75652 2003-01-27  Bruno Haible  <bruno@clisp.org>
75653
75654         * lib/xsetenv.h: New file, from GNU gettext.
75655         * lib/xsetenv.c: New file, from GNU gettext.
75656
75657 2003-01-23  Jim Meyering  <jim@meyering.net>
75658
75659         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75660         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75661
75662 2003-01-23  Bruno Haible  <bruno@clisp.org>
75663
75664         * modules/minmax: New module.
75665         * MODULES.html.sh (func_all_modules): Add it.
75666
75667 2003-01-23  Bruno Haible  <bruno@clisp.org>
75668
75669         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75670         Eggert.
75671
75672 2003-01-22  Bruno Haible  <bruno@clisp.org>
75673
75674         * modules/exit: New module.
75675         * MODULES.html.sh (func_all_modules): Add it.
75676
75677 2003-01-22  Bruno Haible  <bruno@clisp.org>
75678
75679         * lib/exit.h: New file, from GNU gettext.
75680
75681 2003-01-19  Bruno Haible  <bruno@clisp.org>
75682
75683         * gnulib-tool: Recognize option --extract-maintainer.
75684         (func_get_maintainer): New function.
75685         * modules/*: Add Maintainer entry.
75686
75687 2003-01-16  Jim Meyering  <jim@meyering.net>
75688
75689         * m4/regex.m4: The `regex' struct is both input and output.
75690         Initialize it before each use.  Patch by Tim Waugh.
75691
75692 2003-01-16  Bruno Haible  <bruno@clisp.org>
75693
75694         * MODULES.html.sh: Add a table of contents. Add the module name as
75695         leftmost column. Add hyperlinks.
75696
75697 2003-01-15  Bruno Haible  <bruno@clisp.org>
75698
75699         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75700
75701 2003-01-15  Bruno Haible  <bruno@clisp.org>
75702
75703         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75704         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75705         suffix.
75706
75707 2003-01-15  Bruno Haible  <bruno@clisp.org>
75708
75709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75710
75711 2003-01-15  Bruno Haible  <bruno@clisp.org>
75712
75713         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75714         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75715
75716 2003-01-14  Jim Meyering  <jim@meyering.net>
75717
75718         * lib/same.c (same_name): Tweak a comment.
75719
75720 2003-01-14  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75723         when a string comparison is sufficient.
75724
75725 2003-01-14  Bruno Haible  <bruno@clisp.org>
75726
75727         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75728         'unsigned int'.
75729
75730 2003-01-14  Bruno Haible  <bruno@clisp.org>
75731
75732         * lib/hash-pjw.c: Add comment about low quality of this function.
75733
75734 2003-01-13  Bruno Haible  <bruno@clisp.org>
75735
75736         * modules/stpcpy: Distribute lib/stpcpy.h.
75737         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75738
75739 2003-01-13  Bruno Haible  <bruno@clisp.org>
75740
75741         * modules/*: Add a description.
75742         * modules/strpbrk: Fix Makefile.am snippet.
75743         * modules/strtoimax: Fix dependencies.
75744         * modules/strtoumax: Likewise.
75745
75746 2003-01-13  Bruno Haible  <bruno@clisp.org>
75747
75748         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75749         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75750         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75751
75752 2003-01-13  Bruno Haible  <bruno@clisp.org>
75753
75754         * gnulib-tool (func_create_testdir): Store config/* files in the main
75755         directory.
75756         * config.rpath: Move to ...
75757         * config/config.rpath: ... here.
75758         * modules/gettext: Contains config/config.rpath, not config.rpath.
75759         * modules/iconv: Likewise.
75760
75761 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75762
75763         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75764         to avoid collisions with libcurses and libreadline.
75765
75766         * m4/getstr.m4: Remove.
75767         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75768
75769 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75770
75771         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75772         to avoid collisions with libcurses and libreadline.
75773
75774         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75775         * lib/getstr.h, getstr.c: Remove.
75776         * lib/getline.c: Include "getline.h", to check interface.
75777         Move body of old getstr.c here: this defines MIN_CHUNK and
75778         declares getdelim2, which is renamed from getstr.
75779         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75780
75781         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75782         All uses changed.
75783         * lib/linebuffer.h: Likewise.
75784         (readline): Remove backward-compatibility macro.
75785
75786 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75787
75788         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75789         to avoid collisions with libcurses and libreadline.
75790         * getstr: Remove.
75791         * MODULES.html.sh: Remove getstr.
75792         * modules/getline: Depend on unlocked-io, not getstr.
75793
75794 2003-01-12  Jim Meyering  <jim@meyering.net>
75795
75796         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75797
75798 2003-01-10  Bruno Haible  <bruno@clisp.org>
75799
75800         * modules/alloca: Change Makefile.am requirements. Simplify Include
75801         requirements. Add lib/alloca_.h to file list.
75802
75803 2003-01-10  Bruno Haible  <bruno@clisp.org>
75804
75805         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75806
75807 2003-01-10  Bruno Haible  <bruno@clisp.org>
75808
75809         * lib/alloca_.h: New file.
75810         * lib/getdate.y: Unconditionally include alloca.h.
75811         * lib/makepath.c: Likewise.
75812         * lib/setenv.c: Likewise.
75813         * lib/userspec.c: Likewise.
75814
75815 2003-01-09  Karl Berry  <karl@gnu.org>
75816
75817         * MODULES.html.sh: include `dirname $0` in PATH, to find
75818         gnulib-tool.
75819
75820 2003-01-09  Bruno Haible  <bruno@clisp.org>
75821
75822         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75823         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75824
75825 2003-01-09  Bruno Haible  <bruno@clisp.org>
75826
75827         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75828
75829 2003-01-09  Bruno Haible  <bruno@clisp.org>
75830
75831         * lib/stdbool.h.in: New file.
75832
75833 2003-01-09  Bruno Haible  <bruno@clisp.org>
75834
75835         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75836         * MODULES.html.sh: Likewise.
75837
75838 2003-01-08  Jim Meyering  <jim@meyering.net>
75839
75840         * lib/full-write.c: Undefine and define-away `const' after inclusion
75841         of errno.h, not before.  Suggestion from Bruno Haible.
75842
75843 2003-01-08  Bruno Haible  <bruno@clisp.org>
75844
75845         * modules/full-read: Depend on full-write.
75846
75847 2003-01-08  Bruno Haible  <bruno@clisp.org>
75848
75849         * lib/safe-read.c: Include specification header first, to ensure its
75850         selfcontainedness.
75851         * lib/full-write.c: Likewise.
75852
75853 2003-01-07  Jim Meyering  <jim@meyering.net>
75854
75855         * lib/full-write.c: Rework so that it may serve to define full_read,
75856         too.
75857         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75858
75859 2003-01-07  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75862         <inttypes.h>.
75863         * lib/xstrtol.h: Likewise.
75864         * lib/xstrtoimax.c: Likewise.
75865         * lib/xstrtoumax.c: Likewise.
75866         * lib/human.h: Likewise.
75867
75868         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75869         on systems that have <inttypes.h> but not <stdint.h>.
75870
75871 2003-01-07  Bruno Haible  <bruno@clisp.org>
75872
75873         * MODULES.html.sh: Add copyright notice.
75874         (missed_files): Omit CVS directory entries.
75875         (func_module): Make it work with sed-3.02.
75876         * MODULES.txt: Remove file.
75877
75878 2003-01-06  Jim Meyering  <jim@meyering.net>
75879
75880         * lib/version-etc.c: Update year in translatable copyright string.
75881
75882 2003-01-03  Karl Berry  <karl@gnu.org>
75883
75884         * config/config.{guess,sub}: update from prep.
75885
75886 2003-01-02  Karl Berry  <karl@gnu.org>
75887
75888         * doc/COPYING.DOC: belatedly updated to 1.2.
75889
75890 2003-01-01  Karl Berry  <karl@gnu.org>
75891
75892         * gnulib-tool (func_verify_module): report module name $module in
75893         error message, not $1.
75894         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75895         be created, only if it doesn't exist.
75896         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75897
75898 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75899
75900         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75901
75902 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75903
75904         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75905         memcmp if strcoll doesn't work.
75906
75907 2002-12-31  Bruno Haible  <bruno@clisp.org>
75908
75909         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75910         nonempty.
75911
75912 2002-12-31  Bruno Haible  <bruno@clisp.org>
75913
75914         * lib/memcoll.c (STRCOLL): New macro.
75915         (memcoll): Use it.
75916
75917 2002-12-31  Bruno Haible  <bruno@clisp.org>
75918
75919         * lib/localcharset.h: New file.
75920         * lib/localcharset.c: Include it.
75921         * lib/unicodeio.c: Likewise.
75922
75923 2002-12-31  Bruno Haible  <bruno@clisp.org>
75924
75925         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75926         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75927
75928 2002-12-31  Bruno Haible  <bruno@clisp.org>
75929
75930         * lib/getline.h: Include <stddef.h>, for size_t.
75931
75932         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75933         * lib/unicodeio.c: Don't include <stddef.h>.
75934
75935 2002-12-31  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75938         HAVE_TM_ZONE.
75939
75940 2002-12-24  Karl Berry  <karl@gnu.org>
75941
75942         * config/config.guess: update from prep.
75943
75944 2002-12-24  Bruno Haible  <bruno@clisp.org>
75945
75946         General infrasructure.
75947         * m4/README: Rewritten.
75948         * m4/onceonly.m4: New file.
75949         * m4/onceonly_2_57.m4: New file.
75950
75951         Module atexit.
75952         * m4/atexit.m4: New file.
75953
75954         Module strtod.
75955         * m4/strtod.m4: New file.
75956
75957         Module strtol.
75958         * m4/strtol.m4: New file.
75959
75960         Module strtoul.
75961         * m4/strtoul.m4: New file.
75962
75963         Module memchr.
75964         * m4/memchr.m4: New file.
75965
75966         Module memcmp.
75967         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75968         (jm_FUNC_MEMCMP): Invoke it.
75969
75970         Module memcpy.
75971         * m4/memcpy.m4: New file.
75972
75973         Module memmove.
75974         * m4/memmove.m4: New file.
75975
75976         Module memset.
75977         * m4/memset.m4: New file.
75978
75979         Module strcspn.
75980         * m4/strcspn.m4: New file.
75981
75982         Module strpbrk.
75983         * m4/strpbrk.m4: New file.
75984
75985         Module strstr.
75986         * m4/strstr.m4: New file.
75987
75988         Module strerror.
75989         * m4/strerror.m4: New file.
75990
75991         Module mktime.
75992         * m4/mktime.m4: Renamed from jm-mktime.m4.
75993         (gl_PREREQ_MKTIME): New macro.
75994         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75995
75996         Module malloc.
75997         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75998         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75999         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76000
76001         Module realloc.
76002         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76003         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76004         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76005
76006         Module strftime.
76007         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76008         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76009         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76010         gl_TM_GMTOFF.
76011         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76012
76013         Module xalloc.
76014         * m4/xalloc.m4: New file.
76015
76016         Module alloca.
76017         * m4/alloca.m4: New file.
76018
76019         Module putenv.
76020         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76021         (jm_FUNC_PUTENV): Invoke it.
76022
76023         Module setenv.
76024         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76025         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76026         when invoked twice.
76027         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76028         gt_FUNC_SETENV.
76029
76030         Module memrchr.
76031         * m4/memrchr.m4: New file.
76032
76033         Module stpcpy.
76034         * m4/stpcpy.m4: New file.
76035
76036         Module strcase.
76037         * m4/strcase.m4: New file.
76038
76039         Module strdup.
76040         * m4/strdup.m4: New file.
76041
76042         Module strnlen.
76043         * m4/strnlen.m4: New file.
76044
76045         Module strndup.
76046         * m4/strndup.m4: New file.
76047
76048         Module xstrtod.
76049         * m4/xstrtod.m4: New file.
76050
76051         Module xstrtol.
76052         * m4/xstrtol.m4: New file.
76053
76054         Module getdate.
76055         * m4/getdate.m4: New file.
76056
76057         Module unlocked-io.
76058         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76059         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76060         * m4/jm-glibc-io.m4n: Remove file.
76061
76062         Module long-options.
76063         * m4/long-options.m4: New file.
76064
76065         Module md5.
76066         * m4/md5.m4: New file.
76067
76068         Module sha.
76069         * m4/sha.m4: New file.
76070
76071         Module getstr.
76072         * m4/getstr.m4: New file.
76073
76074         Module getline.
76075         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76076         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76077         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76078         simply getline. Infoke gl_PREREQ_GETLINE.
76079
76080         Module obstack.
76081         * m4/obstack.m4: New file.
76082
76083         Module hash.
76084         * m4/hash.m4: New file.
76085
76086         Module readtokens.
76087         * m4/readtokens.m4: New file.
76088
76089         Module strverscmp.
76090         * m4/strverscmp.m4: New file.
76091
76092         Module stdbool.
76093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76094         OSF/1.
76095
76096         Module strtoll.
76097         * m4/strtoll.m4: New file.
76098
76099         Module strtoull.
76100         * m4/strtoull.m4: New file.
76101
76102         Module strtoimax.
76103         * m4/strtoimax.m4: New file.
76104
76105         Module strtoumax.
76106         * m4/strtoumax.m4: New file.
76107
76108         Module xstrtoimax.
76109         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76110         jm_AC_PREREQ_XSTRTOIMAX.
76111         Moved the strtol prerequisites to strtol.m4.
76112         Moved the strtoll prerequisites to strtoll.m4.
76113         Moved the strtoimax prerequisites to strtoimax.m4.
76114
76115         Module xstrtoumax.
76116         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76117         jm_AC_PREREQ_XSTRTOUMAX.
76118         Moved the strtoul prerequisites to strtoul.m4.
76119         Moved the strtoull prerequisites to strtoull.m4.
76120         Moved the strtoumax prerequisites to strtoumax.m4.
76121
76122         Module chown.
76123         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76124         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76125
76126         Module dup2.
76127         * m4/dup2.m4: New file.
76128
76129         Module ftruncate.
76130         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76131         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76132
76133         Module getgroups.
76134         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76135         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76136
76137         Module gettimeofday.
76138         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76139         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76140         gl_PREREQ_GETTIMEOFDAY.
76141
76142         Module mkdir.
76143         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76144         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76145
76146         Module mkstemp.
76147         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76148         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76149         jm_AC_TYPE_UINTMAX_T.
76150         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76151
76152         Module stat.
76153         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76154         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76155
76156         Module lstat.
76157         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76158         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76159
76160         Module timespec.
76161         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76162         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76163         * m4/st_mtim.m4: Indentation.
76164
76165         Module nanosleep.
76166         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76167         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76168         gl_PREREQ_NANOSLEEP.
76169
76170         Module regex.
76171         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76172         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76173         (gl_REGEX): New macro.
76174
76175         Module rename.
76176         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76177         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76178
76179         Module rmdir.
76180         * m4/rmdir.m4: New file.
76181
76182         Module utime.
76183         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76184         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76185         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76186
76187         Module dirname.
76188         * m4/dirname.m4: New file.
76189
76190         Module getopt.
76191         * m4/getopt.m4: New file.
76192
76193         Module unistd-safer.
76194         * m4/unistd-safer.m4: New file.
76195
76196         Module fnmatch.
76197         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76198         declaration.
76199         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76200         (gl_FUNC_FNMATCH_POSIX): New macro.
76201         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76202         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76203         simply fnmatch.
76204
76205         Module exclude.
76206         * m4/exclude.m4: New file.
76207
76208         Module human.
76209         * m4/human.m4: New file.
76210
76211         Module acl.
76212         * m4/acl.m4: Nop.
76213
76214         Module backupfile.
76215         * m4/backupfile.m4: New file.
76216         * m4/d-ino.m4: Indentation.
76217
76218         Module fsusage.
76219         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76220         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76221         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76222
76223         Module dirfd.
76224         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76225         requirements.
76226
76227         Module euidaccess.
76228         * m4/euidaccess.m4: New file.
76229
76230         Module file-type.
76231         * m4/file-type.m4: New file.
76232
76233         Module fileblocks.
76234         * m4/fileblocks.m4: New file.
76235
76236         Module filemode.
76237         * m4/filemode.m4: New file.
76238
76239         Module isdir.
76240         * m4/isdir.m4: New file.
76241
76242         Module lchown.
76243         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76244         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76245
76246         Module makepath.
76247         * m4/makepath.m4: New file.
76248
76249         Module modechange.
76250         * m4/modechange.m4: New file.
76251
76252         Module mountlist.
76253         * m4/mountlist.m4: New file.
76254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76255         Indentation.
76256
76257         Module path-concat.
76258         * m4/path-concat.m4: New file.
76259
76260         Module pathmax.
76261         * m4/pathmax.m4: New file.
76262
76263         Module same.
76264         * m4/same.m4: New file.
76265
76266         Module save-cwd.
76267         * m4/save-cwd.m4: New file.
76268
76269         Module savedir.
76270         * m4/savedir.m4: New file.
76271
76272         Module xgetcwd.
76273         * m4/xgetcwd.m4: New file.
76274         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76275
76276         Module xreadlink.
76277         * m4/xreadlink.m4: New file.
76278
76279         Module safe-read.
76280         * m4/safe-read.m4: New file.
76281
76282         Module safe-write.
76283         * m4/safe-write.m4: New file.
76284
76285         Module closeout.
76286         * m4/closeout.m4: New file.
76287
76288         Module stdio-safer.
76289         * m4/stdio-safer.m4: New file.
76290
76291         Module getpass.
76292         * m4/getpass.m4: New file.
76293
76294         Module getugroups.
76295         * m4/getugroups.m4: New file.
76296
76297         Module group-member.
76298         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76299         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76300
76301         Module idcache.
76302         * m4/idcache.m4: New file.
76303
76304         Module userspec.
76305         * m4/userspec.m4: New file.
76306
76307         Module gettime.
76308         * m4/clock_time.m4: New file.
76309         * m4/gettime.m4: New file.
76310
76311         Module settime.
76312         * m4/settime.m4: New file.
76313
76314         Module posixtm.
76315         * m4/posixtm.m4: New file.
76316
76317         Module gethostname.
76318         * m4/gethostname.m4: New file.
76319
76320         Module canon-host.
76321         * m4/canon-host.m4: New file.
76322
76323         Module gettext.
76324         * m4/codeset.m4: New file, from gettext-0.11.5.
76325         * m4/gettext.m4: New file, from gettext-0.11.5.
76326         * m4/glibc21.m4: New file, from gettext-0.11.5.
76327         * m4/iconv.m4: New file, from gettext-0.11.5.
76328         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76329         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76330         * m4/inttypes.m4: New file, from gettext-0.11.5.
76331         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76332         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76333         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76334         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76335         * m4/lib-link.m4: New file, from gettext-0.11.5.
76336         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76337         * m4/progtest.m4: New file, from gettext-0.11.5.
76338         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76339         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76340         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76341
76342         Module localcharset.
76343         * m4/localcharset.m4: New file.
76344
76345         Module hard-locale.
76346         * m4/hard-locale.m4: New file.
76347
76348         Module mbswidth.
76349         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76350         onceonly macros.
76351         * m4/mbrtowc.m4: Add comment.
76352
76353         Module memcasecmp.
76354         * m4/memcasecmp.m4: New file.
76355
76356         Module memcoll.
76357         * m4/memcoll.m4: New file.
76358
76359         Module unicodeio.
76360         * m4/unicodeio.m4: New file.
76361
76362         Module rpmatch.
76363         * m4/rpmatch.m4: New file.
76364
76365         Module yesno.
76366         * m4/yesno.m4: New file.
76367
76368         Module exitfail.
76369         * m4/exitfail.m4: New file.
76370
76371         Module c-stack.
76372         * m4/c-stack.m4 (gl_C_STACK): New macro.
76373         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76374
76375         Module error.
76376         * m4/error.m4 (gl_ERROR): New macro.
76377         (jm_PREREQ_ERROR): Use onceonly macros.
76378
76379         Module fatal.
76380         * m4/fatal.m4: New file.
76381
76382         Module getloadavg.
76383         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76384         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76385
76386         Module getpagesize.
76387         * m4/getpagesize.m4: New file.
76388
76389         Module getusershell.
76390         * m4/getusershell.m4: New file.
76391
76392         Module physmem.
76393         * m4/physmem.m4: New file.
76394
76395         Module posixver.
76396         * m4/posixver.m4: New file.
76397
76398         Module quotearg.
76399         * m4/quotearg.m4: New file.
76400
76401         Module quote.
76402         * m4/quote.m4: New file.
76403
76404         Module readutmp.
76405         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76406
76407         Module sig2str.
76408         * m4/sig2str.m4: New file.
76409
76410         Other.
76411         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76412         ulonglong.m4.
76413         * m4/intmax_t.m4: New file.
76414         * m4/d-type.m4: Indentation.
76415         * m4/jm-macros.m4: Update.
76416         * m4/prereq.m4 (jm_PREREQ): Update.
76417         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76418         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76419         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76420         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76421         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76422         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76423         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76424         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76425         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76426         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76427         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76428         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76429         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76430         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76431         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76432         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76433         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76434         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76435         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76436
76437 2002-12-24  Bruno Haible  <bruno@clisp.org>
76438
76439         * MODULES.txt: Update according to m4/ changes.
76440
76441         Module gettext.
76442         * config.rpath: New file, from gettext-0.11.5.
76443
76444         * modules/*: New module descriptions.
76445         * gnulib-tool: New file.
76446         * MODULES.html.sh: New file.
76447
76448 2002-12-21  Karl Berry  <karl@gnu.org>
76449
76450         * doc/fdl.texi: update to version 1.2.
76451
76452 2002-12-19  Karl Berry  <karl@gnu.org>
76453
76454         * config/config.guess: update from prep.
76455
76456 2002-12-18  Bruno Haible  <bruno@clisp.org>
76457
76458         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76459         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76460
76461 2002-12-17  Bruno Haible  <bruno@clisp.org>
76462
76463         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76464         stdlib.h, string.h.
76465
76466 2002-12-17  Bruno Haible  <bruno@clisp.org>
76467
76468         * lib/canon-host.c (strdup): Remove unused declaration.
76469
76470         * lib/fsusage.c: Include full_read.h.
76471         (get_fs_usage): Use full_read instead of safe_read.
76472
76473         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76474
76475 2002-12-12  Karl Berry  <karl@gnu.org>
76476
76477         * config/config.guess: update from prep.
76478
76479 2002-12-11  Bruno Haible  <bruno@clisp.org>
76480
76481         * m4/setenv.m4: New file, from gettext-0.11.5.
76482
76483 2002-12-11  Bruno Haible  <bruno@clisp.org>
76484
76485         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76486         not unsetenv().
76487         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76488         modifications:
76489
76490         2002-12-11  Bruno Haible  <bruno@clisp.org>
76491
76492                 * setenv.c (alloca): Fall back to malloc.
76493                 (freea): New macro.
76494                 (setenv): Use freea() to free memory allocated with alloca().
76495
76496         2002-11-13  Bruno Haible  <bruno@clisp.org>
76497
76498                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76499                 function declarations.
76500                 * unsetenv.c (unsetenv): Likewise.
76501
76502         2002-03-04  Bruno Haible  <bruno@clisp.org>
76503
76504                 Portability to AIX 4.3.3.
76505                 * unsetenv.c: New file, extracted from setenv.c.
76506                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76507
76508         2001-12-20  Bruno Haible  <bruno@clisp.org>
76509
76510                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76511                 use malloc instead. For SunOS 4.
76512
76513         2001-12-11  Bruno Haible  <bruno@clisp.org>
76514
76515                 * setenv.c: Declare alloca.
76516                 (compar_fn_t): New typedef.
76517                 (KNOWN_VALUE, STORE_VALUE): Use it.
76518
76519         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76520         setenv.h.
76521
76522 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76523
76524         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76525         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76526         Choose values that are less likely to collide with system fnmatch
76527         options.
76528         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76529         defined (e.g., a pure POSIX system).
76530         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76531         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76532
76533 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76534
76535         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76536         a pain in practice to deal with generated m4 files.  This change
76537         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76538
76539         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76540         and jm-glibc-io.m4, as they are no longer a special case.
76541         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76542         kludge and the auto-generation stuff.  Check only whether the
76543         functions are declared, not whether they exist, since older hosts
76544         that don't declare the functions can't use the optimization anyway.
76545
76546 2002-12-06  Jim Meyering  <jim@meyering.net>
76547
76548         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76549
76550         Merge in changes from libc's misc/error.c, in preparation
76551         for the merge of gnulib's changes back into libc.
76552
76553         * lib/error.c (_): Define only if not already defined.
76554         Move definition to follow all #include directives.
76555         Include unlocked-io.h only if !_LIBC.
76556         [_LIBC]: Include <libio/libioP.h>.
76557         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76558         (fflush): Tweak definition to use INTUSE.
76559         (putc): Define.
76560
76561 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76562
76563         * lib/alloca.c [defined emacs]: Include "lisp.h".
76564         (xalloc_die) [defined emacs]: New macro.
76565         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76566         [! defined emacs]: Include <xalloc.h>.
76567         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76568         (pointer): Typedef to POINTER_TYPE *.
76569         (malloc): Remove decl; we now always use xmalloc.
76570         (alloca): Use old-style definition, since Emacs needs this.
76571         Check for arithmetic overflow when computing combined size.
76572
76573 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76574
76575         Do not generate unlocked-io.h automatically, since it's easier to
76576         maintain it by hand.
76577
76578         * lib/unlocked-io.h: New file, from GNU diffutils,
76579         but with proper copyright notice and attribution.
76580         * lib/gen-uio: Remove.
76581         * lib/Makefile.am: Add copyright notice.
76582         (libfetish_a_SOURCES): Add unlocked-io.h.
76583         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76584         (DISTCLEANFILES, io_functions): Remove macros.
76585         (EXTRA_DIST): Remove gen_uio.
76586         (unlocked-io.h): Remove rule.
76587
76588 2002-12-04  Jim Meyering  <jim@meyering.net>
76589
76590         Reflect the fact that stat.c and lstat.c are no longer generated.
76591         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76592         (DISTCLEANFILES): Likewise.
76593         (EXTRA_DIST): Likewise.
76594         (all_local): Don't depend on stat.c or lstat.c.
76595         (stat.c, lstat.c): Remove rules.
76596         (EXTRA_DIST): Remove xstat.in.
76597
76598         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76599         * lib/stat.c: New file.  Contents mostly from xstat.in.
76600         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76601         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76602
76603         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76604         too.
76605         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76606
76607 2002-12-03  Jim Meyering  <jim@meyering.net>
76608
76609         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76610         but not semantics, to minimize the differences between these two files.
76611         (safe_read): Change comment to mention SAFE_READ_ERROR.
76612
76613         * lib/safe-read.c (IS_EINTR): Define.
76614         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76615
76616 2002-12-02  Jim Meyering  <jim@meyering.net>
76617
76618         * lib/safe-read.c (EINTR): Define.
76619         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76620         (INT_MAX): Provide fallback.
76621         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76622
76623         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76624
76625 2002-12-02  Bruno Haible  <bruno@clisp.org>
76626
76627         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76628         Define, taken from safe-read.c.
76629         (INT_MAX): Provide fallback.
76630         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76631         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76632
76633         * lib/safe-read.c (EINTR): Remove definition.
76634         (safe_read): Don't use EINTR if it is absent.
76635
76636 2002-12-01  Jim Meyering  <jim@meyering.net>
76637
76638         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76639         zero.
76640         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76641
76642 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76643
76644         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76645         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76646         with `if (! (value < limit)) abort ();', for readability.
76647
76648 2002-11-26  Karl Berry  <karl@gnu.org>
76649
76650         * lib/strdup.c: copy from libc again, with jim's ok.
76651         * lib/.cppi-disable: re-add strdup.c
76652
76653 2002-11-25  Karl Berry  <karl@gnu.org>
76654
76655         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76656         instead of "strtol.c".
76657
76658 2002-11-25  Karl Berry  <karl@gnu.org>
76659
76660         * config/install-sh: update from automake for variable quoting, $0 in
76661         error msgs, etc.
76662
76663         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76664         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76665         entry.
76666
76667 2002-11-25  Jim Meyering  <jim@meyering.net>
76668
76669         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76670
76671 2002-11-24  Karl Berry  <karl@gnu.org>
76672
76673         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76674         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76675
76676 2002-11-24  Jim Meyering  <jim@meyering.net>
76677
76678         Update from coreutils:
76679
76680         * lib/mktime.c: Merge in changes from libc.
76681
76682         Avoid a link-time failure on some Linux systems.
76683         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76684         (otherwise).
76685         (__mon_yday): Declare with the STATIC attribute.
76686         (__mktime_internal): Likewise.
76687         Based on a report from Greg Schafer.
76688
76689 2002-11-23  Jim Meyering  <jim@meyering.net>
76690
76691         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76692         Use `unsigned', not `int', as type of index.
76693
76694         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76695
76696         * lib/fsusage.c: Remove unneeded parentheses around operands of
76697         `defined'.
76698
76699 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76700
76701         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76702         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76703         so that we can be included first.
76704         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76705         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76706         No need to include stddef.h or sys/types.h any more.
76707         Surround local include files with "", not "<>".
76708         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76709         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76710         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76711         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76712         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76713         (ISPRINT): Remove; no longer needed now that we assume C89.
76714
76715         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76716         Preserve errno.
76717
76718         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76719         quotearg_char): Use SIZE_MAX rather than
76720         (size_t) -1 when we are talking about "infinity".
76721
76722         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76723
76724 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76725
76726         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76727         hint that one should use `if (! x) abort ();' rather than `assert
76728         (x);', and anyway it's one less thing to worry about configuring.
76729         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76730         hash_rehash, hash_insert): Use abort rather than assert.
76731
76732 2002-11-22  Bruno Haible  <bruno@clisp.org>
76733
76734         * lib/safe-read.h: Assume C89. Add comments.
76735         (safe_read): Change return type to size_t.
76736         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76737         byte counts > SSIZE_MAX correctly.
76738         * lib/safe-write.h: New file.
76739         * lib/safe-write.c: New file.
76740         * lib/full-read.h: New file.
76741         * lib/full-read.c: New file.
76742         * lib/full-write.h: Assume C89. Add comments.
76743         * lib/full-write.c: Include safe-write.h.
76744         (full_write): Rewritten to use safe_write.
76745         Suggested by Jim Meyering and Paul Eggert.
76746
76747 2002-11-21  Jim Meyering  <jim@meyering.net>
76748
76749         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76750
76751         Merge in changes from the coreutils.
76752
76753         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76754         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76755         <stdint.h>.
76756         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76757         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76758         int.  Work more efficiently if X is the same width as uintmax_t.
76759         Do not compare X to -1, to avoid bogus compiler warning.
76760         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76761         Don't assume that f_frsize and f_bsize are the same type.
76762
76763         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76764         warning on FreeBSD.
76765
76766         * lib/makepath.c (make_path): Restore umask *before* creating the final
76767         component.
76768         (make_path): Minor reformatting.
76769
76770         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76771         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76772         HAVE_MALLOC/HAVE_REALLOC.
76773
76774         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76775         dummy ones.  At least on GNU/Linux systems, `auto' means something
76776         else.
76777         From Michael Stone.
76778
76779 2002-11-21  Bruno Haible  <bruno@clisp.org>
76780
76781         Remove case insensitive option matching.
76782         * lib/argmatch.h (argcasematch): Remove declaration.
76783         (ARGCASEMATCH): Remove macro.
76784         (__xargmatch_internal): Remove case_sensitive argument.
76785         (XARGMATCH): Update.
76786         (XARGCASEMATCH): Remove macro.
76787         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76788         case_sensitive argument.
76789         (argcasematch): Remove function.
76790         (__xargmatch_internal): Remove case_sensitive argument.
76791         (main): Use XARGMATCH instead of XARGCASEMATCH.
76792
76793         * lib/xmalloc.c: Change compile-time error message. Add comment about
76794         required autoconf version.
76795
76796 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76797
76798         Merge argmatch cleanups from Bison.  Assume C89.
76799
76800         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76801         Include stdlib.h, for EXIT_FAILURE.
76802         Always include <string.h>, since we assume C89.
76803         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76804         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76805         Include <stddef.h> instead, since it's all we need for size_t.
76806         (PARAMS): Remove.  All uses removed.
76807         (ARRAY_CARDINALITY): Do not bother to #undef.
76808         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76809         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76810         Remove unnecessary parentheses.
76811         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76812         Insert necessary parentheses.
76813         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76814         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76815
76816 2002-11-19  Bruno Haible  <bruno@clisp.org>
76817
76818         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76819         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76820
76821         * lib/mbswidth.h (PARAMS): Remove macro.
76822         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76823         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76824
76825         * lib/gcd.h (PARAMS): Remove macro.
76826         (gcd): Use ANSI C function declarations.
76827         * lib/gcd.c (gcd): Likewise.
76828
76829 2002-11-15  Bruno Haible  <bruno@clisp.org>
76830
76831         * lib/strcspn.c: Include <stddef.h>.
76832         (strcspn): Use ANSI C function declaration. Change return type to
76833         size_t. Use NULL.
76834         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76835         (strpbrk): Use NULL.
76836         * lib/strpbrk.h (PARAMS): Remove macro.
76837         (strpbrk): Use ANSI C function declaration.
76838         * lib/strstr.c: Don't include <sys/types.h>.
76839         * lib/strstr.h (PARAMS): Remove macro.
76840         (strstr): Use ANSI C function declarations.
76841
76842 2002-11-14  Karl Berry  <karl@gnu.org>
76843
76844         * config/mkinstalldirs: `do' on separate line, instead of
76845         `for var; do'.
76846
76847 2002-11-06  Bruno Haible  <bruno@clisp.org>
76848
76849         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76850         * lib/gcd.c (gcd): Likewise.
76851
76852 2002-11-05  Bruno Haible  <bruno@clisp.org>
76853
76854         * lib/gcd.h: New file, from gettext-0.11.5.
76855         * lib/gcd.c: New file, from gettext-0.11.5.
76856
76857 2002-11-05  Bruno Haible  <bruno@clisp.org>
76858
76859         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76860         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76861         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76862         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76863
76864         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76865         <libintl.h>.
76866         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76867         <libintl.h>.
76868
76869         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76870         * lib/human.c: Include gettext.h instead of <libintl.h>.
76871         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76872         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76873         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76874         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76875         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76876         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76877         (textdomain): Remove definition.
76878         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76879
76880         * lib/long-options.c: Remove include of <libintl.h> and definition of
76881         _.
76882         * lib/same.c: Remove include of <libintl.h> and definition of _.
76883
76884 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76885
76886         * lib/config.charset: A few additions for Solaris.
76887
76888 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76889
76890         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76891         * lib/localcharset.c (locale_charset): Declare as extern "C".
76892
76893 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76894
76895         * lib/config.charset: msdos in uk_UA uses CP1125.
76896
76897 2002-11-04  Bruno Haible  <bruno@clisp.org>
76898
76899         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76900         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76901         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76902         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76903         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76904
76905 2002-11-04  Bruno Haible  <bruno@clisp.org>
76906
76907         * lib/localcharset.c (locale_charset): Don't return an empty string.
76908
76909 2002-11-04  Bruno Haible  <bruno@clisp.org>
76910
76911         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76912         aliases.
76913
76914 2002-11-04  Bruno Haible  <bruno@clisp.org>
76915
76916         * lib/config.charset: Update for newest glibc. Add canonical names
76917         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76918
76919 2002-11-04  Bruno Haible  <bruno@clisp.org>
76920
76921         * lib/config.charset: Add support for NetBSD.
76922
76923 2002-11-04  Bruno Haible  <bruno@clisp.org>
76924
76925         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76926
76927 2002-11-01  Bruno Haible  <bruno@clisp.org>
76928
76929         * configure.in: Add AC_CONFIG_AUX_DIR call.
76930         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76931         test/Makefile.
76932         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76933
76934 2002-09-28  Karl Berry  <karl@gnu.org>
76935
76936         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76937         installed automake until the next release, since changes have been
76938         made.
76939
76940 2002-09-25  Karl Berry  <karl@gnu.org>
76941
76942         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76943         * lib/getopt*: copy from libc/posix.
76944         * lib/gettext.h: copy from gettext.
76945         * lib/.cppi-disable: add strdup.c, gettext.h.
76946
76947 2002-09-25  Karl Berry  <karl@gnu.org>
76948
76949         * config/srclist.txt: enable gettext.h check.
76950         * config/config.{guess,sub}: update from prep.
76951         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76952                 from automake 1.6.3.
76953         See srclist*.
76954
76955 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76956
76957         * regex.c (PATFETCH): Remove the translating fetch.
76958         (PATFETCH_RAW): Rename to PATFETCH.
76959         (set_image_of_range): New fun.
76960         (SET_RANGE_TABLE_WORK_AREA): Use it.
76961         (regex_compile): Don't translate the pattern chars so eagerly.
76962         Only do it when inserting an `exactn' bytecode or when handling
76963         a char-range.
76964         (mutually_exclusive_p): Avoid empty statement.
76965
76966 2002-07-06  Jim Meyering  <meyering@lucent.com>
76967
76968         * m4/README: Don't mention Makefile.am.in.
76969         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76970
76971 2002-07-01  Jim Meyering  <meyering@lucent.com>
76972
76973         * lib/c-stack.c: Include sys/time.h.
76974         From Volker Borchert.
76975
76976 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76977
76978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76979
76980 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76981
76982         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76983         New macro.  Use it uniformly instead of
76984         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76985         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76986         reported by Vin Shelton.
76987
76988 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76989
76990         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76991         Do not assume SA_SIGINFO behavior.
76992         Bug reported by Jim Meyering on NetBSD 1.5.2.
76993
76994 2002-06-22  Jim Meyering  <meyering@lucent.com>
76995
76996         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76997         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76998
76999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77000         now that configure.ac uses AC_GNU_SOURCE.
77001         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77002         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77003
77004         Update to latest tools.  Suggestions from Paul Eggert.
77005         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77006         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77007         * m4/fnmatch.m4: Likewise.
77008         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77009         to AC_HEADER_STDBOOL
77010
77011 2002-06-22  Jim Meyering  <meyering@lucent.com>
77012
77013         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77014         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77015
77016 2002-06-22  Jim Meyering  <meyering@lucent.com>
77017
77018         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77019
77020         * lib/exitfail.c, exitfail.h: Likewise.
77021         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77022
77023         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77024         of fnmatch.h.
77025         (EXTRA_DIST): Add fnmatch_loop.c.
77026         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77027
77028         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77029         * lib/fnmatch.c: Update from diffutils-2.8.2.
77030         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77031         * lib/fnmatch.h: Remove file.
77032
77033 2002-06-21  Jim Meyering  <meyering@lucent.com>
77034
77035         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77036         * m4/mbrtowc.m4: Likewise.
77037
77038         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77039         * m4/mbswidth.m4: Reflect name change:
77040         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77041         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77042
77043         * m4/lib-link.m4: Update from gettext-0.11.2.
77044         * m4/gettext.m4: Likewise.
77045
77046         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77047         From Alfred M. Szmidt.
77048
77049 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77050
77051         * lib/file-type.h: Report an error if neither S_ISREG nor
77052         S_IFREG is defined, instead of using a test specific to glibc
77053         2.2.  This should be safe, since POSIX requires S_ISREG and
77054         Unix Version 7 had S_IFREG.  We don't need to check for
77055         <sys/types.h> since we don't use any symbols that it defines.
77056
77057 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77058
77059         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77060         $@-t, so that each temporary file name is unique and valid in the first
77061         8 characters, for operation under DOS.
77062
77063 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77064
77065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77066
77067 2002-06-15  Jim Meyering  <meyering@lucent.com>
77068
77069         Work even with DJGPP 2.03, which lacks support for symlinks.
77070         From Richard Dawe.
77071         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77072         is defined.
77073         * lib/lchown.c (S_ISLNK): Likewise.
77074
77075 2002-06-15  Jim Meyering  <meyering@lucent.com>
77076
77077         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77078         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77079         have been included before this file.
77080
77081 2002-06-14  Jim Meyering  <meyering@lucent.com>
77082
77083         * lib/file-type.h: Use the version from diffutils-2.8.2.
77084         * lib/file-type.c: Likewise.
77085
77086 2002-06-07  Jim Meyering  <meyering@lucent.com>
77087
77088         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77089         They're needed at least for NetBSD 1.5.2.
77090         ($statxfs_includes): Include those same headers.
77091         ($statxfs_includes): Include sys/vfs.h if available.
77092         ($statxfs_includes): Likewise for sys/statvfs.h.
77093         Check for the following members in both structs statfs and statvfs:
77094         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77095
77096 2002-06-01  Jim Meyering  <meyering@lucent.com>
77097
77098         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77099         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77100
77101 2002-05-28  Jim Meyering  <meyering@lucent.com>
77102
77103         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77104         Reported by Volker Borchert.
77105
77106 2002-05-27  Jim Meyering  <meyering@lucent.com>
77107
77108         Fix a problem seen only on nonconforming systems whereby ls.c's
77109         use of localtime, and then of gettimeofday would cause trouble:
77110         the localtime call used to initialize rpl_gettimeofday's save
77111         mechanism would clobber ls's current local time information so
77112         that in any long listing the first file would always be listed
77113         with date 1970-01-01.  Analysis by Volker Borchert.
77114
77115         * lib/gettimeofday.c (localtime): Undefine.
77116         (rpl_localtime): New function.
77117
77118 2002-05-27  Jim Meyering  <meyering@lucent.com>
77119
77120         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77121         localtime.
77122
77123         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77124         use the replacement function; it wouldn't resolve at link time.
77125         Reported by Volker Borchert.
77126
77127 2002-05-22  Jim Meyering  <meyering@lucent.com>
77128
77129         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77130         file-type.h.
77131         * lib/file-type.h: New file.
77132         * lib/file-type.c (file_type): New file/function.  Extracted from
77133         diffutils.
77134
77135 2002-04-30  Jim Meyering  <meyering@lucent.com>
77136
77137         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77138
77139 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77140
77141         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77142
77143 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77144
77145         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77146         Do not check for alloca.h (no longer used) or stdbool.h (was never
77147         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77148
77149 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77150
77151         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77152
77153 2002-04-29  Jim Meyering  <meyering@lucent.com>
77154
77155         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77156         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77157         Use AC_FUNC_STRNLEN here instead.
77158
77159         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77160         With autoconf-2.53a, it's part of AC_PROG_CC.
77161
77162 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77163
77164         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77165         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77166
77167 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77168
77169         * lib/sig2str.h, lib/sig2str.c: New files.
77170         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77171
77172 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77173
77174         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77175         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77176         of 127, since 64 is the largest conceivable number for ancient
77177         nonstandard hosts.
77178         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77179
77180 2002-04-28  Jim Meyering  <meyering@lucent.com>
77181
77182         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77183
77184 2002-04-24  Jim Meyering  <meyering@lucent.com>
77185
77186         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77187         (jm_PREREQ): Use it.
77188
77189         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77190         mach/mach.h fcntl.h.
77191         Check for this function: setlocale.
77192
77193 2002-04-24  Jim Meyering  <meyering@lucent.com>
77194
77195         * lib/gettext.h: New file, from Gettext.
77196         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77197         (libfetish_a_SOURCES): Add gettext.h.
77198
77199 2002-04-16  Jim Meyering  <meyering@lucent.com>
77200
77201         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77202         ut_pid, ut_id, ut_exit.
77203
77204 2002-04-16  Jim Meyering  <meyering@lucent.com>
77205
77206         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77207         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77208         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77209
77210 2002-04-12  Jim Meyering  <meyering@lucent.com>
77211
77212         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77213         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77214         existence of the getmntinfo function.  Needed for Darwin 5.3.
77215
77216         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77217         This is necessary at least on Darwin 5.3.
77218
77219         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77220         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77221         strnlen.o in the library, and that makes some versions of ranlib
77222         object.
77223
77224 2002-04-12  Jim Meyering  <meyering@lucent.com>
77225
77226         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77227
77228 2002-04-09  Jim Meyering  <meyering@lucent.com>
77229
77230         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77231         to be more precise.  Rather than saying we're checking whether the
77232         function `works', say what we're testing.
77233         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77234         Reported by Bruno Haible.
77235
77236 2002-03-10  Jim Meyering  <meyering@lucent.com>
77237
77238         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77239         Suggestion from Santiago Vila.
77240
77241 2002-03-08  Jim Meyering  <meyering@lucent.com>
77242
77243         * lib/rename.c: Mention that this wrapper is needed also on
77244         mips-dec-ultrix4.4 systems.
77245
77246 2002-03-02  Jim Meyering  <meyering@lucent.com>
77247
77248         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77249         not HAVE_CLOCK_SETTIME.
77250
77251 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77252
77253         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77254         Check for clock_settime.
77255
77256 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77257
77258         * lib/nanosleep.h: Rename to....
77259         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77260
77261         * lib/gettime.c: New file.
77262         * lib/settime.c: New file.
77263         * lib/stime.c: Remove.
77264
77265         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77266         timespec.h.  Remove nanosleep.h.
77267
77268 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77269
77270         * m4/acl.m4: New file.
77271         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77272         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77273
77274 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77275
77276         * lib/acl.c, lib/acl.h: New files.
77277         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77278
77279 2002-02-24  Jim Meyering  <meyering@lucent.com>
77280
77281         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77282         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77283         cause trouble.  Reported by Nelson Beebe.
77284
77285 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77286
77287         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77288         compilers that don't know that xalloc_die never returns.
77289
77290 2002-02-20  Jim Meyering  <meyering@lucent.com>
77291
77292         * lib/getdate.c: Regenerate using bison-1.33.
77293
77294 2002-02-17  Jim Meyering  <meyering@lucent.com>
77295
77296         * config/config.guess (main): Don't use `head -1'; it's no longer
77297         portable. Use `sed 1q' instead.
77298
77299 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77300
77301         * m4/codeset.m4: Upgrade to gettext-0.11.
77302         * m4/gettext.m4: Upgrade to gettext-0.11.
77303         * m4/glibc21.m4: Upgrade to gettext-0.11.
77304         * m4/iconv.m4: Upgrade to gettext-0.11.
77305         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77306         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77307         * m4/lib-ld.m4: New file, from gettext-0.11.
77308         * m4/lib-link.m4: New file, from gettext-0.11.
77309         * m4/lib-prefix.m4: New file, from gettext-0.11.
77310         * m4/progtest.m4: Upgrade to gettext-0.11.
77311
77312 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77313
77314         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77315         (jm_PREREQ): Use it.
77316
77317 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77318
77319         * lib/posixver.c, lib/posixver.h: New files.
77320         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77321
77322 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77323             Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77326         (fwrite_success_callback): New declaration.
77327         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77328         print_unicode_char. Call failure callback instead of error.
77329         (fwrite_success_callback): New function.
77330         (exit_failure_callback): New function.
77331         (fallback_failure_callback): New function.
77332         (print_unicode_char): Call unicode_to_mb.
77333
77334 2002-01-26  Jim Meyering  <meyering@lucent.com>
77335
77336         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77337         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77338
77339 2002-01-26  Jim Meyering  <meyering@lucent.com>
77340
77341         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77342
77343 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77344
77345         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77346
77347 2002-01-22  Jim Meyering  <meyering@lucent.com>
77348
77349         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77350         Otherwise, some versions of automake would omit the rule that makes
77351         Makefile from Makefile.in.
77352
77353 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77354
77355         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77356         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77357         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77358         (memcoll): Set errno to zero if there is no error.
77359
77360         * lib/quotearg.c (quotearg_buffer_restyled):
77361         Fix bug with quoting buffers containing NUL when backslashing escapes.
77362         This bug was exposed by the other changes in this patch.
77363         (quotearg_n_options): New arg ARGSIZE.
77364         All callers changed.
77365         (quoting_options_from_style): New function.
77366         (quotearg_n_style): Use it.
77367         (quotearg_n_style_mem): New function.
77368
77369         * lib/quotearg.h (quotearg_n_style_mem): New function.
77370
77371 2002-01-19  Jim Meyering  <meyering@lucent.com>
77372
77373         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77374         Remove useless quotes: DF_PROG="df".
77375         * m4/strnlen.m4: New file.
77376
77377 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77378
77379         * lib/backupfile.c (ISDIGIT): Comment fix.
77380         * lib/getdate.y (ISDIGIT): Likewise.
77381         * lib/posixtm.c (ISDIGIT, year): Likewise.
77382         * lib/strverscmp.c (ISDIGIT): Likewise.
77383         * lib/userspec.c (ISDIGIT): Likewise.
77384
77385 2002-01-16  Jim Meyering  <meyering@lucent.com>
77386
77387         * lib/getdate.y: Add three semicolons, each just before a closing
77388         brace. Bison (as of version 1.31) no longer papers over that mistake.
77389
77390 2002-01-05  Jim Meyering  <meyering@lucent.com>
77391
77392         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77393
77394 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77395
77396         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77397         not silently exit merely because the output buffer happens to
77398         have nothing pending.
77399
77400 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77401
77402         See the big note in ../ChangeLog.
77403         * lib/human.c (suffixes): Prefer K to k for 1024.
77404         (generate_suffix_backwards): New function.
77405         (human_readable_inexact): Use it.
77406         * lib/xstrtol.c (__xstrtol): If there is no number but there
77407         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77408         Accept 'K' as well as 'k'.
77409
77410 2001-12-15  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/regex.h (__restrict_arr): Update from libc.
77413
77414         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77415         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77416         (STREQ): Define.
77417
77418 2001-12-14  Jim Meyering  <meyering@lucent.com>
77419
77420         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77421         Suggestion from Bruno Haible.
77422
77423 2001-12-10  Jim Meyering  <meyering@lucent.com>
77424
77425         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77426         xrealloc, Instead, include "xalloc.h".
77427         (initbuffer): Don't cast xmalloc return value to char*.
77428         (readline): Reword comment.
77429         Don't cast xrealloc return value to char*
77430         Return NULL, not 0.
77431
77432 2001-12-09  Jim Meyering  <meyering@lucent.com>
77433
77434         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77435         about `signed and unsigned type in conditional expression'.
77436         * lib/posixtm.c (posix_time_parse): Likewise.
77437
77438         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77439
77440         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77441         to avoid a pedantic warning.
77442
77443         * lib/getstr.c: Don't include assert.h.
77444         (getstr): Remove warning-evoking assertions.
77445         Return -1 if offset parameter is out of bounds.
77446         Change the type of a local from int to size_t.
77447
77448         * lib/strftime.c (my_strftime_localtime_r): Include this function
77449         definition in the `#if ! HAVE_TM_GMTOFF' block.
77450
77451         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77452         Include xalloc.h instead.
77453
77454 2001-12-02  Jim Meyering  <meyering@lucent.com>
77455
77456         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77457         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77458         included.
77459
77460         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77461         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77462
77463 2001-11-30  Akim Demaille  <akim@epita.fr>
77464
77465         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77466         before being defined.
77467
77468 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77469
77470         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77471         First arg is int, not unsigned.
77472         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77473         (SIZE_MAX, UINT_MAX): New macros.
77474         (quotearg_n_options): Abort if N is negative.
77475         Avoid overflow check on hosts where size_t is 64 bits and int
77476         is 32 bits, as overflow is impossible there.
77477         Fix off-by-one typo that caused unnecessary reallocation.
77478
77479 2001-11-27  Jim Meyering  <meyering@lucent.com>
77480
77481         * lib/tempname.c: Merge with version from libc.
77482         * lib/regex.c: Likewise.
77483
77484         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77485         systems for which STDC_HEADERS is 0, it was not included, resulting in
77486         a warning about an integer-to-pointer conversion problem with getenv.
77487         Reported by Volker Borchert.
77488
77489 2001-11-26  Jim Meyering  <meyering@lucent.com>
77490
77491         * lib/gtod.h: Remove file.
77492         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77493         * lib/gettimeofday.c: Don't include gtod.h.
77494         (GTOD_init): Remove function.
77495         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77496         Suggestion from Volker Borchert.
77497
77498 2001-11-23  Jim Meyering  <meyering@lucent.com>
77499
77500         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77501         it.
77502         * lib/hash.c (struct hash_table): Define it here instead.
77503
77504 2001-11-22  Jim Meyering  <meyering@lucent.com>
77505
77506         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77507
77508 2001-11-20  Jim Meyering  <meyering@lucent.com>
77509
77510         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77511         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77512
77513 2001-11-19  Jim Meyering  <meyering@lucent.com>
77514
77515         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77516         directory.  Use "conftestXXXXXX" as the template.
77517         Suggestion from Paul Eggert.
77518
77519         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77520         immediately, so the test doesn't mistakenly hit the max-open-files
77521         limit.
77522
77523 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77524
77525         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77526         (TEMPORARIES): New macro.
77527         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77528         removes an artificial limitation (e.g. HP-UX 10.20, where
77529         TMP_MAX is 17576).
77530
77531 2001-11-18  Jim Meyering  <meyering@lucent.com>
77532
77533         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77534
77535 2001-11-18  Jim Meyering  <meyering@lucent.com>
77536
77537         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77538         on SunOS 4.
77539
77540         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77541         files will be created before anything else.
77542
77543 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77544
77545         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77546         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77547
77548 2001-11-17  Jim Meyering  <meyering@lucent.com>
77549
77550         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77551         Prompted by a report from Bob Proulx.
77552
77553         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77554         Instead, require UTILS_FUNC_MKSTEMP.
77555
77556 2001-11-17  Jim Meyering  <meyering@lucent.com>
77557
77558         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77559         Now, that's done as part of AC_FUNC_STRTOD.
77560
77561 2001-11-17  Jim Meyering  <meyering@lucent.com>
77562
77563         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77564         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77565         rather than group writable.  Patch by Juan F. Codagnone.
77566
77567         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77568         xrealloc, Instead, include "xalloc.h".
77569
77570         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77571         Remove explicit declarations of xmalloc, xrealloc,
77572         and xstrdup.  Instead, include "xalloc.h".
77573
77574         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77575         unlocked-io.h.
77576         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77577         Likewise.
77578         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77579
77580         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77581         Reported by Padraig Brady.
77582
77583         * lib/mkstemp.c: #undef mkstemp.
77584         Include config.h.
77585         (rpl_mkstemp): Rename from mkstemp.
77586         Protoize.
77587
77588 2001-11-16  Jim Meyering  <meyering@lucent.com>
77589
77590         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77591         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77592         determine the amount of total physical memory, use pstat_getstatic.
77593         HPUX-11 doesn't define _SC_PHYS_PAGES.
77594         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77595         If sysconf couldn't be used to determine the amount of available
77596         physical memory, use both pstat_getstatic and pstat_getdynamic.
77597         Based on a patch from Bob Proulx.
77598
77599 2001-11-10  Jim Meyering  <meyering@lucent.com>
77600
77601         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77602         (jm_PREREQ): Use it.
77603
77604 2001-11-09  Jim Meyering  <meyering@lucent.com>
77605
77606         * m4/jm-macros.m4: Require autoconf-2.52f.
77607         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77608         Use these AC_-prefixed names, not the AM_-prefixed ones.
77609
77610         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77611
77612 2001-11-05  Jim Meyering  <meyering@lucent.com>
77613
77614         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77615
77616 2001-11-04  Jim Meyering  <meyering@lucent.com>
77617
77618         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77619         $DEFS.
77620
77621 2001-11-03  Jim Meyering  <meyering@lucent.com>
77622
77623         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77624         of AC_DEFUN.
77625
77626         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77627         know the name of the variable in the macro definition.
77628
77629 2001-11-03  Jim Meyering  <meyering@lucent.com>
77630
77631         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77632         in argmatch_to_argument call.
77633
77634         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77635         argument.
77636
77637         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77638         e.g., a fault due to an attempt to free a NULL pointer.
77639
77640 2001-11-01  Jim Meyering  <meyering@lucent.com>
77641
77642         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77643         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77644
77645 2001-11-01  Jim Meyering  <meyering@lucent.com>
77646
77647         * lib/dirfd.c, lib/dirfd.h: New files.
77648         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77649
77650         * lib/hash.c (hash_print) [TESTING]: Clean up.
77651
77652 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77653
77654         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77655         to avoid a warning if -Wall.
77656
77657 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77658
77659         * README: New file
77660         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77661         (per RMS's instructions, this is now the canonical source)
77662         * lgpl/, gpl/: New directories.
77663
77664 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77665
77666         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77667
77668 2001-10-21  Jim Meyering  <meyering@lucent.com>
77669
77670         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77671         this code would end up calling gettext even in packages built
77672         with --disable-nls.
77673         * lib/getopt.c (_): Likewise.
77674         * lib/regex.c (_): Likewise.
77675
77676 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77677
77678         * m4/error.m4 (jm_PREREQ_ERROR):
77679         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77680         AC_FUNC_STRERROR_R does that.
77681         Check for strerror declaration.
77682
77683         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77684         are supposed to have them these days.
77685         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77686         Merge changes from latest Autoconf CVS.
77687         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77688         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77689         POSIX decided to standardize on the int flavor of strerror_r.
77690
77691 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77692
77693         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77694         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77695         Use strerror_r that is only a macro, even if it is not a function.
77696         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77697         (private_strerror): Use prototypes, not old-style function definition.
77698         (print_errno_message): New function.
77699         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77700         char*-flavored one.
77701         (error_tail, error, error_at_line): Use it.
77702
77703 2001-10-11  Jim Meyering  <meyering@lucent.com>
77704
77705         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77706         and quote_n (1, ... to avoid clobbering a buffer.
77707
77708 2001-10-05  Jim Meyering  <meyering@lucent.com>
77709
77710         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77711         hash-pjw.h.
77712         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77713         * lib/hash-pjw.h: New file.
77714
77715 2001-09-30  Jim Meyering  <meyering@lucent.com>
77716
77717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77718         `struct fsstat' has the `f_fstypename' member.
77719         Use that to define FS_TYPE, which is now used to make
77720         the getfsstat link test tighter.
77721
77722 2001-09-30  Jim Meyering  <meyering@lucent.com>
77723
77724         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77725         Include <sys/ucred.h>, for Apple Darwin.
77726         Include sys/mount.h and sys/fs_types.h only if available.
77727         (FS_TYPE): Define.
77728         (read_filesystem_list): Use FS_TYPE.
77729
77730 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77731
77732         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77733         a boolean context.
77734
77735 2001-09-29  Jim Meyering  <meyering@lucent.com>
77736
77737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77738         [one-argument getmntent function]): Include stdio.h before mntent.h.
77739         SunOS 4.1.x needs it for the declaration of `FILE'.
77740         Patch by Volker Borchert.
77741
77742         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77743         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77744         sys/fs_types.h, and make the link-test for getfsstat guard #include
77745         directives with appropriate #if HAVE_*_H tests so that we can
77746         detect getfsstat on Apple Darwin1.3.7 systems.
77747         Reported by Nelson Beebe.
77748         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77749
77750 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77751
77752         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77753         #defines strtoimax.  Also treat the other strto* functions
77754         like strtoimax.
77755
77756         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77757         Check for strtoul and strtoumax,
77758         as those declarations are made even in the signed case.
77759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77760         Likewise, for strtol and strtoimax.
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         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77769         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77770         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77771
77772 2001-09-26  Jim Meyering  <meyering@lucent.com>
77773
77774         Most macros in unlocked-io.h had the wrong number of arguments.
77775         * lib/gen-uio: New script.
77776         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77777         * lib/unlocked-io.hin: Remove file.
77778         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77779         rather than trying to embed it here.
77780         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77781         Reported by Padraig Brady.
77782
77783 2001-09-25  Volker Borchert  <bt@teknon.de>
77784
77785         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77786         `result'.
77787
77788 2001-09-24  Jim Meyering  <meyering@lucent.com>
77789
77790         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77791
77792 2001-09-23  Jim Meyering  <meyering@lucent.com>
77793
77794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77795         instead of the mere test for existence of mntent.h.  The latter
77796         would get a false-positive on AIX 3.4 systems.
77797         In the outer getmntent if-block, don't die if neither of the getmntent
77798         tests succeeds.  Instead, just fall through and continue with the
77799         remaining tests.
77800
77801 2001-09-23  Jim Meyering  <meyering@lucent.com>
77802
77803         * lib/mountlist.c: Remove useless parentheses in #if directives.
77804         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77805         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77806
77807 2001-09-22  Jim Meyering  <meyering@lucent.com>
77808
77809         * m4/gettext.m4: New file.  From gettext.
77810         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77811         * m4/progtest.m4: Likewise
77812         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77813         * m4/glibc21.m4: Likewise.
77814
77815         * m4/libintl.m4: Remove.  No longer used.
77816
77817 2001-09-22  Jim Meyering  <meyering@lucent.com>
77818
77819         * lib/localcharset.c: Update from latest gettext.
77820         * lib/config.charset: Likewise.
77821
77822 2001-09-20  Jim Meyering  <meyering@lucent.com>
77823
77824         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77825         strtoimax.
77826         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77827         strtoumax.
77828
77829 2001-09-20  Jim Meyering  <meyering@lucent.com>
77830
77831         * lib/xstrtol.c (strtoimax): Guard declaration with
77832         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77833         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77834         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77835         (strtoumax): Likewise, for completeness (it wasn't necessary).
77836
77837 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77838
77839         * lib/strtoimax.c (HAVE_LONG_LONG):
77840         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77841         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77842         to work around bug in IBM C compiler.
77843
77844 2001-09-17  Jim Meyering  <meyering@lucent.com>
77845
77846         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77847         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77848         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77849         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77850         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77851         whenever the right hand side need not be expanded by the shell.
77852
77853 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77854
77855         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77856         library.  It's not correct, as some older glibcs are buggy.
77857         fnmatch wasn't fixed until glibc 2.2.
77858
77859         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77860         special shell magic here.
77861
77862 2001-09-16  Jim Meyering  <meyering@lucent.com>
77863
77864         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77865         * m4/jm-macros.m4: Require it.
77866
77867 2001-09-16  Jim Meyering  <meyering@lucent.com>
77868
77869         * lib/mkdir.c: New file.
77870
77871 2001-09-15  Jim Meyering  <meyering@lucent.com>
77872
77873         * m4/jm-macros.m4: Check for help2man.
77874
77875 2001-09-11  Jim Meyering  <meyering@lucent.com>
77876
77877         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77878         The body, by Paul Eggert, was moved here from configure.in.
77879         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77880
77881 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77882
77883         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77884         (jm_PREREQ): Use it.
77885
77886 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77887
77888         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77889         Use ssize_t, not int, to store result of readlink.
77890         Check for ssize_t overflow as well as size_t overflow,
77891         as POSIX says the result of readlink is implementation-defined
77892         when ssize_t overflows.
77893         Remove unnecessary cast to char*.
77894         Use free+malloc instead of realloc, as the storage doesn't need
77895         to be preserved and it's clearer and can be more efficient that way.
77896         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77897         * lib/xreadlink.h (xreadlink): Update prototype.
77898
77899 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77900
77901         * lib/xgetcwd.c: Revert some of the previous change; intead,
77902         fix the HAVE_GETCWD_NULL code to behave more like the
77903         !HAVE_GETCWD_NULL code used to.
77904
77905         Include "xalloc.h".
77906         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77907         invoke xalloc_die.
77908
77909 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77910
77911         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77912         sys/param.h, as pathmax.h includes them.
77913
77914 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77915
77916         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77917         (jm_PREREQ_XGETCWD): New macro.
77918
77919         * m4/getcwd.m4: New file.
77920
77921 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77922
77923         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77924         like the HAVE_GETCWD_NULL code.
77925         Include pathmax.h if not HAVE_GETCWD.
77926         Do not include xalloc.h.
77927         (INITIAL_BUFFER_SIZE): New symbol.
77928         Do not use xmalloc / xrealloc, since the caller is responsible for
77929         handling errors.  Preserve errno around `free' during failure.
77930         Do not overrun buffer when using getwd.
77931
77932 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77933
77934         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77935         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77936         getcwd (NULL, 0).
77937
77938 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77939
77940         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77941         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77942         spotted by Jim Meyering.
77943
77944 2001-09-03  Jim Meyering  <meyering@lucent.com>
77945
77946         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77947         failure.
77948
77949 2001-09-02  Jim Meyering  <meyering@lucent.com>
77950
77951         * lib/error.c: Update from GNU libc.
77952
77953 2001-09-01  Jim Meyering  <meyering@lucent.com>
77954
77955         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77956         Used by df.
77957
77958 2001-09-01  Jim Meyering  <meyering@lucent.com>
77959
77960         * lib/xreadlink.c: New file.
77961         * lib/xreadlink.h: New file.
77962         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77963         xreadlink.h.
77964
77965         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77966         doesn't conflict with sparc Solaris 7's definition in
77967         /usr/include/sys/int_types.h.
77968
77969         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77970         files.
77971         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77972         and strncasecmp as r-values.  Unixware didn't have declarations.
77973
77974 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77975
77976         * lib/xstrtol.h: Add copyright notice.
77977         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77978         LONGINT_INVALID_SUFFIX_CHAR.
77979
77980 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77981
77982         * lib/xstrtol.c (strtoimax): New decl.
77983
77984 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77985
77986         * lib/xgetcwd.c: Don't include pathmax.h.
77987         Include stdlib.h and unistd.h if available.
77988         Include xalloc.h.
77989         (xmalloc, xstrdup, free): Remove decls.
77990         (xgetcwd): Don't assume sizes fit in unsigned.
77991         Check for overflow when computing sizes.
77992         Simplify reallocation code.
77993
77994 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77995
77996         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77997         a directory's st_size can have an arbitrary value, so the old
77998         usage could waste an arbitrary amount of memory.  All uses
77999         changed.
78000         * lib/savedir.h: Update prototype.
78001
78002 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78003
78004         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78005
78006         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78007         old strtoimax.c.
78008
78009         Also, make the following further changes to make this file's
78010         configuration more similar to that of strtol.c:
78011         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78012         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78013         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78014         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78015         changed to signed values.
78016
78017         And make the following changes as well:
78018         Fix copyright notice, as 1999 was missing.
78019         (verify): New macro.
78020         (strtoimax): Check sizes at compile-time, not run-time.
78021         Prefer strtol to strtoll if both work.
78022         (main): Remove; it was not that useful and was a pain to maintain.
78023
78024         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78025
78026 2001-08-31  Jim Meyering  <meyering@lucent.com>
78027
78028         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78029         Use an initial, malloc'd, buffer of length 128 rather than
78030         a statically allocated one of length 1024.
78031
78032 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78033
78034         Simplify code, partly by assuming autoconf 2.52 semantics.
78035
78036         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78037
78038         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78039         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78040         All uses removed.
78041         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78042         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78043         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78044         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78045         jm_AC_HEADER_INTTYPES_H.
78046         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78047
78048         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78049
78050         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78051         Quote first arg of AC_DEFUN.
78052         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78053         since they are needed to parse the include file even if we need
78054         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78056         but with opposite signedness.
78057
78058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78059
78060         Merge 'exclude' changes from tar 1.13.22.
78061         This fixes one or two unlikely storage allocation overflow bugs,
78062         but doesn't change user-visible behavior otherwise.
78063
78064 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78065
78066         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78067         (jm_PREREQ_EXCLUDE): New macro.
78068
78069 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78070
78071         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78072         tm to be declared.
78073
78074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78075
78076         * lib/hash.c: Remove '2001' from copyright notice.
78077
78078 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78079
78080         * lib/full-write.h: New file.
78081         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78082         * lib/full-write.c: Correct credits, as cccp.c no longer
78083         exists and anyway it was so heavily changed from the old cccp
78084         code as to be unrecognizable.  Include full-write.h.
78085         (full_write): Return size_t, with short writes meaning failure.
78086         All callers changed.  This fixes a bug with large buffers
78087         on 64-bit hosts.
78088         * lib/utime.c: Include full-write.h.
78089
78090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78091
78092         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78093         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78094         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78095         Include if available.
78096         (<xalloc.h>): Include
78097         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78098         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78099         collide with FNM macros.
78100         (struct patopts): New struct.
78101         (struct exclude): Use it, as exclude patterns now come with options.
78102         (new_exclude): Support above changes.
78103         (new_exclude, add_exclude_file):
78104         Initial size must now be a power of two to simplify overflow checking.
78105         (free_exclude, fnmatch_no_wildcards): New function.
78106         (excluded_filename): No longer requires options arg, as the options
78107         are determined by add_exclude.  Now returns bool, not int.
78108         (excluded_filename, add_exclude):
78109         Add support for the fancy new exclusion options.
78110         (add_exclude, add_exclude_file): Now takes int options arg.
78111         Check for arithmetic overflow when computing sizes.
78112         (add_exclude_file): xrealloc might modify errno, so don't
78113         realloc until after errno might be used.
78114
78115         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78116         New macros.
78117         (free_exclude): New decl.
78118         (add_exclude, add_exclude_file): Now takes int options arg.
78119         (excluded_filename): No longer requires options arg, as the options
78120         are determined by add_exclude.  Now returns bool, not int.
78121
78122 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78123
78124         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78125
78126 2001-08-27  Jim Meyering  <meyering@lucent.com>
78127
78128         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78129
78130         * lib/version-etc.c (N_): Remove definition.
78131         Revert most of last change.
78132         Instead, simply don't mark the `Copyright...' string for translation.
78133         Based on advice from Paul Eggert.
78134
78135         * lib/strtoxmax.c: Tweak comment.
78136
78137 2001-08-26  Jim Meyering  <meyering@lucent.com>
78138
78139         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78140
78141         * m4/xstrtoimax.m4: New file.
78142         * m4/xstrtoumax.m4: Add comments explaining why we
78143         AC_REPLACE_FUNCS(strtol).
78144
78145 2001-08-26  Jim Meyering  <meyering@lucent.com>
78146
78147         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78148         of copyright with `%s' so translators don't get an untranslated
78149         message in 2002.
78150         (COPYRIGHT_YEAR): Define.
78151         (version_etc): Use fprintf rather than fputs.
78152         Suggestion from Ulrich Drepper.
78153
78154         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78155
78156         * lib/strtoll.c: New file, from GNU libc.
78157         * lib/xstrtoimax.c: New file.
78158
78159         * lib/xstrtol.h: Add xstrtoimax.
78160         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78161         * lib/strtoimax.c: New file.  Likewise, but first define
78162         STRTOUXMAX_SIGNED.
78163
78164         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78165         ...
78166         * lib/strtoxmax.c: ... then renamed to this.
78167
78168 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78169
78170         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78171         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78172         (jm_AC_TYPE_INTMAX_T): New macro.
78173         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78174
78175         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78176
78177         * m4/longlong.m4: Renamed from ulonglong.m4.
78178         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78179         * m4/uintmax_t.m4: Removed.
78180
78181 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78182
78183         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78184         Port to Solaris 8, where 'sed' requires a space after the 'r'
78185         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78186         Redirect output to $tmp just once.
78187
78188 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78189
78190         * lib/addext.c (<errno.h>): Include.
78191         (errno): Declare if not defined.
78192         (addext): Work correctly when pathconf returns -1 and leaves
78193         errno alone because there is no limit.  Also, work even if
78194         pathconf returns a value greater than SIZE_MAX.
78195
78196 2001-08-12  Jim Meyering  <meyering@lucent.com>
78197
78198         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78199         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78200         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78201         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78202         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78203         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78204         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78205         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78206         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78207         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78208         utime.m4, utimes.m4, xstrtoumax.m4:
78209         Quote the first argument in each use of AC_DEFUN.
78210
78211 2001-08-12  Jim Meyering  <meyering@lucent.com>
78212
78213         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78214         Simply `return getcwd (NULL, 0);'.
78215         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78216         Use 1300 as initial value for length, not PATH_MAX.
78217
78218         * lib/pathmax.h: Clean up cpp syntax.
78219
78220 2001-08-12  Jim Meyering  <meyering@lucent.com>
78221
78222         * lib/gettimeofday.c: New file.
78223         * lib/gtod.h: New file.
78224         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78225
78226 2001-08-05  Jim Meyering  <meyering@lucent.com>
78227
78228         * m4/jm-macros.m4: Require autoconf-2.52.
78229
78230 2001-08-04  Jim Meyering  <meyering@lucent.com>
78231
78232         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78233         stmt, to get in sync with glibc.
78234
78235 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78236
78237         The following changes are from gettext 0.10.39 as maintained by
78238         Bruno Haible.
78239
78240         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78241         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78242         with inverted sense.  All uses changed.
78243
78244         * lib/mbswidth.c: Don't include <limits.h>.
78245         Include <stdlib.h> and <string.h> unconditionally.
78246         (iswcntrl, mbsinit, ISCNTRL): New macros.
78247         (mbsnwidth): Use K&R style function declarations.
78248         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78249         can optimize it when MB_CUR_MAX == 1.
78250         The width of control characters is zero, not 1.
78251
78252 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78253
78254         The following changes are from gettext 0.10.39 as maintained by
78255         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78256
78257         * m4/codeset.m4: Upgrade to serial AM1.
78258         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78259         all uses changed.  Quote first arg of AC_DEFUN.
78260         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78261
78262         * m4/iconv.m4: Upgrade to serial AM2.
78263         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78264         Add --with-libconv-prefix.
78265         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78266         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78267         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78268         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78269         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78270
78271         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78272         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78273         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78274         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78275         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78276         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78277         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78278         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78279         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78280
78281         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78282         string.h any more.
78283
78284         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78285         not the default value.
78286
78287         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78288         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78289         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78290         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78291         Also check for iswcntrl, used for wcwidth fallback.
78292         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78293         to Autoconf 2.13.
78294
78295 2001-08-03  Jim Meyering  <meyering@lucent.com>
78296
78297         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78298         as it was in the original.  Reported by Paul Eggert.
78299
78300 2001-07-16  Jim Meyering  <meyering@lucent.com>
78301
78302         * m4/gettimeofday.m4: New file.
78303         Prompted by a report from Bernhard Baehr.
78304
78305 2001-07-15  Jim Meyering  <meyering@lucent.com>
78306
78307         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78308         stuff. Now it's in ../Makefile.cfg.
78309
78310 2001-07-15  Jim Meyering  <meyering@lucent.com>
78311
78312         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78313         (BUILT_SOURCES): Add unlocked-io.h.
78314         (io_functions): Define.
78315         (unlocked-io.h): New rule.
78316         (DISTCLEANFILES): Add unlocked-io.h.
78317         (all-local): Depend on unlocked-io.h, to ensure it is created.
78318
78319         * lib/unlocked-io.hin: New file
78320
78321         * lib/regex.c: Update from glibc.
78322
78323 2001-07-05  Jim Meyering  <meyering@lucent.com>
78324
78325         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78326         recommendation.
78327         (libfetish_a_SOURCES): Put all .h files here instead.
78328         Remove a thus-exposed (better checks in automake) duplicate and
78329         two unnecessary .h files.
78330
78331 2001-07-04  Jim Meyering  <meyering@lucent.com>
78332
78333         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78334         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78335         distcheck failure.
78336
78337 2001-07-02  Jim Meyering  <meyering@lucent.com>
78338
78339         The following changes were prompted by suggestions from Bruno Haible.
78340
78341         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78342         is now generated.
78343         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78344         definition of EXTRA_DIST.
78345         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78346         ensure that the generated file is created/updated whenever the list
78347         of $(unlocked_functions) is changed.
78348         (jm-glibc-io.m4): New rule.
78349         (unlocked-io.h): New rule -- currently unused.
78350
78351 2001-06-24  Jim Meyering  <meyering@lucent.com>
78352
78353         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78354         unmatched right bracket, rather than kludging it with an extra,
78355         falsely-matching quote in a comment.  Patch by Akim Demaille.
78356
78357 2001-06-11  Jim Meyering  <meyering@lucent.com>
78358
78359         * lib/regex.c: Update from GNU libc.
78360
78361 2001-05-27  Jim Meyering  <meyering@lucent.com>
78362
78363         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78364         Check for ut_type in struct utmp.
78365
78366 2001-05-27  Jim Meyering  <meyering@lucent.com>
78367
78368         * lib/readutmp.h (UT_TYPE): Define.
78369
78370 2001-05-24  Jim Meyering  <meyering@lucent.com>
78371
78372         * lib/argmatch.c: Include "quote.h".
78373         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78374         quote function.  Reported by Göran Uddeborg.
78375
78376 2001-05-22  Jim Meyering  <meyering@lucent.com>
78377
78378         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78379         now that we use the package-supplied version unconditionally.
78380         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78381
78382 2001-05-21  Jim Meyering  <meyering@lucent.com>
78383
78384         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78385         shell syntax errors.
78386
78387 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78388
78389         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78390
78391 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78392
78393         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78394         Don't bother to check library strftime, since
78395         we'll be using our own my_strftime function anyway.
78396         Define my_strftime instead of strftime.
78397
78398 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78399
78400         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78401         which is not yet declared.
78402
78403 2001-05-15  Jim Meyering  <meyering@lucent.com>
78404
78405         * m4/regex.m4: Use proper quoting so brackets appear in the test
78406         program.
78407         Reported by, and with help from, Bruno Haible.
78408
78409 2001-05-13  Jim Meyering  <meyering@lucent.com>
78410
78411         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78412         undefined.
78413
78414 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78415
78416         dirname code cleanup.  base_name now behaves more compatibly
78417         with POSIX basename when given file names that have trailing
78418         slashes, and similarly for dir_name.  Add new primitives
78419         base_len and dir_len.  Put the directory-name-related decls
78420         into dirname.h.
78421
78422         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78423         * lib/backupfile.c (base_name): Likewise.
78424         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78425         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78426         * lib/makepath.c (strip_trailing_slashes): Likewise.
78427         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78428         ISSLASH): Likewise.
78429         * lib/rename.c (strip_trailing_slashes): Likewise.
78430         * lib/same.c (base_name): Likewise.
78431         * lib/stripslash.c (ISSLASH): Likewise.
78432
78433         * lib/addext.c: Include <dirname.h> after size_t is defined.
78434         * lib/backupfile.c: Likewise.
78435
78436         * lib/addext.c (addext): Use base_len to trim redundant
78437         trailing slashes instead of doing it ourselves.
78438         But do not trim the last slash if it is not redundant.
78439
78440         * lib/backupfile.c (find_backup_file_name,
78441         max_backup_version): Use base_len instead of rolling it ourselves.
78442         Handle the case of "" and (on DOS) "C:" correctly.
78443
78444         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78445         needed. Include <string.h>, <dirname.h>.
78446         (base_name): Allow file names ending in slashes, other than names
78447         that are all slashes.  In this case, return the basename followed
78448         by the slashes.  This is more general, and can be used in places
78449         where the original base_name purposely had an assertion failure.
78450         (base_len): New function.
78451
78452         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78453         Do not include <assert.h>; no longer needed.
78454         Include xalloc.h.
78455         (memrchr): Remove decl.
78456         (dir_name_r): Remove.
78457         (dir_len): Renamed from dirlen.  All callers changed.
78458         Rewrite in terms of base_name, for simplicity and consistency.
78459         (dir_name): Never return NULL.  All callers changed.
78460         Do not include <stdlib.h> in test program; no longer needed.
78461         return 0; is fine for test program.
78462
78463         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78464         New macros.
78465         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78466
78467         * lib/path-concat.c (path_concat): Use base_len to compute
78468         base length, not strlen; this means we cannot rely on memcpy
78469         to null-terminate.
78470
78471         * lib/same.c (STREQ): Remove.
78472         (same_name): Handle the case where the basename ends in trailing '/'.
78473
78474         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78475         a slash was stripped.  Do not strip the last slash after a
78476         file system prefix.
78477
78478 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78479
78480         * lib/Makefile.am (libfetish_a_SOURCES):
78481         Add strftime.c, since we now compile it on all hosts.
78482
78483         * lib/strftime.c (my_strftime):
78484         Define to nstrftime if emacs, but only if my_strftime is not defined.
78485         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78486         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78487         Add one more extra argument: a nanoseconds value.
78488         All uses changed.
78489         (ns): New macro.
78490         (my_strftime function): Add %N format.
78491         (emacs_strftimeu): Renamed from emacs_strftime,
78492         with extra ut argument.
78493
78494 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78495
78496         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78497
78498 2001-04-21  Jim Meyering  <meyering@lucent.com>
78499
78500         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78501         doesn't interfere.
78502
78503 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78504
78505         * m4/ftruncate.m4: Check for chsize.
78506         Link with ftruncate.o unconditionally if ftruncate is missing.
78507         This was required when cross-compiling to i586-mingw32msvc.
78508
78509 2001-04-08  Jim Meyering  <meyering@lucent.com>
78510
78511         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78512         recomputed; that's necessary when the offset spans a DST transition.
78513         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78514
78515 2001-04-02  Jim Meyering  <meyering@lucent.com>
78516
78517         * lib/regex.h, regex.c: Update from GNU libc.
78518
78519 2001-03-24  Jim Meyering  <meyering@lucent.com>
78520
78521         * m4/jm-macros.m4: Require autoconf-2.49d.
78522
78523 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78524
78525         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78526
78527 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78528
78529         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78530
78531 2001-03-17  Jim Meyering  <meyering@lucent.com>
78532
78533         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78534         now that the version in autoconf is equivalent.
78535         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78536
78537         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78538         Suggestion from Akim Demaille.
78539
78540         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78541         (jm_PREREQ_TEMPNAME): New function.
78542
78543 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78544
78545         * lib/tempname.c (uint64_t): Define to uintmax_t if
78546         not defined, and if UINT64_MAX is not defined.
78547         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78548         Reported by John David Anglin.
78549
78550 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78551
78552         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78553         resolve alias if codeset is empty.
78554         * lib/config.charset (BeOS): Use wildcard syntax.
78555
78556 2001-03-13  Jim Meyering  <meyering@lucent.com>
78557
78558         * lib/path-concat.c (path_concat)
78559         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78560         concatenating e.g., `C:' and `foo'.
78561         From Bruno Haible.
78562
78563 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78564
78565         * lib/localcharset.c (locale_charset): Don't use
78566         setlocale(LC_CTYPE,NULL). Don't return NULL.
78567         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78568
78569 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78570
78571         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78572         support for DOS/DJGPP.
78573
78574 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78575
78576         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78577         lacks mkstemp.  Compile our own tempname.c if we compile our own
78578         mkstemp.c, as mkstemp relies on tempname.
78579
78580 2001-03-01  Jim Meyering  <meyering@lucent.com>
78581
78582         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78583         AH_VERBATIM really does output its argument verbatim.
78584
78585 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78586
78587         * lib/Makefile.am (libfetish_a_SOURCES):
78588         Add dup-safer.c, fopen-safer.c.
78589         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78590
78591         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78592         * lib/unistd-safer.h: New files.
78593
78594 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78595
78596         The mkstemp replacement is taken from glibc 2.2.2, with some
78597         portability fixes for use outside glibc, as follows:
78598
78599         * lib/tempname.c (struct_stat64): New macro.
78600         (direxists, __gen_tempname): Use it.
78601         This avoids a portability problem with Solaris 8.
78602
78603         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78604         (<stddef.h>, <stdint.h>, <string.h>):
78605         Include only if STDC_HEADERS || _LIBC.
78606         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78607         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78608         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78609         (__set_errno): Define this macro if <errno.h> doesn't.
78610         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78611         Define these macros if <stdio.h> doesn't.
78612         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78613         Define these macros if <sys/stat.h>
78614         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78615         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78616         __xstat64): Define if not _LIBC.
78617         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78618         (__gen_tempname): Invoke gettimeofday only if
78619         HAVE_GETTIMEOFDAY || _LIBC;
78620         otherwise, fall back on plain "time".
78621         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78622
78623         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78624
78625         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78626
78627 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78628
78629         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78630
78631 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78632
78633         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78634         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78635         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78636         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78637
78638 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78639
78640         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78641         Remove workaround macros for hosts that have mbrtowc but not
78642         mbstate_t, as we now insist on proper declarations for both
78643         before using mbrtowc.
78644
78645 2001-02-17  Jim Meyering  <meyering@lucent.com>
78646
78647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78648         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78649         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78650         UnixWare 7.1.1.
78651
78652         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78653         rather than AC_CACHE_VAL.
78654
78655 2001-02-17  Jim Meyering  <meyering@lucent.com>
78656
78657         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78658         around included file name.
78659
78660         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78661
78662         * lib/strftime.c: Update from GNU libc (the only changes were to
78663         comments).
78664
78665 2001-02-17  Jim Meyering  <meyering@lucent.com>
78666
78667         * lib/regex.c: Update from libc.
78668
78669 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78670
78671         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78672         clash.
78673
78674 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78675
78676         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78677         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78678         Reported by Mark Hounschell via Paul Eggert.
78679
78680 2001-02-07  Jim Meyering  <meyering@lucent.com>
78681
78682         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78683
78684 2001-02-05  Jim Meyering  <meyering@lucent.com>
78685
78686         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78687         it includes the patch required for `large file' support with at least
78688         HP-UX's 10.20 /bin/cc.
78689
78690 2001-02-03  Jim Meyering  <meyering@lucent.com>
78691
78692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78693         AS_IF, now that it works once again (mysteriously).
78694         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78695
78696 2001-01-30  Jim Meyering  <meyering@lucent.com>
78697
78698         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78699         * m4/chown.m4: Rename conftestchown to conftest.chown.
78700         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78701         s/conftestdir2/conftest.d2/.
78702         * m4/utimes.m4: s/conftestdata/conftest.data/
78703         Inspired by Pavel Roskin's change in autoconf.
78704
78705 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78706
78707         * lib/config.charset: Update for FreeBSD 4.2.
78708
78709 2001-01-27  Jim Meyering  <meyering@lucent.com>
78710
78711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78712         a use of AS_IF.
78713         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78714
78715 2001-01-26  Jim Meyering  <meyering@lucent.com>
78716
78717         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78718         quotearg.c includes it.
78719
78720 2001-01-26  Jim Meyering  <meyering@lucent.com>
78721
78722         * lib/quotearg.c: Include stddef.h.
78723         * lib/quote.c: Include stddef.h.
78724         Reported by Axel Kittenberger.
78725
78726         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78727         line in double quotes so that it evokes a better diagnostic.
78728         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78729         Reported by Axel Kittenberger.
78730
78731 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78732
78733         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78734         as if it was a `charset'.
78735
78736 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78737
78738         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78739         has const.
78740
78741 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78742
78743         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78744         to avoid a warning.  Add back 'const' to inptr.
78745
78746 2001-01-20  Jim Meyering  <meyering@lucent.com>
78747
78748         Be sure that headers are checked before used in code compiled
78749         for the type checks.
78750         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78751         In place of that, invoke jm_CHECK_ALL_TYPES.
78752         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78753         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78754         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78755         The check for ssize_t was mistakenly run before the test for unistd.h.
78756
78757         The configure-time check for stdbool.h was missing.
78758         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78759         (jm_PREREQ_HASH): New function.
78760
78761 2001-01-17  Jim Meyering  <meyering@lucent.com>
78762
78763         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78764         for autoconf-2.49c.
78765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78766
78767 2001-01-16  Jim Meyering  <meyering@lucent.com>
78768
78769         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78770         From Bruno Haible.
78771
78772 2001-01-14  Jim Meyering  <meyering@lucent.com>
78773
78774         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78775         foo and bar.  Create conftestdir/ in the script, not in the C code.
78776         Remove directories in the script, not in the C code.
78777         Remove conftestdir{,2} before trying to create the directory.
78778         Make the entire configure script fail if the mkdir fails.
78779
78780 2001-01-14  Jim Meyering  <meyering@lucent.com>
78781
78782         * lib/rename.c: New file.  From Volker Borchert.
78783         Include stdlib.h, string.h or strings.h, and xalloc.h.
78784         Use strip_trailing_slashes rather than open-coding it.
78785
78786 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78787
78788         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78789
78790 2001-01-03  Jim Meyering  <meyering@lucent.com>
78791
78792         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78793         of local `inptr' to avoid warning with some system declarations of
78794         iconv.
78795
78796 2001-01-02  Volker Borchert  <bt@teknon.de>
78797
78798         * m4/rename.m4: New file.
78799         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78800
78801 2001-01-01  Jim Meyering  <meyering@lucent.com>
78802
78803         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78804         even on systems with utmpx.h.  It's necessary for the declaration of
78805         utmp's ut_user member.  Reported by Andreas Jaeger.
78806
78807         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78808         available. They are required for the declarations of getgrgid and
78809         getpwuid resp.
78810         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78811         Reported by Andreas Jaeger.
78812
78813 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78814
78815         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78816         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78817         so `make install' also works in VPATH builds.
78818
78819 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78820
78821         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78822         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78823         can be used in subdirectories.
78824
78825 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78826
78827         * lib/modechange.c: Do not assume that mode_t uses the
78828         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78829         the other-execute bit of FOO even if S_IXOTH != 1.
78830
78831         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78832         WOTH, XOTH, ALLM): New macros.
78833         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78834          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78835         Use them.
78836         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78837         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78838         (mode_compile):
78839         No need to use uintmax_t; unsigned long is long enough.
78840         Don't bother to get suffix since we don't use it.
78841
78842 2000-12-26  Jim Meyering  <meyering@lucent.com>
78843
78844         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78845         better with autoheader.
78846
78847 2000-12-24  Jim Meyering  <meyering@lucent.com>
78848
78849         * lib/hash.c (is_prime): Return explicit boolean values.
78850         (hash_get_first): Return NULL to appease Irix5.6's 89.
78851         Reported by Nelson Beebe.
78852
78853 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78854
78855         * lib/localcharset.c (locale_charset): Add support for Win32.
78856
78857 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78858
78859         * lib/physmem.h, lib/physmem.c: New files.
78860
78861         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78862         (noinst_HEADERS): Add physmem.h.
78863
78864         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78865         't' for compatibility with Solaris 8 sort.
78866
78867 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78868
78869         * lib/config.charset: Add support for BeOS.
78870
78871 2000-12-17  Jim Meyering  <meyering@lucent.com>
78872
78873         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78874         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78875
78876 2000-12-16  Jim Meyering  <meyering@lucent.com>
78877
78878         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78879         N and M) would have treated it like `chown N:N FILE'.
78880
78881         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78882
78883 2000-12-16  Jim Meyering  <meyering@lucent.com>
78884
78885         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78886         SHELLS_FILE to a file name that's useful on djgpp systems.
78887         Include stdlib.h.
78888         (ADDITIONAL_DEFAULT_SHELLS): Define.
78889         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78890         Based mostly on a patch from Prashant TR.
78891
78892 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78893
78894         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78895         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78896         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78897
78898 2000-12-08  Andreas Schwab  <schwab@suse.de>
78899
78900         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78901         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78902
78903 2000-12-07  Jim Meyering  <meyering@lucent.com>
78904
78905         * lib/stripslash.c (ISSLASH): Define.
78906         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78907         `/'.
78908         From Prashant TR.
78909
78910         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78911         (dir_name_r): Declare this function as static.
78912         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78913         manifest itself on a name containing a mix of slashes and
78914         backslashes.
78915         Make this function work with names starting with a DOS-style
78916         drive letter and colon prefix.
78917         (dir_name): Append `.' if necessary.
78918         Based mostly on patches from Prashant TR and Eli Zaretskii.
78919
78920         * lib/dirname.h (dir_name_r): Remove prototype.
78921
78922 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78923
78924         * m4/off_t-format.m4: Remove this file.
78925         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78926
78927 2000-12-06  Jim Meyering  <meyering@lucent.com>
78928
78929         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78930         replacement strtoull, we may well need the replacement strtoul, too.
78931         Check for declarations of strtoul and strtoull.
78932         Check for strtol.  Mainly as a cue to cause automake to include
78933         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78934         Check for limits.h -- strtol.c needs it.
78935
78936 2000-12-05  Jim Meyering  <meyering@lucent.com>
78937
78938         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78939
78940 2000-12-04  Jim Meyering  <meyering@lucent.com>
78941
78942         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78943         Also include memory.h, stdlib.h, unistd.h if appropriate.
78944         Reported by Andreas Jaeger (conflicting declaration of malloc).
78945
78946 2000-12-02  Jim Meyering  <meyering@lucent.com>
78947
78948         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78949         * m4/jm-macros.m4 (jm_MACROS): require it.
78950
78951 2000-12-02  Jim Meyering  <meyering@lucent.com>
78952
78953         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78954
78955 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78956
78957         * lib/memrchr.c: Include <config.h> before any system include file.
78958
78959 2000-11-30  Jim Meyering  <meyering@lucent.com>
78960
78961         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78962
78963 2000-11-30  Jim Meyering  <meyering@lucent.com>
78964
78965         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78966
78967 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78968
78969         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78970
78971 2000-11-26  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78974
78975 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78976
78977         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78978         size of (size_t) -1; it's not portable.
78979
78980 2000-11-17  Jim Meyering  <meyering@lucent.com>
78981
78982         * lib/strstr.c: Update from GNU libc.
78983
78984 2000-11-17  Akim Demaille  <akim@epita.fr>
78985
78986         * lib/obstack.h: Formatting changes.
78987         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78988         prevent type checking.
78989         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78990         cast the value to (void *): assigning a `foo *' to a `void *'
78991         variable is valid.
78992         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78993
78994 2000-11-16  Jim Meyering  <meyering@lucent.com>
78995
78996         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78997
78998 2000-11-11  Jim Meyering  <meyering@lucent.com>
78999
79000         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79001
79002 2000-11-10  Jim Meyering  <meyering@lucent.com>
79003
79004         * lib/obstack.h: Update from GNU libc.
79005         * lib/obstack.c: Likewise.
79006
79007 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79008
79009         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79010
79011 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79012
79013         * lib/getusershell.c (setusershell): Use rewind rather than
79014         fseek/fseeko, to avoid configuration hassles with fseeko.
79015         Don't bother opening SHELLS_FILE if shellstream is NULL;
79016         it's not necessary.
79017
79018 2000-11-05  Jim Meyering  <meyering@lucent.com>
79019
79020         * lib/makepath.h (make_dir): Declare.
79021         * lib/makepath.c (make_dir): Remove `static' attribute.
79022         Tweak a comment.
79023
79024 2000-11-04  Jim Meyering  <meyering@lucent.com>
79025
79026         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79027
79028 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79029
79030         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79031         last one in a bucket, advance to the next bucket.
79032
79033 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79034
79035         * lib/fnmatch.c: Do not comment out all the code if we are using
79036         the GNU C library, because in some cases we are replacing buggy
79037         code in the GNU C library itself.
79038
79039 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79040
79041         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79042         (regex_compile): Catch bogus \(\1\).
79043
79044 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79045
79046         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79047         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79048         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79049
79050 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79051
79052         * lib/error.h, getline.h, modechange.h:
79053         Remove "2000" from Copyright line, as the file hasn't been
79054         changed this year other than in the copyright notice.
79055
79056         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79057         was changed this year.
79058
79059 2000-10-29  Jim Meyering  <meyering@lucent.com>
79060
79061         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79062         renaming.
79063         * m4/ls-mntd-fs.m4: Likewise
79064
79065 2000-10-29  Jim Meyering  <meyering@lucent.com>
79066
79067         * lib/xstat.in: Fix grammar in comment.
79068
79069 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79070
79071         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79072         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79073         doesn't define __restrict_arr.
79074
79075 2000-10-28  Jim Meyering  <meyering@lucent.com>
79076
79077         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79078         (jm_PREREQ_MEMCHR): New function.
79079
79080 2000-10-28  Jim Meyering  <meyering@lucent.com>
79081
79082         * lib/memchr.c: Update from libc.
79083         Adjust for portability:
79084         [HAVE_STDLIB_H]: Include stdlib.h.
79085         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79086         Undef __memchr, too.
79087         [!weak_alias]: Define __memchr to memchr.
79088
79089         * lib/regex.c: Update from libc.
79090         * lib/regex.h: Likewise.
79091         * lib/getopt1.c: Likewise.
79092         * lib/memcmp.c: Likewise.
79093
79094         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79095         Avoid using fseek, when possible -- it's broken by design.
79096         Patch by Ulrich Drepper.
79097
79098 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79099
79100         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79101         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79102         Giving in to popular pressure to shut up the compiler with casts.
79103
79104 2000-10-26  Jim Meyering  <meyering@lucent.com>
79105
79106         * lib/strftime.c: Update from libc.
79107
79108 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79109
79110         * regex.c: More `unsigned char' -> `re_char' changes.
79111         Also change several `int' into `re_wchar_t'.
79112         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79113         (PUSH_FAILURE_POINTER): Don't cast any more.
79114         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79115         We want GCC to complain, since this piece of code makes
79116         re_match non-reentrant, which *should* be fixed.
79117         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79118         (EXTEND_BUFFER): Use RETALLOC.
79119         (SET_LIST_BIT): Don't cast.
79120         (re_wchar_t): New type.
79121         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79122         that those two functions will always properly return.
79123         (IMMEDIATE_QUIT_CHECK): Cast to void.
79124         (analyse_first): Use recursion rather than an explicit stack.
79125         (re_compile_fastmap): Can't fail anymore.
79126         (re_search_2): Don't check re_compile_fastmap for failure.
79127         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79128         Now also sets the new value (passed in a new argument).
79129         (re_match_2_internal): Use it.
79130         Also, use a new var `reg' of type size_t when looping through regs
79131         rather than reuse the inappropriate `mcnt'.
79132
79133 2000-10-25  Jim Meyering  <meyering@lucent.com>
79134
79135         * lib/obstack.c: Update from libc.
79136
79137 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79138
79139         * regex.c (regex_compile): Change the way of handling a range from
79140         a char less than 256 to a char not less than 256.
79141
79142 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79143
79144         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79145         NT-Emacs only.
79146         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79147         so that re_search functions only quit when callers expect them to.
79148
79149 2000-10-23  Jim Meyering  <meyering@lucent.com>
79150
79151         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79152         wrong.  That set_locale call must not have any side effects.
79153         From Paul Eggert.
79154
79155 2000-10-22  Jim Meyering  <meyering@lucent.com>
79156
79157         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79158         [CYCLIC]: Remove now-unused definition.
79159
79160         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79161         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79162         Suggestion from Ulrich Drepper.
79163
79164 2000-10-21  Jim Meyering  <meyering@lucent.com>
79165
79166         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79167         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79169
79170 2000-10-21  Jim Meyering  <meyering@lucent.com>
79171
79172         * lib/dirname.c (memrchr): Declare if necessary.
79173         (dir_name): Remove the restriction that there be no
79174         trailing slashes.  Now, this code skips past them, effectively
79175         ignoring them.
79176         [TEST_DIRNAME] (main): New unit tests.
79177
79178         * lib/memrchr.c: New file from GNU libc.
79179         Undef __memrchr, too.
79180         [!weak_alias]: Define __memrchr to memrchr.
79181         Guard weak_alias use with `#ifdef weak_alias'.
79182
79183 2000-10-21  Jim Meyering  <meyering@lucent.com>
79184
79185         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79186         (dir_name): Use dir_name_r.
79187         * lib/dirname.h (dir_name_r): Declare it.
79188
79189 2000-10-17  Jim Meyering  <meyering@lucent.com>
79190
79191         * lib/quote.h (PARAMS): Define and use.
79192         Reported by Akim Demaille.
79193
79194         * lib/getopt.c: Update from libc.
79195
79196 2000-10-16  Jim Meyering  <meyering@lucent.com>
79197
79198         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79199         setlocale.
79200         From Jan Fedak.
79201
79202 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79203
79204         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79205
79206 2000-09-25  Jim Meyering  <meyering@lucent.com>
79207
79208         * lib/md5.h (rol): Define (from GnuPG).
79209
79210         * lib/sha.c: Give credit (GnuPG) where due.
79211         (M): Use rol rather than open-coding it.
79212         Add a FIXME comment.
79213
79214 2000-09-21  Jim Meyering  <meyering@lucent.com>
79215
79216         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79217         Reported by Michael Stone.
79218
79219 2000-09-20  Jim Meyering  <meyering@lucent.com>
79220
79221         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79222         (noinst_HEADERS): Add sha.h.
79223         Based on code from Scott G. Miller and from GnuPG.
79224
79225 2000-09-18  Jim Meyering  <meyering@lucent.com>
79226
79227         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79228         LIBS. Otherwise, everyone ends up linking with -lelf for some
79229         configurations.
79230         Reported by Mike Stone.
79231
79232 2000-09-15  Jim Meyering  <meyering@lucent.com>
79233
79234         * lib/regex.c: Update from libc.
79235
79236 2000-09-10  Jim Meyering  <meyering@lucent.com>
79237
79238         * lib/getopt.c (_getopt_internal): Update from glibc.
79239
79240 2000-09-09  Jim Meyering  <meyering@lucent.com>
79241
79242         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79243         think it should be used as a general replacement for isascii.
79244         * lib/fnmatch.c: Likewise.
79245         * lib/mbswidth.c: Likewise
79246         * lib/regex.c: Likewise.
79247
79248         Don't use atoi.
79249         * lib/userspec.c: Include sys/param.h and limits.h.
79250         Include xstrtol.h.
79251         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79252         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79253         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79254         UID, GID.  Check range.
79255
79256 2000-09-06  Jim Meyering  <meyering@lucent.com>
79257
79258         * lib/getopt.c (_getopt_internal): Update from glibc.
79259
79260 2000-08-30  Jim Meyering  <meyering@lucent.com>
79261
79262         * lib/strftime.c: Merge in changes from GNU libc.
79263
79264 2000-08-26  Jim Meyering  <meyering@lucent.com>
79265
79266         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79267         * m4/fpending.m4: New file.
79268
79269 2000-08-26  Jim Meyering  <meyering@lucent.com>
79270
79271         * lib/closeout.c: Include "__fpending.h".
79272         (close_stdout_status): Return right away if there's nothing to flush.
79273
79274         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79275         * lib/__fpending.c: New file.
79276         * lib/__fpending.h: New file.
79277
79278 2000-08-20  Jim Meyering  <meyering@lucent.com>
79279
79280         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79281         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79282         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79283
79284 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79285
79286         Improve fileutils installation on systems where running
79287         programs (like install) can't be unlinked.
79288         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79289         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79290
79291 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79292
79293         Standardize on "memory exhausted" instead of "Memory exhausted"
79294         or "virtual memory exhausted".
79295         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79296         "virtual memory exhausted".
79297         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79298         our own message.
79299         * lib/userspec.c (parse_user_spec): Likewise.
79300         * lib/bumpalloc.h: comment fix
79301         * lib/same.c, userspec.c: Include xalloc.h.
79302
79303         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79304         not char *const and pointing to a constant array.
79305         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79306         (xrealloc): Comment fix.
79307
79308         * lib/userspec.c (parse_user_spec):
79309         Don't translate a message until just before returning,
79310         to avoid unnecessary translation.
79311
79312 2000-08-07  Jim Meyering  <meyering@lucent.com>
79313
79314         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79315         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79316         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79317         getgroups.c, gethostname.c, getopt.h, group-member.c,
79318         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79319         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79320         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79321         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79322         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79323         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79324         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79325         yesno.c: Back out Copyright date changes for each file with no change
79326         this year.  This eases coordination with other programs using the same
79327         source code modules.  From Paul Eggert.
79328
79329 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79330
79331         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79332         not char, for compatibility with glibc 2.1.3 strftime.c.
79333
79334 2000-08-03  Greg McGary  <greg@mcgary.org>
79335
79336         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79337         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79338         (EXTEND_BUFFER): Use them.
79339
79340 2000-08-01  Jim Meyering  <meyering@lucent.com>
79341
79342         * lib/dirname.c (ISSLASH): Define.
79343         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79344         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79345         both `\' and `/' may be use as path separators.
79346         Based on a patch from Prashant TR.
79347
79348 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79349
79350         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79351         slot vector a constant, since it might get modified.
79352
79353 2000-07-31  Jim Meyering  <meyering@lucent.com>
79354
79355         * lib/xmalloc.c: Use `virtual memory exhausted', not
79356         `Memory exhausted'.
79357         * lib/obstack.c (print_and_abort): Likewise.
79358
79359 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79360
79361         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79362         buffer, so that the caller can always quote one small
79363         component of a "memory exhausted" message in slot 0.
79364         From a suggestion by Jim Meyering.
79365
79366 2000-07-30  Jim Meyering  <meyering@lucent.com>
79367
79368         * lib/makepath.c (make_path): Quote the other instance, too.
79369
79370         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79371         (STATIC_BUF_SIZE): Define.
79372         (quotearg_n_options): Use only statically allocated storage when
79373         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79374         than STATIC_BUF_SIZE.
79375
79376 2000-07-29  Jim Meyering  <meyering@lucent.com>
79377
79378         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79379         * lib/dirname.c (dir_name): Likewise.
79380
79381         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79382         `/'.
79383
79384         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79385         (dir_name): Assert that there are no trailing slashes.
79386
79387 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79388
79389         * lib/mbswidth.h (mbswidth): Add a flags argument.
79390         (mbswidth): New declaration.
79391         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79392         * lib/mbswidth.c (mbswidth): Add a flags argument.
79393         (mbsnwidth): New function.
79394
79395 2000-07-24  Jim Meyering  <meyering@lucent.com>
79396
79397         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79398
79399 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79400
79401         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79402
79403 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79404
79405         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79406         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79407         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79408         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79409         invoke multibyte primitives.
79410
79411 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79412
79413         * lib/quotearg.c:
79414         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79415         so that mbstate_t is always defined.
79416
79417         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79418         be 1 in at least one GCC installation, and this configuration
79419         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79420         performance on hosts that have mbrtowc but have only unibyte
79421         locales, but I assume these hosts are rare.
79422
79423 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79424
79425         * lib/mbswidth.c (_XOPEN_SOURCE):
79426         Don't define; this causes problems on Solaris 7.
79427         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79428
79429 2000-07-23  Jim Meyering  <meyering@lucent.com>
79430
79431         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79432         too: getgrgid, getpwuid, getuid.
79433
79434 2000-07-23  Jim Meyering  <meyering@lucent.com>
79435
79436         * lib/basename.c (base_name): Add an assertion.
79437
79438 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79439
79440         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79441         shadow its mbsinit function.
79442
79443 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79444
79445         * lib/mbswidth.h: New file.
79446         * lib/mbswidth.c: New file.
79447         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79448         (noinst_HEADERS): Add mbswidth.h.
79449
79450 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79451
79452         * lib/config.charset: Add support for FreeBSD. Improve support for
79453         HP-UX and IRIX 6.
79454
79455 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79456
79457         * m4/mbswidth.m4: New file.
79458         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79459
79460 2000-07-15  Jim Meyering  <meyering@lucent.com>
79461
79462         * lib/makepath.c: Include quote.h.
79463         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79464         corresponding argument in a `quote (...)' call.
79465         Give better diagnostics.
79466
79467         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79468         (noinst_HEADERS): Add quote.h.
79469
79470         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79471         from tar's src/misc.c.
79472         * lib/quote.h: New file.  Prototypes for same.
79473
79474 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79475
79476         From a suggestion by Bruno Haible.
79477         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79478         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79479         to decide whether to define the BeOS workaround macro;
79480         this adjusts to the change to AC_MBSTATE_T.
79481
79482 2000-07-14  Jim Meyering  <meyering@lucent.com>
79483
79484         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79485         jm_AC_TYPE_UINTMAX_T.
79486
79487 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79488
79489         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79490
79491         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79492         quotearg_buffer_restyled): Add support for
79493         clocale_quoting_style.  Undo previous change to
79494         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79495         and "{RIGHT QUOTATION MARK}" msgids.
79496
79497 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79498
79499         From a suggestion by Bruno Haible.
79500         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79501         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79502         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79503         and mbstate_t, to a single-part test that simply defines mbstate_t.
79504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79505         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79506
79507 2000-07-10  Jim Meyering  <meyering@lucent.com>
79508
79509         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79510
79511         * m4/gnu-source.m4: Output to confdefs.h directly.
79512         Suggestion from Akim Demaille.
79513
79514 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79515
79516         The old behavior of quoting `like this' doesn't look good with
79517         newer, ISO-style fonts.  See:
79518         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79519
79520         Instead, quote "like this" by default.  Let the translator
79521         tailor the locale-specific quoting behavior by providing
79522         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79523
79524         * lib/quotearg.c (N_): New macro.
79525         (gettext_default): New function.
79526         (quotearg_buffer_restyled): Use
79527         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79528         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79529
79530 2000-07-09  Jim Meyering  <meyering@lucent.com>
79531
79532         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79533         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79534
79535         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79537
79538 2000-07-09  Jim Meyering  <meyering@lucent.com>
79539
79540         * lib/Most files: Update copyright dates to include 2000.
79541
79542 2000-07-08  Jim Meyering  <meyering@lucent.com>
79543
79544         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79545         if not defined.
79546         (xgethostname): Remove now-unnecessary #ifdef.
79547         Move declaration of `err' into loop where it's used.
79548
79549 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79550         and Bruno Haible  <haible@clisp.cons.org>
79551
79552         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79553         only if the test for an object-type mbstate_t fails.  This
79554         prevents us from mistakenly reporting that mbstate_t is a
79555         system object type after we "#define mbstate_t int" to work
79556         around its lack.
79557
79558 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79559         and Bruno Haible  <haible@clisp.cons.org>
79560
79561         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79562
79563 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79564
79565         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79566         to strerror_r.
79567         Include <ctype.h> for use of isalpha.
79568
79569 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79570
79571         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79572         by allocating a larger buffer. Test the gethostname return value for
79573         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79574         returns an error and ENAMETOOLONG isn't defined.
79575
79576 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79577
79578         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79579         dimension.
79580
79581 2000-07-04  Jim Meyering  <meyering@lucent.com>
79582
79583         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79584         of the deprecated AC_CHECKING.
79585
79586 2000-07-04  Jim Meyering  <meyering@lucent.com>
79587
79588         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79589         Reported by Bruno Haible.
79590
79591 2000-07-04  Jim Meyering  <meyering@lucent.com>
79592
79593         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79594         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79595         lacks mbrtowc.
79596
79597 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79598
79599         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79600         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79601
79602 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79603         and Bruno Haible  <haible@clisp.cons.org>
79604
79605         * lib/quotearg.c (mbrtowc):
79606         Assign to *pwc, and return 1 only if result is nonzero.
79607         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79608
79609 2000-07-03  Jim Meyering  <meyering@lucent.com>
79610
79611         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79612
79613 2000-07-03  Jim Meyering  <meyering@lucent.com>
79614
79615         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79616         This is necessary to get a definition of e.g., UTMP_FILE on
79617         HP-UX 10.20.
79618         From Bob Proulx.
79619
79620 2000-07-02  Jim Meyering  <meyering@lucent.com>
79621
79622         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79623
79624         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79625         AC_LIBOBJ(function_name).
79626         * m4/chown.m4: Likewise.
79627         * m4/fnmatch.m4: Likewise.
79628         * m4/ftruncate.m4: Likewise.
79629         * m4/getgroups.m4: Likewise.
79630         * m4/getline.m4: Likewise.
79631         * m4/group-member.m4: Likewise.
79632         * m4/jm-macros.m4: Likewise.
79633         * m4/lstat.m4: Likewise.
79634         * m4/malloc.m4: Likewise.
79635         * m4/memcmp.m4: Likewise.
79636         * m4/nanosleep.m4: Likewise.
79637         * m4/putenv.m4: Likewise.
79638         * m4/realloc.m4: Likewise.
79639         * m4/regex.m4: Likewise.
79640         * m4/stat.m4: Likewise.
79641         * m4/strftime.m4: Likewise.
79642
79643 2000-07-02  Jim Meyering  <meyering@lucent.com>
79644
79645         * lib/quotearg.c (mbstate_t): Don't define here.
79646
79647 2000-07-02  Jim Meyering  <meyering@lucent.com>
79648
79649         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79650
79651 2000-07-01  Jim Meyering  <meyering@lucent.com>
79652
79653         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79654
79655 2000-07-01  Jim Meyering  <meyering@lucent.com>
79656
79657         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79658         problem.
79659
79660 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79661
79662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79663         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79664
79665 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79666
79667         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79668         per change in ../m4/ls-mntd-fs.m4.
79669         (read_filesystem_list): Ignore symbolic links.
79670
79671 2000-06-29  Jim Meyering  <meyering@lucent.com>
79672
79673         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79674         for declaration of strcmp.
79675
79676         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79677
79678         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79679         Avoid warning by casting result to `char *' to remove `const'.
79680
79681 2000-06-28  Jim Meyering  <meyering@lucent.com>
79682
79683         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79684         included by quotearg.c, for which we perform this test.  From
79685         Bruno Haible.
79686
79687 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79688
79689         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79690         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79691         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79692
79693 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79694
79695         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79696
79697 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79698
79699         savedir now sets errno on failure and invokes xmalloc to get memory.
79700         Fix a couple of other minor bugs while we're at it.
79701
79702         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79703         (NAMLEN): Remove macro.
79704         (malloc, realloc): Remove decls.
79705         (stpcpy): Likewise.
79706         ("xalloc.h"): Include.
79707         (NAME_SIZE_DEFAULT): New macro.
79708         (savedir): Use xmalloc / xrealloc to allocate memory.
79709         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79710         Skip "" directory entries.
79711         Use strlen to calculate directory entry length, since the old method
79712         is rarely used these days and isn't worth supporting.
79713         Don't use a pointer after freeing it.
79714         Check for integer overflow when calculating allocation size.
79715         Use memcpy to copy entries, instead of stpcpy.
79716         Set errno properly when returning NULL.
79717         Check for readdir error.
79718
79719 2000-06-26  Jim Meyering  <meyering@lucent.com>
79720
79721         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79722
79723 2000-06-25  Jim Meyering  <meyering@lucent.com>
79724
79725         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79726         Linux header bug when _XOPEN_SOURCE is defined to 500.
79727
79728 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79729
79730         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79731         deficiency.
79732
79733 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79734
79735         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79736         Include xalloc.h.
79737         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79738
79739 2000-06-24  Jim Meyering  <meyering@lucent.com>
79740
79741         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79742         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79743         for which strerror does return char*, but which lacks a conveniently
79744         accessible declaration of the function.  If the compile-test says
79745         strerror_r doesn't work, then resort to a `run'-test that works on
79746         BeOS and segfaults on DEC Unix.
79747
79748 2000-06-24  Jim Meyering  <meyering@lucent.com>
79749
79750         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79751
79752 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79753
79754         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79755         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79756
79757 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79758
79759         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79760         (mbrtowc, mbstate_t): Define substitutes if
79761         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79762         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79763         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79764
79765 2000-06-23  Jim Meyering  <meyering@lucent.com>
79766
79767         * m4/afs.m4: Add missing AC_MSG_RESULT.
79768         Reported by Bruno Haible.
79769
79770         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79771         Suggestion from Bruno Haible.
79772
79773 2000-06-23  Jim Meyering  <meyering@lucent.com>
79774
79775         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79776
79777 2000-06-21  Jim Meyering  <meyering@lucent.com>
79778
79779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79780
79781 2000-06-21  Jim Meyering  <meyering@lucent.com>
79782
79783         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79784         (noinst_HEADERS): Add getstr.h.
79785
79786         * lib/getline.c (getstr): Move into a separate file.
79787         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79788         the following changes: new parameter, delim2; both delim[12]
79789         parameters have type `int', not `char'.  The latter would lose
79790         with 8-bit delimiters.
79791         * lib/getstr.h: New file.
79792
79793 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79794
79795         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79796         than 1024, return a memory chunk of least possible size, instead
79797         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79798         Use free/xmalloc instead of xrealloc to avoid copying for very long
79799         paths.
79800
79801 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79802
79803         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79804         the empty string.
79805
79806 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79807
79808         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79809         address, not strdup.  Include <stdlib.h> and don't declare free().
79810
79811 2000-06-19  Jim Meyering  <meyering@lucent.com>
79812
79813         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79814
79815 2000-06-18  Jim Meyering  <meyering@lucent.com>
79816
79817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79818
79819         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79820         `checking whether...' message to be consistent with that of the
79821         lstat test.
79822
79823 2000-06-18  Jim Meyering  <meyering@lucent.com>
79824
79825         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79826         Besides, these days every porting target provides a mkdir function.
79827
79828         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79829         needed. (this snippet comes from src/system.h).
79830
79831 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79832
79833         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79834
79835 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79836
79837         * lib/human.c (adjust_value): New function.
79838         (human_readable_inexact): Apply rounding style even when
79839         printing approximate values.
79840
79841 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79842
79843         * lib/human.c (human_readable_inexact): Allow an input block
79844         size that is not a multiple of the output block size, and vice versa.
79845         Reported by Piergiorgio Sartor.
79846
79847 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79848
79849         * lib/getdate.y (get_date): Apply relative times after time
79850         zone indicator, not before.  Reported by Todd A. Jacobs.
79851
79852 2000-06-13  Jim Meyering  <meyering@lucent.com>
79853
79854         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79855
79856         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79857
79858 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79859
79860         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79861
79862 2000-06-12  Jim Meyering  <meyering@lucent.com>
79863
79864         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79865         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79866         optional argument.
79867         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79868         the optional argument, `lib'.
79869
79870 2000-06-08  Jim Meyering  <meyering@lucent.com>
79871
79872         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79873
79874 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79875
79876         Rewrite largefile configuration so that we don't need to run
79877         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79878         AC_CANONICAL_HOST in configure.in -- jmm]
79879
79880         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79881         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79882         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79883         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79884         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79885         All uses changed.
79886         Instead of inspecting the output of getconf, try to compile the
79887         test program without and with the macro definition.
79888         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79889         for getconf.  Instead, check for the needed flags by compiling
79890         test programs.
79891
79892 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79893
79894         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79895
79896 2000-06-04  Jim Meyering  <meyering@lucent.com>
79897
79898         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79899         SunOS 4.1.4 for which gid_t is an unsigned type.
79900
79901 2000-06-03  Jim Meyering  <meyering@lucent.com>
79902
79903         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79904         now that autoconf requires that.
79905
79906         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79907         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79908         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79909
79910 2000-06-03  Jim Meyering  <meyering@lucent.com>
79911
79912         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79913
79914 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79915
79916         * m4/glibc21.m4: New file.
79917         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79918
79919 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79920
79921         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79922         newer, don't install charset.alias.
79923         * lib/config.charset: Change the Linux/glibc rules so they become empty
79924         on glibc-2.1 or newer.
79925
79926 2000-06-02  Jim Meyering  <meyering@lucent.com>
79927
79928         * lib/mountlist.c: Back out last change.  Instead, do this...
79929         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79930         me_dummy member using the same `ignore'-testing code.
79931         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79932         fs_type strings.
79933         From Mark D. Roth.
79934
79935 2000-05-29  Jim Meyering  <meyering@lucent.com>
79936
79937         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79938         mounts with the `ignore' attribute.  Based on a patch from
79939         Mark D. Roth.
79940
79941 2000-05-28  Jim Meyering  <meyering@lucent.com>
79942
79943         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79944         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79945         * m4/stat.m4: Likewise.
79946         * m4/lstat.m4: Likewise.
79947         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79948
79949         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79950         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79951
79952 2000-05-26  Jim Meyering  <meyering@lucent.com>
79953
79954         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79955
79956 2000-05-24  Jim Meyering  <meyering@lucent.com>
79957
79958         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79959         autoconf requires that.
79960         * m4/lib-check.m4: Likewise.
79961         * m4/jm-macros.m4: Likewise.
79962         * m4/strftime.m4: Likewise.
79963
79964         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79965         AC_CHECK_DECLS, now that autoconf requires that.
79966
79967 2000-05-22  Jim Meyering  <meyering@lucent.com>
79968
79969         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79970         * m4/lstat.m4: Likewise.
79971
79972 2000-05-22  Jim Meyering  <meyering@lucent.com>
79973
79974         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79975
79976 2000-05-20  Jim Meyering  <meyering@lucent.com>
79977
79978         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79979         (jm_PREREQ): Use it.
79980
79981 2000-05-18  Jim Meyering  <meyering@lucent.com>
79982
79983         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79984         back, too, since it may have been modified by allocate_entry.
79985         (hash_delete): Rewrite to use neither the assignment operator
79986         nor the comma operator in an if-expression.
79987
79988 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79989
79990         * lib/closeout.c:
79991         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79992         Remove; no longer needed.
79993         "quotearg.h": Add include.
79994         (file_name): Do not bother to explicitly initialize to NULL; it's less
79995         efficient on some hosts.
79996         (close_stdout_status): Remove test as to whether stdout was already
79997         closed; it breaks for the case "echo x | sort >&-".
79998         Quote file name colons.
79999         Do not assume that _("write error") lacks format strings.
80000
80001 2000-05-15  Jim Meyering  <meyering@lucent.com>
80002
80003         * lib/version-etc.c (version_etc_copyright): Update the copyright
80004         string used in all --version output.
80005
80006 2000-05-14  Jim Meyering  <meyering@lucent.com>
80007
80008         * lib/closeout.c (close_stdout_set_file_name): New function.
80009         (close_stdout_status): Use new file-scoped global.
80010         Return right away if fstat says the stdout file descriptor is invalid.
80011         * lib/closeout.h (close_stdout_set_file_name): Declare.
80012
80013 2000-05-10  Jim Meyering  <meyering@lucent.com>
80014
80015         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80016         (close_stdout_set_status): New function.
80017         * lib/closeout.h (close_stdout_set_status): Declare.
80018
80019 2000-05-09  Jim Meyering  <meyering@lucent.com>
80020
80021         * m4/gettext.m4: Rename this...
80022         * m4/libintl.m4: ...to this.
80023
80024 2000-05-08  Jim Meyering  <meyering@lucent.com>
80025
80026         * lib/long-options.c: Don't include closeout.h.
80027         (parse_long_options): Don't call close_stdout for --version.
80028
80029 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80030
80031         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80032         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80033         2.1.3 bug.  This avoids a clash when files like regex.c define
80034         _GNU_SOURCE.
80035
80036 2000-05-06  Jim Meyering  <meyering@lucent.com>
80037
80038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80039         (AC_REPLACE_FUNCS): Add strnlen.
80040
80041         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80042         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80043
80044         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80045         AC_SEARCH_LIBS call for nanosleep.
80046         (LIB_NANOSLEEP): Set and AC_SUBST.
80047
80048 2000-05-06  Jim Meyering  <meyering@lucent.com>
80049
80050         * lib/strnlen.c: Undefine __strnlen and strnlen.
80051         [!weak_alias]: Define __strnlen to strnlen.
80052
80053         * lib/atexit.c: New file, from libiberty.
80054
80055 2000-05-06  Jim Meyering  <meyering@lucent.com>
80056
80057         * lib/closeout.c (close_stdout_status): Also check for errors on the
80058         stderr stream.
80059
80060 2000-05-05  Jim Meyering  <meyering@lucent.com>
80061
80062         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80063         AC_SEARCH_LIBS call for clock_gettime.
80064         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80065
80066         * m4/search-libs.m4: Update from autoconf.
80067
80068         su doesn't work on Solaris 2.6.
80069         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80070         <shadow.h>.  Reported by Dragos Harabor.
80071
80072 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80073
80074         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80075         memcpy instead of xmalloc, xrealloc, path_concat.
80076         (locale_charset): Treat empty environment variables as absent.
80077         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80078
80079 2000-05-04  Jim Meyering  <meyering@lucent.com>
80080
80081         * lib/getopt.c: Update from glibc.
80082         * lib/obstack.c: Likewise.
80083         * lib/obstack.h: Likewise.
80084         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80085         file
80086
80087         * lib/regex.h: Likewise.
80088         * lib/strndup.c: Likewise.
80089         * lib/strnlen.c: New file, from glibc.
80090
80091 2000-05-03  Jim Meyering  <meyering@lucent.com>
80092
80093         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80094
80095 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80096
80097         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80098         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80099         compile-time test, rather than inspecting host and OS, to
80100         decide whether to define _LARGEFILE_SOURCE.
80101
80102 2000-05-01  Jim Meyering  <meyering@lucent.com>
80103
80104         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80105
80106         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80107         Based on a patch from Bruno Haible.
80108
80109 2000-05-01  Jim Meyering  <meyering@lucent.com>
80110
80111         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80112
80113 2000-04-29  Jim Meyering  <meyering@lucent.com>
80114
80115         * lib/path-concat.c: Declare strdup only if it's not defined.
80116         * lib/canon-host.c: Likewise.
80117
80118 2000-04-28  Jim Meyering  <meyering@lucent.com>
80119
80120         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80121         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80122         is included first, then limits.h is included by locale.h by libintl.h.
80123         From John David Anglin.
80124
80125 2000-04-25  Jim Meyering  <meyering@lucent.com>
80126
80127         * lib/makepath.c (S_IRWXUGO): Define.
80128         (make_path): Always perform explicit chmod if MODE specifies any
80129         of the `special' permission bits.  Prompted by a bug report against
80130         install from Mate Wierdl and Joost van Baal.
80131
80132 2000-04-18  Jim Meyering  <meyering@lucent.com>
80133
80134         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80135         (jm_PREREQ): Use it.
80136
80137 2000-04-18  Jim Meyering  <meyering@lucent.com>
80138
80139         * lib/README: New file.
80140
80141         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80142         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80143
80144 2000-04-17  Jim Meyering  <meyering@lucent.com>
80145
80146         Get it right :-)
80147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80148         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80149         Suggestion from Akim Demaille.
80150
80151 2000-04-17  Jim Meyering  <meyering@lucent.com>
80152
80153         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80154         the definition of it to rpl_strftime also defined-away the system's
80155         declaration.
80156
80157 2000-04-15  Jim Meyering  <meyering@lucent.com>
80158
80159         Use `C' to denote so-called `contiguous' files, the same way
80160         that tar does.
80161         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80162         (ftypelet): Use S_ISCTG.
80163         From Michael Deutschmann.
80164
80165 2000-04-14  Jim Meyering  <meyering@lucent.com>
80166
80167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80168         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80169         clobbered.
80170
80171 2000-04-14  Jim Meyering  <meyering@lucent.com>
80172
80173         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80174
80175 2000-04-13  Jim Meyering  <meyering@lucent.com>
80176
80177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80178         AH_VERBATIM to insert required #ifndef into config.h.in.
80179         Suggestion from Akim Demaille.
80180
80181 2000-04-12  Jim Meyering  <meyering@lucent.com>
80182
80183         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80184         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80185         Christian Krackowizer.
80186
80187         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80188         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80189         (AC_SYS_LARGEFILE): Require.
80190         (AM_C_PROTOTYPES): Require.
80191
80192 2000-04-08  Jim Meyering  <meyering@lucent.com>
80193
80194         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80195         names don't conflict.  Reported by Eli Zaretskii.
80196
80197 2000-04-07  Jim Meyering  <meyering@lucent.com>
80198
80199         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80200         sys/types.h, to work around system header problems on AIX 3.2.5.
80201         From Bruno Haible.
80202
80203 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80204
80205         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80206         bug.  Deal with the different error behavior of Irix iconv.
80207
80208 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80209
80210         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80211         IRIX if the installer said otherwise.
80212
80213 2000-04-05  Jim Meyering  <meyering@lucent.com>
80214
80215         Portability tweaks required for ultrix4.3.
80216         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80217         (jm_CHECK_DECLS): Add getutent to the list of functions.
80218         (_jm_DECL_HEADERS): Add utmpx.h.
80219         From John David Anglin.
80220
80221         * m4/strftime.m4: Back out the 2000-04-02 change.
80222         Instead of that change, simply undefine putenv in the test program.
80223
80224 2000-04-05  Jim Meyering  <meyering@lucent.com>
80225
80226         Portability tweaks required for ultrix4.3.
80227         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80228         getutent.
80229         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80230         * lib/canon-host.c: Declare strdup.
80231         * lib/path-concat.c: Likewise.
80232         From John David Anglin.
80233
80234 2000-04-04  Jim Meyering  <meyering@lucent.com>
80235
80236         Be more DOS 8.3-friendly.
80237         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80238         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80239         * lib/Makefile.am: Reflect renaming.
80240         Reported by Eli Zaretskii.
80241
80242         Use a temporary file name that won't clash with `charset.alias'
80243         in the DOS 8.3 name space.
80244         * lib/Makefile.am (charset_tmp): Define.
80245         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80246         (uninstall-local): Likewise.
80247         Reported by Eli Zaretskii.
80248
80249 2000-04-03  Jim Meyering  <meyering@lucent.com>
80250
80251         * m4/gettext.m4: Fix typo in comment.
80252
80253         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80254         textutils/configure.in).  Suggestion from Paul Eggert.
80255         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80256
80257 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80258
80259         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80260         variable in the shell rather than using putenv, which isn't
80261         portable.  This avoids the configure-time inter-test dependency
80262         on the potentially-renamed putenv function.
80263
80264 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80265
80266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80267         before checking struct stat.st_blksize, so that
80268         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80269
80270 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80271
80272         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80273         since strftime.c uses HAVE_STRFTIME to decide whether to use
80274         the underlying strftime.
80275
80276 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80277
80278         * lib/time/strftime.c (my_strftime): Make sure we call the system
80279         strftime, not ourselves, when invoking the underlying strftime.
80280
80281 2000-03-24  Jim Meyering  <meyering@lucent.com>
80282
80283         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80284         (charset_alias): Define.
80285         (install-exec-local): Factor out common code.
80286         (uninstall-local): Split lines longer than 80.
80287         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80288         (SUFFIXES): Define.
80289         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80290         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80291
80292 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80293
80294         * lib/config.charset: Output a line containing "Packages using this
80295         file".
80296         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80297         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80298         ref-del.sed): New rules.
80299
80300 2000-03-17  Jim Meyering  <meyering@lucent.com>
80301
80302         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80303         Otherwise, include <strings.h>
80304
80305 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80306
80307         * lib/unicodeio.c (utf8_wctomb): New function.
80308         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80309         format instead of in UCS-4 with platform dependent endianness.
80310
80311 2000-03-10  Jim Meyering  <meyering@lucent.com>
80312
80313         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80314         From Marco Franzen.
80315
80316 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80317
80318         * lib/savedir.c (savedir): Work even if directory size is
80319         negative; this can happen with some screwy NFS configurations.
80320
80321 2000-03-06  Jim Meyering  <meyering@lucent.com>
80322
80323         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80324         if it's NULL (because we ran out of memory).  From Bruno Haible.
80325
80326 2000-03-05  Jim Meyering  <meyering@lucent.com>
80327
80328         * lib/localcharset.c ("path-concat.h"): Include.
80329         (get_charset_aliases): Use path_concat instead of ANSI string
80330         concatenation.
80331
80332         * lib/unicodeio.h (PARAMS): Define.
80333         Use it to guard prototype.
80334
80335 2000-03-04  Jim Meyering  <meyering@lucent.com>
80336
80337         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80338         for lib/localcharset.c.
80339
80340 2000-03-04  Jim Meyering  <meyering@lucent.com>
80341
80342         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80343         installing into it.
80344         (uninstall-local): Uncomment this rule so `make distcheck' works
80345         once again.
80346
80347         * lib/unicodeio.c (<errno.h>): Include it.
80348         (errno): Declare if not defined.
80349
80350         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80351
80352         * lib/config.charset: New version, incorporating remarks from a linux
80353         i18n mailing list.  From Bruno Haible.
80354
80355 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80356
80357         * m4/codeset.m4: New file.
80358         * m4/iconv.m4: New file.
80359         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80360
80361 2000-03-03  Jim Meyering  <meyering@lucent.com>
80362
80363         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80364
80365 2000-03-02  Jim Meyering  <meyering@lucent.com>
80366
80367         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80368         the messages come out on separate lines.
80369
80370         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80371         rather than jm_CHECK_DECLARATIONS.
80372         * m4/decl.m4: Remove now-unused file.
80373
80374         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80375         geteuid.
80376
80377 2000-03-02  Jim Meyering  <meyering@lucent.com>
80378
80379         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80380
80381 2000-03-01  Jim Meyering  <meyering@lucent.com>
80382
80383         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80384         * lib/unicodeio.c: Likewise.
80385
80386 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80387
80388         * lib/config.charset: New file.
80389         * lib/localcharset.c: New file.
80390         * lib/unicodeio.h, lib/unicodeio.c: New files.
80391         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80392         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80393         (noinst_HEADERS): Add unicodeio.h.
80394         (all-local, install-exec-local, charset.alias): New targets.
80395
80396 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80397
80398         * lib/quotearg.c (ALERT_CHAR): New macro.
80399         (quotearg_buffer_restyled): Use it.
80400
80401 2000-02-27  Jim Meyering  <meyering@lucent.com>
80402
80403         * m4/check-decl.m4: Add getenv to the list.
80404
80405 2000-02-27  Jim Meyering  <meyering@lucent.com>
80406
80407         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80408         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80409
80410         * lib/backupfile.c: Guard inclusion of stdlib.h with
80411         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80412         Declare malloc if needed.
80413
80414         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80415         `#ifndef HAVE_DECL..'
80416         now that autoconf always defines the HAVE_DECL_ symbols.
80417         * lib/human.c: Likewise.
80418         * lib/same.c: Likewise.
80419         * lib/strtoumax.c: Likewise.
80420
80421         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80422         declaration check was not run.
80423         * lib/hash.c: Likewise.
80424         * lib/human.c: Likewise.
80425         * lib/same.c: Likewise.
80426         * lib/strtoumax.c: Likewise.
80427
80428         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80429         `.', then first look up the entire `.'-containing string as a login
80430         name.
80431
80432 2000-02-23  Jim Meyering  <meyering@lucent.com>
80433
80434         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80435         in place of my hack.
80436
80437 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80438
80439         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80440         (textint): New typedef.
80441         (parser_control): Member year changed from int to textint.
80442         All uses changed.
80443         (YYSTYPE): Removed; replaced by %union with int and textint members.
80444         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80445         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80446         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80447         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80448         (date, number, to_year): Use width of number in digits, not its value,
80449         to determine whether it's a 2-digit year, or a 2-digit time.
80450         (yylex): Store number of digits of numeric tokens.
80451         Reported by John Kendall.
80452
80453         (parser_control): Changed from struct parser_control to typedef (for
80454         consistency).  All uses changed.
80455
80456         (tID): Removed; not used.
80457         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80458
80459 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80460
80461         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80462         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80463
80464 2000-02-12  Jim Meyering  <meyering@lucent.com>
80465
80466         * lib/userspec.c (ISDIGIT): Define it.
80467         (isdigit): Remove definition.
80468         (is_number): Use ISDIGIT, not isdigit.
80469         <libintl.h>: Include.
80470         (_ and N_): Define.
80471         (parse_user_spec): Mark translatable strings.
80472
80473 2000-02-10  Jim Meyering  <meyering@lucent.com>
80474
80475         With these changes, nanosleep.[ch] are finally enough like the other
80476         lib/* replacement files to compile on a few more losing systems.
80477
80478         * lib/nanosleep.h: Don't include config.h.
80479         Remove prototype from declaration of nanosleep.
80480         (PARAMS): Remove now-unneeded definition.
80481         * lib/nanosleep.c: #undef nanosleep.
80482         (rpl_nanosleep): Rename from nanosleep.
80483
80484 2000-02-10  Jim Meyering  <meyering@lucent.com>
80485
80486         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80487         gnu_nanosleep to rpl_nanosleep.
80488
80489 2000-02-09  Jim Meyering  <meyering@lucent.com>
80490
80491         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80492         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80493
80494 2000-02-08  Akim Demaille  <akim@epita.fr>
80495
80496         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80497         `[' and `]' and remove uses of `changequote'.
80498         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80499         (AC_SYS_LARGEFILE): Likewise.
80500         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80501         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80502         of changequote.
80503         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80504         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80505         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80506         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80507
80508 2000-02-05  Jim Meyering  <meyering@lucent.com>
80509
80510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80511         Remove explicit use of AC_HEADER_TIME.  It is required by
80512         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80513         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80514         in autoconf whereby the expansion of the latter ended up preceding
80515         the expansion of its prerequisite, AC_HEADER_TIME.
80516         Reported by Volker Borchert.
80517
80518 2000-02-03  Jim Meyering  <meyering@lucent.com>
80519
80520         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80521
80522 2000-02-03  Jim Meyering  <meyering@lucent.com>
80523
80524         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80525         rather than with `#if HAVE_UTMPNAME'.
80526
80527 2000-02-02  Jim Meyering  <meyering@lucent.com>
80528
80529         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80530         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80531         Reported by Eli Zaretskii.
80532
80533 2000-02-01  Jim Meyering  <meyering@lucent.com>
80534
80535         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80536
80537 2000-01-31  Jim Meyering  <meyering@lucent.com>
80538
80539         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80540         functions.  Add the time.h and sys/time.h headers along with the
80541         AC_REQUIRE'ment of AC_HEADER_TIME.
80542
80543 2000-01-31  Jim Meyering  <meyering@lucent.com>
80544
80545         * lib/nanosleep.h (nanosleep): Guard declaration with
80546         `#if ! HAVE_DECL_NANOSLEEP'.
80547         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80548         the declaration in that vendor's sys/timers.h.
80549         Reported by Christian Krackowizer.
80550
80551         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80552         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80553         (ISPRINT): Likewise.
80554         Reported by Tom Tromey.
80555
80556 2000-01-30  Jim Meyering  <meyering@lucent.com>
80557
80558         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80559
80560         * m4/prereq.m4 (utmp_includes): Define.
80561         Check for ut_user and ut_name members in both struct utmpx
80562         and struct utmp.
80563
80564 2000-01-30  Jim Meyering  <meyering@lucent.com>
80565
80566         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80567         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80568         header files where only utmpx.ut_user is declared.
80569
80570         * lib/readutmp.h (UT_USER): Define.
80571
80572 2000-01-29  Jim Meyering  <meyering@lucent.com>
80573
80574         * m4/lib-check.m4: New file containing library-related checks from
80575         fileutils and sh-utils (textutils had none).
80576
80577 2000-01-28  Jim Meyering  <meyering@lucent.com>
80578
80579         * m4/perl.m4: Change format of warning message to look more like that
80580         from the missing script.  Suggestion from François Pinard.
80581
80582 2000-01-25  Jim Meyering  <meyering@lucent.com>
80583
80584         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80585         well as time.h in the compile check.
80586         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80587         Fix typo in cross-compiling case: s/yes/no/.
80588
80589 2000-01-23  Jim Meyering  <meyering@lucent.com>
80590
80591         * m4/jm-macros.m4: Move df-related tests here from
80592         fileutils/configure.in
80593
80594         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80595         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80596
80597         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80598         s/space/ac_fsusage_space/.
80599         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80600
80601         * m4/ftruncate.m4: New file (derived from part of
80602         fileutils/configure.in).
80603         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80604         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80605
80606         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80607         AC_SUBST these here, rather than just in sh-util/configure.in, so
80608         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80609         all the same.
80610         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80611         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80612         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80613         (AC_SUBST(POW_LIBM)): Likewise.
80614         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80615
80616 2000-01-23  Jim Meyering  <meyering@lucent.com>
80617
80618         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80619         obstack.c.
80620
80621 2000-01-22  Jim Meyering  <meyering@lucent.com>
80622
80623         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80624
80625         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80626
80627         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80628         configure.in
80629         (AC_CHECK_HEADERS): Likewise for sh-utils.
80630         (AC_CHECK_HEADERS): Likewise for textutils.
80631         Merge the three lists of headers.
80632
80633         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80634         from fileutils' configure.in.
80635
80636         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80637         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80638         check-decl.m4.
80639
80640         * m4/check-decl.m4: Use #if rather than #ifdef.
80641         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80642         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80643         (_jm_DECL_HEADERS): Define new function.
80644         (jm_CHECK_DECLARATIONS): Require it.
80645
80646 2000-01-22  Jim Meyering  <meyering@lucent.com>
80647
80648         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80649         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80650         Required for some AIX systems.  Reported by Christian Krackowizer.
80651         [TESTING] (main): New function.
80652
80653         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80654         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80655         letters.
80656
80657         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80658         iswprint.
80659
80660         * lib/strverscmp.c (ISDIGIT): Define.
80661         (strverscmp): Use ISDIGIT, not isdigit.
80662
80663 2000-01-19  Jim Meyering  <meyering@lucent.com>
80664
80665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80666         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80667         defines `struct timespec' in <sys/time.h>
80668
80669         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80670         Thanks to Akim for explaining.
80671
80672 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80673
80674         * lib/nanosleep.c (nanosleep):
80675         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80676         POSIX.1 doesn't require SA_INTERRUPT and some systems
80677         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80678         it's been part of POSIX.1 since day 1 (in 1988).
80679
80680 2000-01-17  Jim Meyering  <meyering@lucent.com>
80681
80682         * lib/interlock: Remove unused file.  Reported by François Pinard.
80683
80684 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80685
80686         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80687         alert, backslash, formfeed, and vertical tab unnecessarily in
80688         shell quoting style.
80689
80690 2000-01-16  Jim Meyering  <meyering@lucent.com>
80691
80692         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80693         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80694         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80695         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80696
80697 2000-01-16  Jim Meyering  <meyering@lucent.com>
80698
80699         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80700         because the latter didn't work.
80701
80702 2000-01-15  Jim Meyering  <meyering@lucent.com>
80703
80704         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80705         (AC_REPLACE_FUNCS): Add memcpy and memset.
80706         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80707         Add strpbrk.
80708         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80709
80710 2000-01-12  Jim Meyering  <meyering@lucent.com>
80711
80712         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80713         (jm_PREREQ): Use it.
80714         (jm_PREREQ_READUTMP): New macro.
80715         (jm_PREREQ): Use it.
80716
80717 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80718
80719         Quote multibyte characters correctly.
80720         * m4/c-bs-a.m4: New file.
80721         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80722         (jm_PREREQ): Use it.
80723
80724 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80725
80726         * m4/uintmax_t.m4: Port to autoconf 2.13.
80727
80728 2000-01-08  Jim Meyering  <meyering@ascend.com>
80729
80730         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80731         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80732
80733 2000-01-04  Jim Meyering  <meyering@ascend.com>
80734
80735         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80736         jm_STRUCT_DIRENT_D_TYPE.
80737         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80738         jm_STRUCT_DIRENT_D_INO.
80739         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80740         jm_STRUCT_UTIMBUF.
80741         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80742         renamings.
80743         * m4/utime.m4: Likewise.
80744
80745         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80746         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80747
80748 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80749
80750         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80751         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80752
80753 2000-01-02  Jim Meyering  <meyering@ascend.com>
80754
80755         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80756         remember if this is necessary.
80757
80758 1999-12-26  Jim Meyering  <meyering@ascend.com>
80759
80760         * m4/jm-macros.m4: Use it here.
80761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80762
80763 1999-12-23  Jim Meyering  <meyering@ascend.com>
80764
80765         * m4/jm-macros.m4: Check for clock_gettime (moved from
80766         fileutils/configure.in)
80767         Check for gettimeofday.
80768
80769 1999-12-20  Jim Meyering  <meyering@ascend.com>
80770
80771         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80772         autoconf-2.14a-1999-12-20.
80773
80774 1999-12-19  Jim Meyering  <meyering@ascend.com>
80775
80776         * m4/lstat-slash.m4: New file.
80777         * m4/jm-macros.m4: Use the new macro:
80778         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80779
80780 1999-12-07  Jim Meyering  <meyering@ascend.com>
80781
80782         * m4/perl.m4: Require that File::Compare be available, too.
80783         Too many systems seem to lack it.
80784
80785         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80786         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80787
80788 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80789
80790         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80791         problem with the QNX 4.25 shell, which doesn't propagate exit
80792         status of failed commands inside shell assignments.
80793
80794 1999-11-17  Jim Meyering  <meyering@ascend.com>
80795
80796         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80797
80798 1999-11-07  Jim Meyering  <meyering@ascend.com>
80799
80800         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80801
80802 1999-11-06  Jim Meyering  <meyering@ascend.com>
80803
80804         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80805         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80806
80807 1999-11-05  Jim Meyering  <meyering@ascend.com>
80808
80809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80810         configure.in of textutils, fileutils, and sh-utils into this one
80811         (shared between those packages) file.
80812         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80813         AC_STRUCT_ST_BLKSIZE.
80814
80815 1999-11-03  Jim Meyering  <meyering@ascend.com>
80816
80817         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80818         of AC_CHECK_TYPE checks includes unistd.h.
80819         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80820         Suggestion from Akim Demaille.
80821
80822 1999-10-30  Jim Meyering  <meyering@ascend.com>
80823
80824         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80825         m4-quoted string.
80826         * m4/ls-mntd-fs.m4: Likewise.
80827         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80828         * m4/jm-winsz1.m4: Likewise.
80829
80830         * m4/const.m4: Remove file, since the fix made it into the experimental
80831         version of autoconf.
80832         * m4/mktime.m4: Likewise.
80833
80834         * m4/check-type.m4: Remove file, now that the latest version of
80835         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80836
80837         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80838         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80839         AC_CHECK_TYPE.
80840
80841 1999-10-04  Jim Meyering  <meyering@ascend.com>
80842
80843         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80844
80845 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80846
80847         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80848         2.95.1 bug with HP-UX 10.20.
80849
80850 1999-09-17  Jim Meyering  <meyering@ascend.com>
80851
80852         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80853         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80854         due to missing strdup (against sh-utils-2.0).
80855
80856 1999-08-29  Jim Meyering  <meyering@ascend.com>
80857
80858         * m4/jm-macros.m4: Require jm_BISON.
80859         * m4/bison.m4: New file.
80860
80861 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80862
80863         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80864         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80865
80866 1999-08-05  Jim Meyering  <meyering@ascend.com>
80867
80868         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80869         to avoid conflicts with `conftest' on 8+3 filesystems.
80870         Suggestion from Eli Zaretskii.
80871
80872 1999-08-04  Jim Meyering  <meyering@ascend.com>
80873
80874         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80875         fileutils and sh-utils (textutils's getline test was inadequate).
80876         (AM_FUNC_GETLINE): Run this test.
80877         (AC_CHECK_FUNCS): Check for getdelim.
80878         Reported by Bob Proulx.
80879
80880 1999-08-02  Jim Meyering  <meyering@ascend.com>
80881
80882         * m4/jm-macros.m4: Add a comment.
80883
80884 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80885
80886         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80887         <inttypes.h> defines strtoumax as a macro (and not as a
80888         function).
80889
80890 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80891
80892         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80893         that we can shift, multiply and divide unsigned long long
80894         values; Ultrix cc can't do it.
80895
80896 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80897
80898         * m4/mktime.m4: New file, which is a preview of what should appear
80899         in the next public autoconf release.
80900
80901 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80902
80903         * m4/lfs.m4: Remove this file.
80904         * m4/largefile.m4: New file.  It contains the old contents of
80905         lfs.m4, except that all names with prefix AC_LFS have been
80906         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80907         compatible with future autoconf versions.  Also, some minor m4
80908         quoting problems have been fixed.
80909
80910 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80911
80912         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80913         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80914         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80915         and simplify the shell code.
80916
80917 1999-08-01  Jim Meyering  <meyering@ascend.com>
80918
80919         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80920         m4.
80921
80922 1999-07-20  Jim Meyering  <meyering@ascend.com>
80923
80924         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80925
80926 1999-07-15  Jim Meyering  <meyering@ascend.com>
80927
80928         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80929
80930 1999-05-22  Jim Meyering  <meyering@ascend.com>
80931
80932         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80933
80934 1999-05-20  Jim Meyering  <meyering@ascend.com>
80935
80936         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80937         Add a colon after each `then' in case $4 is empty.
80938
80939 1999-05-16  Jim Meyering  <meyering@ascend.com>
80940
80941         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80942
80943 1999-05-10  Jim Meyering  <meyering@ascend.com>
80944
80945         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80946
80947         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80948         AC_FUNC_MKTIME.
80949
80950 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80951
80952         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80953
80954 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80955
80956         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80957         not CPPFLAGS, so that linking works correctly in IRIX.
80958
80959 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80960
80961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80962
80963 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80964
80965         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80966         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80967         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80968         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80969         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80970
80971         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80972
80973 1999-04-20  Jim Meyering  <meyering@ascend.com>
80974
80975         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80976         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80977         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80978
80979 1999-04-18  Jim Meyering  <meyering@ascend.com>
80980
80981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80982         * m4/jm-macros.m4: Use it.
80983
80984 1999-04-06  Jim Meyering  <meyering@ascend.com>
80985
80986         * m4/strftime.m4: Remove test for %f.
80987
80988 1999-03-29  Jim Meyering  <meyering@ascend.com>
80989
80990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80991         superset of the AC_TYPE_* checks in the textutils, fileutils,
80992         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80993         AC_TYPE_PID_T.
80994
80995 1999-03-28  Jim Meyering  <meyering@ascend.com>
80996
80997         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80998         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80999         replaced e.g., in the *.sh files of the sh-utils.
81000
81001 1999-03-20  Jim Meyering  <meyering@ascend.com>
81002
81003         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81004         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81005         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81006
81007 1999-03-19  Jim Meyering  <meyering@ascend.com>
81008
81009         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81010
81011 1999-03-12  Jim Meyering  <meyering@ascend.com>
81012
81013         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81014
81015 1999-03-07  Jim Meyering  <meyering@ascend.com>
81016
81017         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81018         declared.
81019
81020 1999-02-17  Jim Meyering  <meyering@ascend.com>
81021
81022         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81023         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81024
81025 1999-02-07  Jim Meyering  <meyering@ascend.com>
81026
81027         * m4/group-member.m4: New file -- extracted from sh-utils'
81028         configure.in.
81029
81030         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81031         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81032
81033 1999-02-06  Jim Meyering  <meyering@ascend.com>
81034
81035         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81036         * m4/fnmatch.m4: Likewise.
81037         * m4/getgroups.m4: Likewise.
81038         * m4/lstat.m4: Likewise.
81039         * m4/malloc.m4: Likewise.
81040         * m4/putenv.m4: Likewise.
81041         * m4/realloc.m4: Likewise.
81042         * m4/regex.m4: Likewise.
81043         * m4/stat.m4: Likewise.
81044         * m4/strftime.m4: Likewise.
81045         Suggestion from Alain Magloire.
81046
81047         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81048         * m4/fnmatch.m4: Likewise.
81049         * m4/getgroups.m4: Likewise.
81050         * m4/getline.m4: Likewise.
81051         * m4/lstat.m4: Likewise.
81052         * m4/malloc.m4: Likewise.
81053         * m4/memcmp.m4: Likewise.
81054         * m4/putenv.m4: Likewise.
81055         * m4/realloc.m4: Likewise.
81056         * m4/regex.m4: Likewise.
81057         * m4/stat.m4: Likewise.
81058         * m4/strftime.m4: Likewise.
81059         Suggestion from Alain Magloire.
81060
81061         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81062         an argument.
81063
81064         * m4/regex.m4: Add a run-time Test for proper operation of
81065         re_compile_pattern.
81066
81067 1999-01-31  Jim Meyering  <meyering@ascend.com>
81068
81069         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81070
81071 1999-01-30  Jim Meyering  <meyering@ascend.com>
81072
81073         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81074
81075         * m4/jm-mktime.m4: Make this a wrapper around the official
81076         AM_FUNC_MKTIME rather than my private copy, now that the official one
81077         is up to date.
81078         * m4/mktime.m4: Remove file.
81079
81080         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81081         * m4/uptime.m4: Likewise.
81082         * m4/uintmax_t.m4: Likewise.
81083
81084 1999-01-28  Jim Meyering  <meyering@ascend.com>
81085
81086         * m4/jm-macros.m4: Use jm_AFS.
81087         * m4/afs.m4: New file (from fileutils' configure.in).
81088
81089         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81090         * m4/chown.m4: Likewise.
81091         * m4/d-ino.m4: Likewise.
81092         * m4/d-type.m4: Likewise.
81093         * m4/fnmatch.m4: Likewise.
81094         * m4/getgroups.m4: Likewise.
81095         * m4/gettext.m4: Likewise.
81096         * m4/jm-mktime.m4: Likewise.
81097         * m4/jm-winsz2.m4: Likewise.
81098         * m4/lcmessage.m4: Likewise.
81099         * m4/ls-mntd-fs.m4: Likewise.
81100         * m4/malloc.m4: Likewise.
81101         * m4/memcmp.m4: Likewise.
81102         * m4/putenv.m4: Likewise.
81103         * m4/realloc.m4: Likewise.
81104         * m4/st_mtim.m4: Likewise.
81105         * m4/strftime.m4: Likewise.
81106
81107 1999-01-16  Jim Meyering  <meyering@ascend.com>
81108
81109         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81110         (ARGMATCH_DIE_DECL): Define.
81111
81112 1999-01-12  Jim Meyering  <meyering@ascend.com>
81113
81114         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81115         Reported by Lars Hecking.
81116
81117 1999-01-10  Jim Meyering  <meyering@ascend.com>
81118
81119         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81120         gross kludge.
81121         * m4/inttypes_h.m4: Likewise.
81122         * m4/lstat.m4: Likewise.
81123         * m4/malloc.m4: Likewise.
81124         * m4/readdir.m4: Likewise.
81125         * m4/realloc.m4: Likewise.
81126         * m4/st_dm_mode.m4: Likewise.
81127         * m4/stat.m4: Likewise.
81128         * m4/utimbuf.m4: Likewise.
81129         * m4/utimes.m4: Likewise.
81130
81131         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81132         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81133         comments in config.h.in are meaningful.
81134
81135         * m4/jm-macros.m4: Require autoconf-2.13 here.
81136
81137         * m4/regex.m4: By default, don't use the included regex.c on systems
81138         with glibc 2.  Suggestion from Uli Drepper.
81139
81140 1999-01-02  Jim Meyering  <meyering@ascend.com>
81141
81142         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81143
81144 1998-12-18  Jim Meyering  <meyering@ascend.com>
81145
81146         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81147         Based on a suggestion from Lars Hecking.
81148
81149 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81150
81151         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81152
81153 1998-11-16  Jim Meyering  <meyering@ascend.com>
81154
81155         * m4/lfs.m4: Double-quote the `uname...` expression.
81156
81157 1998-11-14  Jim Meyering  <meyering@ascend.com>
81158
81159         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81160         * m4/stat.m4: Likewise.
81161
81162 1998-11-03  Jim Meyering  <meyering@ascend.com>
81163
81164         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81165         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81166
81167 1998-10-18  Jim Meyering  <meyering@ascend.com>
81168
81169         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81170
81171 1998-10-17  Jim Meyering  <meyering@ascend.com>
81172
81173         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81174         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81175         calls for those previously hard-coded headers.  Instead, take a new
81176         parameter.
81177         (jm_CHECK_DECLARATIONS): Reflect interface change.
81178         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81179         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81180
81181         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81182
81183 1998-10-14  Jim Meyering  <meyering@ascend.com>
81184
81185         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81186         instead of "TZ=America/Vancouver".  From Paul Eggert.
81187
81188 1998-10-11  Jim Meyering  <meyering@ascend.com>
81189
81190         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81191         This adds a test for a recently added compatibility fix for mktime.c.
81192         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81193
81194 1998-09-27  Jim Meyering  <meyering@ascend.com>
81195
81196         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81197
81198         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81199         ../configure.in, including a change from Gordon Matzigkeit to allow
81200         cross-compiling for the Hurd.
81201
81202         * m4/glibc.m4: New file/macro to test for the GNU C Library
81203         versions 1 and 2.  From Gordon Matzigkeit.
81204         Indent.
81205
81206 1998-09-21  Jim Meyering  <meyering@ascend.com>
81207
81208         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81209
81210 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81211
81212         Port nanosecond-resolution times to UnixWare 2.1.2 and
81213         pedantic Solaris 2.6.
81214
81215         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81216         AC_STRUCT_ST_MTIM.
81217         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81218         Generate name of ns member, instead of just 1 or undef.
81219         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81220
81221 1998-08-15  Jim Meyering  <meyering@ascend.com>
81222
81223         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81224         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81225         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81226         instead of jm_TYPE_SSIZE_T.
81227
81228 1998-08-12  Jim Meyering  <meyering@ascend.com>
81229
81230         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81231
81232 1998-08-02  Jim Meyering  <meyering@ascend.com>
81233
81234         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81235         in acconfig.h manually.
81236
81237 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81238
81239         * m4/st_mtim.m4: New file.
81240
81241 1998-07-28  Jim Meyering  <meyering@ascend.com>
81242
81243         * m4/utimes.m4: Undef stat.
81244
81245 1998-07-25  Jim Meyering  <meyering@ascend.com>
81246
81247         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81248         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81249
81250 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81251
81252         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81253         uid and gid actually remain unchanged.
81254
81255 1998-07-07  Jim Meyering  <meyering@ascend.com>
81256
81257         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81258
81259 1998-07-04  Jim Meyering  <meyering@ascend.com>
81260
81261         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81262         to prove that this macro can be used in packages without regex.c.
81263
81264 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81265
81266         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81267         is to be used.
81268
81269 1998-07-03  Jim Meyering  <meyering@ascend.com>
81270
81271         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81272
81273         * m4/gettext.m4: New file -- from gettext-0.10.35.
81274         * m4/lcmessage.m4: Likewise.
81275         * m4/progtest.m4: Likewise.
81276
81277         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81278         * m4/jm-macros.m4: Require the new macro.
81279
81280 1998-06-29  Jim Meyering  <meyering@ascend.com>
81281
81282         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81283         for the definition of NGROUPS (used in a system header included
81284         by sys/mount.h).
81285
81286 1998-06-28  Jim Meyering  <meyering@ascend.com>
81287
81288         * m4/ls-mntd-fs.m4: New file.
81289         * m4/fstypename.m4: New file.
81290
81291         * m4/jm-macros.m4: Require the new macro.
81292         * m4/jm-glibc-io.m4: New file.
81293
81294 1998-05-19  Jim Meyering  <meyering@ascend.com>
81295
81296         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81297         * m4/lchown.m4: New file.
81298
81299         * m4/Makefile.am.in: New file.
81300         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81301
81302 1998-05-14  Jim Meyering  <meyering@ascend.com>
81303
81304         * m4/Makefile.am (EXTRA_DIST): Add them.
81305         * m4/jm-macros.m4: New file.
81306         * m4/utimbuf.m4: New file.
81307
81308 1998-05-12  Jim Meyering  <meyering@ascend.com>
81309
81310         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81311
81312 1998-05-11  Jim Meyering  <meyering@ascend.com>
81313
81314         * m4/isc-posix.m4: New file.
81315
81316 1998-05-10  Jim Meyering  <meyering@ascend.com>
81317
81318         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81319
81320 1998-05-09  Jim Meyering  <meyering@ascend.com>
81321
81322         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81323         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81324         with automake.
81325
81326         * m4/ssize_t.m4: New file.
81327         * m4/mktime.m4: Remove file -- the new automake has this now.
81328
81329 1998-04-26  Jim Meyering  <meyering@ascend.com>
81330
81331         * m4/assert.m4: New file.
81332         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81333
81334 1998-04-05  Jim Meyering  <meyering@ascend.com>
81335
81336         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81337         (jm_PREREQ): Use it here.
81338
81339 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81340
81341         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81342         in acconfig.h.
81343
81344 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81345
81346         * m4/prereq.m4: New file.
81347         * m4/error.m4: New file.
81348         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81349
81350 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81351
81352         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81353         cache-check for the same variable -- that defeated the purpose of
81354         the test; the test program was never run.  This was a problem only
81355         on systems with losing getline functions -- HP-UX 10.20 is one.
81356         Reported by Bjorn Helgaas.
81357
81358 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81359
81360         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81361
81362 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81363
81364         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81365
81366         * m4/const.m4: New file.  Use an initializer in this declaration
81367         typedef int charset[2]; const charset x;
81368         Reported by Bob Glickstein.
81369
81370 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81371
81372         * m4/chown.m4: Fix reversed types on -1 args to chown.
81373         From Kaveh Ghazi.
81374
81375 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81376
81377         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81378         Add lseek and memchr.
81379
81380         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81381         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81382         have a 20-character limit on names.
81383
81384 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81385
81386         * m4/inttypes_h.m4: New file.
81387         * m4/uintmax_t.m4: New file.
81388         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81389
81390
81391         -----
81392
81393         Local Variables:
81394         coding: utf-8
81395         End:
81396
81397         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81398
81399         Copying and distribution of this file, with or without
81400         modification, are permitted provided the copyright notice
81401         and this notice are preserved.