isnanl*: Respect rules for use of AC_LIBOBJ.
[gnulib.git] / ChangeLog
1 2011-05-20  Bruno Haible  <bruno@clisp.org>
2
3         isnanl*: Respect rules for use of AC_LIBOBJ.
4         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5         invocation from here...
6         * modules/isnanl (configure.ac): ... to here.
7         * modules/isnanl-nolibm (configure.ac): ... and here.
8
9 2011-05-20  Bruno Haible  <bruno@clisp.org>
10
11         isnand*: Move AC_LIBOBJ invocations to module description.
12         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13         invocation from here...
14         * modules/isnand (configure.ac): ... to here.
15         * modules/isnand-nolibm (configure.ac): ... and here.
16
17 2011-05-20  Bruno Haible  <bruno@clisp.org>
18
19         isnanf*: Move AC_LIBOBJ invocations to module description.
20         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
21         invocation from here...
22         * modules/isnanf (configure.ac): ... to here.
23         * modules/isnanf-nolibm (configure.ac): ... and here.
24
25 2011-05-20  Bruno Haible  <bruno@clisp.org>
26
27         isnan*: Separate the AC_LIBOBJ invocations.
28         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
29         AC_LIBOBJ invocation.
30         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
31         here.
32         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
33         AC_LIBOBJ invocation.
34         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
35         here.
36         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37         AC_LIBOBJ invocation.
38         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
39         here.
40         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
41
42 2011-05-08  Bruno Haible  <bruno@clisp.org>
43
44         isinf: Move AC_LIBOBJ invocations to module description.
45         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
46         * modules/isinf (configure.ac): ... to here.
47
48 2011-05-08  Bruno Haible  <bruno@clisp.org>
49
50         isfinite: Move AC_LIBOBJ invocations to module description.
51         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52         * modules/isfinite (configure.ac): ... to here.
53
54 2011-05-08  Bruno Haible  <bruno@clisp.org>
55
56         isblank: Move AC_LIBOBJ invocations to module description.
57         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
58         here...
59         * modules/isblank (configure.ac): ... to here.
60
61 2011-05-08  Bruno Haible  <bruno@clisp.org>
62
63         isapipe: Move AC_LIBOBJ invocations to module description.
64         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
65         gl_PREREQ_ISAPIPE invocations from here...
66         * modules/isapipe (configure.ac): ... to here.
67         (Depends-on): Update condition.
68
69 2011-05-08  Bruno Haible  <bruno@clisp.org>
70
71         ioctl: Move AC_LIBOBJ invocations to module description.
72         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
73         invocations from here...
74         * modules/ioctl (configure.ac): ... to here.
75         (Depends-on): Update condition.
76
77 2011-05-08  Bruno Haible  <bruno@clisp.org>
78
79         imaxdiv: Move AC_LIBOBJ invocations to module description.
80         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
81         invocations from here...
82         * modules/imaxdiv (configure.ac): ... to here.
83
84 2011-05-08  Bruno Haible  <bruno@clisp.org>
85
86         imaxabs: Move AC_LIBOBJ invocations to module description.
87         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
88         invocations from here...
89         * modules/imaxabs (configure.ac): ... to here.
90
91 2011-05-08  Bruno Haible  <bruno@clisp.org>
92
93         getaddrinfo: Move AC_LIBOBJ invocations to module description.
94         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
95         AC_LIBOBJ invocations from here...
96         * modules/getaddrinfo (configure.ac): ... to here.
97         (Depends-on): Add conditions.
98
99 2011-05-08  Bruno Haible  <bruno@clisp.org>
100
101         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
102         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
103         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
104         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
105         (gl_PREREQ_INET_PTON): ... from here.
106         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
107         gl_PREREQ_INET_PTON here.
108         (Depends-on): Update condition.
109
110 2011-05-08  Bruno Haible  <bruno@clisp.org>
111
112         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
113         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
114         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
115         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
116         (gl_PREREQ_INET_NTOP): ... from here.
117         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
118         gl_PREREQ_INET_NTOP here.
119         (Depends-on): Update condition.
120
121 2011-05-08  Bruno Haible  <bruno@clisp.org>
122
123         iconv_open: Move AC_LIBOBJ invocations to module description.
124         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
125         AC_LIBOBJ invocations from here...
126         * modules/iconv_open (configure.ac): ... to here.
127
128 2011-05-08  Bruno Haible  <bruno@clisp.org>
129
130         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
131         If module 'iconv_open' is among the main modules and module
132         'iconv_open-utf' is among the tests dependencies, then
133         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
134         return the special iconv_t values. Therefore iconv() and iconv_close()
135         must support these special iconv_t values, already in lib, not only in
136         tests.
137         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
138         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
139         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
140         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
141         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
142         (Depends-on): Add the dependencies of iconv_open-utf.
143         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
144         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
145         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
146
147 2011-05-08  Bruno Haible  <bruno@clisp.org>
148
149         group-member: Move AC_LIBOBJ invocations to module description.
150         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
151         gl_PREREQ_GROUP_MEMBER invocations from here...
152         * modules/group-member (configure.ac): ... to here.
153
154 2011-05-08  Bruno Haible  <bruno@clisp.org>
155
156         grantpt: Move AC_LIBOBJ invocations to module description.
157         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
158         invocations from here...
159         * modules/grantpt (configure.ac): ... to here.
160
161 2011-05-08  Bruno Haible  <bruno@clisp.org>
162
163         glob: Move AC_LIBOBJ invocations to module description.
164         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
165         from here...
166         * modules/glob (configure.ac): ... to here.
167
168 2011-05-08  Bruno Haible  <bruno@clisp.org>
169
170         getusershell: Move AC_LIBOBJ invocations to module description.
171         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
172         Move AC_LIBOBJ invocation from here...
173         * modules/getusershell (configure.ac): ... to here.
174         (Depends-on): Update condition.
175
176 2011-05-08  Bruno Haible  <bruno@clisp.org>
177
178         gettimeofday: Move AC_LIBOBJ invocations to module description.
179         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
180         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
181         gl_PREREQ_GETTIMEOFDAY invocations from here...
182         * modules/gettimeofday (configure.ac): ... to here.
183
184 2011-05-08  Bruno Haible  <bruno@clisp.org>
185
186         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
187         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
188         just gl_FUNC_TZSET.
189         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
190         (gl_FUNC_TZSET_CLOBBER): Remove actions.
191         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
192         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
193
194 2011-05-08  Bruno Haible  <bruno@clisp.org>
195
196         getsubopt: Move AC_LIBOBJ invocations to module description.
197         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
198         gl_PREREQ_GETSUBOPT invocations from here...
199         * modules/getsubopt (configure.ac): ... to here.
200
201 2011-05-08  Bruno Haible  <bruno@clisp.org>
202
203         getpass-gnu: Move AC_LIBOBJ invocations to module description.
204         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
205         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
206         * modules/getpass-gnu (configure.ac): ... to here.
207
208 2011-05-08  Bruno Haible  <bruno@clisp.org>
209
210         getpass: Move AC_LIBOBJ invocations to module description.
211         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
212         gl_PREREQ_GETPASS invocations from here...
213         * modules/getpass (configure.ac): ... to here.
214
215 2011-05-08  Bruno Haible  <bruno@clisp.org>
216
217         getpagesize: Move AC_LIBOBJ invocations to module description.
218         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
219         from here...
220         * modules/getpagesize (configure.ac): ... to here.
221
222 2011-05-08  Bruno Haible  <bruno@clisp.org>
223
224         getopt: Move AC_LIBOBJ invocations to module description.
225         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
226         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
227         invocations from here...
228         * modules/getopt-gnu (configure.ac): ... to here.
229         * modules/getopt-posix (configure.ac): ... and here.
230         (Depends-on): Update condition.
231
232 2011-05-08  Bruno Haible  <bruno@clisp.org>
233
234         getopt, argp: Respect rules for use of AC_LIBOBJ.
235         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
236         (gl_REPLACE_GETOPT_ALWAYS): New macro.
237         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
238         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
239
240 2011-05-08  Bruno Haible  <bruno@clisp.org>
241
242         getlogin_r: Move AC_LIBOBJ invocations to module description.
243         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
244         gl_PREREQ_GETLOGIN_R invocations from here...
245         * modules/getlogin_r (configure.ac): ... to here.
246
247 2011-05-08  Bruno Haible  <bruno@clisp.org>
248
249         getlogin: Move AC_LIBOBJ invocations to module description.
250         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
251         here...
252         * modules/getlogin (configure.ac): ... to here.
253
254 2011-05-08  Bruno Haible  <bruno@clisp.org>
255
256         getloadavg: Move AC_LIBOBJ invocations to module description.
257         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
258         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
259         * modules/getloadavg (configure.ac): ... to here.
260
261 2011-05-08  Bruno Haible  <bruno@clisp.org>
262
263         gethrxtime: Move AC_LIBOBJ invocations to module description.
264         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
265         LIB_GETHRXTIME from here...
266         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
267         invocations from here...
268         * modules/gethrxtime (configure.ac): ... to here.
269
270 2011-05-08  Bruno Haible  <bruno@clisp.org>
271
272         gethostname: Move AC_LIBOBJ invocations to module description.
273         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
274         gl_PREREQ_GETHOSTNAME invocations from here...
275         * modules/gethostname (configure.ac): ... to here.
276
277 2011-05-08  Bruno Haible  <bruno@clisp.org>
278
279         getgroups: Move AC_LIBOBJ invocations to module description.
280         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
281         here...
282         * modules/getgroups (configure.ac): ... to here.
283
284 2011-05-08  Bruno Haible  <bruno@clisp.org>
285
286         getdtablesize: Move AC_LIBOBJ invocations to module description.
287         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
288         invocation from here...
289         * modules/getdtablesize (configure.ac): ... to here.
290
291 2011-05-08  Bruno Haible  <bruno@clisp.org>
292
293         getdomainname: Move AC_LIBOBJ invocations to module description.
294         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
295         gl_PREREQ_GETDOMAINNAME invocations from here...
296         * modules/getdomainname (configure.ac): ... to here.
297
298 2011-05-08  Bruno Haible  <bruno@clisp.org>
299
300         getline: Move AC_LIBOBJ invocations to module description.
301         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
302         invocations from here...
303         * modules/getline (configure.ac): ... to here.
304
305 2011-05-08  Bruno Haible  <bruno@clisp.org>
306
307         getline: Simplify.
308         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
309         It's already handled through the module dependency.
310
311 2011-05-08  Bruno Haible  <bruno@clisp.org>
312
313         getdelim: Move AC_LIBOBJ invocations to module description.
314         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
315         and gl_PREREQ_GETDELIM invocations from here...
316         * modules/getdelim (configure.ac): ... to here.
317         (Depends-on): Fix condition.
318
319 2011-05-08  Bruno Haible  <bruno@clisp.org>
320
321         getcwd: Move AC_LIBOBJ invocations to module description.
322         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
323         invocations from here...
324         * modules/getcwd (configure.ac): ... to here.
325
326 2011-05-08  Bruno Haible  <bruno@clisp.org>
327
328         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
329         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
330         here...
331         * modules/getcwd-lgpl (configure.ac): ... to here.
332
333 2011-05-07  Bruno Haible  <bruno@clisp.org>
334
335         crypto/gc: Move AC_LIBOBJ invocations to module description.
336         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
337         * modules/crypto/gc (configure.ac): ... to here.
338
339 2011-05-07  Bruno Haible  <bruno@clisp.org>
340
341         fwriting: Move AC_LIBOBJ invocations to module description.
342         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
343         here...
344         * modules/fwriting (configure.ac): ... to here.
345
346 2011-05-07  Bruno Haible  <bruno@clisp.org>
347
348         fwritable: Move AC_LIBOBJ invocations to module description.
349         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
350         here...
351         * modules/fwritable (configure.ac): ... to here.
352
353 2011-05-07  Bruno Haible  <bruno@clisp.org>
354
355         futimens: Move AC_LIBOBJ invocations to module description.
356         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
357         here...
358         * modules/futimens (configure.ac): ... to here.
359
360 2011-05-07  Bruno Haible  <bruno@clisp.org>
361
362         ftruncate: Move AC_LIBOBJ invocations to module description.
363         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
364         gl_PREREQ_FTRUNCATE invocations from here...
365         * modules/ftruncate (configure.ac): ... to here.
366
367 2011-05-07  Bruno Haible  <bruno@clisp.org>
368
369         fsync: Move AC_LIBOBJ invocations to module description.
370         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
371         invocations from here...
372         * modules/fsync (configure.ac): ... to here.
373
374 2011-05-07  Bruno Haible  <bruno@clisp.org>
375
376         fsusage: Move AC_LIBOBJ invocations to module description.
377         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
378         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
379         * modules/fsusage (configure.ac): ... to here.
380
381 2011-05-07  Bruno Haible  <bruno@clisp.org>
382
383         freopen: Move AC_LIBOBJ invocations to module description.
384         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
385         invocations from here...
386         * modules/freopen (configure.ac): ... to here.
387
388 2011-05-07  Bruno Haible  <bruno@clisp.org>
389
390         free: Move AC_LIBOBJ invocations to module description.
391         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
392         invocations from here...
393         * modules/free (configure.ac): ... to here.
394
395 2011-05-07  Bruno Haible  <bruno@clisp.org>
396
397         freadable: Move AC_LIBOBJ invocations to module description.
398         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
399         here...
400         * modules/freadable (configure.ac): ... to here.
401
402 2011-05-07  Bruno Haible  <bruno@clisp.org>
403
404         fpurge: Move AC_LIBOBJ invocations to module description.
405         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
406         invocations from here...
407         * modules/fpurge (configure.ac): ... to here.
408
409 2011-05-07  Bruno Haible  <bruno@clisp.org>
410
411         fpending: Move AC_LIBOBJ invocations to module description.
412         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
413         gl_FUNC_FPENDING.
414         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
415         invocations from here...
416         * modules/fpending (configure.ac): ... to here.
417
418 2011-05-07  Bruno Haible  <bruno@clisp.org>
419
420         fopen: Move AC_LIBOBJ invocations to module description.
421         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
422         invocations from here...
423         * modules/fopen (configure.ac): ... to here.
424
425 2011-05-07  Bruno Haible  <bruno@clisp.org>
426
427         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
428         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
429         gl_FUNC_FNMATCH_POSIX.
430         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
431         invocations from here...
432         * modules/fnmatch (configure.ac): ... to here.
433         * modules/fnmatch-gnu (configure.ac): ... and here.
434
435 2011-05-07  Bruno Haible  <bruno@clisp.org>
436
437         flock: Move AC_LIBOBJ invocations to module description.
438         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
439         invocations from here...
440         * modules/flock (configure.ac): ... to here.
441
442 2011-05-07  Bruno Haible  <bruno@clisp.org>
443
444         fileblocks: Move AC_LIBOBJ invocations to module description.
445         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
446         gl_PREREQ_FILEBLOCKS invocations from here...
447         * modules/fileblocks (configure.ac): ... to here.
448
449 2011-05-06  Bruno Haible  <bruno@clisp.org>
450
451         fflush: Move AC_LIBOBJ invocations to module description.
452         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
453         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
454         invocations from here...
455         * modules/fflush (configure.ac): ... to here.
456
457 2011-05-06  Bruno Haible  <bruno@clisp.org>
458
459         fdopendir: Move AC_LIBOBJ invocations to module description.
460         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
461         here...
462         * modules/fdopendir (configure.ac): ... to here.
463         (Depends-on): Improve conditions.
464
465 2011-05-06  Bruno Haible  <bruno@clisp.org>
466
467         _Exit: Move AC_LIBOBJ invocations to module description.
468         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
469         invocations from here...
470         * modules/_Exit (configure.ac): ... to here.
471
472 2011-05-21  Bruno Haible  <bruno@clisp.org>
473
474         euidaccess: Respect rules for use of AC_LIBOBJ.
475         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
476         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
477         from here...
478         * modules/euidaccess (configure.ac): ... to here.
479
480 2011-05-06  Bruno Haible  <bruno@clisp.org>
481
482         error: Move AC_LIBOBJ invocations to module description.
483         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
484         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
485         invocations from here...
486         * modules/error (configure.ac): ... to here.
487
488 2011-05-06  Bruno Haible  <bruno@clisp.org>
489
490         duplocale: Move AC_LIBOBJ invocations to module description.
491         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
492         gl_PREREQ_DUPLOCALE invocations from here...
493         * modules/duplocale (configure.ac): ... to here.
494
495 2011-05-05  Bruno Haible  <bruno@clisp.org>
496
497         dirfd: Move AC_LIBOBJ invocations to module description.
498         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
499         gl_FUNC_DIRFD.
500         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
501         here...
502         * modules/dirfd (configure.ac): ... to here.
503         (Depends-on): Fix condition.
504
505 2011-05-05  Bruno Haible  <bruno@clisp.org>
506
507         chown: Respect rules for use of AC_LIBOBJ.
508         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
509         * modules/chown (configure.ac): ... to here.
510
511 2011-05-05  Bruno Haible  <bruno@clisp.org>
512
513         chdir-long: Move AC_LIBOBJ invocations to module description.
514         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
515         gl_PREREQ_CHDIR_LONG invocations from here...
516         * modules/chdir-long (configure.ac): ... to here.
517
518 2011-05-05  Bruno Haible  <bruno@clisp.org>
519
520         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
521         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
522         from here...
523         * modules/canonicalize-lgpl (configure.ac): ... to here.
524
525 2011-05-05  Bruno Haible  <bruno@clisp.org>
526
527         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
528         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
529         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
530         REPLACE_CALLOC.
531         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
532         * modules/calloc-gnu (configure.ac): Likewise.
533
534 2011-05-05  Bruno Haible  <bruno@clisp.org>
535
536         btowc: Move AC_LIBOBJ invocations to module description.
537         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
538         invocations from here...
539         * modules/btowc (configure.ac): ... to here.
540
541 2011-05-21  Bruno Haible  <bruno@clisp.org>
542
543         atexit: Move AC_LIBOBJ invocations to module description.
544         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
545         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
546         here...
547         * modules/atexit (configure.ac): ... to here.
548
549 2011-05-05  Bruno Haible  <bruno@clisp.org>
550
551         atoll: Move AC_LIBOBJ invocations to module description.
552         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
553         invocations from here...
554         * modules/atoll (configure.ac): ... to here.
555
556 2011-05-05  Bruno Haible  <bruno@clisp.org>
557
558         argz: Move AC_LIBOBJ invocations to module description.
559         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
560         * modules/argz (configure.ac): ... to here.
561
562 2011-05-05  Bruno Haible  <bruno@clisp.org>
563
564         alphasort: Move AC_LIBOBJ invocations to module description.
565         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
566         gl_PREREQ_ALPHASORT invocations from here...
567         * modules/alphasort (configure.ac): ... to here.
568
569 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
570
571         verify: new macro verify_expr; verify_true deprecated
572         * NEWS: Mention this.
573         * doc/verify.texi (Compile-time Assertions): Document this.
574         * lib/verify.h (verify_true): Deprecate.
575         (verify_expr): New macro.
576         * tests/test-verify.c (function): Test verify_expr.
577
578 2011-06-14  Jim Meyering  <meyering@redhat.com>
579
580         init.sh: give more portable redirection-related advice in a comment
581         * tests/init.sh (stderr_fileno_): Update the advice in comments.
582         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
583         for lots of discussion.  Stefano Lattarini suggested the solution
584         of putting "9>&2" after the command.  Reported by Bruno Haible.
585
586 2011-06-13  Bruno Haible  <bruno@clisp.org>
587
588         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
589         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
590         'none'.
591
592 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
593
594         ftoastr: use strtof only if HAVE_STRTOF
595         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
597         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
598         * modules/ftoastr (configure.ac): Check for strtof.
599
600 2011-06-13  Bruno Haible  <bruno@clisp.org>
601
602         gnulib-tool: Addendum to 2011-06-08 commit.
603         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
604         and --witness-c-macro have been given, augment AM_CPPFLAGS.
605
606 2011-06-13  Bruno Haible  <bruno@clisp.org>
607
608         fseeko: Provide a non-inline replacement of fseek().
609         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
610         * modules/fseeko (Depends-on): Add fseek.
611         * modules/fseek (License): Change to LGPLv2+.
612
613 2011-06-13  Bruno Haible  <bruno@clisp.org>
614
615         ftello: Provide a non-inline replacement of ftell().
616         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
617         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
618         not have ftello() (such as on mingw).
619         * modules/ftello (Depends-on): Add ftell.
620         * modules/ftell (License): Change to LGPLv2+.
621
622 2011-05-07  Bruno Haible  <bruno@clisp.org>
623
624         ftell: Move AC_LIBOBJ invocations to module description.
625         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
626         * modules/ftell (configure.ac): ... to here.
627
628 2011-05-07  Bruno Haible  <bruno@clisp.org>
629
630         ftello: Respect rules for use of AC_LIBOBJ.
631         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
632         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
633         here...
634         * modules/ftello (configure.ac): ... to here.
635
636 2011-05-07  Bruno Haible  <bruno@clisp.org>
637
638         fseeko: Simplify.
639         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
640         (gl_FUNC_FSEEKO): Inline it here.
641
642 2011-05-07  Bruno Haible  <bruno@clisp.org>
643
644         fseek: Move AC_LIBOBJ invocations to module description.
645         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
646         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
647         * modules/fseek (configure.ac): ... to here.
648
649 2011-05-07  Bruno Haible  <bruno@clisp.org>
650
651         fseek: Respect rules for use of AC_LIBOBJ.
652         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
653         here...
654         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
655
656 2011-05-07  Bruno Haible  <bruno@clisp.org>
657
658         fseeko: Respect rules for use of AC_LIBOBJ.
659         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
660         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
661         here...
662         * modules/fseeko (configure.ac): ... to here.
663
664 2011-06-13  Bruno Haible  <bruno@clisp.org>
665
666         gnulib-tool: Allow comments in the 'Depends-on' section.
667         * doc/gnulib.texi (Module description): Mention comment syntax in the
668         Depends-on section.
669         * gnulib-tool (func_get_dependencies): Filter out comment lines.
670
671 2011-06-13  Bruno Haible  <bruno@clisp.org>
672
673         file-set.h: guard __attibute__ use, now that it's not always defined
674         * lib/file-set.h (record_file): Use __attribute__ only with compiler
675         versions that support it.  This fixes a coreutils build failure with
676         the vendor cc on HP-UX 11.31.
677
678 2011-06-12  Bruno Haible  <bruno@clisp.org>
679
680         acl: Add support for HP-UX >= 11.11 JFS ACLs.
681         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
682         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
683         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
684         (acl, aclsort): New declarations.
685         (aclv_nontrivial): New declaration.
686         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
687         (file_has_acl): Read also the second kind of HP-UX ACLs.
688         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
689         kind of HP-UX ACLs if the first kind fails.
690         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
691         second kind of HP-UX ACLs.
692         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
693         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
694         agree.
695         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
696         hpuxjfs.
697         Handle hpuxjfs.
698         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
699         hpuxjfs.
700         Handle hpuxjfs.
701         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
702         (func_test_same_acls): Use both lsacl and getacl.
703         Handle hpuxjfs.
704         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
705         (func_test_same_acls): Use both lsacl and getacl.
706         Handle hpuxjfs.
707
708 2011-06-12  Bruno Haible  <bruno@clisp.org>
709
710         acl: Complete the 2010-08-10 fix.
711         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
712         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
713         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
714         explicitly.
715         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
716         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
717
718 2011-06-12  Bruno Haible  <bruno@clisp.org>
719
720         spawn-pipe tests: Comments.
721         * tests/test-spawn-pipe-child.c (main): Update comment.
722         Reported by James Youngman <jay@gnu.org>.
723
724 2011-06-11  James Youngman  <jay@gnu.org>
725
726         New module 'stat-size'.
727         * modules/stat-size: New module.  Provides macros for accessing
728         file size information in instances of struct stat.  Depends on the
729         fileblocks module because it calls st_blocks.
730         * lib/stat-size.h: New file, adapted from coreutils' system.h.
731         * doc/gnulib.texi: Include stat-size.texi.
732         * doc/stat-size.texi: Documentation for this module.
733         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
734         * m4/fileblocks.m4: Mention that stat-size depends on the call to
735         AC_STRUCT_ST_BLOCKS.
736
737 2011-06-09  Bruno Haible  <bruno@clisp.org>
738
739         thread: Support pthreads-win32.
740         * lib/glthread/thread.h (gl_thread_self): Define differently on
741         pthreads-win32.
742         (gl_null_thread): New declaration.
743         (gl_thread_self_pointer): New macro.
744         * lib/glthread/thread.c (gl_null_thread): New constant.
745         * tests/test-lock.c: Use gl_thread_self_pointer instead of
746         gl_thread_self.
747         * tests/test-tls.c: Likewise.
748         Suggested by Paul Eggert. Reported by Eric Blake.
749
750 2011-06-09  Bruno Haible  <bruno@clisp.org>
751
752         thread: Fix confusion between NULL and 0.
753         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
754         Reported by Paul Eggert.
755
756 2011-06-09  Bruno Haible  <bruno@clisp.org>
757
758         spawn-pipe tests: Avoid test failure on HP-UX 11.
759         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
760         is closed.
761
762 2011-06-09  Bruno Haible  <bruno@clisp.org>
763
764         acl tests: Fix compilation error on HP-UX 11.
765         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
766
767 2011-06-09  Bruno Haible  <bruno@clisp.org>
768
769         rmdir: Avoid test failure on HP-UX 10.20.
770         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
771         EEXIST.
772
773 2011-06-08  Eric Blake  <eblake@redhat.com>
774
775         perror: fix test on mingw
776         * modules/perror-tests (Depends-on): Add dup2.
777
778         strerror_r-posix: fix on MacOS
779         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
780         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
781         logic bug.
782         * lib/strerror_r.c (strerror_r): Fix the bug.
783         * lib/strerror.c (strerror): Likewise.
784         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
785         problem.
786         * doc/posix-functions/strerror.texi (strerror): Likewise.
787         * doc/posix-functions/perror.texi (perror): Likewise.
788         * tests/test-strerror.c (main): Enhance test.
789         * tests/test-strerror_r.c (main): Likewise.
790
791 2011-06-08  Bruno Haible  <bruno@clisp.org>
792
793         gnulib-tool: Better isolation between different gnulib-tool invocations.
794         * gnulib-tool: New option --witness-c-macro.
795         (witness_c_macro): New variable.
796         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
797         AM_CPPFLAGS define it as a C macro.
798         (func_emit_tests_Makefile_am): Likewise.
799         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
800         read it from there.
801         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
802         m4_define, not AC_DEFUN.
803         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
804         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
805         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
806         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
807         s|...|...|, to substitute the values of the GNULIB_* module indicator
808         variables.
809         * modules/dirent (Makefile.am): Likewise.
810         * modules/fcntl-h (Makefile.am): Likewise.
811         * modules/iconv-h (Makefile.am): Likewise.
812         * modules/langinfo (Makefile.am): Likewise.
813         * modules/locale (Makefile.am): Likewise.
814         * modules/math (Makefile.am): Likewise.
815         * modules/netdb (Makefile.am): Likewise.
816         * modules/poll-h (Makefile.am): Likewise.
817         * modules/pty (Makefile.am): Likewise.
818         * modules/search (Makefile.am): Likewise.
819         * modules/signal (Makefile.am): Likewise.
820         * modules/spawn (Makefile.am): Likewise.
821         * modules/stdio (Makefile.am): Likewise.
822         * modules/stdlib (Makefile.am): Likewise.
823         * modules/string (Makefile.am): Likewise.
824         * modules/sys_ioctl (Makefile.am): Likewise.
825         * modules/sys_select (Makefile.am): Likewise.
826         * modules/sys_socket (Makefile.am): Likewise.
827         * modules/sys_stat (Makefile.am): Likewise.
828         * modules/sys_times (Makefile.am): Likewise.
829         * modules/sys_utsname (Makefile.am): Likewise.
830         * modules/sys_wait (Makefile.am): Likewise.
831         * modules/termios (Makefile.am): Likewise.
832         * modules/time (Makefile.am): Likewise.
833         * modules/unistd (Makefile.am): Likewise.
834         * modules/wchar (Makefile.am): Likewise.
835
836 2011-06-08  Eric Blake  <eblake@redhat.com>
837
838         strerror: simplify replacement
839         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
840         * modules/strerror (configure.ac): No prereqs needed here...
841         * modules/strerror-override (configure.ac): ...but this needs it.
842         (Files): Add file for needed prereq macro.
843
844 2011-06-08  Bruno Haible  <bruno@clisp.org>
845
846         strerror_r-posix: Tweaks.
847         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
848         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
849         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
850         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
851         (gl_FUNC_STRERROR_R): ... to here.
852         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
853
854 2011-06-07  Eric Blake  <eblake@redhat.com>
855
856         perror: document fixed bugs
857         * doc/posix-functions/perror.texi (perror): Document recent
858         patches.
859
860 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
861
862         stat-time: get_stat_birthtime failure is better-defined
863         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
864         return a timestamp whose tv_sec and tv_nsec values are both -1.
865         Previously, the spec said only that the tv_nsec value was negative.
866         This upward-compatible change simplifies GNU tar a bit.
867
868 2011-06-07  Eric Blake  <eblake@redhat.com>
869
870         strerror_r-posix: work around cygwin 1.7.9
871         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
872         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
873         bug without replacing strerror_r.
874         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
875         strerror_r is buggy, but without requiring strerror_r compilation.
876         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
877
878         test-perror: relax test to ignore cygwin bug
879         * tests/test-perror2.c (main): Relax test on requiring detection
880         of stream errors, and use unbuffered stream.
881         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
882         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
883         * doc/posix-functions/fputc.texi (fputc): Likewise.
884         * doc/posix-functions/fputs.texi (fputs): Likewise.
885         * doc/posix-functions/fputws.texi (fputws): Likewise.
886         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
887         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
888         * doc/posix-functions/getopt.texi (getopt): Likewise.
889         * doc/posix-functions/perror.texi (perror): Likewise.
890         * doc/posix-functions/printf.texi (printf): Likewise.
891         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
892         * doc/posix-functions/psignal.texi (psignal): Likewise.
893         * doc/posix-functions/putc.texi (putc): Likewise.
894         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
895         Likewise.
896         * doc/posix-functions/putchar.texi (putchar): Likewise.
897         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
898         Likewise.
899         * doc/posix-functions/puts.texi (puts): Likewise.
900         * doc/posix-functions/putwc.texi (putwc): Likewise.
901         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
902         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
903         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
904         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
905         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
906         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
907         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
908         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
909
910 2011-05-22  Bruno Haible  <bruno@clisp.org>
911
912         strerror: Move AC_LIBOBJ invocations to module description.
913         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
914         gl_PREREQ_STRERROR invocations from here...
915         * modules/strerror (configure.ac): ... to here.
916
917 2011-05-21  Bruno Haible  <bruno@clisp.org>
918
919         perror: Use common idiom.
920         * modules/perror (configure.ac): Reorder statements.
921
922 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
923
924         tests: fix usage message in 'mktempd_'
925         * tests/init.sh (mktempd_): In the usage message, use literal
926         'mktempd_', not '$ME' (which is even undefined), as the name of
927         the subroutine.
928
929 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
930
931         tests init: new function 'fatal_', for hard errors
932         Before this patch, the only way offered by tests/init.sh to
933         properly signal a hard error was the `framework_failure_'
934         function.  But the error message issued by that function,
935         as its name would suggest, refers to a set-up failure in the
936         testsuite, while hard errors can obviously also be due to
937         other reasons.  The best way to fix this inconsistency is to
938         introduce a new function with a more general error message.
939         * tests/init.sh (fatal_): New function.
940
941 2011-06-06  Eric Blake  <eblake@redhat.com>
942
943         canonicalize-lgpl: use common idiom
944         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
945         over newer POSIX -Rf.
946         Reported by Bruno Haible.
947
948         canonicalize-lgpl: work around AIX realpath bug
949         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
950         * doc/posix-functions/realpath.texi (realpath): Document it.
951         Reported by Bruno Haible.
952
953         strerror: work around FreeBSD bug
954         * lib/strerror.c (strerror): Special case 0.
955         Reported by Bruno Haible.
956
957         strerror-override: avoid bloating errno module
958         * modules/errno (Files, configure.ac): Move replacement strings...
959         * modules/strerror-override: ...to new module.
960         * modules/strerror (Depends-on): Add strerror-override.
961         * modules/strerror_r-posix (Depends-on): Likewise.
962         * MODULES.html.sh: Document new module.
963         Reported by Bruno Haible.
964
965 2011-06-06  Bruno Haible  <bruno@clisp.org>
966
967         spawn-pipe tests: Rename program.
968         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
969         * tests/test-spawn-pipe-child.c: Update comment.
970         * tests/test-spawn-pipe.sh: Update.
971         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
972
973         spawn-pipe tests: Link the child program only against libc.
974         * tests/test-spawn-pipe-child.c: New file, extracted from
975         tests/test-spawn-pipe.c.
976         (main): Expect only one argument.
977         (is_open): New function, copied from tests/test-pipe.c.
978         * tests/test-spawn-pipe.c: Don't include <errno.h>.
979         (child_main): Remove function.
980         (test_pipe): Pass only one argument to the child program.
981         (main): Remove child process code. Expect the child program's name as
982         first argument.
983         * tests/test-spawn-pipe.sh: Pass the child program's name as first
984         argument.
985         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
986         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
987         test-spawn-pipe-child against no libraries.
988
989 2011-06-06  Bruno Haible  <bruno@clisp.org>
990
991         careadlinkat: Avoid mismatch between ssize_t and int.
992         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
993         * lib/careadlinkat.c (careadlinkatcwd): Define always.
994
995 2011-06-06  Jim Meyering  <meyering@redhat.com>
996
997         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
998         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
999         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1000
1001 2011-06-05  Bruno Haible  <bruno@clisp.org>
1002
1003         ansi-c++-opt: Interoperability with libtool.
1004         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1005         set the variable to "no", not to ":".
1006         * NEWS: Mention the change.
1007
1008 2011-06-05  Bruno Haible  <bruno@clisp.org>
1009
1010         acl: Fix test failure on AIX 7.
1011         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1012         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1013
1014 2011-06-05  Bruno Haible  <bruno@clisp.org>
1015
1016         pipe-filter-ii: Fix test failure on AIX and IRIX.
1017         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1018         with EAGAIN, retry with a smaller buffer size.
1019
1020 2011-06-05  Bruno Haible  <bruno@clisp.org>
1021
1022         localename: Fix link dependencies.
1023         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1024         * modules/localename-tests (Makefile.am): Link test-localename with
1025         $(LIBTHREAD).
1026
1027 2011-06-05  Bruno Haible  <bruno@clisp.org>
1028
1029         error: Avoid gcc warning.
1030         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1031
1032 2011-06-05  Bruno Haible  <bruno@clisp.org>
1033
1034         unsetenv: Avoid gcc warning.
1035         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1036
1037 2011-06-05  Bruno Haible  <bruno@clisp.org>
1038
1039         setenv: Avoid gcc warning.
1040         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1041
1042 2011-06-05  Bruno Haible  <bruno@clisp.org>
1043
1044         sys_select: Ensure memset is declared also on AIX 7.
1045         * lib/sys_select.in.h: Include <string.h> also on AIX.
1046         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1047         self-contained also on AIX 7.1.
1048
1049 2011-06-04  Jim Meyering  <meyering@redhat.com>
1050
1051         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1052         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1053         function name, "error".
1054         (_gl_translatable_diag_func_re): New configurable variable.
1055
1056 2011-06-04  Bruno Haible  <bruno@clisp.org>
1057
1058         getopt: Avoid gcc warning.
1059         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1060
1061 2011-06-04  Bruno Haible  <bruno@clisp.org>
1062
1063         strerror_r: Fix comments.
1064         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1065         commit.
1066
1067 2011-06-04  Bruno Haible  <bruno@clisp.org>
1068
1069         perror: Fix compilation error.
1070         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1071         Undefine fprintf, not sprintf.
1072         * modules/perror (Depends-on): Remove intprops, verify.
1073
1074 2011-06-04  Bruno Haible  <bruno@clisp.org>
1075
1076         setlocale: Enable replacement on Cygwin 1.5.
1077         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1078         Cygwin 1.5.x.
1079         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1080         LC_CTYPE category also exists on Cygwin 1.5.x.
1081
1082 2011-06-04  Bruno Haible  <bruno@clisp.org>
1083
1084         strerror-override: Don't disable symbol renamings.
1085         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1086         * lib/strerror-override.c: Include config.h.
1087         (strerror_override): Don't undefine.
1088
1089 2011-06-03  Bruno Haible  <bruno@clisp.org>
1090
1091         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1092         * lib/localename.h: Update copyright header.
1093         * lib/localename.c: Likewise.
1094         * lib/relocatable.h: Likewise.
1095         * lib/relocatable.c: Likewise.
1096
1097 2011-06-02  Bruno Haible  <bruno@clisp.org>
1098
1099         doc: Fix a module name.
1100         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1101
1102 2011-06-02  Bruno Haible  <bruno@clisp.org>
1103
1104         pipe2: Remove dependency on 'nonblocking' module.
1105         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1106         O_NONBLOCK is defined by gnulib.
1107         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1108         is zero.
1109         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1110         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1111         defined by gnulib.
1112         (get_nonblocking_flag): New function.
1113         (main): Test O_NONBLOCK flag only if it is nonzero.
1114         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1115
1116 2011-06-03  Jim Meyering  <meyering@redhat.com>
1117
1118         maint: three new prohibit-header-without-use rules
1119         Prohibit use of cloexec.h, posixver.h, same.h without use.
1120         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1121         (sc_prohibit_posixver_without_use): Likewise.
1122         (sc_prohibit_same_without_use): Likewise.
1123
1124 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1125
1126         allocator: 'die' routine is now given requested size
1127         * lib/allocator.h (struct allocator.die): New size arg.
1128         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1129         If the actual problem is an ssize_t limitation, not a size_t or
1130         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1131
1132 2011-06-01  Eric Blake  <eblake@redhat.com>
1133
1134         strerror: drop strerror_r dependency
1135         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1136         * lib/strerror-override.c (strerror_override): ...to new file.
1137         * lib/strerror-override.h: Add prototype.
1138         * lib/strerror-impl.h: Delete.
1139         * lib/strerror.c (strerror): New implementation.
1140         * modules/errno (Files): Add new files.
1141         (configure.ac): Compile new file as appropriate.
1142         * modules/strerror (Files): Drop unused file.
1143         (Depends-on): Drop strerror_r-posix.
1144         * MODULES.html.sh: Document strerror_r-posix.
1145         Requested by Sam Steingold.
1146
1147         perror: call strerror_r directly
1148         * modules/perror (Files): Drop strerror-impl.h.
1149         * lib/perror.c (perror): Use our own stack buffer, rather than
1150         calling a wrapper that uses static storage.
1151         * doc/posix-functions/perror.texi (perror): Document a limitation
1152         of our replacement.
1153
1154         strerror_r: fix includes for FreeBSD
1155         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1156         since we use abort on some platforms.
1157         Reported by Matthias Bolte.
1158
1159 2011-05-31  Bruno Haible  <bruno@clisp.org>
1160
1161         Fix link errors in tests: openat-die uses gettext-h.
1162         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1163         against $(LIBINTL).
1164         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1165         against $(LIBINTL).
1166         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1167         $(LIBINTL).
1168         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1169         against $(LIBINTL).
1170         * modules/linkat-tests (Makefile.am): Link test-linkat against
1171         $(LIBINTL).
1172         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1173         $(LIBINTL).
1174         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1175         against $(LIBINTL).
1176         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1177         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1178         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1179         $(LIBINTL).
1180         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1181         $(LIBINTL).
1182         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1183         $(LIBINTL).
1184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1185
1186 2011-05-31  Bruno Haible  <bruno@clisp.org>
1187
1188         Fix link errors in tests: wait-process uses gettext-h.
1189         * modules/nonblocking-pipe-tests (Makefile.am): Set
1190         test_nonblocking_pipe_main_LDADD.
1191         * modules/nonblocking-socket-tests (Makefile.am): Link
1192         test-nonblocking-socket-main against $(LIBINTL).
1193         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1194
1195 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         assert-h: work around 'verify' incompatibility
1198         * lib/verify.h: Use @...@ directives, not ifdef.
1199         * modules/assert-h (assert.h): Implement the directives.
1200         (assert.h): Substitute the symbol-prefix more consistently.
1201
1202 2011-05-29  Jim Meyering  <meyering@redhat.com>
1203
1204         trim: remove three superfluous assignments
1205         * lib/trim.c (trim2): Remove three superfluous assignments
1206         and correct brace positioning.
1207
1208 2011-05-29  Bruno Haible  <bruno@clisp.org>
1209
1210         wctype-h: Avoid namespace pollution on Solaris 2.6.
1211         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1212         identifiers.
1213         * doc/posix-headers/wctype.texi: Mention the problem.
1214         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1215
1216 2011-05-28  Jim Meyering  <meyering@redhat.com>
1217
1218         parse-datetime.y: accommodate -Wstrict-overflow
1219         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1220         placate -Wstrict-overflow.
1221
1222         trim: avoid a warning from -O2 -Wstrict-overflow
1223         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1224
1225 2011-05-29  Bruno Haible  <bruno@clisp.org>
1226
1227         gnulib-tool: Fix bug in yesterday's commit.
1228         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1229         twice.
1230
1231 2011-05-29  Bruno Haible  <bruno@clisp.org>
1232
1233         Allow multiple gnulib generated include files to be combined.
1234         * gnulib-tool (func_compute_include_guard_prefix): New function.
1235         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1236         ${gl_include_guard_prefix} references.
1237         (func_import, func_create_testdir): Invoke
1238         func_compute_include_guard_prefix.
1239         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1240         * lib/ctype.in.h: Likewise.
1241         * lib/dirent.in.h: Likewise.
1242         * lib/errno.in.h: Likewise.
1243         * lib/fcntl.in.h: Likewise.
1244         * lib/float.in.h: Likewise.
1245         * lib/getopt.in.h: Likewise.
1246         * lib/iconv.in.h: Likewise.
1247         * lib/langinfo.in.h: Likewise.
1248         * lib/locale.in.h: Likewise.
1249         * lib/math.in.h: Likewise.
1250         * lib/netdb.in.h: Likewise.
1251         * lib/netinet_in.in.h: Likewise.
1252         * lib/poll.in.h: Likewise.
1253         * lib/pthread.in.h: Likewise.
1254         * lib/pty.in.h: Likewise.
1255         * lib/sched.in.h: Likewise.
1256         * lib/se-selinux.in.h: Likewise.
1257         * lib/search.in.h: Likewise.
1258         * lib/signal.in.h: Likewise.
1259         * lib/spawn.in.h: Likewise.
1260         * lib/stdarg.in.h: Likewise.
1261         * lib/stddef.in.h: Likewise.
1262         * lib/stdint.in.h: Likewise.
1263         * lib/stdio.in.h: Likewise.
1264         * lib/stdlib.in.h: Likewise.
1265         * lib/string.in.h: Likewise.
1266         * lib/strings.in.h: Likewise.
1267         * lib/sys_file.in.h: Likewise.
1268         * lib/sys_ioctl.in.h: Likewise.
1269         * lib/sys_select.in.h: Likewise.
1270         * lib/sys_socket.in.h: Likewise.
1271         * lib/sys_stat.in.h: Likewise.
1272         * lib/sys_time.in.h: Likewise.
1273         * lib/sys_times.in.h: Likewise.
1274         * lib/sys_uio.in.h: Likewise.
1275         * lib/sys_utsname.in.h: Likewise.
1276         * lib/sys_wait.in.h: Likewise.
1277         * lib/sysexits.in.h: Likewise.
1278         * lib/termios.in.h: Likewise.
1279         * lib/time.in.h: Likewise.
1280         * lib/unistd.in.h: Likewise.
1281         * lib/wchar.in.h: Likewise.
1282         * lib/wctype.in.h: Likewise.
1283         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1284         * modules/ctype (Makefile.am): Likewise.
1285         * modules/dirent (Makefile.am): Likewise.
1286         * modules/errno (Makefile.am): Likewise.
1287         * modules/fcntl-h (Makefile.am): Likewise.
1288         * modules/float (Makefile.am): Likewise.
1289         * modules/getopt-posix (Makefile.am): Likewise.
1290         * modules/iconv-h (Makefile.am): Likewise.
1291         * modules/langinfo (Makefile.am): Likewise.
1292         * modules/locale (Makefile.am): Likewise.
1293         * modules/math (Makefile.am): Likewise.
1294         * modules/netdb (Makefile.am): Likewise.
1295         * modules/netinet_in (Makefile.am): Likewise.
1296         * modules/poll-h (Makefile.am): Likewise.
1297         * modules/pthread (Makefile.am): Likewise.
1298         * modules/pty (Makefile.am): Likewise.
1299         * modules/sched (Makefile.am): Likewise.
1300         * modules/search (Makefile.am): Likewise.
1301         * modules/selinux-h (Makefile.am): Likewise.
1302         * modules/signal (Makefile.am): Likewise.
1303         * modules/spawn (Makefile.am): Likewise.
1304         * modules/stdarg (Makefile.am): Likewise.
1305         * modules/stddef (Makefile.am): Likewise.
1306         * modules/stdint (Makefile.am): Likewise.
1307         * modules/stdio (Makefile.am): Likewise.
1308         * modules/stdlib (Makefile.am): Likewise.
1309         * modules/string (Makefile.am): Likewise.
1310         * modules/strings (Makefile.am): Likewise.
1311         * modules/sys_file (Makefile.am): Likewise.
1312         * modules/sys_ioctl (Makefile.am): Likewise.
1313         * modules/sys_select (Makefile.am): Likewise.
1314         * modules/sys_socket (Makefile.am): Likewise.
1315         * modules/sys_stat (Makefile.am): Likewise.
1316         * modules/sys_time (Makefile.am): Likewise.
1317         * modules/sys_times (Makefile.am): Likewise.
1318         * modules/sys_uio (Makefile.am): Likewise.
1319         * modules/sys_utsname (Makefile.am): Likewise.
1320         * modules/sys_wait (Makefile.am): Likewise.
1321         * modules/sysexits (Makefile.am): Likewise.
1322         * modules/termios (Makefile.am): Likewise.
1323         * modules/time (Makefile.am): Likewise.
1324         * modules/unistd (Makefile.am): Likewise.
1325         * modules/wchar (Makefile.am): Likewise.
1326         * modules/wctype-h (Makefile.am): Likewise.
1327         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1328
1329 2011-05-29  Bruno Haible  <bruno@clisp.org>
1330
1331         assert-h: Allow multiple gnulib generated replacements to coexist.
1332         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1333
1334 2011-05-29  Bruno Haible  <bruno@clisp.org>
1335
1336         argp: Allow coexistence with strerror_r-posix module.
1337         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1338         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1339         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1340         not the glibc signature.
1341
1342 2011-05-28  Bruno Haible  <bruno@clisp.org>
1343
1344         gnulib-tool: Alternative structure of testdirs, similar to --import.
1345         * gnulib-tool: New option --single-configure.
1346         (func_usage): Document it.
1347         (single_configure): New variable.
1348         (func_modules_transitive_closure_separately,
1349         func_modules_transitive_closure_separately,
1350         func_determine_use_libtests, func_modules_add_dummy_separately,
1351         func_modules_to_filelist_separately): New functions, extracted from
1352         func_import.
1353         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1354         (func_import): Use the new functions.
1355         (func_create_testdir): Set final_modules. Handle $single_configure =
1356         true case.
1357
1358 2011-05-28  Bruno Haible  <bruno@clisp.org>
1359
1360         getloadavg: Remove an unreliable safety check.
1361         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1362         getloadavg.c is in place.
1363         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1364         Reported by Sam Steingold <sds@gnu.org>.
1365
1366 2011-05-28  Bruno Haible  <bruno@clisp.org>
1367
1368         doc: Cleanup yet another file produced by texinfo.tex.
1369         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1370
1371 2011-05-28  Bruno Haible  <bruno@clisp.org>
1372
1373         Finish the conditional dependencies mechanism.
1374         * gnulib-tool: New option --no-conditional-dependencies.
1375         (func_usage): Document it. Don't mark --conditional-dependencies as
1376         experimental.
1377         (cond_dependencies): The possible values can now be true, false, empty.
1378         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1379         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1380         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1381
1382 2011-05-28  Bruno Haible  <bruno@clisp.org>
1383
1384         doc: Use a recent texinfo.tex.
1385         * doc/Makefile (tex_opts): New variable.
1386         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1387
1388 2011-05-28  Jim Meyering  <meyering@redhat.com>
1389
1390         intprops.h: adjust comment to match code change
1391         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1392         only once, it *may* have side effects.  Also fix an unrelated typo.
1393         (_GL_INT_SIGNED): Likewise.
1394
1395 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1396
1397         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1398
1399 2011-05-26  Bruno Haible  <bruno@clisp.org>
1400
1401         mbsrchr: Avoid collision with system function on Interix.
1402         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1403         Reported by Markus Duft <mduft@gentoo.org>.
1404
1405 2011-05-15  James Youngman  <jay@gnu.org>
1406
1407         getopt: for ambiguous options, enumerate the possibilities.
1408         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1409         the ambiguous options when an ambiguous prefix is given. This was
1410         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1411         glibc change was
1412         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1413
1414 2011-05-25  Eric Blake  <eblake@redhat.com>
1415
1416         getcwd: work around mingw bug
1417         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1418         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1419         Reported by Matthias Bolte.
1420
1421 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1422
1423         test-intprops: disable -Wtype-limits diagnostics
1424         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1425         diagnostics.  Otherwise, the integer overflow macros generate many
1426         diagnostics.  Reported by Jim Meyering in
1427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1428
1429         intprops: shorten, to pacify gcc -Woverlength-strings
1430         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1431         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1432         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1433         likely to run afoul of C compiler limits for string constant lengths.
1434         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1435
1436 2011-05-24  Eric Blake  <eblake@redhat.com>
1437
1438         docs: document recently fixed glibc printf bug
1439         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1440         * doc/posix-functions/printf.texi (printf): Likewise.
1441         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1442         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1443
1444         closein-tests: convert to init.sh
1445         * modules/closein-tests (Files): Add init.sh
1446         * tests/test-closein.sh Use it.
1447
1448         yesno-tests: convert to init.sh
1449         * modules/yesno-tests (Files): Add init.sh.
1450         * tests/test-yesno.sh: Use it.
1451
1452         atexit-tests: ensure reliable exit status
1453         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1454         Reported by Bruno Haible.
1455
1456 2011-05-24  Bruno Haible  <bruno@clisp.org>
1457
1458         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1459         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1460         gl_PREREQ_STRERROR_R invocations from here...
1461         * modules/strerror_r-posix (configure.ac): ... to here.
1462
1463 2011-05-24  Eric Blake  <eblake@redhat.com>
1464
1465         strerror_r: fix missing header
1466         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1467
1468         strerror_r: fix AIX test failures
1469         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1470         ERANGE failure.
1471
1472         strerror_r: fix Solaris test failures
1473         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1474         failures.
1475         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1476
1477         strerror_r: enforce POSIX recommendations
1478         * lib/strerror_r.c (safe_copy): New helper method.
1479         (strerror_r): Guarantee a non-empty string.
1480         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1481         recent POSIX rulings and to match our strerror guarantees.
1482         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1483
1484 2011-05-24  Jim Meyering  <meyering@redhat.com>
1485
1486         test-perror2.c: avoid warning about unused variable
1487         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1488
1489 2011-05-24  Eric Blake  <eblake@redhat.com>
1490
1491         perror: avoid spurious test failure on HP-UX
1492         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1493
1494         tests: fix logic bug in init.sh
1495         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1496         shell.
1497
1498 2011-05-24  Jim Meyering  <meyering@redhat.com>
1499
1500         utimensat: do not reference an out-of-scope buffer
1501         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1502         declared in an inner scope, yet "times" would be dereferenced outside
1503         the scope in which "ts" was valid.
1504         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1505         of ts[2] "out/up", so that the use of aliased "times" (via
1506         "times = ts;") does not end up referencing an out-of-scope "ts"
1507
1508         opendir-safer.c: don't clobber errno; don't close negative FD
1509         * lib/opendir-safer.c (opendir_safer):
1510         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1511         file descriptor, and more importantly, don't clobber the
1512         offending errno value with EINVAL.  Before, upon failure
1513         of dup_safer, we would pass the negative file descriptor to
1514         fdopendir, which would clobber errno.
1515
1516 2011-05-23  Bruno Haible  <bruno@clisp.org>
1517
1518         idcache: Fix module description.
1519         * modules/idcache (Include): Set to "idcache.h".
1520
1521 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1522
1523         gnulib-tool: fix portability problem with MacOS sed
1524         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1525         before the "}".  Problem reported by Leo in
1526         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1527         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1528         sed_extract_condition1, sed_extract_condition2.
1529
1530 2011-05-23  Bruno Haible  <bruno@clisp.org>
1531
1532         hash: Simplify autoconf macro.
1533         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1534
1535 2011-05-23  Bruno Haible  <bruno@clisp.org>
1536
1537         getugroups: Fix module description.
1538         * modules/getugroups (Include): Set to "getugroups.h".
1539
1540 2011-05-23  Bruno Haible  <bruno@clisp.org>
1541
1542         linkat: Simplify autoconf macro.
1543         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1544
1545 2011-05-23  Bruno Haible  <bruno@clisp.org>
1546             Eric Blake  <eblake@redhat.com>
1547
1548         linkat, renameat: Update dependencies.
1549         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1550         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1551         symlinkat.
1552
1553 2011-05-23  Jim Meyering  <meyering@redhat.com>
1554
1555         maint.mk: more tight_scope improvements
1556         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1557         (_gl_TS_headers): Define only in if-0'd block.
1558         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1559         sometimes we must *not* use it.  Adjust uses accordingly.
1560         (sc_tight_scope): Use much simpler grep-based test to determine
1561         whether we skip this rule.
1562
1563         maint.mk: generalize/improve the tight-scope rule
1564         * top/maint.mk: Emit a warning when the test is skipped.
1565         (_gl_TS_dir): Add $(srcdir)/ prefix.
1566         (_gl_TS_function_match): Simplify, rather than trying
1567         to enumerate common types.  Otherwise, it would fail to match an
1568         "extern unsigned char const *" declaration in idutils.
1569         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1570         a way to support use of that type of macro.
1571         (_gl_TS_var_match): Simplify regexp.
1572         (_gl_TS_obj_files): New configurable variable.
1573         (_gl_TS_headers): Likewise.
1574
1575 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1576
1577         verify: fix bug when gnulib <assert.h> is also included
1578         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1579         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1580         Perhaps there's a better way, but this fixes the immediate problem.
1581         Problem reported by Bruno Haible in
1582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1583
1584 2011-05-22  Bruno Haible  <bruno@clisp.org>
1585
1586         xgetcwd: Simplify autoconf macro.
1587         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1588
1589 2011-05-22  Bruno Haible  <bruno@clisp.org>
1590
1591         New module 'mktime-internal'.
1592         * modules/mktime-internal: New file.
1593         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1594         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1595         mktime_internal as a C macro if libc has __mktime_internal.
1596         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1597         conditions.
1598         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1599
1600 2011-05-22  Bruno Haible  <bruno@clisp.org>
1601
1602         timegm: Correct mktime replacement statements.
1603         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1604         defining mktime as a C macro. This completes a 2009-07-28 commit.
1605
1606 2011-05-22  Bruno Haible  <bruno@clisp.org>
1607
1608         timegm: Simplify autoconf macro.
1609         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1610
1611 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         clock-time: change to LGPLv2+.
1614         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1615         BSD-like but we have no mark for that; this is good enough for now.
1616
1617 2011-05-21  Bruno Haible  <bruno@clisp.org>
1618
1619         strerror_r: Fix comments.
1620         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1621
1622 2011-05-21  Bruno Haible  <bruno@clisp.org>
1623
1624         relocatable-prog-wrapper: Fix possible link error.
1625         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1626         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1627         (gl_FUNC_SETENV): ... to here.
1628         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1629         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1630
1631 2011-05-21  Bruno Haible  <bruno@clisp.org>
1632
1633         relocatable-prog-wrapper: Assume strerror() exists.
1634         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1635         m4/strerror.m4.
1636         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1637         * lib/relocwrapper.c: Remove mention of strerror module.
1638         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1639         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1640         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1641         C macro.
1642
1643 2011-05-21  Bruno Haible  <bruno@clisp.org>
1644
1645         select: Simplify replacement idiom.
1646         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1647         Win32 platforms.
1648         * lib/sys_select.in.h (select): Simplify accordingly.
1649         * modules/select (Depends-on): Likewise.
1650
1651 2011-05-21  Bruno Haible  <bruno@clisp.org>
1652
1653         mkdir-p: Simplify autoconf macro.
1654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1655         gl_FUNC_LCHOWN.
1656
1657 2011-05-21  Eric Blake  <eblake@redhat.com>
1658
1659         strerror_r: avoid clobbering strerror on cygwin
1660         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1661         fall back instead to sys_errlist.
1662         * modules/strerror (configure.ac): Add witness.
1663         * tests/test-strerror_r.c (main): Enhance test.
1664         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1665         * tests/test-perror2.c (main): Free memory before exit.
1666
1667 2011-05-21  Bruno Haible  <bruno@clisp.org>
1668
1669         mkdtemp: Use gnulib naming conventions.
1670         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1671         * modules/mkdtemp (configure.ac): Update.
1672
1673 2011-05-20  Eric Blake  <eblake@redhat.com>
1674
1675         strerror_r: avoid corrupting errno on Solaris
1676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1677         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1678
1679         strerror_r: avoid compiler warning
1680         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1681
1682         strerror_r: simplify AIX code
1683         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1684
1685         test-perror: avoid spurious failure on FreeBSD
1686         * modules/perror-tests (Depends-on): Add strerror, now that
1687         strerror_r no longer pulls it in.
1688
1689 2011-05-20  Bruno Haible  <bruno@clisp.org>
1690
1691         strerror_r-posix: Remove unused dependencies.
1692         * modules/strerror_r-posix (Depends-on): Remove strerror.
1693         Reported by Eric Blake.
1694
1695 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1696
1697         intprops: remove assumption about A|B representation
1698         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1699         is a valid integer if both A and B are.  Although this is true for
1700         all known practical hosts, the C standard doesn't guarantee it,
1701         and the code need not assume it.  Also, this change may work around
1702         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1704
1705 2011-05-20  Eric Blake  <eblake@redhat.com>
1706
1707         perror: work around FreeBSD bug
1708         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1709         is broken.  Move AC_LIBOBJ...
1710         * modules/perror (configure.ac): Here.
1711         * doc/posix-functions/perror.texi (perror): Document this.
1712         * tests/test-perror2.c (main): Enhance test.
1713
1714         test-perror: check for strerror interactions
1715         * tests/macros.h (STREQ): Add macro.
1716         * modules/perror-tests (Files): Add second test.
1717         * tests/test-perror2.c (main): New file.
1718         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1719
1720         test-perror: rewrite to use init script
1721         * modules/perror-tests (Files): Add init.sh.
1722         * tests/test-perror.sh: Use temporary directory.
1723
1724 2011-05-20  Jim Meyering  <meyering@redhat.com>
1725
1726         maint: replace misused "a" with "an"
1727         * doc/intprops.texi: "a integer"
1728         * doc/regex.texi: "a explanation"
1729         * lib/alignof.h: "a object"
1730         * lib/argmatch.h: "a explanation"
1731         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1732         * lib/stdint.in.h: "a integer"
1733         * lib/userspec.c: "a owner"
1734         * doc/gnulib.texi: Fix "a idea", and reword.
1735
1736 2011-05-19  Jim Meyering  <meyering@redhat.com>
1737
1738         maint: correct misuse of "a" and "an"
1739         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1740         * lib/argp-help.c: "an docum...": s/an/a/
1741         * lib/argp-parse.c: "An vector": s/An/A/
1742         * lib/execute.c: "an native": s/an/a/
1743         * lib/spawn-pipe.c: Likewise.
1744         * lib/gc.h: "an Gc_rc": s/an/a/
1745         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1746         * lib/fts.c: "an stat.st_dev": s/an/a/
1747
1748 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1749
1750         intprops-tests: work around HP-UX 11.23 cc bug with constants
1751         * tests/test-intprops.c (VERIFY): New macro.
1752         (main): Use it, instead of verify, to work around the compiler bug; see
1753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1754
1755         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1756         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1757         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1758         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1759         (_GL_REMAINDER_OVERFLOW): Use it.
1760
1761         intprops-tests: revert unsigned part of previous change
1762         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1763         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1764         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1766
1767 2011-05-19  Bruno Haible  <bruno@clisp.org>
1768
1769         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1770         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1771         strerror_r() returned without filling the buffer.
1772         Reported by Eric Blake.
1773
1774 2011-05-19  Eric Blake  <eblake@redhat.com>
1775
1776         strerror_r: guarantee unchanged errno
1777         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1778         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1779         failure.
1780         * tests/test-strerror_r.c (main): Enhance test.
1781
1782 2011-05-19  Bruno Haible  <bruno@clisp.org>
1783
1784         strerror_r: Reorder #if blocks.
1785         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1786         for consistency with the previous commit.
1787
1788 2011-05-19  Bruno Haible  <bruno@clisp.org>
1789
1790         perror: Avoid clobbering the strerror buffer when possible.
1791         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1792         * lib/strerror.c: Include it.
1793         * modules/strerror (Files): Add lib/strerror-impl.h.
1794         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1795         (my_strerror): New function, defined through lib/strerror-impl.h.
1796         (perror): Use it instead of strerror.
1797         * modules/perror (Files): Add lib/strerror-impl.h.
1798         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1799
1800 2011-05-19  Eric Blake  <eblake@redhat.com>
1801
1802         strerror_r: fix on newer cygwin
1803         * lib/strerror_r.c (strerror_r): Cygwin now has
1804         __xpg_strerror_r, use it.
1805
1806 2011-05-19  Bruno Haible  <bruno@clisp.org>
1807
1808         strerror_r: Avoid clobbering the strerror buffer when possible.
1809         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1810         (sys_nerr, sys_errlist): New declarations.
1811         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1812         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1813         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1814
1815 2011-05-19  Bruno Haible  <bruno@clisp.org>
1816
1817         strerror_r: Fix test failure on mingw.
1818         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1819         EXTEND_STRERROR_R.
1820         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1821         macros from errno.in.h instead.
1822
1823 2011-05-19  Eric Blake  <eblake@redhat.com>
1824
1825         strerror: relax test for Solaris
1826         * tests/test-strerror.c (main): Permit Solaris behavior.
1827         * tests/test-strerror_r.c (main): Likewise.
1828
1829         strerror: enforce POSIX ruling on strerror(0)
1830         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1831         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1832         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1833         * doc/posix-functions/strerror.texi (strerror): Document it.
1834         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1835         * tests/test-strerror.c (main): Strengthen test.
1836         * tests/test-strerror_r.c (main): Likewise.
1837
1838 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1839
1840         intprop-tests: port to older and more-pedantic compilers
1841         * modules/intprops-tests (Files): Add tests/macros.h.
1842         * tests/test-intprops.c: Include macros.h.
1843         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1844         it's no longer documented to expand to an integer constant expression.
1845         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1846         argument is floating point, as it's no longer documented to expand
1847         to an integer constant expression in that case.
1848         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1849         compiler bugs reported by Bruno Haible.  See
1850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1851         (U0, U1): New constants, to work around the same bugs.  Also,
1852         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1853
1854         intprops: work around C compiler bugs
1855         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1856         bug in Sun C 5.11 2010/08/13 and other compilers; see
1857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1858
1859         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1860         * doc/intprops.texi (Integer Type Determination): Fix
1861         documentation for TYPE_IS_INTEGER: it returns an constant
1862         expression, not an integer constant expression.  Fix doc for
1863         TYPE_SIGNED: it returns an integer constant expression only if its
1864         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1865         hardly worth documented that way....)
1866
1867 2011-05-18  Bruno Haible  <bruno@clisp.org>
1868
1869         strerror_r: Avoid clobbering the strerror buffer when possible.
1870         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1871         Handle gnulib defined errno values here. When strerror() returns NULL
1872         or an empty string, return EINVAL.
1873         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1874         gnulib defined errno values here.
1875         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1876
1877 2011-05-18  Eric Blake  <eblake@redhat.com>
1878
1879         fnmatch: avoid compiler warning
1880         * lib/fnmatch_loop.c (FCT): Use correct type.
1881         Reported by Matthias Bolte.
1882
1883 2011-05-13  Jim Meyering  <meyering@redhat.com>
1884
1885         maint.mk: three new prohibit_<HDR>_without_use rules
1886         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1887         (sc_prohibit_stdio-safer_without_use): Likewise.
1888         (sc_prohibit_xfreopen_without_use): Likewise.
1889
1890 2011-05-17  Jim Meyering  <meyering@redhat.com>
1891
1892         announce-gen: fail if the NEWS delta is empty
1893         If there's nothing noteworthy in NEWS, then either you forgot
1894         or you shouldn't be releasing.
1895         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1896
1897 2011-05-17  Pádraig Brady <P@draigBrady.com>
1898
1899         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1900         reserved symbols starting with double underscore from the check.
1901
1902 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1903
1904         intprops: add doc
1905         * doc/intprops.texi: New file, documenting intprops.
1906         * doc/gnulib.texi (Particular Modules): Include it.
1907
1908         verify: add doc to gnulib manual and fix example
1909         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1910         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1911         (Compile-time Assertions): Fix example so it can't overflow.
1912
1913 2011-05-17  Jim Meyering  <meyering@redhat.com>
1914
1915         warnings.m4: don't usurp save_CPPFLAGS variable name
1916         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1917
1918         doc: fix typo
1919         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1920
1921 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1922             Bruno Haible  <bruno@clisp.org>
1923
1924         doc: Tweak recent change.
1925         * README (Portability guidelines): Tweak new text.
1926         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1927         Interix 6.1.
1928
1929 2011-05-16  Eric Blake  <eblake@redhat.com>
1930
1931         inttypes: avoid autoconf warning
1932         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1933         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1934
1935 2011-05-16  Sam Steingold <sds@gnu.org>
1936         and Eric Blake  <eblake@redhat.com>
1937
1938         vc-list-files: accept multiple directory operands
1939         * build-aux/vc-list-files: Iterate over all remaining operands.
1940
1941 2011-05-16  Bruno Haible  <bruno@clisp.org>
1942
1943         Fix confusion regarding deprecated modules.
1944         * modules/calloc (Status, Notice): Mark module as deprecated, not
1945         obsolete.
1946         * modules/fnmatch-posix (Status, Notice): Likewise.
1947         * modules/getdate (Status, Notice): Likewise.
1948         * modules/getopt (Status, Notice): Likewise.
1949         * modules/malloc (Status, Notice): Likewise.
1950         * modules/pipe (Status, Notice): Likewise.
1951         * modules/realloc (Status, Notice): Likewise.
1952         * modules/rename-dest-slash (Status, Notice): Likewise.
1953         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1954         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1955         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1956         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1957         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1958
1959 2011-05-16  Bruno Haible  <bruno@clisp.org>
1960
1961         doc: List the target platforms.
1962         * doc/gnulib-intro.texi (Target Platforms): New section.
1963         * doc/gnulib.texi (Introduction): Update menu.
1964         * README (Portability guidelines): Refer to the new section. Update
1965         statement about oldest supported environment. Remove rationale why
1966         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1967         unportable C89 function.
1968         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1969         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1970
1971 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1972
1973         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1974
1975 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1976
1977         intprops-tests: new module
1978         * modules/intprops-tests, tests/test-intprops.c: New files.
1979
1980         intprops: add safe, portable integer overflow checking
1981         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1982         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1983         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1984         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1985         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1986         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1987         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1988         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1989         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1990         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1991         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1992
1993 2011-05-12  James Youngman  <jay@gnu.org>
1994
1995         Add a test for glibc's Bugzilla bug #12378.
1996         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1997         doesn't allow the literal matching of a lone "[" (which is
1998         required by POSIX).
1999         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2000
2001 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2002
2003         Sync glibc change fixing Bugzilla bug #12378.
2004         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2005         beginning and fall back to matching as normal character if the
2006         string ends before the matching ']' is found.  This is what POSIX
2007         requires.
2008
2009 2011-05-13  Eric Blake  <eblake@redhat.com>
2010
2011         getcwd-lgpl: relax test for FreeBSD
2012         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2013         issue.
2014         * tests/test-getcwd-lgpl.c (main): Relax test.
2015         Reported by Matthias Bolte.
2016
2017 2011-05-11  Eric Blake  <eblake@redhat.com>
2018
2019         test-fflush: silence compiler warning
2020         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2021
2022 2011-05-11  Bruno Haible  <bruno@clisp.org>
2023
2024         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2025         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2026         * modules/canonicalize (Depends-on): Add 'nocrash'.
2027         * modules/canonicalize-lgpl (Depends-on): Likewise.
2028         * doc/posix-functions/realpath.texi: Update platforms list.
2029         Reported by Ryan Schmidt <ryandesign@macports.org>.
2030
2031 2011-05-11  Bruno Haible  <bruno@clisp.org>
2032
2033         group-member: Declare function in <unistd.h>.
2034         * lib/unistd.in.h (group_member): New declaration.
2035         * lib/group-member.h: Remove file.
2036         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2037         * tests/test-unistd-c++.cc: Check signature of group_member.
2038         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2039         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2040         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2041         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2042         HAVE_GROUP_MEMBER.
2043         * modules/group-member (Files): Remove lib/group-member.h.
2044         (Depends-on): Add unistd. Specify conditions.
2045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2046         (Include): Change to <unistd.h>.
2047         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2048         HAVE_GROUP_MEMBER.
2049         * NEWS: Mention the change.
2050         * lib/euidaccess.c: Don't include group-member.h.
2051
2052 2011-05-11  Bruno Haible  <bruno@clisp.org>
2053
2054         group-member: Document module.
2055         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2056         module.
2057
2058 2011-05-11  Bruno Haible  <bruno@clisp.org>
2059
2060         fclose: Fix mistake earlier today.
2061         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2062
2063 2011-05-11  Eric Blake  <eblake@redhat.com>
2064
2065         fclose: preserve fflush errors
2066         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2067         Reported by Jim Meyering.
2068
2069         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2070         * build-aux/bootstrap (check_versions): When no specific version
2071         is required, merely check that the app produces an exit status
2072         that indicates its existence.
2073
2074         maint.mk: drop redundant check
2075         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2076         the same but better.
2077
2078 2011-05-11  Bruno Haible  <bruno@clisp.org>
2079
2080         fclose: Fix possible link error.
2081         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2082         unregister_shadow_fd. Improve comments.
2083         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2084         Eric Blake.
2085
2086 2011-05-11  Jim Meyering  <meyering@redhat.com>
2087
2088         maint.mk: improve "can not" detection and generalize rule name
2089         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2090         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2091         Use the same technique as in sc_prohibit_doubled_word, so that
2092         we recognize "can not" also when the words are separated by a newline.
2093         Suggested by Eric Blake.
2094         (perl_filename_lineno_text_): Define.  Factored out of...
2095         (prohibit_doubled_word_): ...here.  Use the new definition.
2096         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2097         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2098         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2099
2100 2011-05-10  Eric Blake  <eblake@redhat.com>
2101
2102         fclose: avoid double close race when possible
2103         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2104         all but WINDOWS_SOCKETS.
2105
2106 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2107
2108         openat: correct new comment
2109         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2110
2111 2011-05-10  Jim Meyering  <meyering@redhat.com>
2112
2113         openat: add comments
2114         * lib/openat-proc.c (openat_proc_name): Add comments,
2115         mostly from Eric Blake.
2116
2117 2011-05-09  Eric Blake  <eblake@redhat.com>
2118
2119         openat: reduce syscalls in first probe of /proc
2120         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2121         be a directory.  Simplify the probe for .. bugs.
2122         * modules/openat (Depends-on): Drop same-inode.
2123         Reported by Bastien ROUCARIES.
2124
2125 2011-05-09  Jim Meyering  <meyering@redhat.com>
2126
2127         maint.mk: change semantics/name of tight_scope variables
2128         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2129         Rename variables to align with semantics that make them more useful.
2130
2131         maint.mk: tweak new rule's name not to impinge
2132         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2133         (sc_tight_scope): Use new rule name rather than $@-0.
2134
2135         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2136         * top/maint.mk (sc_tight_scope): New rule.
2137         (sc_tight_scope-0): New rule, ifdef'd out.
2138         (_gl_TS_dir): Default.
2139         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2140         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2141
2142 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2143
2144         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2145         Haible <bruno@clisp.org>.
2146
2147 2011-05-08  Bruno Haible  <bruno@clisp.org>
2148
2149         Comments.
2150         * m4/isnanf.m4: Add comment.
2151         * m4/isnanl.m4: Likewise.
2152
2153 2011-05-08  Bruno Haible  <bruno@clisp.org>
2154
2155         glob: Remove obsolete macro.
2156         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2157
2158 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         intprops: Sun C 5.11 supports __typeof__
2161         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2162         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2163         which is new.
2164         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2165
2166         intprops: switch to usual gnulib indenting and naming
2167         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2168         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2169
2170         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2171
2172 2011-05-08  Jim Meyering  <meyering@redhat.com>
2173
2174         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2175         * top/maint.mk (release-prep): Use make's --no-print-directory
2176         option when generating the announcement.  This eliminates the
2177         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2178         generated announcement template.
2179
2180 2011-05-08  Bruno Haible  <bruno@clisp.org>
2181
2182         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2183         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2184         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2185
2186 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2187
2188         ignore-value, verify: Omit include files from lib_SOURCES.
2189         * modules/ignore-value, modules/verify (Makefile.am):
2190         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2191         that leads Automake to duplicate use of am__objects_... variables
2192         in Makefile.in.  See
2193         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2194
2195 2011-05-07  Bruno Haible  <bruno@clisp.org>
2196
2197         fclose: Simplify autoconf macro.
2198         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2199         defined.
2200
2201 2011-05-07  Bruno Haible  <bruno@clisp.org>
2202
2203         canonicalize-lgpl: Fix autoconf macro ordering bug.
2204         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2205         gl_STDLIB_H_DEFAULTS.
2206
2207 2011-05-06  Eric Blake  <eblake@redhat.com>
2208
2209         maintainer-makefile: make sc_po_check easier to tune
2210         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2211         to probe for strings, such as an alternate location for gnulib.
2212
2213         fclose: guarantee behavior on seekable stdin
2214         * modules/fclose (Depends-on): Add fflush.
2215         * doc/posix-functions/fclose.texi (fclose): Document this.
2216         * tests/test-fclose.c (main): Make test for this unconditional.
2217
2218 2011-05-06  Bruno Haible  <bruno@clisp.org>
2219
2220         fflush, fpurge: Relicense under LGPLv2+.
2221         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2222         * modules/fpurge (License): Likewise.
2223         With permission from Eric Blake and Jim Meyering.
2224         Suggested by Eric Blake.
2225
2226 2011-05-06  Karl Berry  <karl@gnu.org>
2227
2228         * MODULES.html.sh (func_all_modules): remove exit.
2229
2230 2011-05-06  Jim Meyering  <meyering@redhat.com>
2231
2232         maint.mk: use info-gnu@ as the default only for a stable release
2233         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2234         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2235         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2236         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2237
2238 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2239
2240         assert-h: new module, which supports C1X-style static_assert
2241         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2242         * lib/verify.h: Revamp so that this can be copied into assert.h,
2243         while retaining the ability to use it standalone as before.
2244         Rename private identifiers so as not to encroach on the
2245         standard C namespace, since this is now used by assert.h.
2246         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2247         the old verify_true.
2248         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2249         the old verify_true.  Use _GL_VERIFY_TYPE.
2250         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2251         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2252         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2253         defined when this file is copied into the replacement assert.h.
2254         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2255         and _Static_assert is not built in.
2256         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2257         defined, and use the new macros mentioned above.
2258         * doc/posix-headers/assert.texi: Document this.
2259
2260 2011-05-05  Bruno Haible  <bruno@clisp.org>
2261
2262         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2263         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2264         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2265         gl_REPLACE_FCLOSE here.
2266         * modules/fflush (Depends-on): Remove fclose.
2267         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2268         combination with module 'fclose'.
2269
2270 2011-05-05  Bruno Haible  <bruno@clisp.org>
2271
2272         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2273         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2274         gl_FUNC_FFLUSH.
2275         (gl_FUNC_FFLUSH): Use it.
2276         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2277         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2278         gl_REPLACE_FSEEKO here.
2279
2280 2011-05-05  Bruno Haible  <bruno@clisp.org>
2281
2282         tzset: Relicense under LGPL.
2283         * modules/tzset (License): Change to LGPL.
2284         No agreement needed; it's a no-op.
2285
2286         strtoimax, strtoumax: Relicense under LGPL.
2287         * modules/strtoimax (License): Change to LGPL.
2288         * modules/strtoumax (License): Likewise.
2289         With permission from Jim Meyering, Paul Eggert:
2290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2292
2293         getgroups: Relicense under LGPL.
2294         * modules/getgroups (License): Change to LGPL.
2295         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2299
2300         nanosleep: Relicense under LGPL.
2301         * modules/nanosleep (License): Change to LGPL.
2302         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2303         Haible:
2304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2308
2309         futimens: Relicense under LGPL.
2310         * modules/futimens (License): Change to LGPL.
2311         With permission from Eric Blake:
2312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2313
2314         fflush: Relicense under LGPL.
2315         * modules/fflush (License): Change to LGPL.
2316         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2320
2321         tmpfile: Relicense under LGPL.
2322         * modules/tmpfile (License): Change to LGPL.
2323         With permission from Ben Pfaff:
2324         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2325
2326         isfinite: Relicense under LGPL.
2327         * modules/isfinite (License): Change to LGPL.
2328         With permission from Ben Pfaff, Bruno Haible:
2329         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2331
2332         acosl..tanl: Relicense under LGPL.
2333         * modules/acosl (License): Change to LGPL.
2334         * modules/asinl (License): Likewise.
2335         * modules/atanl (License): Likewise.
2336         * modules/cosl (License): Likewise.
2337         * modules/expl (License): Likewise.
2338         * modules/logl (License): Likewise.
2339         * modules/sinl (License): Likewise.
2340         * modules/sqrtl (License): Likewise.
2341         * modules/tanl (License): Likewise.
2342         Source code originally from glibc and Paolo Bonzini. Agreements:
2343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2345
2346 2011-05-05  Bruno Haible  <bruno@clisp.org>
2347
2348         signal: Define sighandler_t.
2349         * lib/signal.in.h (sighandler_t): New type.
2350         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2351         whether sighandler_t is defined.
2352         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2353         * modules/signal (Depends-on): Add extensions.
2354         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2355         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2356         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2357
2358 2011-05-05  Eric Blake  <eblake@redhat.com>
2359
2360         maint: remove useless REPLACE_*_H macros
2361         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2362         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2363         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2364         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2365         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2366         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2367         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2368         * m4/btowc.m4: Update callers.
2369         * m4/dirfd.m4: Likewise.
2370         * m4/duplocale.m4: Likewise.
2371         * m4/fchdir.m4: Likewise.
2372         * m4/fdopendir.m4: Likewise.
2373         * m4/inet_ntop.m4: Likewise.
2374         * m4/inet_pton.m4: Likewise.
2375         * m4/ioctl.m4: Likewise.
2376         * m4/mbrlen.m4: Likewise.
2377         * m4/mbrtowc.m4: Likewise.
2378         * m4/mbsinit.m4: Likewise.
2379         * m4/mbsnrtowcs.m4: Likewise.
2380         * m4/mbsrtowcs.m4: Likewise.
2381         * m4/poll.m4: Likewise.
2382         * m4/setlocale.m4: Likewise.
2383         * m4/wcrtomb.m4: Likewise.
2384         * m4/wcsnrtombs.m4: Likewise.
2385         * m4/wcsrtombs.m4: Likewise.
2386         * m4/wctob.m4: Likewise.
2387         * m4/wcwidth.m4: Likewise.
2388         * modules/posix_spawn: Likewise.
2389         * modules/posix_spawn_file_actions_addclose: Likewise.
2390         * modules/posix_spawn_file_actions_adddup2: Likewise.
2391         * modules/posix_spawn_file_actions_addopen: Likewise.
2392         * modules/posix_spawn_file_actions_destroy: Likewise.
2393         * modules/posix_spawn_file_actions_init: Likewise.
2394         * modules/posix_spawnattr_destroy: Likewise.
2395         * modules/posix_spawnattr_getflags: Likewise.
2396         * modules/posix_spawnattr_getpgroup: Likewise.
2397         * modules/posix_spawnattr_getschedparam: Likewise.
2398         * modules/posix_spawnattr_getschedpolicy: Likewise.
2399         * modules/posix_spawnattr_getsigdefault: Likewise.
2400         * modules/posix_spawnattr_getsigmask: Likewise.
2401         * modules/posix_spawnattr_init: Likewise.
2402         * modules/posix_spawnattr_setflags: Likewise.
2403         * modules/posix_spawnattr_setpgroup: Likewise.
2404         * modules/posix_spawnattr_setschedparam: Likewise.
2405         * modules/posix_spawnattr_setschedpolicy: Likewise.
2406         * modules/posix_spawnattr_setsigdefault: Likewise.
2407         * modules/posix_spawnattr_setsigmask: Likewise.
2408         * modules/posix_spawnp: Likewise.
2409
2410 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2411
2412         Add option to do-release-commit-and-tag to specify branch.
2413         * build-aux/do-release-commit-and-tag: Add --branch.
2414
2415 2011-05-03  Bruno Haible  <bruno@clisp.org>
2416
2417         Avoid unnecessary compilation units, through conditional dependencies.
2418         * modules/accept (Depends-on): Add conditions to the dependencies.
2419         * modules/acosl (Depends-on): Likewise.
2420         * modules/argz (Depends-on): Likewise.
2421         * modules/asinl (Depends-on): Likewise.
2422         * modules/atanl (Depends-on): Likewise.
2423         * modules/atoll (Depends-on): Likewise.
2424         * modules/bind (Depends-on): Likewise.
2425         * modules/btowc (Depends-on): Likewise.
2426         * modules/canonicalize-lgpl (Depends-on): Likewise.
2427         * modules/ceil (Depends-on): Likewise.
2428         * modules/ceilf (Depends-on): Likewise.
2429         * modules/ceill (Depends-on): Likewise.
2430         * modules/chdir-long (Depends-on): Likewise.
2431         * modules/chown (Depends-on): Likewise.
2432         * modules/close (Depends-on): Likewise.
2433         * modules/connect (Depends-on): Likewise.
2434         * modules/cosl (Depends-on): Likewise.
2435         * modules/dirfd (Depends-on): Likewise.
2436         * modules/dprintf (Depends-on): Likewise.
2437         * modules/dprintf-posix (Depends-on): Likewise.
2438         * modules/error (Depends-on): Likewise.
2439         * modules/euidaccess (Depends-on): Likewise.
2440         * modules/expl (Depends-on): Likewise.
2441         * modules/faccessat (Depends-on): Likewise.
2442         * modules/fchdir (Depends-on): Likewise.
2443         * modules/fclose (Depends-on): Likewise.
2444         * modules/fcntl (Depends-on): Likewise.
2445         * modules/fdopendir (Depends-on): Likewise.
2446         * modules/fflush (Depends-on): Likewise.
2447         * modules/floor (Depends-on): Likewise.
2448         * modules/floorf (Depends-on): Likewise.
2449         * modules/floorl (Depends-on): Likewise.
2450         * modules/fnmatch (Depends-on): Likewise.
2451         * modules/fopen (Depends-on): Likewise.
2452         * modules/fprintf-posix (Depends-on): Likewise.
2453         * modules/frexp (Depends-on): Likewise.
2454         * modules/frexp-nolibm (Depends-on): Likewise.
2455         * modules/frexpl (Depends-on): Likewise.
2456         * modules/frexpl-nolibm (Depends-on): Likewise.
2457         * modules/fseek (Depends-on): Likewise.
2458         * modules/fsusage (Depends-on): Likewise.
2459         * modules/ftell (Depends-on): Likewise.
2460         * modules/ftello (Depends-on): Likewise.
2461         * modules/futimens (Depends-on): Likewise.
2462         * modules/getcwd (Depends-on): Likewise.
2463         * modules/getcwd-lgpl (Depends-on): Likewise.
2464         * modules/getdelim (Depends-on): Likewise.
2465         * modules/getdomainname (Depends-on): Likewise.
2466         * modules/getgroups (Depends-on): Likewise.
2467         * modules/gethostname (Depends-on): Likewise.
2468         * modules/getline (Depends-on): Likewise.
2469         * modules/getlogin_r (Depends-on): Likewise.
2470         * modules/getopt-posix (Depends-on): Likewise.
2471         * modules/getpeername (Depends-on): Likewise.
2472         * modules/getsockname (Depends-on): Likewise.
2473         * modules/getsockopt (Depends-on): Likewise.
2474         * modules/getsubopt (Depends-on): Likewise.
2475         * modules/getusershell (Depends-on): Likewise.
2476         * modules/glob (Depends-on): Likewise.
2477         * modules/grantpt (Depends-on): Likewise.
2478         * modules/iconv_open (Depends-on): Likewise.
2479         * modules/iconv_open-utf (Depends-on): Likewise.
2480         * modules/inet_ntop (Depends-on): Likewise.
2481         * modules/inet_pton (Depends-on): Likewise.
2482         * modules/ioctl (Depends-on): Likewise.
2483         * modules/isapipe (Depends-on): Likewise.
2484         * modules/isfinite (Depends-on): Likewise.
2485         * modules/isinf (Depends-on): Likewise.
2486         * modules/lchown (Depends-on): Likewise.
2487         * modules/ldexpl (Depends-on): Likewise.
2488         * modules/link (Depends-on): Likewise.
2489         * modules/linkat (Depends-on): Likewise.
2490         * modules/listen (Depends-on): Likewise.
2491         * modules/logl (Depends-on): Likewise.
2492         * modules/lstat (Depends-on): Likewise.
2493         * modules/mbrlen (Depends-on): Likewise.
2494         * modules/mbrtowc (Depends-on): Likewise.
2495         * modules/mbsinit (Depends-on): Likewise.
2496         * modules/mbsnrtowcs (Depends-on): Likewise.
2497         * modules/mbsrtowcs (Depends-on): Likewise.
2498         * modules/mbtowc (Depends-on): Likewise.
2499         * modules/memcmp (Depends-on): Likewise.
2500         * modules/mkdir (Depends-on): Likewise.
2501         * modules/mkdtemp (Depends-on): Likewise.
2502         * modules/mkfifo (Depends-on): Likewise.
2503         * modules/mkfifoat (Depends-on): Likewise.
2504         * modules/mknod (Depends-on): Likewise.
2505         * modules/mkostemp (Depends-on): Likewise.
2506         * modules/mkostemps (Depends-on): Likewise.
2507         * modules/mkstemp (Depends-on): Likewise.
2508         * modules/mkstemps (Depends-on): Likewise.
2509         * modules/mktime (Depends-on): Likewise.
2510         * modules/nanosleep (Depends-on): Likewise.
2511         * modules/open (Depends-on): Likewise.
2512         * modules/openat (Depends-on): Likewise.
2513         * modules/perror (Depends-on): Likewise.
2514         * modules/poll (Depends-on): Likewise.
2515         * modules/popen (Depends-on): Likewise.
2516         * modules/posix_spawn (Depends-on): Likewise.
2517         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2518         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2519         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2520         * modules/posix_spawnp (Depends-on): Likewise.
2521         * modules/pread (Depends-on): Likewise.
2522         * modules/printf-posix (Depends-on): Likewise.
2523         * modules/ptsname (Depends-on): Likewise.
2524         * modules/putenv (Depends-on): Likewise.
2525         * modules/pwrite (Depends-on): Likewise.
2526         * modules/readline (Depends-on): Likewise.
2527         * modules/readlink (Depends-on): Likewise.
2528         * modules/readlinkat (Depends-on): Likewise.
2529         * modules/recv (Depends-on): Likewise.
2530         * modules/recvfrom (Depends-on): Likewise.
2531         * modules/regex (Depends-on): Likewise.
2532         * modules/remove (Depends-on): Likewise.
2533         * modules/rename (Depends-on): Likewise.
2534         * modules/renameat (Depends-on): Likewise.
2535         * modules/rmdir (Depends-on): Likewise.
2536         * modules/round (Depends-on): Likewise.
2537         * modules/roundf (Depends-on): Likewise.
2538         * modules/roundl (Depends-on): Likewise.
2539         * modules/rpmatch (Depends-on): Likewise.
2540         * modules/select (Depends-on): Likewise.
2541         * modules/send (Depends-on): Likewise.
2542         * modules/sendto (Depends-on): Likewise.
2543         * modules/setenv (Depends-on): Likewise.
2544         * modules/setlocale (Depends-on): Likewise.
2545         * modules/setsockopt (Depends-on): Likewise.
2546         * modules/shutdown (Depends-on): Likewise.
2547         * modules/sigaction (Depends-on): Likewise.
2548         * modules/signbit (Depends-on): Likewise.
2549         * modules/sigprocmask (Depends-on): Likewise.
2550         * modules/sinl (Depends-on): Likewise.
2551         * modules/sleep (Depends-on): Likewise.
2552         * modules/snprintf (Depends-on): Likewise.
2553         * modules/snprintf-posix (Depends-on): Likewise.
2554         * modules/socket (Depends-on): Likewise.
2555         * modules/sprintf-posix (Depends-on): Likewise.
2556         * modules/sqrtl (Depends-on): Likewise.
2557         * modules/stat (Depends-on): Likewise.
2558         * modules/strchrnul (Depends-on): Likewise.
2559         * modules/strdup-posix (Depends-on): Likewise.
2560         * modules/strerror (Depends-on): Likewise.
2561         * modules/strerror_r-posix (Depends-on): Likewise.
2562         * modules/strndup (Depends-on): Likewise.
2563         * modules/strnlen (Depends-on): Likewise.
2564         * modules/strptime (Depends-on): Likewise.
2565         * modules/strsep (Depends-on): Likewise.
2566         * modules/strsignal (Depends-on): Likewise.
2567         * modules/strstr-simple (Depends-on): Likewise.
2568         * modules/strtod (Depends-on): Likewise.
2569         * modules/strtoimax (Depends-on): Likewise.
2570         * modules/strtok_r (Depends-on): Likewise.
2571         * modules/strtoumax (Depends-on): Likewise.
2572         * modules/symlink (Depends-on): Likewise.
2573         * modules/symlinkat (Depends-on): Likewise.
2574         * modules/tanl (Depends-on): Likewise.
2575         * modules/tcgetsid (Depends-on): Likewise.
2576         * modules/tmpfile (Depends-on): Likewise.
2577         * modules/trunc (Depends-on): Likewise.
2578         * modules/truncf (Depends-on): Likewise.
2579         * modules/truncl (Depends-on): Likewise.
2580         * modules/uname (Depends-on): Likewise.
2581         * modules/unlink (Depends-on): Likewise.
2582         * modules/unlockpt (Depends-on): Likewise.
2583         * modules/unsetenv (Depends-on): Likewise.
2584         * modules/usleep (Depends-on): Likewise.
2585         * modules/utimensat (Depends-on): Likewise.
2586         * modules/vasprintf (Depends-on): Likewise.
2587         * modules/vdprintf (Depends-on): Likewise.
2588         * modules/vdprintf-posix (Depends-on): Likewise.
2589         * modules/vfprintf-posix (Depends-on): Likewise.
2590         * modules/vprintf-posix (Depends-on): Likewise.
2591         * modules/vsnprintf (Depends-on): Likewise.
2592         * modules/vsnprintf-posix (Depends-on): Likewise.
2593         * modules/vsprintf-posix (Depends-on): Likewise.
2594         * modules/wcrtomb (Depends-on): Likewise.
2595         * modules/wcscasecmp (Depends-on): Likewise.
2596         * modules/wcscspn (Depends-on): Likewise.
2597         * modules/wcsdup (Depends-on): Likewise.
2598         * modules/wcsncasecmp (Depends-on): Likewise.
2599         * modules/wcsnrtombs (Depends-on): Likewise.
2600         * modules/wcspbrk (Depends-on): Likewise.
2601         * modules/wcsrtombs (Depends-on): Likewise.
2602         * modules/wcsspn (Depends-on): Likewise.
2603         * modules/wcsstr (Depends-on): Likewise.
2604         * modules/wcstok (Depends-on): Likewise.
2605         * modules/wcswidth (Depends-on): Likewise.
2606         * modules/wctob (Depends-on): Likewise.
2607         * modules/wctomb (Depends-on): Likewise.
2608         * modules/wctype (Depends-on): Likewise.
2609         * modules/wcwidth (Depends-on): Likewise.
2610         * modules/write (Depends-on): Likewise.
2611
2612 2011-05-03  Bruno Haible  <bruno@clisp.org>
2613
2614         Support for conditional dependencies.
2615         * doc/gnulib.texi (Module description): Document the syntax of
2616         conditional dependencies.
2617         * gnulib-tool: New option --conditional-dependencies.
2618         (func_usage): Document it.
2619         (cond_dependencies): New variable.
2620         (func_get_automake_snippet_conditional,
2621         func_get_automake_snippet_unconditional): New functions, extracted from
2622         func_get_automake_snippet.
2623         (func_get_automake_snippet): Use them.
2624         (sed_first_32_chars): New variable.
2625         (func_module_shellfunc_name): New function.
2626         (func_module_shellvar_name): New function.
2627         (func_module_conditional_name): New function.
2628         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2629         func_cond_module_condition): New functions.
2630         (func_modules_transitive_closure): Add support for conditional
2631         dependencies.
2632         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2633         conditional automake snippet in an automake conditional.
2634         (func_emit_autoconf_snippets): Emit shell functions that contain the
2635         code for conditional modules.
2636         (func_import, func_create_testdir): Update specification.
2637
2638 2011-05-03  Eric Blake  <eblake@redhat.com>
2639
2640         test-getaddrinfo: report error information
2641         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2642
2643 2011-05-03  Jim Meyering  <meyering@redhat.com>
2644
2645         bootstrap: avoid build failure when $GZIP is set
2646         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2647         program name.  If defined at all, it is supposed to list gzip options.
2648         Reported by Alan Curry in http://debbugs.gnu.org/8609
2649
2650 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2651
2652         readme-release: new module with release instructions
2653         * modules/readme-release: New module.
2654         * top/README-release: New file, from coreutils, grep, diffutils.
2655         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2656
2657 2011-05-02  Eric Blake  <eblake@redhat.com>
2658
2659         fflush: also replace fclose when fixing fflush
2660         * modules/fflush (Depends-on): Add fclose.
2661         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2662         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2663         memstreams with no backing fd.
2664         * doc/posix-functions/fclose.texi (fclose): Document the use of
2665         fflush module to fix the bug.
2666         * tests/test-fclose.c (main): Relax test when fclose is used in
2667         isolation.
2668
2669         fclose: add some tests
2670         * modules/fclose-tests: New test module.
2671         * tests/test-fclose.c: New file.
2672         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2673
2674         fclose: reduced dependencies
2675         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2676         simpler lseek.
2677         * lib/fclose.c (rpl_fclose): Likewise.
2678         Reported by Simon Josefsson.
2679
2680         exit: drop remaining clients
2681         * modules/argmatch (Depends-on): Replace exit with stdlib.
2682         * modules/copy-file (Depends-on): Likewise.
2683         * modules/execute (Depends-on): Likewise.
2684         * modules/exitfail (Depends-on): Likewise.
2685         * modules/obstack (Depends-on): Likewise.
2686         * modules/pagealign_alloc (Depends-on): Likewise.
2687         * modules/pipe-filter-gi (Depends-on): Likewise.
2688         * modules/pipe-filter-ii (Depends-on): Likewise.
2689         * modules/savewd (Depends-on): Likewise.
2690         * modules/spawn-pipe (Depends-on): Likewise.
2691         * modules/wait-process (Depends-on): Likewise.
2692         * modules/xsetenv (Depends-on): Likewise.
2693         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2694         * modules/git-merge-changelog (Depends-on): Likewise.
2695         * modules/long-options (Depends-on): Likewise.
2696         * modules/pt_chown (Depends-on): Likewise.
2697         * modules/sysexits (Depends-on): Likewise.
2698
2699         freading: relax license from LGPLv3+ to LGPLv2+
2700         * modules/freading (License): Relax LGPL version.
2701
2702 2011-05-02  Bruno Haible  <bruno@clisp.org>
2703
2704         fchdir: Remove unused dependencies.
2705         * modules/fchdir (Depends-on): Remove include_next.
2706
2707 2011-05-02  Bruno Haible  <bruno@clisp.org>
2708
2709         gnulib-tool: Refactor.
2710         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2711         from func_emit_autoconf_snippets.
2712         (func_emit_autoconf_snippets): Use it.
2713
2714 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2715
2716         * NEWS: Document removal of 'exit'.
2717         * modules/exit: Remove file.
2718
2719 2011-05-01  Bruno Haible  <bruno@clisp.org>
2720
2721         Update DEPENDENCIES.
2722         * DEPENDENCIES (gettext): Recommend the newest release.
2723         Reported by Simon Josefsson.
2724
2725 2011-05-01  Bruno Haible  <bruno@clisp.org>
2726
2727         gnulib-tool: Reduce code duplication.
2728         * gnulib-tool (func_emit_autoconf_snippets): New function.
2729         (func_import, func_create_testdir): Use it.
2730
2731 2011-04-30  Eric Blake  <eblake@redhat.com>
2732
2733         fclose: don't fail on non-seekable input stream
2734         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2735         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2736         since fflush is allowed to fail in that case.
2737
2738 2011-04-30  Bruno Haible  <bruno@clisp.org>
2739
2740         dup3: cleanup
2741         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2742
2743 2011-04-30  Bruno Haible  <bruno@clisp.org>
2744
2745         netdb: Make it work in C++ mode.
2746         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2747         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2748         module.
2749         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2750         gl_MODULE_INDICATOR_FOR_TESTS.
2751         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2752         * modules/netdb-c++-tests: New file.
2753         * tests/test-netdb-c++.cc: New file.
2754
2755 2011-04-30  Bruno Haible  <bruno@clisp.org>
2756
2757         New modules 'vfscanf', 'vscanf'.
2758         * modules/vfscanf: New file.
2759         * modules/vscanf: New file.
2760         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2761         here.
2762         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2763         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2764
2765 2011-04-30  Bruno Haible  <bruno@clisp.org>
2766
2767         passfd: Add comments.
2768         * lib/passfd.c: Add comments about platforms.
2769
2770 2011-04-30  Bruno Haible  <bruno@clisp.org>
2771
2772         sys_uio: Make <sys/uio.h> self-contained.
2773         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2774         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2775
2776 2011-04-30  Bruno Haible  <bruno@clisp.org>
2777
2778         sys_socket: Ensure 'struct iovec' definition.
2779         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2780         <sys/socket.h>.
2781         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2782
2783 2011-04-30  Bruno Haible  <bruno@clisp.org>
2784
2785         sys_uio: Protect definition of 'struct iovec'.
2786         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2787         it as a C struct.
2788
2789 2011-04-30  Bruno Haible  <bruno@clisp.org>
2790
2791         manywarnings: fix indentation
2792         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2793
2794 2011-04-30  Pádraig Brady <P@draigBrady.com>
2795
2796         manywarnings: add -Wno-missing-field-initializers if needed.
2797         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2798         option if it's needed to allow initialization with { 0, }
2799
2800 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2801
2802         announce-gen: cosmetic improvement
2803         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2804
2805 2011-04-29  Jim Meyering  <meyering@redhat.com>
2806
2807         vc-list-files: indent with spaces, not TABs
2808         * build-aux/vc-list-files: Convert leading TABs to spaces,
2809         to match the style of most other files in gnulib.
2810
2811         announce-gen: indent with spaces, not TABs
2812         * build-aux/announce-gen: Convert all TABs to spaces, to match
2813         the style of most other files in gnulib.
2814
2815 2011-04-29  Eric Blake  <eblake@redhat.com>
2816
2817         quotearg: avoid uninitialized variable use
2818         * lib/quotearg.c (quoting_options_from_style): Initialize
2819         remaining fields, and ensure that custom styles are only used via
2820         quoting_options rather than quoting_style.
2821
2822 2011-04-29  Jim Meyering  <meyering@redhat.com>
2823
2824         maint.mk: remove unused VC-tag variable
2825         * top/maint.mk (VC-tag): Remove unused variable.
2826
2827 2011-04-29  Bruno Haible  <bruno@clisp.org>
2828
2829         netdb: fix gai_strerror replacements
2830         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2831         * modules/netdb: Substitute it.
2832
2833 2011-04-29  Jim Meyering  <meyering@redhat.com>
2834
2835         test-getcwd.c: avoid new set-but-not-used warning
2836         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2837         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2838         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2839         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2840
2841         test-hash.c: avoid a new shadowing warning
2842         * tests/test-hash.c (main): Don't shadow "dup".
2843
2844 2011-04-28  Eric Blake  <eblake@redhat.com>
2845
2846         getaddrinfo: fix gai_strerror signature
2847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2848         and work around mingw with UNICODE defined.
2849         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2850         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2851         * modules/netdb (Makefile.am): Substitute it.
2852         * lib/netdb.in.h (gai_strerror): Declare replacement.
2853         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2854         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2855         the fix.
2856
2857         getsockopt: avoid compiler warning
2858         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2859         Reported by Matthias Bolte.
2860
2861         tests: drop unused link dependency
2862         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2863         * modules/dirent-safer-tests (Makefile.am): Likewise.
2864         * modules/fdopendir-tests (Makefile.am): Likewise.
2865         * modules/mkfifoat-tests (Makefile.am): Likewise.
2866         * modules/openat-safer-tests (Makefile.am): Likewise.
2867         * modules/openat-tests (Makefile.am): Likewise.
2868         * modules/readlinkat-tests (Makefile.am): Likewise.
2869         * modules/symlinkat-tests (Makefile.am): Likewise.
2870         * modules/linkat-tests (Makefile.am): Likewise.
2871         (Depends-on): Switch to filenamecat-lgpl.
2872         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2873         LIBINTL.
2874         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2875         * tests/test-linkat.c (main): Don't require xalloc.
2876
2877         hash, mgetgroups: drop xalloc dependency
2878         * lib/hash.c (includes): Adjust includes.
2879         * lib/mgetgroups.c (includes): Likewise.
2880         (xgetgroups): Move...
2881         * lib/xgetgroups.c: ...to new file.
2882         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2883         * modules/xgetgroups: New file, split from...
2884         * modules/mgetgroups: ...here.
2885         (Depends-on): Add xalloc-oversized.
2886         * modules/hash (Depends-on): Likewise.
2887         * modules/hash-tests (Depends-on): Drop xalloc.
2888         (test_hash_LDADD): Drop unused library.
2889         * tests/test-hash.c (main): Break xalloc dependency.
2890         (includes): Drop unused include.
2891
2892         xalloc-oversized: new module
2893         * modules/xalloc-oversized: New module.
2894         * modules/xalloc (Depends-on): Add it.
2895         * lib/xalloc.h (xalloc_oversized): Move...
2896         * lib/xalloc-oversized.h: ...into new file.
2897
2898         utimecmp: drop dependency on xmalloc
2899         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2900         due to memory pressure.
2901         * modules/utimecmp (Depends-on): Drop xalloc.
2902
2903 2011-04-27  Eric Blake  <eblake@redhat.com>
2904
2905         getcwd: fix mingw bugs
2906         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2907         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2908         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2909
2910 2011-04-27  Bruno Haible  <bruno@clisp.org>
2911
2912         mkstemps: Ensure declaration on MacOS X 10.5.
2913         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2914         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2915         MacOS X.
2916
2917 2011-04-27  Bruno Haible  <bruno@clisp.org>
2918
2919         mkstemp: More documentation.
2920         * doc/posix-functions/mkstemp.texi: Document header file problem on
2921         MacOS X.
2922
2923 2011-04-27  Bruno Haible  <bruno@clisp.org>
2924
2925         mkstemp: Tweak configure message when cross-compiling.
2926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2927         result as a guess.
2928
2929 2011-04-27  Bruno Haible  <bruno@clisp.org>
2930
2931         clean-temp: Clarify what it does.
2932         * lib/clean-temp.h: Add more comments.
2933         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2934         module.
2935         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2936         * doc/glibc-functions/mkstemps.texi: Likewise.
2937         * doc/glibc-functions/mkostemps.texi: Likewise.
2938
2939 2011-04-27  Eric Blake  <eblake@redhat.com>
2940
2941         fchdir: avoid extra chdir and fix test
2942         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2943         getcwd-lgpl.
2944         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2945         have to be canonical.
2946         (canonicalize_file_name): Drop unused macro.
2947         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2948
2949         filenamecat-lgpl: fix licence
2950         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2951         when it was first created.
2952
2953         linkat, renameat: add missing dependency
2954         * modules/linkat (Depends-on): Require getcwd-lgpl.
2955         * modules/renameat (Depends-on): Likewise.
2956
2957         tests: reduce dependencies
2958         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2959         * tests/test-renameat.c (main): Likewise.
2960         * modules/linkat-tests (Depends-on): Relax dependency.
2961         * modules/renameat-tests (Depends-on): Likewise.
2962         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2963         dependency explicit.
2964
2965         save-cwd: reduce default dependency
2966         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2967         * lib/save-cwd.c: Update comments.
2968         * NEWS: Document the semantic change.
2969
2970         getcwd: enhance tests
2971         * tests/test-getcwd-lgpl.c: New file, taken from...
2972         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2973         repeat long path stress tests from m4 probe.
2974         * modules/getcwd-lgpl-tests: New module.
2975         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2976         * m4/getcwd-abort-bug.m4: Update comment.
2977         * m4/getcwd-path-max.m4: Likewise.
2978
2979         getcwd-lgpl: new module
2980         * modules/getcwd-lgpl: New module.
2981         * lib/getcwd-lgpl.c: New file.
2982         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2983         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2984         * modules/getcwd (configure.ac): Set C witness.
2985         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2986
2987         getcwd: tweak comments
2988         * m4/getcwd-abort-bug.m4: Fix comments.
2989         * m4/getcwd-path-max.m4: Likewise.
2990         * m4/getcwd.m4: Likewise.
2991
2992 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2993         and Eric Blake  <eblake@redhat.com>
2994
2995         mkstemp: replace if system version uses wrong permissions
2996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2997         read/write mode bits set in file created by mkstemp.
2998         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2999
3000 2011-04-27  Eric Blake  <eblake@redhat.com>
3001
3002         passfd: avoid compiler warning
3003         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3004         Reported by Laine Stump.
3005
3006 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3007
3008         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3009         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3010
3011 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3012         and Eric Blake  <eblake@redhat.com>
3013
3014         mkstemp: mention clean-temp module
3015         * lib/mkstemp.c: Add comment.
3016         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3017
3018 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3019
3020         inttypes: also provide default values for 32-bit tests
3021         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3022         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3023
3024 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3025
3026         strtoumax: remove dependency on strtoimax
3027         This is like the strtoull change of yesterday.
3028         * modules/strtoumax (Files): Add lib/strtoimax.c.
3029         (Depends-on): Remove strtoimax and add verify.
3030
3031         inttypes-incomplete: new module
3032         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3033         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3034         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3035         of gl_INTTYPES_H.
3036         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3037         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3038         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3039         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3040         * modules/strtoumax, modules/xstrtol (Depends-on):
3041         Depend on inttypes-incomplete, not inttypes.
3042         * modules/inttypes-incomplete: New module, containing the contents
3043         of the old modules/inttypes module, except that the Files: section
3044         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3045         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3046         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3047         (Depends-on): Depend only on inttypes-incomplete.
3048         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3049
3050         inttypes: omit now-redundant strtoimax and strtoumax work
3051         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3052         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3053
3054         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3055         This supports apps that need pointers to strtoimax and strtoumax,
3056         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3057         nonexistent functions.  See
3058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3059         et seq.
3060         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3061         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3062         a macro.
3063         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3064
3065 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3066
3067         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3068
3069 2011-04-25  Bruno Haible  <bruno@clisp.org>
3070
3071         strtol, strtoul: Mark modules as obsolete.
3072         * modules/strtol (Status, Notice): New sections.
3073         * modules/strtoul (Status, Notice): New sections.
3074
3075 2011-04-25  Bruno Haible  <bruno@clisp.org>
3076
3077         strtod: Remove check for strtod, unless supporting old platforms.
3078         * modules/strtod-obsolete: New file.
3079         * m4/strtod-obsolete.m4: New file.
3080         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3081         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3082         * modules/strtod (Depends-on): Add strtod-obsolete.
3083         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3084
3085 2011-04-25  Bruno Haible  <bruno@clisp.org>
3086
3087         strcase: Make module obsolete.
3088         * modules/strcase (Status, Notice): New sections.
3089
3090 2011-04-25  Bruno Haible  <bruno@clisp.org>
3091
3092         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3093         * modules/dup2-obsolete: New file.
3094         * m4/dup2-obsolete.m4: New file.
3095         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3096         gl_FUNC_DUP2_OBSOLETE is not also defined.
3097         * modules/dup2 (Depends-on): Add dup2-obsolete.
3098         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3099
3100 2011-04-25  Bruno Haible  <bruno@clisp.org>
3101
3102         strnlen: Avoid memchr related link error on old obsolete platforms.
3103         * modules/memchr-obsolete: New file.
3104         * m4/memchr-obsolete.m4: New file.
3105         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3106         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3107         * modules/memchr (Depends-on): Add memchr-obsolete.
3108         * modules/strnlen (Depends-on): Likewise.
3109         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3110
3111 2011-04-25  Jim Meyering  <meyering@redhat.com>
3112
3113         maint.mk: makefile_at_at_check extend and clean up
3114         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3115         in addition to */Makefile.am.
3116         Exempt legitimate uses of @VAR@ notation, e.g.,
3117         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3118         Remove obsolete coreutils-specific comment.
3119         Prompted by discussion here:
3120         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3121
3122 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3123
3124         strtoul: remove dependency on strtol
3125         This is so that 'configure' need not check for strtol merely because
3126         the application needs strtoul.
3127         * modules/strtoul (Files): Add lib/strtol.c.
3128         (Depends-on): Remove strtol.
3129
3130         strtoull: remove dependency on strtoul
3131         This is like the strtoll change.
3132         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3133         (Depends-on): Remove strtoul.
3134
3135         strtoll: remove dependency on strtol
3136         This is so that 'configure' need not check for strtol merely because
3137         the application needs strtoll.
3138         * modules/strtoll (Files): Add lib/strtol.c.
3139         (Depends-on): Remove strtol.
3140
3141 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3142
3143         inttypes: Move some configure check to module 'imaxdiv'.
3144         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3145         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3146         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3147
3148 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3149
3150         inttypes: Move some configure check to module 'imaxabs'.
3151         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3152         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3153         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3154
3155 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3156
3157         inttypes: Remove configure tests that are not needed since 2009-12-31.
3158         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3159         gl_cv_header_working_inttypes_h.
3160
3161 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3162
3163         * modules/strnlen (Depends-on): Remove memchr.
3164         The strnlen implementation doesn't need the memchr module's fixes; see
3165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3166
3167         strtol: remove dependency on wchar
3168         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3169         * modules/strtol (Depends-on): Remove wchar.
3170
3171 2011-04-21  Eric Blake  <eblake@redhat.com>
3172
3173         passfd: fix test regression on Linux
3174         * modules/passfd-tests (configure.ac): Correct socketpair check.
3175
3176         passfd: speed up configure and drop unused code
3177         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3178         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3179         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3180         Instead of probing at configure for unix_scm_rights_bsd44_way,
3181         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3182         check to a struct member probe.
3183         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3184         (sendfd, recvfd): Update preprocessor checks.
3185         * modules/passfd (Files): Reflect rename, and drop unused file.
3186         (Depends-on): Drop unused dependency.
3187
3188         passfd: allow compilation on mingw
3189         * modules/sys_socket (Depends-on): Add sys_uio.
3190         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3191         iovec and a minimal struct msghdr.
3192         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3193         * tests/test-sys_socket.c (main): Enhance test.
3194         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3195         guaranteed to provide what we need.
3196         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3197         * modules/passfd-tests (Depends-on): Add sys_wait.
3198         * tests/test-passfd.c (main): Skip test on mingw, for now.
3199         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3200         partial 'struct msghdr' implementation.
3201
3202         sys_uio: new module
3203         * modules/sys_uio: New module.
3204         * modules/sys_uio-tests: Likewise.
3205         * lib/sys_uio.in.h: New file.
3206         * m4/sys_uio_h.m4: Likewise.
3207         * tests/test-sys_uio.c: Likewise.
3208         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3209         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3210
3211 2011-04-20  Jim Meyering  <meyering@redhat.com>
3212
3213         useless-if-before-free: avoid false-positive
3214         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3215         disjunct so that it too requires a terminating ";".  Without that,
3216         this script would identify as useless one statement from gcc that
3217         was not:
3218           if (aligned_ptr)
3219             free (((void **) aligned_ptr) [-1]);
3220
3221 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3222
3223         doc: update users.txt.
3224         * users.txt: Add barcode.
3225
3226 2011-04-19  Bruno Haible  <bruno@clisp.org>
3227
3228         ioctl: Remove link dependency on native Windows.
3229         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3230         (gl_close_fn, gl_ioctl_fn): New types.
3231         (struct fd_hook): Renamed from struct close_hook. Change type of
3232         private_close_fn field. Add private_ioctl_fn field.
3233         (close_hook_fn): Add parameter for primary close method.
3234         (execute_close_hooks, execute_all_close_hooks): Likewise.
3235         (ioctl_hook_fn): New type.
3236         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3237         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3238         argument.
3239         (unregister_fd_hook): Renamed from unregister_close_hook.
3240         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3241         Don't include <unistd.h>.
3242         (close): Remove undef.
3243         (anchor): Update.
3244         (execute_close_hooks): Add argument for primary close method.
3245         (execute_all_close_hooks): Likewise.
3246         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3247         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3248         argument. Allow each argument to be NULL.
3249         (unregister_fd_hook): Renamed from unregister_close_hook.
3250         * lib/close.c (rpl_close): Pass 'close' function pointer to
3251         execute_all_close_hooks.
3252         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3253         (primary_ioctl): New function.
3254         (ioctl): Don't call ioctlsocket here. Instead, call
3255         execute_all_ioctl_hooks.
3256         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3257         close method.
3258         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3259         (fd_sockets_hook): Renamed from close_sockets_hook.
3260         (gl_sockets_startup, gl_sockets_cleanup): Update.
3261         * modules/fd-hook: Renamed from modules/close-hook. Update.
3262         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3263         * modules/sockets (Depends-on): Likewise.
3264         * modules/ioctl (Depends-on): Add fd-hook.
3265         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3266         GNULIB_SOCKET.
3267
3268 2011-04-19  Bruno Haible  <bruno@clisp.org>
3269
3270         Move the support of O_NONBLOCK in open() to the 'open' module.
3271         * modules/nonblocking (Depends-on): Remove 'open'.
3272         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3273         gl_cv_have_open_O_NONBLOCK.
3274         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3275         O_NONBLOCK support.
3276         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3277
3278 2011-04-17  Bruno Haible  <bruno@clisp.org>
3279
3280         pipe2: Simplify code.
3281         * lib/pipe2.c (pipe2): Reduce code duplication.
3282
3283 2011-04-17  Bruno Haible  <bruno@clisp.org>
3284
3285         nonblocking: Add comment.
3286         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3287
3288 2011-04-17  Bruno Haible  <bruno@clisp.org>
3289
3290         nonblocking: Add tests for sockets.
3291         * tests/test-nonblocking-socket.sh: New file.
3292         * tests/test-nonblocking-socket-main.c: New file.
3293         * tests/test-nonblocking-socket-child.c: New file.
3294         * tests/test-nonblocking-socket.h: New file.
3295         * tests/socket-server.h: New file.
3296         * tests/socket-client.h: New file.
3297         * modules/nonblocking-socket-tests: New file.
3298         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3299
3300 2011-04-17  Bruno Haible  <bruno@clisp.org>
3301
3302         nonblocking: Add tests for pipes.
3303         * tests/test-nonblocking-pipe.sh: New file.
3304         * tests/test-nonblocking-pipe-main.c: New file.
3305         * tests/test-nonblocking-pipe-child.c: New file.
3306         * tests/test-nonblocking-pipe.h: New file.
3307         * tests/test-nonblocking-writer.h: New file.
3308         * tests/test-nonblocking-reader.h: New file.
3309         * tests/test-nonblocking-misc.h: New file.
3310         * modules/nonblocking-pipe-tests: New file.
3311         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3312
3313 2011-04-16  Bruno Haible  <bruno@clisp.org>
3314
3315         gettext: Clarify the needed programmer actions.
3316         * modules/gettext (Notice): New field.
3317         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3318
3319 2011-04-16  Bruno Haible  <bruno@clisp.org>
3320
3321         strchrnul: Tweak last commit.
3322         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3323         bug.
3324         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3325         as in _GL_FUNCDECL_SYS.
3326         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3327         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3328
3329 2011-04-15  Eric Blake  <eblake@redhat.com>
3330
3331         strchrnul: work around cygwin bug
3332         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3333         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3335         * modules/string (Makefile.am): Substitute it.
3336         * lib/string.in.h (strchrnul): Use it.
3337
3338 2011-04-15  Bruno Haible  <bruno@clisp.org>
3339
3340         Don't require lib/stdio-write.c when only module 'stdio' is used.
3341         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3342         invocation.
3343         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3344
3345 2011-04-14  Bruno Haible  <bruno@clisp.org>
3346
3347         Support non-blocking pipe I/O in read() on native Windows.
3348         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3349         (read): New declaration.
3350         * lib/read.c: New file.
3351         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3352         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3353         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3354         vscanf): New declarations.
3355         * lib/stdio-read.c: New file.
3356         * m4/read.m4: New file.
3357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3358         REPLACE_READ.
3359         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3360         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3361         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3362         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3363         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3364         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3365         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3366         * modules/read: New file.
3367         * modules/nonblocking (Files): Add lib/stdio-read.c.
3368         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3369         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3370         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3371         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3372         * modules/pread (Depends-on): Add read.
3373         * modules/safe-read (Depends-on): Likewise.
3374         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3375         gets, scanf, vfscanf, vscanf): Verify signatures.
3376         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3377         problem with non-blocking pipes.
3378         * doc/posix-functions/fgetc.texi: Likewise.
3379         * doc/posix-functions/fgets.texi: Likewise.
3380         * doc/posix-functions/fread.texi: Likewise.
3381         * doc/posix-functions/fscanf.texi: Likewise.
3382         * doc/posix-functions/getc.texi: Likewise.
3383         * doc/posix-functions/getchar.texi: Likewise.
3384         * doc/posix-functions/gets.texi: Likewise.
3385         * doc/posix-functions/scanf.texi: Likewise.
3386         * doc/posix-functions/vfscanf.texi: Likewise.
3387         * doc/posix-functions/vscanf.texi: Likewise.
3388
3389 2011-04-14  Bruno Haible  <bruno@clisp.org>
3390
3391         Support non-blocking pipe I/O in write() on native Windows.
3392         * lib/write.c (rpl_write): Split a write request that failed merely
3393         because the byte count was larger than the pipe buffer's size.
3394         * doc/posix-functions/write.texi: Mention the problem with large byte
3395         counts.
3396
3397 2011-04-14  Bruno Haible  <bruno@clisp.org>
3398
3399         wchar: Ensure that wchar_t gets defined on uClibc.
3400         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3401         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3402
3403 2011-04-13  Bruno Haible  <bruno@clisp.org>
3404
3405         safe-write, full-read: Avoid unnecessary compilation units.
3406         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3407         (Depends-on): Remove safe-read. Add ssize_t.
3408         * modules/full-read (Files): Add lib/full-write.c.
3409         (Depends-on): Add full-write.
3410
3411 2011-04-13  Bruno Haible  <bruno@clisp.org>
3412
3413         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3414         * modules/pwrite (Depends-on): Add 'write'.
3415
3416 2011-04-13  Bruno Haible  <bruno@clisp.org>
3417
3418         Support non-blocking pipe I/O in write() on native Windows.
3419         * lib/unistd.in.h (write): Enable replacement also if
3420         GNULIB_UNISTD_H_NONBLOCKING is 1.
3421         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3422         (rpl_write): When failing to write on a non-blocking pipe, change
3423         errno from ENOSPC to EAGAIN.
3424         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3425         putchar, puts, vfprintf, vprintf): Enable replacement also if
3426         GNULIB_STDIO_H_NONBLOCKING is 1.
3427         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3428         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3429         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3430         CALL_WITH_SIGPIPE_EMULATION.
3431         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3432         * m4/nonblocking.m4: New file.
3433         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3434         for non-blocking I/O support.
3435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3436         GNULIB_UNISTD_H_NONBLOCKING.
3437         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3438         required for non-blocking I/O support.
3439         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3440         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3441         lib/stdio-write.c, m4/asm-underscore.m4.
3442         (Depends-on): Add stdio, unistd.
3443         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3444         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3445         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3446         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3447         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3448         problem with non-blocking pipes.
3449         * doc/posix-functions/fputc.texi: Likewise.
3450         * doc/posix-functions/fputs.texi: Likewise.
3451         * doc/posix-functions/fwrite.texi: Likewise.
3452         * doc/posix-functions/printf.texi: Likewise.
3453         * doc/posix-functions/putc.texi: Likewise.
3454         * doc/posix-functions/putchar.texi: Likewise.
3455         * doc/posix-functions/puts.texi: Likewise.
3456         * doc/posix-functions/vfprintf.texi: Likewise.
3457         * doc/posix-functions/vprintf.texi: Likewise.
3458         * doc/posix-functions/write.texi: Likewise.
3459
3460 2011-04-10  Jim Meyering  <meyering@redhat.com>
3461
3462         maint.mk: prohibit doubled words
3463         Detect them also when they're separated by a newline.
3464         There are 3 ways to customize it:
3465           - disable the test on a per file basis, as usual with rules using
3466             $(VC_LIST_EXCEPT)
3467           - replace the default doubled-word-selecting regexp (affects all files)
3468           - ignore a particular file-vs-doubled-word match
3469         I nearly used that last one to ignore the "is is" match in
3470         coreutils' NEWS file, since the text was "ls -is is ..."
3471         To do that, I would have added this line to cfg.mk:
3472           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3473         but it would have ignored any "is is" match in NEWS.
3474         Low probability, but still...
3475         Instead, I changed the text, slightly:
3476           -  ls -is is now consistent with ls -lis in ignoring values returned
3477           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3478         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3479         (prohibit_doubled_word_): Define.
3480         (sc_prohibit_doubled_word): New rule.
3481         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3482
3483 2011-04-10  Jim Meyering  <meyering@redhat.com>
3484
3485         maint: fix doubled-word typo in comment
3486         * m4/gethostname.m4: s/is is/it is/
3487         * m4/getdomainname.m4: Likewise.
3488
3489 2011-04-10  Jim Meyering  <meyering@redhat.com>
3490
3491         maint: remove doubled word: s/it it/it/
3492         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3493
3494 2011-04-10  Jim Meyering  <meyering@redhat.com>
3495
3496         maint.mk: remove useless semicolon and backslash
3497         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3498         semicolon and backslash.
3499
3500 2011-04-10  Bruno Haible  <bruno@clisp.org>
3501
3502         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3503         * modules/stdint-tests (Depends-on): Add wchar.
3504
3505 2011-04-10  Jim Meyering  <meyering@redhat.com>
3506
3507         maint: remove doubled words in comments, e.g., s/a a/a/
3508         * lib/strptime.c (day_of_the_week): s/the the/the/
3509         * tests/test-chown.h (test_chown): s/a a/a/
3510
3511         test-chown.h: correct a cast
3512         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3513         when the destination is a stat.st_gid.
3514
3515 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3516
3517         getaddrinfo: Fix test for sa_len member.
3518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3519         include <sys/types.h> before <sys/socket.h>.
3520
3521 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3522
3523         maint: change "can not" to "cannot"
3524         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3525         boundaries.
3526
3527 2011-04-09  Jim Meyering  <meyering@redhat.com>
3528
3529         maint: change "a a" to "a"
3530         * tests/test-lchown.h (test_lchown): s/a a/a/
3531
3532         maint.mk: prohibit \<the the\>
3533         * top/maint.mk (sc_prohibit_the_the): New rule.
3534
3535         maint: fix "the the" in comment
3536         * lib/count-one-bits.h: s/the the/the/
3537
3538         maint: change "can not" to "cannot"
3539         But do not change the occurrences in maintain.texi or in
3540         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3541         * doc/gnulib-tool.texi: s/can not/cannot/
3542         * doc/posix-functions/accept.texi (accept): Likewise.
3543         * doc/posix-functions/socket.texi (socket): Likewise.
3544         * lib/mbrtowc.c: Likewise.
3545
3546         maint.mk: prohibit use of "can not"
3547         * top/maint.mk (sc_prohibit_can_not): New rule.
3548         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3549
3550 2011-04-09  Bruno Haible  <bruno@clisp.org>
3551
3552         careadlinkat: Guard against misuse of careadlinkatcwd.
3553         * lib/careadlinkat.c: Include <stdlib.h>.
3554         (careadlinkatcwd): Check that the fd argument is as expected.
3555
3556 2011-04-09  Bruno Haible  <bruno@clisp.org>
3557
3558         careadlinkat: Use common coding style.
3559         * lib/careadlinkat.c: Move gnulib includes after system includes.
3560
3561 2011-04-09  Bruno Haible  <bruno@clisp.org>
3562
3563         careadlinkat: Clarify specification.
3564         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3565         (careadlinkatcwd): Add comment.
3566         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3567
3568 2011-04-09  Bruno Haible  <bruno@clisp.org>
3569
3570         areadlinkat: Avoid link error on many platforms.
3571         * modules/areadlinkat (Depends-on): Add areadlink.
3572
3573 2011-04-09  Bruno Haible  <bruno@clisp.org>
3574
3575         allocator, careadlinkat: Fix double-inclusion guard.
3576         * lib/allocator.h: Fix double-inclusion guard.
3577         * lib/careadlinkat.h: Likewise.
3578
3579 2011-04-09  Bruno Haible  <bruno@clisp.org>
3580
3581         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3582         * lib/relocwrapper.c: Update dependencies hierarchy.
3583         * build-aux/install-reloc: Update list of files to be compiled.
3584         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3585         lib/allocator.[hc].
3586
3587 2011-04-08  Eric Blake  <eblake@redhat.com>
3588
3589         strftime: silence gnulib-tool warning
3590         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3591
3592 2011-04-08  Bruno Haible  <bruno@clisp.org>
3593
3594         verify: Fix syntax error with GCC 4.6 in C++ mode.
3595         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3596         (HAVE_STATIC_ASSERT): New macro.
3597         (verify_true, verify): Use 'static_assert' if it is supported and
3598         '_Static_assert' is not supported.
3599
3600 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3601
3602         allocator: New module.
3603         * modules/allocator, lib/allocator.c: New files.
3604         * lib/allocator.h (stdlib_allocator): New decl.
3605         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3606         Remove.  Do not include <stdlib.h>.
3607         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3608         * modules/careadlinkat (Files): Remove lib/allocator.h.
3609         (Depends-on): Add allocator.
3610
3611         stdlib: let modules use system malloc, realloc
3612         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3613         if !_GL_USE_STDLIB_ALLOC.
3614         (malloc, realloc): Limit this change to a smaller scope.
3615
3616         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3617         (malloc, realloc): Don't #undef; no longer needed.
3618         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3619         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3620         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3621         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3622         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3623         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3624         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3625         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3626
3627         careadlinkat: rename members to avoid problem
3628         * lib/allocator.h (struct allocator): Rename members from
3629         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3630         and realloc are #define'd.  Reported by Eric Blake in
3631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3632         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3633
3634 2011-04-08  Eric Blake  <eblake@redhat.com>
3635
3636         nonblocking: reduce dependency
3637         * tests/test-nonblocking.c: Only test sockets when in use.
3638         * modules/nonblocking-tests (Depends-on): Drop socket.
3639         (Makefile.am): Link even if sockets are not present.
3640         * modules/pipe2-tests (Makefile.am): Likewise.
3641         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3642
3643         pipe2: fix O_NONBLOCK support on mingw
3644         * modules/pipe2 (Depends-on): Add nonblocking.
3645         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3646         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3647         * tests/test-nonblocking.c (main): Likewise.
3648         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3649
3650         fcntl-h: fix O_ACCMODE on cygwin
3651         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3652         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3653
3654         pipe-filter: drop O_NONBLOCK workarounds
3655         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3656         * modules/pipe-filter-ii (Depends-on): Likewise.
3657         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3658
3659         nonblocking: provide O_NONBLOCK for mingw
3660         * modules/nonblocking (Depends-on): Add open.
3661         (configure.ac): Set new witness macro.
3662         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3663         * modules/fcntl-h (Makefile.am): Substitute it.
3664         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3665         nonblocking module is in use.
3666         * lib/nonblocking.c: Adjust portability test.
3667         * lib/open.c (open): Don't let native open see gnulib flag.
3668         * tests/test-fcntl-h.c (main): Enhance test.
3669         * tests/test-open.h (test_open): Likewise.
3670         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3671
3672         careadlinkat: fix compilation error on mingw
3673         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3674         within struct allocator.
3675
3676 2011-04-06  Eric Blake  <eblake@redhat.com>
3677
3678         binary-io: relicense under LGPLv2+
3679         * modules/binary-io (License): Relax to LGPLv2+.
3680         Requested for libvirt, and required by pipe2.
3681
3682 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3683
3684         verify: use _Static_assert if available
3685         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3686         (verify_true, verify): Use it if available.  This generates better
3687         diagnostics with GCC 4.6.0 and later.
3688
3689 2011-04-05  Bruno Haible  <bruno@clisp.org>
3690
3691         Remove leftover generated .h files after config.status changed.
3692
3693         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3694         GL_GENERATE_ALLOCA_H.
3695         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3696         GL_GENERATE_ALLOCA_H evaluates to false.
3697
3698         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3699         GL_GENERATE_ARGZ_H.
3700         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3701         evaluates to false.
3702
3703         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3704         GL_GENERATE_BYTESWAP_H.
3705         * modules/byteswap (Makefile.am): Remove byteswap.h if
3706         GL_GENERATE_BYTESWAP_H evaluates to false.
3707
3708         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3709         GL_GENERATE_ERRNO_H.
3710         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3711         evaluates to false.
3712
3713         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3714         GL_GENERATE_FLOAT_H.
3715         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3716         evaluates to false.
3717
3718         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3719         GL_GENERATE_FNMATCH_H.
3720         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3721         GL_GENERATE_FNMATCH_H evaluates to false.
3722
3723         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3724         GL_GENERATE_GLOB_H.
3725         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3726         evaluates to false.
3727
3728         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3729         automake conditional GL_GENERATE_ICONV_H.
3730         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3731         evaluates to false.
3732
3733         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3734         GL_GENERATE_NETINET_IN_H.
3735         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3736         GL_GENERATE_NETINET_IN_H evaluates to false.
3737
3738         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3739         conditional GL_GENERATE_PTHREAD_H.
3740         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3741         * modules/pthread (Makefile.am): Remove pthread.h if
3742         GL_GENERATE_PTHREAD_H evaluates to false.
3743
3744         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3745         GL_GENERATE_SCHED_H.
3746         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3747         evaluates to false.
3748
3749         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3750         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3751         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3752         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3753
3754         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3755         GL_GENERATE_STDARG_H.
3756         * modules/stdarg (Makefile.am): Remove stdarg.h if
3757         GL_GENERATE_STDARG_H evaluates to false.
3758
3759         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3760         GL_GENERATE_STDBOOL_H.
3761         * modules/stdbool (Makefile.am): Remove stdbool.h if
3762         GL_GENERATE_STDBOOL_H evaluates to false.
3763
3764         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3765         conditional GL_GENERATE_STDDEF_H.
3766         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3767         * modules/stddef (Makefile.am): Remove stddef.h if
3768         GL_GENERATE_STDDEF_H evaluates to false.
3769
3770         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3771         GL_GENERATE_STDINT_H.
3772         * modules/stdint (Makefile.am): Remove stdint.h if
3773         GL_GENERATE_STDINT_H evaluates to false.
3774
3775         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3776         GL_GENERATE_SYSEXITS_H.
3777         * modules/sysexits (Makefile.am): Remove sysexits.h if
3778         GL_GENERATE_SYSEXITS_H evaluates to false.
3779
3780         Reported by Karl Berry and Ralf Wildenhues.
3781
3782 2011-04-05  Bruno Haible  <bruno@clisp.org>
3783
3784         Ensure to rebuild generated .h files when config.status has changed.
3785         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3786         config.status.
3787         * modules/ctype (Makefile.am): Likewise.
3788         * modules/dirent (Makefile.am): Likewise.
3789         * modules/errno (Makefile.am): Likewise.
3790         * modules/fcntl-h (Makefile.am): Likewise.
3791         * modules/float (Makefile.am): Likewise.
3792         * modules/getopt-posix (Makefile.am): Likewise.
3793         * modules/glob (Makefile.am): Likewise.
3794         * modules/iconv-h (Makefile.am): Likewise.
3795         * modules/inttypes (Makefile.am): Likewise.
3796         * modules/langinfo (Makefile.am): Likewise.
3797         * modules/locale (Makefile.am): Likewise.
3798         * modules/math (Makefile.am): Likewise.
3799         * modules/netdb (Makefile.am): Likewise.
3800         * modules/netinet_in (Makefile.am): Likewise.
3801         * modules/poll-h (Makefile.am): Likewise.
3802         * modules/pthread (Makefile.am): Likewise.
3803         * modules/pty (Makefile.am): Likewise.
3804         * modules/sched (Makefile.am): Likewise.
3805         * modules/search (Makefile.am): Likewise.
3806         * modules/selinux-h (Makefile.am): Likewise.
3807         * modules/signal (Makefile.am): Likewise.
3808         * modules/spawn (Makefile.am): Likewise.
3809         * modules/stdarg (Makefile.am): Likewise.
3810         * modules/stdbool (Makefile.am): Likewise.
3811         * modules/stddef (Makefile.am): Likewise.
3812         * modules/stdint (Makefile.am): Likewise.
3813         * modules/stdio (Makefile.am): Likewise.
3814         * modules/stdlib (Makefile.am): Likewise.
3815         * modules/string (Makefile.am): Likewise.
3816         * modules/strings (Makefile.am): Likewise.
3817         * modules/sys_file (Makefile.am): Likewise.
3818         * modules/sys_ioctl (Makefile.am): Likewise.
3819         * modules/sys_select (Makefile.am): Likewise.
3820         * modules/sys_socket (Makefile.am): Likewise.
3821         * modules/sys_stat (Makefile.am): Likewise.
3822         * modules/sys_time (Makefile.am): Likewise.
3823         * modules/sys_times (Makefile.am): Likewise.
3824         * modules/sys_utsname (Makefile.am): Likewise.
3825         * modules/sys_wait (Makefile.am): Likewise.
3826         * modules/sysexits (Makefile.am): Likewise.
3827         * modules/termios (Makefile.am): Likewise.
3828         * modules/time (Makefile.am): Likewise.
3829         * modules/unistd (Makefile.am): Likewise.
3830         * modules/wchar (Makefile.am): Likewise.
3831         * modules/wctype-h (Makefile.am): Likewise.
3832         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3833
3834 2011-04-05  Bruno Haible  <bruno@clisp.org>
3835
3836         pipe2: Relicense under LGPLv2+.
3837         * modules/pipe2 (License): Change to LGPLv2+.
3838         Requested by Eric Blake, for libvirt.
3839
3840 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3841
3842         bootstrap: compute gnulib_extra_files after updating build_aux
3843         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3844         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3845
3846 2011-04-05  Eric Blake  <eblake@redhat.com>
3847
3848         bootstrap: preserve git whitelist item sorting
3849         * build-aux/bootstrap (sort_patterns): New function.
3850         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3851
3852 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3853
3854         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3855         sc_space_tab check.
3856
3857 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3858
3859         areadlink, areadlinkat: rewrite in terms of careadlinkat
3860         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3861         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3862         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3863         (malloc, realloc): Remove #undefs.
3864         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3865         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3866         readlink, ssize_t, stdint, unistd.
3867         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3868         areadlink, stdint.
3869
3870         careadlinkat: new module
3871         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3872         * modules/careadlinkat: New files, written by me with
3873         a review and feedback from Ben Pfaff in
3874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3875
3876 2011-04-01  Bruno Haible  <bruno@clisp.org>
3877
3878         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3879         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3880         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3881         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3882         Reported by Bruce Korb <bruce.korb@gmail.com>.
3883
3884 2011-04-01  Bruno Haible  <bruno@clisp.org>
3885
3886         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3887         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3888         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3889         * modules/wcpcpy (Depends-on): Add extensions.
3890         * modules/wcpncpy (Depends-on): Likewise.
3891         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3892         systems.
3893         * doc/posix-functions/wcpncpy.texi: Likewise.
3894         * doc/posix-functions/wcwidth.texi: Likewise.
3895
3896 2011-03-31  Eric Blake  <eblake@redhat.com>
3897
3898         nonblocking: fix mingw test failures
3899         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3900         non-blocking flag on regular file.
3901         (get_nonblocking_flag): Set errno on invalid fd.
3902         * tests/test-nonblocking.c (main): Avoid test failure on
3903         directories if fchdir is not active.
3904         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3905
3906 2011-03-31  Bruno Haible  <bruno@clisp.org>
3907
3908         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3909         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3910         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3911         Reported by Simon Josefsson <simon@josefsson.org>.
3912
3913 2011-03-31  Bruno Haible  <bruno@clisp.org>
3914         and Eric Blake  <eblake@redhat.com>
3915
3916         nonblocking: new module
3917         * modules/nonblocking: New module.
3918         * modules/nonblocking-tests: Likewise.
3919         * lib/nonblocking.h: New file.
3920         * lib/nonblocking.c: Likewise.
3921         * tests/test-nonblocking.c: New test.
3922         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3923
3924 2011-03-30  Bruno Haible  <bruno@clisp.org>
3925
3926         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3927         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3928         instead of 'printf' format for GCC >= 4.4.
3929         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3930         (fprintf, printf, vfprintf, vprintf): Declare with
3931         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3932         the system's vfprintf() function.
3933         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3934
3935 2011-03-30  Eric Blake  <eblake@redhat.com>
3936
3937         passfd: fix scoping bug
3938         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3939         before sendmsg/recvmsg.
3940
3941         passfd: standardize coding conventions
3942         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3943         can be learned at compile time.
3944         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3945         ifdefs.
3946         (sendfd, recvfd): Follow gnulib code conventions.
3947
3948         passfd: fix incorrect sendmsg arguments
3949         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3950         incorrect msg_controllen value.
3951         * modules/passfd-tests (Depends-on): Check for alarm.
3952         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3953         Reported by Bastien ROUCARIES.
3954
3955 2011-03-30  Bruno Haible  <bruno@clisp.org>
3956
3957         c-strcasestr: Relicense under LGPLv2+.
3958         * modules/c-strcasestr (License): Change to LGPLv2+.
3959         Requested by Eric Blake, for libvirt.
3960
3961 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3962
3963         * users.txt: Add libidn2.  Fix libtasn1 link.
3964
3965 2011-03-30  Jim Meyering  <meyering@redhat.com>
3966
3967         tests: readlink* ("",... fails with EINVAL on newer kernels
3968         readlink and readlinkat have typically failed with ENOENT for
3969         the invalid, empty file name,  "".  However, with the advent
3970         of linux-2.6.39, they fail with EINVAL.
3971         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3972         when operating on the empty file name.
3973         * tests/test-readlink.h (test_readlink): Likewise.
3974
3975 2011-03-29  Bruno Haible  <bruno@clisp.org>
3976
3977         Relicense some modules under LGPLv2+, for libidn2.
3978         * modules/array-mergesort (License): Change to LGPLv2+.
3979         * modules/c-strcaseeq (License): Likewise.
3980         * modules/striconveh (License): Likewise.
3981         * modules/striconveha (License): Likewise.
3982         * modules/uniconv/base (License): Likewise.
3983         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3984         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3985         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3986         * modules/unictype/base (License): Likewise.
3987         * modules/unictype/bidiclass-of (License): Likewise.
3988         * modules/unictype/category-M (License): Likewise.
3989         * modules/unictype/category-none (License): Likewise.
3990         * modules/unictype/category-of (License): Likewise.
3991         * modules/unictype/category-test (License): Likewise.
3992         * modules/unictype/category-test-withtable (License): Likewise.
3993         * modules/unictype/combining-class (License): Likewise.
3994         * modules/unictype/joiningtype-of (License): Likewise.
3995         * modules/unictype/scripts (License): Likewise.
3996         * modules/uninorm/base (License): Likewise.
3997         * modules/uninorm/canonical-decomposition (License): Likewise.
3998         * modules/uninorm/composition (License): Likewise.
3999         * modules/uninorm/decompose-internal (License): Likewise.
4000         * modules/uninorm/decomposition-table (License): Likewise.
4001         * modules/uninorm/nfc (License): Likewise.
4002         * modules/uninorm/nfd (License): Likewise.
4003         * modules/uninorm/u32-normalize (License): Likewise.
4004         * modules/unistr/base (License): Likewise.
4005         * modules/unistr/u32-cpy (License): Likewise.
4006         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4007         * modules/unistr/u32-to-u8 (License): Likewise.
4008         * modules/unistr/u32-uctomb (License): Likewise.
4009         * modules/unistr/u8-check (License): Likewise.
4010         * modules/unistr/u8-mblen (License): Likewise.
4011         * modules/unistr/u8-mbtouc (License): Likewise.
4012         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4013         * modules/unistr/u8-mbtoucr (License): Likewise.
4014         * modules/unistr/u8-prev (License): Likewise.
4015         * modules/unistr/u8-strlen (License): Likewise.
4016         * modules/unistr/u8-to-u32 (License): Likewise.
4017         * modules/unistr/u8-uctomb (License): Likewise.
4018         * modules/unitypes (License): Likewise.
4019         Requested by Simon Josefsson.
4020
4021 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4022
4023         lib-symbol-visibility: Add a notice.
4024         * modules/lib-symbol-visibility (Notice): New field.
4025
4026 2011-03-29  Bruno Haible  <bruno@clisp.org>
4027
4028         getaddrinfo: Doc fix.
4029         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4030         section "fixed in Gnulib".
4031
4032 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4033
4034         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4035         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4036
4037 2011-03-26  Bruno Haible  <bruno@clisp.org>
4038
4039         unictype/property-byname: Reduce the number of load-time relocations.
4040         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4041         (UC_PROPERTY_INDEX_*): New enumeration values.
4042         (uc_property_byname): Convert an index from the lookup table to an
4043         uc_property_t.
4044         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4045         values.
4046
4047 2011-03-26  Bruno Haible  <bruno@clisp.org>
4048
4049         unictype/property-byname: Allow omitted word separators and aliases.
4050         * lib/unictype/pr_byname.gperf: Add property names without word
4051         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4052         for 'space'.
4053
4054 2011-03-26  Bruno Haible  <bruno@clisp.org>
4055
4056         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4057         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4058         also hyphens to space.
4059         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4060         without spaces.
4061         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4062
4063 2011-03-26  Bruno Haible  <bruno@clisp.org>
4064
4065         unictype/joiningtype-byname: Recognize long names as well.
4066         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4067         a long name.
4068         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4069         unictype/joiningtype_byname.h.
4070         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4071         * lib/unictype/joiningtype_byname.gperf: New file.
4072         * modules/unictype/joiningtype-byname (Files): Add
4073         lib/unictype/joiningtype_byname.gperf.
4074         (Depends-on): Add gperf.
4075         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4076         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4077         long names.
4078
4079         Tests for module 'unictype/joiningtype-longname'.
4080         * modules/unictype/joiningtype-longname-tests: New file.
4081         * tests/unictype/test-joiningtype_longname.c: New file.
4082
4083         New module 'unictype/joiningtype-longname'.
4084         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4085         * lib/unictype/joiningtype_longname.c: New file.
4086         * modules/unictype/joiningtype-longname: New file.
4087         * modules/unictype/joiningtype-all (Depends-on): Add
4088         unictype/joiningtype-longname.
4089
4090 2011-03-26  Bruno Haible  <bruno@clisp.org>
4091
4092         unictype/bidiclass-byname: Recognize long names as well.
4093         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4094         name.
4095         * lib/unictype/bidi_byname.c: Include <string.h>,
4096         unictype/bidi_byname.h.
4097         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4098         * lib/unictype/bidi_byname.gperf: New file.
4099         * modules/unictype/bidiclass-byname (Files): Add
4100         lib/unictype/bidi_byname.gperf.
4101         (Depends-on): Add gperf.
4102         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4103         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4104         long names.
4105
4106         Tests for module 'unictype/bidiclass-longname'.
4107         * modules/unictype/bidiclass-longname-tests: New file.
4108         * tests/unictype/test-bidi_longname.c: New file.
4109
4110         New module 'unictype/bidiclass-longname'.
4111         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4112         * lib/unictype/bidi_longname.c: New file.
4113         * modules/unictype/bidiclass-longname: New file.
4114         * modules/unictype/bidiclass-all (Depends-on): Add
4115         unictype/bidiclass-longname.
4116
4117 2011-03-26  Bruno Haible  <bruno@clisp.org>
4118
4119         unictype/bidi*: Rename modules.
4120         * modules/unictype/bidiclass-all: Renamed from
4121         modules/unictype/bidicategory-all.
4122         * modules/unictype/bidiclass-name: Renamed from
4123         modules/unictype/bidiclass-name.
4124         (Description): Update.
4125         * modules/unictype/bidiclass-name-tests: Renamed from
4126         modules/unictype/bidicategory-name-tests.
4127         * modules/unictype/bidiclass-byname: Renamed from
4128         modules/unictype/bidicategory-byname.
4129         (Description): Update.
4130         * modules/unictype/bidiclass-byname-tests: Renamed from
4131         modules/unictype/bidicategory-byname-tests.
4132         * modules/unictype/bidiclass-of: Renamed from
4133         modules/unictype/bidicategory-of.
4134         (Description): Update.
4135         * modules/unictype/bidiclass-of-tests: Renamed from
4136         modules/unictype/bidicategory-of-tests.
4137         * modules/unictype/bidiclass-test: Renamed from
4138         modules/unictype/bidicategory-test.
4139         (Description): Update.
4140         * modules/unictype/bidiclass-test-tests: Renamed from
4141         modules/unictype/bidicategory-test-tests.
4142         * modules/unictype/bidicategory-all: New file, a simple redirection.
4143         * modules/unictype/bidicategory-name: Likewise.
4144         * modules/unictype/bidicategory-byname: Likewise.
4145         * modules/unictype/bidicategory-of: Likewise.
4146         * modules/unictype/bidicategory-test: Likewise.
4147         * modules/unictype/property-bidi-* (Dependencies): Update.
4148         * lib/unictype/bidi_*.c: Update comment.
4149
4150 2011-03-26  Bruno Haible  <bruno@clisp.org>
4151
4152         unictype/bidi*: Rename functions, part 2.
4153         * modules/unictype/bidicategory-name (configure.ac): Update required
4154         libunistring version.
4155         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4156
4157 2011-03-25  Bruno Haible  <bruno@clisp.org>
4158
4159         New module 'unictype/combining-class-all'.
4160         * modules/unictype/combining-class-all: New file.
4161
4162         Tests for module 'unictype/combining-class-byname'.
4163         * modules/unictype/combining-class-byname-tests: New file.
4164         * tests/unictype/test-combiningclass_byname.c: New file.
4165
4166         New module 'unictype/combining-class-byname'.
4167         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4168         * lib/unictype/combiningclass_byname.c: New file.
4169         * lib/unictype/combiningclass_byname.gperf: New file.
4170         * modules/unictype/combining-class-byname: New file.
4171
4172         Tests for module 'unictype/combining-class-longname'.
4173         * modules/unictype/combining-class-longname-tests: New file.
4174         * tests/unictype/test-combiningclass_longname.c: New file.
4175
4176         New module 'unictype/combining-class-longname'.
4177         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4178         * lib/unictype/combiningclass_longname.c: New file.
4179         * modules/unictype/combining-class-longname: New file.
4180
4181         Tests for module 'unictype/combining-class-name'.
4182         * modules/unictype/combining-class-name-tests: New file.
4183         * tests/unictype/test-combiningclass_name.c: New file.
4184
4185         New module 'unictype/combining-class-name'.
4186         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4187         * lib/unictype/combiningclass_name.c: New file.
4188         * modules/unictype/combining-class-name: New file.
4189
4190 2011-03-25  Bruno Haible  <bruno@clisp.org>
4191
4192         unictype/combining-class: Rename source files.
4193         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4194         of unictype/combining.h.
4195         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4196         Update.
4197         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4198         * modules/unictype/combining-class (Description): Fix.
4199         (Files, Makefile.am): Update.
4200         * tests/unictype/test-combiningclass.c: Renamed from
4201         tests/unictype/test-combining.c.
4202         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4203
4204 2011-03-25  Bruno Haible  <bruno@clisp.org>
4205
4206         unictype: Update list of canonical combining classes.
4207         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4208
4209 2011-03-25  Bruno Haible  <bruno@clisp.org>
4210
4211         unictype/category-byname: Recognize long names as well.
4212         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4213         a long name.
4214         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4215         unictype/categ_byname.h.
4216         (UC_CATEGORY_INDEX_*): New enumeration values.
4217         (uc_general_category_byname): Use uc_general_category_lookup and
4218         convert from index to value.
4219         * lib/unictype/categ_byname.gperf: New file.
4220         * modules/unictype/category-byname (Files): Add
4221         lib/unictype/categ_byname.gperf.
4222         (Depends-on): Add gperf.
4223         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4224         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4225         long names.
4226
4227         Tests for module 'unictype/category-longname'.
4228         * modules/unictype/category-longname-tests: New file.
4229         * tests/unictype/test-categ_longname.c: New file.
4230
4231         New module 'unictype/category-longname'.
4232         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4233         * lib/unictype/categ_longname.c: New file.
4234         * modules/unictype/category-longname: New file.
4235         * modules/unictype/category-all (Depends-on): Add it.
4236
4237 2011-03-25  Bruno Haible  <bruno@clisp.org>
4238
4239         Tests for module 'unictype/category-LC'.
4240         * modules/unictype/category-LC-tests: New file.
4241         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4242
4243         New module 'unictype/category-LC'.
4244         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4245         (UC_CATEGORY_LC): New declaration.
4246         (UC_CASED_LETTER): New macro.
4247         * lib/gen-uni-tables.c (is_category_LC): New function.
4248         (output_categories): Also handle category LC.
4249         (UC_CATEGORY_MASK_LC): New enumeration value.
4250         (general_category_byname): Also handle category LC.
4251         * lib/unictype/categ_LC.c: New file.
4252         * lib/unictype/categ_LC.h: New file, automatically generated.
4253         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4254         category LC.
4255         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4256         * modules/unictype/category-LC: New file.
4257         * modules/unictype/category-byname (Depends-on): Add
4258         unictype/category-LC.
4259         * modules/unictype/category-all (Depends-on): Likewise.
4260
4261 2011-03-25  Eric Blake  <eblake@redhat.com>
4262
4263         xmalloc: revert yesterday's regression
4264         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4265         realloc's underlying behavior (allowing allocation of zero-size
4266         objects, especially if malloc-gnu is also in use).
4267
4268 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4269
4270         maint.mk: add missing version to VC-tag
4271         * top/maint.mk: git tag was missing actual tag name; add it.
4272
4273         valgrind: do leak checking, and exit with code 1 on error (not 0)
4274         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4275         to VALGRIND.
4276
4277 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4278
4279         posix-modules: say what it does.
4280         * posix-modules: Add a line to the --help output saying what it does.
4281
4282 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4283
4284         xmalloc: Do not leak if underlying realloc is C99 compatible.
4285         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4286         This avoids a leak on C99-based systems.  See
4287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4288
4289 2011-03-24  Eric Blake  <eblake@redhat.com>
4290
4291         realloc: document portability problem
4292         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4293         passing 0 size to realloc.
4294
4295 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4296
4297         doc: update users.txt
4298         * users.txt: Add cvsps, tmpwatch
4299
4300 2011-03-23  Matt Rice  <ratmice@gmail.com>
4301
4302         doc: update users.txt
4303         * users.txt: Add gdb.
4304
4305 2011-03-23  Jim Meyering  <meyering@redhat.com>
4306
4307         doc: update users.txt
4308         Looking through matches up to the following URL (there are still
4309         several more pages), I found several projects that use gnulib:
4310         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4311         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4312         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4313
4314 2011-03-22  Bruno Haible  <bruno@clisp.org>
4315
4316         unictype/bidi*: Rename functions.
4317         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4318         uc_bidi_class, uc_is_bidi_class): New declarations.
4319         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4320         uc_bidi_category_byname.
4321         (uc_bidi_category_byname): New function.
4322         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4323         u_bidi_category_name.
4324         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4325         (uc_bidi_category_name): New function.
4326         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4327         uc_bidi_category.
4328         (uc_bidi_category): New function.
4329         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4330         uc_is_bidi_category. Invoke uc_bidi_class.
4331         (uc_is_bidi_category): New function.
4332         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4333         instead of uc_bidi_category_byname.
4334         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4335         instead of uc_bidi_category_name.
4336         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4337         uc_bidi_category.
4338         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4339         instead of uc_is_bidi_category.
4340
4341 2011-03-21  Bruno Haible  <bruno@clisp.org>
4342
4343         New module 'unictype/joininggroup-all'.
4344         * modules/unictype/joininggroup-all: New file.
4345
4346         Tests for module 'unictype/joininggroup-of'.
4347         * modules/unictype/joininggroup-of-tests: New file.
4348         * tests/unictype/test-joininggroup_of.c: New file.
4349         * tests/unictype/test-joininggroup_of.h: New file, automatically
4350         generated by gen-uni-tables.
4351
4352         New module 'unictype/joininggroup-of'.
4353         * modules/unictype/joininggroup-of: New file.
4354         * lib/unictype/joininggroup_of.c: New file.
4355         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4356         gen-uni-tables.
4357
4358         Tests for module 'unictype/joininggroup-byname'.
4359         * modules/unictype/joininggroup-byname-tests: New file.
4360         * tests/unictype/test-joininggroup_byname.c: New file.
4361
4362         New module 'unictype/joininggroup-byname'.
4363         * modules/unictype/joininggroup-byname: New file.
4364         * lib/unictype/joininggroup_byname.c: New file.
4365         * lib/unictype/joininggroup_byname.gperf: New file.
4366
4367         Tests for module 'unictype/joininggroup-name'.
4368         * modules/unictype/joininggroup-name-tests: New file.
4369         * tests/unictype/test-joininggroup_name.c: New file.
4370
4371         New module 'unictype/joininggroup-name'.
4372         * modules/unictype/joininggroup-name: New file.
4373         * lib/unictype/joininggroup_name.c: New file.
4374         * lib/unictype/joininggroup_name.h: New file.
4375
4376         New module 'unictype/joiningtype-all'.
4377         * modules/unictype/joiningtype-all: New file.
4378
4379         Tests for module 'unictype/joiningtype-of'.
4380         * modules/unictype/joiningtype-of-tests: New file.
4381         * tests/unictype/test-joiningtype_of.c: New file.
4382         * tests/unictype/test-joiningtype_of.h: New file, automatically
4383         generated by gen-uni-tables.
4384
4385         New module 'unictype/joiningtype-of'.
4386         * modules/unictype/joiningtype-of: New file.
4387         * lib/unictype/joiningtype_of.c: New file.
4388         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4389         gen-uni-tables.
4390
4391         Tests for module 'unictype/joiningtype-byname'.
4392         * modules/unictype/joiningtype-byname-tests: New file.
4393         * tests/unictype/test-joiningtype_byname.c: New file.
4394
4395         New module 'unictype/joiningtype-byname'.
4396         * modules/unictype/joiningtype-byname: New file.
4397         * lib/unictype/joiningtype_byname.c: New file.
4398
4399         Tests for module 'unictype/joiningtype-name'.
4400         * modules/unictype/joiningtype-name-tests: New file.
4401         * tests/unictype/test-joiningtype_name.c: New file.
4402
4403         New module 'unictype/joiningtype-name'.
4404         * modules/unictype/joiningtype-name: New file.
4405         * lib/unictype/joiningtype_name.c: New file.
4406
4407         unictype: Add support for Arabic shaping properties.
4408         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4409         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4410         declarations.
4411         (UC_JOINING_GROUP_*): New enumeration values.
4412         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4413         declarations.
4414         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4415         (unicode_joining_type): New variable.
4416         (UC_JOINING_GROUP_*): New enumeration values.
4417         (unicode_joining_group): New variable.
4418         (fill_arabicshaping, joining_type_as_c_identifier,
4419         output_joining_type_test, output_joining_type,
4420         joining_group_as_c_identifier, output_joining_group_test,
4421         output_joining_group): New functions.
4422         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4423         fill_arabicshaping and output_joining_type_test, output_joining_type,
4424         output_joining_group_test, output_joining_group.
4425         Reported by Simon Josefsson.
4426
4427 2011-03-21  Jim Meyering  <meyering@redhat.com>
4428
4429         strftime: fix a bug in yesterday's change
4430         * lib/strftime.c (add): Accommodate width's initial value of -1.
4431         Otherwise, nstrftime would copy uninitialized data into
4432         the result buffer.
4433
4434 2011-03-21  Jim Meyering  <meyering@redhat.com>
4435
4436         tests: add strftime-tests module
4437         * tests/test-strftime.c: New file.
4438         * modules/strftime-tests: New module.
4439
4440 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4441
4442         strftime: don't assume a byte count fits in 'int'
4443         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4444         found this problem by static analysis, using gcc -Wstrict-overflow
4445         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4446         on an integer overflow having undefined behavior, but it turns out
4447         that the argument is a size, which might not fit in 'int' anyway,
4448
4449 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4450
4451         stdio: don't require ignore_value around fwrite
4452
4453         This patch works around libc bug 11959
4454         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4455         Without this patch, applications must often write
4456         ignore_value (fwrite (...)) even though the ignore_value is
4457         not helpful here.  It's common to write many objects, using
4458         fwrite/printf/etc., and then use ferror to detect output error.
4459
4460         I considered making this patch optional, but decided against it,
4461         because libc is obviously being inconsistent here: there is no
4462         reason libc should insist that user code must inspect fwrite
4463         return's value without also insisting that it inspect printf's,
4464         putchar's, etc.  If user code wants to have a strict style where
4465         all these functions' values are checked (so that ferror need not
4466         be checked), we could add support for that style in a new gnulib
4467         module, but in the meantime it's better to be consistent and to
4468         support common usage.
4469
4470         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4471         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4472         that we are compiling in checking mode, and if not C++, and
4473         if not already wrapping fwrite for some other reason.
4474         (fwrite): #define to rpl_fwrite if the latter is defined.
4475
4476 2011-03-20  Bruno Haible  <bruno@clisp.org>
4477
4478         verror: Fix compilation error introduced on 2011-02-13.
4479         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4480         instead of __attribute__.
4481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4482
4483 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4484             Bruno Haible  <bruno@clisp.org>
4485
4486         socklen: do not depend on sys_socket
4487         While trying to modify Emacs to use gnulib's socklen module,
4488         I discovered a circular dependency: socklen depends on sys_socket
4489         and vice versa.  Emacs can use socklen, but it does not need
4490         sys_socket because it has its own substitute for sys/socket.h.
4491         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4492         gl_TYPE_SOCKLEN_T.
4493         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4494         gl_PREREQ_SYS_H_SOCKET.
4495         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4496         gl_PREREQ_SYS_H_SOCKET.
4497         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4498         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4499         * modules/socklen (Depends-on): Do not depend on sys_socket.
4500         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4501
4502 2011-03-20  Jim Meyering  <meyering@redhat.com>
4503
4504         maint.mk: sort file names *after* new transformation
4505         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4506         prefix would have led to an unwarranted failure in GNU parted.
4507         Sort after that transformation.
4508
4509 2011-03-19  Jim Meyering  <meyering@redhat.com>
4510
4511         maint.mk: fix po-file syntax-check rule
4512         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4513         Patch by Bruno Haible.
4514
4515 2011-03-19  Bruno Haible  <bruno@clisp.org>
4516
4517         socklen: Update comment.
4518         * m4/socklen.m4: Update comment about platforms.
4519
4520 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4521             Bruno Haible  <bruno@clisp.org>
4522
4523         inet_ntop, inet_pton: Simplify.
4524         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4525         documented to provide socklen_t and we already depend on sys_socket.
4526         * modules/inet_pton (Depends-on): Likewise.
4527         * lib/arpa_inet.in.h: Adjust comment.
4528
4529 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4530             Bruno Haible  <bruno@clisp.org>
4531
4532         netdb: Simplify.
4533         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4534         documented to provide socklen_t and we already depend on sys_socket.
4535         * lib/netdb.in.h: Adjust comment.
4536
4537 2011-03-19  Bruno Haible  <bruno@clisp.org>
4538
4539         sys_socket, netdb: Document problem with socklen_t.
4540         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4541         platforms.
4542         * doc/posix-headers/netdb.texi: Likewise.
4543
4544 2011-03-18  Eric Blake  <eblake@redhat.com>
4545
4546         maint.mk: let po check work in VPATH build
4547         * top/maint.mk (po_file): Allow cfg.mk override.
4548         (sc_po_check): Allow VPATH use.
4549         Reported by Jiri Denemark.
4550
4551 2011-03-16  Jim Meyering  <meyering@redhat.com>
4552
4553         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4554         Before, you would have had to create one .x-sc_ file per rule in order
4555         to exempt offending files.  Now, you may instead use a Make variable --
4556         usually defined in cfg.mk -- whose name identifies the affected rule.
4557         * top/maint.mk (_sc_excl): Define.
4558         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4559         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4560
4561 2011-03-13  Bruno Haible  <bruno@clisp.org>
4562
4563         ignore-value tests: Avoid warnings.
4564         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4565         empty for gcc < 3.4.
4566
4567 2011-03-13  Bruno Haible  <bruno@clisp.org>
4568
4569         passfd: Fix link error on Solaris.
4570         * modules/passfd (Description): Correct.
4571         (Depends-on): Add socketlib.
4572         (Link): New section.
4573         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4574
4575 2011-03-13  Bruno Haible  <bruno@clisp.org>
4576
4577         passfd: Fix link error on AIX 5.2.
4578         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4579
4580 2011-03-13  Bruno Haible  <bruno@clisp.org>
4581
4582         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4583         * lib/sys_socket.in.h: Include <stddef.h>.
4584         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4585         CMSG_FIRSTHDR. Remove unused variable.
4586
4587 2011-03-13  Bruno Haible  <bruno@clisp.org>
4588
4589         passfd: Fix compilation error on OpenBSD.
4590         * lib/passfd.c: Include <sys/uio.h>.
4591
4592 2011-03-13  Bruno Haible  <bruno@clisp.org>
4593
4594         passfd test: Fix warnings.
4595         * tests/test-passfd.c: Include <sys/wait.h>.
4596         (main): Fix typo.
4597
4598 2011-03-13  Bruno Haible  <bruno@clisp.org>
4599
4600         passfd module, part 4, tweaks.
4601         * tests/test-passfd.c: Reorder includes.
4602         (main): Fix perror and printf calls.
4603
4604 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4605
4606         passfd module, part 4.
4607         * modules/passfd-tests: New file.
4608         * tests/test-passfd.c: New file.
4609
4610 2011-03-13  Jim Meyering  <meyering@redhat.com>
4611
4612         Makefile: rely on GNU make; derive syntax-check rule names
4613         Rather than requiring that each sc_ rule be listed as a dependent
4614         of "check", use features of GNU make to derive the list.
4615         * Makefile (syntax-check-rules): Define.
4616         (check): Depend on the new variable, not the hard-coded list.
4617
4618 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4619             Bruno Haible  <bruno@clisp.org>
4620
4621         passfd module, part 3.
4622         * lib/passfd.h (recvfd): Add a flags argument.
4623         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4624         (recvfd): Add a flags argument.
4625         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4626         exists.
4627         * modules/passfd (Depends-on): Add cloexec.
4628         Suggested by Eric Blake.
4629
4630 2011-03-13  Bruno Haible  <bruno@clisp.org>
4631
4632         passfd module, part 2, tweaks.
4633         * modules/passfd (Files): Reorder.
4634         (Depends-on): Remove errno.
4635         (Include): Remove <sys/socket.h>, <sys/un.h>.
4636         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4637         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4638         specification header. Include <sys/socket.h> always. Don't include
4639         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4640         (sendfd): Clarify that it sets errno when it fails.
4641         (recvfd): Fix specification.
4642
4643 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4644
4645         passfd module, part 2.
4646         * modules/passfd: New file.
4647         * lib/passfd.h: New file.
4648         * lib/passfd.c: New file.
4649
4650 2011-03-12  Bruno Haible  <bruno@clisp.org>
4651
4652         wcswidth, mbswidth: Avoid integer overflow.
4653         * lib/wcswidth.c: Include <limits.h>.
4654         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4655         * lib/mbswidth.c: Include <limits.h>.
4656         (mbsnwidth): Avoid 'int' overflow.
4657         Reported by Jim Meyering.
4658
4659 2011-03-12  Bruno Haible  <bruno@clisp.org>
4660
4661         futimens, utimensat: Avoid endless recursion on Solaris 10.
4662         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4663         Solaris.
4664         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4665         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4666
4667 2011-03-11  Jim Meyering  <meyering@redhat.com>
4668
4669         maint.mk: relax a regexp to accommodate other formatting styles
4670         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4671         between "ngettext" and the following "(".
4672
4673 2011-03-11  Pádraig Brady <P@draigBrady.com>
4674
4675         maint.mk: suppress a false positive warning
4676         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4677         diagnostics are marked with ngettext.
4678
4679 2011-03-10  Eric Blake  <eblake@redhat.com>
4680
4681         wchar: add explicit dependencies, for Tru64
4682         * modules/mbmemcasecoll (Depends-on): Add wchar.
4683         * modules/mbtowc (Depends-on): Likewise.
4684         * modules/vasnprintf (Depends-on): Likewise.
4685         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4686         * modules/wctomb (Depends-on): Likewise.
4687         Reported by Peter O'Gorman.
4688
4689 2011-03-08  Bruno Haible  <bruno@clisp.org>
4690
4691         passfd module, part 1, tweaks.
4692         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4693         Improve indentation. Improve AC_MSG_CHECKING messages.
4694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4695         gl_SOCKET_FAMILIES.
4696
4697 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4698
4699         passfd module, part 1.
4700         * m4/afunix.m4: New file.
4701         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4702         sockets.
4703
4704 2011-03-08  Bruno Haible  <bruno@clisp.org>
4705
4706         regex-quote: New API.
4707         * lib/regex-quote.h: Include <stdbool.h>.
4708         (struct regex_quote_spec): New type.
4709         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4710         New declarations.
4711         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4712         'const struct regex_quote_spec *' argument.
4713         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4714         (pcre_special): New constant.
4715         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4716         New functions.
4717         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4718         'const struct regex_quote_spec *' argument.
4719         * modules/regex-quote (Depends-on): Add stdbool.
4720         * tests/test-regex-quote.c (check): Update for new API. Add test for
4721         anchored results.
4722         * NEWS: Mention the API change.
4723         Reported by Reuben Thomas and Eric Blake.
4724
4725 2011-03-06  Bruno Haible  <bruno@clisp.org>
4726
4727         regex-quote: Fix creation of POSIX extended regular expressions.
4728         * lib/regex-quote.c (ere_special): Add grouping and alternation
4729         operators.
4730
4731 2011-03-05  Bruno Haible  <bruno@clisp.org>
4732
4733         doc: Improve doc regarding autopoint vs. gnulib.
4734         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4735         disable autopoint while running autoreconf.
4736         Suggested by Ralf Wildenhues.
4737
4738 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4739
4740         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4741         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4742
4743 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4744
4745         parse-duration: remove xalloc.h dependency
4746         * lib/parse-duration.c (parse_period): handle NULL return from
4747         strdup instead of calling xstrdup().
4748         * modules/parse-duration: remove "xalloc" dependency
4749
4750 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4751
4752         bootstrap: honor m4_base when running aclocal
4753         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4754
4755 2011-03-02  Jim Meyering  <meyering@redhat.com>
4756
4757         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4758         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4759         on request from Matt Booth.
4760
4761 2011-03-01  Eric Blake  <eblake@redhat.com>
4762
4763         test-link: work on Hurd
4764         * tests/test-link.h (test_link): Hurd rejects linking directories
4765         with EISDIR instead of the POSIX-mandated EPERM.
4766
4767 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4768
4769         stdio: simplify by moving files to printf-posix, sigpipe
4770         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4771         since this symbol is needed only if printf is replaced.
4772         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4773         Require gl_ASM_SYMBOL_PREFIX.
4774         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4775         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4776         (Depends-on): Add 'raise'.
4777         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4778         * modules/stdio (Files): Remove lib/stdio-write.c,
4779         m4/asm-underscore.m4.
4780         (Depends-on): Remove 'raise'.
4781
4782         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4783         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4784         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4785         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4786
4787 2011-02-28  Bruno Haible  <bruno@clisp.org>
4788
4789         localcharset: Assume ANSI C behaviour of free().
4790         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4791         calling free().
4792         Suggested by Simon Josefsson <simon@josefsson.org>.
4793
4794 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4795             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4796             Bruno Haible  <bruno@clisp.org>  (tiny change)
4797
4798         On Cygwin, use /proc file system instead of win32 API.
4799         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4800         Win32 file names.
4801         (DllMain): Simplify by removing Cygwin specific code.
4802         (find_shared_library_fullname): Use Linux specific implementation also
4803         for Cygwin.
4804         (get_shared_library_fullname): Update accordingly.
4805         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4806         Win32 file names.
4807         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4808         Cygwin specific code.
4809
4810 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4811             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4812
4813         Fix OpenMP flag detection for various Fortran compilers.
4814         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4815         OpenMP-conditional compilation construct, to force compile
4816         failure with missing OpenMP flag.
4817         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4818
4819 2011-02-25  Eric Blake  <eblake@redhat.com>
4820
4821         strstr: expand test coverage
4822         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4823         compilation.
4824         * tests/test-memmem.c (main): Duplicate tests.
4825         * tests/test-strcasestr.c (main): Likewise.
4826         * tests/test-c-strcasestr.c (main): Likewise.
4827
4828 2011-02-25  Jim Meyering  <meyering@redhat.com>
4829
4830         maint.mk: detect missing-NL-at-EOF, too
4831         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4832         it also detects when a file lacks a newline at EOF.
4833         (require_exactly_one_NL_at_EOF_): Renamed from
4834         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4835         since people may well have .x-sc_... file names tied to the
4836         existing name.  Suggested by Eric Blake.
4837
4838 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4839
4840         dirname: move m4/dos.m4 functionality into lib/dosname.h
4841
4842         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4843         extracts symbols from it, puts them into config.h; but it's much
4844         easier to use the symbols directly.  filename.h already does this,
4845         but it disagrees with dos.m4 in some respects.  This patch
4846         introduces a different include file dosname.h that packages up
4847         dos.m4, and then later we can work on merging filename.h and
4848         dosname.h.  Applications that need only the easy-to-configure
4849         symbols should consider including dosname.h rather than dirname.h.
4850         * NEWS: Mention incompatible changes.
4851         * m4/dos.m4: Remove.
4852         * lib/dosname.h, modules/dosname: New files.
4853         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4854         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4855         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4856         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4857         Include dosname.h, not dirname.h.
4858         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4859         Include dosname.h, for definitions of symbols like ISSLASH
4860         that used to be in config.h.
4861         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4862         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4863         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4864         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4865         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4866         * modules/rmdir (Files): Likewise.
4867         * modules/stat (Files): Likewise.
4868         * modules/unlink (Files): Likewise.
4869         * modules/dirname-lgpl (Depends-on): Add dosname.
4870         * modules/lstat (Depends-on): Likewise.
4871         * modules/openat (Depends-on): Likewise.
4872         * modules/rmdir (Depends-on): Likewise.
4873         * modules/savewd (Depends-on): Likewise.
4874         * modules/stat (Depends-on): Likewise.
4875         * modules/unlink (Depends-on): Likewise.
4876         * modules/openat (Depends-on): Remove dirname-lgpl.
4877         * modules/savewd (Depends-on): Likewise.
4878         * tests/test-dirname.c: Do not use removed symbols like
4879         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4880         the remaining symbols, e.g., ISSLASH ('\\').
4881
4882 2011-02-25  Eric Blake  <eblake@redhat.com>
4883
4884         strstr: revert patches that introduced bug and pessimization
4885         * lib/str-two-way.h: Add another reference.
4886         (two_way_short_needle, two_way_long_needle): Revert changes from
4887         2011-02-24; they pessimize search speed.
4888         (critical_factorization): Partially revert changes from
4889         2010-06-22; they violate the requirement that the left half of the
4890         needle be smaller than the period of the needle.
4891
4892 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4893
4894         filenamecat: remove unnecessary dependency on dirname-lgpl
4895         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4896         is no direct dependency, just an indirect one via filenamecat-lgpl.
4897
4898         remove: remove unnecessary use of m4/dos.m4
4899         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4900         * modules/remove (FILES): Remove m4/dos.m4.
4901
4902         * lib/openat-proc.c: Don't include dirname.h; not needed.
4903
4904         backupfile: remove unnecessary use of m4/dos.m4
4905         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4906         of its symbols are used by the backupfile code.  backupfile.c does
4907         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4908         for the rare case of programs that want all their backup file
4909         names to live within 8+3 limits, and dos.m4 doesn't address that.
4910         * modules/backupfile (Files): Remove m4/dos.m4.
4911
4912 2011-02-24  Jim Meyering  <meyering@redhat.com>
4913
4914         strstr: fix a bug whereby strstr would mistakenly return NULL
4915         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4916         in period calculation.
4917         (two_way_long_needle): Likewise.
4918         The original problem was reported by Mike Stump in
4919         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4920         Ralf Wildenhues provided the short needle and haystack.
4921         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4922         Add a more involved test to trigger the bug in two_way_long_needle.
4923
4924 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4925
4926         gnulib-tool: remove use of bold display in help screen
4927         * gnulib-tool (func_usage): Do not use bold display anymore in the
4928         help screen.  That was just meant to be a temporary emphasis for a
4929         backward-incompatible change.
4930
4931 2011-02-23  Bruno Haible  <bruno@clisp.org>
4932
4933         Fix misindentation of preprocessor directives.
4934         * lib/argp-namefrob.h: Reindent preprocessor directives.
4935         * lib/getopt_int.h (struct _getopt_data): Likewise.
4936         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4937         * lib/vasnprintf.c (decode_long_double): Likewise.
4938         * tests/test-argmatch.c: Insert blank lines, for clarity.
4939         * tests/test-exclude.c: Likewise.
4940
4941 2011-02-22  Bruno Haible  <bruno@clisp.org>
4942
4943         ioctl: Fix for MacOS X in 64-bit mode.
4944         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4945         value.
4946         Suggested by Eric Blake.
4947         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4948
4949 2011-02-22  Jim Meyering  <meyering@redhat.com>
4950
4951         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4952         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4953         in lib/.
4954
4955 2011-02-22  Eric Blake  <eblake@redhat.com>
4956
4957         maint: avoid any CDPATH issue
4958         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4959
4960         maint: adjust cpp indentation for my modules, as well
4961         * Makefile (sc_cpp_indent_check): Add my name.
4962         * lib/fbufmode.c: Filter through cppi.
4963         * lib/fpurge.c: Likewise.
4964         * lib/freadable.c: Likewise.
4965         * lib/freading.c: Likewise.
4966         * lib/fwritable.c: Likewise.
4967         * lib/fwriting.c: Likewise.
4968         * lib/sigaction.c: Likewise.
4969
4970 2011-02-22  Jim Meyering  <meyering@redhat.com>
4971
4972         maint: adjust cpp indentation to reflect nesting depth
4973         I.e., in a block of code that begins with an unnested "#if",
4974         put one space between the "#" in column 1 and following token.
4975         For example,
4976         -#include <sys/vfs.h>
4977         +# include <sys/vfs.h>
4978         Do this only in .c files that are part of a module I maintain.
4979         * lib/linkat.c: Filter through cppi.
4980         * lib/nanosleep.c: Likewise.
4981         * lib/openat.c: Likewise.
4982         * lib/openat-die.c: Likewise.
4983         * lib/dup3.c: Likewise.
4984         * lib/fchownat.c: Likewise.
4985         * lib/flock.c: Likewise.
4986         * lib/fsync.c: Likewise.
4987         * lib/fts.c: Likewise.
4988         * lib/getpass.c: Likewise.
4989         * lib/gettimeofday.c: Likewise.
4990         * lib/userspec.c: Likewise.
4991         * Makefile (sc_cpp_indent_check): New rule, to check this.
4992
4993 2011-02-22  Bruno Haible  <bruno@clisp.org>
4994
4995         New module 'wctomb'.
4996         * lib/stdlib.in.h (wctomb): New declaration.
4997         * lib/wctomb.c: New file.
4998         * lib/wctomb-impl.h: New file.
4999         * m4/wctomb.m4: New file.
5000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5001         REPLACE_WCTOMB.
5002         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5003         REPLACE_WCTOMB.
5004         * modules/wctomb: New file.
5005         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5006         * doc/posix-functions/wctomb.texi: Mention the new module.
5007         * modules/wctob (Depends-on): Add wctomb.
5008
5009 2011-02-22  Bruno Haible  <bruno@clisp.org>
5010
5011         New module 'mbtowc'.
5012         * lib/stdlib.in.h (mbtowc): New declaration.
5013         * lib/mbtowc.c: New file.
5014         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5015         * m4/mbtowc.m4: New file.
5016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5017         REPLACE_MBTOWC.
5018         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5019         REPLACE_MBTOWC.
5020         * modules/mbtowc: New file.
5021         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5022         * doc/posix-functions/mbtowc.texi: Mention the new module.
5023         * modules/btowc (Depends-on): Add mbtowc.
5024
5025 2011-02-22  Bruno Haible  <bruno@clisp.org>
5026
5027         wcrtomb: Add more tests for native Windows platforms.
5028         * tests/test-wcrtomb-w32-1.sh: New file.
5029         * tests/test-wcrtomb-w32-2.sh: New file.
5030         * tests/test-wcrtomb-w32-3.sh: New file.
5031         * tests/test-wcrtomb-w32-4.sh: New file.
5032         * tests/test-wcrtomb-w32-5.sh: New file.
5033         * tests/test-wcrtomb-w32.c: New file.
5034         * modules/wcrtomb-tests (Files): Add them.
5035         (Makefile.am): Arrange to run these tests.
5036         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5037         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5038
5039 2011-02-20  Bruno Haible  <bruno@clisp.org>
5040
5041         wcrtomb: Enhance test.
5042         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5043
5044 2011-02-20  Bruno Haible  <bruno@clisp.org>
5045
5046         mbrtowc: Tiny optimization.
5047         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5048
5049 2011-02-20  Jim Meyering  <meyering@redhat.com>
5050
5051         test-exclude.c: remove unmatched #endif
5052         * tests/test-exclude.c: Remove stray #endif, left over from
5053         the change of a week ago.
5054
5055 2011-02-19  Jim Meyering  <meyering@redhat.com>
5056
5057         git-version-gen: skip "-dirty" check when appropriate
5058         * build-aux/git-version-gen: Don't run any git commands when the
5059         version string comes from .tarball-version.  Prior to this, we
5060         would run git update-index --refresh even from a just-unpacked
5061         tarball directory, and that could affect a .git/ directory in a
5062         parent of the build directory.  Reported by Mike Frysinger.
5063
5064 2011-02-19  Bruno Haible  <bruno@clisp.org>
5065
5066         unictype/property-byname: Reduce the size of the 'data' segment.
5067         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5068
5069 2011-02-19  Bruno Haible  <bruno@clisp.org>
5070
5071         unictype/scripts: Reduce the size of the 'data' segment.
5072         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5073         '%pic'.
5074         * lib/unictype/scripts_byname.gperf: Regenerated.
5075
5076 2011-02-19  Bruno Haible  <bruno@clisp.org>
5077
5078         stdint: Update documentation.
5079         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5080
5081 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5082
5083         stdint: omit redundant check for wchar.h
5084         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5085         always tests whether wchar.h exists, so remove the now-redundant test.
5086
5087 2011-02-18  Bruno Haible  <bruno@clisp.org>
5088
5089         stdint: Cut dependency to module 'wchar'.
5090         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5091         include the necessary prerequisites.
5092         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5093         * modules/stdint (Depends-on): Remove wchar.
5094         (Makefile.am): Substitute HAVE_WCHAR_H.
5095         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5096
5097 2011-02-18  Eric Blake  <eblake@redhat.com>
5098
5099         longlong: skip, rather than fail, on cross-compilation
5100         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5101         when cross-compiling; regression from 2011-02-16.
5102
5103 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5104
5105         * NEWS: Mention 2011-02-08 change to stdlib.
5106
5107 2011-02-17  Bruno Haible  <bruno@clisp.org>
5108
5109         getloadavg: Add comments about platforms.
5110         * m4/getloadavg.m4: Add comment.
5111         * lib/getloadavg.c: Likewise.
5112
5113 2011-02-17  Bruno Haible  <bruno@clisp.org>
5114
5115         getloadavg: Fix link error on Solaris 2.6.
5116         * modules/getloadavg (Link): New section.
5117         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5118         linking test-getloadavg.
5119         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5120         getloadavg.
5121
5122 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5123
5124         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5125         It was 'int', but this doesn't match the IRIX 6.5 manual.
5126         Suggested by Bruno Haible in
5127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5128
5129 2011-02-17  Bruno Haible  <bruno@clisp.org>
5130
5131         havelib: Fix comments.
5132         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5133         change.
5134
5135 2011-02-17  Bruno Haible  <bruno@clisp.org>
5136
5137         havelib: Update config.rpath.
5138         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5139
5140 2011-02-17  Bruno Haible  <bruno@clisp.org>
5141
5142         getloadavg test: Add some plausibility checks.
5143         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5144         is improbable.
5145
5146 2011-02-16  Eric Blake  <eblake@redhat.com>
5147
5148         maintainer-makefile: make syntax-check a no-op from tarballs
5149         * top/maint.mk (no-vc-detected): New rule.
5150         (local-checks-available): Use it to avoid hanging if someone tries
5151         'make syntax-check' from a tarball.  Also append to any non-syntax
5152         checks already defined in cfg.mk.
5153
5154 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5155
5156         longlong: tune, particularly for common case of c99
5157
5158         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5159         or running anything if c99, or if unsigned long long int does not
5160         work.  In either case, we know the answer without further tests.
5161         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5162         it at most once, and use its results for both long long int and
5163         unsigned long long int.  This is more likely to be efficient in
5164         the common case where the program wants to check for both long
5165         long int and unsigned long long int.
5166         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5167         since the answer is already known.
5168
5169 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5170
5171         getloadavg: set errno
5172         * lib/getloadavg.c: Set errno when returning -1.  If no other
5173         error number looks appropriate, set it to ENOSYS if the getloadavg
5174         looks like it can't possibly ever work, ENOTSUP otherwise.
5175         Suggested by Bruno Haible in
5176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5177
5178         getloadavg: trim unused parts and speed up 'configure'
5179         * NEWS: Document this.
5180         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5181         always compiled if getloadavg is absent.
5182         Move test code to ...
5183         * tests/test-getloadavg.c: New file, containing previous
5184         contents of test from lib/getloadavg.c.  It also contains
5185         suggestions by Bruno Haible in
5186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5187         * modules/getloadavg-tests: New file.
5188         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5189         Do tests in the same order as they're needed for getloadavg.c.
5190         Omit setgid-related tests that generate symbols KMEM_GROUP,
5191         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5192         Do only the tests that are needed to see whether the system has
5193         getloadavg, moving the other tests into ...
5194         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5195         NLIST_NAME_UNION; nobody should be using it.  Do not define
5196         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5197         relevant, as the user of this module shouldn't care how getloadavg
5198         is implemented.
5199
5200         getloadavg: omit unused var
5201         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5202
5203 2011-02-15  Jim Meyering  <meyering@redhat.com>
5204
5205         doc: update users.txt
5206         * users.txt: Update iwhd's URL.
5207
5208 2011-02-13  Bruno Haible  <bruno@clisp.org>
5209
5210         Consistent macro naming for macros that use GCC __attribute__.
5211         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5212         _ATTRIBUTE_NONNULL_.
5213         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5214         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5215         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5216         ATTRIBUTE_DEPRECATED.
5217         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5218         ATTRIBUTE_NORETURN.
5219         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5220         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5221         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5222         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5223         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5224         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5225         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5226         ATTRIBUTE_SENTINEL.
5227         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5228         ATTRIBUTE_RETURN_CHECK.
5229         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5230         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5231         ATTRIBUTE_NORETURN.
5232         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5233         Reported by Paul Eggert.
5234
5235 2011-02-13  Bruno Haible  <bruno@clisp.org>
5236
5237         Don't interfere with a program's definition of __attribute__.
5238         * lib/argp.h (__attribute__): Remove definition.
5239         (_GL_ATTRIBUTE_FORMAT): New macro.
5240         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5241         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5242         (_GL_ATTRIBUTE_FORMAT): New macro.
5243         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5244         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5245         GCC 3 or newer.
5246         * lib/error.h (__attribute__): Remove definition.
5247         (_GL_ATTRIBUTE_FORMAT): New macro.
5248         (error, error_at_line): Use it.
5249         * lib/hash.h (__attribute__): Remove definition.
5250         (ATTRIBUTE_WUR): Update definition. Define always.
5251         * lib/openat.h (__attribute__): Remove definition.
5252         (ATTRIBUTE_NORETURN): Update definition. Define always.
5253         * lib/sigpipe-die.h (__attribute__): Remove definition.
5254         (ATTRIBUTE_NORETURN): Update definition. Define always.
5255         * lib/vasnprintf.h (__attribute__): Remove definition.
5256         (_GL_ATTRIBUTE_FORMAT): New macro.
5257         (asnprintf, vasnprintf): Use it.
5258         * lib/xalloc.h (__attribute__): Remove definition.
5259         (ATTRIBUTE_NORETURN): Update definition. Define always.
5260         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5261         * lib/xmemdup0.h (__attribute__): Remove definition.
5262         (ATTRIBUTE_NORETURN): Update definition. Define always.
5263         * lib/xprintf.h (__attribute__): Remove definition.
5264         (_GL_ATTRIBUTE_FORMAT): New macro.
5265         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5266         * lib/xstrtol.h (__attribute__): Remove definition.
5267         (ATTRIBUTE_NORETURN): Update definition. Define always.
5268         * lib/xvasprintf.h (__attribute__): Remove definition.
5269         (_GL_ATTRIBUTE_FORMAT): New macro.
5270         (xasprintf, xvasprintf): Use it.
5271         * tests/test-argmatch.c (__attribute__): Remove definition.
5272         (ATTRIBUTE_NORETURN): Update definition. Define always.
5273         * tests/test-exclude.c (__attribute__): Remove definition.
5274         (ATTRIBUTE_NORETURN): Update definition. Define always.
5275         Reported by Paul Eggert.
5276
5277 2011-02-13  Bruno Haible  <bruno@clisp.org>
5278
5279         mbrtowc: Add more tests for native Windows platforms.
5280         * tests/test-mbrtowc-w32-1.sh: New file.
5281         * tests/test-mbrtowc-w32-2.sh: New file.
5282         * tests/test-mbrtowc-w32-3.sh: New file.
5283         * tests/test-mbrtowc-w32-4.sh: New file.
5284         * tests/test-mbrtowc-w32-5.sh: New file.
5285         * tests/test-mbrtowc-w32.c: New file.
5286         * modules/mbrtowc-tests (Files): Add them.
5287         (Makefile.am): Arrange to run these tests.
5288         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5289         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5290
5291 2011-02-13  Bruno Haible  <bruno@clisp.org>
5292
5293         mbrtowc: Work around native Windows bug.
5294         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5295         guess when no suitable locale for testing was found.
5296         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5297
5298 2011-02-13  Bruno Haible  <bruno@clisp.org>
5299
5300         mbsinit: Work around mingw bug.
5301         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5302         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5303         Windows.
5304         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5305
5306 2011-02-13  Bruno Haible  <bruno@clisp.org>
5307
5308         mbsinit: Don't crash for a NULL argument.
5309         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5310         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5311
5312 2011-02-13  Bruno Haible  <bruno@clisp.org>
5313
5314         Don't interfere with a program's definition of __attribute__.
5315         * lib/stdio.in.h (__attribute__): Remove definition.
5316         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5317         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5318         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5319         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5320         * lib/string.in.h (__attribute__): Remove definition.
5321         Reported by Paul Eggert.
5322
5323 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5324
5325         stdlib: don't get in the way of non-GCC __attribute__
5326         See thread starting at
5327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5328         Revert previous stdlib change, installing the following instead:
5329         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5330         to get in the way of a non-GCC compiler that supports __attribute__.
5331         (_GL_ATTRIBUTE_RETURN): New macro.
5332         (_Exit): Use it instead of __attribute__.
5333
5334 2011-02-12  Bruno Haible  <bruno@clisp.org>
5335
5336         quotearg test: Avoid test failure on mingw.
5337         * tests/test-quotearg.sh: Convert the locale identifier from native
5338         Windows syntax to Unix syntax.
5339
5340 2011-02-12  Bruno Haible  <bruno@clisp.org>
5341
5342         setlocale: Prefer gnulib's override over libintl's override.
5343         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5344         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5345         GNULIB_defined_setlocale is set.
5346
5347 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5348
5349         stdlib: support non-GCC __attribute__
5350
5351         Fix a serious and tricky problem encountered when attempting to
5352         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5353         5.5, but it crashed due to memory corruption on Solaris 10 with
5354         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5355         bits that are otherwise zero.  This tagging is optional inside
5356         Emacs but is preferred and is used when __attribute__ ((__aligned
5357         (8))) works, as it does with both recent-enough GCC and with Sun C
5358         5.11.  However, Sun C 5.11 is not GCC and does not #define
5359         __GNUC__ and __GNUC_MINOR__.
5360
5361         When I added the getloadavg module to Emacs, it brought in
5362         stdlib.in.h, which contained this fragment:
5363
5364            #ifndef __attribute__
5365            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5366            #  define __attribute__(Spec)   /* empty */
5367            # endif
5368            #endif
5369
5370         When files that include <stdlib.h> were compiled with Sun C 5.11,
5371         the above code disabled __attribute__ ((__aligned (8))), which
5372         caused variables to not be properly aligned, which eventually led
5373         to the pointer corruption mentioned above.  (This was a bit hard
5374         to diagnose, unfortunately.)
5375
5376         Several "#define __attribute__(X) /* empty */" code snippets need
5377         to be eradicated from Gnulib to work with non-GCC compilers that
5378         support __attribute__.  The Autoconf way to do this is to test for
5379         each kind of attribute that we want support for, and selectively
5380         enable that in source code.
5381
5382         Fix this problem just for stdlib.h, by adding a test for the
5383         __noreturn__ attribute, and change stdlib.in.h to use that test
5384         when needed.  This technique can be easily generalized to the
5385         other *.in.h files and attributes, and a similar technique can be
5386         used for *.h and *.c files.  This patch is enough to solve the
5387         problem for Emacs + getloadavg, and I thought I'd publish it for
5388         feedback before undertaking further, similar fixes in other
5389         modules.
5390
5391         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5392         because it's not needed for stdlib.h.  It merely substitutes the
5393         value directly into stdlib.h.  We may well need to #define it, or
5394         similar symbols, for other modules, but it's nice to also have an
5395         option to not #define it for applications like Emacs that do not
5396         need it.
5397
5398         * lib/stdlib.in.h (__attribute__): Do not #define.
5399         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5400         be defined only if the _Exit module is also used.
5401         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5403         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5404         platforms.
5405         * modules/_Exit (Files): Add m4/attribute.m4.
5406         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5407         * m4/attribute.m4: New file.
5408
5409 2011-02-12  Bruno Haible  <bruno@clisp.org>
5410
5411         wcsrtombs: Work around bug on native Windows.
5412         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5413         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5414         instead of len.
5415         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5416
5417 2011-02-12  Bruno Haible  <bruno@clisp.org>
5418
5419         mbsrtowcs: Work around bug on native Windows.
5420         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5421         against mingw bug.
5422         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5423
5424 2011-02-12  Bruno Haible  <bruno@clisp.org>
5425
5426         Avoid setlocale bugs in tests.
5427         * modules/btowc (Dependencies): Add setlocale.
5428         * modules/c-strcase (Dependencies): Likewise.
5429         * modules/mbmemcasecmp (Dependencies): Likewise.
5430         * modules/mbmemcasecoll (Dependencies): Likewise.
5431         * modules/mbrtowc (Dependencies): Likewise.
5432         * modules/mbscasecmp (Dependencies): Likewise.
5433         * modules/mbscasestr (Dependencies): Likewise.
5434         * modules/mbschr (Dependencies): Likewise.
5435         * modules/mbscspn (Dependencies): Likewise.
5436         * modules/mbsinit (Dependencies): Likewise.
5437         * modules/mbsncasecmp (Dependencies): Likewise.
5438         * modules/mbsnrtowcs (Dependencies): Likewise.
5439         * modules/mbspbrk (Dependencies): Likewise.
5440         * modules/mbspcasecmp (Dependencies): Likewise.
5441         * modules/mbsrchr (Dependencies): Likewise.
5442         * modules/mbsrtowcs (Dependencies): Likewise.
5443         * modules/mbsspn (Dependencies): Likewise.
5444         * modules/mbsstr (Dependencies): Likewise.
5445         * modules/nl_langinfo (Dependencies): Likewise.
5446         * modules/quotearg (Dependencies): Likewise.
5447         * modules/unicase/locale-language (Dependencies): Likewise.
5448         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5449         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5450         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5451         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5452         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5453         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5454         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5455         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5456         * modules/vasnprintf-posix (Dependencies): Likewise.
5457         * modules/wcrtomb (Dependencies): Likewise.
5458         * modules/wcsnrtombs (Dependencies): Likewise.
5459         * modules/wcsrtombs (Dependencies): Likewise.
5460
5461 2011-02-12  Bruno Haible  <bruno@clisp.org>
5462
5463         setlocale: Workaround native Windows bug.
5464         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5465         succeeds but sets LC_CTYPE to "C", report a failure.
5466         * tests/test-setlocale2.sh: New file.
5467         * tests/test-setlocale2.c: New file.
5468         * modules/setlocale-tests (Files): Add the new files.
5469         (Makefile.am): Enable test-setlocale2.sh test.
5470         * doc/posix-functions/setlocale.texi: Mention workaround.
5471
5472 2011-02-11  Bruno Haible  <bruno@clisp.org>
5473
5474         Tests for module 'setlocale'.
5475         * modules/setlocale-tests: New file.
5476         * tests/test-setlocale1.sh: New file.
5477         * tests/test-setlocale1.c: New file.
5478
5479         New module 'setlocale'.
5480         * lib/locale.in.h (setlocale): New declaration.
5481         * lib/setlocale.c: New file, based on
5482         gettext/gettext-runtime/intl/setlocale.c.
5483         * m4/setlocale.m4: New file.
5484         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5485         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5486         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5487         REPLACE_SETLOCALE.
5488         * modules/setlocale: New file.
5489         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5490         * doc/posix-functions/setlocale.texi: Mention the new module.
5491
5492 2011-02-11  Bruno Haible  <bruno@clisp.org>
5493
5494         Prepare for locale dependent tests on mingw.
5495         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5496         because it has the wrong locale encoding.
5497         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5498         French_France.1252 instead of "fr".
5499         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5500         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5501         because it has the wrong locale encoding.
5502         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5503         native Windows, try Turkish_Turkey.65001.
5504         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5505         Chinese_China.54936.
5506
5507         Prepare for locale dependent tests on mingw.
5508         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5509         differently.
5510         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5511         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5512         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5513         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5514
5515 2011-02-11  Eric Blake  <eblake@redhat.com>
5516
5517         strptime: avoid compiler warnings
5518         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5519         compiler warnings about dead code.
5520         Reported by Daniel P. Berrange.
5521
5522 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5523
5524         doc: update users.txt
5525         * users.txt: Add rcs.
5526
5527 2011-02-10  John W. Eaton  <jwe@gnu.org>
5528
5529         doc: update users.txt
5530         * users.txt: Add octave.
5531
5532 2011-02-10  Jim Meyering  <meyering@redhat.com>
5533
5534         doc: update users.txt
5535         * users.txt: Add iwhd.
5536
5537 2011-02-09  Bruno Haible  <bruno@clisp.org>
5538
5539         gnulib-tool: Make copyright notice adjustment more robust.
5540         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5541         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5542         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5543         License".
5544         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5545
5546 2011-02-06  Bruno Haible  <bruno@clisp.org>
5547
5548         New module 'towctrans'.
5549         * modules/towctrans: New file.
5550         * lib/wctype.in.h (towctrans): New declaration.
5551         * lib/towctrans.c: New file.
5552         * lib/towctrans-impl.h: New file.
5553         * m4/towctrans.m4: New file.
5554         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5555         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5556         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5557         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5558         * doc/posix-functions/towctrans.texi: Mention the new module.
5559
5560 2011-02-06  Bruno Haible  <bruno@clisp.org>
5561
5562         New module 'wctrans'.
5563         * modules/wctrans: New file.
5564         * lib/wctype.in.h (wctrans): New declaration.
5565         * lib/wctrans.c: New file.
5566         * lib/wctrans-impl.h: New file.
5567         * m4/wctrans.m4: New file.
5568         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5569         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5570         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5571         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5572         * doc/posix-functions/wctrans.texi: Mention the new module.
5573
5574 2011-02-06  Bruno Haible  <bruno@clisp.org>
5575
5576         New module 'iswctype'.
5577         * modules/iswctype: New file.
5578         * lib/wctype.in.h (iswctype): New declaration.
5579         * lib/iswctype.c: New file.
5580         * lib/iswctype-impl.h: New file.
5581         * m4/iswctype.m4: New file.
5582         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5583         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5584         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5585         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5586         * doc/posix-functions/iswctype.texi: Mention the new module and the
5587         HP-UX 11.00 problem.
5588
5589 2011-02-06  Bruno Haible  <bruno@clisp.org>
5590
5591         New module 'wctype'.
5592         * modules/wctype: Change to represent the wctype() substitute.
5593         * lib/wctype.in.h (wctype): New declaration.
5594         * lib/wctype.c: New file.
5595         * lib/wctype-impl.h: New file.
5596         * m4/wctype.m4: New file.
5597         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5598         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5599         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5600         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5601         * doc/posix-functions/wctype.texi: Mention the new module and the
5602         HP-UX 11.00 problem.
5603
5604 2011-02-06  Bruno Haible  <bruno@clisp.org>
5605
5606         wctype-h: Ensure wctype_t and wctrans_t are defined.
5607         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5608         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5609         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5610         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5611         HAVE_WCTRANS_T.
5612         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5613
5614 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5615
5616         flock: fix license typo
5617
5618         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5619         omitted.
5620
5621 2011-02-08  Bruno Haible  <bruno@clisp.org>
5622
5623         Split large sed scripts, for HP-UX sed.
5624         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5625         to avoid HP-UX limit of 99 commands, in the near future.
5626         * modules/stdlib (Makefile.am): Likewise.
5627         * modules/unistd (Makefile.am): Likewise.
5628         * modules/wchar (Makefile.am): Likewise.
5629         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5630         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5632
5633 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5634             Bruno Haible  <bruno@clisp.org>
5635
5636         stdlib: improve random_r modularization
5637         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5638         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5639         you also need the random_r module to get this material right.
5640         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5641         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5642         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5643
5644 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5645
5646         stdlib: don't depend on stdint
5647         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5648         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5649         be independent of whether stdint.h is needed.
5650         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5651         here, instead of ...
5652         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5653         struct random_data should be using the random_r module, not just
5654         the stdlib module (which wouldn't make sense: what package needs
5655         just struct random_data without also needing random_r?).
5656         * modules/stdlib (Depends-on): Remove stdint.
5657
5658         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5659         See the thread rooted at
5660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5661         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5662         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5663         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5664         __VMS)); previously it was always included (via fcntl--.h).
5665         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5666         hand; this is good enough for load averages.  Also, do not use
5667         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5668         flags directly if available and don't bother otherwise.  (Packages
5669         that need the extra reliability should use the modules that define
5670         these flags on older platforms that lack them.)
5671         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5672         fcntl-safer.
5673
5674 2011-02-08  Jim Meyering  <meyering@redhat.com>
5675
5676         di-set.h, ino-map.h: add multiple-inclusion guard
5677         Technically, the guard is required only for ino-map.h, due to its
5678         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5679         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5680         * lib/ino-map.h: Likewise.
5681
5682 2011-02-06  Bruno Haible  <bruno@clisp.org>
5683
5684         iswblank: Ensure declaration on glibc systems.
5685         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5686         * modules/iswblank (Dependencies): Add 'extensions'.
5687         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5688
5689 2011-02-06  Bruno Haible  <bruno@clisp.org>
5690
5691         New module 'iswblank'.
5692         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5693         * modules/iswblank: New file.
5694         * modules/wctype-h (Files): Remove lib/iswblank.c.
5695         (Makefile.am): Substitute GNULIB_ISWBLANK.
5696         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5697         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5698         (gl_WCTYPE_H_DEFAULTS): New macro.
5699         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5700         * modules/iswblank-tests: New file.
5701         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5702         * tests/test-wctype-h.c (main): Remove iswblank tests.
5703         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5704         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5705         of 'wctype-h'.
5706         * NEWS: Mention the change.
5707         * modules/mbchar (Depends-on): Add iswblank.
5708
5709 2011-02-08  Bruno Haible  <bruno@clisp.org>
5710
5711         di-set tests: Refactor.
5712         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5713         unnecessary includes.
5714         (ASSERT): Remove macro.
5715         (main): Make C90 compliant by avoiding variable declaration after
5716         statement.
5717         * modules/di-set-tests (Files): Add tests/macros.h.
5718
5719 2011-02-08  Bruno Haible  <bruno@clisp.org>
5720
5721         ino-map tests: Refactor.
5722         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5723         unnecessary includes.
5724         (ASSERT): Remove macro.
5725         (main): Make C90 compliant by avoiding variable declaration after
5726         statement.
5727         * modules/ino-map-tests (Files): Add tests/macros.h.
5728
5729 2011-02-08  Jim Meyering  <meyering@redhat.com>
5730
5731         di-set: add "const" to a cast
5732         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5733         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5734
5735 2011-02-06  Bruno Haible  <bruno@clisp.org>
5736
5737         Rename module 'wctype' to 'wctype-h'.
5738         * modules/wctype-h: Renamed from modules/wctype.
5739         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5740         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5741         (Files, Depends-on, Makefile.am): Update.
5742         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5743         (Files, Makefile.am): Update.
5744         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5745         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5746         * doc/posix-headers/wctype.texi: Update.
5747         * doc/posix-functions/iswalnum.texi: Update.
5748         * doc/posix-functions/iswalpha.texi: Update.
5749         * doc/posix-functions/iswblank.texi: Update.
5750         * doc/posix-functions/iswcntrl.texi: Update.
5751         * doc/posix-functions/iswdigit.texi: Update.
5752         * doc/posix-functions/iswgraph.texi: Update.
5753         * doc/posix-functions/iswlower.texi: Update.
5754         * doc/posix-functions/iswprint.texi: Update.
5755         * doc/posix-functions/iswpunct.texi: Update.
5756         * doc/posix-functions/iswspace.texi: Update.
5757         * doc/posix-functions/iswupper.texi: Update.
5758         * doc/posix-functions/iswxdigit.texi: Update.
5759         * doc/posix-functions/towlower.texi: Update.
5760         * doc/posix-functions/towupper.texi: Update.
5761         * NEWS: Mention the change.
5762         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5763         * modules/mbchar (Dependencies): Likewise.
5764         * modules/mbswidth (Dependencies): Likewise.
5765         * modules/quotearg (Dependencies): Likewise.
5766         * modules/regex (Dependencies): Likewise.
5767         * modules/wcscasecmp (Dependencies): Likewise.
5768         * modules/wcsncasecmp (Dependencies): Likewise.
5769         * modules/wcwidth (Dependencies): Likewise.
5770
5771 2011-02-06  Bruno Haible  <bruno@clisp.org>
5772
5773         New module 'wcswidth'.
5774         * modules/wcswidth: New file.
5775         * lib/wchar.in.h (wcswidth): New declaration.
5776         * lib/wcswidth.c: New file.
5777         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5778         * m4/wcswidth.m4: New file.
5779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5781         REPLACE_WCSWIDTH.
5782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5783         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5784         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5785         * doc/posix-functions/wcswidth.texi: Mention the new module.
5786
5787 2011-02-06  Bruno Haible  <bruno@clisp.org>
5788
5789         New module 'wcstok'.
5790         * modules/wcstok: New file.
5791         * lib/wchar.in.h (wcstok): New declaration.
5792         * lib/wcstok.c: New file.
5793         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5794         * m4/wcstok.m4: New file.
5795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5797         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5798         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5799         * doc/posix-functions/wcstok.texi: Mention the new module.
5800
5801 2011-02-06  Bruno Haible  <bruno@clisp.org>
5802
5803         New module 'wcsstr'.
5804         * modules/wcsstr: New file.
5805         * lib/wchar.in.h (wcsstr): New declaration.
5806         * lib/wcsstr.c: New file.
5807         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5808         * m4/wcsstr.m4: New file.
5809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5812         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5813         * doc/posix-functions/wcsstr.texi: Mention the new module.
5814
5815 2011-02-06  Bruno Haible  <bruno@clisp.org>
5816
5817         New module 'wcspbrk'.
5818         * modules/wcspbrk: New file.
5819         * lib/wchar.in.h (wcspbrk): New declaration.
5820         * lib/wcspbrk.c: New file.
5821         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5822         * m4/wcspbrk.m4: New file.
5823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5826         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5827         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5828
5829 2011-02-06  Bruno Haible  <bruno@clisp.org>
5830
5831         New module 'wcsspn'.
5832         * modules/wcsspn: New file.
5833         * lib/wchar.in.h (wcsspn): New declaration.
5834         * lib/wcsspn.c: New file.
5835         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5836         * m4/wcsspn.m4: New file.
5837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5840         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5841         * doc/posix-functions/wcsspn.texi: Mention the new module.
5842
5843 2011-02-06  Bruno Haible  <bruno@clisp.org>
5844
5845         New module 'wcscspn'.
5846         * modules/wcscspn: New file.
5847         * lib/wchar.in.h (wcscspn): New declaration.
5848         * lib/wcscspn.c: New file.
5849         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5850         * m4/wcscspn.m4: New file.
5851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5854         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5855         * doc/posix-functions/wcscspn.texi: Mention the new module.
5856
5857 2011-02-06  Bruno Haible  <bruno@clisp.org>
5858
5859         New module 'wcsrchr'.
5860         * modules/wcsrchr: New file.
5861         * lib/wchar.in.h (wcsrchr): New declaration.
5862         * lib/wcsrchr.c: New file.
5863         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5864         * m4/wcsrchr.m4: New file.
5865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5868         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5869         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5870
5871 2011-02-06  Bruno Haible  <bruno@clisp.org>
5872
5873         New module 'wcschr'.
5874         * modules/wcschr: New file.
5875         * lib/wchar.in.h (wcschr): New declaration.
5876         * lib/wcschr.c: New file.
5877         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5878         * m4/wcschr.m4: New file.
5879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5882         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5883         * doc/posix-functions/wcschr.texi: Mention the new module.
5884
5885 2011-02-06  Bruno Haible  <bruno@clisp.org>
5886
5887         New module 'wcsdup'.
5888         * modules/wcsdup: New file.
5889         * lib/wchar.in.h (wcsdup): New declaration.
5890         * lib/wcsdup.c: New file.
5891         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5892         * m4/wcsdup.m4: New file.
5893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5896         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5897         * doc/posix-functions/wcsdup.texi: Mention the new module.
5898
5899 2011-02-06  Bruno Haible  <bruno@clisp.org>
5900
5901         New module 'wcsxfrm'.
5902         * modules/wcsxfrm: New file.
5903         * lib/wchar.in.h (wcsxfrm): New declaration.
5904         * lib/wcsxfrm.c: New file.
5905         * lib/wcsxfrm-impl.h: New file.
5906         * m4/wcsxfrm.m4: New file.
5907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5910         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5911         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5912
5913 2011-02-06  Bruno Haible  <bruno@clisp.org>
5914
5915         New module 'wcscoll'.
5916         * modules/wcscoll: New file.
5917         * lib/wchar.in.h (wcscoll): New declaration.
5918         * lib/wcscoll.c: New file.
5919         * lib/wcscoll-impl.h: New file.
5920         * m4/wcscoll.m4: New file.
5921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5924         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5925         * doc/posix-functions/wcscoll.texi: Mention the new module.
5926
5927 2011-02-06  Bruno Haible  <bruno@clisp.org>
5928
5929         New module 'wcsncasecmp'.
5930         * modules/wcsncasecmp: New file.
5931         * lib/wchar.in.h (wcsncasecmp): New declaration.
5932         * lib/wcsncasecmp.c: New file.
5933         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5934         * m4/wcsncasecmp.m4: New file.
5935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5938         HAVE_WCSNCASECMP.
5939         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5940         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5941
5942 2011-02-06  Bruno Haible  <bruno@clisp.org>
5943
5944         New module 'wcscasecmp'.
5945         * modules/wcscasecmp: New file.
5946         * lib/wchar.in.h (wcscasecmp): New declaration.
5947         * lib/wcscasecmp.c: New file.
5948         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5949         * m4/wcscasecmp.m4: New file.
5950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5953         HAVE_WCSCASECMP.
5954         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5955         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5956
5957 2011-02-05  Bruno Haible  <bruno@clisp.org>
5958
5959         New module 'wcsncmp'.
5960         * modules/wcsncmp: New file.
5961         * lib/wchar.in.h (wcsncmp): New declaration.
5962         * lib/wcsncmp.c: New file.
5963         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5964         * m4/wcsncmp.m4: New file.
5965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5968         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5969         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5970
5971 2011-02-05  Bruno Haible  <bruno@clisp.org>
5972
5973         New module 'wcscmp'.
5974         * modules/wcscmp: New file.
5975         * lib/wchar.in.h (wcscmp): New declaration.
5976         * lib/wcscmp.c: New file.
5977         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5978         * m4/wcscmp.m4: New file.
5979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5982         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5983         * doc/posix-functions/wcscmp.texi: Mention the new module.
5984
5985 2011-02-05  Bruno Haible  <bruno@clisp.org>
5986
5987         New module 'wcsncat'.
5988         * modules/wcsncat: New file.
5989         * lib/wchar.in.h (wcsncat): New declaration.
5990         * lib/wcsncat.c: New file.
5991         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5992         * m4/wcsncat.m4: New file.
5993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5996         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5997         * doc/posix-functions/wcsncat.texi: Mention the new module.
5998
5999 2011-02-05  Bruno Haible  <bruno@clisp.org>
6000
6001         New module 'wcscat'.
6002         * modules/wcscat: New file.
6003         * lib/wchar.in.h (wcscat): New declaration.
6004         * lib/wcscat.c: New file.
6005         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6006         * m4/wcscat.m4: New file.
6007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6010         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6011         * doc/posix-functions/wcscat.texi: Mention the new module.
6012
6013 2011-02-05  Bruno Haible  <bruno@clisp.org>
6014
6015         New module 'wcpncpy'.
6016         * modules/wcpncpy: New file.
6017         * lib/wchar.in.h (wcpncpy): New declaration.
6018         * lib/wcpncpy.c: New file.
6019         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6020         * m4/wcpncpy.m4: New file.
6021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6023         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6024         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6025         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6026
6027 2011-02-05  Bruno Haible  <bruno@clisp.org>
6028
6029         New module 'wcsncpy'.
6030         * modules/wcsncpy: New file.
6031         * lib/wchar.in.h (wcsncpy): New declaration.
6032         * lib/wcsncpy.c: New file.
6033         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6034         * m4/wcsncpy.m4: New file.
6035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6038         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6039         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6040
6041 2011-02-05  Bruno Haible  <bruno@clisp.org>
6042
6043         New module 'wcpcpy'.
6044         * modules/wcpcpy: New file.
6045         * lib/wchar.in.h (wcpcpy): New declaration.
6046         * lib/wcpcpy.c: New file.
6047         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6048         * m4/wcpcpy.m4: New file.
6049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6051         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6052         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6053         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6054
6055 2011-02-05  Bruno Haible  <bruno@clisp.org>
6056
6057         New module 'wcscpy'.
6058         * modules/wcscpy: New file.
6059         * lib/wchar.in.h (wcscpy): New declaration.
6060         * lib/wcscpy.c: New file.
6061         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6062         * m4/wcscpy.m4: New file.
6063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6066         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6067         * doc/posix-functions/wcscpy.texi: Mention the new module.
6068
6069 2011-02-05  Bruno Haible  <bruno@clisp.org>
6070
6071         New module 'wcsnlen'.
6072         * modules/wcsnlen: New file.
6073         * lib/wchar.in.h (wcsnlen): New declaration.
6074         * lib/wcsnlen.c: New file.
6075         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6076         * m4/wcsnlen.m4: New file.
6077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6080         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6081         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6082
6083 2011-02-05  Bruno Haible  <bruno@clisp.org>
6084
6085         New module 'wcslen'.
6086         * modules/wcslen: New file.
6087         * lib/wchar.in.h (wcslen): New declaration.
6088         * lib/wcslen.c: New file.
6089         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6090         * m4/wcslen.m4: New file.
6091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6094         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6095         * doc/posix-functions/wcslen.texi: Mention the new module.
6096
6097 2011-02-05  Bruno Haible  <bruno@clisp.org>
6098
6099         New module 'wmemset'.
6100         * modules/wmemset: New file.
6101         * lib/wchar.in.h (wmemset): New declaration.
6102         * lib/wmemset.c: New file.
6103         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6104         * m4/wmemset.m4: New file.
6105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6107         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6108         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6109         * doc/posix-functions/wmemset.texi: Mention the new module.
6110
6111 2011-02-05  Bruno Haible  <bruno@clisp.org>
6112
6113         New module 'wmemmove'.
6114         * modules/wmemmove: New file.
6115         * lib/wchar.in.h (wmemmove): New declaration.
6116         * lib/wmemmove.c: New file.
6117         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6118         * m4/wmemmove.m4: New file.
6119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6121         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6122         HAVE_WMEMMOVE.
6123         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6124         * doc/posix-functions/wmemmove.texi: Mention the new module.
6125
6126 2011-02-05  Bruno Haible  <bruno@clisp.org>
6127
6128         New module 'wmemcpy'.
6129         * modules/wmemcpy: New file.
6130         * lib/wchar.in.h (wmemcpy): New declaration.
6131         * lib/wmemcpy.c: New file.
6132         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6133         * m4/wmemcpy.m4: New file.
6134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6136         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6137         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6138         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6139
6140 2011-02-05  Bruno Haible  <bruno@clisp.org>
6141
6142         New module 'wmemcmp'.
6143         * modules/wmemcmp: New file.
6144         * lib/wchar.in.h (wmemcmp): New declaration.
6145         * lib/wmemcmp.c: New file.
6146         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6147         * m4/wmemcmp.m4: New file.
6148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6150         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6151         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6152         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6153
6154 2011-02-07  Jim Meyering  <meyering@redhat.com>
6155
6156         di-set, ino-map: new modules, from coreutils
6157         * lib/di-set.c: New file.
6158         * lib/di-set.h: Likewise.
6159         * lib/ino-map.c: Likewise.
6160         * lib/ino-map.h: Likewise.
6161         * modules/di-set: Likewise.
6162         * modules/di-set-tests: Likewise.
6163         * modules/ino-map: Likewise.
6164         * modules/ino-map-tests: Likewise.
6165         * tests/test-di-set.c: Likewise.
6166         * tests/test-ino-map.c: Likewise.
6167
6168 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6169
6170         getloadavg: merge minor changes from Emacs
6171
6172         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6173         (getloadavg): Use memset, not bzero.
6174
6175         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6176         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6177         clash (bug#86).
6178
6179 2010-11-14  Bruno Haible  <bruno@clisp.org>
6180
6181         Allow multiple gnulib generated replacements to coexist.
6182         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6183         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6184         * lib/langinfo.in.h (nl_item): Likewise.
6185         * lib/math.in.h (_NaN, NAN): Likewise.
6186         * lib/netdb.in.h (struct addrinfo): Likewise.
6187         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6188         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6189         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6190         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6191         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6192         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6193         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6194         pthread_mutexattr_init, pthread_mutexattr_settype,
6195         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6196         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6197         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6198         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6199         * lib/sched.in.h (struct sched_param): Likewise.
6200         * lib/se-selinux.in.h (security_class_t, security_context_t,
6201         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6202         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6203         lsetfilecon, fsetfilecon, security_check_context,
6204         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6205         Likewise.
6206         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6207         Likewise.
6208         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6209         _gl_function_taking_int_returning_void_t, union sigval,
6210         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6211         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6212         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6213         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6214         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6215         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6216         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6217         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6218         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6219         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6220         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6221         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6222         socklen_t, rpl_fd_isset): Likewise.
6223         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6224         * lib/sys_time.in.h (struct timeval): Likewise.
6225         * lib/sys_times.in.h (struct tms): Likewise.
6226         * lib/sys_utsname.in.h (struct utsname):
6227         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6228         * lib/unistd.in.h (getpagesize): Likewise.
6229         * lib/wchar.in.h (mbstate_t): Likewise.
6230         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6231         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6232         towlower, towupper): Likewise.
6233         Reported by Sam Steingold <sds@gnu.org>.
6234
6235 2011-02-05  Eric Blake  <eblake@redhat.com>
6236
6237         unsetenv: work around Haiku issues
6238         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6239         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6240
6241 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6242
6243         libposix: avoid calling error() within libposix
6244         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6245         is defined.
6246
6247 2011-02-05  Eric Blake  <eblake@redhat.com>
6248
6249         strerror_r-posix: port to cygwin
6250         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6251         implementation.
6252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6253         * tests/test-strerror_r.c (main): Fix test.
6254         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6255         issue.
6256
6257 2011-02-05  Bruno Haible  <bruno@clisp.org>
6258
6259         New module 'wmemchr'.
6260         * modules/wmemchr: New file.
6261         * lib/wchar.in.h (wmemchr): New declaration.
6262         * lib/wmemchr.c: New file.
6263         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6264         * m4/wmemchr.m4: New file.
6265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6267         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6268         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6269         * doc/posix-functions/wmemchr.texi: Mention the new module.
6270
6271 2011-02-04  Eric Blake  <eblake@redhat.com>
6272
6273         fdopendir: detect FreeBSD bug
6274         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6275         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6276
6277 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6278
6279         stdbool: do not define HAVE_STDBOOL_H
6280         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6281         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6282         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6283         imported from the latest Autoconf git.  It was motivated by Emacs,
6284         which uses gnulib but does not need HAVE_STDBOOL_H.
6285
6286 2011-02-04  Bruno Haible  <bruno@clisp.org>
6287
6288         wcsnrtombs: Prepare for new module wwcsnrtombs.
6289         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6290         * lib/wcsnrtombs.c: Include it.
6291         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6292
6293         wcsrtombs: Prepare for new module wwcsrtombs.
6294         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6295         * lib/wcsrtombs.c: Include it.
6296         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6297
6298         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6299         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6300         * lib/mbsnrtowcs.c: Include it.
6301         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6302
6303         mbsrtowcs: Prepare for new module mbsrtowwcs.
6304         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6305         * lib/mbsrtowcs.c: Include it.
6306         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6307
6308 2011-02-04  Bruno Haible  <bruno@clisp.org>
6309
6310         vasnprintf: Reduce use of malloc for small format strings.
6311         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6312         (arguments): Add room for the first 7 arguments.
6313         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6314         (char_directives, u8_directives, u16_directives, u32_directives): Add
6315         room for the first 7 directives.
6316         * lib/printf-parse.c: Include <string.h>.
6317         (PRINTF_PARSE): Change memory handling code so that it uses the first
6318         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6319         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6320         Reported by Pádraig Brady <P@draigbrady.com>.
6321
6322 2011-01-31  Eric Blake  <eblake@redhat.com>
6323
6324         dup2: work around Haiku bug
6325         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6326         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6327         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6328         * tests/test-dup2.c (main): Enhance test.
6329
6330 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6331
6332         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6333         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6334         declared by eglibc 2.11.2.
6335         * lib/stdio.in.h: Likewise.
6336
6337 2011-01-31  Eric Blake  <eblake@redhat.com>
6338
6339         ignore-value: add missing test dependency
6340         * tests/test-ignore-value.c: Revert previous change; stdio.h
6341         provides off_t.
6342         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6343
6344 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6345
6346         mktime: clarify long_int width checking
6347         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6348         the top level, to make it clearer that the assumption about
6349         long_int width is being checked.  See
6350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6351
6352 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6353
6354         ignore-value: Fix self-test.
6355         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6356
6357 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6358
6359         TYPE_MAXIMUM: avoid theoretically undefined behavior
6360         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6361         negative number, which the C Standard says has undefined behavior.
6362         In practice this is not a problem, but might as well do it by the book.
6363         Reported by Rich Felker and Eric Blake; see
6364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6365         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6366         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6368         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6369         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6370         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6371
6372         mktime: #undef mktime before #defining it
6373         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6374
6375         mktime: systematically normalize tm_isdst comparisons
6376         * lib/mktime.c (isdst_differ): New function.
6377         (__mktime_internal): Use it systematically for all isdst comparisons.
6378         This completes the fix for libc BZ #6723, and removes the need for
6379         normalizing tm_isdst.  See
6380         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6381         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6382
6383         mktime: fix some integer overflow issues and sidestep the rest
6384
6385         This was prompted by a bug report by Benjamin Lindner for MinGW
6386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6387         His bug is due to signed integer overflow (0 - INT_MIN), and I
6388         I scanned through mktime.c looking for other integer overflow
6389         problems, fixing all the bugs I found.
6390
6391         Although the C Standard says the resulting code is still not safe
6392         in the presence of integer overflow, in practice it should be good
6393         enough for all real-world two's-complement implementations, except
6394         for debugging environments that deliberately trap on integer
6395         overflow (e.g., gcc -ftrapv).
6396
6397         * lib/mktime.c (WRAPV): New macro.
6398         (SHR): Also check that long_int and time_t shift right in the
6399         usual way, before using the fast-but-unportable method.
6400         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6401         used.  The code already assumed two's complement, so there's
6402         no need to test for alternatives.  All uses removed.
6403         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6404         the C standard.  Problem reported by Rich Felker in
6405         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6406         (twos_complement_arithmetic): Also check long_int and time_t.
6407         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6408         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6409         (__mktime_internal): Avoid integer overflow with unary subtraction
6410         in two instances where -1 - X is an adequate replacement for -X,
6411         since the calculations are approximate.
6412
6413 2011-01-29  Eric Blake  <eblake@redhat.com>
6414
6415         mktime: avoid infinite loop
6416         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6417         type; behavior is still undefined but portable to all known targets.
6418         Reported by Rich Felker.
6419
6420 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6421
6422         rename, unlink, same-inode: Relicense.
6423         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6424         * modules/unlink (License): Likewise.
6425         * modules/same-inode (License): Likewise.
6426
6427 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6428
6429         mktime: avoid problems on NetBSD 5 / i386
6430         * lib/mktime.c (long_int): New type.  This works around a problem
6431         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6432         but time_t is 64 bits, and where I expect the existing code is
6433         wrong in some cases.
6434         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6435         (ydhms_diff): Bring back the compile-time check for wide-enough
6436         year and yday.
6437
6438         mktime: fix misspelling in comment
6439         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6440         This merges all recent glibc changes of importance.
6441
6442 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6443
6444         move-if-change: cope with concurrent mv of identical file.
6445         * build-aux/move-if-change (CMPPROG): Accept environment
6446         variable as an override for `cmp'.
6447         (usage): Document CMPPROG.
6448         Adjust comparison to drop stdout.  Cope with failure of mv if
6449         the target file exists and is identical to the source, for
6450         parallel builds.
6451         Report from H.J. Lu against binutils in PR binutils/12283.
6452
6453 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6454
6455         * users.txt: Mention sharutils.
6456
6457 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6458
6459         * users.txt: Mention OATH Toolkit.
6460
6461 2011-01-27  Bruno Haible  <bruno@clisp.org>
6462
6463         Prepare for supporting FreeBSD 10.
6464         * build-aux/config.libpath: Remove handling of freebsd1*.
6465
6466 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6467
6468         Prepare for supporting FreeBSD 10.
6469         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6470         match FreeBSD 10.0.
6471
6472 2011-01-27  Bruno Haible  <bruno@clisp.org>
6473
6474         vma-iter, get-rusage-as: Add OpenBSD support.
6475         * modules/vma-iter (configure.ac): Test for mquery.
6476         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6477         * lib/vma-iter.c: Include <sys/mman.h>.
6478         (vma_iterate): Add an implementation based on mquery().
6479         * lib/resource-ext.h (get_rusage_as): Update comments.
6480         * lib/get-rusage-as.c: Likewise.
6481         * lib/get-rusage-data.c: Likewise.
6482
6483 2011-01-26  Karl Berry  <karl@gnu.org>
6484
6485         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6486         variables to make it easier to override the makeinfo program used.
6487
6488 2011-01-26  Eric Blake  <eblake@redhat.com>
6489
6490         fcntl: work around Haiku F_DUPFD bugs
6491         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6492         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6493         cloexec bit on duplication.
6494         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6495
6496 2011-01-26  Bruno Haible  <bruno@clisp.org>
6497
6498         Enable memory leak tests on AIX.
6499         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6500         * tests/test-fprintf-posix3.c (main): Likewise.
6501
6502 2011-01-26  Bruno Haible  <bruno@clisp.org>
6503
6504         Tests for module 'get-rusage-data'.
6505         * modules/get-rusage-data-tests: New file.
6506         * tests/test-get-rusage-data.c: New file.
6507
6508         New module 'get-rusage-data'.
6509         * lib/resource-ext.h (get_rusage_data): New declaration.
6510         * lib/get-rusage-data.c: New file.
6511         * modules/get-rusage-data: New file.
6512
6513 2011-01-25  Bruno Haible  <bruno@clisp.org>
6514
6515         get-rusage-as: Allow for easier testing.
6516         * lib/resource-ext.h (get_rusage_as): Add comment.
6517         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6518         (main): New function for interactive testing.
6519
6520 2011-01-25  Bruno Haible  <bruno@clisp.org>
6521
6522         vma-iter: Treat Haiku like BeOS.
6523         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6524         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6525
6526 2011-01-25  Eric Blake  <eblake@redhat.com>
6527
6528         c-stack: fix regression on cygwin when libsigsegv is present
6529         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6530
6531 2011-01-24  Bruno Haible  <bruno@clisp.org>
6532
6533         vma-iter: Avoid empty intervals.
6534         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6535         on an empty interval.
6536
6537 2011-01-24  Jim Meyering  <meyering@redhat.com>
6538
6539         u64: remove unnecessary #include
6540         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6541
6542 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6543
6544         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6545         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6546
6547 2011-01-23  Bruno Haible  <bruno@clisp.org>
6548
6549         New module 'vma-iter'.
6550         * lib/vma-iter.h: New file.
6551         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6552         * modules/vma-iter: New file.
6553         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6554         for get_rusage_as_via_iterator.
6555         (vma_iterate_callback): New function.
6556         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6557         * modules/get-rusage-as (Depends-on): Add vma-iter.
6558
6559 2011-01-23  Bruno Haible  <bruno@clisp.org>
6560
6561         uninorm: Tweak includes.
6562         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6563         Reported by Jim Meyering.
6564
6565 2011-01-23  Bruno Haible  <bruno@clisp.org>
6566
6567         get-rusage-as: Improve on NetBSD.
6568         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6569         /proc, like on FreeBSD.
6570
6571 2011-01-23  Jim Meyering  <meyering@redhat.com>
6572
6573         xreadlink.h: remove unnecessary #include
6574         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6575
6576         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6577         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6578
6579 2011-01-23  Bruno Haible  <bruno@clisp.org>
6580
6581         get-rusage-as: Fix bug.
6582         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6583         original limit when aborting the first loop.
6584
6585 2011-01-23  Bruno Haible  <bruno@clisp.org>
6586
6587         wctype: Ensure valid C syntax.
6588         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6589         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6590
6591 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6592
6593         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6594         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6595         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6596         as they are needed only for configure's test case.
6597         This removes two unnecessary symbols from config.h.
6598
6599         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6600         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6602         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6603         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6604         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6605         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6606         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6607         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6608         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6609         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6611         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6612         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6613         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6614         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6615         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6616         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6617
6618 2011-01-21  Eric Blake  <eblake@redhat.com>
6619
6620         maintainer-makefile: work with older git for submodule check
6621         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6622         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6623         Reported by Matthias Bolte.
6624
6625         bootstrap: minor portability fixes
6626         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6627         (usage): Omit leading capital and trailing . on help phrases, per
6628         GNU Coding Standards.
6629         (check_versions, top level): Prefix messages with script name.
6630
6631 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6632
6633         bootstrap: support --no-git option
6634         * build-aux/bootstrap: Add --no-git option, to be used when
6635         --gnulib-srcdir points to the exact desired checkout.
6636
6637 2011-01-21  Eric Blake  <eblake@redhat.com>
6638
6639         strerror_r-posix: work with glibc 2.13
6640         * lib/strerror_r.c (strerror_r): Fix return type.
6641
6642 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6643             Bruno Haible  <bruno@clisp.org>
6644
6645         uN_strstr: New unit tests.
6646         * modules/unistr/u8-strstr-tests: New file.
6647         * modules/unistr/u16-strstr-tests: New file.
6648         * modules/unistr/u32-strstr-tests: New file.
6649         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6650         * tests/unistr/test-u8-strstr.c: New file.
6651         * tests/unistr/test-u16-strstr.c: New file.
6652         * tests/unistr/test-u32-strstr.c: New file.
6653
6654 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6655             Bruno Haible  <bruno@clisp.org>
6656
6657         Make uN_strstr functions O(n) worst-case.
6658         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6659         16-bit and 32-bit unit cases, use the unibyte algorithm from
6660         lib/mbsstr.c.
6661         * lib/unistr/u8-strstr.c: Include <string.h>.
6662         (UNIT_IS_UINT8_T): New macro.
6663         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6664         (U_STRLEN, U_STRNLEN): New macros.
6665         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6666         (U_STRLEN, U_STRNLEN): New macros.
6667         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6668         (configure.ac): Update required libunistring version.
6669         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6670         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6671         malloca.
6672         (configure.ac): Update required libunistring version.
6673         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6674         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6675         malloca.
6676         (configure.ac): Update required libunistring version.
6677
6678 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6679             Bruno Haible  <bruno@clisp.org>
6680
6681         Prepare for faster uN_strstr functions.
6682         * lib/str-kmp.h: Support definable UNITs.
6683         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6684         needle_len argument.
6685         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6686         * lib/mbscasestr.c (mbscasestr): Likewise.
6687
6688 2011-01-21  Pádraig Brady <P@draigBrady.com>
6689
6690         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6691         * tests/test-malloca.c (main): Unset the environment variable
6692         to greatly speed up the test.
6693         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6694         * modules/malloca-tests: Depend on unsetenv.
6695
6696 2011-01-21  Pádraig Brady <P@draigBrady.com>
6697
6698         ignore-value: remove stdint dependency
6699         * lib/ignore-value.h: Remove <stdint.h>
6700         * modules/ignore-value: Remove stdint dependency.
6701
6702 2011-01-21  Jim Meyering  <meyering@redhat.com>
6703
6704         maint.mk: adjust variable name to be consistent with other gl_ vars
6705         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6706         to be lower case.
6707
6708 2011-01-20  Jim Meyering  <meyering@redhat.com>
6709
6710         maint.mk: make "check" depend on public-submodule-commit by default
6711         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6712
6713 2011-01-20  Bruno Haible  <bruno@clisp.org>
6714
6715         mbfile, mbiter: Complete change from 2008-12-21.
6716         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6717         * m4/mbiter.m4 (gl_MBITER): Likewise.
6718
6719 2011-01-20  Jim Meyering  <meyering@redhat.com>
6720
6721         init.sh: insert space between each function name and "()"
6722         * tests/init.sh: Make it a little easier to see that a function's
6723         name is "warn_", and not "warn" when looking at the first part of
6724         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6725
6726 2011-01-20  Jim Meyering  <meyering@redhat.com>
6727
6728         mountlist: clean up code formatting
6729         * lib/mountlist.c (read_file_system_list): Split a long line,
6730         correct bracing style, use NULL in place of "(struct statfs *)0",
6731         don't parenthesize return value, add spaces around "=" and after
6732         ";-in-for-stmt".
6733
6734 2011-01-14  Markus Duft <mduft@gentoo.org>
6735
6736         mountlist: add support for Interix
6737         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6738         Apply statvfs to all entries of /dev/fs.
6739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6740         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6741
6742 2011-01-20  Jim Meyering  <meyering@redhat.com>
6743
6744         maint.mk: improve the public-submodule-commit rule
6745         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6746         to suppress printing of its commands... unless V=1.
6747         Add git submodule's --quiet option to suppress printing of e.g.,
6748         "Entering gnulib" output.
6749         "cd" into $(srcdir) before running git submodule.
6750
6751 2011-01-20  Bruno Haible  <bruno@clisp.org>
6752
6753         include_next: Fix bug introduced on 2011-01-18.
6754         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6755         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6756         ac_cv_header_... variable if the second argument is not 'check'.
6757         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6758         gl_NEXT_HEADERS_INTERNAL.
6759
6760 2011-01-20  Bruno Haible  <bruno@clisp.org>
6761
6762         Allow the user to avoid the GNULIB_TEST_* macros.
6763         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6764         Suggested by Paul Eggert.
6765
6766 2011-01-14  Jim Meyering  <meyering@redhat.com>
6767
6768         bootstrap: avoid failure when there is no .gitmodules file
6769         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6770         has been assigned to, even when its value is the empty string.
6771         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6772         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6773         Reported by John W. Eaton <jwe@gnu.org>.
6774
6775 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6776
6777         assume <ctype.h>, ..., <time.h> exist
6778         For years gnulib has been assuming the existence of the headers
6779         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6780         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6781         them, since they don't appear to be needed.
6782         * README (Portability guidelines): Document this.
6783         * lib/flock.c: Assume <fcntl.h> exists.
6784         * lib/regex_internal.h: Assume <locale.h> exists.
6785         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6786         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6787         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6788         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6789         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6790         * m4/regex.m4 (gl_REGEX): Likewise.
6791         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6792         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6793         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6794         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6795         * tests/test-argp.c: Likewise.
6796         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6797
6798         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6799         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6800         AA_APPLE_UNIVERSAL_BUILD.  See
6801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6802         * NEWS: Document this.
6803
6804 2011-01-19  Eric Blake  <eblake@redhat.com>
6805
6806         c-stack: assume stack overflow if SA_SIGINFO unsupported
6807         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6808         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6809         sigaction will work.
6810         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6811         behavior match Linux.
6812         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6813
6814         stdbool-tests: accomodate Haiku
6815         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6816
6817         binary-io: fix O_TEXT on Haiku
6818         * modules/binary-io (Depends-on): Add fcntl-h.
6819         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6820         than blindly undefining O_TEXT.
6821         Reported by Scott McCreary.
6822
6823 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         include_next: do not check for standard headers like stddef.h
6826
6827         I found this problem when modifying Emacs to use gnulib.
6828         I noticed that it added HAVE_STDDEF_H to config.h, even though
6829         gnulib always assumes <stddef.h> exists as per README and this
6830         symbol is unnecessary.
6831         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6832         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6833         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6834         faster for headers like stddef.h that are known to exist.
6835         (gl_CHECK_NEXT_HEADERS): Use it.
6836         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6837         rather than gl_CHECK_NEXT_HEADERS.
6838         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6839         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6840
6841 2011-01-18  Eric Blake  <eblake@redhat.com>
6842
6843         ansi-c++-opt: skip C++ dependency style if C++ is unused
6844         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6845         tests when we know C++ compilation is not desired.
6846         Reported by Scott McCreary.
6847
6848 2011-01-18  Bruno Haible  <bruno@clisp.org>
6849
6850         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6851         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6852         (main): Perform test also when getrlimit and setrlimit don't exist or
6853         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6854         limiting the address space size using setrlimit, compare the address
6855         space size before and after the the test.
6856         * tests/test-dprintf-posix2.c: Likewise.
6857         * tests/test-fprintf-posix3.sh: Update skip messages.
6858         * tests/test-dprintf-posix2.sh: Likewise.
6859         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6860         * modules/dprintf-posix-tests (Depends-on): Likewise.
6861         Reported by Bruce Korb <bkorb@gnu.org> and
6862         Gary V. Vaughan <gary@gnu.org>.
6863
6864 2011-01-18  Bruno Haible  <bruno@clisp.org>
6865
6866         get-rusage-as: Improvement for Cygwin.
6867         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6868         areas that are merely reserved.
6869
6870 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6871
6872         strftime: remove dependencies on multibyte modules
6873
6874         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6875         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6876         only if __osf__ is defined, and I suspect OSF doesn't need these
6877         other modules.  If my guess is wrong, we'll need to come up with a
6878         variant of strftime that doesn't need the multibyte modules.
6879
6880         I discovered this problem when attempting modify Emacs to use the
6881         strftime module.  With the previous gnulib, this caused Emacs to
6882         need 31 new files, ranging from lib/config.charset to
6883         m4/wint_t.m4.  This was overkill and I expect would be offputting
6884         to the Emacs maintainers.  After this change, only 6 new files are
6885         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6886         stdbool.m4, and tm_gmtoff.m4.
6887
6888         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6889         Suggested by Bruno Haible in
6890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6891         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6892         and do not check for wchar.h.
6893         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6894         (Depends-on): Remove mbrlen, mbsinit, wchar.
6895
6896 2011-01-18  Bruno Haible  <bruno@clisp.org>
6897
6898         Tests for module 'get-rusage-as'.
6899         * modules/get-rusage-as-tests: New file.
6900         * tests/test-get-rusage-as.c: New file.
6901
6902         New module 'get-rusage-as'.
6903         * modules/get-rusage-as: New file.
6904         * lib/resource-ext.h: New file.
6905         * lib/get-rusage-as.c: New file.
6906
6907 2011-01-17  Eric Blake  <eblake@redhat.com>
6908
6909         sigaction: relax license from LGPLv3+ to LGPLv2+
6910         * modules/sigaction (License): Relax to LGPLv2+.
6911
6912 2011-01-14  Bruno Haible  <bruno@clisp.org>
6913
6914         filemode: Make function declarations usable in C++ mode.
6915         * lib/filemode.h: Enclose function declarations in extern "C" block.
6916         Reported by John W. Eaton <jwe@gnu.org>.
6917
6918 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6919
6920         save-cwd: no longer include "xgetcwd.h"
6921         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6922         This avoids a compilation failure in projects that use save-cwd
6923         without also using the xgetcwd module.
6924
6925 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6926
6927         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6928         This is so that a program like Emacs, which needs only dtoastr,
6929         does not have to bother with distributing and compiling ftoastr
6930         and ldtoastr.
6931         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6932         * modules/dtoastr, modules/ldtoastr: New files.
6933         * modules/ftoastr: Now works just for 'float'.
6934         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6935         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6936         dtoastr.c, ldtoastr.c.
6937
6938 2011-01-11  Jim Meyering  <meyering@redhat.com>
6939
6940         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6941         There is no need to work around the lack of the fchdir function,
6942         since gnulib can now provide a replacement when required.
6943         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6944         * modules/save-cwd (Depends-on): Add fchdir.
6945
6946 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6947
6948         openat, save-cwd: avoid xmalloc
6949
6950         This removes a direct (but undocumented) dependency of openat on
6951         xalloc, along with an indirect dependency via save-cwd.  It also
6952         removes a dependency of save-cwd on xgetcwd, and thereby
6953         indirectly on xalloc.  This change causes the openat substitute
6954         to fall back on save_cwd when memory is tight, and for save_cwd to
6955         fail instead of dying when memory is tight, but that's good enough.
6956         Problem and initial idea for fix reported by Bastien Roucaries in
6957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6958
6959         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6960         xalloc.h (for xmalloc).
6961         (openat_proc_name): Use malloc, not xmalloc.
6962         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6963         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6964
6965         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6966         This avoids heap allocation for file names whose lengths are in
6967         the range 512..1023, with the upper bound increasing to at most
6968         4031 depending on the platform's PATH_MAX.  (We do not want
6969         pathmax.h here as it might supply a non-constant PATH_MAX.)
6970         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6971         Perhaps they should be moved to malloca.h?
6972         (OPENAT_BUFFER_SIZE): Use them.
6973
6974 2011-01-10  Bruno Haible  <bruno@clisp.org>
6975
6976         doc: Update users.txt.
6977         * users.txt: Add recutils.
6978
6979 2011-01-09  Karl Berry  <karl@gnu.org>
6980
6981         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6982
6983         * doc/configmake.texi: New file.
6984         * doc/gnulib.texi: Include it.
6985         * modules/configmake: Move documentation from here.
6986
6987 2011-01-09  Bruno Haible  <bruno@clisp.org>
6988
6989         Update to Unicode 6.0.0.
6990         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6991         (get_lbp): Update for Unicode 6.0.0.
6992         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6993         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6994         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6995         U+11001, U+11038..U+11046. Remove U+06DE.
6996         (uc_width): Fix bounds of planes.
6997         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6998         lib/uniwidth/width.c.
6999         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7000         trailing whitespace removed.
7001         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7002         without comments, but with the original copyright notice.
7003         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7004         * lib/unicase/ignorable.h: Likewise.
7005         * lib/unicase/tocasefold.h: Likewise.
7006         * lib/unicase/tolower.h: Likewise.
7007         * lib/unicase/totitle.h: Likewise.
7008         * lib/unicase/toupper.h: Likewise.
7009         * lib/unictype/bidi_of.h: Likewise.
7010         * lib/unictype/blocks.h: Likewise.
7011         * lib/unictype/categ_C.h: Likewise.
7012         * lib/unictype/categ_Cn.h: Likewise.
7013         * lib/unictype/categ_L.h: Likewise.
7014         * lib/unictype/categ_Ll.h: Likewise.
7015         * lib/unictype/categ_Lm.h: Likewise.
7016         * lib/unictype/categ_Lo.h: Likewise.
7017         * lib/unictype/categ_Lu.h: Likewise.
7018         * lib/unictype/categ_M.h: Likewise.
7019         * lib/unictype/categ_Mc.h: Likewise.
7020         * lib/unictype/categ_Me.h: Likewise.
7021         * lib/unictype/categ_Mn.h: Likewise.
7022         * lib/unictype/categ_N.h: Likewise.
7023         * lib/unictype/categ_Nd.h: Likewise.
7024         * lib/unictype/categ_No.h: Likewise.
7025         * lib/unictype/categ_P.h: Likewise.
7026         * lib/unictype/categ_Po.h: Likewise.
7027         * lib/unictype/categ_S.h: Likewise.
7028         * lib/unictype/categ_Sc.h: Likewise.
7029         * lib/unictype/categ_Sk.h: Likewise.
7030         * lib/unictype/categ_Sm.h: Likewise.
7031         * lib/unictype/categ_So.h: Likewise.
7032         * lib/unictype/categ_of.h: Likewise.
7033         * lib/unictype/combining.h: Likewise.
7034         * lib/unictype/ctype_alnum.h: Likewise.
7035         * lib/unictype/ctype_alpha.h: Likewise.
7036         * lib/unictype/ctype_graph.h: Likewise.
7037         * lib/unictype/ctype_lower.h: Likewise.
7038         * lib/unictype/ctype_print.h: Likewise.
7039         * lib/unictype/ctype_punct.h: Likewise.
7040         * lib/unictype/ctype_upper.h: Likewise.
7041         * lib/unictype/decdigit.h: Likewise.
7042         * lib/unictype/digit.h: Likewise.
7043         * lib/unictype/numeric.h: Likewise.
7044         * lib/unictype/pr_alphabetic.h: Likewise.
7045         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7046         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7047         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7048         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7049         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7050         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7051         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7052         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7053         * lib/unictype/pr_case_ignorable.h: Likewise.
7054         * lib/unictype/pr_cased.h: Likewise.
7055         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7056         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7057         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7058         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7059         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7060         * lib/unictype/pr_combining.h: Likewise.
7061         * lib/unictype/pr_composite.h: Likewise.
7062         * lib/unictype/pr_currency_symbol.h: Likewise.
7063         * lib/unictype/pr_decimal_digit.h: Likewise.
7064         * lib/unictype/pr_deprecated.h: Likewise.
7065         * lib/unictype/pr_format_control.h: Likewise.
7066         * lib/unictype/pr_grapheme_base.h: Likewise.
7067         * lib/unictype/pr_grapheme_extend.h: Likewise.
7068         * lib/unictype/pr_grapheme_link.h: Likewise.
7069         * lib/unictype/pr_id_continue.h: Likewise.
7070         * lib/unictype/pr_id_start.h: Likewise.
7071         * lib/unictype/pr_ideographic.h: Likewise.
7072         * lib/unictype/pr_lowercase.h: Likewise.
7073         * lib/unictype/pr_math.h: Likewise.
7074         * lib/unictype/pr_numeric.h: Likewise.
7075         * lib/unictype/pr_other_alphabetic.h: Likewise.
7076         * lib/unictype/pr_other_id_continue.h: Likewise.
7077         * lib/unictype/pr_other_math.h: Likewise.
7078         * lib/unictype/pr_punctuation.h: Likewise.
7079         * lib/unictype/pr_sentence_terminal.h: Likewise.
7080         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7081         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7082         * lib/unictype/pr_unified_ideograph.h: Likewise.
7083         * lib/unictype/pr_uppercase.h: Likewise.
7084         * lib/unictype/pr_xid_continue.h: Likewise.
7085         * lib/unictype/pr_xid_start.h: Likewise.
7086         * lib/unictype/scripts.h: Likewise.
7087         * lib/unictype/scripts_byname.gperf: Likewise.
7088         * lib/unictype/sy_java_ident.h: Likewise.
7089         * lib/unigbrk/gbrkprop.h: Likewise.
7090         * lib/unilbrk/lbrkprop1.h: Likewise.
7091         * lib/unilbrk/lbrkprop2.h: Likewise.
7092         * lib/uninorm/decomposition-table2.h: Likewise.
7093         * lib/uniwbrk/wbrkprop.h: Likewise.
7094         * tests/unicase/test-cased.c: Likewise.
7095         * tests/unicase/test-ignorable.c: Likewise.
7096         * tests/unicase/test-uc_tolower.c: Likewise.
7097         * tests/unicase/test-uc_totitle.c: Likewise.
7098         * tests/unicase/test-uc_toupper.c: Likewise.
7099         * tests/unictype/test-categ_C.c: Likewise.
7100         * tests/unictype/test-categ_Cn.c: Likewise.
7101         * tests/unictype/test-categ_L.c: Likewise.
7102         * tests/unictype/test-categ_Ll.c: Likewise.
7103         * tests/unictype/test-categ_Lm.c: Likewise.
7104         * tests/unictype/test-categ_Lo.c: Likewise.
7105         * tests/unictype/test-categ_Lu.c: Likewise.
7106         * tests/unictype/test-categ_M.c: Likewise.
7107         * tests/unictype/test-categ_Mc.c: Likewise.
7108         * tests/unictype/test-categ_Me.c: Likewise.
7109         * tests/unictype/test-categ_Mn.c: Likewise.
7110         * tests/unictype/test-categ_N.c: Likewise.
7111         * tests/unictype/test-categ_Nd.c: Likewise.
7112         * tests/unictype/test-categ_No.c: Likewise.
7113         * tests/unictype/test-categ_P.c: Likewise.
7114         * tests/unictype/test-categ_Po.c: Likewise.
7115         * tests/unictype/test-categ_S.c: Likewise.
7116         * tests/unictype/test-categ_Sc.c: Likewise.
7117         * tests/unictype/test-categ_Sk.c: Likewise.
7118         * tests/unictype/test-categ_Sm.c: Likewise.
7119         * tests/unictype/test-categ_So.c: Likewise.
7120         * tests/unictype/test-ctype_alnum.c: Likewise.
7121         * tests/unictype/test-ctype_alpha.c: Likewise.
7122         * tests/unictype/test-ctype_graph.c: Likewise.
7123         * tests/unictype/test-ctype_lower.c: Likewise.
7124         * tests/unictype/test-ctype_print.c: Likewise.
7125         * tests/unictype/test-ctype_punct.c: Likewise.
7126         * tests/unictype/test-ctype_upper.c: Likewise.
7127         * tests/unictype/test-decdigit.h: Likewise.
7128         * tests/unictype/test-digit.h: Likewise.
7129         * tests/unictype/test-numeric.h: Likewise.
7130         * tests/unictype/test-pr_alphabetic.c: Likewise.
7131         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7132         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7133         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7134         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7135         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7136         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7137         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7138         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7139         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7140         * tests/unictype/test-pr_cased.c: Likewise.
7141         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7142         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7143         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7144         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7145         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7146         * tests/unictype/test-pr_combining.c: Likewise.
7147         * tests/unictype/test-pr_composite.c: Likewise.
7148         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7149         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7150         * tests/unictype/test-pr_deprecated.c: Likewise.
7151         * tests/unictype/test-pr_format_control.c: Likewise.
7152         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7153         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7154         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7155         * tests/unictype/test-pr_id_continue.c: Likewise.
7156         * tests/unictype/test-pr_id_start.c: Likewise.
7157         * tests/unictype/test-pr_ideographic.c: Likewise.
7158         * tests/unictype/test-pr_lowercase.c: Likewise.
7159         * tests/unictype/test-pr_math.c: Likewise.
7160         * tests/unictype/test-pr_numeric.c: Likewise.
7161         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7162         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7163         * tests/unictype/test-pr_other_math.c: Likewise.
7164         * tests/unictype/test-pr_punctuation.c: Likewise.
7165         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7166         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7167         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7168         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7169         * tests/unictype/test-pr_uppercase.c: Likewise.
7170         * tests/unictype/test-pr_xid_continue.c: Likewise.
7171         * tests/unictype/test-pr_xid_start.c: Likewise.
7172         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7173         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7174         changes.
7175         * lib/unictype/categ_Cc.h: Likewise.
7176         * lib/unictype/categ_Cf.h: Likewise.
7177         * lib/unictype/categ_Co.h: Likewise.
7178         * lib/unictype/categ_Cs.h: Likewise.
7179         * lib/unictype/categ_Lt.h: Likewise.
7180         * lib/unictype/categ_Nl.h: Likewise.
7181         * lib/unictype/categ_Pc.h: Likewise.
7182         * lib/unictype/categ_Pd.h: Likewise.
7183         * lib/unictype/categ_Pe.h: Likewise.
7184         * lib/unictype/categ_Pf.h: Likewise.
7185         * lib/unictype/categ_Pi.h: Likewise.
7186         * lib/unictype/categ_Ps.h: Likewise.
7187         * lib/unictype/categ_Z.h: Likewise.
7188         * lib/unictype/categ_Zl.h: Likewise.
7189         * lib/unictype/categ_Zp.h: Likewise.
7190         * lib/unictype/categ_Zs.h: Likewise.
7191         * lib/unictype/ctype_blank.h: Likewise.
7192         * lib/unictype/ctype_cntrl.h: Likewise.
7193         * lib/unictype/ctype_digit.h: Likewise.
7194         * lib/unictype/ctype_space.h: Likewise.
7195         * lib/unictype/ctype_xdigit.h: Likewise.
7196         * lib/unictype/mirror.h: Likewise.
7197         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7198         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7199         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7200         * lib/unictype/pr_bidi_control.h: Likewise.
7201         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7202         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7203         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7204         * lib/unictype/pr_bidi_pdf.h: Likewise.
7205         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7206         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7207         * lib/unictype/pr_dash.h: Likewise.
7208         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7209         * lib/unictype/pr_diacritic.h: Likewise.
7210         * lib/unictype/pr_extender.h: Likewise.
7211         * lib/unictype/pr_hex_digit.h: Likewise.
7212         * lib/unictype/pr_hyphen.h: Likewise.
7213         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7214         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7215         * lib/unictype/pr_ignorable_control.h: Likewise.
7216         * lib/unictype/pr_iso_control.h: Likewise.
7217         * lib/unictype/pr_join_control.h: Likewise.
7218         * lib/unictype/pr_left_of_pair.h: Likewise.
7219         * lib/unictype/pr_line_separator.h: Likewise.
7220         * lib/unictype/pr_logical_order_exception.h: Likewise.
7221         * lib/unictype/pr_non_break.h: Likewise.
7222         * lib/unictype/pr_not_a_character.h: Likewise.
7223         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7224         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7225         * lib/unictype/pr_other_id_start.h: Likewise.
7226         * lib/unictype/pr_other_lowercase.h: Likewise.
7227         * lib/unictype/pr_other_uppercase.h: Likewise.
7228         * lib/unictype/pr_paired_punctuation.h: Likewise.
7229         * lib/unictype/pr_paragraph_separator.h: Likewise.
7230         * lib/unictype/pr_pattern_syntax.h: Likewise.
7231         * lib/unictype/pr_pattern_white_space.h: Likewise.
7232         * lib/unictype/pr_private_use.h: Likewise.
7233         * lib/unictype/pr_quotation_mark.h: Likewise.
7234         * lib/unictype/pr_radical.h: Likewise.
7235         * lib/unictype/pr_soft_dotted.h: Likewise.
7236         * lib/unictype/pr_space.h: Likewise.
7237         * lib/unictype/pr_titlecase.h: Likewise.
7238         * lib/unictype/pr_variation_selector.h: Likewise.
7239         * lib/unictype/pr_white_space.h: Likewise.
7240         * lib/unictype/pr_zero_width.h: Likewise.
7241         * lib/unictype/sy_c_ident.h: Likewise.
7242         * lib/unictype/sy_c_whitespace.h: Likewise.
7243         * lib/unictype/sy_java_whitespace.h: Likewise.
7244         * lib/uninorm/composition-table.gperf: Likewise.
7245         * lib/uninorm/decomposition-table1.h: Likewise.
7246         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7247         LB8.
7248         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7249         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7250         * modules/unictype/*: Bump version number of expected libunistring
7251         version.
7252
7253 2011-01-09  Bruno Haible  <bruno@clisp.org>
7254
7255         Update to Unicode 5.2.0.
7256         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7257         trailing whitespace removed.
7258
7259 2011-01-09  Bruno Haible  <bruno@clisp.org>
7260
7261         New Unicode character properties, from Unicode 5.2.0.
7262         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7263         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7264         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7265         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7266         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7267         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7268         uc_is_property_cased, uc_is_property_case_ignorable,
7269         uc_is_property_changes_when_lowercased,
7270         uc_is_property_changes_when_uppercased,
7271         uc_is_property_changes_when_titlecased,
7272         uc_is_property_changes_when_casefolded,
7273         uc_is_property_changes_when_casemapped): New declarations.
7274         * lib/unictype/pr_byname.gperf: Add the new properties.
7275         * modules/unictype/property-byname (Depends-on): Depend on the new
7276         properties modules.
7277         * modules/unictype/property-all (Depends-on): Likewise.
7278         * MODULES.html.sh (Unicode string functions): Add
7279         unictype/property-case-ignorable, unictype/property-cased,
7280         unictype/property-changes-when-casefolded,
7281         unictype/property-changes-when-casemapped,
7282         unictype/property-changes-when-lowercased,
7283         unictype/property-changes-when-titlecased,
7284         unictype/property-changes-when-uppercased.
7285
7286         New module 'unictype/property-changes-when-casemapped'.
7287         * modules/unictype/property-changes-when-casemapped: New file.
7288         * lib/unictype/pr_changes_when_casemapped.c: New file.
7289         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7290         generated by gen-uni-tables.
7291         * modules/unictype/property-changes-when-casemapped-tests: New file.
7292         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7293         automatically generated by gen-uni-tables.
7294
7295         New module 'unictype/property-changes-when-casefolded'.
7296         * modules/unictype/property-changes-when-casefolded: New file.
7297         * lib/unictype/pr_changes_when_casefolded.c: New file.
7298         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7299         generated by gen-uni-tables.
7300         * modules/unictype/property-changes-when-casefolded-tests: New file.
7301         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7302         automatically generated by gen-uni-tables.
7303
7304         New module 'unictype/property-changes-when-titlecased'.
7305         * modules/unictype/property-changes-when-titlecased: New file.
7306         * lib/unictype/pr_changes_when_titlecased.c: New file.
7307         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7308         generated by gen-uni-tables.
7309         * modules/unictype/property-changes-when-titlecased-tests: New file.
7310         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7311         automatically generated by gen-uni-tables.
7312
7313         New module 'unictype/property-changes-when-uppercased'.
7314         * modules/unictype/property-changes-when-uppercased: New file.
7315         * lib/unictype/pr_changes_when_uppercased.c: New file.
7316         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7317         generated by gen-uni-tables.
7318         * modules/unictype/property-changes-when-uppercased-tests: New file.
7319         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7320         automatically generated by gen-uni-tables.
7321
7322         New module 'unictype/property-changes-when-lowercased'.
7323         * modules/unictype/property-changes-when-lowercased: New file.
7324         * lib/unictype/pr_changes_when_lowercased.c: New file.
7325         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7326         generated by gen-uni-tables.
7327         * modules/unictype/property-changes-when-lowercased-tests: New file.
7328         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7329         automatically generated by gen-uni-tables.
7330
7331         New module 'unictype/property-case-ignorable'.
7332         * modules/unictype/property-case-ignorable: New file.
7333         * lib/unictype/pr_case_ignorable.c: New file.
7334         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7335         by gen-uni-tables.
7336         * modules/unictype/property-case-ignorable-tests: New file.
7337         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7338         generated by gen-uni-tables.
7339
7340         New module 'unictype/property-cased'.
7341         * modules/unictype/property-cased: New file.
7342         * lib/unictype/pr_cased.c: New file.
7343         * lib/unictype/pr_cased.h: New file, automatically generated by
7344         gen-uni-tables.
7345         * modules/unictype/property-cased-tests: New file.
7346         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7347         gen-uni-tables.
7348
7349 2011-01-09  Bruno Haible  <bruno@clisp.org>
7350
7351         Update to Unicode 5.2.0.
7352         * lib/gen-uni-tables.c (output_predicate, output_category,
7353         output_combclass, output_bidi_category, output_decimal_digit_test,
7354         output_decimal_digit, output_digit_test, output_digit,
7355         output_numeric_test, output_numeric, output_mirror, output_scripts,
7356         output_scripts_byname, output_blocks, output_ident_category): Fix
7357         comment header.
7358         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7359         get_wbp.
7360         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7361         items.
7362         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7363         Changes_When_Lowercased, Changes_When_Uppercased,
7364         Changes_When_Titlecased, Changes_When_Casefolded,
7365         Changes_When_Casemapped.
7366         (is_property_alphabetic, is_property_default_ignorable_code_point):
7367         Update for Unicode 5.2.0.
7368         (is_property_cased, is_property_case_ignorable,
7369         is_property_changes_when_lowercased,
7370         is_property_changes_when_uppercased,
7371         is_property_changes_when_titlecased,
7372         is_property_changes_when_casefolded,
7373         is_property_changes_when_casemapped): New functions.
7374         (output_properties): Output also the properties cased, case_ignorable,
7375         changes_when_lowercased, changes_when_uppercased,
7376         changes_when_titlecased, changes_when_casefolded,
7377         changes_when_casemapped.
7378         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7379         Unicode TR#11 revision 17 -> 19.
7380         (LBP_CP): New enumeration value.
7381         (LBP_*): Adjust values accordingly.
7382         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7383         TR#14 revision 22 -> 24.
7384         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7385         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7386         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7387         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7388         is_WBP_MIDLETTER.
7389         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7390         the code1 and code2 of each composition rule.
7391         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7392         * lib/unicase/ignorable.h: Likewise.
7393         * lib/unicase/tocasefold.h: Likewise.
7394         * lib/unicase/tolower.h: Likewise.
7395         * lib/unicase/totitle.h: Likewise.
7396         * lib/unicase/toupper.h: Likewise.
7397         * lib/unictype/bidi_of.h: Likewise.
7398         * lib/unictype/blocks.h: Likewise.
7399         * lib/unictype/categ_C.h: Likewise.
7400         * lib/unictype/categ_Cf.h: Likewise.
7401         * lib/unictype/categ_Cn.h: Likewise.
7402         * lib/unictype/categ_L.h: Likewise.
7403         * lib/unictype/categ_Ll.h: Likewise.
7404         * lib/unictype/categ_Lm.h: Likewise.
7405         * lib/unictype/categ_Lo.h: Likewise.
7406         * lib/unictype/categ_Lu.h: Likewise.
7407         * lib/unictype/categ_M.h: Likewise.
7408         * lib/unictype/categ_Mc.h: Likewise.
7409         * lib/unictype/categ_Mn.h: Likewise.
7410         * lib/unictype/categ_N.h: Likewise.
7411         * lib/unictype/categ_Nd.h: Likewise.
7412         * lib/unictype/categ_Nl.h: Likewise.
7413         * lib/unictype/categ_No.h: Likewise.
7414         * lib/unictype/categ_P.h: Likewise.
7415         * lib/unictype/categ_Pd.h: Likewise.
7416         * lib/unictype/categ_Po.h: Likewise.
7417         * lib/unictype/categ_S.h: Likewise.
7418         * lib/unictype/categ_Sc.h: Likewise.
7419         * lib/unictype/categ_So.h: Likewise.
7420         * lib/unictype/categ_of.h: Likewise.
7421         * lib/unictype/combining.h: Likewise.
7422         * lib/unictype/ctype_alnum.h: Likewise.
7423         * lib/unictype/ctype_alpha.h: Likewise.
7424         * lib/unictype/ctype_graph.h: Likewise.
7425         * lib/unictype/ctype_lower.h: Likewise.
7426         * lib/unictype/ctype_print.h: Likewise.
7427         * lib/unictype/ctype_punct.h: Likewise.
7428         * lib/unictype/ctype_upper.h: Likewise.
7429         * lib/unictype/decdigit.h: Likewise.
7430         * lib/unictype/digit.h: Likewise.
7431         * lib/unictype/numeric.h: Likewise.
7432         * lib/unictype/pr_alphabetic.h: Likewise.
7433         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7434         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7435         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7436         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7437         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7438         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7439         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7440         * lib/unictype/pr_combining.h: Likewise.
7441         * lib/unictype/pr_composite.h: Likewise.
7442         * lib/unictype/pr_currency_symbol.h: Likewise.
7443         * lib/unictype/pr_dash.h: Likewise.
7444         * lib/unictype/pr_decimal_digit.h: Likewise.
7445         * lib/unictype/pr_deprecated.h: Likewise.
7446         * lib/unictype/pr_diacritic.h: Likewise.
7447         * lib/unictype/pr_extender.h: Likewise.
7448         * lib/unictype/pr_grapheme_base.h: Likewise.
7449         * lib/unictype/pr_grapheme_extend.h: Likewise.
7450         * lib/unictype/pr_grapheme_link.h: Likewise.
7451         * lib/unictype/pr_id_continue.h: Likewise.
7452         * lib/unictype/pr_id_start.h: Likewise.
7453         * lib/unictype/pr_ideographic.h: Likewise.
7454         * lib/unictype/pr_ignorable_control.h: Likewise.
7455         * lib/unictype/pr_logical_order_exception.h: Likewise.
7456         * lib/unictype/pr_lowercase.h: Likewise.
7457         * lib/unictype/pr_numeric.h: Likewise.
7458         * lib/unictype/pr_other_alphabetic.h: Likewise.
7459         * lib/unictype/pr_punctuation.h: Likewise.
7460         * lib/unictype/pr_sentence_terminal.h: Likewise.
7461         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7462         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7463         * lib/unictype/pr_unified_ideograph.h: Likewise.
7464         * lib/unictype/pr_uppercase.h: Likewise.
7465         * lib/unictype/pr_xid_continue.h: Likewise.
7466         * lib/unictype/pr_xid_start.h: Likewise.
7467         * lib/unictype/pr_zero_width.h: Likewise.
7468         * lib/unictype/scripts.h: Likewise.
7469         * lib/unictype/scripts_byname.gperf: Likewise.
7470         * lib/unictype/sy_java_ident.h: Likewise.
7471         * lib/unigbrk/gbrkprop.h: Likewise.
7472         * lib/unilbrk/lbrkprop1.h: Likewise.
7473         * lib/unilbrk/lbrkprop2.h: Likewise.
7474         * lib/unilbrk/lbrktables.h: Likewise.
7475         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7476         LBP_CP. Implement rule LB30.
7477         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7478         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7479         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7480         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7481         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7482         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7483         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7484         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7485         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7486         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7487         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7488         bits instead of 16 bits in the code1 and code2 of each composition
7489         rule.
7490         (uc_composition): Update for Unicode 5.2.0.
7491         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7492         * lib/uninorm/decomposition-table2.h: Likewise.
7493         * lib/uniwbrk/wbrkprop.h: Likewise.
7494         * tests/unicase/test-cased.c: Likewise.
7495         * tests/unicase/test-ignorable.c: Likewise.
7496         * tests/unicase/test-uc_tolower.c: Likewise.
7497         * tests/unicase/test-uc_totitle.c: Likewise.
7498         * tests/unicase/test-uc_toupper.c: Likewise.
7499         * tests/unictype/test-categ_C.c: Likewise.
7500         * tests/unictype/test-categ_Cf.c: Likewise.
7501         * tests/unictype/test-categ_Cn.c: Likewise.
7502         * tests/unictype/test-categ_L.c: Likewise.
7503         * tests/unictype/test-categ_Ll.c: Likewise.
7504         * tests/unictype/test-categ_Lm.c: Likewise.
7505         * tests/unictype/test-categ_Lo.c: Likewise.
7506         * tests/unictype/test-categ_Lu.c: Likewise.
7507         * tests/unictype/test-categ_M.c: Likewise.
7508         * tests/unictype/test-categ_Mc.c: Likewise.
7509         * tests/unictype/test-categ_Mn.c: Likewise.
7510         * tests/unictype/test-categ_N.c: Likewise.
7511         * tests/unictype/test-categ_Nd.c: Likewise.
7512         * tests/unictype/test-categ_Nl.c: Likewise.
7513         * tests/unictype/test-categ_No.c: Likewise.
7514         * tests/unictype/test-categ_P.c: Likewise.
7515         * tests/unictype/test-categ_Pd.c: Likewise.
7516         * tests/unictype/test-categ_Po.c: Likewise.
7517         * tests/unictype/test-categ_S.c: Likewise.
7518         * tests/unictype/test-categ_Sc.c: Likewise.
7519         * tests/unictype/test-categ_So.c: Likewise.
7520         * tests/unictype/test-ctype_alnum.c: Likewise.
7521         * tests/unictype/test-ctype_alpha.c: Likewise.
7522         * tests/unictype/test-ctype_graph.c: Likewise.
7523         * tests/unictype/test-ctype_lower.c: Likewise.
7524         * tests/unictype/test-ctype_print.c: Likewise.
7525         * tests/unictype/test-ctype_punct.c: Likewise.
7526         * tests/unictype/test-ctype_upper.c: Likewise.
7527         * tests/unictype/test-decdigit.h: Likewise.
7528         * tests/unictype/test-digit.h: Likewise.
7529         * tests/unictype/test-numeric.h: Likewise.
7530         * tests/unictype/test-pr_alphabetic.c: Likewise.
7531         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7532         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7533         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7534         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7535         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7536         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7537         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7538         * tests/unictype/test-pr_combining.c: Likewise.
7539         * tests/unictype/test-pr_composite.c: Likewise.
7540         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7541         * tests/unictype/test-pr_dash.c: Likewise.
7542         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7543         * tests/unictype/test-pr_deprecated.c: Likewise.
7544         * tests/unictype/test-pr_diacritic.c: Likewise.
7545         * tests/unictype/test-pr_extender.c: Likewise.
7546         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7547         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7548         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7549         * tests/unictype/test-pr_id_continue.c: Likewise.
7550         * tests/unictype/test-pr_id_start.c: Likewise.
7551         * tests/unictype/test-pr_ideographic.c: Likewise.
7552         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7553         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7554         * tests/unictype/test-pr_lowercase.c: Likewise.
7555         * tests/unictype/test-pr_numeric.c: Likewise.
7556         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7557         * tests/unictype/test-pr_punctuation.c: Likewise.
7558         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7559         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7560         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7561         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7562         * tests/unictype/test-pr_uppercase.c: Likewise.
7563         * tests/unictype/test-pr_xid_continue.c: Likewise.
7564         * tests/unictype/test-pr_xid_start.c: Likewise.
7565         * tests/unictype/test-pr_zero_width.c: Likewise.
7566         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7567         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7568         changed behaviour: line breaking is now disallowed between a letter
7569         or '=' and '('.
7570         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7571         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7572         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7573         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7574         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7575         lib/uniwidth/width.c.
7576         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7577         without comments, but with the original copyright notice.
7578         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7579         changes.
7580         * lib/unictype/categ_Cc.h: Likewise.
7581         * lib/unictype/categ_Co.h: Likewise.
7582         * lib/unictype/categ_Cs.h: Likewise.
7583         * lib/unictype/categ_Lt.h: Likewise.
7584         * lib/unictype/categ_Me.h: Likewise.
7585         * lib/unictype/categ_Pc.h: Likewise.
7586         * lib/unictype/categ_Pe.h: Likewise.
7587         * lib/unictype/categ_Pf.h: Likewise.
7588         * lib/unictype/categ_Pi.h: Likewise.
7589         * lib/unictype/categ_Ps.h: Likewise.
7590         * lib/unictype/categ_Sk.h: Likewise.
7591         * lib/unictype/categ_Sm.h: Likewise.
7592         * lib/unictype/categ_Z.h: Likewise.
7593         * lib/unictype/categ_Zl.h: Likewise.
7594         * lib/unictype/categ_Zp.h: Likewise.
7595         * lib/unictype/categ_Zs.h: Likewise.
7596         * lib/unictype/ctype_blank.h: Likewise.
7597         * lib/unictype/ctype_cntrl.h: Likewise.
7598         * lib/unictype/ctype_digit.h: Likewise.
7599         * lib/unictype/ctype_space.h: Likewise.
7600         * lib/unictype/ctype_xdigit.h: Likewise.
7601         * lib/unictype/mirror.h: Likewise.
7602         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7603         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7604         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7605         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7606         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7607         * lib/unictype/pr_bidi_control.h: Likewise.
7608         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7609         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7610         * lib/unictype/pr_bidi_pdf.h: Likewise.
7611         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7612         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7613         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7614         * lib/unictype/pr_format_control.h: Likewise.
7615         * lib/unictype/pr_hex_digit.h: Likewise.
7616         * lib/unictype/pr_hyphen.h: Likewise.
7617         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7618         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7619         * lib/unictype/pr_iso_control.h: Likewise.
7620         * lib/unictype/pr_join_control.h: Likewise.
7621         * lib/unictype/pr_left_of_pair.h: Likewise.
7622         * lib/unictype/pr_line_separator.h: Likewise.
7623         * lib/unictype/pr_math.h: Likewise.
7624         * lib/unictype/pr_non_break.h: Likewise.
7625         * lib/unictype/pr_not_a_character.h: Likewise.
7626         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7627         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7628         * lib/unictype/pr_other_id_continue.h: Likewise.
7629         * lib/unictype/pr_other_id_start.h: Likewise.
7630         * lib/unictype/pr_other_lowercase.h: Likewise.
7631         * lib/unictype/pr_other_math.h: Likewise.
7632         * lib/unictype/pr_other_uppercase.h: Likewise.
7633         * lib/unictype/pr_paired_punctuation.h: Likewise.
7634         * lib/unictype/pr_paragraph_separator.h: Likewise.
7635         * lib/unictype/pr_pattern_syntax.h: Likewise.
7636         * lib/unictype/pr_pattern_white_space.h: Likewise.
7637         * lib/unictype/pr_private_use.h: Likewise.
7638         * lib/unictype/pr_quotation_mark.h: Likewise.
7639         * lib/unictype/pr_radical.h: Likewise.
7640         * lib/unictype/pr_soft_dotted.h: Likewise.
7641         * lib/unictype/pr_space.h: Likewise.
7642         * lib/unictype/pr_titlecase.h: Likewise.
7643         * lib/unictype/pr_variation_selector.h: Likewise.
7644         * lib/unictype/pr_white_space.h: Likewise.
7645         * lib/unictype/sy_c_ident.h: Likewise.
7646         * lib/unictype/sy_c_whitespace.h: Likewise.
7647         * lib/unictype/sy_java_whitespace.h: Likewise.
7648         * modules/uni*/*: Bump version number of expected libunistring version.
7649         Reported by Simon Josefsson.
7650
7651 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7652
7653         useless-if-before-free: fix typo in --help and make the internal,
7654         automatic version date update process work once again.
7655         --help output contained a NUL character instead of the
7656         backslash-zero that was intended.  Also, the "must lie within
7657         the first 8 lines" line is on line 9, and hence not getting
7658         automatically updated.
7659         * build-aux/useless-if-before-free: Fix the former by adding a
7660         backslash, and the latter by condensing the three lines of what-it-does
7661         to a single line, leaving one line of slack for the future.
7662
7663 2011-01-09  Bruno Haible  <bruno@clisp.org>
7664
7665         uniwidth/width: Fix width of U+1D173..U+1D17A.
7666         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7667         symbolic_width, output_width_property_test): New functions.
7668         (main): Invoke output_nonspacing_property, output_width_property_test.
7669         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7670         U+1D173..U+1D17A.
7671         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7672         1.
7673         * modules/uniwidth/*: Bump version number of expected libunistring
7674         version.
7675         * modules/unilbrk/*: Likewise.
7676
7677 2011-01-08  Bruno Haible  <bruno@clisp.org>
7678
7679         uninorm tests: Preserve copyright of Unicode data file.
7680         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7681         Mention modifications.
7682
7683 2011-01-08  Bruno Haible  <bruno@clisp.org>
7684
7685         gen-uni-tables: Prepare for Unicode 5.2.0.
7686         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7687         (debug_output_lbp, output_lbp): Update.
7688
7689 2011-01-08  Bruno Haible  <bruno@clisp.org>
7690
7691         unilbrk: Clarify gen-uni-tables.c code.
7692         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7693         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7694         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7695
7696 2011-01-07  Bruno Haible  <bruno@clisp.org>
7697
7698         strtod: Restore errno when successfully parsing Infinity or NaN.
7699         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7700         restore the original errno.
7701
7702 2011-01-07  Bruno Haible  <bruno@clisp.org>
7703
7704         remove test: Avoid failure on HP-UX 11.
7705         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7706
7707 2011-01-07  Bruno Haible  <bruno@clisp.org>
7708
7709         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7710         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7711         error code.
7712
7713 2011-01-07  Pádraig Brady <P@draigBrady.com>
7714
7715         ignore-value: fixup comments, and add Eric Blake
7716         as an author since he rewrote the macros.
7717         * lib/ignore-value.h (ignore_value):  State that
7718         we now support aggregates.  Also specify exactly
7719         when the GCC warn_unused_result feature was added.
7720
7721 2011-01-06  Eric Blake  <eblake@redhat.com>
7722
7723         ignore-value: support aggregate types
7724         * lib/ignore-value.h (ignore_value): Provide separate gcc
7725         definition.
7726         * modules/ignore-value-tests: New test module.
7727         * tests/test-ignore-value.c: New test.
7728
7729         maint.mk: improve sc_prohibit_strcmp regex
7730         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7731         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7732         definition of STRNEQ.
7733
7734         signal: work around Haiku issue with SIGBUS
7735         * lib/siglist.h: Add comment.
7736         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7737         strsignal's favoring of SIGSEGV.
7738         * tests/test-signal.c (main): Avoid test failure.
7739         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7740         Reported by Scott McCreary.
7741
7742         maint.mk: add pre-release check to ensure submodule commits are public
7743         * top/maint.mk (public-submodule-commit): New rule.
7744         (submodule-checks): New variable.
7745         (alpha beta stable): Depend on the variable.
7746
7747 2011-01-05  Pádraig Brady <P@draigBrady.com>
7748         and Jim Meyering  <meyering@redhat.com>
7749
7750         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7751         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7752         (ATTRIBUTE_DEPRECATED): Define.
7753         (_ignore_case): New function.
7754         (ignore_value): New macro, to replace the old function.
7755         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7756         * modules/ignore-value (Depends-on): Add stdint.
7757
7758 2011-01-04  Eric Blake  <eblake@redhat.com>
7759
7760         doc: regenerate INSTALL
7761         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7762         @firstparagraphindent support, now that autoconf dropped it.
7763         (INSTALL_PRELUDE): Reinstate old macro.
7764         * doc/install.texi: Resync from autoconf.
7765         * doc/INSTALL: Reflect recent autoconf update.
7766         * doc/INSTALL.ISO: Likewise.
7767         * doc/INSTALL.UTF-8: Likewise.
7768         Reported by Karl Berry.
7769
7770 2011-01-04  Bruce Korb  <address@hidden>
7771
7772         git-version-gen: avoid a sub-shell
7773         * build-aux/git-version-gen: Redirect stderr in `...` via
7774         "exec 2>...", rather than via an added sub-shell.
7775
7776 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7777
7778         git-version-gen: use (...) rather than sh -c '...'
7779         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7780         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7781
7782 2011-01-03  Jim Meyering  <meyering@redhat.com>
7783
7784         git-version-gen: convert leading TABs to spaces
7785         * build-aux/git-version-gen: Expand leading TABs.
7786
7787         git-version-gen: handle failed "git rev-list"
7788         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7789         from git and proceeding as if it had succeeded but printed no SHA1
7790         checksums, suppress the diagnostic and handle the failure.
7791         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7792
7793         git-version-gen: include command name in one more diagnostic
7794         * build-aux/git-version-gen: When the required .tarball-version file
7795         was missing or unreadable, you might see the diagnostic from "cat",
7796         but no trace of the name of the invoking script.  Now, you still see
7797         the diagnostic from cat, but also get one from "git-version-gen: ".
7798         Inspired by a patch from Bruce Korb.
7799
7800         update-copyright: adjust test to match changed code
7801         * tests/test-update-copyright.sh: Change test's expected output
7802         to match new actual output.
7803
7804 2011-01-02  Bruno Haible  <bruno@clisp.org>
7805
7806         getlogin_r: Avoid test failure on HP-UX 11.
7807         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7808         ERANGE when the second argument is zero.
7809         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7810         portability problem.
7811
7812 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7813
7814         * build-aux/update-copyright: doc Simon's changes
7815
7816 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7817
7818         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7819         environment variable.
7820
7821 2011-01-02  Bruno Haible  <bruno@clisp.org>
7822
7823         unigbrk: Avoid gcc warnings.
7824         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7825         unused variable.
7826         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7827         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7828         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7829         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7830         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7831         Change type of first argument to 'const char *'.
7832         (main): Remove unused variable.
7833         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7834         type of first argument to 'const char *'.
7835         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7836         Likewise.
7837         (main): Change type of variable 's'.
7838         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7839         to 'int'.
7840
7841 2011-01-02  Bruno Haible  <bruno@clisp.org>
7842
7843         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7844         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7845         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7846         bug.
7847         * lib/pwrite.c: Undo 2010-12-31 patch.
7848         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7849
7850 2011-01-02  Bruno Haible  <bruno@clisp.org>
7851
7852         pread: Fix test whether it works.
7853         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7854
7855 2011-01-02  Bruno Haible  <bruno@clisp.org>
7856
7857         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7858         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7859         ends in "6". Don't require a specific month name. Try also the locale
7860         names found on HP-UX 11 and Solaris 7.
7861
7862 2011-01-02  Bruno Haible  <bruno@clisp.org>
7863
7864         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7865         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7866         C linkage.
7867         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7868
7869 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7870
7871         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7872         for consistency, since the "cluster" term is not used elsewhere.
7873         * lib/unigbrk.in.h: Update name.
7874         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7875         * lib/unigbrk/u16-grapheme-next.c: Update name.
7876         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7877         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7878         * lib/unigbrk/u32-grapheme-next.c: Update name.
7879         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7880         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7881         * lib/unigbrk/u8-grapheme-next.c: Update name.
7882         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7883         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7884         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7885         Suggested by Bruno Haible.
7886
7887 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7888
7889         Remove module 'u8-grapheme-len' as too redundant with
7890         'u8-grapheme-next'.
7891         * modules/unigbrk/u8-grapheme-len: Delete file.
7892         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7893         * lib/unigbrk.in.h: Remove prototype for deleted function.
7894         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7895         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7896
7897         Remove module 'u16-grapheme-len' as too redundant with
7898         'u16-grapheme-next'.
7899         * modules/unigbrk/u16-grapheme-len: Delete file.
7900         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7901         * lib/unigbrk.in.h: Remove prototype for deleted function.
7902         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7903         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7904
7905         Remove module 'u32-grapheme-len' as too redundant with
7906         'u32-grapheme-next'.
7907         * modules/unigbrk/u32-grapheme-len: Delete file.
7908         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7909         * lib/unigbrk.in.h: Remove prototype for deleted function.
7910         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7911         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7912
7913         Suggested by Bruno Haible.
7914
7915 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7916
7917         * unigbrk.in.h: Fix typo: "ben" => "been".
7918         Reported by Bruno Haible.
7919
7920 2011-01-01  Jim Meyering  <meyering@redhat.com>
7921
7922         maint: update almost all copyright ranges to include 2011
7923         Run the new "make update-copyright" rule.
7924
7925 2011-01-01  Jim Meyering  <meyering@redhat.com>
7926
7927         maint: update-copyright: exempt doc/INSTALL*
7928         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7929         since they are generated.  Suggested by Bruno Haible.
7930
7931 2011-01-01  Jim Meyering  <meyering@redhat.com>
7932
7933         maint: refine the update-copyright rule
7934         * Makefile (update-copyright): Also exclude any file that includes
7935         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7936         code that merely generates the comment.
7937
7938 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7939
7940         New module 'u8-grapheme-len'.
7941         * modules/unigbrk/u8-grapheme-len: New file.
7942         * modules/unigbrk/u8-grapheme-len-tests: New file.
7943         * lib/unigbrk.in.h: Add prototype for new function.
7944         * lib/unigbrk/u8-grapheme-len.c: New file.
7945         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7946
7947         New module 'u16-grapheme-len'.
7948         * modules/unigbrk/u16-grapheme-len: New file.
7949         * modules/unigbrk/u16-grapheme-len-tests: New file.
7950         * lib/unigbrk.in.h: Add prototype for new function.
7951         * lib/unigbrk/u16-grapheme-len.c: New file.
7952         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7953
7954         New module 'u32-grapheme-len'.
7955         * modules/unigbrk/u32-grapheme-len: New file.
7956         * modules/unigbrk/u32-grapheme-len-tests: New file.
7957         * lib/unigbrk.in.h: Add prototype for new function.
7958         * lib/unigbrk/u32-grapheme-len.c: New file.
7959         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7960
7961         New module 'u8-grapheme-next'.
7962         * modules/unigbrk/u8-grapheme-next: New file.
7963         * modules/unigbrk/u8-grapheme-next-tests: New file.
7964         * lib/unigbrk.in.h: Add prototype for new function.
7965         * lib/unigbrk/u8-grapheme-next.c: New file.
7966         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7967
7968         New module 'u16-grapheme-next'.
7969         * modules/unigbrk/u16-grapheme-next: New file.
7970         * modules/unigbrk/u16-grapheme-next-tests: New file.
7971         * lib/unigbrk.in.h: Add prototype for new function.
7972         * lib/unigbrk/u16-grapheme-next.c: New file.
7973         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7974
7975         New module 'u32-grapheme-next'.
7976         * modules/unigbrk/u32-grapheme-next: New file.
7977         * modules/unigbrk/u32-grapheme-next-tests: New file.
7978         * lib/unigbrk.in.h: Add prototype for new function.
7979         * lib/unigbrk/u32-grapheme-next.c: New file.
7980         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7981
7982         New module 'u8-grapheme-prev'.
7983         * modules/unigbrk/u8-grapheme-prev: New file.
7984         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7985         * lib/unigbrk.in.h: Add prototype for new function.
7986         * lib/unigbrk/u8-grapheme-prev.c: New file.
7987         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7988
7989         New module 'u16-grapheme-prev'.
7990         * modules/unigbrk/u16-grapheme-prev: New file.
7991         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7992         * lib/unigbrk.in.h: Add prototype for new function.
7993         * lib/unigbrk/u16-grapheme-prev.c: New file.
7994         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7995
7996         New module 'u32-grapheme-prev'.
7997         * modules/unigbrk/u32-grapheme-prev: New file.
7998         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7999         * lib/unigbrk.in.h: Add prototype for new function.
8000         * lib/unigbrk/u32-grapheme-prev.c: New file.
8001         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8002
8003         New module 'u8-grapheme-breaks'.
8004         * modules/unigbrk/u8-grapheme-breaks: New file.
8005         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8006         * lib/unigbrk.in.h: Add prototype for new function.
8007         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8008         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8009
8010         New module 'u16-grapheme-breaks'.
8011         * modules/unigbrk/u16-grapheme-breaks: New file.
8012         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8013         * lib/unigbrk.in.h: Add prototype for new function.
8014         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8015         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8016
8017         New module 'u32-grapheme-breaks'.
8018         * modules/unigbrk/u32-grapheme-breaks: New file.
8019         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8020         * lib/unigbrk.in.h: Add prototype for new function.
8021         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8022         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8023
8024         New module 'ulc-grapheme-breaks'.
8025         * modules/unigbrk/ulc-grapheme-breaks: New file.
8026         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8027         * m4/locale-ar.m4: New file.
8028         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8029         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8030         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8031
8032 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8033
8034         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8035         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8036         modified how this file was generated before I initially submitted
8037         the module, but failed to regenerate it.  This meant that several
8038         of the level2 entries were wrong.
8039         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8040         Remove the division-by-2 that is folded into the table now that
8041         gbrkprop.h has been regenerated properly.  Now -1 entries are
8042         handled correctly.
8043
8044         New module 'unigbrk/uc-gbrk-prop-tests'.
8045         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8046         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8047         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8048         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8049
8050 2011-01-01  Bruno Haible  <bruno@clisp.org>
8051
8052         Avoid use of hexadecimal escapes.
8053         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8054         instead of hexadecimal escapes.
8055
8056 2011-01-01  Jim Meyering  <meyering@redhat.com>
8057
8058         maint: new rule to update copyright year ranges
8059         * Makefile (update-copyright): New rule.
8060
8061         maint: indent with TABs in Makefile
8062         * Makefile: Expand leading sequences of spaces to TABs
8063
8064         version-etc: update the copyright year it reports
8065         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8066
8067 2010-12-31  Bruno Haible  <bruno@clisp.org>
8068
8069         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8070         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8071         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8072         zero.
8073
8074 2010-12-31  Bruno Haible  <bruno@clisp.org>
8075
8076         pwrite: Work around HP-UX 11.11 bug.
8077         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8078         works and set REPLACE_PWRITE if not.
8079         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8080         function.
8081         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8082
8083 2010-12-31  Bruno Haible  <bruno@clisp.org>
8084
8085         pread: Work around HP-UX 11 bugs.
8086         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8087         and set REPLACE_PREAD if not.
8088         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8089
8090 2010-12-31  Eric Blake  <eblake@redhat.com>
8091
8092         nl_langinfo: fix YESEXPR on Irix 6.5
8093         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8094         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8095         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8096         it.
8097
8098 2010-12-31  Bruno Haible  <bruno@clisp.org>
8099
8100         iconv: Document HP-UX 11 bug.
8101         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8102
8103 2010-12-31  Bruno Haible  <bruno@clisp.org>
8104
8105         ldexpl: Fix link error on HP-UX 11.
8106         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8107         LDEXPL_LIBM, using $ISNANL_LIBM.
8108
8109 2010-12-31  Eric Blake  <eblake@redhat.com>
8110
8111         ftello: avoid compilation failure with SunStudio c89
8112         * lib/ftello.c (ftello): Use lseek, not llseek.
8113
8114         tests: avoid failing coreutils tests on cygwin
8115         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8116         (create_exe_shims_): Return 0 when skipping.
8117
8118 2010-12-31  Bruno Haible  <bruno@clisp.org>
8119
8120         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8121         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8122
8123 2010-12-31  Bruno Haible  <bruno@clisp.org>
8124
8125         waitpid: Fix link error in C++ mode.
8126         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8127
8128 2010-12-31  Bruno Haible  <bruno@clisp.org>
8129
8130         isnan: Use GCC built-ins when possible.
8131         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8132         __builtin_isnan.
8133         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8134         (isnan): Define using GCC built-ins for GCC >= 4.0.
8135
8136 2010-12-31  Bruno Haible  <bruno@clisp.org>
8137
8138         isnand: Fix mistake.
8139         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8140         __builtin_isnand.
8141
8142 2010-12-31  Bruno Haible  <bruno@clisp.org>
8143
8144         open: Avoid C++ error on HP-UX 11.
8145         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8146
8147 2010-12-31  Bruno Haible  <bruno@clisp.org>
8148
8149         time_r: Add missing declarations on HP-UX 11.
8150         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8151         instead of HAVE_LOCALTIME_R.
8152         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8153         HAVE_LOCALTIME_R always.
8154         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8155         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8156         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8157         HAVE_LOCALTIME_R.
8158         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8159         * doc/posix-functions/localtime_r.texi: Likewise.
8160
8161 2010-12-29  Eric Blake  <eblake@redhat.com>
8162
8163         mountlist: tweak previous commit
8164         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8165         Reported by Paul Eggert.
8166
8167         mountlist: fix local drive detection on cygwin
8168         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8169         that works for cygwin.
8170
8171 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8172
8173         ftoastr, snprintf: ftoastr + snprintf module
8174         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8175         since the snprintf module now should be good enough here.
8176         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8177         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8178         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8179         GNULIB_SNPRINTF only for the test directory, and the latter
8180         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8181         seems to suffice by itself.
8182
8183 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8184
8185         alloca: one step towards thread-safety
8186         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8187         need for a static variable.  All callers changed.  This does not
8188         make the alloca replacement thread-safe, but it's one step.
8189
8190         tests: minor indenting change
8191         * tests/init.sh: Sync from coreutils housekeeping patch
8192         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8193         to keep lines within 80 columns.
8194
8195 2010-12-28  Jim Meyering  <meyering@redhat.com>
8196
8197         regex: don't infloop on persistent failing calloc
8198         * lib/regexec.c (build_trtable): Return failure indication upon
8199         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8200         In glibc, this was fixed for version 2.13:
8201         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8202
8203 2010-12-28  Bruno Haible  <bruno@clisp.org>
8204             Paul Eggert <eggert@cs.ucla.edu>
8205
8206         linkat: Make implementation robust against system behaviour variations.
8207         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8208         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8209         way, and to -2 if it needs a generic runtime test.
8210         * lib/linkat.c (solaris_optimized_link_immediate,
8211         solaris_optimized_link_follow): New functions.
8212         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8213         (check_same_link): Use it.
8214
8215 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8216
8217         New module 'unigbrk/base'.
8218         * modules/unigbrk/base: New file.
8219         * lib/unigbrk.in.h: New file.
8220
8221         New module 'unigbrk/uc-gbrk-prop'.
8222         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8223         * modules/unigbrk/uc-gbrk-prop: New file.
8224         * lib/unigbrk/gbrkprop.h: New file.
8225         * lib/unigbrk/uc-gbrk-prop.c: New file.
8226
8227         New module 'unigbrk/uc-is-grapheme-break'.
8228         * modules/unigbrk/uc-is-grapheme-break: New file.
8229         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8230         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8231         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8232         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8233         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8234
8235         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8236
8237 2010-12-27  Bruno Haible  <bruno@clisp.org>
8238
8239         linkat test: Avoid failure on Solaris 11 2010-11.
8240         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8241
8242 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8243
8244         utimens: work around glibc rounding bug on more platforms
8245         * lib/utimens.c (fdutimens): Work around rounding bug even if
8246         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8248
8249 2010-12-27  Bruno Haible  <bruno@clisp.org>
8250
8251         select tests: Improve comments.
8252         * tests/test-select.c (do_select): Add comments.
8253
8254 2010-12-27  Bruno Haible  <bruno@clisp.org>
8255
8256         select tests: Safer way of handling timeout.
8257         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8258         at every invocation.
8259
8260 2010-12-27  Bruno Haible  <bruno@clisp.org>
8261
8262         select tests: Use 'bool' where appropriate.
8263         * tests/test-select.c (connect_to_socket): Change argument type to
8264         'bool'.
8265
8266 2010-12-27  Bruno Haible  <bruno@clisp.org>
8267
8268         select tests: Use existing modules.
8269         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8270         (configure.ac): Don't test for unistd.h.
8271         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8272         declared in <unistd.h>.
8273
8274 2010-12-27  Bruno Haible  <bruno@clisp.org>
8275
8276         mbrtowc: Work around a Solaris 7 bug.
8277         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8278         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8279         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8280         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8281         MBRTOWC_NULL_ARG1_BUG.
8282         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8283         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8284         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8285         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8286
8287 2010-12-27  Jim Meyering  <meyering@redhat.com>
8288
8289         read-file.c: tweak syntax
8290         * lib/read-file.c (fread_file): Remove space after "*" in function
8291         definitions.
8292
8293 2010-12-27  Bruno Haible  <bruno@clisp.org>
8294
8295         times test: Avoid gcc warnings on OSF/1.
8296         * tests/test-times.c (main): Cast printf arguments from clock_t to
8297         'long int'.
8298
8299 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8300
8301         utimens: work around glibc rounding bug on older Linux kernels
8302         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8303         on Linux with a glibc whose utimes might not work, then work
8304         around a longstanding glibc bug involving rounding rather than
8305         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8306         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8307
8308 2010-12-26  Bruno Haible  <bruno@clisp.org>
8309
8310         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8311         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8312         _GL_CXXALIAS_SYS.
8313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8314
8315 2010-12-26  Bruno Haible  <bruno@clisp.org>
8316
8317         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8318         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8319         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8320         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8321         looking for the declaration.
8322         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8323         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8324         problem.
8325         * doc/posix-functions/inet_pton.texi: Likewise.
8326
8327 2010-12-26  Bruno Haible  <bruno@clisp.org>
8328
8329         arpa_inet: Use the common idioms with C++ support.
8330         * lib/arpa_inet.in.h: Include c++defs.h.
8331         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8332         support.
8333         * modules/arpa_inet (Depends-on): Add c++defs.
8334         (Makefile.am): Substitute the contents of c++defs.h.
8335         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8336         * modules/arpa_inet-c++-tests: New file.
8337         * tests/test-arpa_inet-c++.cc: New file.
8338
8339 2010-12-25  Bruno Haible  <bruno@clisp.org>
8340
8341         Fix more C++ link errors on Solaris 8.
8342         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8343         $(LIB_EACCESS).
8344         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8345         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8346         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8347         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8348         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8349
8350 2010-12-25  Bruno Haible  <bruno@clisp.org>
8351
8352         printf-posix: Fix link error when a non-GCC compiler is used.
8353         * lib/stdio.in.h (printf): When not using GCC, override printf
8354         correctly.
8355         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8356
8357 2010-12-25  Bruno Haible  <bruno@clisp.org>
8358
8359         strerror_r-posix: Update doc.
8360         * doc/posix-functions/strerror_r.texi: Update doc about the return
8361         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8362
8363 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8364
8365         utimens: simplify the logic of the previous change
8366         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8367         This should not affect whether the test succeeds or fails.
8368
8369         utimens: configure better on hosts with NFS clock skew
8370         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8371         uses the clock of the local host.  It might use the clock of the
8372         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8373         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8374
8375 2010-12-25  Bruno Haible  <bruno@clisp.org>
8376
8377         ptsname test: Avoid failure on Solaris.
8378         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8379         open a pseudo-terminal; don't use BSD-style ptys.
8380         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8381
8382 2010-12-25  Bruno Haible  <bruno@clisp.org>
8383
8384         ptsname: Avoid ERANGE failure on some systems.
8385         * lib/ptsname.c (buffer): Increase size.
8386
8387 2010-12-25  Bruno Haible  <bruno@clisp.org>
8388
8389         rename, renameat: Avoid test failures at NFS mounted locations.
8390         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8391         so that subsequent mkdir calls succeed.
8392
8393 2010-12-25  Bruno Haible  <bruno@clisp.org>
8394
8395         iswblank: Fix C++ link error on Solaris 8.
8396         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8397         _GL_FUNCDECL_SYS.
8398
8399 2010-12-25  Bruno Haible  <bruno@clisp.org>
8400
8401         unistd: Fix C++ link error on Solaris 8.
8402         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8403
8404 2010-12-25  Bruno Haible  <bruno@clisp.org>
8405
8406         readlink doc: Mention an old glibc bug.
8407         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8408
8409 2010-12-25  Bruno Haible  <bruno@clisp.org>
8410
8411         fcntl-h: Fix for use of C++ on glibc systems.
8412         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8413         also on glibc systems in C++ mode.
8414         Reported by Gary V. Vaughan <gary@gnu.org>.
8415
8416 2010-12-25  Bruno Haible  <bruno@clisp.org>
8417
8418         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8419         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8420
8421 2010-12-25  Bruno Haible  <bruno@clisp.org>
8422
8423         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8424         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8425         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8426         test whether truncl works according to ISO C 99 with IEC 60559.
8427         * m4/truncl-ieee.m4: New file.
8428         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8429         m4/signbit.m4.
8430         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8431
8432 2010-12-25  Bruno Haible  <bruno@clisp.org>
8433
8434         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8435         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8436         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8437         test whether ceill works according to ISO C 99 with IEC 60559.
8438         * m4/ceill-ieee.m4: New file.
8439         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8440         m4/signbit.m4.
8441         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8442
8443 2010-12-25  Bruno Haible  <bruno@clisp.org>
8444
8445         Ensure all prerequisites of <wchar.h> are included.
8446         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8447         before <wchar.h>.
8448         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8449         gl_MBRLEN_NUL_RETVAL): Likewise.
8450         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8451         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8452         AC_FUNC_MBRTOWC): Likewise.
8453         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8454         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8455         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8456         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8457         Likewise.
8458         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8459         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8460         (gl_WCHAR_H): Improve comments.
8461         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8462
8463 2010-12-25  Bruno Haible  <bruno@clisp.org>
8464
8465         strtok_r: Fix C syntax error in autoconf macro.
8466         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8467         characters in test program.
8468
8469 2010-12-24  Bruno Haible  <bruno@clisp.org>
8470
8471         ceil, trunc, round: Fix gcc warnings.
8472         * lib/ceil.c (MIN): Undefine before redefining.
8473         * lib/trunc.c (MIN): Likewise.
8474         * lib/round.c (MIN): Likewise.
8475         Include <math.h> first.
8476
8477 2010-12-24  Bruno Haible  <bruno@clisp.org>
8478
8479         select tests: Avoid failures on OSF/1 5.1.
8480         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8481         failure of closing the last socket; it may fail with ECONNRESET.
8482
8483 2010-12-24  Eric Blake  <eblake@redhat.com>
8484
8485         stdint: avoid HP-UX 10.20 preprocessor bug
8486         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8487         than #if.
8488         * tests/test-floor2.c (main): Likewise.
8489         Reported by Peter O'Gorman.
8490
8491         pipe: make obsoletion transition easier
8492         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8493         * modules/pipe (Files): Include revived file.
8494         (Include): Drop reference, to mirror getdate's behavior.
8495
8496 2010-12-24  Bruno Haible  <bruno@clisp.org>
8497
8498         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8499         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8500         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8501         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8502
8503 2010-12-24  Bruno Haible  <bruno@clisp.org>
8504
8505         gethostname: Ensure declaration on NonStop Kernel.
8506         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8507         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8508
8509 2010-12-24  Bruno Haible  <bruno@clisp.org>
8510
8511         sys_select: Ensure all necessary types on NonStop Kernel.
8512         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8513         include <sys/time.h>.
8514         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8515         NonStop Kernel.
8516         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8517
8518 2010-12-24  Bruno Haible  <bruno@clisp.org>
8519
8520         sys_select: Remove unneeded include.
8521         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8522         have <sys/select.h>.
8523
8524 2010-12-24  Bruno Haible  <bruno@clisp.org>
8525
8526         gethostname: Provide a fallback for HOST_NAME_MAX.
8527         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8528         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8529         instead.
8530         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8531
8532 2010-12-24  Bruno Haible  <bruno@clisp.org>
8533
8534         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8535         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8536         (SA_RESTART): Likewise.
8537         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8538
8539 2010-12-24  Bruno Haible  <bruno@clisp.org>
8540
8541         signal: Define NSIG.
8542         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8543         * tests/test-signal.c (nsig): New variable.
8544         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8545
8546 2010-12-24  Bruno Haible  <bruno@clisp.org>
8547
8548         rename, renameat: Avoid test failures on OSF/1 5.1.
8549         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8550         alternative error codes.
8551         * tests/test-renameat.c (main): Likewise.
8552
8553 2010-12-24  Bruno Haible  <bruno@clisp.org>
8554
8555         *printf: Detect large precisions bug on Solaris 10/SPARC.
8556         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8557         by Paul Eggert.
8558         * tests/test-snprintf-posix.h (test_function): Add this test code here
8559         too.
8560         * tests/test-sprintf-posix.h (test_function): Likewise.
8561         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8562         * tests/test-vasprintf-posix.c (test_function): Likewise.
8563         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8564         around by gnulib.
8565         * doc/posix-functions/printf.texi: Likewise.
8566         * doc/posix-functions/snprintf.texi: Likewise.
8567         * doc/posix-functions/sprintf.texi: Likewise.
8568         * doc/posix-functions/vfprintf.texi: Likewise.
8569         * doc/posix-functions/vprintf.texi: Likewise.
8570         * doc/posix-functions/vsnprintf.texi: Likewise.
8571         * doc/posix-functions/vsprintf.texi: Likewise.
8572         * doc/posix-functions/dprintf.texi: Undo last commit.
8573         * doc/posix-functions/vdprintf.texi: Likewise.
8574
8575 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8576
8577         tests: port test-fdutimensat.c to Solaris 8
8578         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8579         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8580         On Solaris 8, it fails with errno == ENOSYS, because there is no
8581         futimens (so it can't use the fd), and there is no lutimens (so it
8582         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8583
8584         vsnprintf: make more consistent with snprintf; doc fixes
8585
8586         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8587         the byte count return problem was promoted from the snprintf-posix
8588         to the snprintf module.
8589         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8590         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8591         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8592         * tests/test-snprintf.c (main): Check the byte count returned.
8593         * tests/test-vsnprintf.c (main): Likewise.
8594
8595 2010-12-23  Eric Blake  <eblake@redhat.com>
8596
8597         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8598         * modules/sigpipe (License): Relax license.
8599
8600 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8601
8602         doc: document Solaris printf bug with large float precisions
8603         * doc/posix-functions/dprintf.texi (dprintf):
8604         * doc/posix-functions/fprintf.texi (fprintf):
8605         * doc/posix-functions/printf.texi (printf):
8606         * doc/posix-functions/snprintf.texi (snprintf):
8607         * doc/posix-functions/sprintf.texi (sprintf):
8608         * doc/posix-functions/vdprintf.texi (vdprintf):
8609         * doc/posix-functions/vfprintf.texi (vfprintf):
8610         * doc/posix-functions/vprintf.texi (vprintf):
8611         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8612         * doc/posix-functions/vsprintf.texi (vsprintf):
8613         Mention that these functions mishandle large floating point
8614         precisions on Solaris 10.  The same bug is also present in Solaris
8615         8, and I assume earlier.  This causes "cd gnulib-tests; make
8616         check" to fail on Solaris 8 (and I assume, later) when building
8617         the latest coreutils, in test-vasprintf-posix's call to
8618         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8619         the wide flavors (e.g., wprintf) so this patch just updates the
8620         documentation for the narrow ones.
8621
8622         test-posixtm.c: add two tests
8623         * tests/test-posixtm.c: Add two tests, to highlight the
8624         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8625         around this bug; this is merely to document it.
8626
8627 2010-12-22  Bruno Haible  <bruno@clisp.org>
8628
8629         getlogin_r: Work around portability problem on OSF/1.
8630         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8631         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8632         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8633         test for a truncated result.
8634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8635         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8636         * modules/getlogin_r (Depends-on): Add memchr.
8637         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8638
8639 2010-12-22  Bruno Haible  <bruno@clisp.org>
8640
8641         ptsname: Avoid test failure on OSF/1 5.1.
8642         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8643         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8644         (same_slave): New function.
8645         (main): Use it to compare ptsname's result with the expected file name.
8646
8647 2010-12-22  Bruno Haible  <bruno@clisp.org>
8648
8649         Port extended stdio modules to HP NonStop Kernel.
8650         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8651         macros.
8652         * lib/fbufmode.c: Update comments.
8653         * lib/fflush.c: Likewise.
8654         * lib/fpurge.c: Likewise.
8655         * lib/freadable.c: Likewise.
8656         * lib/freadahead.c: Likewise.
8657         * lib/freading.c: Likewise.
8658         * lib/freadptr.c: Likewise.
8659         * lib/freadseek.c: Likewise.
8660         * lib/fseeko.c: Likewise.
8661         * lib/fseterr.c: Likewise.
8662         * lib/fwritable.c: Likewise.
8663         * lib/fwriting.c: Likewise.
8664         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8665
8666 2010-12-22  Bruno Haible  <bruno@clisp.org>
8667
8668         ttyname_r: Work around bug on OSF/1 5.1.
8669         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8670         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8671         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8672         present.
8673         * lib/ttyname_r.c (ttyname_r): Update comments.
8674
8675 2010-12-22  Bruno Haible  <bruno@clisp.org>
8676
8677         round: Implement result sign according to IEEE 754.
8678         * lib/round.c (MIN, MINUS_ZERO): New macros.
8679         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8680         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8681         * tests/test-round-ieee.c (main): Likewise.
8682         * tests/test-roundl-ieee.c (main): Likewise.
8683
8684         trunc: Implement result sign according to IEEE 754.
8685         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8686         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8687         * tests/test-trunc2.c: Include minus-zero.h.
8688         (MINUS_ZERO): New macro.
8689         (trunc_reference): Keep in sync with lib/trunc.c.
8690         * tests/test-truncf2.c: Include minus-zero.h.
8691         (MINUS_ZERO): New macro.
8692         (truncf_reference): Keep in sync with lib/trunc.c.
8693         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8694         * tests/test-trunc-ieee.c (main): Likewise.
8695         * tests/test-truncl-ieee.c (main): Likewise.
8696
8697         ceil: Implement result sign according to IEEE 754.
8698         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8699         (FUNC): Return -0.0 for -1 < x < 0.
8700         * tests/test-ceil2.c: Include minus-zero.h.
8701         (MINUS_ZERO): New macro.
8702         (ceil_reference): Keep in sync with lib/ceil.c.
8703         * tests/test-ceilf2.c: Include minus-zero.h.
8704         (MINUS_ZERO): New macro.
8705         (ceilf_reference): Keep in sync with lib/ceil.c.
8706         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8707         * tests/test-ceil-ieee.c (main): Likewise.
8708         * tests/test-ceill-ieee.c (main): Likewise.
8709
8710         floor: Implement result sign according to IEEE 754.
8711         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8712         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8713         * tests/test-floorf2.c (floorf_reference): Likewise.
8714         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8715         * tests/test-floor-ieee.c (main): Likewise.
8716         * tests/test-floorl-ieee.c (main): Likewise.
8717
8718 2010-12-22  Bruno Haible  <bruno@clisp.org>
8719
8720         getaddrinfo: Update doc.
8721         * doc/posix-functions/gai_strerror.texi: Return type is also different
8722         on AIX and HP-UX.
8723
8724 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8725
8726         getaddrinfo, inet_ntop: Update doc for Solaris.
8727         * doc/posix-functions/gai_strerror.texi: Return type is also an
8728         issue on Solaris 9 and earlier.
8729         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8730         on Solaris 10 and earlier.
8731
8732 2010-12-21  Bruno Haible  <bruno@clisp.org>
8733
8734         New module 'roundl-ieee'.
8735         * modules/roundl-ieee: New file.
8736         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8737         test whether roundl works according to ISO C 99 with IEC 60559.
8738         * m4/roundl-ieee.m4: New file.
8739         * modules/roundl-ieee-tests: New file.
8740         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8741         * tests/test-roundl.c (main): Remove signbit tests.
8742         * modules/roundl-tests (Depends-on): Remove signbit.
8743         * doc/posix-functions/roundl.texi: Mention the new module.
8744
8745 2010-12-21  Bruno Haible  <bruno@clisp.org>
8746
8747         New module 'truncl-ieee'.
8748         * modules/truncl-ieee: New file.
8749         * modules/truncl-ieee-tests: New file.
8750         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8751         * tests/test-truncl.c (main): Remove signbit tests.
8752         * modules/truncl-tests (Depends-on): Remove signbit.
8753         * doc/posix-functions/truncl.texi: Mention the new module.
8754
8755 2010-12-21  Bruno Haible  <bruno@clisp.org>
8756
8757         New module 'ceill-ieee'.
8758         * modules/ceill-ieee: New file.
8759         * modules/ceill-ieee-tests: New file.
8760         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8761         * tests/test-ceill.c (main): Remove signbit tests.
8762         * modules/ceill-tests (Depends-on): Remove signbit.
8763         * doc/posix-functions/ceill.texi: Mention the new module.
8764
8765 2010-12-21  Bruno Haible  <bruno@clisp.org>
8766
8767         New module 'floorl-ieee'.
8768         * modules/floorl-ieee: New file.
8769         * modules/floorl-ieee-tests: New file.
8770         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8771         * tests/test-floorl.c (main): Remove signbit tests.
8772         * modules/floorl-tests (Depends-on): Remove signbit.
8773         * doc/posix-functions/floorl.texi: Mention the new module.
8774
8775 2010-12-21  Bruno Haible  <bruno@clisp.org>
8776
8777         New module 'round-ieee'.
8778         * modules/round-ieee: New file.
8779         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8780         whether round works according to ISO C 99 with IEC 60559.
8781         * m4/round-ieee.m4: New file.
8782         * modules/round-ieee-tests: New file.
8783         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8784         * tests/test-round1.c (main): Remove signbit tests.
8785         * modules/round-tests (Depends-on): Remove 'signbit'.
8786         * doc/posix-functions/round.texi: Mention the new module.
8787
8788 2010-12-21  Bruno Haible  <bruno@clisp.org>
8789
8790         New module 'trunc-ieee'.
8791         * modules/trunc-ieee: New file.
8792         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8793         whether trunc works according to ISO C 99 with IEC 60559.
8794         * m4/trunc-ieee.m4: New file.
8795         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8797         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8798         * modules/trunc-ieee-tests: New file.
8799         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8800         * tests/test-trunc1.c (main): Remove signbit tests.
8801         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8802         * doc/posix-functions/trunc.texi: Mention the new module.
8803
8804 2010-12-21  Bruno Haible  <bruno@clisp.org>
8805
8806         New module 'ceil-ieee'.
8807         * modules/ceil-ieee: New file.
8808         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8809         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8810         ISO C 99 with IEC 60559.
8811         * m4/ceil-ieee.m4: New file.
8812         * modules/ceil (Files): Add lib/ceil.c.
8813         (Depends-on): Add 'float'.
8814         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8815         * lib/math.in.h (ceil): New declaration.
8816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8817         REPLACE_CEIL.
8818         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8819         * modules/ceil-ieee-tests: New file.
8820         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8821         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8822         * doc/posix-functions/ceil.texi: Mention the new module.
8823
8824 2010-12-21  Bruno Haible  <bruno@clisp.org>
8825
8826         New module 'floor-ieee'.
8827         * modules/floor-ieee: New file.
8828         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8829         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8830         ISO C 99 with IEC 60559.
8831         * m4/floor-ieee.m4: New file.
8832         * modules/floor (Files): Add lib/floor.c.
8833         (Depends-on): Add 'float'.
8834         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8835         * lib/math.in.h (floor): New declaration.
8836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8837         REPLACE_FLOOR.
8838         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8839         * modules/floor-ieee-tests: New file.
8840         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8841         * tests/test-math-c++.cc: Check the signature of 'floor'.
8842         * doc/posix-functions/floor.texi: Mention the new module.
8843
8844 2010-12-21  Bruno Haible  <bruno@clisp.org>
8845
8846         New module 'roundf-ieee'.
8847         * modules/roundf-ieee: New file.
8848         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8849         test whether roundf works according to ISO C 99 with IEC 60559.
8850         * m4/roundf-ieee.m4: New file.
8851         * modules/roundf-ieee-tests: New file.
8852         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8853         * tests/test-roundf1.c (main): Remove signbit tests.
8854         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8855         * doc/posix-functions/roundf.texi: Mention the new module.
8856
8857 2010-12-21  Bruno Haible  <bruno@clisp.org>
8858
8859         New module 'truncf-ieee'.
8860         * modules/truncf-ieee: New file.
8861         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8862         test whether truncf works according to ISO C 99 with IEC 60559.
8863         * m4/truncf-ieee.m4: New file.
8864         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8866         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8867         * modules/truncf-ieee-tests: New file.
8868         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8869         * tests/test-truncf1.c (main): Remove signbit tests.
8870         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8871         * doc/posix-functions/truncf.texi: Mention the new module.
8872
8873 2010-12-21  Bruno Haible  <bruno@clisp.org>
8874
8875         New module 'ceilf-ieee'.
8876         * modules/ceilf-ieee: New file.
8877         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8878         test whether ceilf works according to ISO C 99 with IEC 60559.
8879         * m4/ceilf-ieee.m4: New file.
8880         * modules/ceilf-ieee-tests: New file.
8881         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8882         * tests/test-ceilf1.c (main): Remove signbit tests.
8883         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8884         * doc/posix-functions/ceilf.texi: Mention the new module.
8885
8886 2010-12-21  Bruno Haible  <bruno@clisp.org>
8887
8888         New module 'floorf-ieee'.
8889         * modules/floorf-ieee: New file.
8890         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8891         test whether floorf works according to ISO C 99 with IEC 60559.
8892         * m4/floorf-ieee.m4: New file.
8893         * modules/floorf-ieee-tests: New file.
8894         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8895         * tests/test-floorf1.c (main): Remove signbit tests.
8896         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8897         * doc/posix-functions/floorf.texi: Mention the new module.
8898
8899 2010-12-21  Bruno Haible  <bruno@clisp.org>
8900
8901         Support for minus zero in autoconf macros.
8902         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8903         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8904         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8905         * tests/minus-zero.h: Update comments.
8906
8907 2010-12-21  Bruno Haible  <bruno@clisp.org>
8908
8909         Tests for module 'ceil'.
8910         * modules/ceil-tests: New file.
8911         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8912         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8913
8914 2010-12-21  Bruno Haible  <bruno@clisp.org>
8915
8916         Tests for module 'floor'.
8917         * modules/floor-tests: New file.
8918         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8919         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8920
8921 2010-12-21  Bruno Haible  <bruno@clisp.org>
8922
8923         math: Fix indentation.
8924         * lib/math.in.h (floorf): Fix indentation.
8925
8926 2010-12-21  Bruno Haible  <bruno@clisp.org>
8927
8928         Fix cross-compilation guesses on Solaris.
8929         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8930         not match "solaris2.10".
8931         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8932         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8933         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8934
8935 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8936
8937         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8938         This fixes a problem observed with the latest coreutils snapshot
8939         that caused a test to fail on Solaris 8.  src/csplit.c's call
8940         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8941         earlier, instead of returning the number of bytes that would have
8942         been generated; this causes csplit to incorrectly report memory
8943         exhaustion.
8944         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8945         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8946         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8947         comments to match.
8948         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8949         Fix typo in matching older versions of Solaris: "solaris2.10"
8950         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8951         only for guessing while cross-compiling.
8952         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8953
8954 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8955
8956         ftoastr: fix comment again
8957         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8958         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8959         Also, simplify example a bit by using flags = 0.
8960
8961 2010-12-20  Bruno Haible  <bruno@clisp.org>
8962
8963         round*, trunc*: Update documentation regarding glibc.
8964         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8965         * doc/posix-functions/round.texi: Likewise.
8966         * doc/posix-functions/roundl.texi: Likewise.
8967         * doc/posix-functions/truncf.texi: Likewise.
8968         * doc/posix-functions/trunc.texi: Likewise.
8969         * doc/posix-functions/truncl.texi: Likewise.
8970
8971 2010-12-20  Bruno Haible  <bruno@clisp.org>
8972
8973         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8974         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8975         * doc/posix-functions/round.texi: Likewise.
8976         * doc/posix-functions/roundl.texi: Likewise.
8977
8978 2010-12-20  Bruno Haible  <bruno@clisp.org>
8979
8980         ttyname_r: Add missing declaration on HP-UX 11.
8981         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8982         HAVE_TTYNAME_R.
8983         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8984         declared. Set HAVE_TTYNAME_R always.
8985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8986         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8987         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8988         HAVE_TTYNAME_R.
8989         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8990
8991 2010-12-20  Bruno Haible  <bruno@clisp.org>
8992
8993         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8994         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8995         * doc/posix-functions/getlogin_r.texi: Likewise.
8996         * tests/test-getlogin.c: Include <errno.h>.
8997         (main): Avoid test failure on HP-UX 11.11.
8998         * tests/test-getlogin_r.c (main): Likewise.
8999
9000 2010-12-20  Bruno Haible  <bruno@clisp.org>
9001
9002         getlogin_r: Add missing declaration on HP-UX 11.
9003         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9004         declared also when it exists as a function.
9005         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9006
9007 2010-12-20  Bruno Haible  <bruno@clisp.org>
9008
9009         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9010         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9011         through wcrtomb.
9012
9013 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9014
9015         ftoastr: fix comment
9016         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9017         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9018
9019 2010-12-19  Bruno Haible  <bruno@clisp.org>
9020
9021         isnan: Ensure it is a macro.
9022         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9023         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9024         Solaris.
9025
9026 2010-12-19  Bruno Haible  <bruno@clisp.org>
9027
9028         ldexpl test: Fix link error on OSF/1 5.1.
9029         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9030
9031 2010-12-19  Bruno Haible  <bruno@clisp.org>
9032
9033         wctype: Make it work in C++ mode on OSF/1 5.1.
9034         * lib/wctype.in.h (iswblank): Declare but not define here.
9035         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9036         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9037         * modules/wctype (Files): Add lib/iswblank.c.
9038
9039 2010-12-19  Bruno Haible  <bruno@clisp.org>
9040
9041         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9042         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9043         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9044
9045 2010-12-19  Bruno Haible  <bruno@clisp.org>
9046
9047         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9049         _POSIX_PII_SOCKET.
9050         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9051         * doc/posix-functions/recvfrom.texi: Likewise.
9052         * doc/posix-functions/send.texi: Likewise.
9053         * doc/posix-functions/sendto.texi: Likewise.
9054
9055 2010-12-19  Bruno Haible  <bruno@clisp.org>
9056
9057         tcgetsid: Add missing declaration on OSF/1 5.1.
9058         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9059         HAVE_TCGETSID.
9060         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9061         Don't set HAVE_TCGETSID.
9062         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9063         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9064         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9065         HAVE_TCGETSID.
9066         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9067
9068 2010-12-19  Bruno Haible  <bruno@clisp.org>
9069
9070         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9071         * lib/stdio.in.h: During the include_next statement, let recursive
9072         includes of this file include only the system header file.
9073
9074 2010-12-19  Bruno Haible  <bruno@clisp.org>
9075
9076         iconv_open: Fix regression from 2010-12-04.
9077         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9078         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9079
9080 2010-12-19  Bruno Haible  <bruno@clisp.org>
9081
9082         stdbool test: Avoid a gcc warning.
9083         * tests/test-stdbool.c (main): Fail if e1 is false.
9084         Reported by Jim Meyering.
9085
9086 2010-12-19  Jim Meyering  <meyering@redhat.com>
9087
9088         setenv: restore to working order
9089         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9090         mistakenly removed.
9091         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9092         HAVE_SETENV.
9093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9094         HAVE_SETENV.
9095
9096 2010-12-19  Bruno Haible  <bruno@clisp.org>
9097
9098         Document some different function declarations on OSF/1 5.1.
9099         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9100         * doc/posix-functions/inet_ntop.texi: Likewise.
9101         * doc/posix-functions/gethostname.texi: Likewise.
9102         * lib/unistd.in.h (gethostname): Update comment.
9103
9104 2010-12-19  Bruno Haible  <bruno@clisp.org>
9105
9106         doc: Mention vasprintf-posix module.
9107         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9108         the 'vasprintf-posix' module.
9109         * doc/glibc-functions/vasprintf.texi: Likewise.
9110
9111 2010-12-19  Bruno Haible  <bruno@clisp.org>
9112
9113         unsetenv: Add missing declaration on OSF/1 5.1.
9114         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9115         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9116         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9118         not HAVE_UNSETENV.
9119         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9120         HAVE_UNSETENV.
9121         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9122
9123 2010-12-19  Bruno Haible  <bruno@clisp.org>
9124
9125         setenv: Add missing declaration on OSF/1 5.1.
9126         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9127         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9128         declared. Don't set HAVE_SETENV.
9129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9130         not HAVE_SETENV.
9131         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9132         HAVE_SETENV.
9133         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9134
9135 2010-12-19  Bruno Haible  <bruno@clisp.org>
9136
9137         nl_langinfo tests: Avoid gcc warning.
9138         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9139
9140 2010-12-19  Bruno Haible  <bruno@clisp.org>
9141
9142         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9143         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9144         _GL_CXXALIAS_SYS.
9145
9146 2010-12-19  Bruno Haible  <bruno@clisp.org>
9147
9148         stdbool: Relax test.
9149         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9150         address to 'bool' work in static initializer, for compilers other than
9151         GCC.
9152
9153 2010-12-19  Bruno Haible  <bruno@clisp.org>
9154
9155         ftello: Add missing declaration on OSF/1 5.1.
9156         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9157         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9159         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9160         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9161
9162 2010-12-19  Bruno Haible  <bruno@clisp.org>
9163
9164         fseeko: Add missing declaration on OSF/1 5.1.
9165         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9166         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9168         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9169         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9170
9171 2010-12-19  Bruno Haible  <bruno@clisp.org>
9172
9173         fchdir: Add missing declaration on OSF/1 5.1.
9174         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9177         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9178         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9179
9180 2010-12-19  Bruno Haible  <bruno@clisp.org>
9181
9182         relocatable-prog-wrapper: Separate from relocatable-prog.
9183         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9184         uninstall-relocwrapper rule here.
9185         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9186         Reported by Ian Beckwith <ianb@erislabs.net>.
9187
9188 2010-12-19  Bruno Haible  <bruno@clisp.org>
9189
9190         unistr/u8-mbsnlen: Add missing dependency.
9191         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9192         Reported by Ian Beckwith <ianb@erislabs.net>.
9193
9194 2010-12-19  Bruno Haible  <bruno@clisp.org>
9195
9196         iconv: Make it possible again to use this module without 'iconv-h'.
9197         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9198         if it is not defined.
9199         Reported by Ian Beckwith <ianb@erislabs.net>.
9200
9201 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9202
9203         acl: port to Solaris 8 when copying from tmpfs to ufs
9204         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9205         error number.  Problem observed on Solaris 8 with latest
9206         coreutils, with "mv A B", where A is on a tmpfs file system and B
9207         is on a ufs file system.  This caused coreutils' mv/part-symlink
9208         test to fail.
9209
9210         tests: set fail=0 at start
9211         * tests/init.sh (setup_): Move fail=0 initialization here ...
9212         (mktempd_): ... from here, so that tests can rely on fail being
9213         set to 0 initially.  This fixes a problem in coreutils; see:
9214         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9215
9216 2010-12-18  Bruno Haible  <bruno@clisp.org>
9217
9218         memmem-simple: Stylistic changes.
9219         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9220         Fix preprocessor directive indentation.
9221
9222 2010-12-15  Pádraig Brady <P@draigBrady.com>
9223
9224         memmem, memmem-simple: reorganize and expand empty needle check
9225         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9226         functional checks to memmem-simple so that one has a fully functional
9227         memmem by using just this module.
9228         Restrict the performance only check to the memmem module.
9229         Also expand the empty needle check to ensure the correct
9230         pointer is returned, not just a non NULL pointer.
9231         * doc/glibc-functions/memmem.texi: Rearrange the portability
9232         documentation to correlate with the rearranged checks.
9233         Clarify exactly how the memmem and memmem-simple modules
9234         relate to each other.
9235
9236 2010-12-15  Pádraig Brady <P@draigBrady.com>
9237             Bruno Haible  <bruno@clisp.org>
9238
9239         Improve cross-compilation guesses for uClibc.
9240         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9241         that uClibc does not have the glibc bug.
9242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9243         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9244
9245 2010-12-14  Eric Blake  <eblake@redhat.com>
9246
9247         configmake: provide fallbacks for oldest supported autotools
9248         * m4/configmake.m4: New file.
9249         * modules/configmake (Files): Ship it.
9250         (configure.ac): Use it to guarantee fallbacks.
9251
9252 2010-12-13  Pádraig Brady <P@draigBrady.com>
9253
9254         read-file: Improve handling of large files
9255         * lib/read-file.c (fread_file): Minimize realloc()s
9256         for regular files, and better manage sizes around SIZE_MAX.
9257
9258 2010-12-13  Eric Blake  <eblake@redhat.com>
9259
9260         cloexec, fcntl: relax license
9261         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9262         consent from all contributors.
9263         * modules/fcntl (License): Likewise.
9264
9265 2010-12-10  Bruno Haible  <bruno@clisp.org>
9266
9267         Tests for module 'pipe-posix'.
9268         * modules/pipe-posix-tests: New file.
9269         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9270
9271 2010-12-10  Bruno Haible  <bruno@clisp.org>
9272
9273         pipe-posix: Make it work in C++ mode.
9274         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9275         (pipe): Use common idiom, not a macro definition.
9276         * lib/pipe.c: New file.
9277         * m4/pipe.m4: New file.
9278         * modules/pipe-posix (Description): Enhance.
9279         (Files): Add lib/pipe.c, m4/pipe.m4.
9280         (configure.ac): Invoke gl_FUNC_PIPE.
9281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9282         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9283         * tests/test-unistd-c++.cc: Check the signature of pipe.
9284
9285 2010-12-10  Bruno Haible  <bruno@clisp.org>
9286
9287         Rename module 'pipe' to 'spawn-pipe'.
9288         * modules/spawn-pipe: New file, renamed from modules/pipe.
9289         (Files, configure.ac, Makefile.am): Update.
9290         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9291         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9292         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9293         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9294         "spawn-pipe.h" instead of "pipe.h".
9295         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9296         to gl_SPAWN_PIPE.
9297         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9298         (Files, Makefile.am): Update.
9299         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9300         Update.
9301         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9302         Include "spawn-pipe.h" instead of "pipe.h".
9303         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9304         * lib/javacomp.c: Likewise.
9305         * lib/javaversion.c: Likewise.
9306         * lib/pipe-filter-gi.c: Likewise.
9307         * lib/pipe-filter-ii.c: Likewise.
9308         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9309         * modules/javacomp (Depends-on): Likewise.
9310         * modules/javaversion (Depends-on): Likewise.
9311         * modules/pipe-filter-gi (Depends-on): Likewise.
9312         * modules/pipe-filter-ii (Depends-on): Likewise.
9313         * MODULES.html.sh (Executing programs): Update.
9314         * NEWS: Mention the change.
9315
9316 2010-12-10  Eric Blake  <eblake@redhat.com>
9317
9318         pipe-posix: new module
9319         * modules/pipe-posix: New file.
9320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9321         (gl_UNISTD_H): Check for declaration.
9322         * modules/unistd (Makefile.am): Substitute it.
9323         * lib/unistd.in.h (pipe): Provide it for mingw.
9324         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9325         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9326
9327 2010-12-07  Bruno Haible  <bruno@clisp.org>
9328
9329         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9330         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9331         u8_strcmp_gnu.
9332         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9333
9334 2010-12-06  Bruno Haible  <bruno@clisp.org>
9335
9336         Update internal documentation.
9337         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9338
9339 2010-12-04  Bruno Haible  <bruno@clisp.org>
9340
9341         Put more information about failed tests into the test return codes.
9342         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9343         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9344         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9345         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9346         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9347         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9348         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9349         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9350         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9352         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9353         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9354         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9355         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9356         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9357         returns a bit mask.
9358         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9359         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9360         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9361         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9362         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9363         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9366         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9367         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9368         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9369         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9370         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9371         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9372         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9373         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9374         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9375         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9376         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9377         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9378         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9379         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9380         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9381         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9382         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9383         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9384         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9385         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9386         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9387         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9388         gl_PRINTF_PRECISION): Likewise.
9389         * m4/regex.m4 (gl_REGEX): Likewise.
9390         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9391         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9392         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9393         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9394         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9396         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9397         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9398         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9399         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9400         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9401         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9402         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9403         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9404         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9405         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9406         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9407         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9409         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9410         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9411         enumerated value.
9412         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9413
9414 2010-12-04  Bruno Haible  <bruno@clisp.org>
9415
9416         Update for Solaris 11 2010-11.
9417         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9418         Express, released in November 2010.
9419
9420 2010-12-04  Bruno Haible  <bruno@clisp.org>
9421
9422         nproc: Relax license.
9423         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9424         and Paul Eggert.
9425         Requested by Ludovic Courtès <ludo@gnu.org>.
9426
9427 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9428
9429         utimecmp: fine-grained src to nearby coarse-grained dest
9430
9431         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9432         and the source is on a file system with higher-resolution time
9433         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9434         not work, and the time stamps are close together, the algorithm to
9435         determine the exact resolution from the read-back mtime was buggy:
9436         it had a "!=" where it should have had an "==".  This bug has been
9437         in the code ever since it was introduced to gnulib.
9438         Problem reported by Dan Jacobson in
9439         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9440
9441 2010-11-30  Bruno Haible  <bruno@clisp.org>
9442
9443         strerror_r-posix: Fix autoconf test.
9444         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9445
9446 2010-11-28  Bruno Haible  <bruno@clisp.org>
9447             Paul Eggert  <eggert@cs.ucla.edu>
9448
9449         Tests for module 'getdomainname'.
9450         * modules/getdomainname-tests: New file.
9451         * tests/test-getdomainname.c: New file, based on
9452         tests/test-gethostname.c.
9453
9454 2010-11-28  Bruno Haible  <bruno@clisp.org>
9455             Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         getdomainname: Use the system function when possible.
9458         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9459         (getdomainname): Replace if needed. Provide the declaration if it is
9460         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9461         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9462         (getdomainname): When the system has getdomainname, call the system
9463         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9464         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9465         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9466         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9467         the function if its second argument is of type 'int' or if it is found
9468         in libnsl.
9469         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9470         <sys/systeminfo.h> and sysinfo().
9471         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9473         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9474         HAVE_GETDOMAINNAME.
9475         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9476         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9477         * doc/glibc-functions/getdomainname.texi: Document the problems with
9478         the getdomainname declaration.
9479
9480 2010-11-28  Bruno Haible  <bruno@clisp.org>
9481
9482         sys_socket: Ensure ss_family field on AIX.
9483         * lib/sys_socket.in.h (ss_family): New macro definition.
9484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9485         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9486         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9487         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9488         * modules/sys_socket (Makefile.am): Substitute
9489         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9490         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9491
9492 2010-11-27  Bruno Haible  <bruno@clisp.org>
9493
9494         readline: Improve configure output.
9495         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9496         "checking for readline..." result understandable.
9497
9498 2010-11-27  Bruno Haible  <bruno@clisp.org>
9499
9500         *printf-posix: Detect a bug on Solaris 10/x86.
9501         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9502         for floating-point output.
9503         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9504         directive.
9505         * tests/test-snprintf-posix.h (test_function): Likewise.
9506         * tests/test-sprintf-posix.h (test_function): Likewise.
9507         * tests/test-vasprintf-posix.c (test_function): Likewise.
9508         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9509         * doc/posix-functions/printf.texi: Likewise.
9510         * doc/posix-functions/snprintf.texi: Likewise.
9511         * doc/posix-functions/sprintf.texi: Likewise.
9512         * doc/posix-functions/vfprintf.texi: Likewise.
9513         * doc/posix-functions/vprintf.texi: Likewise.
9514         * doc/posix-functions/vsnprintf.texi: Likewise.
9515         * doc/posix-functions/vsprintf.texi: Likewise.
9516         * doc/glibc-functions/obstack_printf.texi: Likewise.
9517         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9518
9519 2010-11-27  Bruno Haible  <bruno@clisp.org>
9520
9521         Fix link error when module libunistring-optional is in use.
9522         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9523         * modules/striconveha-tests (Makefile.am): Likewise.
9524
9525 2010-11-27  Bruno Haible  <bruno@clisp.org>
9526
9527         regex: Mention link dependencies.
9528         * modules/regex (Link): New section.
9529         * modules/rpmatch (Link): Likewise.
9530         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9531
9532 2010-11-27  Bruno Haible  <bruno@clisp.org>
9533
9534         ftoastr: Fix compilation error on Solaris.
9535         * lib/ftoastr.c: Include <config.h>.
9536
9537 2010-11-27  Bruno Haible  <bruno@clisp.org>
9538
9539         getloadavg: Update documentation.
9540         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9541
9542 2010-11-27  Bruno Haible  <bruno@clisp.org>
9543
9544         sys_socket: Fix test whether the functions are declared.
9545         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9546         not <sys/select.h>.
9547
9548 2010-11-27  Bruno Haible  <bruno@clisp.org>
9549
9550         getpass: Make sure to get system declaration on some platforms.
9551         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9552         gl_USE_SYSTEM_EXTENSIONS.
9553         * modules/getpass (Depends-on): Add extensions.
9554
9555 2010-11-26  Bruno Haible  <bruno@clisp.org>
9556
9557         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9558         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9559         'iconv' module is present.
9560         (ICONV_CONST): New macro.
9561         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9562         ICONV_CONST.
9563         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9564         set ICONV_CONST.
9565         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9566         here.
9567         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9568         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9569         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9570         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9571         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9572         present.
9573
9574 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9575
9576         ftoastr: comment fix
9577         * lib/ftoastr.c: "little" -> "little or no" in comment
9578
9579 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9580
9581         stdint: port to GCC 4.3 + OSX + Octave
9582         On this platform, stdint.h is buggy and defines int64_t to long
9583         long int.  The replacement defined it to long int, causing
9584         problems with C++ style name mangling.  Instead, trust the system
9585         definition if INT64_MAX is defined, and likewise for the unsigned
9586         variant.   Problem reported by Jarno Rajahalme in
9587         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9588         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9589         and don't mess with int64_t and INT64_MAX in this case.
9590         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9591
9592 2010-11-24  Bruno Haible  <bruno@clisp.org>
9593
9594         doc: Corrections regarding MacOS X 10.4 and 10.5.
9595         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9596         MacOS X.
9597         Reported by Simon Josefsson.
9598
9599 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9600
9601         Uninstall ".bin" files installed by relocwrapper.
9602         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9603         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9604         unless it is already there.
9605
9606 2010-11-21  Bruno Haible  <bruno@clisp.org>
9607
9608         Update for NetBSD 5.0.
9609         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9610         NetBSD; the test fails on NetBSD 5.0.
9611         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9612         about NetBSD.
9613
9614 2010-11-21  Bruno Haible  <bruno@clisp.org>
9615
9616         Update for HP-UX 11.23 and HP-UX 11.31.
9617         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9618         HP-UX.
9619
9620 2010-11-21  Bruno Haible  <bruno@clisp.org>
9621
9622         Update for MacOS X 10.5.
9623         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9624         MacOS X; the test fails on MacOS X 10.5.8.
9625         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9626         about MacOS X.
9627
9628 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9629
9630         bootstrap: add bootstrap_sync option.
9631         See discussion at
9632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9634         * build-aux/bootstrap: Accept --bootstrap-sync to update
9635         bootstrap if it is not identical to the local gnulib's
9636         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9637         enable this by default.  Accept --no-bootstrap-sync to disable
9638         it.
9639
9640 2010-11-20  Bruno Haible  <bruno@clisp.org>
9641
9642         Ensure that <features.h> is included before __GLIBC__ is tested.
9643         * lib/printf-parse.h: Include <features.h>.
9644         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9645         Reported by Mike Frysinger <vapier@gentoo.org>.
9646
9647         Ensure that <features.h> is included before __GLIBC__ is tested.
9648         * lib/wchar.in.h: Include <features.h>.
9649         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9650         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9651         Reported by Mike Frysinger <vapier@gentoo.org>.
9652
9653         Ensure that <features.h> is included before __GLIBC__ is tested.
9654         * lib/arpa_inet.in.h: Include <features.h>.
9655         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9656         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9657         Reported by Mike Frysinger <vapier@gentoo.org>.
9658
9659         Ensure that <features.h> is included before __GLIBC__ is tested.
9660         * build-aux/link-warning.h: Include <features.h>.
9661         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9662         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9663         Reported by Mike Frysinger <vapier@gentoo.org>.
9664
9665         Ensure that <features.h> is included before __GLIBC__ is tested.
9666         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9667         Reported by Mike Frysinger <vapier@gentoo.org>.
9668
9669 2010-11-20  Bruno Haible  <bruno@clisp.org>
9670
9671         memmem: Fix autoconf test.
9672         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9673
9674 2010-11-20  Bruno Haible  <bruno@clisp.org>
9675
9676         Port to uClibc.
9677         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9678         * lib/fcntl.in.h: Likewise.
9679         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9680         * lib/mbrtowc.c (mbrtowc): Likewise.
9681         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9682         * lib/strerror_r.c: Likewise.
9683         * lib/unistr/u8-strnlen.c: Likewise.
9684         * lib/vasnprintf.c (decimal_point_char): Likewise.
9685         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9686         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9687         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9688         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9689         * tests/test-sigaction.c (handler, main): Likewise.
9690         * lib/freading.h: Treat uClibc like a non-glibc platform.
9691         * lib/freading.c: Likewise.
9692         * lib/gettext.h: Likewise.
9693         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9694         Likewise.
9695         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9696         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9697         * lib/propername.c (proper_name_utf8): Likewise.
9698         * lib/spawn.in.h: Likewise.
9699         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9700         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9701         mem_cd_iconveh_internal): Likewise.
9702         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9703         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9704         strstr, strcasestr): Likewise.
9705         * lib/unicodeio.c (unicode_to_mb): Likewise.
9706         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9707         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9708         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9709         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9710         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9711         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9712         * lib/unistr/u8-stpncpy.c: Likewise.
9713         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9714         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9715         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9716         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9717         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9718         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9719         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9720         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9721         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9722         Likewise.
9723         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9724         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9726         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9727         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9728         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9729         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9730         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9731         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9732         * tests/test-striconveha.c (main): Likewise.
9733         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9734         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9735         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9736         * doc/posix-functions/getline.texi: Likewise.
9737         Reported by Mike Frysinger <vapier@gentoo.org>.
9738
9739 2010-11-20  Bruno Haible  <bruno@clisp.org>
9740
9741         nproc: Fix condition.
9742         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9743         HAVE_PTHREAD_AFFINITY_NP.
9744
9745 2010-11-20  Bruno Haible  <bruno@clisp.org>
9746
9747         Fix a comment.
9748         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9749
9750 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9751
9752         ftoastr: don't assume snprintf
9753         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9754         Implement a subset of snprintf here, by using sprintf safely.
9755         * modules/ftoastr (Depends-on): Remove snprintf.
9756
9757 2010-11-19  Jim Meyering  <meyering@redhat.com>
9758
9759         test-rename.h: fix compilation failure
9760         * tests/test-rename.h (test_rename): Add omitted "}".
9761
9762 2010-11-17  Jim Meyering  <meyering@redhat.com>
9763
9764         maint.mk: add a URL discussing the no-@acronym policy
9765         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9766
9767 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9768
9769         ftoastr: depend on snprintf, improve comments
9770         * lib/ftoastr.c: Also mention Loitsch's draft.
9771         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9772         needed in the current implementation, but it might simplify
9773         speeding up the code later.
9774         * modules/ftoastr: Depend on snprintf; this improves portability.
9775         Suggested by Bruno Haible in the same email.
9776
9777         ftoastr: port to hosts lacking strtof and strtold
9778         Problem reported by Bruno Haible in
9779         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9780         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9781         environment and strtold (and presumably strtof) are not available.
9782         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9783         (configure.ac): Require gl_C99_STRTOLD.
9784
9785 2010-11-18  Bruno Haible  <bruno@clisp.org>
9786
9787         c-strtold: Avoid link error on AIX 7.
9788         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9789         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9790         (gl_C_STRTOLD): Test whether strtold_l exists.
9791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9792
9793 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9794
9795         intprops: new macro INT_BITS_STRLEN_BOUND
9796         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9797         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9798         not exposed.  Also, it uses a slightly tighter bound than before;
9799         though this makes no practical difference, we might as well be as
9800         tight as we easily can.
9801
9802         ftoastr: new module, for lossless conversion of floats to short strings
9803         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9804         * modules/ftoastr: New files.
9805
9806 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9807
9808         bootstrap: port to Solaris sed
9809         * build-aux/bootstrap (get_version): Port to Solaris sed.
9810         See Ralf Wildenhues's note in
9811         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9812
9813 2010-11-14  Jim Meyering  <meyering@redhat.com>
9814
9815         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9816         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9817         and move definition closer to sole use.
9818
9819 2010-11-13  Jim Meyering  <meyering@redhat.com>
9820
9821         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9822         Now we require at least autoconf-2.59, which means the work-around
9823         is no longer needed.
9824         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9825         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9826         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9827         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9828         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9829
9830 2010-11-13  Bruno Haible  <bruno@clisp.org>
9831
9832         rename, renameat: Avoid test failures at NFS mounted locations.
9833         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9834         functions.
9835         (test_rename): Use assert_nonexistent.
9836         * tests/test-rename.c: Include <dirent.h>.
9837         * tests/test-renameat.c: Likewise.
9838         Reported by Gary V. Vaughan <gary@gnu.org>.
9839
9840         rename, renameat: Document Linux bug with NFS
9841         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9842         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9843         * doc/posix-functions/renameat.texi: Likewise.
9844         Suggested by Eric Blake.
9845
9846 2010-11-13  Bruno Haible  <bruno@clisp.org>
9847
9848         rename test: Add comments.
9849         * tests/test-rename.h (test_rename): Add structure and comments.
9850
9851 2010-11-13  Eric Blake  <eblake@redhat.com>
9852
9853         maintainer-makefile: cover a few more files
9854         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9855         scripts generated within C files, for libvirt.
9856
9857 2010-11-13  Bruno Haible  <bruno@clisp.org>
9858
9859         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9860         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9861         character, return the number of bytes that belong together, not always
9862         1.
9863         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9864         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9865         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9866         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9867         number of bytes of an invalid character.
9868         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9869         (main): Invoke it.
9870         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9871         results.
9872         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9873         malformed byte sequences.
9874         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9875         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9876         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9877         Reported by Ben Pfaff and Paolo Bonzini.
9878
9879 2010-11-13  Bruno Haible  <bruno@clisp.org>
9880
9881         openat: Work around glibc bug with fchownat() and empty file names.
9882         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9883         (gl_FUNC_FCHOWNAT): Invoke it.
9884         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9885         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9886         Reported by Gary V. Vaughan <gary@gnu.org>.
9887
9888 2010-11-13  Bruno Haible  <bruno@clisp.org>
9889
9890         openat: Ensure autoconf macro ordering.
9891         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9892         gl_USE_SYSTEM_EXTENSIONS.
9893         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9894
9895 2010-11-13  Bruno Haible  <bruno@clisp.org>
9896
9897         Update comments.
9898         * lib/unistr/u8-check.c: Update file name in comments.
9899         * lib/unistr/u8-mblen.c: Likewise.
9900         * lib/unistr/u8-prev.c: Likewise.
9901         * lib/unistr/u8-strmblen.c: Likewise.
9902         * lib/unistr/u8-strmbtouc.c: Likewise.
9903
9904 2010-11-13  Jim Meyering  <meyering@redhat.com>
9905
9906         tests: avoid test failure on Solaris 10 due to lack of PATH export
9907         * tests/test-update-copyright.sh: Don't forget to export PATH.
9908
9909         init.sh: ensure that IFS is defined, just in case...
9910         * tests/init.sh (setup_): Ensure that IFS is defined,
9911         so that saving and restoring it works as expected.  This
9912         appears to be useful at least for an old version of dash
9913         from a long time ago (RH 6).  See here for details:
9914         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9915
9916         maint.mk: tighten "test a == b" check
9917         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9918         test to files that contain something like #!/bin/sh.
9919         Without this, coreutils would get two false positives in
9920         the comments of C source files.
9921
9922 2010-11-12  Eric Blake  <eblake@redhat.com>
9923
9924         bootstrap: fix typo in previous attempt
9925         * build-aux/bootstrap (buildreq): Correct the grouping.
9926         Reported by Paul Eggert.
9927
9928         maintainer-makefile: prohibit test x == x
9929         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9930         Based on a report by Matthias Bolte.
9931
9932         bootstrap: allow FreeBSD gzip
9933         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9934         which has no '.' and goes to stderr.
9935         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9936         Reported by Matthias Bolte.
9937
9938         maintainer-makefile: check for i18n setup
9939         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9940         will likely work.
9941
9942 2010-11-12  Bruno Haible  <bruno@clisp.org>
9943
9944         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9945         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9946         * lib/nanosleep.c (nanosleep): Likewise.
9947
9948 2010-11-11  Bruno Haible  <bruno@clisp.org>
9949
9950         fcntl-h: Fix for use of C++ on glibc systems.
9951         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9952         also on glibc systems in C++ mode.
9953         Reported by Gary V. Vaughan <gary@gnu.org>.
9954
9955 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9956
9957         mknod: avoid false failure with dash
9958         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9959
9960 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9961
9962         unlink: Fix "is it should" typo in diagnostic.
9963         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9964         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9965
9966 2010-11-11  Bruno Haible  <bruno@clisp.org>
9967
9968         Tests for module 'strerror_r-posix'.
9969         * modules/strerror_r-posix-tests: New file.
9970         * tests/test-strerror_r.c: New file.
9971         * tests/test-string-c++.cc: Check the signature of strerror_r.
9972
9973         New module 'strerror_r-posix'.
9974         * lib/string.in.h (strerror_r): New declaration.
9975         * lib/strerror_r.c: New file.
9976         * m4/strerror_r.m4: New file.
9977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9978         of strerror_r.
9979         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9980         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9981         * modules/strerror_r-posix: New file.
9982         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9983         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9984         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9985         portability problems.
9986
9987 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9988
9989         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9990         line is also considered for output. Quoted function name in shell
9991         command, so temporary files for functions like MyClass::operator()
9992         are removed correctly without errors.
9993
9994 2010-11-09  Bruno Haible  <bruno@clisp.org>
9995
9996         * doc/posix-functions/strerror.texi: List more failing platforms.
9997
9998         * doc/posix-functions/strerror.texi: Add a comment.
9999
10000 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10001
10002         fdopendir: fix bug on MacOS X when low on file descriptors
10003
10004         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10005         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10006         All callers changed.
10007         (fdopendir): Invoke save_cwd at the top level, not after using
10008         multiple dup() calls to use up file descriptors.  Then retry
10009         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10010         less than the maximum number of open file descriptors, because
10011         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10012         on Mac OS X 10.6.4 for tar 1.24
10013         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10014         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10015         and for tar 1.25
10016         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10017
10018 2010-11-07  Bruno Haible  <bruno@clisp.org>
10019
10020         vasnprintf: Support I flag on glibc systems.
10021         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10022         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10023         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10024         snprintf function.
10025         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10026         glibc systems.
10027         * tests/test-vasnprintf-posix3.c: New file.
10028         * modules/vasnprintf-posix-tests (Files): Add it.
10029         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10030
10031 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10032
10033         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10034         * MODULES.html.sh: For compiler warnings, use name
10035         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10036
10037 2010-11-05  Eric Blake  <eblake@redhat.com>
10038
10039         ceil, floor: avoid spurious failure with icc
10040         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10041         [denormals-as-zero] when optimizing without -mieee-fp option.
10042         * tests/test-floorf2.c (floorf_reference): Likewise.
10043         * tests/test-ceilf1.c (dummy): New function.
10044         (main): Use it to outsmart icc's optimization.
10045         * tests/test-floorf1.c (dummy, main): Likewise.
10046
10047         tests: require working signbit
10048         * modules/ceilf-tests (Depends-on): Add signbit.
10049         * modules/ceill-tests (Depends-on): Likewise.
10050         * modules/floorf-tests (Depends-on): Likewise.
10051         * modules/floorl-tests (Depends-on): Likewise.
10052         * modules/round-tests (Depends-on): Likewise.
10053         * modules/roundf-tests (Depends-on): Likewise.
10054         * modules/roundl-tests (Depends-on): Likewise.
10055         * modules/trunc-tests (Depends-on): Likewise.
10056         * modules/truncf-tests (Depends-on): Likewise.
10057         * modules/truncl-tests (Depends-on): Likewise.
10058
10059         strtod: work around icc bug
10060         * lib/strtod.c (minus_zero): Define to working value.
10061         (strtod): Use it to avoid icc bug.
10062
10063         copysign: enhance tests
10064         * modules/copysign-tests (Files): Add minus-zero.h.
10065         * tests/test-copysign.c (main): Also test zeros.
10066
10067 2010-11-04  Eric Blake  <eblake@redhat.com>
10068
10069         ceil, floor, round, trunc: enhance tests of -0
10070         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10071         * tests/test-ceill.c (main): Likewise.
10072         * tests/test-floorf1.c (main): Likewise.
10073         * tests/test-floorl.c (main): Likewise.
10074         * tests/test-round1.c (main): Likewise.
10075         * tests/test-roundf1.c (main): Likewise.
10076         * tests/test-roundl.c (main): Likewise.
10077         * tests/test-trunc1.c (main): Likewise.
10078         * tests/test-truncf1.c (main): Likewise.
10079         * tests/test-truncl.c (main): Likewise.
10080
10081 2010-11-04  Eric Blake  <eblake@redhat.com>
10082
10083         frexp, tests: work around ICC bug with -zero
10084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10085         works with more compilers.
10086         * tests/minus-zero.h: New file.
10087         * modules/ceilf-tests (Files): Include it.
10088         * modules/ceill-tests (Files): Likewise.
10089         * modules/floorf-tests (Files): Likewise.
10090         * modules/floorl-tests (Files): Likewise.
10091         * modules/frexp-nolibm-tests (Files): Likewise.
10092         * modules/frexp-tests (Files): Likewise.
10093         * modules/frexpl-nolibm-tests (Files): Likewise.
10094         * modules/frexpl-tests (Files): Likewise.
10095         * modules/isnan-tests (Files): Likewise.
10096         * modules/isnand-nolibm-tests (Files): Likewise.
10097         * modules/isnand-tests (Files): Likewise.
10098         * modules/isnanf-nolibm-tests (Files): Likewise.
10099         * modules/isnanf-tests (Files): Likewise.
10100         * modules/isnanl-nolibm-tests (Files): Likewise.
10101         * modules/isnanl-tests (Files): Likewise.
10102         * modules/round-tests (Files): Likewise.
10103         * modules/roundf-tests (Files): Likewise.
10104         * modules/roundl-tests (Files): Likewise.
10105         * modules/ldexpl-tests (Files): Likewise.
10106         * modules/signbit-tests (Files): Likewise.
10107         * modules/snprintf-posix-tests (Files): Likewise.
10108         * modules/sprintf-posix-tests (Files): Likewise.
10109         * modules/strtod-tests (Files): Likewise.
10110         * modules/trunc-tests (Files): Likewise.
10111         * modules/truncf-tests (Files): Likewise.
10112         * modules/truncl-tests (Files): Likewise.
10113         * modules/vsnprintf-posix-tests (Files): Likewise.
10114         * modules/vsprintf-posix-tests (Files): Likewise.
10115         * modules/vasnprintf-posix-tests (Files): Likewise.
10116         * modules/vasprintf-posix-tests (Files): Likewise.
10117         * tests/test-ceilf1.c (main): Use it.
10118         * tests/test-ceill.c (main): Likewise.
10119         * tests/test-floorf1.c (main): Likewise.
10120         * tests/test-floorl.c (main): Likewise.
10121         * tests/test-frexp.c (main): Likewise.
10122         * tests/test-frexpl.c (main): Likewise.
10123         * tests/test-isnan.c (main): Likewise.
10124         * tests/test-isnand.h (main): Likewise.
10125         * tests/test-isnanf.h (main): Likewise.
10126         * tests/test-isnanl.h (main): Likewise.
10127         * tests/test-ldexpl.c (main): Likewise.
10128         * tests/test-round.c (main): Likewise.
10129         * tests/test-roundf.c (main): Likewise.
10130         * tests/test-roundl.c (main): Likewise.
10131         * tests/test-signbit.c (test_signbitf, test_signbitd)
10132         (test_signbitl): Likewise.
10133         * tests/test-snprintf-posix.h (test_function): Likewise.
10134         * tests/test-sprintf-posix.h (test_function): Likewise.
10135         * tests/test-strtod.c (main): Likewise.
10136         * tests/test-trunc1.c (main): Likewise.
10137         * tests/test-truncf1.c (main): Likewise.
10138         * tests/test-truncl.c (main): Likewise.
10139
10140         isnanl: work around icc bug
10141         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10142
10143 2010-11-03  Eric Blake  <eblake@redhat.com>
10144
10145         tests: fix compiler warnings
10146         * tests/test-getopt.h (test_getopt): Fix condition.
10147         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10148         * tests/test-pipe2.c (main): Likewise.
10149         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10150
10151         utimens: fix broken m4 test
10152         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10153
10154 2010-10-28  Bruno Haible  <bruno@clisp.org>
10155
10156         posix_spawn*, getdtablesize: Relax license.
10157         * modules/posix_spawn (License): Change to LGPLv2+.
10158         * modules/posix_spawnp (License): Likewise.
10159         * modules/posix_spawn-internal (License): Likewise.
10160         * modules/posix_spawnattr_init (License): Likewise.
10161         * modules/posix_spawnattr_getflags (License): Likewise.
10162         * modules/posix_spawnattr_setflags (License): Likewise.
10163         * modules/posix_spawnattr_getpgroup (License): Likewise.
10164         * modules/posix_spawnattr_setpgroup (License): Likewise.
10165         * modules/posix_spawnattr_getschedparam (License): Likewise.
10166         * modules/posix_spawnattr_setschedparam (License): Likewise.
10167         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10168         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10169         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10170         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10171         * modules/posix_spawnattr_getsigmask (License): Likewise.
10172         * modules/posix_spawnattr_setsigmask (License): Likewise.
10173         * modules/posix_spawnattr_destroy (License): Likewise.
10174         * modules/posix_spawn_file_actions_init (License): Likewise.
10175         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10176         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10177         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10178         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10179         * modules/getdtablesize (License): Likewise.
10180         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10181
10182 2010-10-26  Bruno Haible  <bruno@clisp.org>
10183
10184         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10185         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10186         Cygwin and mingw.
10187         Suggested by Eric Blake.
10188
10189 2010-10-26  Bruno Haible  <bruno@clisp.org>
10190
10191         stdio: Work around compilation error due to renameat() on Solaris 10.
10192         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10193         * lib/renameat.c: Don't include <unistd.h> here.
10194         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10195         Reported by Paul Eggert and Eric Blake.
10196
10197 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10198
10199         renameat: port to Solaris 10, which declares renameat in unistd.h
10200
10201         * lib/renameat.c: Include unistd.h before stdio.h, because
10202         Solaris 10 declares renameat in unistd.h.  Problem encountered
10203         when building GNU tar 1.24 on Solaris 10.
10204
10205 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10206
10207         fdopendir: fix C89 compilation
10208         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10209         compilers.
10210
10211 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10212
10213         inttostr: simplify by removing unnecessary redundancy
10214         * lib/anytostr.c: Don't include verify.h.
10215         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10216         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10217         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10218         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10219         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10220         Likewise.
10221         * modules/inttostr (Depends-on): Remove 'verify'.
10222
10223 2010-10-23  Bruno Haible  <bruno@clisp.org>
10224
10225         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10226         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10227         Reported by Eric Blake.
10228
10229 2010-10-23  Bruno Haible  <bruno@clisp.org>
10230
10231         Tests: Fix LOCALE_JA on MirBSD 10.
10232         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10233         to an UTF-8 locale.
10234         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10235         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10236         Reported by Eric Blake.
10237
10238 2010-10-21  Bruno Haible  <bruno@clisp.org>
10239
10240         nl_langinfo test: Avoid test failure on NetBSD 5.
10241         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10242         Reported by Eric Blake.
10243
10244 2010-10-21  Eric Blake  <eblake@redhat.com>
10245
10246         c-stack: work around libsigsegv 2.8 bug
10247         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10248         overflow on at least PowerPC64.
10249
10250 2010-10-17  Bruno Haible  <bruno@clisp.org>
10251
10252         userspec: Drop redundant file.
10253         * modules/userspec (Files): Remove lib/inttostr.h.
10254
10255 2010-10-17  Bruno Haible  <bruno@clisp.org>
10256
10257         nl_langinfo tests: Silence some warnings.
10258         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10259         Reported by Jim Meyering.
10260
10261 2010-10-17  Bruno Haible  <bruno@clisp.org>
10262
10263         Make use of GCC's attribute __alloc_size__.
10264         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10265         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10266         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10267         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10268         __alloc_size__.
10269         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10270         Suggested by Jim Meyering.
10271
10272 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10273
10274         bootstrap: anchor .gitignore entries.
10275         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10276         with...
10277         (insert_vc_ignore): ... this new function, which prepends `/' to
10278         all .gitignore entries before passing them to
10279         insert_sorted_if_absent.
10280
10281 2010-10-16  Bruno Haible  <bruno@clisp.org>
10282
10283         nextafter: Fix configure check.
10284         * modules/nextafter (configure.ac): Correct expected prototype.
10285
10286 2010-10-16  Bruno Haible  <bruno@clisp.org>
10287
10288         termios: Update documentation.
10289         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10290
10291 2010-10-16  Bruno Haible  <bruno@clisp.org>
10292
10293         tests: Make them compile with TinyCC.
10294         * tests/test-strstr.c (main): Remove parentheses around array
10295         initializer.
10296
10297 2010-10-15  Eric Blake  <eblake@redhat.com>
10298
10299         ignore-value: make header idempotent
10300         * lib/ignore-value.h: Add double-inclusion guards.
10301         Reported by Stefan Berger.
10302
10303 2010-10-15  Jim Meyering  <meyering@redhat.com>
10304
10305         GNUmakefile: handle "stable" target, not "major"
10306         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10307         lists in maint.mk and announce-gen.  Without this, "make stable"
10308         would fail to ensure that $(VERSION) is up to date.
10309
10310 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10311
10312         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10313         & co.
10314
10315 2010-10-14  Bruno Haible  <bruno@clisp.org>
10316
10317         vasnprintf: Don't set errno to 0.
10318         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10319         block that sets it to 0.
10320         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10321
10322 2010-10-14  Bruno Haible  <bruno@clisp.org>
10323
10324         socketlib: Fix.
10325         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10326         gl_PREREQ_SYS_H_WINSOCK2.
10327         Reported by Ian Beckwith <ianb@erislabs.net>.
10328
10329 2010-10-13  Jim Meyering  <meyering@redhat.com>
10330
10331         test-select-stdin.c: avoid warn_unused_result warnings
10332         * tests/test-select-stdin.c: Include "macros.h".
10333         ASSERT that read and fflush succeed.
10334
10335 2010-10-13  Jim Meyering  <meyering@redhat.com>
10336
10337         git-version-gen: do require git-VC'd files in cwd
10338         * build-aux/git-version-gen: Reject a git version string
10339         if there are no commits associated with the current directory.
10340         This avoids an unlikely false-positive (unrelated dir whose parent
10341         repository also contains a tag matching v*), as pointed out
10342         by Giuseppe Scrivano in
10343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10344
10345 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10346
10347         argv-iter: omit nonconforming declaration
10348         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10349         enum arg_iter_err declaration, which doesn't conform to C99.
10350         Solaris 10 cc warns about this.
10351
10352 2010-10-13  Eric Blake  <eblake@redhat.com>
10353
10354         termios: fix compilation on mingw
10355         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10356         (gl_TERMIOS_H): Adjust it on mingw.
10357         * modules/termios (Makefile.am): Substitute new key.
10358         * lib/termios.in.h (includes): Make include_next conditional.
10359         * doc/posix-headers/termios.texi (termios.h): Update
10360         documentation.
10361         Reported by Daniel P. Berrange.
10362
10363 2010-10-13  Jim Meyering  <meyering@redhat.com>
10364
10365         git-version-gen: don't require that .git/ be in the current dir
10366         * build-aux/git-version-gen: Adjust this script so that it works
10367         when run from any working directory beneath the top-level .git/-
10368         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10369         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10370
10371         test-select: avoid warn_unused_result warnings
10372         * tests/test-select.c: Include "macros.h".
10373         ASSERT that each call to read, write, and pipe succeeds.
10374         While not technically required, also check each "close".
10375         * modules/select-tests (Files): Add tests/macros.h.
10376
10377         test-symlinkat: remove declaration of unused local
10378         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10379
10380         test-inttostr: avoid shadowing warnings
10381         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10382         and use malloc rather than the stack for the same reason as
10383         mentioned in the comment justifying the other allocation.
10384
10385 2010-10-11  Bruno Haible  <bruno@clisp.org>
10386
10387         stdlib: Allow multiple gnulib generated replacements to coexist.
10388         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10389         Reported by Sam Steingold <sds@gnu.org>.
10390
10391 2010-10-11  Jim Meyering  <meyering@redhat.com>
10392
10393         fix a documentation typo
10394         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10395
10396 2010-10-11  Eric Blake  <eblake@redhat.com>
10397
10398         futimens: work around Solaris 11 bug
10399         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10400         * tests/test-futimens.h (test_futimens): Enhance, rather than
10401         weaken test.
10402         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10403
10404 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10405
10406         Indentation.
10407         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10408         higher-level operators more to the left.
10409
10410 2010-10-11  Jim Meyering  <meyering@redhat.com>
10411
10412         test-futimens: avoid unwarranted test failure on Solaris 5.11
10413         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10414         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10415         because it tries to dereference the NULL name argument.
10416
10417 2010-10-11  Bruno Haible  <bruno@clisp.org>
10418
10419         Indentation.
10420         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10421         indentation.
10422
10423 2010-10-11  Jim Meyering  <meyering@redhat.com>
10424
10425         spawn.in.h: make indentation consistent with parentheses
10426         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10427         Make indentation consistent with parentheses.
10428
10429 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10430
10431         Fix mismatched parens in previous commit
10432         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10433         parens.
10434
10435 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10436
10437         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10438
10439         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10440         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10441         * lib/malloca.c: Include "verify.h".
10442         (verify1): Remove, replacing with a verify call.
10443         * lib/relocwrapper.c (verify1): Likewise.
10444         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10445         Likewise.
10446         * modules/malloca (Depends-on): Add 'verify'.
10447         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10448         * modules/vasnprintf (Depends-on): Add 'verify'.
10449         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10450         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10451         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10452         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10453         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10454         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10455         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10456
10457         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10458
10459         Formerly the style was sometimes 2*X - 1, because the C standard
10460         was wrongly thought to disallow ?: in integral constant expressions.
10461         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10462         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10463         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10464         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10465         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10466         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10467         verify that time_t cannot be floating.
10468
10469 2010-10-08  Eric Blake  <eblake@redhat.com>
10470
10471         time: enforce recent POSIX ruling that time_t is integral
10472         * lib/time.in.h (__time_t_must_be_integral): Detect any
10473         problematic systems, allowing the rest of gnulib to assume POSIX.
10474
10475 2010-10-08  Jim Meyering  <meyering@redhat.com>
10476
10477         fdopendir: fix a bug on systems lacking openat and /proc support
10478         OpenBSD 4.7 is one such system.  The most noticeable effect was
10479         failure of any application making nontrivial use of fts: rm, du,
10480         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10481           ./rm: traversal failed: `a': Bad file descriptor
10482         Debugging that, you see that even though FD 6 was closed just
10483         prior to the opendir call in fd_clone_opendir, its resulting
10484         dir->dd_fd was 8, rather than the expected value of 6:
10485
10486         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10487         93                close (fd);
10488         (gdb) n
10489         94                dir = fd_clone_opendir (dupfd);
10490         (gdb) n
10491         95                saved_errno = errno;
10492         (gdb) p dir->dd_fd
10493         $11 = 8
10494
10495         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10496         The problem is that on OpenBSD, fd_clone_opendir has to resort
10497         to using the old-style save/restore CWD mechanism, due to its
10498         lack of openat/proc support, and *that* would steal the FD (6)
10499         that opendir was supposed to use.
10500
10501         The fix is to squirrel away the desired FD so that save_cwd uses a
10502         different one, and then free the dest FD right before calling opendir.
10503         That guarantees opendir will use the required file descriptor.
10504
10505         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10506
10507 2010-10-08  Bruno Haible  <bruno@clisp.org>
10508
10509         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10510         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10511
10512 2010-10-08  Bruno Haible  <bruno@clisp.org>
10513
10514         nanosleep: Make replacement POSIX compliant.
10515         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10516         is out of range.
10517         Reported by Jim Meyering.
10518
10519 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10520
10521         bootstrap: add hook for altering gnulib.mk, for Bison
10522         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10523         the Bison bootstrapping process can rewrite file names and variables
10524         in this file before later parts of 'bootstrap' use the file.
10525         Bison wants to include lib/gnulib.mk from the top-level makefile,
10526         so it needs the file names in this file to be relative to the top
10527         level, not relative to lib; plus it needs variable names to be
10528         rewritten.
10529         (slurp): Use the new function.
10530
10531         bootstrap: reformat for readability
10532         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10533
10534 2010-10-08  Eric Blake  <eblake@redhat.com>
10535
10536         docs: update cygwin progress
10537         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10538         1.7.7.
10539         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10540         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10541         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10542         * doc/posix-functions/carg.texi (carg): Likewise.
10543         * doc/posix-functions/cargf.texi (cargf): Likewise.
10544         * doc/posix-functions/casin.texi (casin): Likewise.
10545         * doc/posix-functions/casinf.texi (casinf): Likewise.
10546         * doc/posix-functions/casinh.texi (casinh): Likewise.
10547         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10548         * doc/posix-functions/catan.texi (catan): Likewise.
10549         * doc/posix-functions/catanf.texi (catanf): Likewise.
10550         * doc/posix-functions/catanh.texi (catanh): Likewise.
10551         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10552         * doc/posix-functions/ccos.texi (ccos): Likewise.
10553         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10554         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10555         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10556         * doc/posix-functions/cexp.texi (cexp): Likewise.
10557         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10558         * doc/posix-functions/cimag.texi (cimag): Likewise.
10559         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10560         * doc/posix-functions/clog.texi (clog): Likewise.
10561         * doc/posix-functions/clogf.texi (clogf): Likewise.
10562         * doc/posix-functions/conj.texi (conj): Likewise.
10563         * doc/posix-functions/conjf.texi (conjf): Likewise.
10564         * doc/posix-functions/cpow.texi (cpow): Likewise.
10565         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10566         * doc/posix-functions/cproj.texi (cproj): Likewise.
10567         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10568         * doc/posix-functions/creal.texi (creal): Likewise.
10569         * doc/posix-functions/crealf.texi (crealf): Likewise.
10570         * doc/posix-functions/csin.texi (csin): Likewise.
10571         * doc/posix-functions/csinf.texi (csinf): Likewise.
10572         * doc/posix-functions/csinh.texi (csinh): Likewise.
10573         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10574         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10575         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10576         * doc/posix-functions/ctan.texi (ctan): Likewise.
10577         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10578         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10579         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10580         * doc/posix-headers/complex.texi (complex.h): Likewise.
10581
10582 2010-10-07  Jim Meyering  <meyering@redhat.com>
10583
10584         parse-datetime: avoid compilation failure on OpenBSD 4.7
10585         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10586         This works around a compilation failure on OpenBSD 4.7:
10587         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10588
10589 2010-10-07  Eric Blake  <eblake@redhat.com>
10590
10591         docs: update cygwin progress
10592         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10593         1.7.6.
10594         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10595         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10596         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10597         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10598         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10599         Likewise.
10600         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10601         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10602         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10603         Likewise.
10604         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10605         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10606         Likewise.
10607         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10608         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10609         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10610         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10611         Likewise.
10612         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10613         Likewise.
10614         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10615
10616         docs: update parse-datetime history
10617         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10618         documentation of this function's history and alternatives.
10619
10620         cygwin: use more robust version check
10621         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10622         exclude an eventual cygwin 1.9.1.
10623         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10625         (gl_FUNC_STRCASESTR): Likewise.
10626         Reported by Bruno Haible.
10627
10628 2010-10-06  Bruno Haible  <bruno@clisp.org>
10629
10630         string, sys_select: Avoid #including large headers unless necessary.
10631         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10632         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10633         OSF/1, BeOS, Haiku.
10634         Reported by Jim Meyering.
10635
10636 2010-10-05  Eric Blake  <eblake@redhat.com>
10637
10638         memmem, strstr, strcasestr: fix bug with long periodic needle
10639         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10640         periodic needle having false positive.
10641         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10642         and cygwin 1.7.7.
10643         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10645         (gl_FUNC_STRCASESTR): Likewise.
10646         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10647         * tests/test-memmem.c (main): Expose the bug.
10648         * tests/test-strcasestr.c (main): Likewise.
10649         * tests/test-strstr.c (main): Likewise.
10650         * tests/test-c-strcasestr.c (main): Likewise.
10651         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10652         * doc/posix-functions/strstr.texi (strstr): Likewise.
10653         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10654         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10655
10656 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10657
10658         parse-datetime: do some more renaming
10659         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10660         parse_datetime, not get_date.  Mention the renaming.
10661         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10662         in comments.
10663         * m4/bison.m4: Likewise.
10664
10665 2010-10-05  Eric Blake  <eblake@redhat.com>
10666
10667         parse-datetime: better name than get_date
10668         * NEWS: Reword the deprecation notice.
10669         * modules/get_date: Rename to modules/parse-datetime.
10670         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10671         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10672         * lib/get_date.y: Rename to lib/parse-datetime.y.
10673         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10674         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10675         * doc/getdate.texi: Provide fallback wrapper.
10676         * lib/getdate.h: Move guts, and wrap...
10677         * lib/parse-datetime.h: ...new file.
10678         * lib/parse-datetime.y (get_date): Rename...
10679         (parse_datetime): ...to this.
10680         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10681         (gl_PARSE_DATETIME): ...to this.
10682         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10683         documentation.
10684         * modules/getdate (Files): Provide fallback docs and header.
10685         (Notice, Depends-on): Update references.
10686         * tests/test-parse-datetime.c: Likewise.
10687         * DEPENDENCIES: Likewise.
10688         * MODULES.html.sh (Date and time <time.h>): Likewise.
10689         * doc/parse-datetime.texi (Date input formats)
10690         (Authors of parse_datetime): Likewise.
10691         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10692         (Include): Likewise.
10693         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10694         * gnulib-tool: Likewise.
10695         * m4/bison.m4 (gl_BISON): Likewise.
10696         Suggested by Bruno Haible.
10697
10698 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         more ports to Solaris tr, which needs [] around ranges
10701         * gnulib-tool: Solaris tr needs [] around ranges.
10702         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10703         * tests/test-pipe-filter-gi1.c (main): Likewise.
10704         * tests/test-pipe-filter-ii1.c (main): Likewise.
10705
10706 2010-10-05  Eric Blake  <eblake@redhat.com>
10707
10708         bootstrap: fix Solaris regression
10709         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10710         around ranges.
10711         Reported by Pádraig Brady.
10712
10713         bootstrap: work with pkg-config
10714         * build-aux/bootstrap (check_versions): Also transliterate - in
10715         prerequisite name.
10716         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10717         prerequisites that were already found, to avoid confusion.
10718         Reported by Justin Clift.
10719
10720         faccessat: remove unused wrappers
10721         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10722         presence of these wrappers dragged in -lgen on Solaris.
10723         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10724
10725 2010-10-05  Jim Meyering  <meyering@redhat.com>
10726
10727         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10728         * Makefile (sc_pragma_columns): New syntax-check rule.
10729
10730 2010-10-04  Bruno Haible  <bruno@clisp.org>
10731
10732         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10733         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10734         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10735         Reported by Bruce Korb and Eric Blake.
10736
10737 2010-10-04  Bruno Haible  <bruno@clisp.org>
10738
10739         threadlib: Make option --with-libpth-prefix work.
10740         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10741         use $LIBPTH, not just -lpth.
10742
10743 2010-10-04  Bruno Haible  <bruno@clisp.org>
10744
10745         Avoid line length limitation from HP NonStop system header files.
10746         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10747         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10748         * lib/ctype.in.h: Likewise.
10749         * lib/dirent.in.h: Likewise.
10750         * lib/errno.in.h: Likewise.
10751         * lib/fcntl.in.h: Likewise.
10752         * lib/float.in.h: Likewise.
10753         * lib/getopt.in.h: Likewise.
10754         * lib/iconv.in.h: Likewise.
10755         * lib/inttypes.in.h: Likewise.
10756         * lib/langinfo.in.h: Likewise.
10757         * lib/locale.in.h: Likewise.
10758         * lib/math.in.h: Likewise.
10759         * lib/netdb.in.h: Likewise.
10760         * lib/netinet_in.in.h: Likewise.
10761         * lib/poll.in.h: Likewise.
10762         * lib/pthread.in.h: Likewise.
10763         * lib/pty.in.h: Likewise.
10764         * lib/sched.in.h: Likewise.
10765         * lib/se-selinux.in.h: Likewise.
10766         * lib/search.in.h: Likewise.
10767         * lib/signal.in.h: Likewise.
10768         * lib/spawn.in.h: Likewise.
10769         * lib/stdarg.in.h: Likewise.
10770         * lib/stddef.in.h: Likewise.
10771         * lib/stdint.in.h: Likewise.
10772         * lib/stdio.in.h: Likewise.
10773         * lib/stdlib.in.h: Likewise.
10774         * lib/string.in.h: Likewise.
10775         * lib/strings.in.h: Likewise.
10776         * lib/sys_file.in.h: Likewise.
10777         * lib/sys_ioctl.in.h: Likewise.
10778         * lib/sys_select.in.h: Likewise.
10779         * lib/sys_socket.in.h: Likewise.
10780         * lib/sys_stat.in.h: Likewise.
10781         * lib/sys_time.in.h: Likewise.
10782         * lib/sys_times.in.h: Likewise.
10783         * lib/sys_utsname.in.h: Likewise.
10784         * lib/sys_wait.in.h: Likewise.
10785         * lib/sysexits.in.h: Likewise.
10786         * lib/termios.in.h: Likewise.
10787         * lib/time.in.h: Likewise.
10788         * lib/unistd.in.h: Likewise.
10789         * lib/wchar.in.h: Likewise.
10790         * lib/wctype.in.h: Likewise.
10791         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10792         * modules/ctype (Makefile.am): Likewise.
10793         * modules/dirent (Makefile.am): Likewise.
10794         * modules/errno (Makefile.am): Likewise.
10795         * modules/fcntl-h (Makefile.am): Likewise.
10796         * modules/float (Makefile.am): Likewise.
10797         * modules/getopt-posix (Makefile.am): Likewise.
10798         * modules/iconv-h (Makefile.am): Likewise.
10799         * modules/inttypes (Makefile.am): Likewise.
10800         * modules/langinfo (Makefile.am): Likewise.
10801         * modules/locale (Makefile.am): Likewise.
10802         * modules/math (Makefile.am): Likewise.
10803         * modules/netdb (Makefile.am): Likewise.
10804         * modules/netinet_in (Makefile.am): Likewise.
10805         * modules/poll-h (Makefile.am): Likewise.
10806         * modules/pthread (Makefile.am): Likewise.
10807         * modules/pty (Makefile.am): Likewise.
10808         * modules/sched (Makefile.am): Likewise.
10809         * modules/search (Makefile.am): Likewise.
10810         * modules/selinux-h (Makefile.am): Likewise.
10811         * modules/signal (Makefile.am): Likewise.
10812         * modules/spawn (Makefile.am): Likewise.
10813         * modules/stdarg (Makefile.am): Likewise.
10814         * modules/stddef (Makefile.am): Likewise.
10815         * modules/stdint (Makefile.am): Likewise.
10816         * modules/stdio (Makefile.am): Likewise.
10817         * modules/stdlib (Makefile.am): Likewise.
10818         * modules/string (Makefile.am): Likewise.
10819         * modules/strings (Makefile.am): Likewise.
10820         * modules/sys_file (Makefile.am): Likewise.
10821         * modules/sys_ioctl (Makefile.am): Likewise.
10822         * modules/sys_select (Makefile.am): Likewise.
10823         * modules/sys_socket (Makefile.am): Likewise.
10824         * modules/sys_stat (Makefile.am): Likewise.
10825         * modules/sys_time (Makefile.am): Likewise.
10826         * modules/sys_times (Makefile.am): Likewise.
10827         * modules/sys_utsname (Makefile.am): Likewise.
10828         * modules/sys_wait (Makefile.am): Likewise.
10829         * modules/sysexits (Makefile.am): Likewise.
10830         * modules/termios (Makefile.am): Likewise.
10831         * modules/time (Makefile.am): Likewise.
10832         * modules/unistd (Makefile.am): Likewise.
10833         * modules/wchar (Makefile.am): Likewise.
10834         * modules/wctype (Makefile.am): Likewise.
10835
10836 2010-10-04  Bruno Haible  <bruno@clisp.org>
10837
10838         read-file tests: Avoid a test failure on NonStop Kernel.
10839         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10840         a regular file.
10841         Reported by Joachim Schmitz <schmitz@hp.com>.
10842
10843 2010-10-03  Bruno Haible  <bruno@clisp.org>
10844
10845         gnulib-tool: Fixes for --create-testdir with --libtool.
10846         * gnulib-tool (func_get_automake_snippet): Don't augment
10847         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10848         an executable.
10849         (func_create_testdir): Handle module 'alloca' like func_import.
10850         Reported by Bruce Korb <bruce.korb@gmail.com>.
10851
10852 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10853
10854         Avoid some lines longer than 80 characters.
10855         * lib/stdint.in.h: Break long comment lines.
10856         * lib/math.in.h: Likewise.
10857         (_GL_NUM_UINT_WORDS): New macro, for readability.
10858         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10859         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10860         * lib/stdlib.in.h: Likewise.
10861         * lib/spawn.in.h: Likewise.
10862         * lib/sys_socket.in.h: Update an URL.
10863         * lib/sys_stat.in.h: Break long line.
10864
10865 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10866
10867         Improve pmccabe2html.
10868         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10869         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10870         when the sources change. Remove the line in the HTML about "Used
10871         ranges" (which implied that there might be other unused ranges),
10872         rename "Resume" to "Summary" (easier to understand for more users).
10873         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10874         styles, and some unnecessary blank lines.
10875
10876 2010-10-03  Bruno Haible  <bruno@clisp.org>
10877             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10878
10879         acl: Add support for ACLs on NonStop Kernel.
10880         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10881         Check whether the function aclsort() exists.
10882         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10883         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10884         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10885         (acl_nontrivial [HAVE_ACLSORT]: New function.
10886         (file_has_acl): Implement for NonStop Kernel.
10887         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10888         (qset_acl): Implement for NonStop Kernel.
10889         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10890         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10891         (main): Implement for NonStop Kernel.
10892         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10893         Kernel. Handle this flavor.
10894         * tests/test-set-mode-acl.sh: Likewise.
10895         * tests/test-copy-acl.sh: Likewise.
10896         * tests/test-copy-file.sh: Likewise.
10897
10898 2010-10-03  Bruno Haible  <bruno@clisp.org>
10899
10900         Info about ACLs on NonStop Kernel.
10901         * doc/acl-resources.txt: Add info about NonStop Kernel.
10902         References by Joachim Schmitz <schmitz@hp.com>.
10903
10904 2010-10-02  Bruno Haible  <bruno@clisp.org>
10905
10906         Define missing EDQUOT on NonStop Kernel.
10907         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10908         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10909         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10910         missing.
10911         * doc/posix-headers/errno.texi: Mention the NSK bug.
10912         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10913         Reported by Joachim Schmitz <schmitz@hp.com>.
10914
10915 2010-10-02  Bruno Haible  <bruno@clisp.org>
10916
10917         Update doc for POSIX:2008.
10918         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10919         Update URL of POSIX specification.
10920
10921 2010-10-02  Bruno Haible  <bruno@clisp.org>
10922
10923         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10924         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10925         from gnulib, not from Automake.
10926
10927 2010-10-02  Bruno Haible  <bruno@clisp.org>
10928
10929         New module 'system-posix'.
10930         * modules/system-posix: New file.
10931         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10932         module is present.
10933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10934         GNULIB_SYSTEM_POSIX.
10935         * modules/stdlib (Depends-on): Remove sys_wait.
10936         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10937         * doc/posix-functions/system.texi: Mention the new module.
10938         * doc/posix-headers/stdlib.texi: Likewise.
10939         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10940         define test_sys_wait_macros to a no-op.
10941         Reported by Sam Steingold <sds@gnu.org>.
10942
10943 2010-09-30  Bruno Haible  <bruno@clisp.org>
10944
10945         More renaming from 'getdate' to 'get_date'.
10946         * doc/get_date.texi: Renamed from doc/getdate.texi.
10947         * modules/get_date (Files): Update.
10948         * MODULES.html.sh (Date and time <time.h>): Update.
10949         * DEPENDENCIES: Update.
10950         * gnulib-tool: Update comment.
10951         * m4/bison.m4 (gl_BISON): Likewise.
10952         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10953
10954 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10955
10956         bootstrap: support ACLOCAL_FLAGS during aclocal
10957         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10958         can add additional -I dir for third-party .m4 files.
10959
10960 2010-09-30  Eric Blake  <eblake@redhat.com>
10961
10962         bootstrap: use glibtoolize on MacOS
10963         * build-aux/bootstrap (check_versions): Convert libtool into
10964         libtoolize.
10965         (tool search): Move libtool check earlier, and look for
10966         glibtoolize for MacOS.
10967         (gnulib_tool_options): Auto-add --libtool when appropriate.
10968         Reported by Justin Clift.
10969
10970         poll: fix typo that broke test on MacOS
10971         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10972         Reported by Justin Clift.
10973
10974         getdate: rename to get_date
10975         Note: getdate.h is not renamed, to minimize client impact.
10976         * modules/getdate: Mark obsolete.  Move old contents...
10977         * modules/get_date: ...to new module name.
10978         * modules/getdate-tests: Move...
10979         * modules/get_date-tests: ...here.
10980         * m4/getdate.m4: Move...
10981         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10982         * lib/getdate.y: Move...
10983         * lib/get_date.y: ...here.
10984         * tests/test-getdate.c: Move...
10985         * tests/test-get_date.c: ...here.
10986         * doc/posix-functions/getdate.texi (getdate): Update name.
10987         * NEWS: Mention the change.
10988
10989 2010-09-29  Bruno Haible  <bruno@clisp.org>
10990
10991         Separate the module 'waitpid' from the module 'sys_wait'.
10992         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10993         present.
10994         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10995         gl_MODULE_INDICATOR_FOR_TESTS.
10996         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10997         * modules/sys_wait (Depends-on): Remove waitpid.
10998         (Makefile.am): Substitute GNULIB_WAITPID.
10999         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11000         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11001         signature only if the 'waitpid' module is present.
11002         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11003         * NEWS: Mention the change.
11004         * modules/grantpt (Depends-on): Add waitpid.
11005         * modules/wait-process (Depends-on): Likewise.
11006
11007 2010-09-29  Bruno Haible  <bruno@clisp.org>
11008
11009         More tests for module 'sys_wait'.
11010         * modules/sys_wait-c++-tests: New file.
11011         * tests/test-sys_wait-c++.cc: New file.
11012         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11013         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11014
11015 2010-09-29  Bruno Haible  <bruno@clisp.org>
11016
11017         New module 'waitpid'.
11018         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11019         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11020         Don't include <process.h>.
11021         (waitpid): Declare only, using modern idiom.
11022         * m4/waitpid.m4: New file.
11023         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11024         * modules/waitpid: New file.
11025         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11026         (Makefile.am): Update.
11027         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11028
11029 2010-09-28  Bruno Haible  <bruno@clisp.org>
11030
11031         poll: Assume ANSI C.
11032         * lib/poll.c (poll): Use an ANSI C declaration.
11033
11034 2010-09-28  Bruno Haible  <bruno@clisp.org>
11035
11036         poll-h: Create poll.h on all platforms.
11037         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11038         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11039         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11040         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11041         (gl_REPLACE_POLL_H): Don't set POLL_H.
11042         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11043         * modules/poll-h (Depends-on): Add include_next.
11044         (Makefile.am): Create poll.h unconditionally. Substitute also
11045         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11046
11047 2010-09-28  Bruno Haible  <bruno@clisp.org>
11048
11049         Tests for module 'poll-h'.
11050         * modules/poll-h-c++-tests: New file.
11051         * tests/test-poll-h-c++.cc: New file.
11052
11053         Tests for module 'poll-h'.
11054         * modules/poll-h-tests: New file.
11055         * tests/test-poll-h.c: New file.
11056
11057 2010-09-28  Bruno Haible  <bruno@clisp.org>
11058
11059         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11060         * modules/poll-h (Depends-on): Add 'extensions'.
11061
11062 2010-09-28  Bruno Haible  <bruno@clisp.org>
11063
11064         New module 'poll-h'.
11065         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11066         (poll): Use modern idiom.
11067         * modules/poll-h: New file.
11068         * modules/poll (Files): Remove lib/poll.in.h.
11069         (Depends-on): Add poll-h.
11070         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11071         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11072         * m4/poll_h.m4: New file.
11073         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11074         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11075         and invoke gl_REPLACE_POLL_H.
11076         * lib/poll.c: Use common idiom.
11077         * tests/test-poll.c: Likewise.
11078         * doc/posix-headers/poll.texi: Mention the poll-h module.
11079         Suggested by Eric Blake.
11080
11081 2010-09-26  Bruno Haible  <bruno@clisp.org>
11082
11083         sys_wait: Implement WSTOPSIG.
11084         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11085         Reported by Simon Josefsson.
11086
11087 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11088
11089         stdlib, sys_wait: Avoid compilation error on mingw.
11090         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11091
11092 2010-09-26  Bruno Haible  <bruno@clisp.org>
11093
11094         stdlib tests: Avoid code duplication.
11095         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11096         * modules/sys_wait-tests (Files): Likewise.
11097         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11098         * tests/test-stdlib.c: Include test-sys_wait.h.
11099         (main): Invoke test_sys_wait_macros.
11100         * tests/test-sys_wait.c: Include test-sys_wait.h.
11101         (main): Invoke test_sys_wait_macros.
11102
11103 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11104
11105         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11106         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11107         sure Windows sockets are working before calling getaddrinfo.
11108         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11109         * doc/gnulib.texi (Windows sockets): Fix typo.
11110
11111 2010-09-25  Bruno Haible  <bruno@clisp.org>
11112
11113         Tests for module 'regex-quote'.
11114         * modules/regex-quote-tests: New file.
11115         * tests/test-regex-quote.c: New file.
11116
11117         New module 'regex-quote'.
11118         * lib/regex-quote.h: New file.
11119         * lib/regex-quote.c: New file.
11120         * modules/regex-quote: New file.
11121         Suggested by Reuben Thomas <rrt@sc3d.org>.
11122
11123 2010-09-24  Bruno Haible  <bruno@clisp.org>
11124
11125         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11126         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11127
11128 2010-09-23  Bruno Haible  <bruno@clisp.org>
11129
11130         setenv: Relax license.
11131         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11132         Blake.
11133         Requested by Eric Blake.
11134
11135 2010-09-22  Bruno Haible  <bruno@clisp.org>
11136
11137         termios: Relax license.
11138         * modules/termios (License): Change to LGPLv2+.
11139         Requested by Eric Blake.
11140
11141 2010-09-22  Bruno Haible  <bruno@clisp.org>
11142
11143         threadlib: Allow the package to change the default to 'no'.
11144         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11145         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11146         Reported by Paul Eggert.
11147
11148 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11149             Bruno Haible  <bruno@clisp.org>
11150
11151         Fix endless loop in mbmemcasecoll.
11152         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11153         byte.
11154         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11155
11156 2010-09-22  Bruno Haible  <bruno@clisp.org>
11157
11158         Tests for module 'memcoll'.
11159         * modules/memcoll-tests: New file.
11160         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11161
11162         memcoll, xmemcoll: Clarify size vs. length.
11163         * modules/memcoll.c (memcoll0): Clarify specification.
11164         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11165         passed to collate_error.
11166
11167 2010-09-22  Bruno Haible  <bruno@clisp.org>
11168
11169         Tests for module 'memcasecmp'.
11170         * modules/memcasecmp-tests: New file.
11171         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11172
11173 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11174
11175         * lib/pthread.in.h: Add split double-inclusion guard, and include
11176         system <pthread.h> if there is one.  Use @@-style as in other
11177         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11178         pthread.h doesn't.
11179         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11180         (pthread_mutexattr_settype, pthread_mutex_trylock):
11181         New static inline functions, if there's no system <pthread.h>.
11182         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11183         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11184         Approximate with mutexes if the system lacks spinlocks, as in
11185         MacOS.
11186         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11187         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11188         @@-style.  Check for spinlocks separately.
11189         (gl_PTHREAD_DEFAULTS): New macro.
11190         * modules/pthread: Redo to use a more typical style for in.h files.
11191
11192 2010-09-21  Eric Blake  <eblake@redhat.com>
11193
11194         net_if: enhance tests
11195         * tests/test-net_if.c (main): Move signature checks earlier.
11196         Print failures to stderr.
11197         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11198         Document the bug that we do not yet fix.
11199
11200 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11201
11202         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11203         about gnulib, not GSS.
11204
11205 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11206
11207         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11208         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11209         for Emacs.
11210         * build-aux/pmccabe2html: Make Makefile.am example code more
11211         cut-and-paste friendly.
11212
11213 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11214
11215         * tests/test-net_if.c: New file.
11216         * modules/net_if-tests: New file.
11217
11218 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11219
11220         pthread: add pthread_spin_destroy
11221         * lib/pthread.in.h (pthread_spin_destroy): New function.
11222
11223 2010-09-19  Bruno Haible  <bruno@clisp.org>
11224
11225         gnulib-tool: Fix --help output.
11226         * gnulib-tool (func_usage): Fix help message.
11227         Reported by Reuben Thomas <rrt@sc3d.org>.
11228
11229 2010-09-18  Jim Meyering  <meyering@redhat.com>
11230
11231         maint.mk: avoid unexpanded \n in two diagnostics
11232         * top/maint.mk (sc_prohibit_always_true_header_tests):
11233         Don't use a literal \n in a halt=... assignment.  It would not be
11234         expanded, and the two \n bytes would appear in the diagnostic output
11235         rather than the desired newline.  Use halt=$$(printf ... instead.
11236         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11237
11238 2010-09-18  Bruno Haible  <bruno@clisp.org>
11239
11240         netinet_in: Doc tweak.
11241         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11242         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11243
11244 2010-09-18  Jim Meyering  <meyering@redhat.com>
11245
11246         init.sh: correct an outdated comment
11247         * tests/init.sh (create_exe_shims_):  s/function/alias/
11248
11249         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11250         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11251         a file named "*.exe" is removed between the glob expansion and the
11252         processing of that oddly named file.
11253
11254 2010-09-17  Eric Blake  <eblake@redhat.com>
11255
11256         mirbsd: add some more support
11257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11258         in BSD family.
11259         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11260         devices as OpenBSD.
11261         * m4/host-os.m4 (mirbsd): Add MirBSD.
11262
11263         tests: fix unportable assumption on sys/wait.h
11264         * tests/test-sys_wait.c (main): Relax test.
11265         * tests/test-stdlib.c (main): Likewise.
11266
11267         init.sh: accomodate directory with no .exes
11268         * tests/init.sh: Accomodate directory containing only scripts.
11269
11270         tests: avoid compiler warning
11271         * tests/test-stdlib.c (main): Use the variable.
11272
11273         fdutimens, fdutimensat: update signature, again
11274         * lib/utimens.h (gl_futimens): Delete, and move signature...
11275         (fdutimens): ...here.
11276         (fdutimensat): Rearrange signature.
11277         (lutimensat): Rename variable for clarity.
11278         * lib/fdutimensat.c (fdutimensat): Update signature.
11279         * lib/utimens.c (fdutimens): Likewise.
11280         (gl_futimens): Delete.
11281         (utimens, lutimens): Update callers.
11282         * lib/futimens.c (futimens): Likewise.
11283         * tests/test-fdutimensat.c: Likewise.
11284         * tests/test-utimens.c: Likewise.
11285         * tests/test-futimens.h: Update comment.
11286         * NEWS: Mention this.
11287         Suggested by Paul Eggert.
11288
11289 2010-09-17  Bruno Haible  <bruno@clisp.org>
11290
11291         Take over the maintenance of some older macros from Autoconf.
11292         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11293         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11294         GNU Autoconf.
11295         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11296         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11297
11298 2010-09-17  Eric Blake  <eblake@redhat.com>
11299
11300         fdutimensat: drop atflag validation
11301         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11302         with valid fd, to close a race scenario where futimens is
11303         unsupported and FILE was replaced by a symlink.
11304         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11305         accordingly.
11306         Suggested by Paul Eggert.
11307
11308 2010-09-16  Bruno Haible  <bruno@clisp.org>
11309
11310         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11311         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11312
11313 2010-09-16  Bruno Haible  <bruno@clisp.org>
11314
11315         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11316         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11317         login_tty exists.
11318         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11319
11320 2010-09-16  Bruno Haible  <bruno@clisp.org>
11321
11322         login_tty: Make the replacement code work on BSD systems.
11323         * lib/login_tty.c: Include <sys/ioctl.h>.
11324         (login_tty): Use ioctl TIOCSCTTY when available.
11325         * modules/login_tty (Depends-on): Add sys_ioctl.
11326         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11327
11328 2010-09-16  Bruno Haible  <bruno@clisp.org>
11329
11330         login_tty: Stricter unit test.
11331         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11332         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11333         and tcgetsid() after login_tty.
11334         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11335
11336 2010-09-16  Bruno Haible  <bruno@clisp.org>
11337
11338         New module 'tcgetsid'.
11339         * lib/tcgetsid.c: New file.
11340         * m4/tcgetsid.m4: New file.
11341         * modules/tcgetsid: New file.
11342         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11343         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11344         GNULIB_TCGETSID, HAVE_TCGETSID.
11345         * lib/termios.in.h: Include <sys/types.h>.
11346         (tcgetsid): New declaration.
11347         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11348         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11349         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11350         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11351
11352 2010-09-16  Bruno Haible  <bruno@clisp.org>
11353
11354         Tests for module 'termios'.
11355         * modules/termios-c++-tests: New file.
11356         * modules/termios-tests: New file.
11357         * tests/test-termios-c++.cc: New file.
11358         * tests/test-termios.c: New file.
11359
11360         New module 'termios'.
11361         * modules/termios: New file.
11362         * lib/termios.in.h: New file.
11363         * m4/termios_h.m4: New file.
11364         * doc/posix-headers/termios.texi: Mention the new module.
11365
11366 2010-09-16  Eric Blake  <eblake@redhat.com>
11367
11368         fdutimensat: add an atflag parameter
11369         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11370         * lib/utimens.h (fdutimensat): Update prototype.
11371         * tests/test-fdutimensat.c: Adjust test to match.
11372         * NEWS: Document the change.
11373         Suggested by Paul Eggert.
11374
11375 2010-09-16  Bruno Haible  <bruno@clisp.org>
11376
11377         Fix typos in comments.
11378         * lib/striconveh.h: Fix typo in comment.
11379         * lib/login_tty.c (login_tty): Likewise.
11380
11381 2010-09-15  Bruno Haible  <bruno@clisp.org>
11382
11383         stdlib: clarify MirBSD WEXITSTATUS bug
11384         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11385         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11386
11387 2010-09-15  Eric Blake  <eblake@redhat.com>
11388
11389         stdlib: work around MirBSD WEXITSTATUS bug
11390         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11391         * modules/stdlib (Depends-on): Add sys_wait.
11392         * tests/test-sys_wait.c (main): Enhance test.
11393         * tests/test-stdlib.c (main): Likewise.
11394         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11395
11396         docs: mention MacOS issue with WEXITSTATUS(constant)
11397         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11398         issue.
11399         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11400
11401         strnlen: add tests
11402         * modules/strnlen-tests: New file.
11403         * tests/test-strnlen.c: Likewise.
11404
11405 2010-09-14  Bruno Haible  <bruno@clisp.org>
11406
11407         unistr/base: Avoid link errors when module 'libunistring' is also used.
11408         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11409         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11410         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11411         Declare also when HAVE_LIBUNISTRING is set.
11412         Reported by Pádraig Brady <P@draigbrady.com>.
11413
11414 2010-09-14  Eric Blake  <eblake@redhat.com>
11415
11416         test-rawmemchr: make more robust
11417         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11418         (Depends-on, configure.ac): Add needed prerequisites to use it.
11419         * modules/memchr-tests (Files, Depends-on, configure.ac):
11420         Likewise, to avoid implicit reliance on memchr module prereqs.
11421         * tests/test-memchr.c (main): Ensure proper masking.
11422         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11423         reads.
11424
11425         memchr: detect glibc Alpha bug
11426         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11427         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11428         Alpha.
11429         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11430         * tests/test-memchr.c (main): Enhance test.
11431         Reported by Nelson H. F. Beebe.
11432
11433 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11434
11435         fts, getcwd, glob: audit for dirfd returning -1
11436         * lib/fts.c (opendir): Remove #define; no longer used.
11437         (opendirat): New arg PDIR_FD.  All callers changed.
11438         (fts_build, _opendir2): Use new opendirat to avoid the need for
11439         dirfd, or for checking whether dirfd returns a negative value.
11440         Don't use opendir; always use openat followed by fdopendir.
11441         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11442         it.
11443         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11444         returns -1 here.
11445         * modules/fts (Depends-on): Remove dirfd.
11446         * modules/getcwd (Depends-on): Likewise.
11447
11448 2010-09-13  Eric Blake  <eblake@redhat.com>
11449
11450         float: fix broken MirBSD header
11451         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11452         * doc/posix-headers/float.texi (float.h): Document it.
11453
11454 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11455
11456         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11457         * lib/fts.c (opendirat): New arg extra_flags.
11458         (__opendir2): Use it to avoid following symlinks when opening
11459         a directory, if symlinks are not supposed to be followed.  See
11460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11461
11462         fdopendir: preserve argument fd before returning
11463         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11464         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11465         (fdopendir): Use them, arranging for FD to be open to the same
11466         directory that it was when it started.  (It might be temporarily
11467         closed while fdopendir is running, so this not thread- or
11468         signal-safe.)  Be careful to do the right thing even when file
11469         descriptors are scarce and dup fails with errno == EMFILE.  See
11470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11471
11472 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11473
11474         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11475         * NEWS: Document change.
11476         * m4/regex.m4: Disable test for regoff_t size.
11477
11478 2010-09-13  Jim Meyering  <meyering@redhat.com>
11479
11480         fts: don't operate on an invalid file descriptor after failed dup
11481         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11482         negative file descriptor.
11483
11484 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11485
11486         savedir: add streamsavedir, deprecate fdsavedir
11487         * NEWS: Mention deprecation of fdsavedir.
11488         * lib/savedir.c (streamsavedir): New extern function, whose name
11489         ends in "savedir" to be consistent with the others.  This differs
11490         from savedirstream in that it doesn't close its argument.  The
11491         next version of GNU tar will use this instead of fdsavedir, to
11492         avoid some race conditions and conserve file descriptors.
11493         (savedirstream): Reimplement as a wrapper around streamsavedir.
11494         (fdsavedir): Add a comment deprecating this function.  As far as
11495         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11496         * lib/savedir.h (streamsavedir): New decl.
11497         (fdsavedir): Add a comment deprecating this.
11498
11499 2010-09-10  Bruno Haible  <bruno@clisp.org>
11500
11501         langinfo: Fix last commit.
11502         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11503         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11505
11506 2010-09-10  Bruno Haible  <bruno@clisp.org>
11507
11508         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11509         * lib/progreloc.c (O_EXEC): Define fallback.
11510
11511 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11512
11513         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11514         * NEWS: Document recent changes to fcntl-h.
11515         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11516         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11517         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11518         Similarly for O_SEARCH; this last was already true, but not documented.
11519         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11520         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11521         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11522         Likewise.
11523         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11524         is zero, not whether it is defined.
11525         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11526         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11527         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11528
11529 2010-09-10  Bruno Haible  <bruno@clisp.org>
11530
11531         langinfo, nl_langinfo: Fix for IRIX 5.3.
11532         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11533         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11534         HAVE_LANGINFO_YESEXPR.
11535         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11536         HAVE_LANGINFO_YESEXPR.
11537         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11538         HAVE_LANGINFO_T_FMT_AMPM is 0.
11539         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11540         HAVE_LANGINFO_YESEXPR is 0.
11541         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11542         NOEXPR.
11543         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11544         * doc/posix-functions/nl_langinfo.texi: Likewise.
11545         Reported by Eric Blake.
11546
11547 2010-09-10  Bruno Haible  <bruno@clisp.org>
11548
11549         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11550         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11551         on FreeBSD 8.0 and OpenBSD 4.6.
11552         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11553         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11554         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11555         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11556         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11557         ac_includes_default.
11558         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11559
11560 2010-09-09  Eric Blake  <eblake@redhat.com>
11561
11562         strsignal: work around NetBSD bug
11563         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11564         * lib/string.in.h (includes): Likewise.
11565         * doc/posix-functions/strsignal.texi (strsignal): Document the
11566         bug.
11567         Reported by Nelson H. F. Beebe.
11568
11569         gnulib-tool: work with NetBSD /bin/sh
11570         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11571         (func_get_description, func_get_comment, func_get_status)
11572         (func_get_notice, func_get_applicability, func_get_filelist)
11573         (func_get_dependencies, func_get_autoconf_early_snippet)
11574         (func_get_autoconf_snippet, func_get_automake_snippet)
11575         (func_get_include_directive, func_get_link_directive)
11576         (func_get_license, func_get_maintainer, func_import): Avoid
11577         shell syntax errors from parsing syntax extensions.
11578
11579 2010-09-09  Bruno Haible  <bruno@clisp.org>
11580
11581         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11582         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11583         a reliable way to determine whether the 'alias' command works.
11584
11585 2010-09-08  Jim Meyering  <meyering@redhat.com>
11586
11587         init.sh: penalize a set-x-impaired shell; don't disqualify it
11588         * tests/init.sh: Too many shells corrupt application stderr when
11589         you set -x, so we can't afford to disqualify them, since at least
11590         on Irix-6.5, that would disqualify all bourne shells.
11591         Instead, use a two-pass approach.
11592         On the first pass, try to find a shell that meets the stricter
11593         condition that set -x does not corrupt stderr.
11594         If no shell meets the stricter condition, retest each candidate
11595         shell, but without that extra condition.  Finally, when
11596         VERBOSE=yes is requested and set -x might cause trouble, simply
11597         issue a warning and refrain from enabling debug output.
11598
11599 2010-09-08  Eric Blake  <eblake@redhat.com>
11600
11601         unsetenv: fix OpenBSD bug
11602         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11603         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11604         documentation.
11605         Reported by Jim Meyering.
11606
11607         strtod: work around IRIX 6.5 bug
11608         * lib/strtod.c (strtod): Reparse number on shorter string if
11609         exponent parse was invalid.
11610         * tests/test-strtod.c (main): Add check for "0x1p 2".
11611         Reported by Tom G. Christensen.
11612
11613         getopt: optimize previous patch
11614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11615         empty variable.  Speed up awk script.
11616         Reported by Paolo Bonzini.
11617
11618 2010-09-08  Jim Meyering  <meyering@redhat.com>
11619
11620         test.sh: disqualify shells for which set -x corrupts stderr
11621         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11622         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11623         appear in stderr output.  For example, this command:
11624             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11625         prints "P=1" on those two systems:
11626
11627 2010-09-08  Bruno Haible  <bruno@clisp.org>
11628
11629         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11630         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11631         commands, because some shells ignore redirections when there is an
11632         error in the command lookup.
11633         Reported by Eric Blake.
11634
11635 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11636
11637         * lib/regex.h: Fix a mention of `regex_compile' (should be
11638         `re_compile_pattern').
11639         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11640         (re_set_registers): Correct name of parameter in comment.
11641
11642         * doc/regex.texi: Add documentation for missing syntax flags.
11643         Remove commented-out documentation of defunct syntax option
11644         RE_NO_EMPTY_ALTS.
11645         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11646         Add documentation of re_set_registers.
11647         Document trick to re-use a pattern buffer by setting fastmap manually.
11648         Update documentation of struct re_pattern_buffer per public members.
11649         Uncomment documentation of equivalence class operators and
11650         collating symbol operators, since they are now implemented,
11651         Explain leftmost-longest matching in relation to alternatives.
11652         Tidy documentation of substring matching.
11653         Remove POSIX documentation, which is done better in
11654         glibc, and refer the reader there. Keep BSD API documentation, as
11655         that is not readily available elsewhere.
11656
11657 2010-09-07  Eric Blake  <eblake@redhat.com>
11658
11659         getopt: handle POSIXLY_CORRECT set but not exported
11660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11661         export state of POSIXLY_CORRECT, due to bash set -o posix.
11662         Reported by Dustin J. Mitchell.
11663
11664 2010-09-05  Bruno Haible  <bruno@clisp.org>
11665
11666         gnulib-tool: Highlight the changed options.
11667         * gnulib-tool (func_usage): Display the --import, --add-import,
11668         --remove-import explanations in bold font.
11669
11670 2010-09-06  Karl Berry  <karl@gnu.org>
11671
11672         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11673
11674 2010-09-05  Bruno Haible  <bruno@clisp.org>
11675
11676         uniwidth/width: Update comment.
11677         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11678         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11679
11680 2010-09-05  Bruno Haible  <bruno@clisp.org>
11681
11682         isinf, isnan: Relax license.
11683         * modules/isinf (License): Change from GPL to LGPL, with consent from
11684         Ben Pfaff.
11685         * modules/isnan (License): Likewise.
11686         Requested by Ludovic Courtès.
11687
11688 2010-09-04  Bruno Haible  <bruno@clisp.org>
11689
11690         gnulib-tool: Help migration from --import to --add-import or --update.
11691         * gnulib-tool: Emit a verbose error message when --import is used
11692         without any module name.
11693
11694 2010-09-04  Bruno Haible  <bruno@clisp.org>
11695
11696         Update doc about gnulib-tool.
11697         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11698         'gnulib-tool --update' in more detail.
11699         Reported by Eric Blake.
11700
11701 2010-09-04  Bruno Haible  <bruno@clisp.org>
11702
11703         gnulib-tool: Change --import. New options --add/remove-import.
11704         * gnulib-tool: New options --add-import, --remove-import.
11705         (func_usage): Document them.
11706         (have_associative): Define always.
11707         (func_import): In import mode, don't merge the specified settings with
11708         the cached settings. Implement remove-import mode.
11709         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11710         Explain when to use them versus --import.
11711         (Simple update): Use --add-import instead of --import.
11712         * NEWS: Mention the change.
11713
11714 2010-09-04  Bruno Haible  <bruno@clisp.org>
11715
11716         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11717         separate gnulib.mk.
11718
11719 2010-09-04  Bruno Haible  <bruno@clisp.org>
11720
11721         gnulib-tool: Don't talk about CVS any more.
11722         * gnulib-tool (func_usage, func_import): Write "version control"
11723         instead of CVS.
11724
11725 2010-09-04  Jim Meyering  <meyering@redhat.com>
11726
11727         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11728         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11729         false positives (whose names may be ill-chosen) when searching
11730         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11731         would cause a false-positive.
11732
11733         avoid coreutils "make distcheck" failure
11734         Coreutils tests with an absolute build directory name that contains
11735         a space.  Not quoting this directory name caused a failure.
11736         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11737         * tests/test-vc-list-files-cvs.sh: Likewise.
11738
11739 2010-09-04  Bruno Haible  <bruno@clisp.org>
11740
11741         gnulib-tool: Avoid error when run in a package without Makefile.am.
11742         * gnulib-tool: When collecting the m4dirs in a package that does not
11743         have a Makefile.am, eliminate those directories that contain no
11744         gnulib-cache.m4. Fix expression that counts these directories.
11745
11746 2010-09-04  Bruno Haible  <bruno@clisp.org>
11747
11748         update-copyright test: Improve output when perl is missing or too old.
11749         * tests/test-update-copyright.sh: Move test of Perl version down after
11750         the test whether Perl exists. Provide an explanation relating Perl's
11751         error message to Automake's SKIP: message.
11752
11753 2010-09-04  Bruno Haible  <bruno@clisp.org>
11754
11755         Don't augment PATH in TESTS_ENVIRONMENT.
11756         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11757         set abs_aux_dir instead of augmenting PATH.
11758         * modules/vc-list-files-tests (Makefile.am): Likewise.
11759         * tests/test-update-copyright.sh: Augment PATH here.
11760         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11761         path_prepend_.
11762         * tests/test-vc-list-files-git.sh: Likewise.
11763
11764 2010-09-04  Jim Meyering  <meyering@redhat.com>
11765
11766         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11767         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11768
11769 2010-09-04  Bruno Haible  <bruno@clisp.org>
11770
11771         strdup: Fix compilation error in C++ mode.
11772         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11773         the macro.
11774
11775 2010-09-04  Bruno Haible  <bruno@clisp.org>
11776
11777         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11778         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11779         macro into a function.
11780         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11781
11782 2010-09-04  Bruno Haible  <bruno@clisp.org>
11783
11784         Set PATH_SEPARATOR the same way autoconf does.
11785         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11786         the value of PATH_SEPARATOR the same way autoconf-generated configure
11787         scripts do.
11788         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11789         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11790
11791 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11792
11793         Set PATH_SEPARATOR the same way autoconf does.
11794         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11795         the same way autoconf-generated configure scripts do.
11796         * posix-modules: Likewise.
11797
11798 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11799
11800         hash: fix safe_hasher const typo
11801         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11802         const; otherwise, there is a type error later.
11803
11804 2010-09-02  Jim Meyering  <meyering@redhat.com>
11805
11806         test-update-copyright.sh: require perl 5.8.0
11807         * tests/test-update-copyright.sh: Require 5.8.0,
11808         which Tom G. Christensen has confirmed is adequate,
11809         while 5.6.1 is not.
11810
11811 2010-09-02  Eric Blake  <eblake@redhat.com>
11812
11813         tests: init.sh improvements for re-exec'ing with zsh
11814         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11815         -vx through shell re-exec.
11816         Reported by Tom G. Christensen.
11817
11818         wctype: fix typo in previous commit
11819         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11820         Reported by Ludovic Courtès.
11821
11822 2010-09-02  Jim Meyering  <meyering@redhat.com>
11823
11824         test-update-copyright.sh: skip test if Perl is too old
11825         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11826         Reported by Tom G. Christensen.
11827
11828 2010-09-02  Bruno Haible  <bruno@clisp.org>
11829
11830         wctype: Avoid compilation error on IRIX 6.5.30.
11831         * lib/wctype.in.h (iswblank): Declare with a replacement if
11832         REPLACE_ISWBLANK is set.
11833         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11834         declared. Set REPLACE_ISWBLANK.
11835         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11836         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11837         * doc/posix-headers/wctype.texi: Likewise.
11838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11839
11840 2010-09-01  Bruno Haible  <bruno@clisp.org>
11841
11842         New module 'socketlib'.
11843         * modules/socketlib: New file.
11844         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11845         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11846         * modules/sockets (Depends-on): Add socketlib.
11847         Suggested by Sam Steingold <sds@gnu.org>.
11848
11849 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11850
11851         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11852
11853         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11854         when one needs search access to a directory but not read access.
11855         On systems where it is available, it works in some cases where
11856         O_RDONLY does not, namely on directories that are searchable but
11857         not readable, and which need only to be searchable.  If O_SEARCH
11858         is not available, fall back to the traditional method of using
11859         O_RDONLY.
11860
11861         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11862         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11863         when opening a directory that needs only to be searchable.
11864         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11865         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11866         * lib/openat-proc.c (openat_proc_name): Likewise.
11867         * lib/openat.c (openat_needs_fchdir): Likewise.
11868         * lib/save-cwd.c (save_cwd): Likewise.
11869         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11870
11871 2010-08-28  Bruno Haible  <bruno@clisp.org>
11872
11873         New module 'host-cpu-c-abi'.
11874         * modules/host-cpu-c-abi: New file.
11875         * m4/host-cpu-c-abi.m4: New file, based on part of
11876         clisp/src/m4/general.m4.
11877         Requested by Sam Steingold <sds@gnu.org>.
11878
11879 2010-08-31  Eric Blake  <eblake@redhat.com>
11880         and Jim Meyering  <meyering@redhat.com>
11881
11882         hash: factor, and guard against misbehaving hasher function
11883         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11884         of table->hasher's return value.  Also protect against a hash value
11885         so large that adding it to table->bucket results in a NULL pointer.
11886         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11887         Use it in place of open-coded check-and-abort.
11888
11889 2010-08-30  Bruno Haible  <bruno@clisp.org>
11890
11891         hash: silence spurious clang warning
11892         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11893         Reported by Eric Blake.
11894
11895 2010-08-30  Eric Blake  <eblake@redhat.com>
11896
11897         strstr, memmem, strcasestr: avoid leaked shell message
11898         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11899         FreeBSD.
11900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11902
11903         tests: silence clang warning
11904         * tests/test-malloca.c (do_allocation): Avoid dead store.
11905
11906 2010-08-29  Bruno Haible  <bruno@clisp.org>
11907
11908         gettext: Fix recent mistake.
11909         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11910
11911 2010-08-29  Bruno Haible  <bruno@clisp.org>
11912
11913         selinux-h: Offer a --without-selinux option.
11914         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11915         --without-selinux was specified, skip all tests and define
11916         HAVE_SELINUX_SELINUX_H to 0.
11917         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11918         set LIB_SELINUX to empty.
11919         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11920         gl_LIBSELINUX. If --without-selinux was specified, replace
11921         selinux/context.h.
11922         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11923
11924 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11925             Bruno Haible  <bruno@clisp.org>
11926
11927         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11928         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11929         of HAVE_REALLOC.
11930         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11931         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11932         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11933         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11934
11935 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11936             Bruno Haible  <bruno@clisp.org>
11937
11938         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11939         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11940         HAVE_CALLOC.
11941         * lib/xmalloc.c: Update accordingly.
11942         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11943         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11944         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11945
11946 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11947             Bruno Haible  <bruno@clisp.org>
11948
11949         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11950         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11951         HAVE_MALLOC.
11952         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11953         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11954         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11955
11956 2010-08-29  Bruno Haible  <bruno@clisp.org>
11957
11958         Update modules list.
11959         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11960         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11961         (String handling <string.h>): Add astrxfrm.
11962         (File system functions): Add readlinkat.
11963
11964 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11965
11966         Tests for module 'realloc-gnu'.
11967         * modules/realloc-gnu-tests: New file.
11968         * tests/test-realloc-gnu.c: New file.
11969
11970         Tests for module 'calloc-gnu'.
11971         * modules/calloc-gnu-tests: New file.
11972         * tests/test-calloc-gnu.c: New file.
11973
11974         Tests for module 'malloc-gnu'.
11975         * modules/malloc-gnu-tests: New file.
11976         * tests/test-malloc-gnu.c: New file.
11977
11978 2010-08-28  Bruno Haible  <bruno@clisp.org>
11979
11980         Rename module 'realloc' -> 'realloc-gnu'.
11981         * modules/realloc-gnu: New file, copied from modules/realloc.
11982         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11983         obsolete.
11984         * modules/mgetgroups (Depends-on): Update.
11985         * doc/posix-functions/realloc.texi: Update.
11986         * NEWS: Mention the change.
11987
11988         Rename module 'calloc' -> 'calloc-gnu'.
11989         * modules/calloc-gnu: New file, copied from modules/calloc.
11990         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11991         obsolete.
11992         * doc/posix-functions/calloc.texi: Update.
11993         * NEWS: Mention the change.
11994
11995         Rename module 'malloc' -> 'malloc-gnu'.
11996         * modules/malloc-gnu: New file, copied from modules/malloc.
11997         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11998         obsolete.
11999         * modules/argp (Depends-on): Update.
12000         * modules/regex (Depends-on): Update.
12001         * doc/posix-functions/malloc.texi: Update.
12002         * NEWS: Mention the change.
12003
12004 2010-08-28  Eric Blake  <eblake@redhat.com>
12005
12006         pread, pwrite: add missing dependency
12007         * modules/pread (Depends-on): Add extensions.
12008         * modules/pwrite (Depends-on): Likewise.
12009
12010 2010-08-28  Bruno Haible  <bruno@clisp.org>
12011
12012         unistr/u*-strchr: Fix tests dependencies.
12013         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12014         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12015         Reported by Ian Beckwith <ianb@erislabs.net>.
12016
12017 2010-08-28  Bruno Haible  <bruno@clisp.org>
12018
12019         read-file: Don't occupy too much unused memory.
12020         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12021
12022 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12023             Eric Blake  <eblake@redhat.com>
12024             Bruno Haible  <bruno@clisp.org>
12025
12026         read-file: Avoid memory reallocations with regular files.
12027         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12028         (fread_file): With regular files, use the remaining length as the
12029         initial buffer size.  Check against overflow.
12030         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12031         sys_stat.
12032
12033 2010-08-28  Bruno Haible  <bruno@clisp.org>
12034
12035         ftello: Relax license.
12036         * modules/ftello (License): Relax to LGPLv2+.
12037         Reported by Eric Blake.
12038
12039 2010-08-28  Bruno Haible  <bruno@clisp.org>
12040
12041         Avoid relocwrapper link errors due to gnulib replacement functions.
12042         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12043         function.
12044         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12045
12046 2010-08-28  Bruno Haible  <bruno@clisp.org>
12047
12048         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12049         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12050         defined.
12051         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12052         Suggested by Eric Blake.
12053
12054 2010-08-28  Bruno Haible  <bruno@clisp.org>
12055
12056         sys_socket, netdb: Ensure socklen_t gets defined.
12057         * modules/sys_socket (Depends-on): Add socklen.
12058         * modules/netdb (Depends-on): Likewise.
12059         * modules/getaddrinfo (Depends-on): Remove socklen.
12060         * modules/getsockopt (Depends-on): Likewise.
12061         * modules/setsockopt (Depends-on): Likewise.
12062         * tests/test-sys_socket.c: Check that socklen_t is defined.
12063         * tests/test-netdb.c: Likewise.
12064         * m4/socklen.m4: Update comments.
12065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12066
12067 2010-08-27  Eric Blake  <eblake@redhat.com>
12068
12069         login_tty: add missing dependency
12070         * modules/login_tty (Depends-on): Add pty.
12071
12072 2010-08-26  Eric Blake  <eblake@redhat.com>
12073
12074         lib-symbol-versions: fix m4 quoting
12075         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12076         format for AC_LINK_IFELSE.
12077
12078         glob: fix compile test
12079         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12080
12081         btowc: fix missing file
12082         * modules/btowc (Files): Also ship locale-fr.m4.
12083
12084         lseek: fix link test
12085         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12086         AC_LINK_IFELSE.
12087
12088         include_next: silence autoconf 2.68 warning
12089         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12090         AC_COMPILE_IFELSE as special.
12091         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12092         autoconf < 2.68.
12093
12094         acl: fix compilation test
12095         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12096         AC_COMPILE_IFELSE.
12097
12098 2010-08-26  Bruno Haible  <bruno@clisp.org>
12099
12100         Modernize AC_TRY_RUN invocations.
12101         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12102         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12103         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12104         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12105         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12106         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12107         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12109         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12110         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12111         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12112         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12113         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12114         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12115         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12116         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12117         gl_MBRLEN_NUL_RETVAL): Likewise.
12118         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12119         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12120         Likewise.
12121         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12122         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12123         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12124         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12125         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12126         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12127         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12128         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12129         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12130         Likewise.
12131         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12132         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12133         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12134         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12135         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12136         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12137         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12138         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12139         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12141
12142 2010-08-26  Bruno Haible  <bruno@clisp.org>
12143
12144         Modernize AC_TRY_LINK invocations.
12145         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12146         AC_TRY_LINK.
12147         * m4/argp.m4 (gl_ARGP): Likewise.
12148         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12149         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12150         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12151         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12152         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12153         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12154         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12155         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12156         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12157         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12158         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12159         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12160         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12161         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12162         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12163         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12164         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12165         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12166         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12167         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12168         Likewise.
12169         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12170         Likewise.
12171         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12172         Likewise.
12173         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12175         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12176         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12177         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12178         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12179         * m4/servent.m4 (gl_SERVENT): Likewise.
12180         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12181         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12182         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12183         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12184         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12185         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12186         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12187         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12188         * modules/tsearch-tests (configure.ac): Likewise.
12189
12190 2010-08-26  Bruno Haible  <bruno@clisp.org>
12191
12192         Modernize AC_TRY_COMPILE invocations.
12193         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12194         AC_TRY_COMPILE.
12195         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12196         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12197         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12198         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12199         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12200         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12201         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12202         * m4/lock.m4 (gl_LOCK): Likewise.
12203         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12204         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12205         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12206         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12207         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12208         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12209         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12210         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12211         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12212         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12213         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12214         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12215         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12216         extraneous semicolon.
12217
12218 2010-08-26  Jim Meyering  <meyering@redhat.com>
12219
12220         stat-time: relax license LGPL
12221         * modules/stat-time (License): Change from GPL to LGPL,
12222         with consent from all contributors, for use in libguile.
12223         Requested by Ludovic Courtès.
12224
12225 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12226
12227         poll: return immediately on POLLHUP.
12228         * lib/poll.c (poll): Always set timeout before wait_timeout is
12229         computed.
12230
12231 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12232
12233         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12234         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12235         rmdir ("dir/.//"), unlinkat.
12236
12237 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12238
12239         stdbool: avoid spurious failure with modern xlc
12240         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12241
12242 2010-08-24  Bruno Haible  <bruno@clisp.org>
12243
12244         getloadavg: simplify code
12245         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12246         gl_have_func. Update comments.
12247
12248 2010-08-24  Eric Blake  <eblake@redhat.com>
12249
12250         getloadavg: don't define SVR4 on cygwin
12251         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12252         only define SVR4 when -lkvm is required.
12253         Reported by Yaakov Selkowitz.
12254
12255 2010-08-24  Bruno Haible  <bruno@clisp.org>
12256
12257         priv-set: fix comment
12258         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12259
12260 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12261
12262         priv-set: fix comments
12263         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12264         to match code, as suggested by David Bartley in:
12265         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12266
12267 2010-08-23  Eric Blake  <eblake@redhat.com>
12268
12269         stdbool: avoid rejecting clang
12270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12271         * tests/test-stdbool.c: Enable more tests if using the system
12272         <stdbool.h> instead of the gnulib replacement.
12273         (main): Move xlc bug test to a runtime test for all compilers.
12274         Reported by Anders Kaseorg.
12275
12276         argz: fix shell quoting issue
12277         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12278         Reported by Charles Wilson.
12279
12280 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12281             Erik Faye-Lund <kusmabite@gmail.com>
12282
12283         poll, select: handle ERROR_BROKEN_PIPE.
12284         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12285         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12286         * lib/select.c (win32_compute_revents): Do not mark a pipe
12287         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12288
12289 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12290
12291         fts: allow compilation with C++
12292         * lib/fts_.h: Specify extern "C" linkage with C++.
12293
12294 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12295
12296         Fix gnulib-tool sed script de-commentation for AIX sed.
12297         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12298         sed.
12299
12300 2010-08-17  Eric Blake  <eblake@redhat.com>
12301
12302         test-stddef: test for (some) offsetof bugs
12303         * tests/test-stddef.c: Enhance test to ensure correct type of
12304         offsetof.
12305         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12306         that we are not fixing at this time.
12307
12308 2010-08-15  Bruno Haible  <bruno@clisp.org>
12309
12310         stpncpy: Allow stpncpy to be defined as a macro.
12311         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12312         if it's already correctly declared.
12313         * lib/string.in.h (stpncpy): Undefine before redefining.
12314         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12315
12316 2010-08-14  Bruno Haible  <bruno@clisp.org>
12317
12318         Rename module 'memxfrm' to 'amemxfrm'.
12319         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12320         (amemxfrm): Renamed from memxfrm.
12321         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12322         (amemxfrm): Renamed from memxfrm.
12323         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12324         * NEWS: Mention the change.
12325         * MODULES.html.sh (String handling <string.h>): Update.
12326         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12327         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12328         * lib/unicase/u16-casexfrm.c: Likewise.
12329         * lib/unicase/u32-casexfrm.c: Likewise.
12330         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12331         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12332         * lib/uninorm/u16-normxfrm.c: Likewise.
12333         * lib/uninorm/u32-normxfrm.c: Likewise.
12334         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12335         memxfrm.
12336         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12337         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12338         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12339         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12340         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12341         Suggested by Paul Eggert.
12342
12343 2010-08-14  Bruno Haible  <bruno@clisp.org>
12344
12345         Tests for module 'astrxfrm'.
12346         * modules/astrxfrm-tests: New file.
12347         * tests/test-astrxfrm.c: New file.
12348
12349         New module 'astrxfrm'.
12350         * lib/astrxfrm.h: New file.
12351         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12352         * modules/astrxfrm: New file.
12353
12354 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12355
12356         regex: Tweak doc.
12357         * doc/regex.texi (Overview): Don't mention regex.c.
12358         (GNU Regular Expression Compiling): Likewise.
12359         (Match-end-of-line Operator): Mention 'not_eol'.
12360
12361 2010-08-14  Brian Gough  <bjg@gnu.org>
12362             Bruno Haible  <bruno@clisp.org>
12363
12364         git-merge-changelog: add doc relating to use with bzr and hg.
12365         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12366
12367 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12368
12369         pthread: fix pthread.h creation for srcdir != builddir
12370         * modules/pthread (Makefile.am): Fix the rule to work also in a
12371         non-srcdir build.
12372
12373 2010-08-13  Karl Berry  <karl@gnu.org>
12374
12375         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12376         * doc/posix-*/*: force line break before @url of POSIX
12377         specifications.
12378         Suggested by Werner Lemberg.
12379
12380 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12381
12382         strtod: fix const diagnostic
12383         * lib/strtod.c (strtod): Don't assign const char * to char *,
12384         as this elicits a warning from GCC when warnings are enabled.
12385
12386 2010-08-10  Pádraig Brady <P@draigbrady.com>
12387         and Eric Blake  <eblake@redhat.com>
12388
12389         copy-acl: ignore ENOTSUP on HP-UX
12390         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12391         so that it is available for HP-UX.
12392         * lib/copy-acl.c (qcopy_acl): Use it.
12393         Reported by Patrick M. Callahan.
12394
12395 2010-08-10  Eric Blake  <eblake@redhat.com>
12396
12397         open, chown: relax license
12398         * modules/open (License): Change to LGPLv2+, with consent by all
12399         authors, for use in augeas.
12400         * modules/chown (License): Likewise.
12401         * modules/lchown (Likewise): Likewise.
12402         Requested by Adam Stokes.
12403
12404 2010-08-09  Karl Berry  <karl@gnu.org>
12405
12406         * build-aux/ar-lib: new file, import from Automake.
12407         * config/srclist.txt: autocheck for updates.
12408
12409 2010-08-09  Eric Blake  <eblake@redhat.com>
12410
12411         readlinkat: adjust client modules
12412         * modules/areadlinkat (Depends-on): Use readlinkat, not
12413         symlinkat.
12414         * modules/areadlinkat-with-size (Depends-on): Likewise.
12415
12416         mknod: be more vocal about danger of running tests as root
12417         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12418         root, since that is just asking for problems.
12419         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12420
12421         readlinkat: split into its own module
12422         * modules/symlinkat: Split readlinkat...
12423         * modules/readlinkat: ...into separate module.
12424         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12425         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12426         * lib/symlinkat.c (readlinkat): Move...
12427         * lib/readlinkat.c: ...into new file.
12428         * modules/symlinkat-tests: Split readlinkat test...
12429         * modules/readlinkat-tests: ...into separate module.
12430         * tests/test-symlinkat.c: Split...
12431         * tests/test-readlinkat.c: ...into new file.
12432         * NEWS: Document the split.
12433         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12434         * lib/unistd.in.h (readlinkat): Likewise.
12435         Suggested by Bruno Haible.
12436
12437 2010-08-08  Bruno Haible  <bruno@clisp.org>
12438
12439         memxfrm: Speed up.
12440         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12441         that usually only one call to strxfrm is necessary for each string
12442         part.
12443         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12444
12445 2010-08-07  Karl Berry  <karl@gnu.org>
12446
12447         * doc/posix-headers/limits.texi,
12448         * doc/posix-functions/malloc.texi,
12449         * doc/posix-functions/strsignal.texi: missing @item.
12450         * doc/ld-version-script.texi: spurious leading i.
12451         * doc/regex.texi (Interval Operators): no commas inside @var.
12452
12453 2010-08-01  Bruno Haible  <bruno@clisp.org>
12454
12455         Integrate the regex documentation.
12456         * doc/gnulib.texi: Define 'cn' index.
12457         (Regular expressions): New a chapter that includes regex.texi and
12458         regexprops-generic.texi.
12459         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12460         syntax.
12461
12462         Whitespace cleanup.
12463         * doc/regex.texi: Remove trailing spaces.
12464
12465         Add regex documentation.
12466         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12467         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12468         Written by Kathy A. Hargreaves and Karl Berry.
12469
12470 2010-08-01  Bruno Haible  <bruno@clisp.org>
12471
12472         link: Update documentation.
12473         * doc/posix-functions/link.texi: Update regarding Solaris.
12474
12475 2010-07-31  Bruno Haible  <bruno@clisp.org>
12476
12477         Update modules list.
12478         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12479         (String handling <string.h>): Add memcmp2, memxfrm.
12480         (Container data structures): Add xlist, xsublist, xoset.
12481         (Core language properties): Add alignof, unused-parameter.
12482         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12483         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12484         (Unibyte characters <ctype.h>): New section.
12485         (String handling <string.h>): New section.
12486         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12487         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12488         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12489         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12490         tan, tanh, tanl, y0, y1, yn.
12491         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12492         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12493         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12494         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12495         unlockpt, vdprintf, vdprintf-posix.
12496         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12497         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12498         xconcat-filename.
12499         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12500         getdtablesize, pipe2, pipe2-safer.
12501         (Security): New section.
12502         (Networking functions): Add accept4.
12503         (Signal handling): Add sigpipe.
12504         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12505         mbmemcasecoll.
12506         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12507         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12508         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12509         pipe-filter-ii.
12510         (Misc): Add argp-version-etc, login_tty, parse-duration.
12511
12512 2010-07-31  Bruno Haible  <bruno@clisp.org>
12513
12514         Improve doc in MODULES.html.
12515         * modules/linkat (Description): Add the word "function".
12516         * modules/mkfifo (Description): Likewise.
12517         * modules/mknod (Description): Likewise.
12518         * modules/remove (Description): Likewise.
12519         * modules/renameat (Description): Likewise.
12520         * modules/stat (Description): Likewise.
12521         * modules/symlink (Description): Likewise.
12522         * modules/unlink (Description): Likewise.
12523
12524 2010-07-31  Bruno Haible  <bruno@clisp.org>
12525
12526         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12527         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12528         option --enable/disable-c++ instead of --enable/disable-cxx.
12529         * NEWS: Mention the change.
12530
12531 2010-07-31  Bruno Haible  <bruno@clisp.org>
12532
12533         readlink, areadlink: Relax test a bit.
12534         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12535         alternative to ENOTDIR.
12536         * tests/test-areadlink.h (test_areadlink): Likewise.
12537         Reported by Rainer Tammer.
12538
12539 2010-07-31  Bruno Haible  <bruno@clisp.org>
12540
12541         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12542         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12543         character, perform the search using U_STRCHR.
12544         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12545         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12546         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12547         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12548         Suggested by Paolo Bonzini.
12549
12550 2010-07-31  Bruno Haible  <bruno@clisp.org>
12551
12552         unistr/u*-strstr: Fix dependencies.
12553         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12554         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12555         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12556
12557 2010-07-31  Bruno Haible  <bruno@clisp.org>
12558
12559         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12560         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12561         the beginning of the loop.
12562         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12563         cases in 'switch' statement.
12564
12565         unistr/u8-strchr: Fix several bugs.
12566         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12567         the string. When not found, return NULL, not a pointer near the end.
12568
12569         More tests for unistr/u8-strchr.
12570         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12571         that the function does not read past the first occurrence of the byte
12572         being searched.
12573         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12574         * tests/unistr/test-u16-strchr.c (main): New function.
12575         * tests/unistr/test-u32-strchr.c (main): New function.
12576
12577 2010-07-31  Bruno Haible  <bruno@clisp.org>
12578
12579         posix-modules: Ignore backup files of documentation files.
12580         * posix-modules: grep only through files named *.texi.
12581
12582 2010-07-31  Bruno Haible  <bruno@clisp.org>
12583
12584         symlinkat: Fix documentation.
12585         * doc/posix-functions/readlinkat.texi: Fix module name.
12586
12587 2010-07-31  Bruno Haible  <bruno@clisp.org>
12588
12589         fchownat: Replace also when chown has the trailing slash bug.
12590         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12591         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12592         introduced on 2010-04-10.
12593         Reported by Rainer Tammer.
12594
12595 2010-07-31  Bruno Haible  <bruno@clisp.org>
12596
12597         linkat: Work around AIX 7.1 bug.
12598         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12599         whether linkat handles trailing slash correctly. If not, replace linkat
12600         and define LINKAT_TRAILING_SLASH_BUG.
12601         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12602         check whether (fd1,file1) points to a directory if file1 or file2 ends
12603         in a slash. Code taken from lib/link.c.
12604         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12605         Reported by Rainer Tammer.
12606
12607 2010-07-31  Bruno Haible  <bruno@clisp.org>
12608
12609         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12610         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12611         This disables an xlc optimization that was causing wrong test results.
12612         Reported by Rainer Tammer.
12613
12614 2010-07-31  Bruno Haible  <bruno@clisp.org>
12615
12616         iconv: Work around AIX 6.1..7.1 bug.
12617         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12618         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12619         cross-compiling, guess no on all versions of AIX.
12620         Reported by Rainer Tammer.
12621
12622 2010-07-31  Bruno Haible  <bruno@clisp.org>
12623
12624         readlink: Relax test a bit.
12625         * tests/test-readlink.h (test_readlink): Allow different errno value
12626         when readlink is called with a file name that ends in / and refers to
12627         a file.
12628         Suggested by Eric Blake.
12629         Reported by Rainer Tammer.
12630
12631 2010-07-31  Bruno Haible  <bruno@clisp.org>
12632
12633         copysign: Does not require -lm on glibc systems.
12634         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12635         gl_COMMON_DOUBLE_MATHFUNC.
12636         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12637
12638 2010-07-31  Bruno Haible  <bruno@clisp.org>
12639
12640         duplocale: Work around AIX 7.1 bug.
12641         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12642         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12643         * lib/duplocale.c (rpl_duplocale): Update comment.
12644         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12645         Reported by Rainer Tammer.
12646
12647 2010-07-30  Bruno Haible  <bruno@clisp.org>
12648
12649         dirfd: Avoid link error on AIX 7.1.
12650         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12651         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12652         exist, set REPLACE_DIRFD.
12653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12654         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12655         * doc/posix-functions/dirfd.texi: Update.
12656         Reported by Rainer Tammer.
12657
12658 2010-07-30  Eric Blake  <eblake@redhat.com>
12659
12660         strtod: next round of AIX fixes
12661         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12662         exponent.
12663         * tests/test-strtod.c (main): Enhance tests.
12664         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12665         Reported by Rainer Tammer.
12666
12667         futimens: fix configure check
12668         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12669         Reported by Bruno Haible.
12670
12671 2010-07-30  Bruno Haible  <bruno@clisp.org>
12672
12673         getline: Update regarding AIX.
12674         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12675         Reported by Rainer Tammer.
12676
12677 2010-07-30  Bruno Haible  <bruno@clisp.org>
12678
12679         wcwidth: Drop replacement on AIX 7.
12680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12681         AIX 7.
12682         Reported by Rainer Tammer.
12683
12684 2010-07-30  Bruno Haible  <bruno@clisp.org>
12685
12686         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12688         a 'char *'.
12689         Reported by Rainer Tammer.
12690
12691 2010-07-30  Bruno Haible  <bruno@clisp.org>
12692
12693         unlink: Update regarding AIX.
12694         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12695         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12696         Reported by Rainer Tammer.
12697
12698 2010-07-30  Bruno Haible  <bruno@clisp.org>
12699
12700         symlink: Update regarding AIX.
12701         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12702         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12703         Reported by Rainer Tammer.
12704
12705 2010-07-30  Bruno Haible  <bruno@clisp.org>
12706
12707         strndup: Update regarding AIX.
12708         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12709         AIX 7.
12710         Reported by Rainer Tammer.
12711
12712 2010-07-30  Bruno Haible  <bruno@clisp.org>
12713
12714         stat: Update regarding AIX.
12715         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12716         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12717         Reported by Rainer Tammer.
12718
12719 2010-07-30  Bruno Haible  <bruno@clisp.org>
12720
12721         truncl: Fix autoconf test.
12722         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12723         whether truncl works.
12724         Reported by Rainer Tammer.
12725
12726 2010-07-30  Bruno Haible  <bruno@clisp.org>
12727
12728         round: Update regarding AIX.
12729         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12730         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12731         Reported by Rainer Tammer.
12732
12733 2010-07-30  Bruno Haible  <bruno@clisp.org>
12734
12735         rename: Update regarding AIX.
12736         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12737         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12738         Reported by Rainer Tammer.
12739
12740 2010-07-30  Bruno Haible  <bruno@clisp.org>
12741
12742         printf.m4: Update regarding AIX.
12743         * m4/printf.m4: Update comments regarding AIX.
12744         Reported by Rainer Tammer.
12745
12746 2010-07-30  Bruno Haible  <bruno@clisp.org>
12747
12748         iconv: Update regarding AIX.
12749         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12750         AIX 7.
12751         Reported by Rainer Tammer.
12752
12753 2010-07-30  Bruno Haible  <bruno@clisp.org>
12754
12755         getopt: Update regarding AIX.
12756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12757         no on AIX.
12758         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12759         Reported by Rainer Tammer.
12760
12761 2010-07-30  Bruno Haible  <bruno@clisp.org>
12762
12763         ldexpl; Update regarding AIX.
12764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12765         on AIX 7.
12766         Reported by Rainer Tammer.
12767
12768 2010-07-30  Bruno Haible  <bruno@clisp.org>
12769
12770         frexpl: Update regarding AIX.
12771         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12772         on AIX 7.
12773         Reported by Rainer Tammer.
12774
12775 2010-07-30  Bruno Haible  <bruno@clisp.org>
12776
12777         open, fopen: Update regarding AIX.
12778         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12779         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12780         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12781         * doc/posix-functions/fopen.texi: Likewise.
12782         Reported by Rainer Tammer.
12783
12784 2010-07-30  Bruno Haible  <bruno@clisp.org>
12785
12786         chown: Update doc regarding AIX.
12787         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12788         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12789         Reported by Rainer Tammer.
12790
12791 2010-07-30  Eric Blake  <eblake@redhat.com>
12792
12793         strtod: fix bug in replacement function on AIX
12794         * lib/strtod.c (strtod): Special case broken "0x" parse in
12795         underlying strtod.
12796         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12797         * doc/posix-functions/strtod.texi (strtod): Likewise.
12798         Reported by Rainer Tammer.
12799
12800 2010-07-30  Bruno Haible  <bruno@clisp.org>
12801
12802         mbrlen: Fix cross-compilation guess for AIX.
12803         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12804         guess. Leftover from 2008-12-22.
12805
12806 2010-07-30  Bruno Haible  <bruno@clisp.org>
12807
12808         mbrtowc: Fix cross-compilation guess for AIX.
12809         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12810         guess. Leftover from 2008-12-21.
12811
12812 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12813
12814         init.sh: work around trap limitation of some shells
12815         * tests/init.sh (setup_): Move exit trap outside of shell function.
12816
12817 2010-07-29  Eric Blake  <eblake@redhat.com>
12818
12819         strtod: aid debugging
12820         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12821         understanding why strtod is rejected.
12822
12823 2010-07-28  Bruno Haible  <bruno@clisp.org>
12824
12825         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12826         * lib/unistr/u8-chr.c: Include <string.h>.
12827         * tests/unistr/test-u8-chr.c: Likewise.
12828         * tests/unistr/test-u16-chr.c: Likewise.
12829         * tests/unistr/test-u32-chr.c: Likewise.
12830         * tests/unistr/test-u8-strchr.c: Likewise.
12831         * tests/unistr/test-u16-strchr.c: Likewise.
12832         * tests/unistr/test-u32-strchr.c: Likewise.
12833         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12834         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12835         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12836         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12837
12838 2010-07-28  Bruno Haible  <bruno@clisp.org>
12839
12840         Use spaces for indentation, not tabs.
12841         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12842
12843 2010-07-27  Bruno Haible  <bruno@clisp.org>
12844
12845         mbspcasecmp: Fix function specification.
12846         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12847         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12848         Reported by Eric Blake <eblake@redhat.com>.
12849
12850 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12851
12852         timespec: use cast and not conditional, as truncation isn't possible
12853         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12854         instead of a conditional.  Comment about the situation in more detail.
12855         This undoes most of the 2009-10-29 patch.
12856
12857 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12858
12859         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12860         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12861         * lib/unistr/u8-strchr.c: Likewise.
12862         * modules/unistr/u8-chr: Depend on memchr.
12863
12864         unistr/u*-strchr: add tests
12865         * modules/unistr/u8-strchr-tests: New file.
12866         * modules/unistr/u16-strchr-tests: New file.
12867         * modules/unistr/u32-strchr-tests: New file.
12868         * tests/unistr/test-strchr.h: New file.
12869         * tests/unistr/test-u8-strchr.c: New file.
12870         * tests/unistr/test-u16-strchr.c: New file.
12871         * tests/unistr/test-u32-strchr.c: New file.
12872
12873         unistr/u*-chr: test multibyte sequences more
12874         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12875         test vector.
12876         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12877         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12878         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12879
12880         unistr/u*-chr: test multibyte sequences
12881         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12882
12883         unistr/u*-chr: prepare for multibyte tests
12884         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12885         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12886         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12887         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12888         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12889         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12890
12891 2010-07-18  Bruno Haible  <bruno@clisp.org>
12892
12893         unistr/u8-strchr: Optimize non-ASCII argument case.
12894         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12895         because the first byte often matches anyway.
12896         Reported by Pádraig Brady <P@draigbrady.com>.
12897
12898 2010-07-15  Karl Berry  <karl@gnu.org>
12899
12900         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12901
12902 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12903
12904         getcwd: on Solaris, work better if ancestors are inaccessible
12905         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12906         buffer and size, try again with a large buffer.  This works better
12907         on Solaris, since its getcwd succeeds even if the path to the root
12908         is inaccessible, and this is helpful in common cases such as .zfs
12909         hidden directories.  Problem reported by J Chapman Flack in
12910         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12911         Use system getcwd if it's declared, not merely if it's partly
12912         working; use the partly-working test only to avoid needless effort
12913         if the system getcwd fails.
12914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12915         comment that was already obsolete and is now even more obsolete.
12916         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12917         now might call strdup.
12918
12919 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12920
12921         pthread: Add enough so that coreutils/src/sort.c compiles.
12922         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12923         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12924         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12925         Include <sys/types.h>, in case it defines pthread_t.
12926         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12927         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12928         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12929         (pthread_rwlockattr_t, pthread_spinlock_t):
12930         New typedefs, if HAVE_PTHREAD_T is not defined.
12931         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12932         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12933         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12934         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12935         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12936         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12937         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12938         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12939         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12940         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12941         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12942         New macros.
12943         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12944         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12945         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12946         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12947         (pthread_spin_unlock): New dummy functions.
12948         (pthread_create): Return EAGAIN; don't set errno.
12949         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12950         require AC_C_INLINE.
12951         * modules/pthread (Depends-on): Add sched, time.
12952         (pthread.h): Use AM_V_GEN.
12953
12954 2010-07-13  Bruno Haible  <bruno@clisp.org>
12955
12956         striconveh: Don't malloc memory if the result buffer is sufficient.
12957         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12958         buffer if its size is sufficient.
12959         Reported by Ludovic Courtès <ludo@gnu.org>.
12960
12961 2010-07-13  Bruno Haible  <bruno@clisp.org>
12962
12963         strtod: Add safety check.
12964         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12965
12966 2010-07-12  Bruno Haible  <bruno@clisp.org>
12967
12968         Unify tests that set gl_cv_func_ldexpl_no_libm.
12969         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12970         gl_FUNC_LDEXPL.
12971         (gl_FUNC_LDEXPL): Invoke it.
12972         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12973
12974 2010-07-12  Bruno Haible  <bruno@clisp.org>
12975
12976         Unify tests that set gl_cv_func_ldexp_no_libm.
12977         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12978         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12979         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12980         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12981         * modules/strtod (Files): Add m4/ldexp.m4.
12982
12983 2010-07-12  Bruno Haible  <bruno@clisp.org>
12984
12985         Unify tests that set gl_cv_func_frexpl_no_libm.
12986         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12987         gl_FUNC_FREXPL_NO_LIBM.
12988         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12989         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12990
12991 2010-07-12  Bruno Haible  <bruno@clisp.org>
12992
12993         Unify tests that set gl_cv_func_frexp_no_libm.
12994         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12995         gl_FUNC_FREXP_NO_LIBM.
12996         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12997         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12998
12999 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13000
13001         memcoll: clarify sizes versus lengths, document better, and tweak perf
13002         * lib/memcoll.c (strcoll_loop, memcoll0):
13003         Improve quality of descriptive comments.  Name variables
13004         consistently as to whether they are lengths (which do not include
13005         terminating null) versus sizes (which do).
13006         * lib/xmemcoll.c (xmemcoll0): Likewise.
13007         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13008         returned when s1size == 0; this is easier to compile and saves
13009         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13010
13011 2010-07-12  Bruno Haible  <bruno@clisp.org>
13012
13013         Tests for module '_Exit'.
13014         * modules/_Exit-tests: New file.
13015         * tests/test-_Exit.sh: New file.
13016         * tests/test-_Exit.c: New file.
13017
13018         New module '_Exit'.
13019         * lib/stdlib.in.h (__attribute__): New macro.
13020         (_Exit): New declaration.
13021         * lib/_Exit.c: New file.
13022         * m4/_Exit.m4: New file.
13023         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13024         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13025         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13026         * modules/_Exit: New file.
13027         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13028         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13029
13030 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13031
13032         strtod: make it more-accurate typically, and don't require libm
13033         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13034         Include limits.h.  Don't include string.h.
13035         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13036         (locale_isspace): New function, so that no casts are needed to
13037         check whether *s is a space.
13038         (ldexp): Provide an unused dummy if not available.
13039         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13040         (strtod): Use them.  This implementation prefers to use the
13041         underlying strtod if available, falling back on our own code
13042         only to fix known bugs.  This is more likely to produce an
13043         accurate result.  Also, it avoids the use of libm functions.
13044         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13045         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13046         was absent, but it caused a test failure with coreutils.
13047         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13048         with libm.
13049         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13050         * modules/strtod-tests (Makefile.am): Likewise.
13051
13052 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13053             Bruno Haible  <bruno@clisp.org>
13054
13055         unistr/u8-strchr: Optimize ASCII argument case.
13056         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13057
13058 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13059
13060         (x)memcoll: minor tweaks
13061         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13062         is after the type that it qualifies.
13063         (memcoll0): Likewise.
13064         * lib/memcoll.h (memcoll0): Likewise.
13065         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13066         * lib/xmemcoll.h (xmemcoll0): Likewise.
13067         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13068         differs from memcoll in that the NUL byte is part of the argument.
13069         Omit the abort-checks, as performance is a real issue here.  Plus,
13070         the checks were wrong anyway (an off-by-one error).  Omit local
13071         variable 'diff', as it's a bit clearer that way.
13072         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13073         no longer needed.
13074
13075 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13076
13077         (x)memcoll: speedup when input is known to be NUL delimited
13078         * lib/memcoll.c: Include stdlib.
13079         (memcoll0): New function.
13080         (strcoll_loop): New function, refactored for use in both memcoll
13081         and memcoll0.
13082         * lib/memcoll.h (memcoll0): Add prototype.
13083         * lib/xmemcoll.c (xmemcoll0): New function.
13084         (collate_error): New function, refactored for use in both xmemcoll
13085         and xmemcoll0.
13086         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13087         * m4/memcoll.m4: add inline invocation.
13088
13089 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13090
13091         * build-aux/bootstrap: Remove any local translations
13092         from the translation project synchronization directory,
13093         so that local only translations are not distributed.
13094
13095 2010-07-04  Bruno Haible  <bruno@clisp.org>
13096
13097         fsusage: Clarify which code applies to which platforms.
13098         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13099         platform.
13100         * lib/fsusage.c (get_fs_usage): Likewise.
13101
13102 2010-07-04  Bruno Haible  <bruno@clisp.org>
13103
13104         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13105         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13106         Reported by Martin Lambers <marlam@marlam.de>.
13107
13108 2010-07-04  Jim Meyering  <meyering@redhat.com>
13109
13110         hash: once again explicitly disallow insertion of NULL
13111         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13112         inserting a NULL pointer cannot work with these functions.
13113         Add a comment with details.
13114         This reverts part of the 2010-07-01 commit, 5bef1a35
13115         "hash: extend module to deal with non-pointer keys".
13116
13117 2010-07-01  Bruno Haible  <bruno@clisp.org>
13118
13119         stdbool: Update doc.
13120         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13121         Info from Christian Weisgerber <naddy@mips.inka.de>.
13122
13123 2010-07-01  Jim Meyering  <meyering@redhat.com>
13124
13125         hash: extend module to deal with non-pointer keys
13126         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13127         but that allows insertion of non-pointer entries.
13128         Do not disallow an ENTRY value of NULL.
13129         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13130         * lib/hash.h (hash_insert0): Declare.
13131
13132 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13133
13134         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13135         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13136         not present (i.e. with autoconf 2.59 and when using gettextize, not
13137         gnulib), require AC_GNU_SOURCE instead.
13138
13139 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13140
13141         idpriv-drop: Fix tests.
13142         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13143         not to the test-idpriv-droptemp program.
13144
13145 2010-06-29  Bruno Haible  <bruno@clisp.org>
13146
13147         string: Fix syntax error with g++ 2.96.
13148         * lib/string.in.h (__pure__): Remove definition.
13149         (_GL_ATTRIBUTE_PURE): New macro.
13150         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13151         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13152         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13153
13154 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13155
13156         unitypes: Fix bug introduced on 2010-05-18.
13157         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13158
13159 2010-06-22  Eric Blake  <eblake@redhat.com>
13160
13161         memmem: slight optimization
13162         * lib/str-two-way.h (critical_factorization): Update comments.
13163         Reduce work during factorization phase.
13164         Reported by Carlos Bueno <carlos@bueno.org>.
13165
13166 2010-06-21  Bruno Haible  <bruno@clisp.org>
13167
13168         Fix HAVE_CALLOC_POSIX misnomer.
13169         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13170         !HAVE_CALLOC_POSIX.
13171         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13172         HAVE_CALLOC_POSIX.
13173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13174         instead of HAVE_CALLOC_POSIX.
13175         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13176         HAVE_CALLOC_POSIX.
13177
13178         Use modern idiom for calloc() replacement.
13179         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13180         AC_FUNC_CALLOC.
13181         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13182         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13183         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13184         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13185         (gl_REPLACE_CALLOC): New macro.
13186
13187 2010-06-21  Bruno Haible  <bruno@clisp.org>
13188
13189         Fix HAVE_REALLOC_POSIX misnomer.
13190         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13191         !HAVE_REALLOC_POSIX.
13192         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13193         HAVE_REALLOC_POSIX.
13194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13195         instead of HAVE_REALLOC_POSIX.
13196         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13197         HAVE_REALLOC_POSIX.
13198
13199         Use modern idiom for realloc() replacement.
13200         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13201         AC_FUNC_REALLOC.
13202         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13203         Autoconf's AC_FUNC_REALLOC.
13204         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13205         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13206         (gl_REPLACE_REALLOC): New macro.
13207         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13208
13209 2010-06-21  Bruno Haible  <bruno@clisp.org>
13210
13211         Fix HAVE_MALLOC_POSIX misnomer.
13212         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13213         !HAVE_MALLOC_POSIX.
13214         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13215         HAVE_MALLOC_POSIX.
13216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13217         instead of HAVE_MALLOC_POSIX.
13218         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13219         HAVE_MALLOC_POSIX.
13220
13221         Use modern idiom for malloc() replacement.
13222         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13223         AC_FUNC_MALLOC.
13224         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13225         Autoconf's AC_FUNC_MALLOC.
13226         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13227         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13228         (gl_REPLACE_MALLOC): New macro.
13229         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13230
13231 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13232
13233         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13234         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13235         This macro takes 3 arguments, not 4.
13236
13237 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13238
13239         ipv6: fix detection under mingw
13240         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13241         in6_addr.
13242
13243 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13244
13245         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13246         that strtod() works when cross-compiling to a glibc version known
13247         to work.
13248
13249 2010-06-15  Bruno Haible  <bruno@clisp.org>
13250
13251         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13252
13253 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13254
13255         select: Correct timeout.
13256         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13257
13258 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13259
13260         git-version-gen: init shell var to avoid env var influence
13261         * build-aux/git-version-gen (v): Init shell var to empty.
13262
13263 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13264
13265         priv-set: Don't assume that priv.h exists merely because getppriv does.
13266         See Jan Andersen's bug report about AIX 5L in
13267         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13268         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13269         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13270         * lib/priv-set.h: Likewise.
13271         * tests/test-priv-set.c: Likewise.
13272
13273 2010-06-13  Bruno Haible  <bruno@clisp.org>
13274
13275         relocatable: Make it easier to test whether to install wrappers.
13276         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13277         RELOCATABLE_VIA_WRAPPER.
13278
13279 2010-06-13  Bruno Haible  <bruno@clisp.org>
13280
13281         gnulib-tool: Display specified modules and dependencies differently.
13282         * gnulib-tool (func_show_module_list): New function.
13283         (func_import, func_create_testdir): Invoke it.
13284         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13285
13286 2010-06-13  Bruno Haible  <bruno@clisp.org>
13287
13288         gnulib-tool: Align code of func_import and func_create_testdir.
13289         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13290         specified_modules.
13291
13292 2010-06-12  Jim Meyering  <meyering@redhat.com>
13293
13294         test-inttostr: avoid spurious failure on Solaris 9
13295         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13296         to accept "%ju".  Reported by Bruno Haible.
13297
13298 2010-06-11  Jim Meyering  <meyering@redhat.com>
13299
13300         test-sys_socket: mark variables as used more readably
13301         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13302         as "used" explicitly via (void) statement casts.  This is more
13303         readable than using them in an artificial return expression.
13304         Suggestion from Bruno Haible.
13305
13306 2010-06-11  Bruno Haible  <bruno@clisp.org>
13307
13308         Avoid some more warnings from "gcc -Wwrite-strings".
13309         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13310         to 'const char *'.
13311         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13312         * tests/test-c-strcasestr.c (main): Likewise.
13313         * tests/test-mbscasestr1.c (main): Likewise.
13314         * tests/test-mbscasestr2.c (main): Likewise.
13315         * tests/test-memmem.c (main): Likewise.
13316         * tests/test-strstr.c (main): Likewise.
13317         * tests/test-strcasestr.c (main): Likewise.
13318
13319 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13320
13321         init.sh: change framework_failure_ to fail with status 99, not 1
13322         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13323         automake's parallel-tests rule that this is an unexpected failure,
13324         even if the test is listed in XFAIL_TESTS.
13325
13326 2010-06-11  Jim Meyering  <meyering@redhat.com>
13327
13328         test-inttostr: avoid warnings about 4-6KB literal strings
13329         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13330         Include "macros.h", for its definition of ASSERT.
13331         (CK): s/assert/ASSERT/
13332         * modules/inttostr-tests (Files): Add macros.h.
13333
13334         init.sh: don't use $ME_ or skip_ before they are defined
13335         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13336         their first uses.  Also hoist their companions: warn_, fail_,
13337         framework_failure_, $stderr_fileno.  Prompted by a patch from
13338         Stefano Lattarini.
13339
13340         test-sys_socket: avoid set-but-not-used warnings from gcc
13341         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13342         avoid warning about set-but-not-used variables.
13343
13344         test-xvasprintf: avoid 'const' discard warnings
13345         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13346         "const" when assigning from literal strings.
13347         (test_xasprintf): Add "void" in function argument list to placate
13348         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13349
13350         tests: avoid compilation warnings in argmatch and exclude tests...
13351         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13352         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13353         Since it always exits, declare with the "noreturn" attribute.
13354         * tests/test-argmatch.c: Likewise.
13355
13356         tests: avoid 'const' discard warnings in mbsstr tests
13357         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13358         * tests/test-mbsstr2.c (main): Likewise.
13359
13360         test-verify: avoid warning from gcc's -Wmissing-declarations
13361         * tests/test-verify.c (function): Declare to be static.
13362
13363         test-inttostr.c: include <string.h> for use of strcmp
13364         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13365
13366         test-linkat: avoid failed assertion on "other" architectures
13367         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13368         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13369         sparc: https://bugs.launchpad.net/bugs/591968
13370
13371 2010-06-11  Jim Meyering  <meyering@redhat.com>
13372
13373         printf.m4: avoid autoconf's "Expanded Before Required" warning
13374         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13375         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13376         autoconf warning.
13377
13378 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13379
13380         Replacement header templates are now named with ".in", not "_".
13381         * doc/gnulib-intro.texi: Correct.
13382
13383 2010-06-10  Jim Meyering  <meyering@redhat.com>
13384
13385         inttostr-tests: depend on snprintf, not snprintf-posix
13386         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13387         snprintf-posix, to avoid this aclocal failure:
13388           missing file gnulib-tests/vasnprintf.c
13389           configure.ac:45: error: expected source file, required through \
13390           AC_LIBSOURCES, not found
13391
13392 2010-06-10  Jim Meyering  <meyering@redhat.com>
13393
13394         inttostr: add a new function, inttostr, and tests
13395         The namesake function was not available.  The existence of the
13396         template file, inttostr.c makes its addition nontrivial.
13397         * lib/anytostr.c: Rename from inttostr.c.
13398         (anytostr): Rename from inttostr.
13399         * lib/inttostr.c: New file.
13400         * modules/inttostr (Files): Add anytostr.c.
13401         (Makefile.am): Set lib_SOURCES instead of ...
13402         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13403         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13404         * lib/offtostr.c: Likewise.
13405         * lib/uinttostr.c: Likewise.
13406         * lib/umaxtostr.c: Likewise.
13407         * modules/inttostr-tests: New file.
13408         * tests/test-inttostr.c: New file.  Test these functions.
13409
13410 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13411             Bruno Haible  <bruno@clisp.org>
13412
13413         Add "Extending Gnulib" chapter to manual.
13414         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13415         chapter.
13416         (Extending Gnulib): New chapter.
13417         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13418         chapter.
13419
13420 2010-06-09  Bruno Haible  <bruno@clisp.org>
13421
13422         Avoid relocwrapper link errors due to gnulib replacement functions.
13423         * lib/areadlink.c: Use the system's malloc, realloc functions.
13424         (areadlink): Set errno to ENOMEM explicitly.
13425         * modules/areadlink (Depends-on): Remove malloc-posix.
13426         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13427
13428 2010-06-09  Bruno Haible  <bruno@clisp.org>
13429
13430         Avoid relocwrapper link errors due to gnulib replacement functions.
13431         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13432         * lib/malloca.c: Likewise.
13433         * lib/relocatable.c: Likewise.
13434         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13435         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13436         * lib/setenv.c: Use the system's malloc, realloc functions.
13437         * lib/strerror.c: Use the system's sprintf function.
13438         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13439
13440 2010-06-04  Bruno Haible  <bruno@clisp.org>
13441
13442         Prefer documented low-level autoconf macro names.
13443         * m4/lib-link.m4: Use m4_translit instead of translit.
13444         * m4/environ.m4: Likewise.
13445         * m4/mathfunc.m4: Likewise.
13446         * m4/onceonly.m4: Likewise.
13447         * m4/stdint.m4: Likewise.
13448         Suggested by Eric Blake.
13449
13450 2010-06-04  Martin Lambers  <marlam@marlam.de>
13451             Bruno Haible  <bruno@clisp.org>
13452
13453         havelib: Allow library names with '+' characters.
13454         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13455         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13456
13457 2010-06-09  Bruno Haible  <bruno@clisp.org>
13458
13459         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13460         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13461         realloc failed.
13462
13463 2010-06-08  Peter Simons  <simons@cryp.to>
13464
13465         maint.mk: make the news-check rule more configurable
13466         * top/maint.mk (news-check-lines-spec): New variable.
13467         (news-check): Use "sed -n 1,10p" in place of "head".
13468
13469 2010-06-07  Jim Meyering  <meyering@redhat.com>
13470
13471         do-release-commit-and-tag: fix typo in --help
13472         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13473
13474         regex: avoid new dead-code warning with gcc-4.6.0
13475         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13476         if-block containing a while-loop.  It's been unused for at least
13477         5 years.
13478
13479 2010-06-05  Bruno Haible  <bruno@clisp.org>
13480
13481         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13482         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13483
13484 2010-06-04  Bruno Haible  <bruno@clisp.org>
13485
13486         Update to GNU gettext 0.18.1.
13487         * modules/gettext (configure.ac): Require gettext infrastructure from
13488         version 0.18.1.
13489
13490 2010-06-03  Bruno Haible  <bruno@clisp.org>
13491
13492         Don't use AC_LIBOBJ with file names in subdirectories.
13493         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13494         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13495         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13496         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13497         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13498         gl_LIBUNISTRING_LIBSOURCE.
13499         (Makefile.am): Augment lib_SOURCES here, conditionally.
13500         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13501
13502 2010-06-03  Bruno Haible  <bruno@clisp.org>
13503
13504         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13505         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13506         expansion does not end with a newline.
13507         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13508         unnecessary newline.
13509
13510 2010-06-03  Bruno Haible  <bruno@clisp.org>
13511
13512         Reduce dependencies.
13513         * tests/test-quotearg.h: New file, extracted from
13514         tests/test-quotearg.c.
13515         * tests/test-quotearg-simple.c: New file, extracted from
13516         tests/test-quotearg.c.
13517         * tests/test-quotearg.c: Don't include <ctype.h>.
13518         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13519         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13520         use_quote_double_quotes, use_quotearg_colon): Moved to
13521         tests/test-quotearg.h.
13522         (results_g, flag_results, custom_quotes, custom_results): Moved
13523         to tests/test-quotearg-simple.c.
13524         (main): Moved the part that does not depend on gettext to
13525         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13526         performed.
13527         * modules/quotearg-simple: New file.
13528         * modules/quotearg-simple-tests: New file.
13529         * modules/quotearg (Depends-on): Add quotearg-simple.
13530         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13531         (Files): Add tests/test-quotearg.h.
13532         Reported by Paolo Bonzini.
13533
13534 2010-06-03  Bruno Haible  <bruno@clisp.org>
13535
13536         Reduce dependencies.
13537         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13538
13539 2010-06-03  Bruno Haible  <bruno@clisp.org>
13540
13541         time: Undefine more broken macros.
13542         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13543         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13544         Reported by Eric Blake.
13545
13546 2010-06-03  Bruno Haible  <bruno@clisp.org>
13547
13548         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13549         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13550         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13551         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13552         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13553         Reported by Ludovic Courtès <ludo@gnu.org>.
13554
13555 2010-06-02  Eric Blake  <eblake@redhat.com>
13556
13557         time: work with mingw + pthreads-win32 library
13558         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13559         if timespec is defined only in pthread.h.
13560         * modules/time (Makefile.am): Substitute it.
13561         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13562         <pthread.h>, when needed.
13563         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13564         from the library.
13565
13566 2010-05-31  Bruno Haible  <bruno@clisp.org>
13567
13568         Avoid expanding two macros in the wrong order.
13569         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13570         gl_LIBUNISTRING if it is defined.
13571         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13572         autoconf >= 2.64.
13573         Reported by Ludovic Courtès <ludo@gnu.org>.
13574
13575 2010-05-27  Jim Meyering  <meyering@redhat.com>
13576
13577         maint.mk: also prohibit "#undef" of always-defined symbols
13578         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13579         Allow more than one space before the symbol name.
13580         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13581         the regexp uses alternation.
13582
13583 2010-05-26  Eric Blake  <eblake@redhat.com>
13584
13585         maint.mk: avoid echo -e
13586         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13587         Convert all uses of echo -* to printf.
13588         Reported by Matthias Bolte.
13589
13590 2010-05-25  Bruno Haible  <bruno@clisp.org>
13591
13592         Update to GNU gettext 0.18, part 2.
13593         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13594         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13595
13596 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13597
13598         Add missing include in test-pwrite.c.
13599         * tests/test-pwrite.c: Include string.h, for strcmp.
13600
13601 2010-05-24  Bruno Haible  <bruno@clisp.org>
13602
13603         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13604
13605 2010-05-24  Bruno Haible  <bruno@clisp.org>
13606
13607         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13608         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13609         iconveh_error argument.
13610         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13611         U_STRCONV_TO_LOCALE.
13612         * lib/unistr/u16-strcoll.c: Likewise.
13613         * lib/unistr/u32-strcoll.c: Likewise.
13614         * modules/unistr/u8-strcoll (Depends-on): Add
13615         uniconv/u8-strconv-to-enc, localcharset. Remove
13616         uniconv/u8-strconv-to-locale.
13617         (configure.ac): Bump version number.
13618         * modules/unistr/u16-strcoll (Depends-on): Add
13619         uniconv/u16-strconv-to-enc, localcharset. Remove
13620         uniconv/u16-strconv-to-locale.
13621         (configure.ac): Bump version number.
13622         * modules/unistr/u32-strcoll (Depends-on): Add
13623         uniconv/u32-strconv-to-enc, localcharset. Remove
13624         uniconv/u32-strconv-to-locale.
13625         (configure.ac): Bump version number.
13626
13627 2010-05-24  Bruno Haible  <bruno@clisp.org>
13628
13629         Avoid a test failure on NetBSD 5.0.
13630         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13631         an iconv() bug.
13632
13633 2010-05-24  Bruno Haible  <bruno@clisp.org>
13634
13635         Adjust #include directive style.
13636         * modules/regex (Includes): Recommend to write <regex.h>.
13637
13638 2010-05-24  Bruno Haible  <bruno@clisp.org>
13639
13640         regex: Don't require alloca.
13641         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13642         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13643         only inside if (0).
13644
13645 2010-05-23  Jim Meyering  <meyering@redhat.com>
13646
13647         test-renameat.c: include <sys/stat.h>
13648         * tests/test-renameat.c: Include <sys/stat.h>; required for
13649         definition of S_IS* macros.
13650
13651 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13652
13653         Update maintainer documentation for 'relocatable-prog' module.
13654         * doc/relocatable-maint.texi: Update.
13655         Comments by Bruno Haible.
13656
13657 2010-05-23  Bruno Haible  <bruno@clisp.org>
13658
13659         git-merge-changelog: Enable --split-merged-entry by default.
13660         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13661         (usage): Don't mention this option any more.
13662         Reported by Ralf Wildenhues.
13663
13664 2010-05-23  Jim Meyering  <meyering@redhat.com>
13665
13666         test-pwrite: do not leave behind a test file named "out"
13667         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13668         The trivial-looking use of init.sh is really necessary.
13669         It ensures that the temporary file, "out", is created in
13670         a temporary directory, and removed upon termination.
13671         * tests/test-pwrite.sh: Re-add file.
13672         * modules/pwrite-tests: Reference it.
13673
13674 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13675
13676         Fix output redirection buglet in init.sh.
13677         * tests/init.sh: Fix redirection of stderr.
13678
13679 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13680
13681         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13682
13683 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13684
13685         * modules/valgrind-tests: New file.
13686         * m4/valgrind-tests.m4: New file.
13687         * doc/valgrind-tests.texi: New file.
13688         * doc/gnulib.texi (Running self-tests under valgrind): New
13689         section.
13690
13691 2010-05-19  Bruno Haible  <bruno@clisp.org>
13692
13693         Clean up dead code in recent commit.
13694         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13695         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13696         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13697         Suggested by Paolo Bonzini.
13698
13699 2010-05-19  Bruno Haible  <bruno@clisp.org>
13700
13701         Avoid valgrind error reports from libunistring.
13702         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13703         * modules/libunistring (Files): Add it.
13704         * modules/libunistring-optional (Files): Likewise.
13705
13706 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13707             Bruno Haible  <bruno@clisp.org>
13708
13709         New module 'libunistring-optional'.
13710         * modules/libunistring-optional: New file.
13711         * m4/libunistring-base.m4: New file.
13712         * m4/libunistring-optional.m4: New file.
13713         * lib/unicase.in.h: Renamed from lib/unicase.h.
13714         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13715         * lib/unictype.in.h: Renamed from lib/unictype.h.
13716         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13717         * lib/uniname.in.h: Renamed from lib/uniname.h.
13718         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13719         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13720         * lib/unistr.in.h: Renamed from lib/unistr.h.
13721         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13722         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13723         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13724         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13725         gl_LIBUNISTRING. If the library was found, determine the installed
13726         version and set LIBUNISTRING_VERSION.
13727         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13728         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13729         handle a configuration option --with-included-libunistring.
13730         * modules/libunistring (Files): Add m4/absolute-header.m4.
13731         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13732         Add m4/libunistring-base.m4.
13733         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13734         (Makefile.am): Build unicase.h from unicase.in.h.
13735         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13736         Add m4/libunistring-base.m4.
13737         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13738         (Makefile.am): Build uniconv.h from uniconv.in.h.
13739         * modules/unictype/base (Files): Use unictype.in.h instead of
13740         unictype.h. Add m4/libunistring-base.m4.
13741         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13742         (Makefile.am): Build unictype.h from unictype.in.h.
13743         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13744         Add m4/libunistring-base.m4.
13745         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13746         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13747         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13748         Add m4/libunistring-base.m4.
13749         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13750         (Makefile.am): Build uniname.h from uniname.in.h.
13751         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13752         Add m4/libunistring-base.m4.
13753         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13754         (Makefile.am): Build uninorm.h from uninorm.in.h.
13755         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13756         unistdio.h. Add m4/libunistring-base.m4.
13757         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13758         (Makefile.am): Build unistdio.h from unistdio.in.h.
13759         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13760         Add m4/libunistring-base.m4.
13761         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13762         (Makefile.am): Build unistr.h from unistr.in.h.
13763         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13764         Add m4/libunistring-base.m4.
13765         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13766         (Makefile.am): Build unitypes.h from unitypes.in.h.
13767         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13768         Add m4/libunistring-base.m4.
13769         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13770         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13771         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13772         uniwidth.h. Add m4/libunistring-base.m4.
13773         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13774         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13775         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13776         instead of augmenting lib_SOURCES.
13777         * modules/unicase/empty-suffix-context: Likewise.
13778         * modules/unicase/locale-language: Likewise.
13779         * modules/unicase/tolower: Likewise.
13780         * modules/unicase/totitle: Likewise.
13781         * modules/unicase/toupper: Likewise.
13782         * modules/unicase/u8-casecmp: Likewise.
13783         * modules/unicase/u8-casecoll: Likewise.
13784         * modules/unicase/u8-casefold: Likewise.
13785         * modules/unicase/u8-casexfrm: Likewise.
13786         * modules/unicase/u8-ct-casefold: Likewise.
13787         * modules/unicase/u8-ct-tolower: Likewise.
13788         * modules/unicase/u8-ct-totitle: Likewise.
13789         * modules/unicase/u8-ct-toupper: Likewise.
13790         * modules/unicase/u8-is-cased: Likewise.
13791         * modules/unicase/u8-is-casefolded: Likewise.
13792         * modules/unicase/u8-is-lowercase: Likewise.
13793         * modules/unicase/u8-is-titlecase: Likewise.
13794         * modules/unicase/u8-is-uppercase: Likewise.
13795         * modules/unicase/u8-prefix-context: Likewise.
13796         * modules/unicase/u8-suffix-context: Likewise.
13797         * modules/unicase/u8-tolower: Likewise.
13798         * modules/unicase/u8-totitle: Likewise.
13799         * modules/unicase/u8-toupper: Likewise.
13800         * modules/unicase/u16-casecmp: Likewise.
13801         * modules/unicase/u16-casecoll: Likewise.
13802         * modules/unicase/u16-casefold: Likewise.
13803         * modules/unicase/u16-casexfrm: Likewise.
13804         * modules/unicase/u16-ct-casefold: Likewise.
13805         * modules/unicase/u16-ct-tolower: Likewise.
13806         * modules/unicase/u16-ct-totitle: Likewise.
13807         * modules/unicase/u16-ct-toupper: Likewise.
13808         * modules/unicase/u16-is-cased: Likewise.
13809         * modules/unicase/u16-is-casefolded: Likewise.
13810         * modules/unicase/u16-is-lowercase: Likewise.
13811         * modules/unicase/u16-is-titlecase: Likewise.
13812         * modules/unicase/u16-is-uppercase: Likewise.
13813         * modules/unicase/u16-prefix-context: Likewise.
13814         * modules/unicase/u16-suffix-context: Likewise.
13815         * modules/unicase/u16-tolower: Likewise.
13816         * modules/unicase/u16-totitle: Likewise.
13817         * modules/unicase/u16-toupper: Likewise.
13818         * modules/unicase/u32-casecmp: Likewise.
13819         * modules/unicase/u32-casecoll: Likewise.
13820         * modules/unicase/u32-casefold: Likewise.
13821         * modules/unicase/u32-casexfrm: Likewise.
13822         * modules/unicase/u32-ct-casefold: Likewise.
13823         * modules/unicase/u32-ct-tolower: Likewise.
13824         * modules/unicase/u32-ct-totitle: Likewise.
13825         * modules/unicase/u32-ct-toupper: Likewise.
13826         * modules/unicase/u32-is-cased: Likewise.
13827         * modules/unicase/u32-is-casefolded: Likewise.
13828         * modules/unicase/u32-is-lowercase: Likewise.
13829         * modules/unicase/u32-is-titlecase: Likewise.
13830         * modules/unicase/u32-is-uppercase: Likewise.
13831         * modules/unicase/u32-prefix-context: Likewise.
13832         * modules/unicase/u32-suffix-context: Likewise.
13833         * modules/unicase/u32-tolower: Likewise.
13834         * modules/unicase/u32-totitle: Likewise.
13835         * modules/unicase/u32-toupper: Likewise.
13836         * modules/unicase/ulc-casecmp: Likewise.
13837         * modules/unicase/ulc-casecoll: Likewise.
13838         * modules/unicase/ulc-casexfrm: Likewise.
13839         * modules/uniconv/u8-conv-from-enc: Likewise.
13840         * modules/uniconv/u8-conv-to-enc: Likewise.
13841         * modules/uniconv/u8-strconv-from-enc: Likewise.
13842         * modules/uniconv/u8-strconv-from-locale: Likewise.
13843         * modules/uniconv/u8-strconv-to-enc: Likewise.
13844         * modules/uniconv/u8-strconv-to-locale: Likewise.
13845         * modules/uniconv/u16-conv-from-enc: Likewise.
13846         * modules/uniconv/u16-conv-to-enc: Likewise.
13847         * modules/uniconv/u16-strconv-from-enc: Likewise.
13848         * modules/uniconv/u16-strconv-from-locale: Likewise.
13849         * modules/uniconv/u16-strconv-to-enc: Likewise.
13850         * modules/uniconv/u16-strconv-to-locale: Likewise.
13851         * modules/uniconv/u32-conv-from-enc: Likewise.
13852         * modules/uniconv/u32-conv-to-enc: Likewise.
13853         * modules/uniconv/u32-strconv-from-enc: Likewise.
13854         * modules/uniconv/u32-strconv-from-locale: Likewise.
13855         * modules/uniconv/u32-strconv-to-enc: Likewise.
13856         * modules/uniconv/u32-strconv-to-locale: Likewise.
13857         * modules/unictype/bidicategory-byname: Likewise.
13858         * modules/unictype/bidicategory-name: Likewise.
13859         * modules/unictype/bidicategory-of: Likewise.
13860         * modules/unictype/bidicategory-test: Likewise.
13861         * modules/unictype/block-list: Likewise.
13862         * modules/unictype/block-test: Likewise.
13863         * modules/unictype/category-C: Likewise.
13864         * modules/unictype/category-Cc: Likewise.
13865         * modules/unictype/category-Cf: Likewise.
13866         * modules/unictype/category-Cn: Likewise.
13867         * modules/unictype/category-Co: Likewise.
13868         * modules/unictype/category-Cs: Likewise.
13869         * modules/unictype/category-L: Likewise.
13870         * modules/unictype/category-Ll: Likewise.
13871         * modules/unictype/category-Lm: Likewise.
13872         * modules/unictype/category-Lo: Likewise.
13873         * modules/unictype/category-Lt: Likewise.
13874         * modules/unictype/category-Lu: Likewise.
13875         * modules/unictype/category-M: Likewise.
13876         * modules/unictype/category-Mc: Likewise.
13877         * modules/unictype/category-Me: Likewise.
13878         * modules/unictype/category-Mn: Likewise.
13879         * modules/unictype/category-N: Likewise.
13880         * modules/unictype/category-Nd: Likewise.
13881         * modules/unictype/category-Nl: Likewise.
13882         * modules/unictype/category-No: Likewise.
13883         * modules/unictype/category-P: Likewise.
13884         * modules/unictype/category-Pc: Likewise.
13885         * modules/unictype/category-Pd: Likewise.
13886         * modules/unictype/category-Pe: Likewise.
13887         * modules/unictype/category-Pf: Likewise.
13888         * modules/unictype/category-Pi: Likewise.
13889         * modules/unictype/category-Po: Likewise.
13890         * modules/unictype/category-Ps: Likewise.
13891         * modules/unictype/category-S: Likewise.
13892         * modules/unictype/category-Sc: Likewise.
13893         * modules/unictype/category-Sk: Likewise.
13894         * modules/unictype/category-Sm: Likewise.
13895         * modules/unictype/category-So: Likewise.
13896         * modules/unictype/category-Z: Likewise.
13897         * modules/unictype/category-Zl: Likewise.
13898         * modules/unictype/category-Zp: Likewise.
13899         * modules/unictype/category-Zs: Likewise.
13900         * modules/unictype/category-and: Likewise.
13901         * modules/unictype/category-and-not: Likewise.
13902         * modules/unictype/category-byname: Likewise.
13903         * modules/unictype/category-name: Likewise.
13904         * modules/unictype/category-none: Likewise.
13905         * modules/unictype/category-of: Likewise.
13906         * modules/unictype/category-or: Likewise.
13907         * modules/unictype/category-test: Likewise.
13908         * modules/unictype/combining-class: Likewise.
13909         * modules/unictype/ctype-alnum: Likewise.
13910         * modules/unictype/ctype-alpha: Likewise.
13911         * modules/unictype/ctype-blank: Likewise.
13912         * modules/unictype/ctype-cntrl: Likewise.
13913         * modules/unictype/ctype-digit: Likewise.
13914         * modules/unictype/ctype-graph: Likewise.
13915         * modules/unictype/ctype-lower: Likewise.
13916         * modules/unictype/ctype-print: Likewise.
13917         * modules/unictype/ctype-punct: Likewise.
13918         * modules/unictype/ctype-space: Likewise.
13919         * modules/unictype/ctype-upper: Likewise.
13920         * modules/unictype/ctype-xdigit: Likewise.
13921         * modules/unictype/decimal-digit: Likewise.
13922         * modules/unictype/digit: Likewise.
13923         * modules/unictype/mirror: Likewise.
13924         * modules/unictype/numeric: Likewise.
13925         * modules/unictype/property-alphabetic: Likewise.
13926         * modules/unictype/property-ascii-hex-digit: Likewise.
13927         * modules/unictype/property-bidi-arabic-digit: Likewise.
13928         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13929         * modules/unictype/property-bidi-block-separator: Likewise.
13930         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13931         * modules/unictype/property-bidi-common-separator: Likewise.
13932         * modules/unictype/property-bidi-control: Likewise.
13933         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13934         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13935         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13936         * modules/unictype/property-bidi-european-digit: Likewise.
13937         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13938         * modules/unictype/property-bidi-left-to-right: Likewise.
13939         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13940         * modules/unictype/property-bidi-other-neutral: Likewise.
13941         * modules/unictype/property-bidi-pdf: Likewise.
13942         * modules/unictype/property-bidi-segment-separator: Likewise.
13943         * modules/unictype/property-bidi-whitespace: Likewise.
13944         * modules/unictype/property-byname: Likewise.
13945         * modules/unictype/property-combining: Likewise.
13946         * modules/unictype/property-composite: Likewise.
13947         * modules/unictype/property-currency-symbol: Likewise.
13948         * modules/unictype/property-dash: Likewise.
13949         * modules/unictype/property-decimal-digit: Likewise.
13950         * modules/unictype/property-default-ignorable-code-point: Likewise.
13951         * modules/unictype/property-deprecated: Likewise.
13952         * modules/unictype/property-diacritic: Likewise.
13953         * modules/unictype/property-extender: Likewise.
13954         * modules/unictype/property-format-control: Likewise.
13955         * modules/unictype/property-grapheme-base: Likewise.
13956         * modules/unictype/property-grapheme-extend: Likewise.
13957         * modules/unictype/property-grapheme-link: Likewise.
13958         * modules/unictype/property-hex-digit: Likewise.
13959         * modules/unictype/property-hyphen: Likewise.
13960         * modules/unictype/property-id-continue: Likewise.
13961         * modules/unictype/property-id-start: Likewise.
13962         * modules/unictype/property-ideographic: Likewise.
13963         * modules/unictype/property-ids-binary-operator: Likewise.
13964         * modules/unictype/property-ids-trinary-operator: Likewise.
13965         * modules/unictype/property-ignorable-control: Likewise.
13966         * modules/unictype/property-iso-control: Likewise.
13967         * modules/unictype/property-join-control: Likewise.
13968         * modules/unictype/property-left-of-pair: Likewise.
13969         * modules/unictype/property-line-separator: Likewise.
13970         * modules/unictype/property-logical-order-exception: Likewise.
13971         * modules/unictype/property-lowercase: Likewise.
13972         * modules/unictype/property-math: Likewise.
13973         * modules/unictype/property-non-break: Likewise.
13974         * modules/unictype/property-not-a-character: Likewise.
13975         * modules/unictype/property-numeric: Likewise.
13976         * modules/unictype/property-other-alphabetic: Likewise.
13977         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13978         * modules/unictype/property-other-grapheme-extend: Likewise.
13979         * modules/unictype/property-other-id-continue: Likewise.
13980         * modules/unictype/property-other-id-start: Likewise.
13981         * modules/unictype/property-other-lowercase: Likewise.
13982         * modules/unictype/property-other-math: Likewise.
13983         * modules/unictype/property-other-uppercase: Likewise.
13984         * modules/unictype/property-paired-punctuation: Likewise.
13985         * modules/unictype/property-paragraph-separator: Likewise.
13986         * modules/unictype/property-pattern-syntax: Likewise.
13987         * modules/unictype/property-pattern-white-space: Likewise.
13988         * modules/unictype/property-private-use: Likewise.
13989         * modules/unictype/property-punctuation: Likewise.
13990         * modules/unictype/property-quotation-mark: Likewise.
13991         * modules/unictype/property-radical: Likewise.
13992         * modules/unictype/property-sentence-terminal: Likewise.
13993         * modules/unictype/property-soft-dotted: Likewise.
13994         * modules/unictype/property-space: Likewise.
13995         * modules/unictype/property-terminal-punctuation: Likewise.
13996         * modules/unictype/property-test: Likewise.
13997         * modules/unictype/property-titlecase: Likewise.
13998         * modules/unictype/property-unassigned-code-value: Likewise.
13999         * modules/unictype/property-unified-ideograph: Likewise.
14000         * modules/unictype/property-uppercase: Likewise.
14001         * modules/unictype/property-variation-selector: Likewise.
14002         * modules/unictype/property-white-space: Likewise.
14003         * modules/unictype/property-xid-continue: Likewise.
14004         * modules/unictype/property-xid-start: Likewise.
14005         * modules/unictype/property-zero-width: Likewise.
14006         * modules/unictype/scripts: Likewise.
14007         * modules/unictype/syntax-c-ident: Likewise.
14008         * modules/unictype/syntax-c-whitespace: Likewise.
14009         * modules/unictype/syntax-java-ident: Likewise.
14010         * modules/unictype/syntax-java-whitespace: Likewise.
14011         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14012         * modules/unilbrk/u8-width-linebreaks: Likewise.
14013         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14014         * modules/unilbrk/u16-width-linebreaks: Likewise.
14015         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14016         * modules/unilbrk/u32-width-linebreaks: Likewise.
14017         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14018         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14019         * modules/uniname/uniname: Likewise.
14020         * modules/uninorm/canonical-decomposition: Likewise.
14021         * modules/uninorm/composition: Likewise.
14022         * modules/uninorm/decomposing-form: Likewise.
14023         * modules/uninorm/decomposition: Likewise.
14024         * modules/uninorm/filter: Likewise.
14025         * modules/uninorm/nfc: Likewise.
14026         * modules/uninorm/nfd: Likewise.
14027         * modules/uninorm/nfkc: Likewise.
14028         * modules/uninorm/nfkd: Likewise.
14029         * modules/uninorm/u8-normalize: Likewise.
14030         * modules/uninorm/u8-normcmp: Likewise.
14031         * modules/uninorm/u8-normcoll: Likewise.
14032         * modules/uninorm/u8-normxfrm: Likewise.
14033         * modules/uninorm/u16-normalize: Likewise.
14034         * modules/uninorm/u16-normcmp: Likewise.
14035         * modules/uninorm/u16-normcoll: Likewise.
14036         * modules/uninorm/u16-normxfrm: Likewise.
14037         * modules/uninorm/u32-normalize: Likewise.
14038         * modules/uninorm/u32-normcmp: Likewise.
14039         * modules/uninorm/u32-normcoll: Likewise.
14040         * modules/uninorm/u32-normxfrm: Likewise.
14041         * modules/unistdio/u8-asnprintf: Likewise.
14042         * modules/unistdio/u8-asprintf: Likewise.
14043         * modules/unistdio/u8-snprintf: Likewise.
14044         * modules/unistdio/u8-sprintf: Likewise.
14045         * modules/unistdio/u8-u8-asnprintf: Likewise.
14046         * modules/unistdio/u8-u8-asprintf: Likewise.
14047         * modules/unistdio/u8-u8-snprintf: Likewise.
14048         * modules/unistdio/u8-u8-sprintf: Likewise.
14049         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14050         * modules/unistdio/u8-u8-vasprintf: Likewise.
14051         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14052         * modules/unistdio/u8-u8-vsprintf: Likewise.
14053         * modules/unistdio/u8-vasnprintf: Likewise.
14054         * modules/unistdio/u8-vasprintf: Likewise.
14055         * modules/unistdio/u8-vsnprintf: Likewise.
14056         * modules/unistdio/u8-vsprintf: Likewise.
14057         * modules/unistdio/u16-asnprintf: Likewise.
14058         * modules/unistdio/u16-asprintf: Likewise.
14059         * modules/unistdio/u16-snprintf: Likewise.
14060         * modules/unistdio/u16-sprintf: Likewise.
14061         * modules/unistdio/u16-u16-asnprintf: Likewise.
14062         * modules/unistdio/u16-u16-asprintf: Likewise.
14063         * modules/unistdio/u16-u16-snprintf: Likewise.
14064         * modules/unistdio/u16-u16-sprintf: Likewise.
14065         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14066         * modules/unistdio/u16-u16-vasprintf: Likewise.
14067         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14068         * modules/unistdio/u16-u16-vsprintf: Likewise.
14069         * modules/unistdio/u16-vasnprintf: Likewise.
14070         * modules/unistdio/u16-vasprintf: Likewise.
14071         * modules/unistdio/u16-vsnprintf: Likewise.
14072         * modules/unistdio/u16-vsprintf: Likewise.
14073         * modules/unistdio/u32-asnprintf: Likewise.
14074         * modules/unistdio/u32-asprintf: Likewise.
14075         * modules/unistdio/u32-snprintf: Likewise.
14076         * modules/unistdio/u32-sprintf: Likewise.
14077         * modules/unistdio/u32-u32-asnprintf: Likewise.
14078         * modules/unistdio/u32-u32-asprintf: Likewise.
14079         * modules/unistdio/u32-u32-snprintf: Likewise.
14080         * modules/unistdio/u32-u32-sprintf: Likewise.
14081         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14082         * modules/unistdio/u32-u32-vasprintf: Likewise.
14083         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14084         * modules/unistdio/u32-u32-vsprintf: Likewise.
14085         * modules/unistdio/u32-vasnprintf: Likewise.
14086         * modules/unistdio/u32-vasprintf: Likewise.
14087         * modules/unistdio/u32-vsnprintf: Likewise.
14088         * modules/unistdio/u32-vsprintf: Likewise.
14089         * modules/unistdio/ulc-asnprintf: Likewise.
14090         * modules/unistdio/ulc-asprintf: Likewise.
14091         * modules/unistdio/ulc-fprintf: Likewise.
14092         * modules/unistdio/ulc-snprintf: Likewise.
14093         * modules/unistdio/ulc-sprintf: Likewise.
14094         * modules/unistdio/ulc-vasnprintf: Likewise.
14095         * modules/unistdio/ulc-vasprintf: Likewise.
14096         * modules/unistdio/ulc-vfprintf: Likewise.
14097         * modules/unistdio/ulc-vsnprintf: Likewise.
14098         * modules/unistdio/ulc-vsprintf: Likewise.
14099         * modules/unistr/u8-check: Likewise.
14100         * modules/unistr/u8-chr: Likewise.
14101         * modules/unistr/u8-cmp: Likewise.
14102         * modules/unistr/u8-cmp2: Likewise.
14103         * modules/unistr/u8-cpy: Likewise.
14104         * modules/unistr/u8-cpy-alloc: Likewise.
14105         * modules/unistr/u8-endswith: Likewise.
14106         * modules/unistr/u8-mblen: Likewise.
14107         * modules/unistr/u8-mbsnlen: Likewise.
14108         * modules/unistr/u8-mbtouc: Likewise.
14109         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14110         * modules/unistr/u8-mbtoucr: Likewise.
14111         * modules/unistr/u8-move: Likewise.
14112         * modules/unistr/u8-next: Likewise.
14113         * modules/unistr/u8-prev: Likewise.
14114         * modules/unistr/u8-set: Likewise.
14115         * modules/unistr/u8-startswith: Likewise.
14116         * modules/unistr/u8-stpcpy: Likewise.
14117         * modules/unistr/u8-stpncpy: Likewise.
14118         * modules/unistr/u8-strcat: Likewise.
14119         * modules/unistr/u8-strchr: Likewise.
14120         * modules/unistr/u8-strcmp: Likewise.
14121         * modules/unistr/u8-strcoll: Likewise.
14122         * modules/unistr/u8-strcpy: Likewise.
14123         * modules/unistr/u8-strcspn: Likewise.
14124         * modules/unistr/u8-strdup: Likewise.
14125         * modules/unistr/u8-strlen: Likewise.
14126         * modules/unistr/u8-strmblen: Likewise.
14127         * modules/unistr/u8-strmbtouc: Likewise.
14128         * modules/unistr/u8-strncat: Likewise.
14129         * modules/unistr/u8-strncmp: Likewise.
14130         * modules/unistr/u8-strncpy: Likewise.
14131         * modules/unistr/u8-strnlen: Likewise.
14132         * modules/unistr/u8-strpbrk: Likewise.
14133         * modules/unistr/u8-strrchr: Likewise.
14134         * modules/unistr/u8-strspn: Likewise.
14135         * modules/unistr/u8-strstr: Likewise.
14136         * modules/unistr/u8-strtok: Likewise.
14137         * modules/unistr/u8-to-u16: Likewise.
14138         * modules/unistr/u8-to-u32: Likewise.
14139         * modules/unistr/u8-uctomb: Likewise.
14140         * modules/unistr/u16-check: Likewise.
14141         * modules/unistr/u16-chr: Likewise.
14142         * modules/unistr/u16-cmp: Likewise.
14143         * modules/unistr/u16-cmp2: Likewise.
14144         * modules/unistr/u16-cpy: Likewise.
14145         * modules/unistr/u16-cpy-alloc: Likewise.
14146         * modules/unistr/u16-endswith: Likewise.
14147         * modules/unistr/u16-mblen: Likewise.
14148         * modules/unistr/u16-mbsnlen: Likewise.
14149         * modules/unistr/u16-mbtouc: Likewise.
14150         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14151         * modules/unistr/u16-mbtoucr: Likewise.
14152         * modules/unistr/u16-move: Likewise.
14153         * modules/unistr/u16-next: Likewise.
14154         * modules/unistr/u16-prev: Likewise.
14155         * modules/unistr/u16-set: Likewise.
14156         * modules/unistr/u16-startswith: Likewise.
14157         * modules/unistr/u16-stpcpy: Likewise.
14158         * modules/unistr/u16-stpncpy: Likewise.
14159         * modules/unistr/u16-strcat: Likewise.
14160         * modules/unistr/u16-strchr: Likewise.
14161         * modules/unistr/u16-strcmp: Likewise.
14162         * modules/unistr/u16-strcoll: Likewise.
14163         * modules/unistr/u16-strcpy: Likewise.
14164         * modules/unistr/u16-strcspn: Likewise.
14165         * modules/unistr/u16-strdup: Likewise.
14166         * modules/unistr/u16-strlen: Likewise.
14167         * modules/unistr/u16-strmblen: Likewise.
14168         * modules/unistr/u16-strmbtouc: Likewise.
14169         * modules/unistr/u16-strncat: Likewise.
14170         * modules/unistr/u16-strncmp: Likewise.
14171         * modules/unistr/u16-strncpy: Likewise.
14172         * modules/unistr/u16-strnlen: Likewise.
14173         * modules/unistr/u16-strpbrk: Likewise.
14174         * modules/unistr/u16-strrchr: Likewise.
14175         * modules/unistr/u16-strspn: Likewise.
14176         * modules/unistr/u16-strstr: Likewise.
14177         * modules/unistr/u16-strtok: Likewise.
14178         * modules/unistr/u16-to-u32: Likewise.
14179         * modules/unistr/u16-to-u8: Likewise.
14180         * modules/unistr/u16-uctomb: Likewise.
14181         * modules/unistr/u32-check: Likewise.
14182         * modules/unistr/u32-chr: Likewise.
14183         * modules/unistr/u32-cmp: Likewise.
14184         * modules/unistr/u32-cmp2: Likewise.
14185         * modules/unistr/u32-cpy: Likewise.
14186         * modules/unistr/u32-cpy-alloc: Likewise.
14187         * modules/unistr/u32-endswith: Likewise.
14188         * modules/unistr/u32-mblen: Likewise.
14189         * modules/unistr/u32-mbsnlen: Likewise.
14190         * modules/unistr/u32-mbtouc: Likewise.
14191         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14192         * modules/unistr/u32-mbtoucr: Likewise.
14193         * modules/unistr/u32-move: Likewise.
14194         * modules/unistr/u32-next: Likewise.
14195         * modules/unistr/u32-prev: Likewise.
14196         * modules/unistr/u32-set: Likewise.
14197         * modules/unistr/u32-startswith: Likewise.
14198         * modules/unistr/u32-stpcpy: Likewise.
14199         * modules/unistr/u32-stpncpy: Likewise.
14200         * modules/unistr/u32-strcat: Likewise.
14201         * modules/unistr/u32-strchr: Likewise.
14202         * modules/unistr/u32-strcmp: Likewise.
14203         * modules/unistr/u32-strcoll: Likewise.
14204         * modules/unistr/u32-strcpy: Likewise.
14205         * modules/unistr/u32-strcspn: Likewise.
14206         * modules/unistr/u32-strdup: Likewise.
14207         * modules/unistr/u32-strlen: Likewise.
14208         * modules/unistr/u32-strmblen: Likewise.
14209         * modules/unistr/u32-strmbtouc: Likewise.
14210         * modules/unistr/u32-strncat: Likewise.
14211         * modules/unistr/u32-strncmp: Likewise.
14212         * modules/unistr/u32-strncpy: Likewise.
14213         * modules/unistr/u32-strnlen: Likewise.
14214         * modules/unistr/u32-strpbrk: Likewise.
14215         * modules/unistr/u32-strrchr: Likewise.
14216         * modules/unistr/u32-strspn: Likewise.
14217         * modules/unistr/u32-strstr: Likewise.
14218         * modules/unistr/u32-strtok: Likewise.
14219         * modules/unistr/u32-to-u16: Likewise.
14220         * modules/unistr/u32-to-u8: Likewise.
14221         * modules/unistr/u32-uctomb: Likewise.
14222         * modules/uniwbrk/u8-wordbreaks: Likewise.
14223         * modules/uniwbrk/u16-wordbreaks: Likewise.
14224         * modules/uniwbrk/u32-wordbreaks: Likewise.
14225         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14226         * modules/uniwbrk/wordbreak-property: Likewise.
14227         * modules/uniwidth/u8-strwidth: Likewise.
14228         * modules/uniwidth/u8-width: Likewise.
14229         * modules/uniwidth/u16-strwidth: Likewise.
14230         * modules/uniwidth/u16-width: Likewise.
14231         * modules/uniwidth/u32-strwidth: Likewise.
14232         * modules/uniwidth/u32-width: Likewise.
14233         * modules/uniwidth/width: Likewise.
14234         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14235         with $(LIBUNISTRING).
14236         * modules/unicase/ignorable-tests: Likewise.
14237         * modules/unicase/locale-language-tests: Likewise.
14238         * modules/unicase/tolower-tests: Likewise.
14239         * modules/unicase/totitle-tests: Likewise.
14240         * modules/unicase/toupper-tests: Likewise.
14241         * modules/unicase/u8-casecmp-tests: Likewise.
14242         * modules/unicase/u8-casecoll-tests: Likewise.
14243         * modules/unicase/u8-casefold-tests: Likewise.
14244         * modules/unicase/u8-is-cased-tests: Likewise.
14245         * modules/unicase/u8-is-casefolded-tests: Likewise.
14246         * modules/unicase/u8-is-lowercase-tests: Likewise.
14247         * modules/unicase/u8-is-titlecase-tests: Likewise.
14248         * modules/unicase/u8-is-uppercase-tests: Likewise.
14249         * modules/unicase/u8-tolower-tests: Likewise.
14250         * modules/unicase/u8-totitle-tests: Likewise.
14251         * modules/unicase/u8-toupper-tests: Likewise.
14252         * modules/unicase/u16-casecmp-tests: Likewise.
14253         * modules/unicase/u16-casecoll-tests: Likewise.
14254         * modules/unicase/u16-casefold-tests: Likewise.
14255         * modules/unicase/u16-is-cased-tests: Likewise.
14256         * modules/unicase/u16-is-casefolded-tests: Likewise.
14257         * modules/unicase/u16-is-lowercase-tests: Likewise.
14258         * modules/unicase/u16-is-titlecase-tests: Likewise.
14259         * modules/unicase/u16-is-uppercase-tests: Likewise.
14260         * modules/unicase/u16-tolower-tests: Likewise.
14261         * modules/unicase/u16-totitle-tests: Likewise.
14262         * modules/unicase/u16-toupper-tests: Likewise.
14263         * modules/unicase/u32-casecmp-tests: Likewise.
14264         * modules/unicase/u32-casecoll-tests: Likewise.
14265         * modules/unicase/u32-casefold-tests: Likewise.
14266         * modules/unicase/u32-is-cased-tests: Likewise.
14267         * modules/unicase/u32-is-casefolded-tests: Likewise.
14268         * modules/unicase/u32-is-lowercase-tests: Likewise.
14269         * modules/unicase/u32-is-titlecase-tests: Likewise.
14270         * modules/unicase/u32-is-uppercase-tests: Likewise.
14271         * modules/unicase/u32-tolower-tests: Likewise.
14272         * modules/unicase/u32-totitle-tests: Likewise.
14273         * modules/unicase/u32-toupper-tests: Likewise.
14274         * modules/unicase/ulc-casecmp-tests: Likewise.
14275         * modules/unicase/ulc-casecoll-tests: Likewise.
14276         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14277         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14278         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14279         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14280         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14281         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14282         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14283         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14284         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14285         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14286         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14287         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14288         * modules/unictype/bidicategory-byname-tests: Likewise.
14289         * modules/unictype/bidicategory-name-tests: Likewise.
14290         * modules/unictype/bidicategory-of-tests: Likewise.
14291         * modules/unictype/bidicategory-test-tests: Likewise.
14292         * modules/unictype/block-list-tests: Likewise.
14293         * modules/unictype/block-of-tests: Likewise.
14294         * modules/unictype/block-test-tests: Likewise.
14295         * modules/unictype/category-C-tests: Likewise.
14296         * modules/unictype/category-Cc-tests: Likewise.
14297         * modules/unictype/category-Cf-tests: Likewise.
14298         * modules/unictype/category-Cn-tests: Likewise.
14299         * modules/unictype/category-Co-tests: Likewise.
14300         * modules/unictype/category-Cs-tests: Likewise.
14301         * modules/unictype/category-L-tests: Likewise.
14302         * modules/unictype/category-Ll-tests: Likewise.
14303         * modules/unictype/category-Lm-tests: Likewise.
14304         * modules/unictype/category-Lo-tests: Likewise.
14305         * modules/unictype/category-Lt-tests: Likewise.
14306         * modules/unictype/category-Lu-tests: Likewise.
14307         * modules/unictype/category-M-tests: Likewise.
14308         * modules/unictype/category-Mc-tests: Likewise.
14309         * modules/unictype/category-Me-tests: Likewise.
14310         * modules/unictype/category-Mn-tests: Likewise.
14311         * modules/unictype/category-N-tests: Likewise.
14312         * modules/unictype/category-Nd-tests: Likewise.
14313         * modules/unictype/category-Nl-tests: Likewise.
14314         * modules/unictype/category-No-tests: Likewise.
14315         * modules/unictype/category-P-tests: Likewise.
14316         * modules/unictype/category-Pc-tests: Likewise.
14317         * modules/unictype/category-Pd-tests: Likewise.
14318         * modules/unictype/category-Pe-tests: Likewise.
14319         * modules/unictype/category-Pf-tests: Likewise.
14320         * modules/unictype/category-Pi-tests: Likewise.
14321         * modules/unictype/category-Po-tests: Likewise.
14322         * modules/unictype/category-Ps-tests: Likewise.
14323         * modules/unictype/category-S-tests: Likewise.
14324         * modules/unictype/category-Sc-tests: Likewise.
14325         * modules/unictype/category-Sk-tests: Likewise.
14326         * modules/unictype/category-Sm-tests: Likewise.
14327         * modules/unictype/category-So-tests: Likewise.
14328         * modules/unictype/category-Z-tests: Likewise.
14329         * modules/unictype/category-Zl-tests: Likewise.
14330         * modules/unictype/category-Zp-tests: Likewise.
14331         * modules/unictype/category-Zs-tests: Likewise.
14332         * modules/unictype/category-and-not-tests: Likewise.
14333         * modules/unictype/category-and-tests: Likewise.
14334         * modules/unictype/category-byname-tests: Likewise.
14335         * modules/unictype/category-name-tests: Likewise.
14336         * modules/unictype/category-none-tests: Likewise.
14337         * modules/unictype/category-of-tests: Likewise.
14338         * modules/unictype/category-or-tests: Likewise.
14339         * modules/unictype/category-test-withtable-tests: Likewise.
14340         * modules/unictype/combining-class-tests: Likewise.
14341         * modules/unictype/ctype-alnum-tests: Likewise.
14342         * modules/unictype/ctype-alpha-tests: Likewise.
14343         * modules/unictype/ctype-blank-tests: Likewise.
14344         * modules/unictype/ctype-cntrl-tests: Likewise.
14345         * modules/unictype/ctype-digit-tests: Likewise.
14346         * modules/unictype/ctype-graph-tests: Likewise.
14347         * modules/unictype/ctype-lower-tests: Likewise.
14348         * modules/unictype/ctype-print-tests: Likewise.
14349         * modules/unictype/ctype-punct-tests: Likewise.
14350         * modules/unictype/ctype-space-tests: Likewise.
14351         * modules/unictype/ctype-upper-tests: Likewise.
14352         * modules/unictype/ctype-xdigit-tests: Likewise.
14353         * modules/unictype/decimal-digit-tests: Likewise.
14354         * modules/unictype/digit-tests: Likewise.
14355         * modules/unictype/mirror-tests: Likewise.
14356         * modules/unictype/numeric-tests: Likewise.
14357         * modules/unictype/property-alphabetic-tests: Likewise.
14358         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14359         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14360         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14361         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14362         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14363         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14364         * modules/unictype/property-bidi-control-tests: Likewise.
14365         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14366         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14367         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14368         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14369         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14370         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14371         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14372         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14373         * modules/unictype/property-bidi-pdf-tests: Likewise.
14374         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14375         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14376         * modules/unictype/property-byname-tests: Likewise.
14377         * modules/unictype/property-combining-tests: Likewise.
14378         * modules/unictype/property-composite-tests: Likewise.
14379         * modules/unictype/property-currency-symbol-tests: Likewise.
14380         * modules/unictype/property-dash-tests: Likewise.
14381         * modules/unictype/property-decimal-digit-tests: Likewise.
14382         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14383         * modules/unictype/property-deprecated-tests: Likewise.
14384         * modules/unictype/property-diacritic-tests: Likewise.
14385         * modules/unictype/property-extender-tests: Likewise.
14386         * modules/unictype/property-format-control-tests: Likewise.
14387         * modules/unictype/property-grapheme-base-tests: Likewise.
14388         * modules/unictype/property-grapheme-extend-tests: Likewise.
14389         * modules/unictype/property-grapheme-link-tests: Likewise.
14390         * modules/unictype/property-hex-digit-tests: Likewise.
14391         * modules/unictype/property-hyphen-tests: Likewise.
14392         * modules/unictype/property-id-continue-tests: Likewise.
14393         * modules/unictype/property-id-start-tests: Likewise.
14394         * modules/unictype/property-ideographic-tests: Likewise.
14395         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14396         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14397         * modules/unictype/property-ignorable-control-tests: Likewise.
14398         * modules/unictype/property-iso-control-tests: Likewise.
14399         * modules/unictype/property-join-control-tests: Likewise.
14400         * modules/unictype/property-left-of-pair-tests: Likewise.
14401         * modules/unictype/property-line-separator-tests: Likewise.
14402         * modules/unictype/property-logical-order-exception-tests: Likewise.
14403         * modules/unictype/property-lowercase-tests: Likewise.
14404         * modules/unictype/property-math-tests: Likewise.
14405         * modules/unictype/property-non-break-tests: Likewise.
14406         * modules/unictype/property-not-a-character-tests: Likewise.
14407         * modules/unictype/property-numeric-tests: Likewise.
14408         * modules/unictype/property-other-alphabetic-tests: Likewise.
14409         * modules/unictype/property-other-default-ignorable-code-point-tests:
14410         Likewise.
14411         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14412         * modules/unictype/property-other-id-continue-tests: Likewise.
14413         * modules/unictype/property-other-id-start-tests: Likewise.
14414         * modules/unictype/property-other-lowercase-tests: Likewise.
14415         * modules/unictype/property-other-math-tests: Likewise.
14416         * modules/unictype/property-other-uppercase-tests: Likewise.
14417         * modules/unictype/property-paired-punctuation-tests: Likewise.
14418         * modules/unictype/property-paragraph-separator-tests: Likewise.
14419         * modules/unictype/property-pattern-syntax-tests: Likewise.
14420         * modules/unictype/property-pattern-white-space-tests: Likewise.
14421         * modules/unictype/property-private-use-tests: Likewise.
14422         * modules/unictype/property-punctuation-tests: Likewise.
14423         * modules/unictype/property-quotation-mark-tests: Likewise.
14424         * modules/unictype/property-radical-tests: Likewise.
14425         * modules/unictype/property-sentence-terminal-tests: Likewise.
14426         * modules/unictype/property-soft-dotted-tests: Likewise.
14427         * modules/unictype/property-space-tests: Likewise.
14428         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14429         * modules/unictype/property-test-tests: Likewise.
14430         * modules/unictype/property-titlecase-tests: Likewise.
14431         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14432         * modules/unictype/property-unified-ideograph-tests: Likewise.
14433         * modules/unictype/property-uppercase-tests: Likewise.
14434         * modules/unictype/property-variation-selector-tests: Likewise.
14435         * modules/unictype/property-white-space-tests: Likewise.
14436         * modules/unictype/property-xid-continue-tests: Likewise.
14437         * modules/unictype/property-xid-start-tests: Likewise.
14438         * modules/unictype/property-zero-width-tests: Likewise.
14439         * modules/unictype/scripts-tests: Likewise.
14440         * modules/unictype/syntax-c-ident-tests: Likewise.
14441         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14442         * modules/unictype/syntax-java-ident-tests: Likewise.
14443         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14444         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14445         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14446         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14447         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14448         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14449         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14450         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14451         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14452         * modules/uniname/uniname-tests: Likewise.
14453         * modules/uninorm/canonical-decomposition-tests: Likewise.
14454         * modules/uninorm/compat-decomposition-tests: Likewise.
14455         * modules/uninorm/composition-tests: Likewise.
14456         * modules/uninorm/decomposing-form-tests: Likewise.
14457         * modules/uninorm/decomposition-tests: Likewise.
14458         * modules/uninorm/filter-tests: Likewise.
14459         * modules/uninorm/nfc-tests: Likewise.
14460         * modules/uninorm/nfd-tests: Likewise.
14461         * modules/uninorm/nfkc-tests: Likewise.
14462         * modules/uninorm/nfkd-tests: Likewise.
14463         * modules/uninorm/u8-normcmp-tests: Likewise.
14464         * modules/uninorm/u8-normcoll-tests: Likewise.
14465         * modules/uninorm/u16-normcmp-tests: Likewise.
14466         * modules/uninorm/u16-normcoll-tests: Likewise.
14467         * modules/uninorm/u32-normcmp-tests: Likewise.
14468         * modules/uninorm/u32-normcoll-tests: Likewise.
14469         * modules/unistdio/u8-asnprintf-tests: Likewise.
14470         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14471         * modules/unistdio/u8-vasprintf-tests: Likewise.
14472         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14473         * modules/unistdio/u8-vsprintf-tests: Likewise.
14474         * modules/unistdio/u16-asnprintf-tests: Likewise.
14475         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14476         * modules/unistdio/u16-vasprintf-tests: Likewise.
14477         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14478         * modules/unistdio/u16-vsprintf-tests: Likewise.
14479         * modules/unistdio/u32-asnprintf-tests: Likewise.
14480         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14481         * modules/unistdio/u32-vasprintf-tests: Likewise.
14482         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14483         * modules/unistdio/u32-vsprintf-tests: Likewise.
14484         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14485         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14486         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14487         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14488         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14489         * modules/unistr/u8-check-tests: Likewise.
14490         * modules/unistr/u8-chr-tests: Likewise.
14491         * modules/unistr/u8-cmp-tests: Likewise.
14492         * modules/unistr/u8-cmp2-tests: Likewise.
14493         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14494         * modules/unistr/u8-cpy-tests: Likewise.
14495         * modules/unistr/u8-mblen-tests: Likewise.
14496         * modules/unistr/u8-mbsnlen-tests: Likewise.
14497         * modules/unistr/u8-mbtouc-tests: Likewise.
14498         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14499         * modules/unistr/u8-mbtoucr-tests: Likewise.
14500         * modules/unistr/u8-move-tests: Likewise.
14501         * modules/unistr/u8-next-tests: Likewise.
14502         * modules/unistr/u8-prev-tests: Likewise.
14503         * modules/unistr/u8-set-tests: Likewise.
14504         * modules/unistr/u8-stpcpy-tests: Likewise.
14505         * modules/unistr/u8-stpncpy-tests: Likewise.
14506         * modules/unistr/u8-strcat-tests: Likewise.
14507         * modules/unistr/u8-strcmp-tests: Likewise.
14508         * modules/unistr/u8-strcoll-tests: Likewise.
14509         * modules/unistr/u8-strcpy-tests: Likewise.
14510         * modules/unistr/u8-strdup-tests: Likewise.
14511         * modules/unistr/u8-strlen-tests: Likewise.
14512         * modules/unistr/u8-strmblen-tests: Likewise.
14513         * modules/unistr/u8-strmbtouc-tests: Likewise.
14514         * modules/unistr/u8-strncat-tests: Likewise.
14515         * modules/unistr/u8-strncmp-tests: Likewise.
14516         * modules/unistr/u8-strncpy-tests: Likewise.
14517         * modules/unistr/u8-strnlen-tests: Likewise.
14518         * modules/unistr/u8-to-u16-tests: Likewise.
14519         * modules/unistr/u8-to-u32-tests: Likewise.
14520         * modules/unistr/u8-uctomb-tests: Likewise.
14521         * modules/unistr/u16-check-tests: Likewise.
14522         * modules/unistr/u16-chr-tests: Likewise.
14523         * modules/unistr/u16-cmp-tests: Likewise.
14524         * modules/unistr/u16-cmp2-tests: Likewise.
14525         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14526         * modules/unistr/u16-cpy-tests: Likewise.
14527         * modules/unistr/u16-mblen-tests: Likewise.
14528         * modules/unistr/u16-mbsnlen-tests: Likewise.
14529         * modules/unistr/u16-mbtouc-tests: Likewise.
14530         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14531         * modules/unistr/u16-mbtoucr-tests: Likewise.
14532         * modules/unistr/u16-move-tests: Likewise.
14533         * modules/unistr/u16-next-tests: Likewise.
14534         * modules/unistr/u16-prev-tests: Likewise.
14535         * modules/unistr/u16-set-tests: Likewise.
14536         * modules/unistr/u16-stpcpy-tests: Likewise.
14537         * modules/unistr/u16-stpncpy-tests: Likewise.
14538         * modules/unistr/u16-strcat-tests: Likewise.
14539         * modules/unistr/u16-strcmp-tests: Likewise.
14540         * modules/unistr/u16-strcoll-tests: Likewise.
14541         * modules/unistr/u16-strcpy-tests: Likewise.
14542         * modules/unistr/u16-strdup-tests: Likewise.
14543         * modules/unistr/u16-strlen-tests: Likewise.
14544         * modules/unistr/u16-strmblen-tests: Likewise.
14545         * modules/unistr/u16-strmbtouc-tests: Likewise.
14546         * modules/unistr/u16-strncat-tests: Likewise.
14547         * modules/unistr/u16-strncmp-tests: Likewise.
14548         * modules/unistr/u16-strncpy-tests: Likewise.
14549         * modules/unistr/u16-strnlen-tests: Likewise.
14550         * modules/unistr/u16-to-u32-tests: Likewise.
14551         * modules/unistr/u16-to-u8-tests: Likewise.
14552         * modules/unistr/u16-uctomb-tests: Likewise.
14553         * modules/unistr/u32-check-tests: Likewise.
14554         * modules/unistr/u32-chr-tests: Likewise.
14555         * modules/unistr/u32-cmp-tests: Likewise.
14556         * modules/unistr/u32-cmp2-tests: Likewise.
14557         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14558         * modules/unistr/u32-cpy-tests: Likewise.
14559         * modules/unistr/u32-mblen-tests: Likewise.
14560         * modules/unistr/u32-mbsnlen-tests: Likewise.
14561         * modules/unistr/u32-mbtouc-tests: Likewise.
14562         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14563         * modules/unistr/u32-mbtoucr-tests: Likewise.
14564         * modules/unistr/u32-move-tests: Likewise.
14565         * modules/unistr/u32-next-tests: Likewise.
14566         * modules/unistr/u32-prev-tests: Likewise.
14567         * modules/unistr/u32-set-tests: Likewise.
14568         * modules/unistr/u32-stpcpy-tests: Likewise.
14569         * modules/unistr/u32-stpncpy-tests: Likewise.
14570         * modules/unistr/u32-strcat-tests: Likewise.
14571         * modules/unistr/u32-strcmp-tests: Likewise.
14572         * modules/unistr/u32-strcoll-tests: Likewise.
14573         * modules/unistr/u32-strcpy-tests: Likewise.
14574         * modules/unistr/u32-strdup-tests: Likewise.
14575         * modules/unistr/u32-strlen-tests: Likewise.
14576         * modules/unistr/u32-strmblen-tests: Likewise.
14577         * modules/unistr/u32-strmbtouc-tests: Likewise.
14578         * modules/unistr/u32-strncat-tests: Likewise.
14579         * modules/unistr/u32-strncmp-tests: Likewise.
14580         * modules/unistr/u32-strncpy-tests: Likewise.
14581         * modules/unistr/u32-strnlen-tests: Likewise.
14582         * modules/unistr/u32-to-u16-tests: Likewise.
14583         * modules/unistr/u32-to-u8-tests: Likewise.
14584         * modules/unistr/u32-uctomb-tests: Likewise.
14585         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14586         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14587         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14588         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14589         * modules/uniwidth/u8-strwidth-tests: Likewise.
14590         * modules/uniwidth/u8-width-tests: Likewise.
14591         * modules/uniwidth/u16-strwidth-tests: Likewise.
14592         * modules/uniwidth/u16-width-tests: Likewise.
14593         * modules/uniwidth/u32-strwidth-tests: Likewise.
14594         * modules/uniwidth/u32-width-tests: Likewise.
14595         * modules/uniwidth/width-tests: Likewise.
14596
14597 2010-05-18  Richard Jones  <rjones@redhat.com>
14598
14599         doc: users.txt: list hivex
14600         * users.txt: Add hivex.
14601
14602 2010-05-18  Richard Jones  <rjones@redhat.com>
14603
14604         doc: users.txt: list febootstrap
14605         * users.txt: Add febootstrap.
14606
14607 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14608
14609         bootstrap: fix an error when gnulib is not used as a git submodule
14610         * build-aux/bootstrap (gnulib_path): If its length is zero then
14611         assign "gnulib" to it.
14612         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14613
14614 2010-05-16  Bruno Haible  <bruno@clisp.org>
14615
14616         Avoid autoconf warnings about AM_ICONV.
14617         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14618         2.64.
14619
14620 2010-05-16  Bruno Haible  <bruno@clisp.org>
14621
14622         absolute-header: Make the macro usable in more situations.
14623         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14624         from gl_ABSOLUTE_HEADER.
14625         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14626
14627 2010-05-16  James Youngman  <jay@gnu.org>
14628
14629         doc: update users.txt
14630         * users.txt: Add CSSC.
14631
14632 2010-05-16  Jim Meyering  <meyering@redhat.com>
14633
14634         init.sh: fix an error in the previous change; add more comments
14635         * tests/init.sh: Compare exit code in loop against 9, not 2.
14636         Patch by Bruno Haible.
14637         Make the two tests more similar by adding an empty "then" clause.
14638         Add comments.
14639
14640         init.sh: avoid unnecessary shell re-exec
14641         * tests/init.sh: Improve the re-exec-required check to first test the
14642         current shell.  If it passes the test, do not search for a shell that
14643         does pass, and do not re-exec.  This test is particularly contorted to
14644         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14645         of $(...) evokes a syntax error and causes immediate shell exit with
14646         status 2.  Bruno Haible reported that the re-exec made it impossible
14647         to single-step through any init.sh-using script.
14648
14649 2010-05-16  Bruno Haible  <bruno@clisp.org>
14650
14651         Fix collision between gnulib's and libintl's printf replacements.
14652         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14653         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14654         (printf): When using GNU C, map the __printf__ function to rpl_printf
14655         via __asm__. When not using GNU C, define rpl_printf instead of
14656         __printf__.
14657         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14658         commit.
14659         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14660         commit.
14661         * m4/asm-underscore.m4: New file.
14662         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14663         * modules/stdio (Files): Add m4/asm-underscore.m4.
14664         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14665         Reported by Ben Pfaff.
14666
14667 2010-05-16  Bruno Haible  <bruno@clisp.org>
14668
14669         verify: Avoid skipping the test on openSUSE 11.0.
14670         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14671
14672 2010-05-13  Bruno Haible  <bruno@clisp.org>
14673
14674         Avoid useless warnings from G++.
14675         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14676         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14677         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14678
14679 2010-05-11  Jim Meyering  <meyering@redhat.com>
14680
14681         maint.mk: tweak preceding change
14682         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14683         regexps tighter by anchoring at EOL, and make the new group "shy"
14684         for slightly decreased overhead.
14685
14686 2010-05-11  Eric Blake  <eblake@redhat.com>
14687
14688         maint.mk: gnulib doesn't guarantee NSIG
14689         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14690
14691 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14692
14693         test-pwrite.c: Remove unused variable declaration.
14694         * tests/test-pwrite.c (main): Remove read_buf declaration.
14695
14696         Remove useless test-pwrite.sh file.
14697         * tests/test-pwrite.sh: Delete file.
14698         * modules/pwrite-tests: Remove references.
14699         Reported by Bruno Haible.
14700
14701 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14702
14703         init.sh: fix a typo
14704         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14705
14706 2010-05-10  Jim Meyering  <meyering@redhat.com>
14707
14708         maint.mk: avoid using a temporary file in the always-defined-macros check
14709         * top/maint.mk (.re-defmac): Remove rule.
14710         (gl_trap_): Remove definition.
14711         (sc_prohibit_always-defined_macros): Rewrite not to create and
14712         depend on a temporary file.  Instead, depend on GNU grep's ability
14713         to read a list of regular expressions from stdin when given "-f -".
14714
14715 2010-05-09  Bruno Haible  <bruno@clisp.org>
14716
14717         Update to GNU gettext 0.18, part 1.
14718         * m4/gettext.m4: Update to GNU gettext 0.18.
14719         * m4/intl.m4: Likewise.
14720         * m4/po.m4: Likewise.
14721         * modules/gettext (Files): Add m4/fcntl-o.m4.
14722         (configure.ac): Require gettext infrastructure from version 0.18.
14723
14724 2010-05-09  Jim Meyering  <meyering@redhat.com>
14725
14726         init.sh: enable MALLOC_PERTURB_
14727         * tests/init.sh: Enable glibc's malloc-perturbing option.
14728
14729         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14730         With my recent change in init.sh from the two-line form:
14731             -#   : ${srcdir=.}
14732             -#   . "$srcdir/init.sh"; path_prepend_ .
14733             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14734         I noticed that using the one-line form would cause this test
14735         to fail with a false-positive, or to stop working altogether,
14736         depending on whether help-version changed or all the tests did.
14737         * top/maint.mk (_hv_regex): Remove this definition.
14738         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14739         (_hv_regex_strong): Use a stronger regex to check for conformance.
14740         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14741         Give a separate diagnostic for lack of conforming use.
14742
14743         maint.mk: prohibit definition of symbols defined by gnulib
14744         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14745         definition of symbols defined by gnulib.
14746
14747 2010-05-09  Bruno Haible  <bruno@clisp.org>
14748
14749         acl: Avoid test failure on Cygwin-hosted mingw.
14750         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14751
14752 2010-05-09  Bruno Haible  <bruno@clisp.org>
14753
14754         error: Use system's fcntl function.
14755         * lib/error.c (fcntl): Undefine.
14756
14757 2010-05-09  Jim Meyering  <meyering@redhat.com>
14758
14759         verify: adjust formatting to be more consistent
14760         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14761         argument-list '('s, and after one comma.
14762
14763 2010-05-09  Bruno Haible  <bruno@clisp.org>
14764
14765         error: More reliable output on mingw.
14766         * lib/error.c: Include <windows.h>.
14767         (is_open): New function.
14768         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14769         defined.
14770
14771 2010-05-09  Bruno Haible  <bruno@clisp.org>
14772
14773         vasnprintf: Fix syntax errors in libintl build on mingw.
14774         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14775         pad_ourselves and prec_ourselves after use.
14776
14777 2010-05-08  Bruno Haible  <bruno@clisp.org>
14778
14779         * lib/config.charset: Update comments for Cygwin 1.7.
14780         * lib/localcharset.c: Likewise.
14781
14782 2010-05-07  Jim Meyering  <meyering@redhat.com>
14783
14784         init.sh: improve comments
14785         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14786         . "${srcdir=.}/init.sh"; path_prepend_ .
14787         Add a note about path_prepend_ and the alternative of using
14788         TESTS_ENVIRONMENT.
14789
14790 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14791
14792         exclude: Unescape hashed patterns in wildcard mode.
14793         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14794         to the hash list.
14795         * tests/test-exclude8.sh: New test case.
14796         * modules/exclude-tests: Add new test.
14797
14798 2010-05-05  Eric Blake  <eblake@redhat.com>
14799
14800         verify: automate tests
14801         * modules/verify-tests: New module.
14802         * tests/test-verify.sh: New file.
14803         * tests/test-verify.c: Guard each negative test with a unique id.
14804         Also avoid warning about unused left hand of comma expressions.
14805
14806 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14807
14808         Further improvements to verify.h, suggested by Eric Blake.
14809         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14810         the GL_* versions, to avoid collision with OpenGL.
14811         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14812         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14813         than testing merely whether it's defined.
14814
14815         Modify verify.h to pacify gcc -Wredundant_decls.
14816         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14817         These use the prefix "GL_" since they're likely to be useful elsewhere.
14818         We may need to break them out into a different .h file.
14819         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14820         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14821         of verify_function__.
14822
14823 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14824
14825         Tests for module pwrite.
14826         * modules/pwrite-tests: New file.
14827         * tests/test-pwrite.sh: New file.
14828         * tests/test-pwrite.c: New file.
14829
14830         New module pwrite.
14831         * lib/unistd.in.h (pwrite): New declaration.
14832         * lib/pwrite.c: New file, from glibc with modifications.
14833         * m4/pwrite.m4: New file.
14834         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14835         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14836         REPLACE_PWRITE.
14837         * modules/pwrite: New file.
14838         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14839         REPLACE_PWRITE.
14840         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14841         * doc/posix-functions/pwrite.texi: Mention the new module.
14842
14843 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14844
14845         pread: Update documentation.
14846         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14847
14848 2010-05-04  Eric Blake  <eblake@redhat.com>
14849
14850         docs: update cygwin progress
14851         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14852         this bug.
14853         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14854         Added in cygwin 1.7.2.
14855         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14856         Likewise.
14857         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14858         Likewise.
14859         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14860         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14861         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14862         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14863         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14864         Mention nproc module.
14865         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14866         bug in cygwin 1.7.5 addition.
14867         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14868         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14869         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14870         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14871         1.7.5.
14872         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14873         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14874         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14875         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14876         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14877         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14878         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14879         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14880         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14881         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14882         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14883         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14884         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14885         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14886         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14887         Likewise.
14888         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14889         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14890         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14891         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14892         Likewise.
14893         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14894         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14895         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14896         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14897         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14898         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14899         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14900         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14901         Likewise.
14902         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14903         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14904         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14905         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14906         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14907         Likewise.
14908         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14909         Likewise.
14910         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14911         Likewise.
14912         * doc/glibc-functions/xdrrec_endofrecord.texi
14913         (xdrrec_endofrecord): Likewise.
14914         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14915         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14916         Likewise.
14917         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14918         Likewise.
14919
14920 2010-05-04  Jim Meyering  <meyering@redhat.com>
14921
14922         gendocs.sh: make its "-s FILE" option more useful
14923         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14924         $PACKAGE to reflect the probably-different basename of "FILE".
14925
14926 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14927
14928         bootstrap: don't ignore download_po_files failure
14929         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14930         failure.
14931
14932 2010-05-03  Jim Meyering  <meyering@redhat.com>
14933
14934         maint.mk: allow to pass options to gendocs.sh
14935         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14936         (gendocs_options_): New overridable variable.
14937
14938         gnu-web-doc-update: don't ignore configure or build failure
14939         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14940
14941         announce-gen: backslash-escape '@'s in --help output
14942         * build-aux/announce-gen: Fix syntax errors.
14943
14944         maint.mk, announce-gen: allow project-specific announcement mail headers
14945         * top/maint.mk (translation_project_): Define default.
14946         (announcement_Cc_, announcement_mail_headers_): Likewise.
14947         (announcement): Invoke announce-gen with new --mail-headers option.
14948         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14949
14950         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14951         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14952         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14953         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14954         line in the "err2" output file when running "make check" in verbose
14955         mode (i.e., with set -x enabled).
14956
14957 2010-05-03  Bruno Haible  <bruno@clisp.org>
14958
14959         wctob: Fix for weird platforms.
14960         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14961         argument value.
14962
14963 2010-05-03  Jim Meyering  <meyering@redhat.com>
14964
14965         maint.mk: prohibit unwarranted use of <strings.h>
14966         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14967         strings.h in a file that does not also use strcasecmp, strncasecmp,
14968         ffs or ffsll.
14969
14970         maint.mk: remove obsolete comments
14971         * top/maint.mk: Remove stale, commented-out rules.
14972
14973 2010-05-02  Bruno Haible  <bruno@clisp.org>
14974
14975         wcwidth: Declare also when it's aliased.
14976         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14977         macro.
14978
14979 2010-05-02  Bruno Haible  <bruno@clisp.org>
14980
14981         Fix regression from 2010-04-25.
14982         * gnulib-tool (func_modules_transitive_closure): Check the status of
14983         all modules, not only of the tests that are of the form foo-tests where
14984         foo is a module.
14985
14986 2010-05-02  Bruno Haible  <bruno@clisp.org>
14987
14988         wctob: Work around nasty Cygwin 1.7.2 bug.
14989         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14990         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14991
14992 2010-05-01  Bruno Haible  <bruno@clisp.org>
14993
14994         fpurge: Sharper test.
14995         * tests/test-fpurge.c (main): Add one more ftell check.
14996         * modules/fpurge-tests (Depends-on): Add ftell.
14997         Suggested by Eric Blake.
14998
14999 2010-05-01  Bruno Haible  <bruno@clisp.org>
15000
15001         ftello: Another test.
15002         * tests/test-ftello3.c: New file.
15003         * modules/ftello-tests (Files): Add it.
15004         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15005         MOSTLYCLEANFILES.
15006
15007         ftell: Another test.
15008         * tests/test-ftell3.c: New file.
15009         * modules/ftell-tests (Files): Add it.
15010         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15011         MOSTLYCLEANFILES.
15012
15013 2010-05-01  Bruno Haible  <bruno@clisp.org>
15014
15015         ftell, ftello: Work around Solaris bug.
15016         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15017         * lib/ftello.c: Include stdio-impl.h.
15018         (ftello): On Solaris, when _IOWRT is set, compute the result without
15019         looking at _IOREAD.
15020         * modules/ftello (Files): Add lib/stdio-impl.h.
15021         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15022         * doc/posix-functions/ftello.texi: Likewise.
15023         Reported by Eric Blake.
15024
15025 2010-05-01  Bruno Haible  <bruno@clisp.org>
15026
15027         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15028         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15029         the _IOWRT flag is also set.
15030
15031 2010-05-01  Bruno Haible  <bruno@clisp.org>
15032
15033         Fix doc about a HP-UX stdio bug.
15034         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15035         * doc/posix-functions/ftello.texi: Likewise.
15036
15037 2010-05-01  Bruno Haible  <bruno@clisp.org>
15038
15039         lseek test: Fix failure on Solaris.
15040         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15041         output.
15042
15043 2010-04-30  Jim Meyering  <meyering@redhat.com>
15044
15045         bootstrap: don't ignore failure to generate po*/Makevars
15046         * build-aux/bootstrap (with_gettext): Don't ignore failure
15047         to create po/Makevars or runtime-po/Makevars.
15048
15049 2010-04-29  Eric Blake  <eblake@redhat.com>
15050
15051         headers: relax license to LGPLv2+
15052         * modules/fcntl-h (License): Relax license.
15053         * modules/getopt-posix (License): Likewise.
15054         * modules/locale (License): Likewise.
15055         * modules/math (License): Likewise.
15056         * modules/pty (License): Likewise.
15057         * modules/sched (License): Likewise.
15058         * modules/search (License): Likewise.
15059         * modules/spawn (License): Likewise.
15060         * modules/stdarg (License): Likewise.
15061         * modules/sysexits (License): Likewise.
15062
15063 2010-04-29  Jim Meyering  <meyering@redhat.com>
15064
15065         inttypes: relax license to LGPLv2+
15066         * modules/inttypes (License): Relax license.
15067
15068 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15069
15070         * top/maint.mk (indent): Run twice to produce idempotent results.
15071
15072 2010-04-28  Bruno Haible  <bruno@clisp.org>
15073
15074         getdate: Generate getdate.c in the source directory.
15075         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15076         MOSTLYCLEANFILES.
15077         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15078
15079 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15080
15081         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15082         is not declared as a const *; avoid warnings in that case.
15083
15084 2010-04-28  Eric Blake  <eblake@redhat.com>
15085
15086         canonicalize-lgpl: avoid compiler warning
15087         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15088         declaration' / 'extraneous semicolon' warning with some compilers.
15089         Reported by Andreas Gruenbacher.
15090
15091 2010-04-28  Jim Meyering  <meyering@redhat.com>
15092
15093         init.sh: ensure a more reliable exit status when exiting via trap
15094         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15095         Inspired by patches from Dmitry V. Levin.
15096         Also trap on signal 3 (SIGQUIT).
15097
15098 2010-04-27  Bruno Haible  <bruno@clisp.org>
15099
15100         Update doc about utimes().
15101         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15102         'utimens' module.
15103         Reported by Andreas Gruenbacher <agruen@suse.de>.
15104
15105 2010-04-27  Eric Blake  <eblake@redhat.com>
15106
15107         full-read, full-write: relax license
15108         * modules/full-read (License): Drop to LGPLv2+.
15109         * modules/full-write (License): Likewise.
15110         * modules/safe-read (License): Likewise.
15111         * modules/safe-write (License): Likewise.
15112
15113         pthread: mention library for linking
15114         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15115
15116 2010-04-27  Jim Meyering  <meyering@redhat.com>
15117
15118         maint.mk: fix a bug introduced in last change
15119         * top/maint.mk (gl_assured_headers_): Now that all names are on
15120         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15121         is not anchored to end of word, it should be adequate.
15122
15123         maint.mk: avoid side-effect in latest syntax-check
15124         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15125         to run commands via $(shell...), and hence to incur cost only when
15126         the new rule is actually run.
15127
15128         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15129         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15130         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15131         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15132         (gl_assured_headers_, az_, AZ_): Define.
15133         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15134
15135 2010-04-26  Jim Meyering  <jim@meyering.net>
15136             Bruno Haible  <bruno@clisp.org>
15137
15138         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15139         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15140         Prompted by an exchange with Gilles Espinasse.
15141
15142 2010-04-26  Jim Meyering  <meyering@redhat.com>
15143
15144         git-version-gen: aesthetic tweak
15145         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15146         so that the command remains on a single line.
15147
15148 2010-04-26  Eric Blake  <eblake@redhat.com>
15149
15150         git-version-gen: allow use on EBCDIC hosts
15151         * build-aux/git-version-gen (dirty): Use literal rather than tying
15152         ourselves to ascii.
15153         Reported by Steve Goetze.
15154
15155 2010-04-25  Bruno Haible  <bruno@clisp.org>
15156
15157         netdb: Add support for GNULIB_POSIXCHECK.
15158         * lib/netdb.in.h: Include warn-on-use.h.
15159         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15160         functions are used when GNULIB_POSIXCHECK is defined and the
15161         getaddrinfo module is not in use.
15162         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15163         freeaddrinfo, gai_strerror, getnameinfo are declared.
15164         * modules/netdb (Depends-on): Add warn-on-use.
15165         (Makefile.am): Include warn-on-use.h in netdb.h.
15166
15167 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15168
15169         build: avoid "make check" failure without .git/ directory
15170         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15171         there is no .git/ directory.
15172
15173 2010-04-25  Bruno Haible  <bruno@clisp.org>
15174
15175         ptsname: Fix misuse of ttyname_r.
15176         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15177         of errno.
15178
15179 2010-04-25  Bruno Haible  <bruno@clisp.org>
15180
15181         ttyname_r: Make it work on Solaris 10.
15182         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15183         if the system function has the POSIX declaration. Test whether the
15184         function fails if the buffer is less than 128 bytes large.
15185         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15186         system's ttyname_r function. Provide a reasonably large buffer.
15187         * modules/ttyname_r (Depends-on): Add extensions.
15188         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15189
15190 2010-04-25  Bruno Haible  <bruno@clisp.org>
15191
15192         Use the 'extensions' module for some more functions on Solaris.
15193         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15194         module.
15195         * doc/posix-functions/ctime_r.texi: Likewise.
15196         * doc/posix-functions/getgrgid_r.texi: Likewise.
15197         * doc/posix-functions/getgrnam_r.texi: Likewise.
15198         * doc/posix-functions/getpwnam_r.texi: Likewise.
15199         * doc/posix-functions/getpwuid_r.texi: Likewise.
15200         * doc/posix-functions/readdir_r.texi: Likewise.
15201         * doc/posix-functions/sigwait.texi: Likewise.
15202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15203         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15204
15205 2010-04-25  Bruno Haible  <bruno@clisp.org>
15206
15207         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15209         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15210         * lib/ttyname_r.c: Include <limits.h>.
15211         (ttyname_r): Define using the system's ttyname_r function, if it exists
15212         and not on Solaris.
15213         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15214         set.
15215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15216         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15217         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15218         Reported by Simon Josefsson.
15219
15220 2010-04-25  Bruno Haible  <bruno@clisp.org>
15221
15222         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15223         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15224         * doc/posix-functions/ctime_r.texi: Likewise.
15225         * doc/posix-functions/getgrgid_r.texi: Likewise.
15226         * doc/posix-functions/getgrnam_r.texi: Likewise.
15227         * doc/posix-functions/getlogin_r.texi: Likewise.
15228         * doc/posix-functions/getpwnam_r.texi: Likewise.
15229         * doc/posix-functions/getpwuid_r.texi: Likewise.
15230         * doc/posix-functions/readdir_r.texi: Likewise.
15231         * doc/posix-functions/sigwait.texi: Likewise.
15232         * doc/posix-functions/ttyname_r.texi: Likewise.
15233         Reported by Simon Josefsson.
15234
15235 2010-04-25  Bruno Haible  <bruno@clisp.org>
15236
15237         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15238         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15239         also to --create-testdir.
15240         (func_acceptable): Don't consider the status of *-tests modules here.
15241         (func_modules_transitive_closure): Consider it here, before including a
15242         test module.
15243         (func_import, func_create_testdir): Set inc_all_direct_tests,
15244         inc_all_indirect_tests.
15245         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15246         --create-testdir and --create-megatestdir.
15247
15248 2010-04-25  Bruno Haible  <bruno@clisp.org>
15249
15250         gnulib-tool: Add --without-*-tests options.
15251         * gnulib-tool (func_usage): Document the --without-*-tests options.
15252         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15253         excl_unportable_tests): New variables.
15254         Fail if they are specified with --import or --update.
15255         (func_acceptable): Respect the excl_*_tests variables.
15256         (func_import): Set the excl_*_tests variables to empty.
15257
15258 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15259             Bruno Haible  <bruno@clisp.org>
15260
15261         Work around a MacOS X 10.4 bug with openpty.
15262         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15263         * tests/test-openpty.c (main): Close the master side explicitly.
15264
15265 2010-04-25  Bruno Haible  <bruno@clisp.org>
15266
15267         strnlen: Fix a C++ test error on MacOS X and Solaris.
15268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15269         the function is not declared.
15270         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15271         Simon Josefsson.
15272
15273 2010-04-24  Bruno Haible  <bruno@clisp.org>
15274
15275         Avoid a gcc warning.
15276         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15277         of correct type for %08lx directive.
15278         Reported by Eric Blake.
15279
15280 2010-04-24  Bruno Haible  <bruno@clisp.org>
15281
15282         vasnprintf: Correct errno value in case of out-of-memory.
15283         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15284         or sprintf. Use the errno value from SNPRINTF or sprintf.
15285         Reported by Ian Beckwith <ianb@erislabs.net>.
15286
15287 2010-04-24  Bruno Haible  <bruno@clisp.org>
15288
15289         ansi-c++-opt: Find correct compiler when cross-compiling.
15290         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15291         AC_CHECK_PROGS.
15292         Reported by Simon Josefsson.
15293
15294 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15295
15296         vc-list-files: Add support for subversion
15297         * build-aux/vc-list-files: Use "svn list" to generate the list of
15298         files controlled by subversion.
15299
15300 2010-04-23  Jim Meyering  <meyering@redhat.com>
15301
15302         vc-list-files tests: convert to use init.sh
15303         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15304         path_prepend_.
15305         Use Exit, not exit.
15306         Use skip_ rather than open coding it.
15307         Remove trap set-up and compare definitions.
15308         * tests/test-vc-list-files-git.sh: Likewise.
15309         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15310
15311 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15312
15313         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15314         backup files.
15315
15316 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15317
15318         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15319
15320 2010-04-20  Eric Blake  <eblake@redhat.com>
15321
15322         tests: be robust to ignored SIGPIPE
15323         * tests/test-select-in.sh: Consume all output.
15324         * tests/test-lseek.sh: Check correct exit status, while avoiding
15325         EPIPE.
15326
15327 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15328             Bruno Haible  <bruno@clisp.org>
15329
15330         visibility: Don't use -fvisibility if it leads to a warning.
15331         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15332         yes, don't pretend that visibility works if it leads to a warning.
15333         Reported by Mike Gran <spk121@yahoo.com>.
15334
15335 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15336
15337         * build-aux/bootstrap: Use "git -h" for testing for supported options
15338         instead of "git --help".  The short-form option only shows a summary,
15339         and doesn't layout the full man page.  Grep for the full option name
15340         in the summary, too.
15341
15342 2010-04-19  Bruno Haible  <bruno@clisp.org>
15343
15344         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15345         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15346         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15347         mention of RELOCATABLE_STRIP.
15348         Reported by Sylvain Beucler <beuc@beuc.net>.
15349
15350 2010-04-19  Bruno Haible  <bruno@clisp.org>
15351
15352         * lib/diffseq.h: Fix typo in comment.
15353         Reported by Eric Blake.
15354
15355 2010-04-19  Bruno Haible  <bruno@clisp.org>
15356
15357         ioctl: Move autoconf macro to a .m4 file.
15358         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15359         * modules/ioctl (Files): Add it.
15360         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15361         Reported by Ian Beckwith <ianb@erislabs.net>.
15362
15363 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15364             Bruno Haible  <bruno@clisp.org>
15365
15366         diffseq: Accommodate use-case with abstract arrays.
15367         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15368         is not defined.
15369         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15370         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15371
15372 2010-04-18  Bruno Haible  <bruno@clisp.org>
15373
15374         * doc/posix-headers/stdbool.texi: More precise wording.
15375
15376 2010-04-17  Jim Meyering  <meyering@redhat.com>
15377
15378         maint.mk: use gnu-style indentation in an embedded perl script
15379         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15380         Rename variable: s/two/last_two_bytes/
15381
15382 2010-04-16  Eric Blake  <eblake@redhat.com>
15383
15384         test-stdbool: skip test that fails with Solaris CC
15385         * tests/test-stdbool.c (f): Skip test that causes compilation
15386         error under buggy C++ compiler.
15387         * lib/stdbool.in.h: Document the limitation.
15388         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15389
15390         setenv: allow compilation with C++
15391         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15392         register keyword.
15393
15394         stdint: allow test to pass with C++
15395         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15396
15397         getopt: allow compilation with C++
15398         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15399         struct.
15400         * lib/getopt.c (_getopt_internal_r): Use correct type.
15401         Reported by Dagobert Michelson, via Joel E. Denny.
15402
15403 2010-04-16  Bruno Haible  <bruno@clisp.org>
15404
15405         Override netdb.h always.
15406         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15407         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15408         Reported by Ludovic Courtès <ludo@gnu.org>.
15409
15410 2010-04-15  Bruno Haible  <bruno@clisp.org>
15411
15412         openpty: Fix mistake from 2010-03-21.
15413         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15414         Reported by Simon Josefsson.
15415
15416 2010-04-15  Eric Blake  <eblake@redhat.com>
15417
15418         test-forkpty: fix expected signature
15419         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15420         Reported by Simon Josefsson.
15421
15422 2010-04-15  Jim Meyering  <meyering@redhat.com>
15423
15424         maint.mk: texinfo_suffix_re_: correct the default regexp
15425         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15426
15427         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15428         make it configurable via texinfo_suffix_re_.
15429
15430 2010-04-14  Eric Blake  <eblake@redhat.com>
15431
15432         strtok_r: relax license to LGPLv2+
15433         * modules/strtok_r (License): Relax license.
15434         Reported by Matthias Bolte.
15435
15436 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15437
15438         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15439         version 1.4.4 by default instead of requiring the libgcrypt
15440         version used during build.  This makes it possible to use the
15441         application with older but still binary compatible libgcrypt
15442         versions.
15443
15444 2010-04-13  Eric Blake  <eblake@redhat.com>
15445
15446         getopt-gnu: match recent glibc fixes and posix ruling
15447         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15448         '+' handling, when requesting extensions.
15449         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15450         'W;' handling.
15451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15452         * doc/posix-functions/getopt.texi (getopt): Document this.
15453         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15454         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15455         Likewise.
15456
15457         getopt: merge bug fixes from glibc
15458         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15459         diagnostics.  Honor '+:' correctly.  Reject ';'.
15460
15461         getopt-posix: detect MacOS bug
15462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15463         optind when missing a required argument.
15464         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15465         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15466         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15467         Likewise.
15468
15469         getopt-posix: avoid spurious failure on Solaris
15470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15471         an indicator that setting optind=1 is sufficient for reset.
15472
15473         getopt-posix: avoid spurious failure on FreeBSD
15474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15475         in POSIX mode, since the m4 test uses it.
15476
15477         gnulib-tool: silence warning on BSD sh
15478         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15479
15480 2010-04-13  Jim Meyering  <meyering@redhat.com>
15481
15482         doc: users.txt: GNU patch now uses gnulib
15483         * users.txt: Add patch.
15484
15485 2010-04-12  Jim Meyering  <meyering@redhat.com>
15486
15487         maint.mk: generate more concise timing data for syntax-check rules
15488         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15489         " done" from each line that reports a syntax-check test duration.
15490
15491 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15492
15493         git-version-gen: use "git update-index..." rather than "git status"
15494         * build-aux/git-version-gen: Use git update-index --refresh, not
15495         "git status".  With some versions of git, "git status" would fail
15496         to update the index and result in an unwarranted "-dirty" suffix.
15497
15498 2010-04-11  Jim Meyering  <meyering@redhat.com>
15499
15500         openat: correct formatting (no semantic change)
15501         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15502         Suggested by Bruno Haible.
15503
15504 2010-04-11  Bruno Haible  <bruno@clisp.org>
15505
15506         Stricter declaration checking in testdirs.
15507         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15508         If for_tests is true, augment AM_CPPFLAGS to define
15509         GNULIB_STRICT_CHECKING.
15510         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15511         GNULIB_STRICT_CHECKING is defined, verify that the function is
15512         declared.
15513
15514 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15515             Bruno Haible  <bruno@clisp.org>
15516
15517         libunistring: Improve configure output.
15518         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15519         Don't say "consider installing GNU libunistring" when checking again
15520         with libiconv.
15521
15522 2010-04-11  Bruno Haible  <bruno@clisp.org>
15523
15524         libunistring: Correct value of $LTLIBUNISTRING.
15525         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15526         correct the value of $LTLIBUNISTRING.
15527
15528 2010-04-11  Bruno Haible  <bruno@clisp.org>
15529
15530         havelib: Add static libraries to LIBS in the right order.
15531         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15532         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15533
15534 2010-04-11  Bruno Haible  <bruno@clisp.org>
15535
15536         libunistring: Detect libunistring also when it depends on libiconv.
15537         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15538         the second AC_LIB_HAVE_LINKFLAGS invocation.
15539
15540 2010-04-11  James Youngman  <jay@gnu.org>
15541
15542         close-stream: declare local scalars to be "const"
15543         * lib/close-stream.c (close_stream): Make boolean variables const
15544         to document the fact that we set but do not change them.
15545
15546 2010-04-11  Bruno Haible  <bruno@clisp.org>
15547
15548         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15549
15550 2010-04-11  Jim Meyering  <meyering@redhat.com>
15551
15552         maint.mk: don't include dist-check.mk
15553         * top/maint.mk: Remove bogus include directive.
15554
15555         maint.mk: improve empty-line-at-EOF check
15556         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15557         solution, rather than tail+Perl-based one.  The latter would read
15558         a few kilobytes from the end of each file, and did not handle empty
15559         files properly.
15560
15561         maint.mk: print the elapsed time for each syntax-check rule
15562         * top/maint.mk (sc_m_rules_): Save start time in a file.
15563         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15564         (local-check): Interpose the .z rules
15565
15566 2010-04-11  Jim Meyering  <meyering@redhat.com>
15567
15568         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15569         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15570         empty file with one that ends in an empty line.
15571
15572 2010-04-10  Bruno Haible  <bruno@clisp.org>
15573
15574         mkdir: Make it work on mingw64.
15575         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15576         * lib/mkdir.c: Update comment.
15577         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15578
15579 2010-04-10  Bruno Haible  <bruno@clisp.org>
15580
15581         Don't override improved macro from newer autoconf.
15582         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15583         autoconf >= 2.62.
15584         Reported by Joel E. Denny <jdenny@clemson.edu>.
15585
15586 2010-04-10  Jim Meyering  <meyering@redhat.com>
15587
15588         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15589         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15590
15591         maint.mk: correct a diagnostic
15592         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15593         in diagnostic; now use $prohibit.
15594
15595 2010-04-10  Bruno Haible  <address@hidden>
15596
15597         fchownat: Fix a C++ test error on Solaris 8.
15598         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15599         the function does not exist.
15600
15601 2010-04-10  Bruno Haible  <bruno@clisp.org>
15602
15603         vasnprintf: Add more tests.
15604         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15605         (test_function): Test converting an invalid wide string.
15606
15607         vasnprintf: Correct handling of unconvertible wide string arguments.
15608         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15609         VASNPRINTF.
15610         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15611         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15612         smaller than the expected maximum need for the directive. Set errno to
15613         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15614         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15616         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15617         * modules/vasnprintf (Files): Add m4/printf.m4.
15618         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15619
15620 2010-04-10  Bruno Haible  <bruno@clisp.org>
15621
15622         vasnprintf: Fix crash in %ls directive.
15623         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15624         string is passed as argument to %ls, with no precision and no width.
15625         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15626
15627 2010-04-10  Bruno Haible  <bruno@clisp.org>
15628
15629         vasnprintf: Fix multiple test failures on mingw.
15630         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15631         _snprintf, or snwprintf, not _snwprintf.
15632
15633 2010-04-10  Bruno Haible  <bruno@clisp.org>
15634
15635         write: Fix a C++ test error on mingw.
15636         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15637
15638 2010-04-10  Bruno Haible  <bruno@clisp.org>
15639
15640         vasnprintf test: Reduce code duplication.
15641         * tests/test-vasnprintf.c (test_function): New function, extracted from
15642         test_vasnprintf.
15643         (test_vasnprintf, test_asnprintf): Invoke it.
15644
15645 2010-04-10  Bruno Haible  <bruno@clisp.org>
15646
15647         strnlen: Fix warning in C++ mode on MacOS X.
15648         * lib/string.in.h (strnlen): Use the modern idiom.
15649         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15650         defining strnlen as a macro already in <config.h>.
15651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15652         REPLACE_STRNLEN.
15653         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15654         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15655
15656 2010-04-08  James Youngman  <jay@gnu.org>
15657
15658         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15659         the example.
15660
15661 2010-04-09  Jim Meyering  <meyering@redhat.com>
15662
15663         maint.mk: print better diagnostic when there is no $(_hv_file)
15664         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15665         announce that when $(_hv_file) (aka help-version) does not exist.
15666
15667         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15668         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15669         not try to interpret its random input bytes.  Jarno Rajahalme reported
15670         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15671         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15672         (mktempd_): Likewise, just in case.
15673
15674         ftruncate: add two years to projected module removal date: 2012
15675         * m4/ftruncate.m4: Adjust comments.
15676
15677         ftruncate: mark module as obsolete; even MinGW provides it, now
15678         * modules/ftruncate (Status): Obsolete.
15679         (Notice): Say that.
15680         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15681         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15682
15683 2010-04-08  Bruno Haible  <bruno@clisp.org>
15684
15685         Fix side effects from tests-related modules.
15686         * modules/dprintf-posix (Comment): New section.
15687         * modules/fprintf-posix (Comment): Likewise.
15688         * modules/obstack-printf-posix (Comment): Likewise.
15689         * modules/printf-posix (Comment): Likewise.
15690         * modules/snprintf-posix (Comment): Likewise.
15691         * modules/sprintf-posix (Comment): Likewise.
15692         * modules/vasnprintf-posix (Comment): Likewise.
15693         * modules/vasprintf-posix (Comment): Likewise.
15694         * modules/vdprintf-posix (Comment): Likewise.
15695         * modules/vfprintf-posix (Comment): Likewise.
15696         * modules/vprintf-posix (Comment): Likewise.
15697         * modules/vsnprintf-posix (Comment): Likewise.
15698         * modules/vsprintf-posix (Comment): Likewise.
15699         * modules/xprintf-posix (Comment): Likewise.
15700         * modules/xvasprintf-posix (Comment): Likewise.
15701         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15702         * modules/floorf-tests (Depends-on): Likewise.
15703         * modules/round-tests (Depends-on): Likewise.
15704         * modules/roundf-tests (Depends-on): Likewise.
15705         * modules/trunc-tests (Depends-on): Likewise.
15706         * modules/truncf-tests (Depends-on): Likewise.
15707         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15708         'fprintf-posix' module is not present.
15709         * tests/test-floorf2.c (check): Likewise.
15710         * tests/test-trunc2.c (check): Likewise.
15711         * tests/test-truncf2.c (check): Likewise.
15712         * tests/test-round2.c (equal): Likewise.
15713         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15714
15715 2010-04-07  Karl Berry  <karl@gnu.org>
15716
15717         * config/srclist.txt,
15718         * config/srclistvars.sh,
15719         * config/srclist-update: doc fixes.
15720
15721 2010-04-07  Jim Meyering  <meyering@redhat.com>
15722
15723         maint.mk: add a PATH crosschecking syntax-check rule
15724         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15725         Useful if you use a test like the one in help-version (coreutils,
15726         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15727         printed by prog --version.
15728
15729 2010-04-06  Bruno Haible  <bruno@clisp.org>
15730
15731         Fix link error on mingw.
15732         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15733         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15734
15735 2010-04-06  Bruno Haible  <bruno@clisp.org>
15736
15737         Assume rmdir exists.
15738         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15739
15740 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15741
15742         doc: update users.txt
15743         * users.txt: Add gcal.
15744
15745 2010-04-06  Jim Meyering  <meyering@redhat.com>
15746
15747         init.sh: simply unset TMPDIR rather than risking env -i
15748         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15749         although it probably works fine on all Unix-based systems, some
15750         systems (Cygwin?) cannot tolerate a totally cleared environment.
15751         Suggestion from Eric Blake.
15752
15753 2010-04-06  Jim Meyering  <meyering@redhat.com>
15754
15755         init.sh: portability fix: use env's POSIX-specified -i option not -u
15756         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15757         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15758
15759 2010-04-05  Bruno Haible  <bruno@clisp.org>
15760
15761         btowc: Work around Cygwin 1.7.2 bug.
15762         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15763         does not map NUL to 0.
15764         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15765
15766 2010-04-05  Bruno Haible  <bruno@clisp.org>
15767
15768         Make the multithread modules work on Cygwin 1.7.2.
15769         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15770         imported symbols can be declared weak, so that it returns "no" on
15771         Cygwin 1.7.2.
15772
15773 2010-04-05  Bruno Haible  <bruno@clisp.org>
15774
15775         Use the module 'strncat'.
15776         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15777
15778         Tests for module 'strncat'.
15779         * modules/strncat-tests: New file.
15780         * tests/test-strncat.c: New file.
15781
15782         New module 'strncat'.
15783         * lib/string.in.h (strncat): New declaration.
15784         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15785         * m4/strncat.m4: New file, based on m4/memchr.m4.
15786         * modules/strncat: New file.
15787         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15788         is declared.
15789         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15790         REPLACE_STRNCAT.
15791         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15792         REPLACE_STRNCAT.
15793         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15794         module.
15795         * tests/test-string-c++.cc: Check signature of strncat.
15796
15797 2010-04-05  Jim Meyering  <meyering@redhat.com>
15798
15799         xstrtoumax-tests: convert to use init.sh
15800         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15801         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15802         Use Exit, not exit.
15803         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15804
15805         xstrtoimax-tests: convert to use init.sh
15806         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15807         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15808         Use Exit, not exit.
15809         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15810
15811 2010-04-05  Bruno Haible  <bruno@clisp.org>
15812
15813         sys_socket: Avoid #define replacements in C++ mode.
15814         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15815         warning to the function if possible, rather than #defining the symbol
15816         to a dysfunctional alias.
15817
15818 2010-04-05  Bruno Haible  <bruno@clisp.org>
15819
15820         fseeko: Fix C++ test error on mingw.
15821         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15822         gl_FUNC_FSEEKO.
15823         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15824         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15825         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15826         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15827
15828 2010-04-05  Bruno Haible  <bruno@clisp.org>
15829
15830         duplocale: Improve test output.
15831         * tests/test-duplocale.c (main): Print reason for skipped test.
15832
15833 2010-04-05  Bruno Haible  <bruno@clisp.org>
15834
15835         Assume rmdir exists.
15836         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15837         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15838
15839 2010-04-05  Bruno Haible  <bruno@clisp.org>
15840
15841         Fix link error on Solaris 8 with cc.
15842         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15843
15844 2010-04-05  Bruno Haible  <bruno@clisp.org>
15845
15846         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15847         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15848
15849 2010-04-05  Bruno Haible  <bruno@clisp.org>
15850
15851         vasprintf: Update documentation.
15852         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15853
15854 2010-04-05  Bruno Haible  <bruno@clisp.org>
15855
15856         ptsname: Improve test.
15857         * tests/test-ptsname.c (main): Also try the various master names of BSD
15858         systems.
15859
15860 2010-04-05  Bruno Haible  <bruno@clisp.org>
15861
15862         memchr: Avoid a possible C++ test error.
15863         * lib/string.in.h (memchr): Provide declaration if function is missing.
15864         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15865         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15867         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15868
15869 2010-04-05  Bruno Haible  <bruno@clisp.org>
15870
15871         strtok_r: Improve idiom.
15872         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15873         AC_LIBOBJ is used.
15874
15875 2010-04-05  Bruno Haible  <bruno@clisp.org>
15876
15877         strdup: Improve idiom.
15878         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15879         AC_LIBOBJ is used.
15880         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15881         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15882         when AC_LIBOBJ is used.
15883
15884 2010-04-05  Bruno Haible  <bruno@clisp.org>
15885
15886         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15887         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15888         don't set REPLACE_MBSINIT to 1.
15889         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15890         don't set REPLACE_MBRTOWC to 1.
15891         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15892         exist, don't set REPLACE_MBSRTOWCS to 1.
15893         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15894         exist, don't set REPLACE_MBSNRTOWCS to 1.
15895         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15896         don't set REPLACE_WCRTOMB to 1.
15897         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15898         exist, don't set REPLACE_WCSRTOMBS to 1.
15899         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15900         exist, don't set REPLACE_WCSNRTOMBS to 1.
15901
15902 2010-04-05  Bruno Haible  <bruno@clisp.org>
15903
15904         ldexpl: Improve idiom.
15905         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15906         make sure to set HAVE_DECL_LDEXPL to 0.
15907
15908 2010-04-05  Jim Meyering  <meyering@redhat.com>
15909
15910         xstrtol-tests: convert to use init.sh
15911         * modules/xstrtol-tests (Files): Add tests/init.sh.
15912         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15913         Use Exit, not exit.
15914         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15915
15916         atexit-tests: convert to use init.sh
15917         * modules/atexit-tests (Files): Add tests/init.sh.
15918         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15919         Use Exit, not exit.
15920         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15921
15922         init.sh: fix typo
15923         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15924
15925         init.sh: make it easier for a test script to write to the tty, ...
15926         when using automake's parallel-tests mode.
15927         * tests/init.sh (stderr_fileno_): Define overridable variable.
15928         (warn_): New function, to use it.
15929         (fail_, skip_, framework_failure_): Use warn_.
15930
15931 2010-04-04  Bruno Haible  <bruno@clisp.org>
15932
15933         btowc: Avoid warning.
15934         * lib/btowc.c: Include <stdlib.h>.
15935         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15936
15937 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15938             Bruno Haible  <bruno@clisp.org>
15939
15940         wchar: Port to NetBSD 1.5.
15941         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15942         * lib/wctype.in.h (WEOF): Likewise.
15943
15944 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15945             Bruno Haible  <bruno@clisp.org>
15946
15947         Port extended stdio to NetBSD 1.5.
15948         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15949         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15950         older.
15951
15952 2010-04-04  Bruno Haible  <bruno@clisp.org>
15953
15954         string: Remove unused substitution.
15955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15956         HAVE_DECL_STRERROR.
15957         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15958
15959 2010-04-04  Bruno Haible  <bruno@clisp.org>
15960
15961         strtod: Avoid a possible C++ test error.
15962         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15963         set REPLACE_STRTOD.
15964
15965 2010-04-04  Bruno Haible  <bruno@clisp.org>
15966
15967         strerror: Update documentation.
15968         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15969
15970 2010-04-04  Bruno Haible  <bruno@clisp.org>
15971
15972         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15973         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15974         _GL_CXXALIAS_SYS_CAST.
15975
15976 2010-04-04  Bruno Haible  <bruno@clisp.org>
15977
15978         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15979         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15980         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15981         REPLACE_FREXPL to 1.
15982         * doc/posix-functions/frexpl.texi: Update documentation.
15983
15984 2010-04-04  Bruno Haible  <bruno@clisp.org>
15985
15986         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15987         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15988
15989 2010-04-04  Bruno Haible  <bruno@clisp.org>
15990
15991         Implement nanosleep for native Windows.
15992         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15993
15994 2010-04-04  Bruno Haible  <bruno@clisp.org>
15995
15996         math: Fix some C++ test errors on Solaris 8.
15997         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15998
15999 2010-04-04  Bruno Haible  <bruno@clisp.org>
16000
16001         math: Fix some C++ test errors on Cygwin.
16002         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16003         truncl): Provide declaration if the system does not have it.
16004         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16005         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16006         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16007         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16008         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16009         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16010         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16011         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16012         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16013         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16014         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16015         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16016         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16017         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16018         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16019         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16021         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16022         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16023         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16024         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16025         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16026
16027 2010-04-04  Bruno Haible  <bruno@clisp.org>
16028
16029         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16030         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16031         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16032         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16033         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16034         * m4/isinf.m4 (gl_ISINF): Likewise.
16035         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16036
16037 2010-04-04  Bruno Haible  <bruno@clisp.org>
16038
16039         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16040         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16041
16042 2010-04-04  Bruno Haible  <bruno@clisp.org>
16043
16044         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16045         * modules/tmpfile (configure.ac): Update.
16046
16047         tmpfile: Fix C++ test error on mingw.
16048         * lib/stdio.in.h (tmpfile): New declaration.
16049         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16050         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16051         * modules/tmpfile (Depends-on): Add stdio.
16052         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16053         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16054         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16055         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16056         REPLACE_TMPFILE.
16057         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16058
16059 2010-04-04  Bruno Haible  <bruno@clisp.org>
16060
16061         ioctl: Fix C++ test error on mingw.
16062         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16063         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16064         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16065
16066 2010-04-03  Bruno Haible  <bruno@clisp.org>
16067
16068         wcwidth: Fix C++ test error on mingw.
16069         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16071         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16072
16073 2010-04-03  Bruno Haible  <bruno@clisp.org>
16074
16075         nanosleep: Fix C++ test error on mingw.
16076         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16077         * lib/time.in.h (nanosleep): Use modern idiom.
16078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16079         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16080         REPLACE_NANOSLEEP to 1.
16081         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16082         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16083
16084 2010-04-03  Bruno Haible  <bruno@clisp.org>
16085
16086         strptime: Fix C++ test error on mingw.
16087         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16088         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16089         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16090         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16091         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16092         not REPLACE_STRPTIME.
16093         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16094         REPLACE_STRPTIME.
16095
16096 2010-04-03  Bruno Haible  <bruno@clisp.org>
16097
16098         timegm: Fix C++ test error on mingw.
16099         * lib/time.in.h (timegm): Use modern idiom.
16100         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16101         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16102         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16103         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16104
16105 2010-04-03  Bruno Haible  <bruno@clisp.org>
16106
16107         timegm: Assume declaration if function exists.
16108         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16109         if it exists. Don't clobber ac_cv_func_timegm.
16110
16111 2010-04-03  Bruno Haible  <bruno@clisp.org>
16112
16113         time_r: Fix C++ test error on mingw.
16114         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16115         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16116         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16117         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16118         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16119
16120 2010-04-03  Bruno Haible  <bruno@clisp.org>
16121
16122         time_r: Minor updates.
16123         * modules/time_r (Description): Mention the provided functions.
16124         * lib/time_r.c: Don't include <string.h>.
16125         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16126         * doc/posix-functions/localtime_r.texi: Likewise.
16127
16128 2010-04-03  Bruno Haible  <bruno@clisp.org>
16129
16130         time: Fix regression introduced on 2010-03-08.
16131         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16132         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16133
16134 2010-04-03  Jim Meyering  <meyering@redhat.com>
16135
16136         maint.mk: don't silently disable project-specific syntax-check rules
16137         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16138         that they need to convert their project-specific syntax-check rules
16139         to use the new _sc_search_regexp.
16140
16141 2010-04-03  Bruno Haible  <bruno@clisp.org>
16142
16143         fchdir: Fix regression introduced on 2010-03-08.
16144         * lib/unistd.in.h (fchdir): Fix declaration.
16145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16147         REPLACE_FCHDIR.
16148         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16149         REPLACE_FCHDIR.
16150
16151 2010-04-03  Bruno Haible  <bruno@clisp.org>
16152
16153         getpagesize: Fix C++ test error on mingw.
16154         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16155         system does not declare the function.
16156         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16157         declared.
16158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16159         HAVE_DECL_GETPAGESIZE.
16160         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16161
16162 2010-04-03  Bruno Haible  <bruno@clisp.org>
16163
16164         stdio: Make C++ tests work on mingw.
16165         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16166         does not declare the function.
16167
16168 2010-04-03  Bruno Haible  <bruno@clisp.org>
16169
16170         ftello: Fix C++ test error on mingw.
16171         * lib/stdio.in.h (ftello): Use modern idiom.
16172         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16173         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16174         is missing and that it needs to be replaced.
16175         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16177         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16178
16179 2010-04-03  Bruno Haible  <bruno@clisp.org>
16180
16181         fseeko: Fix C++ test error on mingw.
16182         * lib/stdio.in.h (fseeko): Use modern idiom.
16183         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16184         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16185         is missing and that it needs to be replaced.
16186         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16188         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16189
16190 2010-04-03  Bruno Haible  <bruno@clisp.org>
16191
16192         mkstemp: Fix C++ test error on mingw.
16193         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16194         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16195         function is missing and that it needs to be replaced.
16196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16197         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16198
16199 2010-04-03  Bruno Haible  <bruno@clisp.org>
16200
16201         stpncpy: Fix C++ test error on mingw.
16202         * lib/string.in.h (stpncpy): Use modern idiom.
16203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16204         function is missing and that it needs to be replaced.
16205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16206         REPLACE_STPNCPY.
16207         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16208
16209 2010-04-03  Bruno Haible  <bruno@clisp.org>
16210
16211         sys_stat: Fix C++ test error on mingw.
16212         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16213         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16214
16215 2010-04-03  Bruno Haible  <bruno@clisp.org>
16216
16217         pty: Update doc.
16218         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16219
16220 2010-04-03  Bruno Haible  <bruno@clisp.org>
16221
16222         unistd: Fix C++ test error on mingw.
16223         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16224
16225 2010-04-03  Bruno Haible  <bruno@clisp.org>
16226
16227         Update doc regarding mingw.
16228         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16229         * doc/glibc-functions/login_tty.texi: Likewise.
16230         * doc/glibc-functions/forkpty.texi: Likewise.
16231
16232 2010-04-03  Bruno Haible  <bruno@clisp.org>
16233
16234         stdlib: Avoid compilation failure of c-strtold on mingw.
16235         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16236
16237 2010-04-03  Bruno Haible  <bruno@clisp.org>
16238
16239         locale: Make C++ tests work on Cygwin and mingw.
16240         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16241         cannot provide the function.
16242         Reported by Simon Josefsson.
16243
16244 2010-04-03  Bruno Haible  <bruno@clisp.org>
16245
16246         localename: Port to MacOS X 10.6.
16247         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16248         memory layout of the locales in MacOS X 10.6 as well.
16249         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16250
16251 2010-04-02  Bruno Haible  <bruno@clisp.org>
16252
16253         gnulib-tool: Ensure that long-running tests are executed last.
16254         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16255         running tests after the one for the other tests.
16256
16257 2010-04-02  Bruno Haible  <bruno@clisp.org>
16258
16259         gnulib-tool: Ensure the tests in the main directory are executed first.
16260         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16261         start with the current directory.
16262
16263 2010-04-02  Bruno Haible  <bruno@clisp.org>
16264
16265         Tests for module 'havelib', moved here from GNU gettext.
16266         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16267         modifications.
16268         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16269         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16270         with modifications.
16271         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16272         modifications.
16273         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16274         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16275         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16276         with modifications.
16277         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16278         with modifications.
16279         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16280         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16281         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16282         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16283         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16284         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16285         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16286         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16287         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16288         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16289         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16290         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16291         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16292         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16293         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16294         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16295         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16296         with modifications.
16297         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16298         with modifications.
16299         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16300         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16301         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16302         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16303         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16304         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16305         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16306         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16307         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16308         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16309         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16310         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16311         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16312         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16313         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16314         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16315         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16316         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16317         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16318         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16319         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16320         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16321         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16322         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16323         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16324         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16325         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16326         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16327         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16328         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16329         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16330         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16331         * tests/havelib/rpathx/rpathx.c: New file, from
16332         gettext/autoconf-lib-link.
16333         * tests/havelib/rpathx/Makefile.am: New file, from
16334         gettext/autoconf-lib-link.
16335         * tests/havelib/rpathx/configure.ac: New file, from
16336         gettext/autoconf-lib-link with modifications.
16337         * tests/havelib/rpathy/rpathy.c: New file, from
16338         gettext/autoconf-lib-link.
16339         * tests/havelib/rpathy/Makefile.am: New file, from
16340         gettext/autoconf-lib-link.
16341         * tests/havelib/rpathy/configure.ac: New file, from
16342         gettext/autoconf-lib-link with modifications.
16343         * tests/havelib/rpathz/rpathz.c: New file, from
16344         gettext/autoconf-lib-link.
16345         * tests/havelib/rpathz/Makefile.am: New file, from
16346         gettext/autoconf-lib-link.
16347         * tests/havelib/rpathz/configure.ac: New file, from
16348         gettext/autoconf-lib-link with modifications.
16349         * tests/havelib/rpathlx/usex.c: New file, from
16350         gettext/autoconf-lib-link.
16351         * tests/havelib/rpathlx/Makefile.am: New file, from
16352         gettext/autoconf-lib-link.
16353         * tests/havelib/rpathlx/configure.ac: New file, from
16354         gettext/autoconf-lib-link with modifications.
16355         * tests/havelib/rpathly/usey.c: New file, from
16356         gettext/autoconf-lib-link.
16357         * tests/havelib/rpathly/Makefile.am: New file, from
16358         gettext/autoconf-lib-link.
16359         * tests/havelib/rpathly/configure.ac: New file, from
16360         gettext/autoconf-lib-link with modifications.
16361         * tests/havelib/rpathlz/usez.c: New file, from
16362         gettext/autoconf-lib-link.
16363         * tests/havelib/rpathlz/Makefile.am: New file, from
16364         gettext/autoconf-lib-link.
16365         * tests/havelib/rpathlz/configure.ac: New file, from
16366         gettext/autoconf-lib-link with modifications.
16367         * tests/havelib/rpathlyx/usey.c: New file, from
16368         gettext/autoconf-lib-link.
16369         * tests/havelib/rpathlyx/Makefile.am: New file, from
16370         gettext/autoconf-lib-link.
16371         * tests/havelib/rpathlyx/configure.ac: New file, from
16372         gettext/autoconf-lib-link with modifications.
16373         * tests/havelib/rpathlzyx/usez.c: New file, from
16374         gettext/autoconf-lib-link.
16375         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16376         gettext/autoconf-lib-link.
16377         * tests/havelib/rpathlzyx/configure.ac: New file, from
16378         gettext/autoconf-lib-link with modifications.
16379         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16380         with modifications.
16381
16382 2010-04-02  Bruno Haible  <bruno@clisp.org>
16383
16384         gnulib-tool: Create distributed built sources also for the tests.
16385         * gnulib-tool (func_create_testdir): Also generate distributed built
16386         sources in the tests directory.
16387
16388 2010-04-02  Bruno Haible  <bruno@clisp.org>
16389
16390         gnulib-tool: Obey user's environment variables.
16391         * gnulib-tool (func_create_testdir): When creating built sources,
16392         respect the environment variables for autoconf, automake, etc. given by
16393         the user.
16394
16395 2010-04-02  Bruno Haible  <bruno@clisp.org>
16396
16397         gnulib-tool: Provide the value of --m4-base to modules.
16398         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16399         of gl_m4_base.
16400
16401 2010-04-02  Eric Blake  <eblake@redhat.com>
16402
16403         maint.mk: fix some fallout
16404         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16405         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16406
16407 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16408
16409         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16410         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16411         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16412         (sc_cast_of_x_alloc_return_value): Likewise.
16413         (sc_cast_of_alloca_return_value): Likewise.
16414         (sc_space_tab): Likewise.
16415         (sc_prohibit_atoi_atof): Likewise.
16416         (sc_prohibit_magic_number_exit): Likewise.
16417         (sc_error_exit_success): Likewise.
16418         (sc_file_system): Likewise.
16419         (sc_prohibit_have_config_h): Likewise.
16420         (sc_require_config_h): Likewise.
16421         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16422         (sc_obsolete_symbols): Likewise.
16423         (sc_changelog): Likewise.
16424         (sc_program_name): Likewise.
16425         (sc_the_the): Likewise.
16426         (sc_trailing_blank): Likewise.
16427         (sc_two_space_separator_in_usage): Likewise.
16428         (sc_useless_cpp_parens): Likewise.
16429         (sc_GPL_version): Likewise.
16430         (sc_GFDL_version): Likewise.
16431         (sc_texinfo_acronym): Likewise.
16432         (sc_prohibit_cvs_keyword): Likewise.
16433         (sc_prohibit_stat_st_blocks): Likewise.
16434         (sc_prohibit_S_IS_definition): Likewise.
16435         (sc_redundant_const): Likewise.
16436         (sc_makefile_TAB_only_indentation): Likewise.
16437         (sc_m4_quote_check): Likewise.
16438         (sc_makefile_path_separator_check): Likewise.
16439         (sc_copyright_check): Likewise.
16440         (sc_Wundef_boolean): Likewise.
16441         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16442
16443         maint.mk: match 0 or more whitespace-before-function-call '('
16444         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16445         that have zero or two-and-more spaces between the function name
16446         and the open parenthesis.
16447         (sc_error_message_warn_fatal): Likewise.
16448         (sc_error_message_uppercase): Likewise.
16449         (sc_error_message_period): Likewise.
16450
16451 2010-03-31  Eric Blake  <eblake@redhat.com>
16452
16453         maint.mk: check for [ as well as test
16454         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16455         Based on a libvirt report by Matthias Bolte.
16456
16457         gnumakefile: don't squelch _version output
16458         * top/GNUmakefile (_version): Create one-shot dependency rather
16459         than using $(shell) when version must be regenerated.
16460         (_autoreconf): Run verbosely, by default.
16461
16462         sys_time: avoid compiler warnings
16463         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16464         unconditional, fixing regression from 2010-03-29.
16465         Reported by Simon Josefsson.
16466
16467 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16468
16469         maint.mk: s/_header_without_use/_sc_header_without_use/
16470         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16471         (sc_prohibit_assert_without_use): Use the new name.
16472         (sc_prohibit_close_stream_without_use): Likewise.
16473         (sc_prohibit_getopt_without_use): Likewise.
16474         (sc_prohibit_quotearg_without_use): Likewise.
16475         (sc_prohibit_quote_without_use): Likewise.
16476         (sc_prohibit_long_options_without_use): Likewise.
16477         (sc_prohibit_inttostr_without_use): Likewise.
16478         (sc_prohibit_ignore_value_without_use): Likewise.
16479         (sc_prohibit_error_without_use): Likewise.
16480         (sc_prohibit_xalloc_without_use): Likewise.
16481         (sc_prohibit_hash_without_use): Likewise.
16482         (sc_prohibit_hash_pjw_without_use): Likewise.
16483         (sc_prohibit_safe_read_without_use): Likewise.
16484         (sc_prohibit_argmatch_without_use): Likewise.
16485         (sc_prohibit_canonicalize_without_use): Likewise.
16486         (sc_prohibit_root_dev_ino_without_use): Likewise.
16487         (sc_prohibit_openat_without_use): Likewise.
16488         (sc_prohibit_c_ctype_without_use): Likewise.
16489         (sc_prohibit_signal_without_use): Likewise.
16490         (sc_prohibit_intprops_without_use): Likewise.
16491
16492 2010-03-30  Eric Blake  <eblake@redhat.com>
16493
16494         maint: improve module indicators
16495         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16496         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16497         columns, and avoid extra macro expansion.
16498
16499         fdopendir: work around FreeBSD bug
16500         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16501         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16502         * modules/dirent (Makefile.am): Substitute it.
16503         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16504         declaration.
16505         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16506         fix.
16507         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16508
16509 2010-03-29  Bruno Haible  <bruno@clisp.org>
16510
16511         Emit #pragma system_header after the inclusion guard, not before.
16512         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16513         guard that spans the entire file, not before. This enables an
16514         optimization in GCC's preprocessor.
16515         * lib/ctype.in.h: Likewise.
16516         * lib/dirent.in.h: Likewise.
16517         * lib/errno.in.h: Likewise.
16518         * lib/float.in.h: Likewise.
16519         * lib/getopt.in.h: Likewise.
16520         * lib/iconv.in.h: Likewise.
16521         * lib/langinfo.in.h: Likewise.
16522         * lib/locale.in.h: Likewise.
16523         * lib/math.in.h: Likewise.
16524         * lib/netdb.in.h: Likewise.
16525         * lib/netinet_in.in.h: Likewise.
16526         * lib/pty.in.h: Likewise.
16527         * lib/sched.in.h: Likewise.
16528         * lib/se-selinux.in.h: Likewise.
16529         * lib/search.in.h: Likewise.
16530         * lib/spawn.in.h: Likewise.
16531         * lib/stdarg.in.h: Likewise.
16532         * lib/stdint.in.h: Likewise.
16533         * lib/string.in.h: Likewise.
16534         * lib/strings.in.h: Likewise.
16535         * lib/sys_file.in.h: Likewise.
16536         * lib/sys_ioctl.in.h: Likewise.
16537         * lib/sys_time.in.h: Likewise.
16538         * lib/sys_times.in.h: Likewise.
16539         * lib/sys_utsname.in.h: Likewise.
16540         * lib/sys_wait.in.h: Likewise.
16541         * lib/sysexits.in.h: Likewise.
16542         * lib/wctype.in.h: Likewise.
16543
16544 2010-03-28  James Youngman  <jay@gnu.org>
16545
16546         save-cwd: don't leak a file descriptor when the caller execs.
16547         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16548         saved file descriptor.
16549         * modules/save-cwd (Depends-on): Depend on cloexec.
16550
16551 2010-03-29  Bruno Haible  <bruno@clisp.org>
16552
16553         Remove vestiges of fts-lgpl module.
16554         * lib/fts_.h: Assume GNULIB_FTS is 1.
16555         * lib/fts.c: Likewise.
16556         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16557
16558 2010-03-28  Bruno Haible  <bruno@clisp.org>
16559
16560         Fix definition of tests witness macro.
16561         * gnulib-tool (func_import): Fix definition of witness macro.
16562
16563 2010-03-28  Bruno Haible  <bruno@clisp.org>
16564
16565         Fix ioctl's protoype on glibc systems.
16566         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16567         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16568         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16569         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16570         signature. If not, arrange to replace the ioctl function.
16571         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16572         REPLACE_IOCTL.
16573         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16574         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16575         Reported by Ludovic Courtès <ludo@gnu.org>.
16576
16577 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16578
16579         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16580         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16581         made it so grep -r --include=GLOB* ... did not work.
16582
16583 2010-03-26  Jim Meyering  <meyering@redhat.com>
16584             Eric Blake  <eblake@redhat.com>
16585
16586         maint.mk: prohibit use of test's -o and -a operators
16587         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16588
16589 2010-03-28  Bruno Haible  <bruno@clisp.org>
16590
16591         Remove unused GNULIB_XYZ macro definitions.
16592         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16593         invocation.
16594
16595 2010-03-28  Bruno Haible  <bruno@clisp.org>
16596
16597         Mark privileged tests modules.
16598         * modules/idpriv-drop-tests (Status): New section.
16599         * modules/idpriv-droptemp-tests (Status): New section.
16600
16601 2010-03-28  Bruno Haible  <bruno@clisp.org>
16602
16603         Split C++ tests into separate tests modules.
16604         * modules/dirent-c++-tests: New file, extracted from
16605         modules/dirent-tests.
16606         * modules/dirent-tests: Depend on it.
16607         * modules/fcntl-h-c++-tests: New file, extracted from
16608         modules/fcntl-h-tests.
16609         * modules/fcntl-h-tests: Depend on it.
16610         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16611         * modules/glob-tests: Depend on it.
16612         * modules/iconv-h-c++-tests: New file, extracted from
16613         modules/iconv-h-tests.
16614         * modules/iconv-h-tests: Depend on it.
16615         * modules/langinfo-c++-tests: New file, extracted from
16616         modules/langinfo-tests.
16617         * modules/langinfo-tests: Depend on it.
16618         * modules/locale-c++-tests: New file, extracted from
16619         modules/locale-tests.
16620         * modules/locale-tests: Depend on it.
16621         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16622         * modules/math-tests: Depend on it.
16623         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16624         * modules/pty-tests: Depend on it.
16625         * modules/search-c++-tests: New file, extracted from
16626         modules/search-tests.
16627         * modules/search-tests: Depend on it.
16628         * modules/signal-c++-tests: New file, extracted from
16629         modules/signal-tests.
16630         * modules/signal-tests: Depend on it.
16631         * modules/spawn-c++-tests: New file, extracted from
16632         modules/spawn-tests.
16633         * modules/spawn-tests: Depend on it.
16634         * modules/stdio-c++-tests: New file, extracted from
16635         modules/stdio-tests.
16636         * modules/stdio-tests: Depend on it.
16637         * modules/stdlib-c++-tests: New file, extracted from
16638         modules/stdlib-tests.
16639         * modules/stdlib-tests: Depend on it.
16640         * modules/string-c++-tests: New file, extracted from
16641         modules/string-tests.
16642         * modules/string-tests: Depend on it.
16643         * modules/sys_ioctl-c++-tests: New file, extracted from
16644         modules/sys_ioctl-tests.
16645         * modules/sys_ioctl-tests: Depend on it.
16646         * modules/sys_select-c++-tests: New file, extracted from
16647         modules/sys_select-tests.
16648         * modules/sys_select-tests: Depend on it.
16649         * modules/sys_socket-c++-tests: New file, extracted from
16650         modules/sys_socket-tests.
16651         * modules/sys_socket-tests: Depend on it.
16652         * modules/sys_stat-c++-tests: New file, extracted from
16653         modules/sys_stat-tests.
16654         * modules/sys_stat-tests: Depend on it.
16655         * modules/sys_time-c++-tests: New file, extracted from
16656         modules/sys_time-tests.
16657         * modules/sys_time-tests: Depend on it.
16658         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16659         * modules/time-tests: Depend on it.
16660         * modules/unistd-c++-tests: New file, extracted from
16661         modules/unistd-tests.
16662         * modules/unistd-tests: Depend on it.
16663         * modules/wchar-c++-tests: New file, extracted from
16664         modules/wchar-tests.
16665         * modules/wchar-tests: Depend on it.
16666         * modules/wctype-c++-tests: New file, extracted from
16667         modules/wctype-tests.
16668         * modules/wctype-tests: Depend on it.
16669         Reported by Simon Josefsson.
16670
16671 2010-03-28  Bruno Haible  <bruno@clisp.org>
16672
16673         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16674         * gnulib-tool (func_exists_module): New function, extracted from
16675         func_verify_module.
16676         (func_verify_module): Use it.
16677         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16678         'foo' only if 'foo' exists.
16679         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16680         module.
16681
16682 2010-03-28  Bruno Haible  <bruno@clisp.org>
16683
16684         gnulib-tool: Add support for special categories of tests.
16685         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16686         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16687         (func_usage): Document them.
16688         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16689         inc_unportable_tests, inc_all_tests): New variables.
16690         (func_acceptable): Consider these variables.
16691         (func_modules_transitive_closure): Make it work when the 'Status' field
16692         consists of multiple words.
16693         (func_import): Store and restore the values of inc_cxx_tests,
16694         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16695         inc_all_tests in gnulib-comp.m4.
16696         (func_create_testdir): Set inc_all_tests to true.
16697         * doc/gnulib.texi (Extra tests modules): New section.
16698         Suggested by Jim Meyering.
16699
16700 2010-03-28  Bruno Haible  <bruno@clisp.org>
16701
16702         ansi-c++-opt: Allow turning off the C++ build by default.
16703         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16704         gl_CXX_CHOICE_DEFAULT_NO is defined.
16705         Requested by Eric Blake.
16706
16707 2010-03-28  Bruno Haible  <bruno@clisp.org>
16708
16709         unistd: Avoid #define replacements in C++ mode.
16710         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16711         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16712         setsockopt, shutdown, select): In C++, attach a warning to the function
16713         if possible, rather than #defining the symbol to a dysfunctional alias.
16714         Reported by John W. Eaton <jwe@gnu.org>.
16715
16716 2010-03-28  Bruno Haible  <bruno@clisp.org>
16717
16718         Fix link errors on mingw.
16719         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16720         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16721         $(LIBSOCKET).
16722         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16723         $(LIBSOCKET).
16724
16725 2010-03-28  Bruno Haible  <bruno@clisp.org>
16726             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16727
16728         lib-ignore: Determine different options for different compilers.
16729         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16730         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16731         Add comments.
16732         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16733         * NEWS: Mention the change.
16734
16735 2010-03-27  Bruno Haible  <bruno@clisp.org>
16736
16737         Remove unused GNULIB_XYZ macro definitions.
16738         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16739         * modules/fseek (configure.ac): Likewise.
16740         * modules/ioctl (configure.ac): Likewise.
16741         * modules/open (configure.ac): Likewise.
16742         * modules/stdlib-safer (configure.ac): Likewise.
16743
16744 2010-03-27  Bruno Haible  <bruno@clisp.org>
16745
16746         Add a remark about certain modules.
16747         * modules/malloc (Comment): New section.
16748         * modules/realloc (Comment): Likewise.
16749         * modules/sigpipe (Comment): Likewise.
16750
16751 2010-03-27  Bruno Haible  <bruno@clisp.org>
16752
16753         Resolve conflict between the two kinds of module indicators.
16754         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16755         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16756         * modules/canonicalize (configure.ac): Invoke
16757         gl_MODULE_INDICATOR_FOR_TESTS.
16758         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16759         GNULIB_XYZ.
16760         * tests/test-dirent-c++.cc: Likewise.
16761         * tests/test-dirent-safer.c: Likewise.
16762         * tests/test-dup2.c: Likewise.
16763         * tests/test-fchdir.c: Likewise.
16764         * tests/test-fcntl-h-c++.cc: Likewise.
16765         * tests/test-getopt.c: Likewise.
16766         * tests/test-getopt.h: Likewise.
16767         * tests/test-langinfo-c++.cc: Likewise.
16768         * tests/test-locale-c++.cc: Likewise.
16769         * tests/test-math-c++.cc: Likewise.
16770         * tests/test-pty-c++.cc: Likewise.
16771         * tests/test-search-c++.cc: Likewise.
16772         * tests/test-signal-c++.cc: Likewise.
16773         * tests/test-spawn-c++.cc: Likewise.
16774         * tests/test-stdio-c++.cc: Likewise.
16775         * tests/test-stdlib-c++.cc: Likewise.
16776         * tests/test-string-c++.cc: Likewise.
16777         * tests/test-sys_ioctl-c++.cc: Likewise.
16778         * tests/test-sys_select-c++.cc: Likewise.
16779         * tests/test-sys_socket-c++.cc: Likewise.
16780         * tests/test-sys_stat-c++.cc: Likewise.
16781         * tests/test-sys_time-c++.cc: Likewise.
16782         * tests/test-time-c++.cc: Likewise.
16783         * tests/test-unistd-c++.cc: Likewise.
16784         * tests/test-wchar-c++.cc: Likewise.
16785         * tests/uninorm/test-u8-nfc.c: Likewise.
16786         * tests/uninorm/test-u8-nfd.c: Likewise.
16787         * tests/uninorm/test-u8-nfkc.c: Likewise.
16788         * tests/uninorm/test-u8-nfkd.c: Likewise.
16789         * tests/uninorm/test-u16-nfc.c: Likewise.
16790         * tests/uninorm/test-u16-nfd.c: Likewise.
16791         * tests/uninorm/test-u16-nfkc.c: Likewise.
16792         * tests/uninorm/test-u16-nfkd.c: Likewise.
16793         * tests/uninorm/test-u32-nfc.c: Likewise.
16794         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16795         * tests/uninorm/test-u32-nfd.c: Likewise.
16796         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16797         * tests/uninorm/test-u32-nfkc.c: Likewise.
16798         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16799         * tests/uninorm/test-u32-nfkd.c: Likewise.
16800         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16801         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16802
16803 2010-03-27  Bruno Haible  <bruno@clisp.org>
16804
16805         Distinguish two kinds of module indicators.
16806         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16807         gl_MODULE_INDICATOR.
16808         (gl_MODULE_INDICATOR): New macro.
16809         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16810         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16811         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16812         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16813         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16814         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16815         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16816         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16817         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16818         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16819         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16820         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16822         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16823         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16824         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16825         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16826         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16827         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16828         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16829         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16830         * modules/cloexec (configure.ac): Likewise.
16831         * modules/getopt-gnu (configure.ac): Likewise.
16832         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16833         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16834         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16835         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16836
16837 2010-03-27  Bruno Haible  <bruno@clisp.org>
16838
16839         New module description field 'Comment'.
16840         * gnulib-tool: New option --extract-comment.
16841         (func_usage): Document it.
16842         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16843         (func_get_comment): New function.
16844         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16845
16846 2010-03-27  Bruno Haible  <bruno@clisp.org>
16847
16848         Addendum to 2010-02-07 commit.
16849         * gnulib-tool (func_usage): Document --extract-applicability option.
16850
16851 2010-03-27  Bruno Haible  <bruno@clisp.org>
16852
16853         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16854         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16855         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16856         rather than link errors.
16857
16858 2010-03-27  Bruno Haible  <bruno@clisp.org>
16859
16860         Avoid side effects from tests-related modules on the compilation of lib.
16861         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16862         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16863         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16864         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16865         macro.
16866         (func_import): Define a witness macro. Assign it a value that depends
16867         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16868         tests-related modules.
16869         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16870         Reported by Jim Meyering.
16871
16872 2010-03-27  Bruno Haible  <bruno@clisp.org>
16873
16874         Factorize common .m4 code.
16875         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16876         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16877         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16878         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16879         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16880         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16881         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16882         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16883         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16884         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16885         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16886         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16887         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16888         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16889         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16890         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16891         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16892         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16894         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16895         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16896         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16897         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16898         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16899         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16900         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16901         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16902         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16903         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16904         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16905         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16906         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16907
16908 2010-03-27  Bruno Haible  <bruno@clisp.org>
16909
16910         Fix a compilation error on Cygwin with g++ >= 4.3.
16911         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16912         if it is undefined or if we alias it to chmod.
16913         (lstat): Don't warn about the use of this function if it is undefined
16914         or if we alias it to stat.
16915         Reported by Simon Josefsson.
16916
16917 2010-03-27  Bruno Haible  <bruno@clisp.org>
16918
16919         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16920         * modules/getlogin (configure.ac): Update.
16921
16922         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16923         * modules/getlogin_r (configure.ac): Update.
16924
16925         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16927         * modules/inet_ntop (configure.ac): Update.
16928
16929         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16930         * modules/inet_pton (configure.ac): Update.
16931
16932         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16933         * modules/mbslen (configure.ac): Update.
16934
16935         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16936         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16937         * modules/forkpty (configure.ac): Update.
16938         * modules/openpty (configure.ac): Update.
16939
16940 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16941
16942         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16943         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16944
16945 2010-03-25  Eric Blake  <eblake@redhat.com>
16946
16947         maint: use pragma consistently across replacement headers
16948         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16949         * lib/dirent.in.h (system_header): Likewise.
16950         * lib/errno.in.h (system_header): Likewise.
16951         * lib/float.in.h (system_header): Likewise.
16952         * lib/getopt.in.h (system_header): Likewise.
16953         * lib/iconv.in.h (system_header): Likewise.
16954         * lib/inttypes.in.h (system_header): Likewise.
16955         * lib/langinfo.in.h (system_header): Likewise.
16956         * lib/locale.in.h (system_header): Likewise.
16957         * lib/math.in.h (system_header): Likewise.
16958         * lib/netdb.in.h (system_header): Likewise.
16959         * lib/netinet_in.in.h (system_header): Likewise.
16960         * lib/pty.in.h (system_header): Likewise.
16961         * lib/sched.in.h (system_header): Likewise.
16962         * lib/se-selinux.in.h (system_header): Likewise.
16963         * lib/search.in.h (system_header): Likewise.
16964         * lib/spawn.in.h (system_header): Likewise.
16965         * lib/stdarg.in.h (system_header): Likewise.
16966         * lib/stdint.in.h (system_header): Likewise.
16967         * lib/string.in.h (system_header): Likewise.
16968         * lib/strings.in.h (system_header): Likewise.
16969         * lib/sys_file.in.h (system_header): Likewise.
16970         * lib/sys_ioctl.in.h (system_header): Likewise.
16971         * lib/sys_socket.in.h (system_header): Likewise.
16972         * lib/sys_times.in.h (system_header): Likewise.
16973         * lib/sys_utsname.in.h (system_header): Likewise.
16974         * lib/sys_wait.in.h (system_header): Likewise.
16975         * lib/sysexits.in.h (system_header): Likewise.
16976         * lib/unistd.in.h (system_header): Likewise.
16977         * lib/wctype.in.h (system_header): Likewise.
16978
16979         arpa/inet: fix mingw compilation warning
16980         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16981         Reported by Matthew Bolte.
16982
16983 2010-03-25  Bruno Haible  <bruno@clisp.org>
16984
16985         Avoid collision between gnulib wrapper and libintl wrapper.
16986         * lib/printf.c (printf): Don't define if a printf wrapper is already
16987         defined in intl/printf.c.
16988         Reported by Michel Boaventura <michel@michelboaventura.com>.
16989
16990 2010-03-25  Bruno Haible  <bruno@clisp.org>
16991
16992         Use ANSI C.
16993         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16994
16995 2010-03-25  Bruno Haible  <bruno@clisp.org>
16996
16997         Minor formatting changes.
16998         * lib/acosl.c: Insert space before function argument list.
16999         * lib/argz.c: Likewise.
17000         * lib/asinl.c: Likewise.
17001         * lib/expl.c: Likewise.
17002         * lib/gen-uni-tables.c: Likewise.
17003         * lib/gettext.h: Likewise.
17004         * lib/glthread/lock.h: Likewise.
17005         * lib/tanl.c: Likewise.
17006         * lib/uniname/uniname.c: Likewise.
17007         * tests/test-idpriv-drop.c: Likewise.
17008         * tests/test-idpriv-droptemp.c: Likewise.
17009         * tests/test-lock.c: Likewise.
17010         * tests/test-tls.c: Likewise.
17011         * lib/argp-help.c: Insert space before function-like macro argument
17012         list.
17013         * lib/memcmp.c: Likewise.
17014         * tests/test-base64.c: Likewise.
17015         * lib/localename.c: Insert space before sizeof's argument list.
17016         * lib/safe-alloc.h: Likewise.
17017         * lib/file-set.h: Insert space before macro argument list.
17018         * tests/test-argp.c: Likewise.
17019         * lib/argp-namefrob.h: Insert space before function parameter list.
17020         * lib/getaddrinfo.c: Likewise.
17021         * lib/netdb.in.h: Likewise.
17022         * lib/parse-duration.h: Likewise.
17023         * lib/parse-duration.c: Likewise.
17024         * lib/poll.c: Likewise.
17025         * lib/select.c: Likewise.
17026         * lib/trim.h: Likewise.
17027         * tests/test-usleep.c: Likewise.
17028         * lib/ldexpl.c: Insert space before function parameter list and before
17029         function argument list.
17030         * lib/logl.c: Likewise.
17031         * lib/sqrtl.c: Likewise.
17032         * lib/trim.c: Likewise.
17033         * lib/cosl.c: Use GNU style indentation. Insert space before function
17034         argument list.
17035         * lib/sinl.c: Likewise.
17036         * lib/tsearch.c: Insert space after 'for'.
17037         Reported by Jim Meyering.
17038
17039 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17040
17041         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17042         config header before grepping, as it's not present before
17043         autoreconf/configure are run.  Reported by Simon Josefsson.
17044
17045 2010-03-23  Bruno Haible  <bruno@clisp.org>
17046
17047         pt_chown: Make it work with automake < 1.11.
17048         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17049         Reported by Simon Josefsson.
17050
17051 2010-03-23  Bruno Haible  <bruno@clisp.org>
17052
17053         pt_chown: Don't depend on GPLed modules.
17054         * lib/pt_chown.c: Don't include idpriv.h.
17055         (main): Don't drop privileges.
17056         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17057         Reported by Simon Josefsson.
17058
17059 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17060
17061         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17062         suggestions from karl@freefriends.org (Karl Berry).
17063
17064 2010-03-22  Eric Blake  <eblake@redhat.com>
17065
17066         gethostname: further tweaks
17067         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17068         are overriding gethostname.
17069         Suggested by Bruno Haible.
17070
17071 2010-03-21  Bruno Haible  <bruno@clisp.org>
17072
17073         Fix comments.
17074         * lib/forkpty.c (rpl_forkpty): Fix comment.
17075         * lib/openpty.c (rpl_openpty): Likewise.
17076         Reported by Eric Blake.
17077
17078 2010-03-22  Eric Blake  <eblake@redhat.com>
17079
17080         gethostname: fix build on mingw
17081         * lib/unistd.in.h (includes): Work around fact that mingw
17082         <winsock2.h> re-includes <unistd.h>, by avoiding any
17083         redeclarations if we are being included by <winsock2.h>.
17084         Reported by Matthias Bolte.
17085
17086 2010-03-21  Bruno Haible  <bruno@clisp.org>
17087
17088         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17089         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17090         modifications.
17091         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17092         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17093         provide the replacement.
17094         * modules/forkpty (Depends-on): Add openpty, login_tty.
17095         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17096         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17097         * doc/glibc-functions/forkpty.texi: More supported platforms.
17098         * config/srclist.txt: Add forkpty.c (commented).
17099
17100 2010-03-21  Bruno Haible  <bruno@clisp.org>
17101
17102         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17103         (Makefile.am): Verify that PTY_LIB is defined.
17104
17105         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17106
17107 2010-03-21  Bruno Haible  <bruno@clisp.org>
17108
17109         Tests for module 'login_tty'.
17110         * modules/login_tty-tests: New file.
17111         * tests/test-login_tty.c: New file.
17112
17113         New module 'login_tty'.
17114         * lib/login_tty.c: New file.
17115         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17116         * modules/login_tty: New file.
17117         * doc/glibc-functions/login_tty.texi: Mention the new module.
17118
17119 2010-03-21  Bruno Haible  <bruno@clisp.org>
17120
17121         login_tty: Documentation.
17122         * doc/glibc-functions/login_tty.texi: New file.
17123         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17124
17125 2010-03-21  Bruno Haible  <bruno@clisp.org>
17126
17127         pty: Consistent macro naming.
17128         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17129         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17130         * modules/pty (configure.ac): Update.
17131
17132 2010-03-21  Bruno Haible  <bruno@clisp.org>
17133
17134         Tests for openpty: Make stricter.
17135         * tests/test-openpty.c (main): Add test of canonical processing and
17136         erase.
17137         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17138
17139         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17140         * lib/openpty.c (openpty): New replacement function.
17141         * lib/pty.in.h: Include <termios.h>.
17142         (openpty): Update declaration. Add comments.
17143         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17144         is not declared, arrange to provide the replacement. Check for _getpty
17145         and posix_openpt.
17146         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17147         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17148         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17149         * modules/pty-tests (test_pty_c___LDADD): New variable.
17150         * doc/glibc-functions/openpty.texi: More supported platforms.
17151
17152 2010-03-21  Bruno Haible  <bruno@clisp.org>
17153
17154         setenv: Tweaks.
17155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17156         the test program.
17157         * doc/posix-functions/setenv.texi: Update platforms list.
17158
17159 2010-03-21  Bruno Haible  <bruno@clisp.org>
17160
17161         New module 'unlockpt'.
17162         * lib/unlockpt.c: New file, from glibc with modifications.
17163         * m4/unlockpt.m4: New file.
17164         * modules/unlockpt: New file.
17165         * lib/stdlib.in.h (unlockpt): New declaration.
17166         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17167         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17168         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17169         HAVE_UNLOCKPT.
17170         * doc/posix-functions/unlockpt.texi: Mention the new module.
17171         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17172         * config/srclist.txt: Add unlockpt.c (commented).
17173
17174 2010-03-21  Jim Meyering  <meyering@redhat.com>
17175
17176         maint.mk: prohibit inclusion of "intprops.h" without use
17177         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17178
17179 2010-03-21  Bruno Haible  <bruno@clisp.org>
17180
17181         New module 'grantpt'.
17182         * lib/grantpt.c: New file, from glibc with modifications.
17183         * m4/grantpt.m4: New file.
17184         * modules/grantpt: New file.
17185         * lib/stdlib.in.h (grantpt): New declaration.
17186         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17187         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17188         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17189         HAVE_GRANTPT.
17190         * doc/posix-functions/grantpt.texi: Mention the new module.
17191         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17192         * config/srclist.txt: Add grantpt.c (commented).
17193
17194 2010-03-21  Bruno Haible  <bruno@clisp.org>
17195
17196         New module 'pt_chown'.
17197         * lib/pt_chown.c: New file, from glibc with modifications.
17198         * lib/pty-private.h: New file, from glibc with modifications.
17199         * modules/pt_chown: New file.
17200         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17201
17202 2010-03-21  Bruno Haible  <bruno@clisp.org>
17203
17204         Tests for module 'ptsname'.
17205         * modules/ptsname-tests: New file.
17206         * tests/test-ptsname.c: New file.
17207
17208         New module 'ptsname'.
17209         * lib/ptsname.c: New file, from glibc with modifications.
17210         * m4/ptsname.m4: New file.
17211         * modules/ptsname: New file.
17212         * lib/stdlib.in.h (ptsname): New declaration.
17213         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17214         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17215         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17216         HAVE_PTSNAME.
17217         * doc/posix-functions/ptsname.texi: Mention the new module.
17218         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17219         * config/srclist.txt: Add ptsname.c (commented).
17220
17221 2010-03-21  Bruno Haible  <bruno@clisp.org>
17222
17223         Tests for module 'ttyname_r'.
17224         * modules/ttyname_r-tests: New file.
17225         * tests/test-ttyname_r.c: New file.
17226
17227         New module 'ttyname_r'.
17228         * lib/ttyname_r.c: New file.
17229         * m4/ttyname_r.m4: New file.
17230         * modules/ttyname_r: New file.
17231         * lib/unistd.in.h (ttyname_r): New declaration.
17232         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17233         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17234         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17235         HAVE_TTYNAME_R.
17236         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17237         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17238
17239 2010-03-20  Bruno Haible  <bruno@clisp.org>
17240
17241         signal: Undefine macro definitions in C++ mode.
17242         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17243         sigfillset): Undefine macro definitions from the system header in C++
17244         mode.
17245         Reported by John W. Eaton <jwe@gnu.org>.
17246
17247 2010-03-20  Bruno Haible  <bruno@clisp.org>
17248
17249         Ensure no #include statements inside extern "C" { ... }.
17250         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17251         contain #include statements.
17252         * lib/time.in.h: Likewise.
17253
17254 2010-03-20  Bruno Haible  <bruno@clisp.org>
17255
17256         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17257         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17258         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17259         Reported by John W. Eaton <jwe@gnu.org>.
17260
17261 2010-03-20  Bruno Haible  <bruno@clisp.org>
17262
17263         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17264         Reported by Jim Meyering.
17265
17266 2010-03-20  Bruno Haible  <bruno@clisp.org>
17267
17268         pipe: Set errno upon failure.
17269         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17270         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17271         errno value in error message.
17272
17273 2010-03-20  Bruno Haible  <bruno@clisp.org>
17274             Jim Meyering  <meyering@redhat.com>
17275
17276         lchown: Avoid "unused variable" warning.
17277         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17278
17279 2010-03-20  Bruno Haible  <bruno@clisp.org>
17280
17281         Work around unlink() bug on MacOS X 10.5.6.
17282         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17283         attempting to unlink a parent directory.
17284         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17285         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17286         activate for the replacement function.
17287         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17288
17289 2010-03-20  Bruno Haible  <bruno@clisp.org>
17290
17291         Fix link errors on Solaris 8.
17292         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17293         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17294
17295 2010-03-19  Jim Meyering  <meyering@redhat.com>
17296
17297         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17298         The _LIBC implementation of build_range_exp correctly honors the
17299         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17300         However, the non-_LIBC implementation would ignore that syntax-bit
17301         flag and return REG_ERANGE unconditionally.
17302         This change makes it honor that flag.
17303         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17304         Make two pointer parameters "const".
17305         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17306         (parse_bracket_exp): Update caller.
17307
17308         regex.m4: correct the reversed range endpoint ([b-a]) test
17309         * m4/regex.m4: When requiring that [b-a] evoke failure,
17310         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17311         test pass once again for x86-based systems.
17312
17313 2010-03-19  Bruno Haible  <bruno@clisp.org>
17314
17315         scandir: Fix link error on Solaris 8.
17316         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17317         macros.
17318
17319 2010-03-19  Bruno Haible  <bruno@clisp.org>
17320
17321         getusershell: Fix documentation.
17322         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17323         module.
17324         * doc/glibc-functions/setusershell.texi: Likewise.
17325
17326         getusershell: Provide declaration, missing on Solaris 9.
17327         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17328         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17329         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17330         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17332         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17333         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17334         HAVE_GETUSERSHELL.
17335         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17336
17337 2010-03-19  Bruno Haible  <bruno@clisp.org>
17338
17339         wctype: Provide iswblank function.
17340         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17341         exists and is fine.
17342         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17343         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17344         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17345         * doc/posix-functions/iswblank.texi: Update.
17346
17347 2010-03-19  Bruno Haible  <bruno@clisp.org>
17348
17349         Tests of module 'pty' in C++ mode.
17350         * modules/pty-tests: New file.
17351         * tests/test-pty-c++.cc: New file.
17352         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17353
17354 2010-03-19  Eric Blake  <eblake@redhat.com>
17355
17356         logb: fix documentation
17357         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17358         1.5 declaration bug.
17359
17360         forkpty, openpty: prefer glibc's const-safe prototype
17361         * lib/forkpty.c (rpl_forkpty): New file.
17362         * lib/openpty.c (rpl_openpty): Likewise.
17363         * modules/forkpty (Files): Distribute it.
17364         * modules/openpty (Files): Likewise.
17365         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17366         check...
17367         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17368         replacement for for non-const BSD signature.
17369         * modules/pty (Makefile.am): Substitute witnesses.
17370         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17371         * tests/test-forkpty.c: Update signature check.
17372         * tests/test-openpty.c: Likewise.
17373         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17374         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17375
17376         forkpty, openpty: split functions into new modules
17377         * modules/pty (Makefile.am): Substitute new witnesses.
17378         (Libraries): Move library detection...
17379         * modules/forkpty: ...into new module.
17380         * modules/openpty: Another new module.
17381         * modules/pty-tests: Rename and split...
17382         * modules/forkpty-tests: ...to this...
17383         * modules/openpty-tests: ...and this.
17384         * tests/test-pty.c: Rename and split...
17385         * tests/test-forkpty.c: ...to this...
17386         * tests/test-openpty.c: ...and this.
17387         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17388         (gl_PTY): Split library searching...
17389         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17390         (gl_FORKPTY, gl_OPENPTY): New macros.
17391         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17392         * NEWS: Mention the split.
17393         * MODULES.html.sh (Misc): Document the modules.
17394         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17395         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17396
17397         pty: improve replacement header
17398         * lib/pty.in.h: New file.
17399         * modules/pty (Files): Ship it.
17400         (Makefile.am): Always build replacement.
17401         * m4/pty.m4: Rename...
17402         * m4/pty_h.m4: ...to this.
17403         (gl_PTY): Modernize setting of witness macros; update check of
17404         forkpty to take proper advantage of cache.
17405         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17406
17407         getopt: avoid compiler warning
17408         * lib/getopt.c (attribute_hidden): Remove unused macro.
17409
17410 2010-03-18  Bruno Haible  <bruno@clisp.org>
17411
17412         Fix link errors on Solaris 8.
17413         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17414         * modules/search-tests (test_search_c___LDADD): Likewise.
17415         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17416         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17417         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17418         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17419         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17420         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17421         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17422
17423 2010-03-18  Bruno Haible  <bruno@clisp.org>
17424
17425         Fix bug introduced on 2010-03-14.
17426         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17427         (gl_SPAWN_H): Require it.
17428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17429         Reported by Simon Josefsson.
17430
17431 2010-03-18  Bruno Haible  <bruno@clisp.org>
17432
17433         Fix typo introduced on 2009-12-31.
17434         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17435         posix_spawn_file_actions_adddup2.
17436
17437 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17438         and Eric Blake  <eblake@redhat.com>
17439
17440         test-vc-list-files-git: make more robust
17441         * tests/test-vc-list-files-git.sh: Unset problematic environment
17442         variables.  Chain commands together.
17443
17444 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17445
17446         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17447         `AC_CHECK_DECL' invocation.
17448
17449 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17450
17451         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17452         appears before executable statements. Suggested by Petr Sumbera
17453         <Petr.Sumbera@Sun.COM>.
17454
17455 2010-03-14  Bruno Haible  <bruno@clisp.org>
17456
17457         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17458         portability problems. Instead use a simpler test.
17459         (main): Check that invalid arguments are rejected only on Linux.
17460
17461 2010-03-14  Bruno Haible  <bruno@clisp.org>
17462
17463         Fix bug introduced on 2009-12-31.
17464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17465         gl_PREREQ_SYS_H_WINSOCK2 always.
17466         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17467         SYS_SOCKET_H variable.
17468         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17469         Update comments.
17470         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17471         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17472         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17473         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17474         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17475
17476 2010-03-14  Bruno Haible  <bruno@clisp.org>
17477
17478         Fix values returned by sinl, cosl.
17479         * lib/trigl.h: Add specification comments.
17480         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17481         that combines the values from the precomputed table with the values of
17482         the Chebyshev polynomials.
17483
17484 2010-03-14  Bruno Haible  <bruno@clisp.org>
17485
17486         Fix compilation error when modules 'posix_spawn[p]' are not used.
17487         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17488         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17489
17490 2010-03-14  Bruno Haible  <bruno@clisp.org>
17491
17492         Fix compilation error on mingw when module 'time_r' is not used.
17493         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17494         is 1.
17495         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17496         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17497         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17498         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17499
17500 2010-03-14  Bruno Haible  <bruno@clisp.org>
17501
17502         Fix compilation error with Sun C.
17503         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17504         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17505         instead of GCC specific ULONG_LONG_MAX.
17506         * lib/xstrtoll.c: Likewise.
17507         * lib/xstrtoull.c: Likewise.
17508
17509 2010-03-13  Bruno Haible  <bruno@clisp.org>
17510
17511         Allow the user to disable C++ code and tests.
17512         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17513         (gl_PROG_ANSI_CXX): Require it.
17514
17515 2010-03-13  Bruno Haible  <bruno@clisp.org>
17516
17517         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17518         cases.
17519
17520 2010-03-13  Bruno Haible  <bruno@clisp.org>
17521
17522         Test that gnulib does not break the standard C++ headers.
17523         * tests/test-locale-c++2.cc: New file.
17524         * modules/locale-tests (Files): Add it.
17525         (Makefile.am): Compile it for test-locale-c++.
17526         * tests/test-math-c++2.cc: New file.
17527         * modules/math-tests (Files): Add it.
17528         (Makefile.am): Compile it for test-math-c++.
17529         * tests/test-signal-c++2.cc: New file.
17530         * modules/signal-tests (Files): Add it.
17531         (Makefile.am): Compile it for test-signal-c++.
17532         * tests/test-stdio-c++2.cc: New file.
17533         * modules/stdio-tests (Files): Add it.
17534         (Makefile.am): Compile it for test-stdio-c++.
17535         * tests/test-stdlib-c++2.cc: New file.
17536         * modules/stdlib-tests (Files): Add it.
17537         (Makefile.am): Compile it for test-stdlib-c++.
17538         * tests/test-string-c++2.cc: New file.
17539         * modules/string-tests (Files): Add it.
17540         (Makefile.am): Compile it for test-string-c++.
17541         * tests/test-time-c++2.cc: New file.
17542         * modules/time-tests (Files): Add it.
17543         (Makefile.am): Compile it for test-time-c++.
17544         Reported by John W. Eaton <jwe@gnu.org>.
17545
17546 2010-03-13  Bruno Haible  <bruno@clisp.org>
17547
17548         * gnulib-tool (func_usage): Clarify which options are available for
17549         --create-testdir and --create-megatestdir.
17550
17551 2010-03-13  Bruno Haible  <bruno@clisp.org>
17552
17553         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17554         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17555         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17556         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17557         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17558         when appropriate.
17559         Reported by Jim Meyering.
17560
17561 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17562
17563         * gnulib-tool (func_import): Explain origin of code.
17564
17565 2010-03-12  Bruno Haible  <bruno@clisp.org>
17566
17567         Fix problem with automake's definition of CXXLINK.
17568         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17569         Reported by Simon Josefsson and Ludovic Courtès.
17570
17571 2010-03-12  Bruno Haible  <bruno@clisp.org>
17572
17573         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17574         stable releases.
17575
17576 2010-03-11  Bruno Haible  <bruno@clisp.org>
17577
17578         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17579         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17580         whether the system provides one variant or multiple variants of the
17581         function.
17582         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17583         C++ compilers.
17584         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17585         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17586         Reported by Jim Meyering.
17587
17588 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17589
17590         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17591
17592 2010-03-08  Bruno Haible  <bruno@clisp.org>
17593
17594         gnulib-tool: Add support for --libtool in --create-testdir.
17595         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17596         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17597
17598 2010-03-08  Eric Blake  <eblake@redhat.com>
17599
17600         gnulib-tool.texi: mention possibility of git submodule
17601         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17602         submodules.
17603         * doc/.gitignore: Ignore another generated file.
17604
17605 2010-03-08  Karl Berry  <karl@gnu.org>
17606
17607         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17608         of committing gnulib files while skipping others.
17609
17610 2010-03-07  Bruno Haible  <bruno@clisp.org>
17611
17612         Tests of module 'wctype' in C++ mode.
17613         * tests/test-wctype-c++.cc: New file.
17614         * modules/wctype-tests (Files): Add it and tests/signature.h.
17615         (Depends-on): Add ansi-c++-opt.
17616         (Makefile.am): Arrange to compile and run test-wctype-c++.
17617
17618         Tests of module 'wchar' in C++ mode.
17619         * tests/test-wchar-c++.cc: New file.
17620         * modules/wchar-tests (Files): Add it and tests/signature.h.
17621         (Depends-on): Add ansi-c++-opt.
17622         (Makefile.am): Arrange to compile and run test-wchar-c++.
17623         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17624         gl_MODULE_INDICATOR.
17625
17626         Tests of module 'unistd' in C++ mode.
17627         * tests/test-unistd-c++.cc: New file.
17628         * modules/unistd-tests (Files): Add it and tests/signature.h.
17629         (Depends-on): Add ansi-c++-opt.
17630         (Makefile.am): Arrange to compile and run test-unistd-c++.
17631         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17632         gl_MODULE_INDICATOR.
17633
17634         Tests of module 'time' in C++ mode.
17635         * tests/test-time-c++.cc: New file.
17636         * modules/time-tests (Files): Add it and tests/signature.h.
17637         (Depends-on): Add ansi-c++-opt.
17638         (Makefile.am): Arrange to compile and run test-time-c++.
17639         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17640
17641         Tests of module 'sys_time' in C++ mode.
17642         * tests/test-sys_time-c++.cc: New file.
17643         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17644         (Depends-on): Add ansi-c++-opt.
17645         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17646         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17647         gl_MODULE_INDICATOR.
17648
17649         Tests of module 'sys_stat' in C++ mode.
17650         * tests/test-sys_stat-c++.cc: New file.
17651         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17652         (Depends-on): Add ansi-c++-opt.
17653         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17654         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17655         gl_MODULE_INDICATOR.
17656
17657         Tests of module 'sys_socket' in C++ mode.
17658         * tests/test-sys_socket-c++.cc: New file.
17659         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17660         (Depends-on): Add ansi-c++-opt.
17661         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17662         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17663         gl_MODULE_INDICATOR.
17664
17665         Tests of module 'sys_select' in C++ mode.
17666         * tests/test-sys_select-c++.cc: New file.
17667         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17668         (Depends-on): Add ansi-c++-opt.
17669         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17670         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17671         gl_MODULE_INDICATOR.
17672
17673         Tests of module 'sys_ioctl' in C++ mode.
17674         * tests/test-sys_ioctl-c++.cc: New file.
17675         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17676         (Depends-on): Add ansi-c++-opt.
17677         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17678         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17679         gl_MODULE_INDICATOR.
17680
17681         Tests of module 'string' in C++ mode.
17682         * tests/test-string-c++.cc: New file.
17683         * modules/string-tests (Files): Add it and tests/signature.h.
17684         (Depends-on): Add ansi-c++-opt.
17685         (Makefile.am): Arrange to compile and run test-string-c++.
17686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17687         gl_MODULE_INDICATOR.
17688
17689         Tests of module 'stdlib' in C++ mode.
17690         * tests/test-stdlib-c++.cc: New file.
17691         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17692         (Depends-on): Add ansi-c++-opt.
17693         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17694         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17695         gl_MODULE_INDICATOR.
17696
17697         Tests of module 'stdio' in C++ mode.
17698         * tests/test-stdio-c++.cc: New file.
17699         * modules/stdio-tests (Files): Add it and tests/signature.h.
17700         (Depends-on): Add ansi-c++-opt.
17701         (Makefile.am): Arrange to compile and run test-stdio-c++.
17702         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17703         gl_MODULE_INDICATOR.
17704
17705         Tests of module 'spawn' in C++ mode.
17706         * tests/test-spawn-c++.cc: New file.
17707         * modules/spawn-tests (Files): Add it and tests/signature.h.
17708         (Depends-on): Add ansi-c++-opt.
17709         (Makefile.am): Arrange to compile and run test-spawn-c++.
17710         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17711         gl_MODULE_INDICATOR.
17712
17713         Tests of module 'signal' in C++ mode.
17714         * tests/test-signal-c++.cc: New file.
17715         * modules/signal-tests (Files): Add it and tests/signature.h.
17716         (Depends-on): Add ansi-c++-opt.
17717         (Makefile.am): Arrange to compile and run test-signal-c++.
17718         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17719         gl_MODULE_INDICATOR.
17720
17721         Tests of module 'search' in C++ mode.
17722         * tests/test-search-c++.cc: New file.
17723         * modules/search-tests (Files): Add it and tests/signature.h.
17724         (Depends-on): Add ansi-c++-opt.
17725         (Makefile.am): Arrange to compile and run test-search-c++.
17726         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17727         gl_MODULE_INDICATOR.
17728
17729         Tests of module 'math' in C++ mode.
17730         * tests/test-math-c++.cc: New file.
17731         * modules/math-tests (Files): Add it and tests/signature.h.
17732         (Depends-on): Add ansi-c++-opt.
17733         (Makefile.am): Arrange to compile and run test-math-c++.
17734         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17735
17736         Tests of module 'locale' in C++ mode.
17737         * tests/test-locale-c++.cc: New file.
17738         * modules/locale-tests (Files): Add it and tests/signature.h.
17739         (Depends-on): Add ansi-c++-opt.
17740         (Makefile.am): Arrange to compile and run test-locale-c++.
17741         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17742         gl_MODULE_INDICATOR.
17743
17744         Tests of module 'langinfo' in C++ mode.
17745         * tests/test-langinfo-c++.cc: New file.
17746         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17747         (Depends-on): Add ansi-c++-opt.
17748         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17749         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17750         gl_MODULE_INDICATOR.
17751
17752         Tests of module 'iconv-h' in C++ mode.
17753         * tests/test-iconv-h-c++.cc: New file.
17754         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17755         (Depends-on): Add ansi-c++-opt.
17756         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17757
17758         Tests of module 'glob' in C++ mode.
17759         * tests/test-glob-c++.cc: New file.
17760         * modules/glob-tests (Files): Add it.
17761         (Depends-on): Add ansi-c++-opt.
17762         (Makefile.am): Arrange to compile and run test-glob-c++.
17763
17764         Tests of module 'fcntl-h' in C++ mode.
17765         * tests/test-fcntl-h-c++.cc: New file.
17766         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17767         (Depends-on): Add ansi-c++-opt.
17768         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17769         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17770         gl_MODULE_INDICATOR.
17771
17772         Tests of module 'dirent' in C++ mode.
17773         * tests/test-dirent-c++.cc: New file.
17774         * modules/dirent-tests (Files): Add it and tests/signature.h.
17775         (Depends-on): Add ansi-c++-opt.
17776         (Makefile.am): Arrange to compile and run test-dirent-c++.
17777         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17778         gl_MODULE_INDICATOR.
17779
17780         New module 'ansi-c++-opt'.
17781         * modules/ansi-c++-opt: New file.
17782         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17783
17784         Document C++ namespace mode.
17785         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17786
17787         wctype: Avoid #define replacements in C++ mode.
17788         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17789         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17790         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17791         In C++, define a namespaced alias symbol.
17792         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17793         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17794         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17795         rule.
17796
17797         wchar: Avoid #define replacements in C++ mode.
17798         * lib/wchar.in.h: Include c++defs.h.
17799         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17800         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17801         symbol.
17802         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17803         * modules/wchar (Depends-on): Add c++defs.
17804         (Makefile.am): Update wchar.h rule.
17805
17806         unistd: Avoid #define replacements in C++ mode.
17807         * lib/unistd.in.h: Include c++defs.h.
17808         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17809         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17810         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17811         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17812         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17813         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17814         symbol.
17815         (environ): Update.
17816         * modules/unistd (Depends-on): Add c++defs.
17817         (Makefile.am): Update unistd.h rule.
17818
17819         time: Avoid #define replacements in C++ mode.
17820         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17821         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17822         define a namespaced alias symbol.
17823         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17824         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17825         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17826         * modules/time (Depends-on): Add c++defs, warn-on-use.
17827         (Makefile.am): Update time.h rule.
17828         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17829         * modules/nanosleep (configure.ac): Likewise.
17830         * modules/strptime (configure.ac): Likewise.
17831         * modules/timegm (configure.ac): Likewise.
17832
17833         sys_time: Avoid #define replacements in C++ mode.
17834         * lib/sys_time.in.h: Include c++defs.h.
17835         (gettimeofday): In C++, define a namespaced alias symbol.
17836         * modules/sys_time (Depends-on): Add c++defs.
17837         (Makefile.am): Update sys/time.h rule.
17838
17839         sys_stat: Avoid #define replacements in C++ mode.
17840         * lib/sys_stat.in.h: Include c++defs.h.
17841         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17842         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17843         namespaced alias symbol.
17844         In C++, define a namespaced alias symbol.
17845         * modules/sys_stat (Depends-on): Add c++defs.
17846         (Makefile.am): Update sys/stat.h rule.
17847
17848         sys_socket: Avoid #define replacements in C++ mode.
17849         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17850         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17851         definitions also when the system has a <sys/socket.h>.
17852         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17853         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17854         In C++, define a namespaced alias symbol.
17855         * modules/sys_socket (Depends-on): Add c++defs.
17856         (Makefile.am): Update sys/socket.h rule.
17857
17858         sys_select: Avoid #define replacements in C++ mode.
17859         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17860         definitions also when the system has a <sys/select.h>.
17861         (select): In C++, define a namespaced alias symbol.
17862         * modules/sys_select (Depends-on): Add c++defs.
17863         (Makefile.am): Update sys/select.h rule.
17864
17865         sys_ioctl: Avoid #define replacements in C++ mode.
17866         * lib/sys_ioctl.in.h: Include c++defs.h.
17867         (ioctl): In C++, define a namespaced alias symbol.
17868         * modules/sys_ioctl (Depends-on): Add c++defs.
17869         (Makefile.am): Update sys/ioctl.h rule.
17870
17871         string: Avoid #define replacements in C++ mode.
17872         * lib/string.in.h: Include c++defs.h.
17873         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17874         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17875         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17876         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17877         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17878         * modules/string (Depends-on): Add c++defs.
17879         (Makefile.am): Update string.h rule.
17880
17881         stdlib: Avoid #define replacements in C++ mode.
17882         * lib/stdlib.in.h: Include c++defs.h.
17883         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17884         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17885         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17886         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17887         symbol.
17888         * modules/stdlib (Depends-on): Add c++defs.
17889         (Makefile.am): Update stdlib.h rule.
17890
17891         stdio: Avoid #define replacements in C++ mode.
17892         * lib/stdio.in.h: Include c++defs.h.
17893         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17894         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17895         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17896         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17897         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17898         namespaced alias symbol.
17899         * modules/stdio (Depends-on): Add c++defs.
17900         (Makefile.am): Update stdio.h rule.
17901
17902         spawn: Avoid #define replacements in C++ mode.
17903         * lib/spawn.in.h: Include c++defs.h.
17904         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17905         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17906         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17907         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17908         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17909         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17910         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17911         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17912         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17913         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17914         In C++, define a namespaced alias symbol.
17915         * modules/spawn (Depends-on): Add c++defs.
17916         (Makefile.am): Update spawn.h rule.
17917
17918         signal: Avoid #define replacements in C++ mode.
17919         * lib/signal.in.h: Include c++defs.h.
17920         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17921         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17922         namespaced alias symbol.
17923         * modules/signal (Depends-on): Add c++defs.
17924         (Makefile.am): Update signal.h rule.
17925
17926         search: Avoid #define replacements in C++ mode.
17927         * lib/search.in.h: Include c++defs.h.
17928         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17929         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17930         symbol.
17931         * modules/search (Depends-on): Add c++defs.
17932         (Makefile.am): Update search.h rule.
17933
17934         math: Avoid #define replacements in C++ mode.
17935         * lib/math.in.h: Include c++defs.h.
17936         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17937         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17938         trunc, truncl): In C++, define a namespaced alias symbol.
17939         * modules/math (Depends-on): Add c++defs.
17940         (Makefile.am): Update math.h rule.
17941
17942         locale: Avoid #define replacements in C++ mode.
17943         * lib/locale.in.h: Include c++defs.h.
17944         (duplocale): In C++, define a namespaced alias symbol.
17945         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17946         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17947         * modules/locale (Depends-on): Add c++defs.
17948         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17949
17950         langinfo: Avoid #define replacements in C++ mode.
17951         * lib/langinfo.in.h: Include c++defs.h.
17952         (nl_langinfo): In C++, define a namespaced alias symbol.
17953         * modules/langinfo (Depends-on): Add c++defs.
17954         (Makefile.am): Update langinfo.h rule.
17955
17956         iconv-h: Avoid #define replacements in C++ mode.
17957         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17958         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17959         symbol.
17960         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17961         whenever iconv is present.
17962         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17963         (Makefile.am): Update iconv.h rule.
17964
17965         glob: Avoid #define replacements in C++ mode.
17966         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17967         (_gl_glob_errfunc_fn): New type.
17968         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17969         symbol.
17970         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17971         (Makefile.am): Update glob.h rule.
17972
17973         fcntl-h: Avoid #define replacements in C++ mode.
17974         * lib/fcntl.in.h: Include c++defs.h.
17975         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17976         * modules/fcntl-h (Depends-on): Add c++defs.
17977         (Makefile.am): Update fcntl.h rule.
17978
17979         dirent: Avoid #define replacements in C++ mode.
17980         * lib/dirent.in.h: Include c++defs.h.
17981         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17982         namespaced alias symbol.
17983         (dirfd): Update declaration.
17984         * modules/dirent (Depends-on): Add c++defs.
17985         (Makefile.am): Update dirent.h rule.
17986
17987         ctype: Make it usable in C++ code.
17988         * lib/ctype.in.h: Include c++defs.h.
17989         (isblank): Declare as extern "C".
17990         * modules/ctype (Depends-on): Add c++defs.
17991         (Makefile.am): Update ctype.h rule.
17992
17993         New module 'c++defs'.
17994         * modules/c++defs: New file.
17995         * build-aux/c++defs.h: New file.
17996         Reported by John W. Eaton <jwe@gnu.org>.
17997
17998 2010-03-07  Bruno Haible  <bruno@clisp.org>
17999
18000         logb: Provide missing declaration for Cygwin.
18001         * lib/math.in.h (logb): New declaration.
18002         * m4/logb.m4: New file.
18003         * modules/logb (Files): Add m4/logb.m4.
18004         (Depends-on): Add math.
18005         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18006         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18008         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18009         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18010
18011 2010-03-07  Bruno Haible  <bruno@clisp.org>
18012
18013         Fix test-cond link error.
18014         * tests/test-cond.c: Include <stdio.h>.
18015
18016 2010-03-07  Bruno Haible  <bruno@clisp.org>
18017
18018         Fix test-dirent-safer link error.
18019         * modules/dirent-safer-tests (Makefile.am): Define
18020         test_dirent_safer_LDADD.
18021
18022 2010-03-07  Bruno Haible  <bruno@clisp.org>
18023
18024         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18025         among default module list.
18026
18027 2010-03-07  Bruno Haible  <bruno@clisp.org>
18028
18029         Fix link error on platforms with GNU libiconv.
18030         * modules/unistr/u8-strcoll-tests (Makefile): Define
18031         test_u8_strcoll_LDADD.
18032         * modules/unistr/u16-strcoll-tests (Makefile): Define
18033         test_u16_strcoll_LDADD.
18034         * modules/unistr/u32-strcoll-tests (Makefile): Define
18035         test_u32_strcoll_LDADD.
18036
18037 2010-03-07  Bruno Haible  <bruno@clisp.org>
18038
18039         Use POSIX declarations for socket functions.
18040         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18041         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18042         rpl_sendto): Change declaration to match POSIX.
18043         * lib/connect.c (rpl_connect): Likewise.
18044         * lib/accept.c (rpl_accept): Likewise.
18045         * lib/bind.c (rpl_bind): Likewise.
18046         * lib/getpeername.c (rpl_getpeername): Likewise.
18047         * lib/getsockname.c (rpl_getsockname): Likewise.
18048         * lib/recv.c (rpl_recv): Likewise.
18049         * lib/send.c (rpl_send): Likewise.
18050         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18051         * lib/sendto.c (rpl_sendto): Likewise.
18052
18053 2010-03-06  Bruno Haible  <bruno@clisp.org>
18054
18055         Clarify access, euidaccess, faccessat.
18056         * doc/posix-functions/faccessat.texi: Mention security problem under
18057         "Other problems", not "Portability problems".
18058         * doc/posix-functions/access.texi: Likewise. Mention a related security
18059         problem.
18060         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18061         * lib/euidaccess.c: Add comments about platforms.
18062         * lib/unistd.in.h (access, euidaccess): Add warnings.
18063
18064 2010-03-07  Bruno Haible  <bruno@clisp.org>
18065
18066         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18067         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18068         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18069         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18070         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18071         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18072         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18073         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18074         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18076         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18077         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18078         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18079         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18080         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18081         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18082         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18083         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18084         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18085         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18086         Likewise.
18087         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18088         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18089         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18090         Likewise.
18091         * tests/test-spawn.c (main): Make it work when
18092         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18093
18094 2010-03-07  Bruno Haible  <bruno@clisp.org>
18095
18096         Fix incorrect Makefile.am generation in German locale.
18097         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18098         Execute sed command with character range in C locale.
18099
18100 2010-03-06  Bruno Haible  <bruno@clisp.org>
18101
18102         Tests for module 'iconv-h'.
18103         * modules/iconv-h-tests: New file.
18104         * tests/test-iconv-h.c: New file.
18105
18106         New module 'iconv-h'.
18107         * modules/iconv-h: New file.
18108         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18109         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18110         (configure.ac): Remove gl_ICONV_H.
18111         (Makefile.am): Remove rule for iconv.h.
18112
18113 2010-03-06  Bruno Haible  <bruno@clisp.org>
18114
18115         More consistent naming of *.m4 files.
18116         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18117         * modules/wctype (Files): Update.
18118
18119         More consistent naming of *.m4 files.
18120         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18121         * modules/wchar (Files): Update.
18122
18123 2010-03-06  Jim Meyering  <meyering@redhat.com>
18124
18125         euidaccess: relax license to LGPLv2+
18126         * modules/euidaccess (License): Relax to LGPLv2+.
18127
18128 2010-03-06  Bruno Haible  <bruno@clisp.org>
18129
18130         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18131         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18132         (Makefile.am): Augment lib_SOURCES instead.
18133
18134 2010-03-04  Jim Meyering  <meyering@redhat.com>
18135
18136         utime: remove obsolete module
18137         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18138         unnecessary for years, and has been marked as obsolete for 10 months.
18139         * modules/utime: Remove file.
18140         * lib/utime.c: Remove file.
18141         * m4/utime.m4: Remove file.
18142         * m4/utimes-null.m4: Remove file.
18143         * doc/posix-functions/utime.texi (utime): Remove reference to
18144         the module.  Move the sole "fixed by gnulib" item into the
18145         "problems not fixed by Gnulib" list.
18146         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18147
18148 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18149
18150         * modules/exit (License): Relax license to LGPLv2+.
18151         (Status): Mark as obsolete.
18152         * NEWS: Mention deprecated 'exit' module.
18153         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18154         of now obsolete 'exit'.
18155
18156 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18157
18158         fts-lgpl: remove unused module
18159         * modules/fts-lgpl: Remove.
18160         * MODULES.html.sh (func_all_modules): Adjust.
18161         * check-module (find_included_lib_files): Adjust.
18162         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18163
18164 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18165
18166         copy-acl: enhance Solaris ACL error handling
18167         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18168         * lib/set-mode-acl.c (qset_acl): Likewise.
18169
18170 2010-03-02  Bruno Haible  <bruno@clisp.org>
18171
18172         spawn: Don't override the system defined values on FreeBSD 8.
18173         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18174         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18175         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18176         if HAVE_POSIX_SPAWN is 1.
18177         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18178
18179 2010-03-01  Bruno Haible  <bruno@clisp.org>
18180
18181         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18182         regarding Automake.
18183
18184 2010-02-25  Bruno Haible  <bruno@clisp.org>
18185
18186         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18187         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18188         setting, not afterwards.
18189         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18190
18191 2010-02-24  Eric Blake  <eblake@redhat.com>
18192
18193         bootstrap, git-version-gen: use timestamp
18194         * build-aux/git-version-gen (scriptversion): Force UTC.
18195         * build-aux/bootstrap (scriptversion): New variable.
18196
18197         bootstrap: allow older git
18198         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18199         older than 1.6.4.  Requested by the libvirt project.
18200
18201 2010-02-23  Eric Blake  <eblake@redhat.com>
18202
18203         warn-on-use: work with old autoconf
18204         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18205         AS_VAR semantics of autoconf 2.60.
18206         Reported by Bruno Haible.
18207
18208         bootstrap: improve some comments
18209         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18210         clarification comments.
18211
18212         gettimeofday: provide correct function
18213         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18214         when replacement is declared, otherwise provide gettimeofday.
18215         Reported by Michael Goffioul.
18216
18217 2010-02-23  Jim Meyering  <meyering@redhat.com>
18218
18219         lib-ignore: relax license to "unlimited", not LGPLv2+
18220         * modules/lib-ignore (License): Relax to "unlimited".
18221
18222 2010-02-23  Jim Meyering  <meyering@redhat.com>
18223
18224         lib-ignore: relax license to LGPLv2+
18225         * modules/lib-ignore (License): Relax to LGPLv2+.
18226
18227 2010-02-22  Eric Blake  <eblake@redhat.com>
18228
18229         lseek: avoid bash 3.2 broken pipe bug
18230         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18231         warning from bash 3.2.
18232         Reported by Ben Pfaff, with analysis from Bruno Haible.
18233
18234         bootstrap: support non-FSF copyright holder
18235         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18236         bootstrap.conf override of COPYRIGHT_HOLDER.
18237         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18238
18239         bootstrap: interoperate with gettext 0.14.1
18240         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18241
18242         bootstrap: allow for alternate submodule location
18243         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18244         hardcoding submodule location.
18245         (gnulib_mk): Allow direct use of Makefile.am.
18246
18247         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18248         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18249         rather than reconfiguring where the submodule points.
18250
18251         gettimeofday: restore support for platforms that lack function
18252         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18253         replacement if function is missing.
18254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18255         * modules/sys_time (Makefile.am): Substitute it.
18256         * lib/sys_time.in.h (gettimeofday): Check it.
18257         Reported by Michael Goffioul.
18258
18259 2010-02-21  Bruno Haible  <bruno@clisp.org>
18260
18261         * lib/stdio.in.h (obstack_printf): Fix typo.
18262
18263 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18264
18265         vc-list-files: use bzr ls's -R option
18266         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18267         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18268
18269 2010-02-21  Jim Meyering  <meyering@redhat.com>
18270
18271         init.sh: fix EXEEXT shims to work also for names like test-prog
18272         * tests/init.sh: Re-exec a better shell, when needed.
18273         If the current shell lacks support for posix $(...), an init.sh-using
18274         test will now try to find a shell that supports that.  If EXEEXT is
18275         nonempty, we also require support for hyphen-in-alias-name and shell
18276         substitutions like ${var#glob}.  Failure to find such a shell results
18277         in a skipped test.
18278
18279 2010-02-21  Bruno Haible  <bruno@clisp.org>
18280
18281         Really work around around "broken pipe" error message from bash 3.2.
18282         * gnulib-tool (func_reset_sigpipe): Remove function.
18283         (echo): In bash 3.2, define to a function that uses printf.
18284         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18285
18286 2010-02-20  Bruno Haible  <bruno@clisp.org>
18287
18288         Restore support for automake 1.9.6 with autoconf 2.61.
18289         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18290         Reported by James Youngman <jay@gnu.org>.
18291
18292 2010-02-20  Bruno Haible  <bruno@clisp.org>
18293
18294         Improve *printf warning condition.
18295         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18296         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18297         and the function is overridden due to SIGPIPE emulation.
18298
18299 2010-02-20  Bruno Haible  <bruno@clisp.org>
18300
18301         * lib/stdio.in.h: Tweak comments.
18302
18303 2010-02-19  Bruno Haible  <bruno@clisp.org>
18304
18305         Make it easier to find modules. New gnulib-tool option '--find'.
18306         * gnulib-tool: New option --find.
18307         (func_usage): Document it.
18308         (func_sanitize_modulelist): New function, extracted from
18309         func_all_modules.
18310         (func_all_modules): Invoke it.
18311         * doc/gnulib-tool.texi (Which modules?): New node.
18312
18313 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18314
18315         * lib/sys_select.in.h: Provide select replacement even if
18316         sys/select.h exists on a system, for Interix.
18317
18318 2010-02-18  Jim Meyering  <meyering@redhat.com>
18319
18320         init.sh: don't use $(...) just yet
18321         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18322         to accommodate e.g., Solaris' /bin/sh.
18323
18324 2010-02-17  Bruno Haible  <bruno@clisp.org>
18325
18326         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18327         Reported by Ludovic Courtès <ludo@gnu.org>.
18328
18329 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18330
18331         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18332         linking with -lintl.
18333
18334 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18335
18336         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18337         if not provided by the system's netdb.h.  Reported by
18338         ludo@gnu.org (Ludovic Courtès).
18339
18340 2010-02-15  Jim Meyering  <meyering@redhat.com>
18341
18342         init.sh: improve portability and efficiency
18343         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18344         "dummy" in a for loop.
18345         Use '!', not '^' to select the complement of a character set used
18346         in a "case" statement.
18347         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18348         Suggestions from Eric Blake.
18349
18350         init.sh: automatically accommodate programs with the .exe suffix
18351         Automatically arrange for an invocation of "prog" to execute the
18352         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18353         may use the simpler "prog", yet still work when built on a system
18354         that requires specifying the added suffix.
18355         Do this by constructing a function named "prog" that invokes
18356         "prog.exe" for each .exe file in selected directories.
18357         * tests/init.sh (find_exe_basenames_): New function.
18358         (create_exe_shim_functions_): New function.
18359         (path_prepend_): Use it.
18360
18361         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18362         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18363         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18364
18365 2010-02-14  Jim Meyering  <meyering@redhat.com>
18366
18367         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18368         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18369         (sc_prohibit_hash_pjw_without_use): New rule.
18370
18371         maint.mk: allow the default upload destination dir to be overridden
18372         * top/maint.mk (upload_dest_dir_): Define with a default that
18373         preserves the status quo.
18374         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18375         Reported by Peter Simons.
18376
18377         maint.mk: prohibit inclusion of "hash.h" without_use
18378         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18379
18380 2010-02-10  Jim Meyering  <meyering@redhat.com>
18381
18382         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18383         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18384
18385 2010-02-09  Eric Blake  <ebb9@byu.net>
18386         and Bruno Haible  <bruno@clisp.org>
18387
18388         obstack-printf-posix: ensure declaration
18389         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18390         extracted from gl_FUNC_OBSTACK_PRINTF.
18391         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18392         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18393         Likewise.
18394         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18395         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18396         0.
18397
18398 2010-02-08  Bruno Haible  <bruno@clisp.org>
18399
18400         gnulib-tool: Fix typo in 2010-02-07 commit.
18401         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18402         Reported by Eric Blake.
18403
18404 2010-02-07  Bruno Haible  <bruno@clisp.org>
18405
18406         gnulib-tool: Fix up caching patches.
18407         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18408         option --no-cache. Use associative arrays when supported by the shell.
18409         (sed_comments): New variable.
18410         (modcache): Renamed from do_cache.
18411         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18412         abbreviate unnecessarily.
18413         (have_associative): New variable.
18414         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18415         way also for ksh and zsh.
18416         (func_init_sed_convert_to_cache_statements): New function, extracted
18417         from func_cache_lookup_module. Add support for associative arrays.
18418         Don't set the c_MODULE_cached variable here. Ignore all lines before
18419         the first field header. Remove only the final newline, not all trailing
18420         newlines. Support empty fields correctly. Limit the use of 'eval' to
18421         assignments.
18422         (func_get_description, func_get_status, func_get_notice,
18423         func_get_applicability, func_get_filelist, func_get_dependencies,
18424         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18425         func_get_automake_snippet, func_get_include_directive,
18426         func_get_link_directive, func_get_license, func_get_maintainer):
18427         Update documentation. List the unoptimized code first. Add support for
18428         associative arrays. Limit the use of 'eval' to assignments.
18429         (func_get_applicability): Undo stylistic pessimisations.
18430         (func_get_automake_snippet, func_get_include_directive): Reduce code
18431         duplication.
18432         (func_modules_transitive_closure, func_modules_add_dummy,
18433         func_modules_notice, func_modules_to_filelist, func_add_file,
18434         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18435         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18436         func_create_testdir, func_create_megatestdir): Update documentation.
18437
18438 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18439
18440         * gnulib-tool (func_cache_lookup_module): Store the module name
18441         belonging to the cache variable; error out if two different
18442         module names map to the same cache variable name.
18443
18444 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18445
18446         gnulib-tool: Make caching optional.
18447         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18448         Update matching short versions of --no-changelog.
18449         (func_usage): Update.
18450         (sed_extract_cache_prog): Renamed from ...
18451         (sed_extract_prog): ... this; revert to old extraction script.
18452         (func_get_description, func_get_status)
18453         (func_get_notice, func_get_applicability, func_get_filelist)
18454         (func_get_dependencies, func_get_autoconf_early_snippet)
18455         (func_get_autoconf_snippet, func_get_automake_snippet)
18456         (func_get_include_directive, func_get_link_directive)
18457         (func_get_license, func_get_maintainer): If $do_cache is false,
18458         use old, non-caching extraction scripts.
18459         Suggestion by Bruno Haible.
18460
18461 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18462
18463         gnulib-tool: cache module metainformation.
18464         * gnulib-tool (sed_extract_prog): Match newline before each
18465         header, and rewrite header to a shell variable suffix.
18466         (func_cache_var, func_cache_lookup_module): New functions,
18467         to turn a module name into a cache variable prefix, and to
18468         look up and cache module metainformation.
18469         (func_get_description, func_get_status)
18470         (func_get_notice, func_get_applicability, func_get_filelist)
18471         (func_get_dependencies, func_get_autoconf_early_snippet)
18472         (func_get_autoconf_snippet, func_get_automake_snippet)
18473         (func_get_include_directive, func_get_link_directive)
18474         (func_get_license, func_get_maintainer): Use
18475         func_cache_lookup_module.
18476
18477 2010-02-07  Bruno Haible  <bruno@clisp.org>
18478
18479         fnctl: Fix missing dependency.
18480         * modules/fcntl (Depends-on): Add getdtablesize.
18481         Reported by John W. Eaton <jwe@gnu.org>.
18482
18483 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18484
18485         Argp: fix recognition of short alias options.
18486
18487         * lib/argp-parse.c (convert_options): Fix improper use of
18488         `|' between character values.
18489         * tests/test-argp.c (group1_option): New alias option
18490         --read (-r).
18491         (group1_parser): Special handling for 'r'.
18492         (test15): New test case.
18493         (test_fun): Add test15.
18494         * tests/test-argp-2.sh: Update expected --help and --usage
18495         outputs.
18496
18497 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18498
18499         * tests/test-argp.c: Fix indentation.
18500
18501 2010-02-04  Eric Blake  <ebb9@byu.net>
18502
18503         gettimeofday: expose type of second argument
18504         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18505         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18506         * tests/test-gettimeofday.c: Use it to silence warning.
18507         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18508         the issue.
18509
18510 2010-02-03  Jim Meyering  <meyering@redhat.com>
18511
18512         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18513         * lib/regcomp.c (TYPE_SIGNED): Define.
18514         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18515
18516         regcomp.c: avoid a new -Wshadow warning
18517         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18518
18519 2010-02-01  Jim Meyering  <meyering@redhat.com>
18520
18521         removing useless parentheses in cpp #define directives
18522         For motivation, see commit c0221df4, "define STREQ(a,b)
18523         consistently, removing useless parentheses"
18524         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18525         * lib/mountlist.c (MNT_IGNORE): Likewise.
18526         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18527
18528 2010-02-01  Eric Blake  <ebb9@byu.net>
18529
18530         sys_time: use link-warning
18531         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18532         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18533         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18534         * modules/sys_time (Depends-on): Add warn-on-use.
18535         (Makefile.am): Always build replacement.
18536         (configure.ac): Update substitutions.
18537         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18538         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18539         bother with SYS_TIME_H.
18540         * modules/gettimeofday (configure.ac): Declare indicator.
18541         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18542         in use.
18543
18544         closein-tests: silence compiler warning
18545         * tests/test-closein.c (main): Ignore fread result.
18546         * modules/closein-tests (Depends-on): Add ignore-value.
18547
18548         tests: silence warning about system return
18549         * tests/test-areadlink-with-size.c (main): Ignore system result.
18550         * tests/test-areadlink.c (main): Likewise.
18551         * tests/test-areadlinkat-with-size.c (main): Likewise.
18552         * tests/test-areadlinkat.c (main): Likewise.
18553         * tests/test-canonicalize-lgpl.c (main): Likewise.
18554         * tests/test-canonicalize.c (main): Likewise.
18555         * tests/test-chown.c (main): Likewise.
18556         * tests/test-fchownat.c (main): Likewise.
18557         * tests/test-fdutimensat.c (main): Likewise.
18558         * tests/test-fstatat.c (main): Likewise.
18559         * tests/test-futimens.c (main): Likewise.
18560         * tests/test-lchown.c (main): Likewise.
18561         * tests/test-link.c (main): Likewise.
18562         * tests/test-linkat.c (main): Likewise.
18563         * tests/test-lstat.c (main): Likewise.
18564         * tests/test-mkdir.c (main): Likewise.
18565         * tests/test-mkdirat.c (main): Likewise.
18566         * tests/test-mkfifo.c (main): Likewise.
18567         * tests/test-mkfifoat.c (main): Likewise.
18568         * tests/test-mknod.c (main): Likewise.
18569         * tests/test-readlink.c (main): Likewise.
18570         * tests/test-remove.c (main): Likewise.
18571         * tests/test-rename.c (main): Likewise.
18572         * tests/test-renameat.c (main): Likewise.
18573         * tests/test-rmdir.c (main): Likewise.
18574         * tests/test-symlink.c (main): Likewise.
18575         * tests/test-symlinkat.c (main): Likewise.
18576         * tests/test-unlink.c (main): Likewise.
18577         * tests/test-unlinkat.c (main): Likewise.
18578         * tests/test-utimens.c (main): Likewise.
18579         * tests/test-utimensat.c (main): Likewise.
18580         * modules/areadlink-tests (Depends-on): Add ignore-value.
18581         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18582         * modules/areadlinkat-tests (Depends-on): Likewise.
18583         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18584         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18585         * modules/canonicalize-tests (Depends-on): Likewise.
18586         * modules/chown-tests (Depends-on): Likewise.
18587         * modules/fdutimensat-tests (Depends-on): Likewise.
18588         * modules/futimens-tests (Depends-on): Likewise.
18589         * modules/lchown-tests (Depends-on): Likewise.
18590         * modules/link-tests (Depends-on): Likewise.
18591         * modules/linkat-tests (Depends-on): Likewise.
18592         * modules/lstat-tests (Depends-on): Likewise.
18593         * modules/mkdir-tests (Depends-on): Likewise.
18594         * modules/mkfifo-tests (Depends-on): Likewise.
18595         * modules/mkfifoat-tests (Depends-on): Likewise.
18596         * modules/mknod-tests (Depends-on): Likewise.
18597         * modules/openat-tests (Depends-on): Likewise.
18598         * modules/readlink-tests (Depends-on): Likewise.
18599         * modules/remove-tests (Depends-on): Likewise.
18600         * modules/rename-tests (Depends-on): Likewise.
18601         * modules/renameat-tests (Depends-on): Likewise.
18602         * modules/rmdir-tests (Depends-on): Likewise.
18603         * modules/symlink-tests (Depends-on): Likewise.
18604         * modules/symlinkat-tests (Depends-on): Likewise.
18605         * modules/unlink-tests (Depends-on): Likewise.
18606         * modules/utimens-tests (Depends-on): Likewise.
18607         * modules/utimensat-tests (Depends-on): Likewise.
18608
18609 2010-01-31  Bruno Haible  <bruno@clisp.org>
18610
18611         Perform the same test for many <math.h> functions.
18612         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18613         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18614         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18615         of gl_MATHFUNC.
18616         * modules/acos (configure.ac): Likewise.
18617         * modules/asin (configure.ac): Likewise.
18618         * modules/atan (configure.ac): Likewise.
18619         * modules/atan2 (configure.ac): Likewise.
18620         * modules/cbrt (configure.ac): Likewise.
18621         * modules/copysign (configure.ac): Likewise.
18622         * modules/cos (configure.ac): Likewise.
18623         * modules/cosh (configure.ac): Likewise.
18624         * modules/erf (configure.ac): Likewise.
18625         * modules/erfc (configure.ac): Likewise.
18626         * modules/exp (configure.ac): Likewise.
18627         * modules/fmod (configure.ac): Likewise.
18628         * modules/hypot (configure.ac): Likewise.
18629         * modules/j0 (configure.ac): Likewise.
18630         * modules/j1 (configure.ac): Likewise.
18631         * modules/jn (configure.ac): Likewise.
18632         * modules/lgamma (configure.ac): Likewise.
18633         * modules/log (configure.ac): Likewise.
18634         * modules/log10 (configure.ac): Likewise.
18635         * modules/log1p (configure.ac): Likewise.
18636         * modules/pow (configure.ac): Likewise.
18637         * modules/remainder (configure.ac): Likewise.
18638         * modules/sin (configure.ac): Likewise.
18639         * modules/sinh (configure.ac): Likewise.
18640         * modules/tan (configure.ac): Likewise.
18641         * modules/tanh (configure.ac): Likewise.
18642         * modules/y0 (configure.ac): Likewise.
18643         * modules/y1 (configure.ac): Likewise.
18644         * modules/yn (configure.ac): Likewise.
18645         Suggested by Paolo Bonzini.
18646
18647 2010-01-31  Bruno Haible  <bruno@clisp.org>
18648
18649         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18650
18651 2010-01-31  Bruno Haible  <bruno@clisp.org>
18652
18653         Work around getdelim() bug on FreeBSD 8.0.
18654         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18655         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18656         not work.
18657         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18658         is 1.
18659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18660         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18661         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18662         a non-zero size.
18663         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18664
18665 2010-01-31  Bruno Haible  <bruno@clisp.org>
18666
18667         Work around getline() bug on FreeBSD 8.0.
18668         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18669         and a non-zero size.
18670         * tests/test-getline.c (main): Likewise.
18671         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18672         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18673
18674 2010-01-28  Eric Blake  <ebb9@byu.net>
18675
18676         regex: fix build failure
18677         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18678         platforms.
18679
18680 2010-01-28  Jim Meyering  <meyering@redhat.com>
18681
18682         regex: do not ignore memory allocation failure
18683         * lib/regex_internal.c (create_cd_newstate): Detect
18684         re_node_set_init_copy failure.   Extracted from glibc commit
18685         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18686
18687         regex: sync more white-space changes from libc
18688         * lib/regex_internal.c: White-space only changes.
18689         * lib/regexec.c: Likewise.
18690
18691         regex: add many uses of __attribute_warn_unused_result__
18692         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18693         * lib/regexec.c: Likewise.
18694         Extracted from a messy glibc commit.
18695
18696         regcomp.c: spelling and merge-artifact from glibc
18697         * lib/regcomp.c: Merge remainder of glibc's
18698         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18699
18700         regcomp.c: sync white-space changes from glibc
18701         * lib/regcomp.c: Merge to accommodate white space
18702         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18703
18704         regcomp.c: do not ignore internal return values
18705         * lib/regcomp.c: Do not ignore internal return values.
18706         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18707         but without its white-space changes and spelling fixes.
18708
18709         regex_internal.h: define __attribute_warn_unused_result__
18710         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18711
18712         maint: add a syntax-check rule to check for vulnerable Makefile.in
18713         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18714
18715 2010-01-27  Jim Meyering  <meyering@redhat.com>
18716
18717         ncftpput-ftp: clean up spaces
18718         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18719         Remove trailing blanks.
18720
18721 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18722
18723         * build-aux/git-version-gen: Fix copyright statement.
18724         * build-aux/gnupload: Likewise.
18725         * tests/test-arcfour.c: Likewise.
18726         * tests/test-arctwo.c: Likewise.
18727         * tests/test-count-one-bits.c: Likewise.
18728         * tests/test-crc.c: Likewise.
18729         * tests/test-des.c: Likewise.
18730         * tests/test-gc-arcfour.c: Likewise.
18731         * tests/test-gc-arctwo.c: Likewise.
18732         * tests/test-gc-des.c: Likewise.
18733         * tests/test-gc-hmac-md5.c: Likewise.
18734         * tests/test-gc-hmac-sha1.c: Likewise.
18735         * tests/test-gc-md2.c: Likewise.
18736         * tests/test-gc-md4.c: Likewise.
18737         * tests/test-gc-md5.c: Likewise.
18738         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18739         * tests/test-gc-rijndael.c: Likewise.
18740         * tests/test-gc-sha1.c: Likewise.
18741         * tests/test-gc.c: Likewise.
18742         * tests/test-gethostname.c: Likewise.
18743         * tests/test-gettimeofday.c: Likewise.
18744         * tests/test-hash.c: Likewise.
18745         * tests/test-hmac-md5.c: Likewise.
18746         * tests/test-hmac-sha1.c: Likewise.
18747         * tests/test-md2.c: Likewise.
18748         * tests/test-md4.c: Likewise.
18749         * tests/test-md5.c: Likewise.
18750         * tests/test-memchr.c: Likewise.
18751         * tests/test-memchr2.c: Likewise.
18752         * tests/test-memcmp.c: Likewise.
18753         * tests/test-memmem.c: Likewise.
18754         * tests/test-memrchr.c: Likewise.
18755         * tests/test-rawmemchr.c: Likewise.
18756         * tests/test-read-file.c: Likewise.
18757         * tests/test-rijndael.c: Likewise.
18758         * tests/test-sockets.c: Likewise.
18759         * tests/test-strchrnul.c: Likewise.
18760         * tests/test-strstr.c: Likewise.
18761         * tests/test-strtod.c: Likewise.
18762         * build-aux/ncftpput-ftp: Likewise.
18763
18764 2010-01-26  Eric Blake  <ebb9@byu.net>
18765
18766         ignore-value: update recommended header name
18767         * modules/ignore-value (Include): Only use <> for headers that
18768         exist in glibc.
18769
18770 2010-01-26  Jim Meyering  <meyering@redhat.com>
18771
18772         test-userspec.c: avoid compiler warnings
18773         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18774         and "initialization discards qualifiers..." warnings.
18775         Put the first "uid" in its own scope, and make char* members "const".
18776
18777 2010-01-25  Bruno Haible  <bruno@clisp.org>
18778
18779         gnulib-tool: Make warning diagnostics consistent.
18780         * gnulib-tool (func_warning): New function.
18781         Use it everywhere where gnulib-tool produces output to stderr and it is
18782         not a fatal error.
18783
18784 2010-01-25  Bruno Haible  <bruno@clisp.org>
18785
18786         Fix test dependencies.
18787         * modules/xstrtol-tests (Depends-on): Add inttypes.
18788         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18789
18790 2010-01-25 Pádraig Brady <P@draigBrady.com>
18791
18792         syntax-check: detect incorrect boolean macro values in config.h
18793         * modules/maintainer-makefile (configure.ac): Parameterize the location
18794         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18795         The logic is from Eric Blake and the location indicated by Jim Meyering.
18796         Note the more natural CONFIG_HEADER name is prohibited by automake
18797         for backwards compatibility reasons.
18798         * top/maint.mk (sc_Wundef_boolean): New rule.
18799
18800 2010-01-25  Jim Meyering  <meyering@redhat.com>
18801
18802         bootstrap: detect MacOS 10.6's shasum, too
18803         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18804         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18805
18806 2010-01-23  Jim Meyering  <meyering@redhat.com>
18807
18808         xstrtoll: new module
18809         * modules/xstrtoll: New file.
18810         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18811         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18812         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18813         ./configure fails if you use this module and lack "long long".
18814         * modules/xstrtoll-tests: New module.
18815         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18816         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18817         new init.sh-based test framework.
18818
18819 2010-01-24  Bruno Haible  <bruno@clisp.org>
18820
18821         Tests for module 'yn'.
18822         * modules/yn-tests: New file.
18823         * tests/test-yn.c: New file.
18824
18825         Tests for module 'y1'.
18826         * modules/y1-tests: New file.
18827         * tests/test-y1.c: New file.
18828
18829         Tests for module 'y0'.
18830         * modules/y0-tests: New file.
18831         * tests/test-y0.c: New file.
18832
18833         Tests for module 'tanh'.
18834         * modules/tanh-tests: New file.
18835         * tests/test-tanh.c: New file.
18836
18837         Tests for module 'tan'.
18838         * modules/tan-tests: New file.
18839         * tests/test-tan.c: New file.
18840
18841         Tests for module 'sqrt'.
18842         * modules/sqrt-tests: New file.
18843         * tests/test-sqrt.c: New file.
18844
18845         Tests for module 'sinh'.
18846         * modules/sinh-tests: New file.
18847         * tests/test-sinh.c: New file.
18848
18849         Tests for module 'sin'.
18850         * modules/sin-tests: New file.
18851         * tests/test-sin.c: New file.
18852
18853         Tests for module 'rint'.
18854         * modules/rint-tests: New file.
18855         * tests/test-rint.c: New file.
18856
18857         Tests for module 'remainder'.
18858         * modules/remainder-tests: New file.
18859         * tests/test-remainder.c: New file.
18860
18861         Tests for module 'pow'.
18862         * modules/pow-tests: New file.
18863         * tests/test-pow.c: New file.
18864
18865         Tests for module 'nextafter'.
18866         * modules/nextafter-tests: New file.
18867         * tests/test-nextafter.c: New file.
18868
18869         Tests for module 'modf'.
18870         * modules/modf-tests: New file.
18871         * tests/test-modf.c: New file.
18872
18873         Tests for module 'logb'.
18874         * modules/logb-tests: New file.
18875         * tests/test-logb.c: New file.
18876
18877         Tests for module 'log1p'.
18878         * modules/log1p-tests: New file.
18879         * tests/test-log1p.c: New file.
18880
18881         Tests for module 'log10'.
18882         * modules/log10-tests: New file.
18883         * tests/test-log10.c: New file.
18884
18885         Tests for module 'log'.
18886         * modules/log-tests: New file.
18887         * tests/test-log.c: New file.
18888
18889         Tests for module 'lgamma'.
18890         * modules/lgamma-tests: New file.
18891         * tests/test-lgamma.c: New file.
18892
18893         Tests for module 'ldexp'.
18894         * modules/ldexp-tests: New file.
18895         * tests/test-ldexp.c: New file.
18896
18897         Tests for module 'jn'.
18898         * modules/jn-tests: New file.
18899         * tests/test-jn.c: New file.
18900
18901         Tests for module 'j1'.
18902         * modules/j1-tests: New file.
18903         * tests/test-j1.c: New file.
18904
18905         Tests for module 'j0'.
18906         * modules/j0-tests: New file.
18907         * tests/test-j0.c: New file.
18908
18909         Tests for module 'hypot'.
18910         * modules/hypot-tests: New file.
18911         * tests/test-hypot.c: New file.
18912
18913         Tests for module 'fmod'.
18914         * modules/fmod-tests: New file.
18915         * tests/test-fmod.c: New file.
18916
18917         Tests for module 'fabs'.
18918         * modules/fabs-tests: New file.
18919         * tests/test-fabs.c: New file.
18920
18921         Tests for module 'exp'.
18922         * modules/exp-tests: New file.
18923         * tests/test-exp.c: New file.
18924
18925         Tests for module 'erfc'.
18926         * modules/erfc-tests: New file.
18927         * tests/test-erfc.c: New file.
18928
18929         Tests for module 'erf'.
18930         * modules/erf-tests: New file.
18931         * tests/test-erf.c: New file.
18932
18933         Tests for module 'cosh'.
18934         * modules/cosh-tests: New file.
18935         * tests/test-cosh.c: New file.
18936
18937         Tests for module 'cos'.
18938         * modules/cos-tests: New file.
18939         * tests/test-cos.c: New file.
18940
18941         Tests for module 'copysign'.
18942         * modules/copysign-tests: New file.
18943         * tests/test-copysign.c: New file.
18944
18945         Tests for module 'cbrt'.
18946         * modules/cbrt-tests: New file.
18947         * tests/test-cbrt.c: New file.
18948
18949         Tests for module 'atan2'.
18950         * modules/atan2-tests: New file.
18951         * tests/test-atan2.c: New file.
18952
18953         Tests for module 'atan'.
18954         * modules/atan-tests: New file.
18955         * tests/test-atan.c: New file.
18956
18957         Tests for module 'asin'.
18958         * modules/asin-tests: New file.
18959         * tests/test-asin.c: New file.
18960
18961         Tests for module 'acos'.
18962         * modules/acos-tests: New file.
18963         * tests/test-acos.c: New file.
18964
18965 2010-01-24  Bruno Haible  <bruno@clisp.org>
18966
18967         Fix tests for common <math.h> functions.
18968         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18969         code snippet that references the function pointer, rather than merely
18970         calling the function. Substitute the FUNC_LIBM variable.
18971         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18972         * modules/acos (configure.ac): Likewise.
18973         * modules/asin (configure.ac): Likewise.
18974         * modules/atan (configure.ac): Likewise.
18975         * modules/atan2 (configure.ac): Likewise.
18976         * modules/cbrt (configure.ac): Likewise.
18977         * modules/copysign (configure.ac): Likewise.
18978         * modules/cos (configure.ac): Likewise.
18979         * modules/cosh (configure.ac): Likewise.
18980         * modules/erf (configure.ac): Likewise.
18981         * modules/erfc (configure.ac): Likewise.
18982         * modules/exp (configure.ac): Likewise.
18983         * modules/fabs (configure.ac): Likewise.
18984         * modules/fmod (configure.ac): Likewise.
18985         * modules/hypot (configure.ac): Likewise.
18986         * modules/j0 (configure.ac): Likewise.
18987         * modules/j1 (configure.ac): Likewise.
18988         * modules/jn (configure.ac): Likewise.
18989         * modules/ldexp (configure.ac): Likewise.
18990         * modules/lgamma (configure.ac): Likewise.
18991         * modules/log (configure.ac): Likewise.
18992         * modules/log10 (configure.ac): Likewise.
18993         * modules/log1p (configure.ac): Likewise.
18994         * modules/logb (configure.ac): Likewise.
18995         * modules/modf (configure.ac): Likewise.
18996         * modules/nextafter (configure.ac): Likewise.
18997         * modules/pow (configure.ac): Likewise.
18998         * modules/remainder (configure.ac): Likewise.
18999         * modules/rint (configure.ac): Likewise.
19000         * modules/sin (configure.ac): Likewise.
19001         * modules/sinh (configure.ac): Likewise.
19002         * modules/tan (configure.ac): Likewise.
19003         * modules/tanh (configure.ac): Likewise.
19004         * modules/y0 (configure.ac): Likewise.
19005         * modules/y1 (configure.ac): Likewise.
19006         * modules/yn (configure.ac): Likewise.
19007
19008 2010-01-24  Bruno Haible  <bruno@clisp.org>
19009
19010         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19011         * tests/test-acosl.c (x): New variable.
19012         (main): Store argument in x and fetch it from x.
19013         * tests/test-asinl.c (x): New variable.
19014         (main): Store argument in x and fetch it from x.
19015         * tests/test-atanl.c (x): New variable.
19016         (main): Store argument in x and fetch it from x.
19017         * tests/test-cosl.c (x): New variable.
19018         (main): Store argument in x and fetch it from x.
19019         * tests/test-expl.c (x): New variable.
19020         (main): Store argument in x and fetch it from x.
19021         * tests/test-logl.c (x): New variable.
19022         (main): Store argument in x and fetch it from x.
19023         * tests/test-sinl.c (x): New variable.
19024         (main): Store argument in x and fetch it from x.
19025         * tests/test-sqrtl.c (x): New variable.
19026         (main): Store argument in x and fetch it from x.
19027         * tests/test-tanl.c (x): New variable.
19028         (main): Store argument in x and fetch it from x.
19029
19030 2010-01-24  Bruno Haible  <bruno@clisp.org>
19031
19032         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19033         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19034         assignments to the initial TESTS_ENVIRONMENT.
19035         * doc/gnulib.texi (Unit test modules): Document it.
19036         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19037         TESTS_ENVIRONMENT.
19038         * modules/btowc-tests (Makefile.am): Likewise.
19039         * modules/c-stack-tests (Makefile.am): Likewise.
19040         * modules/c-strcase-tests (Makefile.am): Likewise.
19041         * modules/copy-file-tests (Makefile.am): Likewise.
19042         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19043         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19044         * modules/mbrtowc-tests (Makefile.am): Likewise.
19045         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19046         * modules/mbscasestr-tests (Makefile.am): Likewise.
19047         * modules/mbschr-tests (Makefile.am): Likewise.
19048         * modules/mbscspn-tests (Makefile.am): Likewise.
19049         * modules/mbsinit-tests (Makefile.am): Likewise.
19050         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19051         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19052         * modules/mbspbrk-tests (Makefile.am): Likewise.
19053         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19054         * modules/mbsrchr-tests (Makefile.am): Likewise.
19055         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19056         * modules/mbsspn-tests (Makefile.am): Likewise.
19057         * modules/mbsstr-tests (Makefile.am): Likewise.
19058         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19059         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19060         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19061         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19062         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19063         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19064         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19065         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19066         * modules/wcrtomb-tests (Makefile.am): Likewise.
19067         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19068         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19069         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19070         assignments from TESTS_ENVIRONMENT.
19071         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19072         augmentation.
19073         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19074         * modules/atexit-tests (Makefile.am): Likewise.
19075         * modules/binary-io-tests (Makefile.am): Likewise.
19076         * modules/closein-tests (Makefile.am): Likewise.
19077         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19078         * modules/exclude-tests (Makefile.am): Likewise.
19079         * modules/fflush-tests (Makefile.am): Likewise.
19080         * modules/fpending-tests (Makefile.am): Likewise.
19081         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19082         * modules/freadahead-tests (Makefile.am): Likewise.
19083         * modules/freadptr-tests (Makefile.am): Likewise.
19084         * modules/freadseek-tests (Makefile.am): Likewise.
19085         * modules/fseek-tests (Makefile.am): Likewise.
19086         * modules/fseeko-tests (Makefile.am): Likewise.
19087         * modules/ftell-tests (Makefile.am): Likewise.
19088         * modules/ftello-tests (Makefile.am): Likewise.
19089         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19090         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19091         * modules/lseek-tests (Makefile.am): Likewise.
19092         * modules/parse-duration-tests (Makefile.am): Likewise.
19093         * modules/perror-tests (Makefile.am): Likewise.
19094         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19095         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19096         * modules/pipe-tests (Makefile.am): Likewise.
19097         * modules/pread-tests (Makefile.am): Likewise.
19098         * modules/printf-posix-tests (Makefile.am): Likewise.
19099         * modules/select-tests (Makefile.am): Likewise.
19100         * modules/sigpipe-tests (Makefile.am): Likewise.
19101         * modules/tsearch-tests (Makefile.am): Likewise.
19102         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19103         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19104         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19105         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19106         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19107         * modules/version-etc-tests (Makefile.am): Likewise.
19108         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19109         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19110         * modules/xalloc-die-tests (Makefile.am): Likewise.
19111         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19112         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19113         * modules/xstrtol-tests (Makefile.am): Likewise.
19114         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19115         * modules/yesno-tests (Makefile.am): Likewise.
19116         Suggested by Jim Meyering.
19117
19118 2010-01-24  Bruno Haible  <bruno@clisp.org>
19119
19120         More documentation.
19121         * doc/gnulib.texi (Writing modules): New chapter.
19122         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19123         the new chapter.
19124
19125 2010-01-24  Jim Meyering  <meyering@redhat.com>
19126
19127         maint.mk: do not prepend "./" after filtering
19128         * top/maint.mk (_prepend_srcdir_prefix): New variable
19129         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19130         "./" when $(srcdir) is ".".
19131
19132         define STREQ(a,b) consistently, removing useless parentheses
19133         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19134         since the only risk is that "a" or "b" contains an unparenthesized
19135         comma, but if either did that, STREQ would have 3 or more arguments.
19136         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19137         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19138         * lib/hash-triple.c (STREQ): Likewise.
19139         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19140         * lib/getugroups.c (STREQ): Likewise.
19141
19142 2010-01-23  Jim Meyering  <meyering@redhat.com>
19143
19144         maint.mk: fix syntax-check in a non-srcdir build directory
19145         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19146         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19147
19148 2010-01-22  Jim Meyering  <meyering@redhat.com>
19149
19150         userspec: add unit tests
19151         * tests/test-userspec.c: New file.
19152         * modules/userspec-tests: Likewise.
19153
19154 2010-01-21  Jim Meyering  <meyering@redhat.com>
19155
19156         maint.mk: handle source file names containing "." robustly
19157         * top/maint.mk (_dot_escaped_srcdir): Define.
19158         (VC_LIST): Use it in LHS of sed substitution.
19159
19160 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19161
19162         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19163         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19164         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19165         from a non-srcdir build.
19166
19167 2010-01-20  Eric Blake  <ebb9@byu.net>
19168
19169         warn-on-use: use instead of link-warning
19170         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19171         * modules/unistd (Depends-on, Makefile.am): Likewise.
19172         * modules/arpa_inet (Depends-on): Replace link-warning with
19173         warn-on-use.
19174         (Makefile.am): Update rules accordingly.
19175         * modules/ctype (Depends-on, Makefile.am): Likewise.
19176         * modules/dirent (Depends-on, Makefile.am): Likewise.
19177         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19178         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19179         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19180         * modules/locale (Depends-on, Makefile.am): Likewise.
19181         * modules/math (Depends-on, Makefile.am): Likewise.
19182         * modules/search (Depends-on, Makefile.am): Likewise.
19183         * modules/signal (Depends-on, Makefile.am): Likewise.
19184         * modules/spawn (Depends-on, Makefile.am): Likewise.
19185         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19186         * modules/string (Depends-on, Makefile.am): Likewise.
19187         * modules/strings (Depends-on, Makefile.am): Likewise.
19188         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19189         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19190         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19191         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19192         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19193         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19194         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19195         * modules/wchar (Depends-on, Makefile.am): Likewise.
19196         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19197         should be poisoned.
19198         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19199         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19200         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19201         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19202         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19203         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19204         * m4/math_h.m4 (gl_MATH_H): Likewise.
19205         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19206         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19207         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19208         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19209         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19210         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19211         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19212         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19213         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19215         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19217         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19218         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19219         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19220         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19221         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19222         GL_LINK_WARNING.
19223         * lib/ctype.in.h: Likewise.
19224         * lib/dirent.in.h: Likewise.
19225         * lib/fcntl.in.h: Likewise.
19226         * lib/inttypes.in.h: Likewise.
19227         * lib/langinfo.in.h: Likewise.
19228         * lib/locale.in.h: Likewise.
19229         * lib/math.in.h: Likewise.
19230         * lib/search.in.h: Likewise.
19231         * lib/signal.in.h: Likewise.
19232         * lib/spawn.in.h: Likewise.
19233         * lib/stdio.in.h: Likewise.
19234         * lib/stdlib.in.h: Likewise.
19235         * lib/string.in.h: Likewise.
19236         * lib/strings.in.h: Likewise.
19237         * lib/sys_file.in.h: Likewise.
19238         * lib/sys_ioctl.in.h: Likewise.
19239         * lib/sys_select.in.h: Likewise.
19240         * lib/sys_socket.in.h: Likewise.
19241         * lib/sys_stat.in.h: Likewise.
19242         * lib/sys_times.in.h: Likewise.
19243         * lib/sys_utsname.in.h: Likewise.
19244         * lib/unistd.in.h: Likewise.
19245         * lib/wchar.in.h: Likewise.
19246
19247 2010-01-20  Bruno Haible  <bruno@clisp.org>
19248
19249         Avoid duplicate -lm.
19250         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19251         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19252         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19253         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19254         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19255         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19256         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19257         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19258         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19259         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19260         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19261         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19262         Reported by Paolo Bonzini.
19263
19264 2010-01-19  Bruno Haible  <bruno@clisp.org>
19265
19266         langinfo, nl_langinfo: Relicense under LGPLv2+.
19267         * modules/langinfo (License): Change to LGPLv2+.
19268         * modules/nl_langinfo (License): Likewise.
19269         Patch by David Lutterkort <lutter@redhat.com>.
19270
19271 2010-01-19  Bruno Haible  <bruno@clisp.org>
19272
19273         Avoid compilation error with cc on OSF/1 5.1.
19274         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19275         statement, not before.
19276         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19277
19278 2010-01-18  Bruno Haible  <bruno@clisp.org>
19279
19280         Avoid a link error due to the __printf__ symbol.
19281         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19282         and 2.6.x.
19283         (__format__, __printf__): Remove definitions.
19284         * lib/argp-fmtstream.h: Likewise.
19285         * lib/argp.h: Likewise.
19286         * lib/error.h: Likewise.
19287         * lib/vasnprintf.h: Likewise.
19288         * lib/xprintf.h: Likewise.
19289         * lib/xvasprintf.h: Likewise.
19290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19291
19292 2010-01-18  Bruno Haible  <bruno@clisp.org>
19293
19294         Tests for module 'tanl'.
19295         * modules/tanl-tests: New file.
19296         * tests/test-tanl.c: New file.
19297
19298         Tests for module 'sqrtl'.
19299         * modules/sqrtl-tests: New file.
19300         * tests/test-sqrtl.c: New file.
19301
19302         Tests for module 'sinl'.
19303         * modules/sinl-tests: New file.
19304         * tests/test-sinl.c: New file.
19305
19306         Tests for module 'logl'.
19307         * modules/logl-tests: New file.
19308         * tests/test-logl.c: New file.
19309
19310         Tests for module 'expl'.
19311         * modules/expl-tests: New file.
19312         * tests/test-expl.c: New file.
19313
19314         Tests for module 'cosl'.
19315         * modules/cosl-tests: New file.
19316         * tests/test-cosl.c: New file.
19317
19318         Tests for module 'atanl'.
19319         * modules/atanl-tests: New file.
19320         * tests/test-atanl.c: New file.
19321
19322         Tests for module 'asinl'.
19323         * modules/asinl-tests: New file.
19324         * tests/test-asinl.c: New file.
19325
19326         Tests for module 'acosl'.
19327         * modules/acosl-tests: New file.
19328         * tests/test-acosl.c: New file.
19329
19330         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19331         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19332         tanl): Use the standard gnulib idiom.
19333         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19334         * lib/sinl.c: Likewise.
19335         * lib/tanl.c: Don't include trigl.c.
19336         (kernel_tanl): Make static.
19337         * lib/sincosl.c: Include trigl.h first.
19338         * lib/trigl.c: Likewise.
19339         * m4/acosl.m4: New file.
19340         * m4/asinl.m4: New file.
19341         * m4/atanl.m4: New file.
19342         * m4/cosl.m4: New file.
19343         * m4/expl.m4: New file.
19344         * m4/logl.m4: New file.
19345         * m4/sinl.m4: New file.
19346         * m4/sqrtl.m4: New file.
19347         * m4/tanl.m4: New file.
19348         * m4/mathl.m4: Remove file.
19349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19350         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19351         Don't initialize GNULIB_MATHL.
19352         * modules/acosl: New file.
19353         * modules/asinl: New file.
19354         * modules/atanl: New file.
19355         * modules/cosl: New file.
19356         * modules/expl: New file.
19357         * modules/logl: New file.
19358         * modules/sinl: New file.
19359         * modules/sqrtl: New file.
19360         * modules/tanl: New file.
19361         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19362         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19363         substitute GNULIB_MATHL.
19364         * modules/mathl: Rewritten.
19365         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19366         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19367         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19368         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19369         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19370         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19371         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19372         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19373         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19374
19375 2010-01-18  Bruno Haible  <bruno@clisp.org>
19376
19377         sqrt: Make gl_FUNC_SQRT requirable.
19378         * m4/sqrt.m4: New file.
19379         * modules/sqrt (Files): Add it.
19380         (configure.ac): Invoke gl_FUNC_SQRT.
19381
19382 2010-01-18  Bruno Haible  <bruno@clisp.org>
19383
19384         New modules for common <math.h> functions.
19385         * m4/mathfunc.m4: New file.
19386         * modules/acos: New file.
19387         * modules/asin: New file.
19388         * modules/atan: New file.
19389         * modules/atan2: New file.
19390         * modules/cbrt: New file.
19391         * modules/copysign: New file.
19392         * modules/cos: New file.
19393         * modules/cosh: New file.
19394         * modules/erf: New file.
19395         * modules/erfc: New file.
19396         * modules/exp: New file.
19397         * modules/fabs: New file.
19398         * modules/fmod: New file.
19399         * modules/hypot: New file.
19400         * modules/j0: New file.
19401         * modules/j1: New file.
19402         * modules/jn: New file.
19403         * modules/ldexp: New file.
19404         * modules/lgamma: New file.
19405         * modules/log: New file.
19406         * modules/log10: New file.
19407         * modules/log1p: New file.
19408         * modules/logb: New file.
19409         * modules/modf: New file.
19410         * modules/nextafter: New file.
19411         * modules/pow: New file.
19412         * modules/remainder: New file.
19413         * modules/rint: New file.
19414         * modules/sin: New file.
19415         * modules/sinh: New file.
19416         * modules/sqrt: New file.
19417         * modules/tan: New file.
19418         * modules/tanh: New file.
19419         * modules/y0: New file.
19420         * modules/y1: New file.
19421         * modules/yn: New file.
19422         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19423         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19424         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19425         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19426         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19427         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19428         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19429         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19430         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19431         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19432         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19433         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19434         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19435         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19436         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19437         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19438         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19439         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19440         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19441         * doc/posix-functions/log.texi: Mention the 'log' module.
19442         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19443         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19444         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19445         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19446         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19447         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19448         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19449         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19450         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19451         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19452         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19453         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19454         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19455         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19456         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19457         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19458
19459 2010-01-18  Jim Meyering  <meyering@redhat.com>
19460
19461         ignore-value: relax license to LGPLv2+
19462         * modules/ignore-value (License): Relax to LGPLv2+.
19463
19464         getdate: don't leak when TZ contains two or more '"'s
19465         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19466         double quote in TZ after the first one.
19467
19468         readtokens: do not leak internal token_lengths buffer
19469         * lib/readtokens.c (readtokens): Free the local, lengths,
19470         when the supplied "token_lengths" parameter is NULL.
19471
19472 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19473
19474         Fix a couple of missing LIBTHREAD link failures on AIX.
19475         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19476         $(LIBTHREAD).
19477         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19478
19479         Link test-poll against INET_PTON_LIB.
19480         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19481         for inet_pton on Solaris 10.
19482
19483 2010-01-17  Bruno Haible  <bruno@clisp.org>
19484
19485         unistdio/*-sprintf: Fix typo in module description.
19486         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19487         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19488         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19489         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19490         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19491         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19492         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19494
19495 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19496
19497         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19498         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19499         variables in shell case patterns, for AIX and HP-UX ksh.
19500
19501         Split large sed scripts, for HP-UX sed.
19502         * modules/stdio: Split sed scripts around 50 sed commands,
19503         to avoid HP-UX limit of 99 commands, in the near future.
19504         * modules/string: Likewise.
19505         * modules/unistd: Likewise.
19506
19507         gnulib-tool: avoid writing in the current directory.
19508         * gnulib-tool (func_emit_lib_Makefile_am)
19509         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19510         not in the current directory, so concurrent gnulib-tool
19511         instances do not interfere.
19512
19513 2010-01-16  Jim Meyering  <meyering@redhat.com>
19514
19515         doc: update users.txt
19516         * users.txt: Add grep.
19517         (diffutils, gzip): Update URLs.
19518
19519 2010-01-12  Bruno Haible  <bruno@clisp.org>
19520
19521         posix_spawn: Avoid test failure on Cygwin.
19522         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19523         characters.
19524         Reported by Simon Josefsson.
19525
19526 2010-01-12  Bruno Haible  <bruno@clisp.org>
19527
19528         * tests/test-cond.c (main): When skipping the test, show the reason.
19529
19530 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19531
19532         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19533
19534 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19535
19536         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19537         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19538
19539 2010-01-12  Eric Blake  <ebb9@byu.net>
19540
19541         build: guarantee AS_VAR_IF
19542         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19543         (gl_AS_VAR_IF): Move...
19544         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19545         Reported by Simon Josefsson.
19546
19547 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19548
19549         * lib/stdio.in.h: Fix typo.
19550
19551 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19552
19553         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19554         libgpg-error.
19555
19556 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19557
19558         * tests/test-xalloc-die.sh: Use $EXEEXT.
19559
19560 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19561             Bruno Haible  <bruno@clisp.org>
19562
19563         getlogin, getlogin_r: Avoid test failure.
19564         * tests/test-getlogin.c: Include <stdio.h>.
19565         (main): Skip the test when the function fails because stdin is not a
19566         tty.
19567         * tests/test-getlogin_r.c: Include <stdio.h>.
19568         (main): Skip the test when the function fails because stdin is not a
19569         tty.
19570
19571 2010-01-11  Eric Blake  <ebb9@byu.net>
19572
19573         tests: avoid more large file warnings
19574         * tests/test-fflush.c: Avoid warning about ftell use.
19575         * tests/test-fseek.c: Avoid warning about fseek use.
19576
19577 2010-01-10  Bruno Haible  <bruno@clisp.org>
19578
19579         nproc: Work better on Linux when /proc and /sys are not mounted.
19580         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19581         as lower bound when, on glibc/Linux systems,
19582         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19583         Suggested by Pádraig Brady <P@draigbrady.com>.
19584         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19585
19586         nproc: Refactor.
19587         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19588         extracted from num_processors.
19589         (num_processors): Call it.
19590
19591 2010-01-11  Jim Meyering  <meyering@redhat.com>
19592
19593         utimecmp: avoid new warning from upcoming gcc-4.5.0
19594         * lib/utimecmp.c (BILLION): Define using #define rather than an
19595         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19596
19597 2010-01-11  Eric Blake  <ebb9@byu.net>
19598
19599         math: add portability warnings for classification macros
19600         * modules/math (Depends-on): Add warn-on-use.
19601         (Makefile.am): Provide new substitutions.
19602         * m4/math_h.m4 (gl_MATH_H): Require inline.
19603         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19604         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19605         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19606         implement warnings.
19607
19608         unistd: warn on use of environ without module
19609         * modules/unistd (Depends-on): Add warn-on-use.
19610         (Makefile.am): Provide new substitutions.
19611         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19612         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19613
19614         stdio: warn on suspicious uses
19615         * modules/stdio (Depends-on): Add warn-on-use.
19616         (Makefile.am): Provide new substitutions.
19617         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19618         fseeko.
19619         * lib/stdio.in.h (gets): Always warn on use.
19620         (fseek, ftell): Adjust when warnings are issued, and honor
19621         _GL_NO_LARGE_FILES as a way to silence the warning.
19622         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19623         any warning about large file offsets.
19624         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19625         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19626         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19627         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19628         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19629         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19630         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19631         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19632
19633         warn-on-use: new module
19634         * modules/warn-on-use: New file.
19635         * build-aux/warn-on-use.h: Likewise.
19636         * m4/warn-on-use.m4: Likewise.
19637         * MODULES.html.sh (Support for building): Mention it.
19638
19639 2010-01-10  Bruno Haible  <bruno@clisp.org>
19640
19641         Tests for module 'unistr/u32-strdup'.
19642         * modules/unistr/u32-strdup-tests: New file.
19643         * tests/unistr/test-u32-strdup.c: New file.
19644
19645         Tests for module 'unistr/u16-strdup'.
19646         * modules/unistr/u16-strdup-tests: New file.
19647         * tests/unistr/test-u16-strdup.c: New file.
19648
19649         Tests for module 'unistr/u8-strdup'.
19650         * modules/unistr/u8-strdup-tests: New file.
19651         * tests/unistr/test-u8-strdup.c: New file.
19652         * tests/unistr/test-strdup.h: New file.
19653
19654         Tests for module 'unistr/u32-strncmp'.
19655         * modules/unistr/u32-strncmp-tests: New file.
19656         * tests/unistr/test-u32-strncmp.c: New file.
19657
19658         Tests for module 'unistr/u16-strncmp'.
19659         * modules/unistr/u16-strncmp-tests: New file.
19660         * tests/unistr/test-u16-strncmp.c: New file.
19661
19662         Tests for module 'unistr/u8-strncmp'.
19663         * modules/unistr/u8-strncmp-tests: New file.
19664         * tests/unistr/test-u8-strncmp.c: New file.
19665         * tests/unistr/test-strncmp.h: New file.
19666
19667         Tests for module 'unistr/u32-strcoll'.
19668         * modules/unistr/u32-strcoll-tests: New file.
19669         * tests/unistr/test-u32-strcoll.c: New file.
19670
19671         Tests for module 'unistr/u16-strcoll'.
19672         * modules/unistr/u16-strcoll-tests: New file.
19673         * tests/unistr/test-u16-strcoll.c: New file.
19674
19675         Tests for module 'unistr/u8-strcoll'.
19676         * modules/unistr/u8-strcoll-tests: New file.
19677         * tests/unistr/test-u8-strcoll.c: New file.
19678
19679         Tests for module 'unistr/u32-strcmp'.
19680         * modules/unistr/u32-strcmp-tests: New file.
19681         * tests/unistr/test-u32-strcmp.c: New file.
19682         * tests/unistr/test-u32-strcmp.h: New file.
19683
19684         Tests for module 'unistr/u16-strcmp'.
19685         * modules/unistr/u16-strcmp-tests: New file.
19686         * tests/unistr/test-u16-strcmp.c: New file.
19687         * tests/unistr/test-u16-strcmp.h: New file.
19688
19689         Tests for module 'unistr/u8-strcmp'.
19690         * modules/unistr/u8-strcmp-tests: New file.
19691         * tests/unistr/test-u8-strcmp.c: New file.
19692         * tests/unistr/test-u8-strcmp.h: New file.
19693         * tests/unistr/test-strcmp.h: New file.
19694
19695         Tests for module 'unistr/u32-strncat'.
19696         * modules/unistr/u32-strncat-tests: New file.
19697         * tests/unistr/test-u32-strncat.c: New file.
19698
19699         Tests for module 'unistr/u16-strncat'.
19700         * modules/unistr/u16-strncat-tests: New file.
19701         * tests/unistr/test-u16-strncat.c: New file.
19702
19703         Tests for module 'unistr/u8-strncat'.
19704         * modules/unistr/u8-strncat-tests: New file.
19705         * tests/unistr/test-u8-strncat.c: New file.
19706         * tests/unistr/test-strncat.h: New file.
19707
19708         Tests for module 'unistr/u32-strcat'.
19709         * modules/unistr/u32-strcat-tests: New file.
19710         * tests/unistr/test-u32-strcat.c: New file.
19711
19712         Tests for module 'unistr/u16-strcat'.
19713         * modules/unistr/u16-strcat-tests: New file.
19714         * tests/unistr/test-u16-strcat.c: New file.
19715
19716         Tests for module 'unistr/u8-strcat'.
19717         * modules/unistr/u8-strcat-tests: New file.
19718         * tests/unistr/test-u8-strcat.c: New file.
19719         * tests/unistr/test-strcat.h: New file.
19720
19721         Tests for module 'unistr/u32-stpncpy'.
19722         * modules/unistr/u32-stpncpy-tests: New file.
19723         * tests/unistr/test-u32-stpncpy.c: New file.
19724
19725         Tests for module 'unistr/u16-stpncpy'.
19726         * modules/unistr/u16-stpncpy-tests: New file.
19727         * tests/unistr/test-u16-stpncpy.c: New file.
19728
19729         Tests for module 'unistr/u8-stpncpy'.
19730         * modules/unistr/u8-stpncpy-tests: New file.
19731         * tests/unistr/test-u8-stpncpy.c: New file.
19732         * tests/unistr/test-stpncpy.h: New file.
19733
19734         Tests for module 'unistr/u32-strncpy'.
19735         * modules/unistr/u32-strncpy-tests: New file.
19736         * tests/unistr/test-u32-strncpy.c: New file.
19737
19738         Tests for module 'unistr/u16-strncpy'.
19739         * modules/unistr/u16-strncpy-tests: New file.
19740         * tests/unistr/test-u16-strncpy.c: New file.
19741
19742         Tests for module 'unistr/u8-strncpy'.
19743         * modules/unistr/u8-strncpy-tests: New file.
19744         * tests/unistr/test-u8-strncpy.c: New file.
19745         * tests/unistr/test-strncpy.h: New file.
19746
19747         Tests for module 'unistr/u32-stpcpy'.
19748         * modules/unistr/u32-stpcpy-tests: New file.
19749         * tests/unistr/test-u32-stpcpy.c: New file.
19750
19751         Tests for module 'unistr/u16-stpcpy'.
19752         * modules/unistr/u16-stpcpy-tests: New file.
19753         * tests/unistr/test-u16-stpcpy.c: New file.
19754
19755         Tests for module 'unistr/u8-stpcpy'.
19756         * modules/unistr/u8-stpcpy-tests: New file.
19757         * tests/unistr/test-u8-stpcpy.c: New file.
19758         * tests/unistr/test-stpcpy.h: New file.
19759
19760         Tests for module 'unistr/u32-strcpy'.
19761         * modules/unistr/u32-strcpy-tests: New file.
19762         * tests/unistr/test-u32-strcpy.c: New file.
19763
19764         Tests for module 'unistr/u16-strcpy'.
19765         * modules/unistr/u16-strcpy-tests: New file.
19766         * tests/unistr/test-u16-strcpy.c: New file.
19767
19768         Tests for module 'unistr/u8-strcpy'.
19769         * modules/unistr/u8-strcpy-tests: New file.
19770         * tests/unistr/test-u8-strcpy.c: New file.
19771         * tests/unistr/test-strcpy.h: New file.
19772
19773         Tests for module 'unistr/u32-strnlen'.
19774         * modules/unistr/u32-strnlen-tests: New file.
19775         * tests/unistr/test-u32-strnlen.c: New file.
19776
19777         Tests for module 'unistr/u16-strnlen'.
19778         * modules/unistr/u16-strnlen-tests: New file.
19779         * tests/unistr/test-u16-strnlen.c: New file.
19780
19781         Tests for module 'unistr/u8-strnlen'.
19782         * modules/unistr/u8-strnlen-tests: New file.
19783         * tests/unistr/test-u8-strnlen.c: New file.
19784         * tests/unistr/test-strnlen.h: New file.
19785
19786         Tests for module 'unistr/u32-strlen'.
19787         * modules/unistr/u32-strlen-tests: New file.
19788         * tests/unistr/test-u32-strlen.c: New file.
19789
19790         Tests for module 'unistr/u16-strlen'.
19791         * modules/unistr/u16-strlen-tests: New file.
19792         * tests/unistr/test-u16-strlen.c: New file.
19793
19794         Tests for module 'unistr/u8-strlen'.
19795         * modules/unistr/u8-strlen-tests: New file.
19796         * tests/unistr/test-u8-strlen.c: New file.
19797
19798         Tests for module 'unistr/u32-prev'.
19799         * modules/unistr/u32-prev-tests: New file.
19800         * tests/unistr/test-u32-prev.c: New file.
19801
19802         Tests for module 'unistr/u16-prev'.
19803         * modules/unistr/u16-prev-tests: New file.
19804         * tests/unistr/test-u16-prev.c: New file.
19805
19806         Tests for module 'unistr/u8-prev'.
19807         * modules/unistr/u8-prev-tests: New file.
19808         * tests/unistr/test-u8-prev.c: New file.
19809
19810         Tests for module 'unistr/u32-next'.
19811         * modules/unistr/u32-next-tests: New file.
19812         * tests/unistr/test-u32-next.c: New file.
19813
19814         Tests for module 'unistr/u16-next'.
19815         * modules/unistr/u16-next-tests: New file.
19816         * tests/unistr/test-u16-next.c: New file.
19817
19818         Tests for module 'unistr/u8-next'.
19819         * modules/unistr/u8-next-tests: New file.
19820         * tests/unistr/test-u8-next.c: New file.
19821
19822         Tests for module 'unistr/u32-strmbtouc'.
19823         * modules/unistr/u32-strmbtouc-tests: New file.
19824         * tests/unistr/test-u32-strmbtouc.c: New file.
19825
19826         Tests for module 'unistr/u16-strmbtouc'.
19827         * modules/unistr/u16-strmbtouc-tests: New file.
19828         * tests/unistr/test-u16-strmbtouc.c: New file.
19829
19830         Tests for module 'unistr/u8-strmbtouc'.
19831         * modules/unistr/u8-strmbtouc-tests: New file.
19832         * tests/unistr/test-u8-strmbtouc.c: New file.
19833
19834         Tests for module 'unistr/u32-strmblen'.
19835         * modules/unistr/u32-strmblen-tests: New file.
19836         * tests/unistr/test-u32-strmblen.c: New file.
19837
19838         Tests for module 'unistr/u16-strmblen'.
19839         * modules/unistr/u16-strmblen-tests: New file.
19840         * tests/unistr/test-u16-strmblen.c: New file.
19841
19842         Tests for module 'unistr/u8-strmblen'.
19843         * modules/unistr/u8-strmblen-tests: New file.
19844         * tests/unistr/test-u8-strmblen.c: New file.
19845
19846         Tests for module 'unistr/u32-cpy-alloc'.
19847         * modules/unistr/u32-cpy-alloc-tests: New file.
19848         * tests/unistr/test-u32-cpy-alloc.c: New file.
19849
19850         Tests for module 'unistr/u16-cpy-alloc'.
19851         * modules/unistr/u16-cpy-alloc-tests: New file.
19852         * tests/unistr/test-u16-cpy-alloc.c: New file.
19853
19854         Tests for module 'unistr/u8-cpy-alloc'.
19855         * modules/unistr/u8-cpy-alloc-tests: New file.
19856         * tests/unistr/test-u8-cpy-alloc.c: New file.
19857         * tests/unistr/test-cpy-alloc.h: New file.
19858
19859         Tests for module 'unistr/u32-mbsnlen'.
19860         * modules/unistr/u32-mbsnlen-tests: New file.
19861         * tests/unistr/test-u32-mbsnlen.c: New file.
19862
19863         Tests for module 'unistr/u16-mbsnlen'.
19864         * modules/unistr/u16-mbsnlen-tests: New file.
19865         * tests/unistr/test-u16-mbsnlen.c: New file.
19866
19867         Tests for module 'unistr/u8-mbsnlen'.
19868         * modules/unistr/u8-mbsnlen-tests: New file.
19869         * tests/unistr/test-u8-mbsnlen.c: New file.
19870
19871         Tests for module 'unistr/u32-chr'.
19872         * modules/unistr/u32-chr-tests: New file.
19873         * tests/unistr/test-u32-chr.c: New file.
19874
19875         Tests for module 'unistr/u16-chr'.
19876         * modules/unistr/u16-chr-tests: New file.
19877         * tests/unistr/test-u16-chr.c: New file.
19878
19879         Tests for module 'unistr/u8-chr'.
19880         * modules/unistr/u8-chr-tests: New file.
19881         * tests/unistr/test-u8-chr.c: New file.
19882         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19883
19884         Tests for module 'unistr/u32-cmp2'.
19885         * modules/unistr/u32-cmp2-tests: New file.
19886         * tests/unistr/test-u32-cmp2.c: New file.
19887
19888         Tests for module 'unistr/u16-cmp2'.
19889         * modules/unistr/u16-cmp2-tests: New file.
19890         * tests/unistr/test-u16-cmp2.c: New file.
19891
19892         Tests for module 'unistr/u8-cmp2'.
19893         * modules/unistr/u8-cmp2-tests: New file.
19894         * tests/unistr/test-u8-cmp2.c: New file.
19895         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19896
19897         Tests for module 'unistr/u32-cmp'.
19898         * modules/unistr/u32-cmp-tests: New file.
19899         * tests/unistr/test-u32-cmp.c: New file.
19900
19901         Tests for module 'unistr/u16-cmp'.
19902         * modules/unistr/u16-cmp-tests: New file.
19903         * tests/unistr/test-u16-cmp.c: New file.
19904
19905         Tests for module 'unistr/u8-cmp'.
19906         * modules/unistr/u8-cmp-tests: New file.
19907         * tests/unistr/test-u8-cmp.c: New file.
19908         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19909
19910         Tests for module 'unistr/u32-set'.
19911         * modules/unistr/u32-set-tests: New file.
19912         * tests/unistr/test-u32-set.c: New file.
19913
19914         Tests for module 'unistr/u16-set'.
19915         * modules/unistr/u16-set-tests: New file.
19916         * tests/unistr/test-u16-set.c: New file.
19917
19918         Tests for module 'unistr/u8-set'.
19919         * modules/unistr/u8-set-tests: New file.
19920         * tests/unistr/test-u8-set.c: New file.
19921         * tests/unistr/test-set.h: New file.
19922
19923         Tests for module 'unistr/u32-move'.
19924         * modules/unistr/u32-move-tests: New file.
19925         * tests/unistr/test-u32-move.c: New file.
19926
19927         Tests for module 'unistr/u16-move'.
19928         * modules/unistr/u16-move-tests: New file.
19929         * tests/unistr/test-u16-move.c: New file.
19930
19931         Tests for module 'unistr/u8-move'.
19932         * modules/unistr/u8-move-tests: New file.
19933         * tests/unistr/test-u8-move.c: New file.
19934         * tests/unistr/test-move.h: New file.
19935
19936         Tests for module 'unistr/u32-cpy'.
19937         * modules/unistr/u32-cpy-tests: New file.
19938         * tests/unistr/test-u32-cpy.c: New file.
19939
19940         Tests for module 'unistr/u16-cpy'.
19941         * modules/unistr/u16-cpy-tests: New file.
19942         * tests/unistr/test-u16-cpy.c: New file.
19943
19944         Tests for module 'unistr/u8-cpy'.
19945         * modules/unistr/u8-cpy-tests: New file.
19946         * tests/unistr/test-u8-cpy.c: New file.
19947         * tests/unistr/test-cpy.h: New file.
19948
19949 2010-01-09  Bruno Haible  <bruno@clisp.org>
19950
19951         Tests for module 'unistr/u32-uctomb'.
19952         * modules/unistr/u32-uctomb-tests: New file.
19953         * tests/unistr/test-u32-uctomb.c: New file.
19954
19955         Tests for module 'unistr/u16-uctomb'.
19956         * modules/unistr/u16-uctomb-tests: New file.
19957         * tests/unistr/test-u16-uctomb.c: New file.
19958
19959         Tests for module 'unistr/u8-uctomb'.
19960         * modules/unistr/u8-uctomb-tests: New file.
19961         * tests/unistr/test-u8-uctomb.c: New file.
19962
19963         Tests for module 'unistr/u32-mbtoucr'.
19964         * modules/unistr/u32-mbtoucr-tests: New file.
19965         * tests/unistr/test-u32-mbtoucr.c: New file.
19966
19967         Tests for module 'unistr/u16-mbtoucr'.
19968         * modules/unistr/u16-mbtoucr-tests: New file.
19969         * tests/unistr/test-u16-mbtoucr.c: New file.
19970
19971         Tests for module 'unistr/u8-mbtoucr'.
19972         * modules/unistr/u8-mbtoucr-tests: New file.
19973         * tests/unistr/test-u8-mbtoucr.c: New file.
19974
19975         Tests for module 'unistr/u32-mbtouc'.
19976         * modules/unistr/u32-mbtouc-tests: New file.
19977         * tests/unistr/test-u32-mbtouc.c: New file.
19978
19979         Tests for module 'unistr/u16-mbtouc'.
19980         * modules/unistr/u16-mbtouc-tests: New file.
19981         * tests/unistr/test-u16-mbtouc.c: New file.
19982
19983         Tests for module 'unistr/u8-mbtouc'.
19984         * modules/unistr/u8-mbtouc-tests: New file.
19985         * tests/unistr/test-u8-mbtouc.c: New file.
19986
19987         Tests for module 'unistr/u32-mbtouc-unsafe'.
19988         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19989         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19990         * tests/unistr/test-u32-mbtouc.h: New file.
19991
19992         Tests for module 'unistr/u16-mbtouc-unsafe'.
19993         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19994         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19995         * tests/unistr/test-u16-mbtouc.h: New file.
19996
19997         Tests for module 'unistr/u8-mbtouc-unsafe'.
19998         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19999         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20000         * tests/unistr/test-u8-mbtouc.h: New file.
20001
20002         Tests for module 'unistr/u32-mblen'.
20003         * modules/unistr/u32-mblen-tests: New file.
20004         * tests/unistr/test-u32-mblen.c: New file.
20005
20006         Tests for module 'unistr/u16-mblen'.
20007         * modules/unistr/u16-mblen-tests: New file.
20008         * tests/unistr/test-u16-mblen.c: New file.
20009
20010         Tests for module 'unistr/u8-mblen'.
20011         * modules/unistr/u8-mblen-tests: New file.
20012         * tests/unistr/test-u8-mblen.c: New file.
20013
20014         Tests for module 'unistr/u32-to-u16'.
20015         * modules/unistr/u32-to-u16-tests: New file.
20016         * tests/unistr/test-u32-to-u16.c: New file.
20017
20018         Tests for module 'unistr/u32-to-u8'.
20019         * modules/unistr/u32-to-u8-tests: New file.
20020         * tests/unistr/test-u32-to-u8.c: New file.
20021
20022         Tests for module 'unistr/u16-to-u32'.
20023         * modules/unistr/u16-to-u32-tests: New file.
20024         * tests/unistr/test-u16-to-u32.c: New file.
20025
20026         Tests for module 'unistr/u16-to-u8'.
20027         * modules/unistr/u16-to-u8-tests: New file.
20028         * tests/unistr/test-u16-to-u8.c: New file.
20029
20030         Tests for module 'unistr/u8-to-u32'.
20031         * modules/unistr/u8-to-u32-tests: New file.
20032         * tests/unistr/test-u8-to-u32.c: New file.
20033
20034         Tests for module 'unistr/u8-to-u16'.
20035         * modules/unistr/u8-to-u16-tests: New file.
20036         * tests/unistr/test-u8-to-u16.c: New file.
20037
20038         Tests for module 'unistr/u32-check'.
20039         * modules/unistr/u32-check-tests: New file.
20040         * tests/unistr/test-u32-check.c: New file.
20041
20042         Tests for module 'unistr/u16-check'.
20043         * modules/unistr/u16-check-tests: New file.
20044         * tests/unistr/test-u16-check.c: New file.
20045
20046         Tests for module 'unistr/u8-check'.
20047         * modules/unistr/u8-check-tests: New file.
20048         * tests/unistr/test-u8-check.c: New file.
20049
20050         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20051         (category_equals): New function.
20052         (main): Add more tests.
20053         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20054
20055         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20056
20057 2010-01-10  Bruno Haible  <bruno@clisp.org>
20058
20059         unistr/u*-strcoll: Try harder to distinguish different strings.
20060         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20061         compare s1 and s2 to see if they are different.
20062
20063 2010-01-10  Bruno Haible  <bruno@clisp.org>
20064
20065         unistr/u*-stpncpy: Fix the return value.
20066         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20067         description of the return value consistent with stpncpy in glibc.
20068         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20069         written non-NUL unit.
20070
20071 2010-01-10  Bruno Haible  <bruno@clisp.org>
20072
20073         unistr/u*-next: Add missing dependencies.
20074         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20075         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20076         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20077
20078 2010-01-10  Bruno Haible  <bruno@clisp.org>
20079
20080         unistr/u8-mbsnlen: Fix return value for incomplete character.
20081         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20082         u8_mblen.
20083         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20084         Remove unistr/u8-mblen.
20085         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20086         u16_mblen.
20087         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20088         Remove unistr/u16-mblen.
20089
20090 2010-01-10  Bruno Haible  <bruno@clisp.org>
20091
20092         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20093         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20094         Reported by Brian Gough <bjg@gnu.org> and
20095         Chris Clayton <chris2553@googlemail.com> via
20096         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20097
20098 2010-01-09  Bruno Haible  <bruno@clisp.org>
20099
20100         unistr/u16-to-u32: Reject invalid input.
20101         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20102         u16_mbtouc.
20103         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20104         Remove unistr/u16-mbtouc.
20105
20106         unistr/u16-to-u8: Reject invalid input.
20107         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20108         u16_mbtouc.
20109         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20110         Remove unistr/u16-mbtouc.
20111
20112         unistr/u8-to-u32: Reject invalid input.
20113         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20114         u8_mbtouc.
20115         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20116         Remove unistr/u8-mbtouc.
20117
20118         unistr/u8-to-u16: Reject invalid input.
20119         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20120         u8_mbtouc.
20121         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20122         Remove unistr/u8-mbtouc.
20123
20124 2010-01-09  Bruno Haible  <bruno@clisp.org>
20125
20126         Tests for module 'getlogin'.
20127         * modules/getlogin-tests: New file.
20128         * tests/test-getlogin.c: New file.
20129
20130         New module 'getlogin'.
20131         * lib/unistd.in.h (getlogin): New declaration.
20132         * lib/getlogin.c: New file.
20133         * m4/getlogin.m4: New file.
20134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20135         HAVE_GETLOGIN.
20136         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20137         HAVE_GETLOGIN.
20138         * modules/getlogin: New file.
20139         * doc/posix-functions/getlogin.texi: Mention the new module.
20140         Reported by John W. Eaton <jwe@gnu.org>.
20141
20142 2010-01-09  Bruno Haible  <bruno@clisp.org>
20143
20144         getlogin_r: Support for native Windows.
20145         * lib/getlogin_r.c: Include <windows.h>
20146         (getlogin_r): Implement for native Windows.
20147         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20148         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20149         via John W. Eaton <jwe@gnu.org>.
20150
20151 2010-01-09  Bruno Haible  <bruno@clisp.org>
20152
20153         getlogin_r: Small fixes.
20154         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20155         succeeds.
20156         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20157         before testing whether getlogin_r is declared. No need to set
20158         HAVE_DECL_GETLOGIN_R to 1.
20159         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20160
20161 2010-01-09  Bruno Haible  <bruno@clisp.org>
20162
20163         * lib/unistd.in.h (getlogin_r): Add comment.
20164
20165 2010-01-09  Bruno Haible  <bruno@clisp.org>
20166
20167         Tests for module 'getlogin_r'.
20168         * modules/getlogin_r-tests: New file.
20169         * tests/test-getlogin_r.c: New file.
20170
20171 2010-01-09  Jim Meyering  <meyering@redhat.com>
20172
20173         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20174         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20175         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20176
20177 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20178
20179         * lib/dup2.c (rpl_dup2): Improve comment.
20180
20181 2010-01-08  Eric Blake  <ebb9@byu.net>
20182
20183         maint.mk: allow packages to add makefile @@ exceptions
20184         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20185         (sc_makefile_check): Rename...
20186         (sc_makefile_at_at_check): ...to this, and use hook.
20187
20188         dup2: work around mingw bug
20189         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20190         Reported by Simon Josefsson.
20191
20192 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20193
20194         glob: Fix C++ compilation.
20195         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20196         C++.
20197
20198 2010-01-07  Bruno Haible  <bruno@clisp.org>
20199
20200         Fix indentation of wctype.in.h, broken since 2007-01-06.
20201         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20202
20203 2010-01-07  Bruno Haible  <bruno@clisp.org>
20204
20205         mbslen: Avoid collision with system function.
20206         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20207         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20208         * m4/mbslen.m4: New file.
20209         * modules/mbslen (Files): Add it.
20210         (configure.ac): Invoke gl_MBSLEN.
20211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20212         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20213         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20214         via Ian Beckwith <ianb@erislabs.net>.
20215
20216 2010-01-07  Bruno Haible  <bruno@clisp.org>
20217
20218         dirent: Document the last fix.
20219         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20220
20221 2010-01-07  Bruno Haible  <bruno@clisp.org>
20222
20223         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20224         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20225         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20226         va_list are defined.
20227         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20228         Reported by Eric Blake.
20229
20230 2010-01-07  Bruno Haible  <bruno@clisp.org>
20231
20232         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20233         * modules/xlist (Depends-on): Add 'list',
20234         * modules/xoset (Depends-on): Add 'oset'.
20235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20236
20237 2010-01-07  Bruno Haible  <bruno@clisp.org>
20238
20239         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20240         * doc/posix-functions/strncasecmp.texi: Likewise.
20241
20242 2010-01-07  Bruno Haible  <bruno@clisp.org>
20243
20244         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20245
20246 2010-01-07  John W. Eaton  <jwe@octave.org>
20247
20248         wctype: allow C++ use
20249         * lib/wctype.in.h: Add extern "C" block for C++.
20250
20251 2010-01-06  Eric Blake  <ebb9@byu.net>
20252
20253         maint.mk: detect incorrect GFDL usage
20254         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20255
20256 2010-01-06  Jim Meyering  <meyering@redhat.com>
20257         and Eric Blake  <ebb9@byu.net>
20258
20259         maint.mk: ignore multi-line copyright in NEWS
20260         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20261
20262 2010-01-06  Eric Blake  <ebb9@byu.net>
20263
20264         select: add missing dependency
20265         * modules/select-tests (Depends-on): Move sockets dependency...
20266         * modules/select (Depends-on): ...here.
20267         Reported by Ian Beckwith.
20268
20269         doc: regenerate INSTALL
20270         * doc/INSTALL: Reflect recent autoconf update.
20271         * doc/INSTALL.ISO: Likewise.
20272         * doc/INSTALL.UTF-8: Likewise.
20273
20274         pread: fix compilation on glibc
20275         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20276         Reported by Ralf Wildenhues.
20277
20278         dirent: fix test failure
20279         * lib/dirent.in.h (includes): Guarantee ino_t.
20280         Reported by Ralf Wildenhues.
20281
20282 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20283
20284         linkat, renameat: avoid bad free
20285         * lib/at-func2.c (at_func2): Fix typo.
20286         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20287
20288 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20289
20290         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20291         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20292         to avoid failure of symlink test later.
20293
20294 2010-01-06  Eric Blake  <ebb9@byu.net>
20295
20296         stdio, unistd: guarantee ssize_t
20297         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20298         2008 are exposed when needed.
20299         * lib/stdio.in.h (includes): Likewise.
20300         Reported by Ralf Wildenhues.
20301
20302 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20303
20304         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20305         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20306         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20307
20308 2010-01-06  Jim Meyering  <meyering@redhat.com>
20309
20310         readtokens: this module *does* require xalloc.h
20311         It uses only functions that were omitted by the old syntax-check rule.
20312         * lib/readtokens.c: Include "xalloc.h" once again.
20313         * modules/readtokens (Depends-on): Add xalloc.
20314         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20315
20316 2010-01-05  Eric Blake  <ebb9@byu.net>
20317
20318         maint: support 'make announcement' from a VPATH build
20319         * top/maint.mk (announcement): Look for correct NEWS file.
20320
20321 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20322
20323         utimens (fdutimens): ignore a negative FD, per contract
20324         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20325         when we have a valid file descriptor.  Otherwise, using a brand
20326         new glibc (with just-patched futimens that now fails with EBADF)
20327         would cause this function to fail with ENOSYS.
20328         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20329         See also http://bugzilla.redhat.com/552320.
20330
20331 2010-01-05  Eric Blake  <ebb9@byu.net>
20332
20333         strcase: document what it provides
20334         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20335         gnulib module.
20336         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20337         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20338
20339 2010-01-05  Jim Meyering  <meyering@redhat.com>
20340
20341         maint: remove useless inclusions of "xalloc.h"
20342         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20343         * lib/readtokens.c: Likewise.
20344         * lib/same.c: Likewise.
20345         * modules/getloadavg (Depends-on): Remove xalloc.
20346         * modules/readtokens: Likewise.
20347         * modules/same: Likewise.
20348
20349         maint.mk: include 4 more function names in alloca.h-checking regexp
20350         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20351         regexp.  Before, we would give a false-positive (saying alloca.h
20352         is included unnecessarily) when the only uses involved omitted symbols.
20353
20354         xalloc.h: use consistent formatting
20355         * lib/xalloc.h: Move declarations to start in the first column.
20356
20357 2010-01-05  Eric Blake  <ebb9@byu.net>
20358
20359         mkdir: avoid xalloc
20360         * lib/mkdir.c (includes): Drop unused header.
20361         Reported by John W. Eaton.
20362
20363 2010-01-04  Jim Meyering  <meyering@redhat.com>
20364
20365         nl_langinfo: avoid configure-time syntax error
20366         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20367         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20368         the empty string.  Don't let that provoke a shell syntax error.
20369
20370         regcomp, regexec, fnmatch: avoid array bounds read error
20371         * lib/regcomp.c (build_equiv_class): From glibc:
20372         Use only the low 24 bits of a findidx return value as an index
20373         into the weights array.  Patch by Ulrich Drepper:
20374         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20375         * lib/regexec.c (check_node_accept_bytes): Likewise.
20376         * lib/fnmatch_loop.c (FCT): Likewise.
20377
20378         regcomp: skip collseq lookup when there are no rules
20379         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20380         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20381
20382         regcomp: recognize ill-formed { } expressions
20383         * lib/regcomp.c (parse_dup_op): From glibc:
20384         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20385
20386         regcomp: fix typo in comment
20387         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20388         s/satisfy/satisfies/.
20389
20390         regcomp: sync from glibc: remove dead store
20391         * lib/regcomp.c (duplicate_node_closure): Remove useless
20392         search_duplicated_node call and dead store.
20393
20394         regcomp: sync from glibc; always use nl_langinfo
20395         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20396         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20397         * modules/regex (Depends-on): Add nl_langinfo.
20398
20399 2010-01-04  Eric Blake  <ebb9@byu.net>
20400
20401         fdopendir: fix configure test
20402         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20403
20404 2010-01-01  Bruno Haible  <bruno@clisp.org>
20405
20406         wchar: Remove unused configure check.
20407         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20408
20409 2010-01-01  Eric Blake  <ebb9@byu.net>
20410
20411         headers: make check of system header explicit
20412         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20413         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20414         ourselves.
20415         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20417         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20418         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20419         internals.
20420         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20421         missing.
20422         Suggested by Bruno Haible.
20423
20424 2010-01-01  Jim Meyering  <meyering@redhat.com>
20425
20426         ChangeLog: tweak to eliminate unnecessary copyright line
20427         * ChangeLog: Remove a copyright line that was mistakenly updated
20428         by today's update-copyright run.  Reported by Eric Blake.
20429
20430         test-update-copyright: don't let envvar setting cause test failure
20431         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20432
20433 2010-01-01  Bruno Haible  <bruno@clisp.org>
20434
20435         localename: Avoid gcc warning.
20436         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20437         function if it is not used.
20438
20439 2010-01-01  Jim Meyering  <meyering@redhat.com>
20440
20441         update nearly all FSF copyright year lists to include 2010
20442         Use the same procedure as for 2009, outlined in
20443         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20444
20445         version-etc: set COPYRIGHT_YEAR to 2010
20446         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20447
20448 2009-12-31  Eric Blake  <ebb9@byu.net>
20449
20450         doc: correct availability of cygwin 1.5.x getopt
20451         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20452         variables.
20453         * doc/posix-functions/opterr.texi (opterr): Likewise.
20454         * doc/posix-functions/optind.texi (optind): Likewise.
20455         * doc/posix-functions/optopt.texi (optopt): Likewise.
20456         * doc/posix-functions/tzname.texi (tzname): Likewise.
20457
20458         openat: update maintainer
20459         * modules/openat (Maintainer): Add myself.
20460
20461         utimens: avoid shadowing warning
20462         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20463         buffers into one, to avoid shadowing, as well as avoiding a
20464         redundant stat.
20465         Reported by Jim Meyering.
20466
20467         test-dup2: avoid compiler warning
20468         * tests/test-dup2.c (is_inheritable): Only define if used.
20469
20470 2010-01-01  Bruno Haible  <bruno@clisp.org>
20471
20472         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20473         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20474         defined, use wctomb instead of wcrtomb.
20475
20476 2010-01-01  Bruno Haible  <bruno@clisp.org>
20477
20478         iconv: Reject native Solaris iconv.
20479         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20480         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20481
20482 2009-12-31  Bruno Haible  <bruno@clisp.org>
20483
20484         * tests/test-signal.c (main): Remove test of 'SIG'.
20485
20486 2009-12-31  Bruno Haible  <bruno@clisp.org>
20487
20488         spawn: Fix incomplete fix.
20489         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20490         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20491         warnings for GNULIB_POSIXCHECK again.
20492         Reported by Eric Blake.
20493
20494 2009-12-31  Bruno Haible  <bruno@clisp.org>
20495
20496         Avoid namespace pollution on glibc systems.
20497         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20498         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20499         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20500         glibc systems.
20501
20502 2009-12-31  Bruno Haible  <bruno@clisp.org>
20503
20504         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20505         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20506         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20507         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20508         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20509         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20510         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20511
20512 2009-12-31  Bruno Haible  <bruno@clisp.org>
20513
20514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20515         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20516         afterwards.
20517
20518 2009-12-31  Bruno Haible  <bruno@clisp.org>
20519
20520         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20521         SYS_UTSNAME_H.
20522
20523 2009-12-31  Bruno Haible  <bruno@clisp.org>
20524
20525         spawn: Fix misapplied patch.
20526         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20527         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20528         warnings for GNULIB_POSIXCHECK.
20529
20530 2009-12-31  Bruno Haible  <bruno@clisp.org>
20531
20532         times: Update after sys_times changed.
20533         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20534         * modules/times (Files): Add it.
20535         (configure.ac): Invoke gl_FUNC_TIMES.
20536
20537 2009-12-31  Bruno Haible  <bruno@clisp.org>
20538
20539         Use AC_C_INLINE where necessary.
20540         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20541         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20542         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20543         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20544         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20545         * m4/mbiter.m4 (gl_MBITER): Likewise.
20546         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20547         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20548         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20549         * modules/u64 (configure.ac): Likewise.
20550
20551 2009-12-31  Bruno Haible  <bruno@clisp.org>
20552
20553         Use AC_C_INLINE instead of module 'inline' where possible.
20554         * modules/inline (Description): Clarify purpose.
20555         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20556         * modules/count-one-bits (Depends-on): Remove inline.
20557         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20558         * modules/openat (Depends-on): Remove inline.
20559         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20560         instead of depending on module 'inline'.
20561         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20562         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20563         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20564         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20565         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20566         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20567         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20568         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20569         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20570         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20571         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20572         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20573         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20574         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20575         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20576         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20577         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20578         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20579         Likewise.
20580         * modules/unictype/property-ascii-hex-digit (Depends-on,
20581         configure.ac): Likewise.
20582         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20583         configure.ac): Likewise.
20584         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20585         configure.ac): Likewise.
20586         * modules/unictype/property-bidi-block-separator (Depends-on,
20587         configure.ac): Likewise.
20588         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20589         configure.ac): Likewise.
20590         * modules/unictype/property-bidi-common-separator (Depends-on,
20591         configure.ac): Likewise.
20592         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20593         Likewise.
20594         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20595         configure.ac): Likewise.
20596         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20597         configure.ac): Likewise.
20598         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20599         configure.ac): Likewise.
20600         * modules/unictype/property-bidi-european-digit (Depends-on,
20601         configure.ac): Likewise.
20602         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20603         configure.ac): Likewise.
20604         * modules/unictype/property-bidi-left-to-right (Depends-on,
20605         configure.ac): Likewise.
20606         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20607         configure.ac): Likewise.
20608         * modules/unictype/property-bidi-other-neutral (Depends-on,
20609         configure.ac): Likewise.
20610         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20611         Likewise.
20612         * modules/unictype/property-bidi-segment-separator (Depends-on,
20613         configure.ac): Likewise.
20614         * modules/unictype/property-bidi-whitespace (Depends-on,
20615         configure.ac): Likewise.
20616         * modules/unictype/property-combining (Depends-on, configure.ac):
20617         Likewise.
20618         * modules/unictype/property-composite (Depends-on, configure.ac):
20619         Likewise.
20620         * modules/unictype/property-currency-symbol (Depends-on,
20621         configure.ac): Likewise.
20622         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20623         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20624         Likewise.
20625         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20626         configure.ac): Likewise.
20627         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20628         Likewise.
20629         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20630         Likewise.
20631         * modules/unictype/property-extender (Depends-on, configure.ac):
20632         Likewise.
20633         * modules/unictype/property-format-control (Depends-on, configure.ac):
20634         Likewise.
20635         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20636         Likewise.
20637         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20638         Likewise.
20639         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20640         Likewise.
20641         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20642         Likewise.
20643         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20644         Likewise.
20645         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20646         Likewise.
20647         * modules/unictype/property-id-start (Depends-on, configure.ac):
20648         Likewise.
20649         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20650         Likewise.
20651         * modules/unictype/property-ids-binary-operator (Depends-on,
20652         configure.ac): Likewise.
20653         * modules/unictype/property-ids-trinary-operator (Depends-on,
20654         configure.ac): Likewise.
20655         * modules/unictype/property-ignorable-control (Depends-on,
20656         configure.ac): Likewise.
20657         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20658         Likewise.
20659         * modules/unictype/property-join-control (Depends-on, configure.ac):
20660         Likewise.
20661         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20662         Likewise.
20663         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20664         Likewise.
20665         * modules/unictype/property-logical-order-exception (Depends-on,
20666         configure.ac): Likewise.
20667         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20668         Likewise.
20669         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20670         * modules/unictype/property-non-break (Depends-on, configure.ac):
20671         Likewise.
20672         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20673         Likewise.
20674         * modules/unictype/property-numeric (Depends-on, configure.ac):
20675         Likewise.
20676         * modules/unictype/property-other-alphabetic (Depends-on,
20677         configure.ac): Likewise.
20678         * modules/unictype/property-other-default-ignorable-code-point
20679         (Depends-on, configure.ac): Likewise.
20680         * modules/unictype/property-other-grapheme-extend (Depends-on,
20681         configure.ac): Likewise.
20682         * modules/unictype/property-other-id-continue (Depends-on,
20683         configure.ac): Likewise.
20684         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20685         Likewise.
20686         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20687         Likewise.
20688         * modules/unictype/property-other-math (Depends-on, configure.ac):
20689         Likewise.
20690         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20691         Likewise.
20692         * modules/unictype/property-paired-punctuation (Depends-on,
20693         configure.ac): Likewise.
20694         * modules/unictype/property-paragraph-separator (Depends-on,
20695         configure.ac): Likewise.
20696         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20697         Likewise.
20698         * modules/unictype/property-pattern-white-space (Depends-on,
20699         configure.ac): Likewise.
20700         * modules/unictype/property-private-use (Depends-on, configure.ac):
20701         Likewise.
20702         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20703         Likewise.
20704         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20705         Likewise.
20706         * modules/unictype/property-radical (Depends-on, configure.ac):
20707         Likewise.
20708         * modules/unictype/property-sentence-terminal (Depends-on,
20709         configure.ac): Likewise.
20710         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20711         Likewise.
20712         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20713         * modules/unictype/property-terminal-punctuation (Depends-on,
20714         configure.ac): Likewise.
20715         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20716         Likewise.
20717         * modules/unictype/property-unassigned-code-value (Depends-on,
20718         configure.ac): Likewise.
20719         * modules/unictype/property-unified-ideograph (Depends-on,
20720         configure.ac): Likewise.
20721         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20722         Likewise.
20723         * modules/unictype/property-variation-selector (Depends-on,
20724         configure.ac): Likewise.
20725         * modules/unictype/property-white-space (Depends-on, configure.ac):
20726         Likewise.
20727         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20728         Likewise.
20729         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20730         Likewise.
20731         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20732         Likewise.
20733         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20734         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20735         Likewise.
20736
20737 2009-12-31  Bruno Haible  <bruno@clisp.org>
20738
20739         Remove unnecessary AC_C_INLINE invocation.
20740         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20741         since 2009-08-21.
20742
20743 2009-12-31  Jim Meyering  <meyering@redhat.com>
20744
20745         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20746         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20747         With this change, we can all remove the gpg_key_ID = ... definition
20748         from our respective cfg.mk files.
20749
20750         maint.mk: create announcement template in ~/, not in /tmp
20751         * top/maint.mk (emit_upload_commands): Adjust.
20752         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20753         Remove temporary file, .ci-msg.
20754
20755 2009-12-31  Eric Blake  <ebb9@byu.net>
20756
20757         link-warning: always build headers with link warnings
20758         * modules/arpa_inet (Makefile.am): Always build replacement
20759         header.
20760         * modules/ctype (Makefile.am): Likewise.
20761         * modules/dirent (Makefile.am): Likewise.
20762         * modules/inttypes (Makefile.am): Likewise.
20763         * modules/langinfo (Makefile.am): Likewise.
20764         * modules/locale (Makefile.am): Likewise.
20765         * modules/spawn (Makefile.am): Likewise.
20766         * modules/sys_file (Makefile.am): Likewise.
20767         * modules/sys_ioctl (Makefile.am): Likewise.
20768         * modules/sys_select (Makefile.am): Likewise.
20769         * modules/sys_socket (Makefile.am): Likewise.
20770         * modules/sys_times (Makefile.am): Likewise.
20771         * modules/sys_utsname (Makefile.am): Likewise.
20772         * modules/sys_wait (Makefile.am): Likewise.
20773         * modules/wchar (Makefile.am): Likewise.
20774         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20775         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20776         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20777         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20778         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20779         Likewise.
20780         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20781         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20782         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20783         Likewise.
20784         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20785         Likewise.
20786         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20787         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20788         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20790         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20791         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20792         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20793         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20794         (gl_WCHAR_H_DEFAULTS): Likewise.
20795
20796 2009-12-31  Eric Blake  <ebb9@byu.net>
20797
20798         signal, spawn: use link warnings
20799         * lib/signal.in.h (sigset_t): Make unconditional.
20800         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20801         (sigpending, sigprocmask, sigaction): Add link warnings.
20802         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20803         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20804         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20805         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20806         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20807         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20808         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20809         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20810         (posix_spawn_file_actions_destroy)
20811         (posix_spawn_file_actions_addopen)
20812         (posix_spawn_file_actions_addclose)
20813         (posix_spawn_file_actions_adddup2): Likewise.
20814         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20815         * tests/test-signal.c (main): Enhance test.
20816
20817         spawn: improve wrapper support
20818         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20819         (gl_SPAWN_H_DEFAULTS): New defaults.
20820         * modules/spawn (Makefile.am): Substitute them.
20821         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20822         Only declare if missing or broken.
20823
20824         sys_times, sys_utsname: use include_next
20825         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20826         header.
20827         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20828         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20829         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20830         * modules/sys_times (Depends-on): Add include_next.
20831         (Makefile.am): Substitute additional values.
20832         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20833         * lib/sys_times.in.h (includes): Include native header, if
20834         available.
20835         * lib/sys_utsname.in.h (includes): Likewise.
20836         * tests/test-sys_times.c (main): Enhance test.
20837
20838         fdutimensat: revert prior patch
20839         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20840         utimens.h.
20841         Reported by Bruno Haible.
20842
20843 2009-12-30  Eric Blake  <ebb9@byu.net>
20844
20845         sys_wait: drop link-warning dependency
20846         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20847         link-warning efforts.
20848         * lib/sys_wait.in.h: Likewise.
20849
20850         fdutimensat: remove bogus dependency
20851         * modules/fdutimensat (Depends-on): Drop inline.
20852
20853         unistd: fix typo
20854         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20855
20856 2009-12-30  Bruno Haible  <bruno@clisp.org>
20857
20858         Fix compilation error with Solaris cc.
20859         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20860         * lib/unicase/u16-is-invariant.c: Likewise.
20861         * lib/unicase/u32-is-invariant.c: Likewise.
20862         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20863
20864 2009-12-30  Bruno Haible  <bruno@clisp.org>
20865
20866         Fix test crash.
20867         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20868         locales.
20869         Reported by Simon Josefsson <simon@josefsson.org>.
20870
20871 2009-12-30  Bruno Haible  <bruno@clisp.org>
20872
20873         Fix compilation error on most platforms.
20874         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20875         Reported by Simon Josefsson <simon@josefsson.org>
20876         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20877
20878 2009-12-30  Eric Blake  <ebb9@byu.net>
20879
20880         futimens, utimensat: work around ntfs-3g bug
20881         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20882         a ctime bug is present, and expand workaround to cover ntfs-3g.
20883         * lib/utimens.c (fdutimens, lutimens): Likewise.
20884         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20885         (validate_timespec): Adjust return value.
20886         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20887         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20888         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20889
20890 2009-12-29  Eric Blake  <ebb9@byu.net>
20891
20892         link-warning: make usage consistent
20893         * modules/ctype (Depends-on): Add link-warning.
20894         (Makefile.am): Update rules accordingly.
20895         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20896         * modules/locale (Depends-on, Makefile.am): Likewise.
20897         * modules/sys_file (Makefile.am): Likewise.
20898         * modules/getopt-posix (Makefile.am): Delete unused link warning
20899         efforts.
20900         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20901         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20902         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20903         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20904
20905         stdio: remove unused variables
20906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20907         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20908         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20909
20910         tests: test more substitute headers
20911         * modules/ctype-tests: New file.
20912         * modules/dirent-tests: Likewise.
20913         * modules/spawn-tests: Likewise.
20914         * modules/sys_file-tests: Likewise.
20915         * modules/sys_ioctl-tests: Likewise.
20916         * modules/sys_wait-tests: Likewise.
20917         * tests/test-ctype.c: Likewise.
20918         * tests/test-dirent.c: Likewise.
20919         * tests/test-spawn.c: Likewise.
20920         * tests/test-sys_file.c: Likewise.
20921         * tests/test-sys_ioctl.c: Likewise.
20922         * tests/test-sys_wait.c: Likewise.
20923         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20924         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20925         whether or not flock is in use.
20926
20927         tests: remove License section from module
20928         * modules/arpa_inet-tests: Remove unneeded section.
20929         * modules/byteswap-tests: Likewise.
20930         * modules/ceilf-tests: Likewise.
20931         * modules/ceill-tests: Likewise.
20932         * modules/crypto/des-tests: Likewise.
20933         * modules/crypto/gc-arcfour-tests: Likewise.
20934         * modules/crypto/gc-arctwo-tests: Likewise.
20935         * modules/crypto/gc-des-tests: Likewise.
20936         * modules/crypto/gc-hmac-md5-tests: Likewise.
20937         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20938         * modules/crypto/gc-md2-tests: Likewise.
20939         * modules/crypto/gc-md4-tests: Likewise.
20940         * modules/crypto/gc-md5-tests: Likewise.
20941         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20942         * modules/crypto/gc-rijndael-tests: Likewise.
20943         * modules/crypto/gc-sha1-tests: Likewise.
20944         * modules/crypto/gc-tests: Likewise.
20945         * modules/crypto/md2-tests: Likewise.
20946         * modules/crypto/md4-tests: Likewise.
20947         * modules/fcntl-h-tests: Likewise.
20948         * modules/floorf-tests: Likewise.
20949         * modules/floorl-tests: Likewise.
20950         * modules/frexp-nolibm-tests: Likewise.
20951         * modules/frexp-tests: Likewise.
20952         * modules/frexpl-nolibm-tests: Likewise.
20953         * modules/frexpl-tests: Likewise.
20954         * modules/getaddrinfo-tests: Likewise.
20955         * modules/inttypes-tests: Likewise.
20956         * modules/isfinite-tests: Likewise.
20957         * modules/isinf-tests: Likewise.
20958         * modules/ldexpl-tests: Likewise.
20959         * modules/locale-tests: Likewise.
20960         * modules/math-tests: Likewise.
20961         * modules/netdb-tests: Likewise.
20962         * modules/netinet_in-tests: Likewise.
20963         * modules/printf-frexp-tests: Likewise.
20964         * modules/printf-frexpl-tests: Likewise.
20965         * modules/priv-set-tests: Likewise.
20966         * modules/random_r-tests: Likewise.
20967         * modules/round-tests: Likewise.
20968         * modules/roundf-tests: Likewise.
20969         * modules/roundl-tests: Likewise.
20970         * modules/search-tests: Likewise.
20971         * modules/select-tests: Likewise.
20972         * modules/signal-tests: Likewise.
20973         * modules/stdbool-tests: Likewise.
20974         * modules/stddef-tests: Likewise.
20975         * modules/stdint-tests: Likewise.
20976         * modules/stdio-tests: Likewise.
20977         * modules/stdlib-tests: Likewise.
20978         * modules/string-tests: Likewise.
20979         * modules/strings-tests: Likewise.
20980         * modules/sys_select-tests: Likewise.
20981         * modules/sys_socket-tests: Likewise.
20982         * modules/sys_stat-tests: Likewise.
20983         * modules/sys_time-tests: Likewise.
20984         * modules/sys_utsname-tests: Likewise.
20985         * modules/sysexits-tests: Likewise.
20986         * modules/time-tests: Likewise.
20987         * modules/trunc-tests: Likewise.
20988         * modules/truncf-tests: Likewise.
20989         * modules/truncl-tests: Likewise.
20990         * modules/tsearch-tests: Likewise.
20991         * modules/unistd-tests: Likewise.
20992         * modules/wchar-tests: Likewise.
20993         * modules/wctype-tests: Likewise.
20994
20995         tests: fix license on several tests
20996         * tests/test-des.c: Update to GPLv3+.
20997         * tests/test-flock.c: Likewise.
20998         * tests/test-fsync.c: Likewise.
20999         * tests/test-futimens.h: Likewise.
21000         * tests/test-gc-arcfour.c: Likewise.
21001         * tests/test-gc-arctwo.c: Likewise.
21002         * tests/test-gc-des.c: Likewise.
21003         * tests/test-gc-hmac-md5.c: Likewise.
21004         * tests/test-gc-hmac-sha1.c: Likewise.
21005         * tests/test-gc-md2.c: Likewise.
21006         * tests/test-gc-md4.c: Likewise.
21007         * tests/test-gc-md5.c: Likewise.
21008         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21009         * tests/test-gc-rijndael.c: Likewise.
21010         * tests/test-gc-sha1.c: Likewise.
21011         * tests/test-gc.c: Likewise.
21012         * tests/test-getcwd.c: Likewise.
21013         * tests/test-link.c: Likewise.
21014         * tests/test-link.h: Likewise.
21015         * tests/test-lutimens.h: Likewise.
21016         * tests/test-md2.c: Likewise.
21017         * tests/test-md4.c: Likewise.
21018         * tests/test-mkdir.h: Likewise.
21019         * tests/test-rename.c: Likewise.
21020         * tests/test-rename.h: Likewise.
21021         * tests/test-safe-alloc.c: Likewise.
21022         * tests/test-utimens-common.h: Likewise.
21023         * tests/test-utimens.h: Likewise.
21024
21025         maint: sync license texts
21026         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21027         * doc/gpl-3.0.texi: Revert copyright year update.
21028         * doc/lgpl-3.0.texi: Likewise.
21029
21030 2009-12-29  Jim Meyering  <meyering@redhat.com>
21031
21032         update nearly all FSF copyright year lists to include 2009
21033         The files named by the following are exempted:
21034             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21035               test -f "$dst" && { echo "$dst"; continue; }
21036               test -d "$dst" || continue
21037               echo "$dst"/$(basename "$src")
21038             done > exempt
21039             git ls-files tests/unictype >> exempt
21040         In the remaining files, convert to all-interval notation if
21041         - there is already at least one year interval like 2000-2003
21042         - the file is maintained by me
21043         - the file is in lib/uni*/, where that style already prevails
21044         Otherwise, use update-copyright's default.
21045
21046 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21047         and Eric Blake  <ebb9@byu.net>
21048
21049         tests: don't require debug system() to pass
21050         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21051         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21052         * tests/test-unlink.h (test_unlink_func): Likewise.
21053         * tests/test-fstatat.c (main): ...into callers.
21054         * tests/test-lstat.c (main): Likewise.
21055         * tests/test-rmdir.c (main): Likewise.
21056         * tests/test-unlink.c (main): Likewise.
21057         * tests/test-unlinkat.c (main): Likewise.
21058         * tests/test-areadlink-with-size.c (main): Don't require a
21059         debug-only system call to pass, aiding cross-testing to mingw.
21060         * tests/test-areadlink.c (main): Likewise.
21061         * tests/test-areadlinkat-with-size.c (main): Likewise.
21062         * tests/test-areadlinkat.c (main): Likewise.
21063         * tests/test-canonicalize-lgpl.c (main): Likewise.
21064         * tests/test-canonicalize.c (main): Likewise.
21065         * tests/test-chown.c (main): Likewise.
21066         * tests/test-fchownat.c (main): Likewise.
21067         * tests/test-lchown.c (main): Likewise.
21068         * tests/test-fdutimensat.c (main): Likewise.
21069         * tests/test-futimens.c (main): Likewise.
21070         * tests/test-link.c (main): Likewise.
21071         * tests/test-linkat.c (main): Likewise.
21072         * tests/test-mkdir.c (main): Likewise.
21073         * tests/test-mkdirat.c (main): Likewise.
21074         * tests/test-mkfifo.c (main): Likewise.
21075         * tests/test-mkfifoat.c (main): Likewise.
21076         * tests/test-mknod.c (main): Likewise.
21077         * tests/test-readlink.c (main): Likewise.
21078         * tests/test-remove.c (main): Likewise.
21079         * tests/test-rename.c (main): Likewise.
21080         * tests/test-renameat.c (main): Likewise.
21081         * tests/test-symlink.c (main): Likewise.
21082         * tests/test-symlinkat.c (main): Likewise.
21083         * tests/test-utimens.c (main): Likewise.
21084         * tests/test-utimensat.c (main): Likewise.
21085
21086 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21087
21088         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21089         on $(UNUSED_PARAMETER_H) to avoid build failure.
21090
21091 2009-12-28  Jim Meyering  <meyering@redhat.com>
21092
21093         update-copyright: you may specify a max. line length other than 72
21094         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21095
21096         maint: use consistent FSF copyright line syntax
21097         * lib/posixtm.c: Add missing comma in FSF copyright line.
21098         * lib/posixtm.h: Likewise.
21099         * lib/getugroups.c: Add missing ", Inc.".
21100
21101         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21102         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21103         FSF copyright line.  Remove trailing blanks.
21104
21105 2009-12-28  Eric Blake  <ebb9@byu.net>
21106
21107         test-dup2: reduce dependencies
21108         * modules/cloexec (Configure.ac): Set witness.
21109         * modules/dup2-tests (Depends-on): Drop cloexec.
21110         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21111         not present.
21112         Suggested by Bruno Haible.
21113
21114 2009-12-26  Bruno Haible  <bruno@clisp.org>
21115
21116         Remove an unneeded dependency.
21117         * modules/fseterr (Depends-on): Remove dup2.
21118
21119 2009-12-26  Eric Blake  <ebb9@byu.net>
21120
21121         tests: use macros.h in more places
21122         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21123         (ASSERT_STREAM): Provide default of stderr.
21124         * tests/test-dirent-safer.c: Include macros.h, using alternate
21125         stream for assertions.
21126         * tests/test-dup-safer.c: Likewise.
21127         * tests/test-freopen-safer.c: Likewise.
21128         * tests/test-getopt.c: Likewise.
21129         * tests/test-openat-safer.c: Likewise.
21130         * tests/test-pipe.c: Likewise.
21131         * tests/test-popen-safer.c: Likewise.
21132         * modules/dirent-safer-tests (Files): Include macros.h.
21133         * modules/unistd-safer-tests (Files): Likewise.
21134         * modules/freopen-safer-tests (Files): Likewise.
21135         * modules/getopt-posix-tests (Files): Likewise.
21136         * modules/openat-safer-tests (Files): Likewise.
21137         * modules/pipe-tests (Files): Likewise.
21138
21139 2009-12-26  Bruno Haible  <bruno@clisp.org>
21140
21141         javacomp: Portability fix.
21142         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21143         that it also works on Solaris.
21144
21145 2009-12-26  Bruno Haible  <bruno@clisp.org>
21146
21147         localename: Fix storage allocation of gl_locale_name_thread's result.
21148         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21149         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21150         all platforms that have 'uselocale'.
21151         (gl_locale_name_thread_unsafe): New function, extracted from
21152         gl_locale_name_thread.
21153         (gl_locale_name_thread): Call struniq on all platforms that have
21154         'uselocale'.
21155         * tests/test-localename.c (test_locale_name_thread): Check that the
21156         resulting strings are permanently allocated.
21157         * modules/localename-tests (Depends-on): Add strdup.
21158
21159 2009-12-26  Bruno Haible  <bruno@clisp.org>
21160
21161         * tests/test-localename.c (categories): Fill in the strings.
21162
21163 2009-12-26  Jim Meyering  <meyering@redhat.com>
21164
21165         isdir: complete the removal of m4/isdir.m4
21166         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21167
21168         isdir: clean up, since at least grep still uses it
21169         * lib/isdir.c: Include "isdir.h".
21170         (S_ISDIR): Remove now-unneeded definition.
21171         * modules/isdir (Files): Add lib/isdir.h.
21172         * lib/isdir.h: New file, with declaration.
21173         * m4/isdir.m4: Remove file -- unneeded.
21174
21175 2009-12-25  Bruno Haible  <bruno@clisp.org>
21176
21177         selinux-h: Make generated .h files standalone.
21178         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21179         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21180         * lib/se-selinux.in.h: Likewise.
21181         * modules/selinux-h (Depends-on): Add unused-parameter.
21182         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21183         selinux/selinux.h and selinux/context.h.
21184         Suggested by Eric Blake.
21185
21186 2009-12-25  Bruno Haible  <bruno@clisp.org>
21187
21188         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21189         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21190         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21191         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21192         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21193
21194 2009-12-24  Bruno Haible  <bruno@clisp.org>
21195
21196         openat: Fix warning.
21197         * lib/openat-proc.c: Include <unistd.h>.
21198
21199 2009-12-24  Bruno Haible  <bruno@clisp.org>
21200
21201         New module 'unused-parameter'.
21202         * build-aux/unused-parameter.h: New file, extracted from earlier
21203         gnulib-common.m4.
21204         * modules/unused-parameter: New file.
21205         * lib/unistr.h: Include unused-parameter.h.
21206         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21207         _GL_UNUSED.
21208         * modules/unistr/base (Depends-on): Add unused-parameter.
21209
21210 2009-12-24  Bruno Haible  <bruno@clisp.org>
21211
21212         Add missing dependencies to 'extensions' module.
21213         * m4/extensions.m4: Add comment.
21214         * modules/accept4 (Depends-on): Add extensions.
21215         * modules/dup3 (Depends-on): Likewise.
21216         * modules/fcntl (Depends-on): Likewise.
21217         * modules/futimens (Depends-on): Likewise.
21218         * modules/mknod (Depends-on): Likewise.
21219         * modules/pipe2 (Depends-on): Likewise.
21220         * modules/stat-time (Depends-on): Likewise.
21221         * modules/strcasestr-simple (Depends-on): Likewise.
21222         * modules/strsignal (Depends-on): Likewise.
21223         * modules/utimensat (Depends-on): Likewise.
21224         * modules/localcharset (Depends-on): Likewise. Needed because of
21225         gl_FCNTL_O_FLAGS.
21226         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21227         AC_TYPE_MBSTATE_T.
21228         * modules/wcsnrtombs (Depends-on): Likewise.
21229         * modules/wcsrtombs (Depends-on): Likewise.
21230
21231 2009-12-24  Bruno Haible  <bruno@clisp.org>
21232
21233         binary-io: Avoid gcc warning due to SET_BINARY.
21234         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21235         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21236
21237 2009-12-24  Bruno Haible  <bruno@clisp.org>
21238
21239         Avoid future namespace pollution on glibc systems.
21240         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21241         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21242         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21243         glibc systems.
21244
21245 2009-12-24  Bruno Haible  <bruno@clisp.org>
21246
21247         Refactor common macros used in tests.
21248         * tests/macros.h: New file.
21249         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21250         and/or <stdlib.h>, if appropriate.
21251         (ASSERT, SIZEOF): Remove macros.
21252         * tests/test-areadlink-with-size.c: Likewise.
21253         * tests/test-areadlinkat.c: Likewise.
21254         * tests/test-areadlinkat-with-size.c: Likewise.
21255         * tests/test-argmatch.c: Likewise.
21256         * tests/test-argv-iter.c: Likewise.
21257         * tests/test-array-mergesort.c: Likewise.
21258         * tests/test-array_list.c: Likewise.
21259         * tests/test-array_oset.c: Likewise.
21260         * tests/test-avltree_list.c: Likewise.
21261         * tests/test-avltree_oset.c: Likewise.
21262         * tests/test-avltreehash_list.c: Likewise.
21263         * tests/test-base64.c: Likewise.
21264         * tests/test-binary-io.c: Likewise.
21265         * tests/test-bitrotate.c: Likewise.
21266         * tests/test-btowc.c: Likewise.
21267         * tests/test-byteswap.c: Likewise.
21268         * tests/test-c-ctype.c: Likewise.
21269         * tests/test-c-stack.c: Likewise.
21270         * tests/test-c-strcasecmp.c: Likewise.
21271         * tests/test-c-strcasestr.c: Likewise.
21272         * tests/test-c-strncasecmp.c: Likewise.
21273         * tests/test-c-strstr.c: Likewise.
21274         * tests/test-canonicalize-lgpl.c: Likewise.
21275         * tests/test-canonicalize.c: Likewise.
21276         * tests/test-carray_list.c: Likewise.
21277         * tests/test-ceilf1.c: Likewise.
21278         * tests/test-ceilf2.c: Likewise.
21279         * tests/test-ceill.c: Likewise.
21280         * tests/test-chown.c: Likewise.
21281         * tests/test-cloexec.c: Likewise.
21282         * tests/test-copy-acl.c: Likewise.
21283         * tests/test-copy-file.c: Likewise.
21284         * tests/test-count-one-bits.c: Likewise.
21285         * tests/test-dprintf-posix.c: Likewise.
21286         * tests/test-dup2.c: Likewise.
21287         * tests/test-dup3.c: Likewise.
21288         * tests/test-duplocale.c: Likewise.
21289         * tests/test-fbufmode.c: Likewise.
21290         * tests/test-fchdir.c: Likewise.
21291         * tests/test-fchownat.c: Likewise.
21292         * tests/test-fcntl-safer.c: Likewise.
21293         * tests/test-fcntl.c: Likewise.
21294         * tests/test-fdopendir.c: Likewise.
21295         * tests/test-fdutimensat.c: Likewise.
21296         * tests/test-fflush2.c: Likewise.
21297         * tests/test-file-has-acl.c: Likewise.
21298         * tests/test-filevercmp.c: Likewise.
21299         * tests/test-flock.c: Likewise.
21300         * tests/test-floorf1.c: Likewise.
21301         * tests/test-floorf2.c: Likewise.
21302         * tests/test-floorl.c: Likewise.
21303         * tests/test-fnmatch.c: Likewise.
21304         * tests/test-fopen.h: Likewise.
21305         * tests/test-fpending.c: Likewise.
21306         * tests/test-fprintf-posix.c: Likewise.
21307         * tests/test-fpurge.c: Likewise.
21308         * tests/test-freadable.c: Likewise.
21309         * tests/test-freadahead.c: Likewise.
21310         * tests/test-freading.c: Likewise.
21311         * tests/test-freadptr.c: Likewise.
21312         * tests/test-freadptr2.c: Likewise.
21313         * tests/test-freadseek.c: Likewise.
21314         * tests/test-freopen.c: Likewise.
21315         * tests/test-frexp.c: Likewise.
21316         * tests/test-frexpl.c: Likewise.
21317         * tests/test-fseek.c: Likewise.
21318         * tests/test-fseeko.c: Likewise.
21319         * tests/test-fstatat.c: Likewise.
21320         * tests/test-fstrcmp.c: Likewise.
21321         * tests/test-fsync.c: Likewise.
21322         * tests/test-ftell.c: Likewise.
21323         * tests/test-ftello.c: Likewise.
21324         * tests/test-func.c: Likewise.
21325         * tests/test-futimens.c: Likewise.
21326         * tests/test-fwritable.c: Likewise.
21327         * tests/test-fwriting.c: Likewise.
21328         * tests/test-getcwd.c: Likewise.
21329         * tests/test-getdate.c: Likewise.
21330         * tests/test-getdelim.c: Likewise.
21331         * tests/test-getdtablesize.c: Likewise.
21332         * tests/test-getgroups.c: Likewise.
21333         * tests/test-getline.c: Likewise.
21334         * tests/test-getndelim2.c: Likewise.
21335         * tests/test-glob.c: Likewise.
21336         * tests/test-hash.c: Likewise.
21337         * tests/test-i-ring.c: Likewise.
21338         * tests/test-iconv-utf.c: Likewise.
21339         * tests/test-iconv.c: Likewise.
21340         * tests/test-idpriv-drop.c: Likewise.
21341         * tests/test-idpriv-droptemp.c: Likewise.
21342         * tests/test-inet_ntop.c: Likewise.
21343         * tests/test-inet_pton.c: Likewise.
21344         * tests/test-isblank.c: Likewise.
21345         * tests/test-isfinite.c: Likewise.
21346         * tests/test-isinf.c: Likewise.
21347         * tests/test-isnan.c: Likewise.
21348         * tests/test-isnand.h: Likewise.
21349         * tests/test-isnanf.h: Likewise.
21350         * tests/test-isnanl.h: Likewise.
21351         * tests/test-lchown.c: Likewise.
21352         * tests/test-ldexpl.c: Likewise.
21353         * tests/test-link.c: Likewise.
21354         * tests/test-linkat.c: Likewise.
21355         * tests/test-linked_list.c: Likewise.
21356         * tests/test-linkedhash_list.c: Likewise.
21357         * tests/test-localename.c: Likewise.
21358         * tests/test-lseek.c: Likewise.
21359         * tests/test-lstat.c: Likewise.
21360         * tests/test-mbmemcasecmp.c: Likewise.
21361         * tests/test-mbmemcasecoll.c: Likewise.
21362         * tests/test-mbrtowc.c: Likewise.
21363         * tests/test-mbscasecmp.c: Likewise.
21364         * tests/test-mbscasestr1.c: Likewise.
21365         * tests/test-mbscasestr2.c: Likewise.
21366         * tests/test-mbscasestr3.c: Likewise.
21367         * tests/test-mbscasestr4.c: Likewise.
21368         * tests/test-mbschr.c: Likewise.
21369         * tests/test-mbscspn.c: Likewise.
21370         * tests/test-mbsinit.c: Likewise.
21371         * tests/test-mbsncasecmp.c: Likewise.
21372         * tests/test-mbsnrtowcs.c: Likewise.
21373         * tests/test-mbspbrk.c: Likewise.
21374         * tests/test-mbspcasecmp.c: Likewise.
21375         * tests/test-mbsrchr.c: Likewise.
21376         * tests/test-mbsrtowcs.c: Likewise.
21377         * tests/test-mbsspn.c: Likewise.
21378         * tests/test-mbsstr1.c: Likewise.
21379         * tests/test-mbsstr2.c: Likewise.
21380         * tests/test-mbsstr3.c: Likewise.
21381         * tests/test-memchr.c: Likewise.
21382         * tests/test-memchr2.c: Likewise.
21383         * tests/test-memcmp.c: Likewise.
21384         * tests/test-memmem.c: Likewise.
21385         * tests/test-memrchr.c: Likewise.
21386         * tests/test-mkdir.c: Likewise.
21387         * tests/test-mkdirat.c: Likewise.
21388         * tests/test-mkfifo.c: Likewise.
21389         * tests/test-mkfifoat.c: Likewise.
21390         * tests/test-mknod.c: Likewise.
21391         * tests/test-nanosleep.c: Likewise.
21392         * tests/test-nl_langinfo.c: Likewise.
21393         * tests/test-obstack-printf.c: Likewise.
21394         * tests/test-open.c: Likewise.
21395         * tests/test-openat.c: Likewise.
21396         * tests/test-pipe-filter-gi1.c: Likewise.
21397         * tests/test-pipe-filter-gi2-main.c: Likewise.
21398         * tests/test-pipe-filter-ii1.c: Likewise.
21399         * tests/test-pipe-filter-ii2-main.c: Likewise.
21400         * tests/test-pipe2.c: Likewise.
21401         * tests/test-popen.h: Likewise.
21402         * tests/test-posixtm.c: Likewise.
21403         * tests/test-pread.c: Likewise.
21404         * tests/test-printf-frexp.c: Likewise.
21405         * tests/test-printf-frexpl.c: Likewise.
21406         * tests/test-printf-posix.c: Likewise.
21407         * tests/test-priv-set.c: Likewise.
21408         * tests/test-quotearg.c: Likewise.
21409         * tests/test-random_r.c: Likewise.
21410         * tests/test-rawmemchr.c: Likewise.
21411         * tests/test-rbtree_list.c: Likewise.
21412         * tests/test-rbtree_oset.c: Likewise.
21413         * tests/test-rbtreehash_list.c: Likewise.
21414         * tests/test-readlink.c: Likewise.
21415         * tests/test-remove.c: Likewise.
21416         * tests/test-rename.c: Likewise.
21417         * tests/test-renameat.c: Likewise.
21418         * tests/test-rmdir.c: Likewise.
21419         * tests/test-round1.c: Likewise.
21420         * tests/test-roundf1.c: Likewise.
21421         * tests/test-roundl.c: Likewise.
21422         * tests/test-safe-alloc.c: Likewise.
21423         * tests/test-sameacls.c: Likewise.
21424         * tests/test-set-mode-acl.c: Likewise.
21425         * tests/test-setenv.c: Likewise.
21426         * tests/test-sigaction.c: Likewise.
21427         * tests/test-signbit.c: Likewise.
21428         * tests/test-sleep.c: Likewise.
21429         * tests/test-snprintf-posix.c: Likewise.
21430         * tests/test-snprintf.c: Likewise.
21431         * tests/test-sprintf-posix.c: Likewise.
21432         * tests/test-stat-time.c: Likewise.
21433         * tests/test-stat.c: Likewise.
21434         * tests/test-strcasestr.c: Likewise.
21435         * tests/test-strchrnul.c: Likewise.
21436         * tests/test-strerror.c: Likewise.
21437         * tests/test-striconv.c: Likewise.
21438         * tests/test-striconveh.c: Likewise.
21439         * tests/test-striconveha.c: Likewise.
21440         * tests/test-strsignal.c: Likewise.
21441         * tests/test-strstr.c: Likewise.
21442         * tests/test-strtod.c: Likewise.
21443         * tests/test-strverscmp.c: Likewise.
21444         * tests/test-symlink.c: Likewise.
21445         * tests/test-symlinkat.c: Likewise.
21446         * tests/test-trunc1.c: Likewise.
21447         * tests/test-trunc2.c: Likewise.
21448         * tests/test-truncf1.c: Likewise.
21449         * tests/test-truncf2.c: Likewise.
21450         * tests/test-truncl.c: Likewise.
21451         * tests/test-uname.c: Likewise.
21452         * tests/test-unlink.c: Likewise.
21453         * tests/test-unlinkat.c: Likewise.
21454         * tests/test-unsetenv.c: Likewise.
21455         * tests/test-usleep.c: Likewise.
21456         * tests/test-utimens.c: Likewise.
21457         * tests/test-utimensat.c: Likewise.
21458         * tests/test-vasnprintf-posix.c: Likewise.
21459         * tests/test-vasnprintf-posix2.c: Likewise.
21460         * tests/test-vasnprintf.c: Likewise.
21461         * tests/test-vasprintf-posix.c: Likewise.
21462         * tests/test-vasprintf.c: Likewise.
21463         * tests/test-vdprintf-posix.c: Likewise.
21464         * tests/test-vfprintf-posix.c: Likewise.
21465         * tests/test-vprintf-posix.c: Likewise.
21466         * tests/test-vsnprintf-posix.c: Likewise.
21467         * tests/test-vsnprintf.c: Likewise.
21468         * tests/test-vsprintf-posix.c: Likewise.
21469         * tests/test-wcrtomb.c: Likewise.
21470         * tests/test-wcsnrtombs.c: Likewise.
21471         * tests/test-wcsrtombs.c: Likewise.
21472         * tests/test-wctype.c: Likewise.
21473         * tests/test-wcwidth.c: Likewise.
21474         * tests/test-xfprintf-posix.c: Likewise.
21475         * tests/test-xmemdup0.c: Likewise.
21476         * tests/test-xprintf-posix.c: Likewise.
21477         * tests/test-xvasprintf.c: Likewise.
21478         * tests/unicase/test-locale-language.c: Likewise.
21479         * tests/unicase/test-mapping-part1.h: Likewise.
21480         * tests/unicase/test-predicate-part1.h: Likewise.
21481         * tests/unicase/test-u8-casecmp.c: Likewise.
21482         * tests/unicase/test-u8-casecoll.c: Likewise.
21483         * tests/unicase/test-u8-casefold.c: Likewise.
21484         * tests/unicase/test-u8-is-cased.c: Likewise.
21485         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21486         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21487         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21488         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21489         * tests/unicase/test-u8-tolower.c: Likewise.
21490         * tests/unicase/test-u8-totitle.c: Likewise.
21491         * tests/unicase/test-u8-toupper.c: Likewise.
21492         * tests/unicase/test-u16-casecmp.c: Likewise.
21493         * tests/unicase/test-u16-casecoll.c: Likewise.
21494         * tests/unicase/test-u16-casefold.c: Likewise.
21495         * tests/unicase/test-u16-is-cased.c: Likewise.
21496         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21497         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21498         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21499         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21500         * tests/unicase/test-u16-tolower.c: Likewise.
21501         * tests/unicase/test-u16-totitle.c: Likewise.
21502         * tests/unicase/test-u16-toupper.c: Likewise.
21503         * tests/unicase/test-u32-casecmp.c: Likewise.
21504         * tests/unicase/test-u32-casecoll.c: Likewise.
21505         * tests/unicase/test-u32-casefold.c: Likewise.
21506         * tests/unicase/test-u32-is-cased.c: Likewise.
21507         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21508         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21509         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21510         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21511         * tests/unicase/test-u32-tolower.c: Likewise.
21512         * tests/unicase/test-u32-totitle.c: Likewise.
21513         * tests/unicase/test-u32-toupper.c: Likewise.
21514         * tests/unicase/test-ulc-casecmp.c: Likewise.
21515         * tests/unicase/test-ulc-casecoll.c: Likewise.
21516         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21517         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21518         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21519         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21520         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21521         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21522         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21523         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21524         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21525         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21526         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21527         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21528         * tests/unictype/test-bidi_byname.c: Likewise.
21529         * tests/unictype/test-bidi_name.c: Likewise.
21530         * tests/unictype/test-bidi_of.c: Likewise.
21531         * tests/unictype/test-bidi_test.c: Likewise.
21532         * tests/unictype/test-block_list.c: Likewise.
21533         * tests/unictype/test-block_of.c: Likewise.
21534         * tests/unictype/test-block_test.c: Likewise.
21535         * tests/unictype/test-categ_and.c: Likewise.
21536         * tests/unictype/test-categ_and_not.c: Likewise.
21537         * tests/unictype/test-categ_byname.c: Likewise.
21538         * tests/unictype/test-categ_name.c: Likewise.
21539         * tests/unictype/test-categ_none.c: Likewise.
21540         * tests/unictype/test-categ_of.c: Likewise.
21541         * tests/unictype/test-categ_or.c: Likewise.
21542         * tests/unictype/test-categ_test_withtable.c: Likewise.
21543         * tests/unictype/test-combining.c: Likewise.
21544         * tests/unictype/test-decdigit.c: Likewise.
21545         * tests/unictype/test-digit.c: Likewise.
21546         * tests/unictype/test-mirror.c: Likewise.
21547         * tests/unictype/test-numeric.c: Likewise.
21548         * tests/unictype/test-pr_byname.c: Likewise.
21549         * tests/unictype/test-pr_test.c: Likewise.
21550         * tests/unictype/test-predicate-part1.h: Likewise.
21551         * tests/unictype/test-scripts.c: Likewise.
21552         * tests/unictype/test-sy_c_ident.c: Likewise.
21553         * tests/unictype/test-sy_java_ident.c: Likewise.
21554         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21555         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21556         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21557         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21558         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21559         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21560         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21561         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21562         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21563         * tests/uninorm/test-compat-decomposition.c: Likewise.
21564         * tests/uninorm/test-composition.c: Likewise.
21565         * tests/uninorm/test-decomposing-form.c: Likewise.
21566         * tests/uninorm/test-decomposition.c: Likewise.
21567         * tests/uninorm/test-u8-nfc.c: Likewise.
21568         * tests/uninorm/test-u8-nfd.c: Likewise.
21569         * tests/uninorm/test-u8-nfkc.c: Likewise.
21570         * tests/uninorm/test-u8-nfkd.c: Likewise.
21571         * tests/uninorm/test-u8-normcmp.c: Likewise.
21572         * tests/uninorm/test-u8-normcoll.c: Likewise.
21573         * tests/uninorm/test-u16-nfc.c: Likewise.
21574         * tests/uninorm/test-u16-nfd.c: Likewise.
21575         * tests/uninorm/test-u16-nfkc.c: Likewise.
21576         * tests/uninorm/test-u16-nfkd.c: Likewise.
21577         * tests/uninorm/test-u16-normcmp.c: Likewise.
21578         * tests/uninorm/test-u16-normcoll.c: Likewise.
21579         * tests/uninorm/test-u32-nfc.c: Likewise.
21580         * tests/uninorm/test-u32-nfd.c: Likewise.
21581         * tests/uninorm/test-u32-nfkc.c: Likewise.
21582         * tests/uninorm/test-u32-nfkd.c: Likewise.
21583         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21584         * tests/uninorm/test-u32-normcmp.c: Likewise.
21585         * tests/uninorm/test-u32-normcoll.c: Likewise.
21586         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21587         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21588         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21589         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21590         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21591         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21592         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21593         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21594         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21595         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21596         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21597         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21598         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21599         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21600         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21601         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21602         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21603         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21604         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21605         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21606         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21607         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21608         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21609         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21610         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21611         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21612         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21613         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21614         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21615         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21616         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21617         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21618         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21619         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21620         * tests/uniwidth/test-u8-width.c: Likewise.
21621         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21622         * tests/uniwidth/test-u16-width.c: Likewise.
21623         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21624         * tests/uniwidth/test-u32-width.c: Likewise.
21625         * tests/uniwidth/test-uc_width.c: Likewise.
21626         * tests/uniwidth/test-uc_width2.c: Likewise.
21627         * modules/acl-tests (Files): Add tests/macros.h.
21628         * modules/areadlink-tests (Files): Likewise.
21629         * modules/areadlink-with-size-tests (Files): Likewise.
21630         * modules/areadlinkat-tests (Files): Likewise.
21631         * modules/areadlinkat-with-size-tests (Files): Likewise.
21632         * modules/argmatch-tests (Files): Likewise.
21633         * modules/argv-iter-tests (Files): Likewise.
21634         * modules/array-list-tests (Files): Likewise.
21635         * modules/array-mergesort-tests (Files): Likewise.
21636         * modules/array-oset-tests (Files): Likewise.
21637         * modules/avltree-list-tests (Files): Likewise.
21638         * modules/avltree-oset-tests (Files): Likewise.
21639         * modules/avltreehash-list-tests (Files): Likewise.
21640         * modules/base64-tests (Files): Likewise.
21641         * modules/binary-io-tests (Files): Likewise.
21642         * modules/bitrotate-tests (Files): Likewise.
21643         * modules/btowc-tests (Files): Likewise.
21644         * modules/byteswap-tests (Files): Likewise.
21645         * modules/c-ctype-tests (Files): Likewise.
21646         * modules/c-stack-tests (Files): Likewise.
21647         * modules/c-strcase-tests (Files): Likewise.
21648         * modules/c-strcasestr-tests (Files): Likewise.
21649         * modules/c-strstr-tests (Files): Likewise.
21650         * modules/canonicalize-lgpl-tests (Files): Likewise.
21651         * modules/canonicalize-tests (Files): Likewise.
21652         * modules/carray-list-tests (Files): Likewise.
21653         * modules/ceilf-tests (Files): Likewise.
21654         * modules/ceill-tests (Files): Likewise.
21655         * modules/chown-tests (Files): Likewise.
21656         * modules/cloexec-tests (Files): Likewise.
21657         * modules/copy-file-tests (Files): Likewise.
21658         * modules/count-one-bits-tests (Files): Likewise.
21659         * modules/dprintf-posix-tests (Files): Likewise.
21660         * modules/dup2-tests (Files): Likewise.
21661         * modules/dup3-tests (Files): Likewise.
21662         * modules/duplocale-tests (Files): Likewise.
21663         * modules/fbufmode-tests (Files): Likewise.
21664         * modules/fchdir-tests (Files): Likewise.
21665         * modules/fcntl-safer-tests (Files): Likewise.
21666         * modules/fcntl-tests (Files): Likewise.
21667         * modules/fdopendir-tests (Files): Likewise.
21668         * modules/fdutimensat-tests (Files): Likewise.
21669         * modules/fflush-tests (Files): Likewise.
21670         * modules/filevercmp-tests (Files): Likewise.
21671         * modules/flock-tests (Files): Likewise.
21672         * modules/floorf-tests (Files): Likewise.
21673         * modules/floorl-tests (Files): Likewise.
21674         * modules/fnmatch-tests (Files): Likewise.
21675         * modules/fopen-safer-tests (Files): Likewise.
21676         * modules/fopen-tests (Files): Likewise.
21677         * modules/fpending-tests (Files): Likewise.
21678         * modules/fprintf-posix-tests (Files): Likewise.
21679         * modules/fpurge-tests (Files): Likewise.
21680         * modules/freadable-tests (Files): Likewise.
21681         * modules/freadahead-tests (Files): Likewise.
21682         * modules/freading-tests (Files): Likewise.
21683         * modules/freadptr-tests (Files): Likewise.
21684         * modules/freadseek-tests (Files): Likewise.
21685         * modules/freopen-tests (Files): Likewise.
21686         * modules/frexp-nolibm-tests (Files): Likewise.
21687         * modules/frexp-tests (Files): Likewise.
21688         * modules/frexpl-nolibm-tests (Files): Likewise.
21689         * modules/frexpl-tests (Files): Likewise.
21690         * modules/fseek-tests (Files): Likewise.
21691         * modules/fseeko-tests (Files): Likewise.
21692         * modules/fstrcmp-tests (Files): Likewise.
21693         * modules/fsync-tests (Files): Likewise.
21694         * modules/ftell-tests (Files): Likewise.
21695         * modules/ftello-tests (Files): Likewise.
21696         * modules/func-tests (Files): Likewise.
21697         * modules/futimens-tests (Files): Likewise.
21698         * modules/fwritable-tests (Files): Likewise.
21699         * modules/fwriting-tests (Files): Likewise.
21700         * modules/getcwd-tests (Files): Likewise.
21701         * modules/getdate-tests (Files): Likewise.
21702         * modules/getdelim-tests (Files): Likewise.
21703         * modules/getdtablesize-tests (Files): Likewise.
21704         * modules/getgroups-tests (Files): Likewise.
21705         * modules/getline-tests (Files): Likewise.
21706         * modules/getndelim2-tests (Files): Likewise.
21707         * modules/glob-tests (Files): Likewise.
21708         * modules/hash-tests (Files): Likewise.
21709         * modules/i-ring-tests (Files): Likewise.
21710         * modules/iconv-tests (Files): Likewise.
21711         * modules/iconv_open-utf-tests (Files): Likewise.
21712         * modules/idpriv-drop-tests (Files): Likewise.
21713         * modules/idpriv-droptemp-tests (Files): Likewise.
21714         * modules/inet_ntop-tests (Files): Likewise.
21715         * modules/inet_pton-tests (Files): Likewise.
21716         * modules/isblank-tests (Files): Likewise.
21717         * modules/isfinite-tests (Files): Likewise.
21718         * modules/isinf-tests (Files): Likewise.
21719         * modules/isnan-tests (Files): Likewise.
21720         * modules/isnand-nolibm-tests (Files): Likewise.
21721         * modules/isnand-tests (Files): Likewise.
21722         * modules/isnanf-nolibm-tests (Files): Likewise.
21723         * modules/isnanf-tests (Files): Likewise.
21724         * modules/isnanl-nolibm-tests (Files): Likewise.
21725         * modules/isnanl-tests (Files): Likewise.
21726         * modules/lchown-tests (Files): Likewise.
21727         * modules/ldexpl-tests (Files): Likewise.
21728         * modules/link-tests (Files): Likewise.
21729         * modules/linkat-tests (Files): Likewise.
21730         * modules/linked-list-tests (Files): Likewise.
21731         * modules/linkedhash-list-tests (Files): Likewise.
21732         * modules/localename-tests (Files): Likewise.
21733         * modules/lseek-tests (Files): Likewise.
21734         * modules/lstat-tests (Files): Likewise.
21735         * modules/mbmemcasecmp-tests (Files): Likewise.
21736         * modules/mbmemcasecoll-tests (Files): Likewise.
21737         * modules/mbrtowc-tests (Files): Likewise.
21738         * modules/mbscasecmp-tests (Files): Likewise.
21739         * modules/mbscasestr-tests (Files): Likewise.
21740         * modules/mbschr-tests (Files): Likewise.
21741         * modules/mbscspn-tests (Files): Likewise.
21742         * modules/mbsinit-tests (Files): Likewise.
21743         * modules/mbsncasecmp-tests (Files): Likewise.
21744         * modules/mbsnrtowcs-tests (Files): Likewise.
21745         * modules/mbspbrk-tests (Files): Likewise.
21746         * modules/mbspcasecmp-tests (Files): Likewise.
21747         * modules/mbsrchr-tests (Files): Likewise.
21748         * modules/mbsrtowcs-tests (Files): Likewise.
21749         * modules/mbsspn-tests (Files): Likewise.
21750         * modules/mbsstr-tests (Files): Likewise.
21751         * modules/memchr-tests (Files): Likewise.
21752         * modules/memchr2-tests (Files): Likewise.
21753         * modules/memcmp-tests (Files): Likewise.
21754         * modules/memmem-tests (Files): Likewise.
21755         * modules/memrchr-tests (Files): Likewise.
21756         * modules/mkdir-tests (Files): Likewise.
21757         * modules/mkfifo-tests (Files): Likewise.
21758         * modules/mkfifoat-tests (Files): Likewise.
21759         * modules/mknod-tests (Files): Likewise.
21760         * modules/nanosleep-tests (Files): Likewise.
21761         * modules/nl_langinfo-tests (Files): Likewise.
21762         * modules/obstack-printf-tests (Files): Likewise.
21763         * modules/open-tests (Files): Likewise.
21764         * modules/openat-tests (Files): Likewise.
21765         * modules/pipe-filter-gi-tests (Files): Likewise.
21766         * modules/pipe-filter-ii-tests (Files): Likewise.
21767         * modules/pipe2-tests (Files): Likewise.
21768         * modules/popen-safer-tests (Files): Likewise.
21769         * modules/popen-tests (Files): Likewise.
21770         * modules/posixtm-tests (Files): Likewise.
21771         * modules/pread-tests (Files): Likewise.
21772         * modules/printf-frexp-tests (Files): Likewise.
21773         * modules/printf-frexpl-tests (Files): Likewise.
21774         * modules/printf-posix-tests (Files): Likewise.
21775         * modules/priv-set-tests (Files): Likewise.
21776         * modules/quotearg-tests (Files): Likewise.
21777         * modules/random_r-tests (Files): Likewise.
21778         * modules/rawmemchr-tests (Files): Likewise.
21779         * modules/rbtree-list-tests (Files): Likewise.
21780         * modules/rbtree-oset-tests (Files): Likewise.
21781         * modules/rbtreehash-list-tests (Files): Likewise.
21782         * modules/readlink-tests (Files): Likewise.
21783         * modules/remove-tests (Files): Likewise.
21784         * modules/rename-tests (Files): Likewise.
21785         * modules/renameat-tests (Files): Likewise.
21786         * modules/rmdir-tests (Files): Likewise.
21787         * modules/round-tests (Files): Likewise.
21788         * modules/roundf-tests (Files): Likewise.
21789         * modules/roundl-tests (Files): Likewise.
21790         * modules/safe-alloc-tests (Files): Likewise.
21791         * modules/setenv-tests (Files): Likewise.
21792         * modules/sigaction-tests (Files): Likewise.
21793         * modules/signbit-tests (Files): Likewise.
21794         * modules/sleep-tests (Files): Likewise.
21795         * modules/snprintf-posix-tests (Files): Likewise.
21796         * modules/snprintf-tests (Files): Likewise.
21797         * modules/sprintf-posix-tests (Files): Likewise.
21798         * modules/stat-tests (Files): Likewise.
21799         * modules/stat-time-tests (Files): Likewise.
21800         * modules/strcasestr-tests (Files): Likewise.
21801         * modules/strchrnul-tests (Files): Likewise.
21802         * modules/strerror-tests (Files): Likewise.
21803         * modules/striconv-tests (Files): Likewise.
21804         * modules/striconveh-tests (Files): Likewise.
21805         * modules/striconveha-tests (Files): Likewise.
21806         * modules/strsignal-tests (Files): Likewise.
21807         * modules/strstr-tests (Files): Likewise.
21808         * modules/strtod-tests (Files): Likewise.
21809         * modules/strverscmp-tests (Files): Likewise.
21810         * modules/symlink-tests (Files): Likewise.
21811         * modules/symlinkat-tests (Files): Likewise.
21812         * modules/trunc-tests (Files): Likewise.
21813         * modules/truncf-tests (Files): Likewise.
21814         * modules/truncl-tests (Files): Likewise.
21815         * modules/uname-tests (Files): Likewise.
21816         * modules/unicase/cased-tests (Files): Likewise.
21817         * modules/unicase/ignorable-tests (Files): Likewise.
21818         * modules/unicase/locale-language-tests (Files): Likewise.
21819         * modules/unicase/tolower-tests (Files): Likewise.
21820         * modules/unicase/totitle-tests (Files): Likewise.
21821         * modules/unicase/toupper-tests (Files): Likewise.
21822         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21823         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21824         * modules/unicase/u8-casefold-tests (Files): Likewise.
21825         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21826         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21827         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21828         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21829         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21830         * modules/unicase/u8-tolower-tests (Files): Likewise.
21831         * modules/unicase/u8-totitle-tests (Files): Likewise.
21832         * modules/unicase/u8-toupper-tests (Files): Likewise.
21833         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21834         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21835         * modules/unicase/u16-casefold-tests (Files): Likewise.
21836         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21837         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21838         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21839         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21840         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21841         * modules/unicase/u16-tolower-tests (Files): Likewise.
21842         * modules/unicase/u16-totitle-tests (Files): Likewise.
21843         * modules/unicase/u16-toupper-tests (Files): Likewise.
21844         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21845         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21846         * modules/unicase/u32-casefold-tests (Files): Likewise.
21847         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21848         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21849         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21850         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21851         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21852         * modules/unicase/u32-tolower-tests (Files): Likewise.
21853         * modules/unicase/u32-totitle-tests (Files): Likewise.
21854         * modules/unicase/u32-toupper-tests (Files): Likewise.
21855         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21856         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21857         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21858         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21859         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21860         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21861         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21862         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21863         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21864         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21865         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21866         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21867         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21868         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21869         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21870         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21871         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21872         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21873         * modules/unictype/block-list-tests (Files): Likewise.
21874         * modules/unictype/block-of-tests (Files): Likewise.
21875         * modules/unictype/block-test-tests (Files): Likewise.
21876         * modules/unictype/category-C-tests (Files): Likewise.
21877         * modules/unictype/category-Cc-tests (Files): Likewise.
21878         * modules/unictype/category-Cf-tests (Files): Likewise.
21879         * modules/unictype/category-Cn-tests (Files): Likewise.
21880         * modules/unictype/category-Co-tests (Files): Likewise.
21881         * modules/unictype/category-Cs-tests (Files): Likewise.
21882         * modules/unictype/category-L-tests (Files): Likewise.
21883         * modules/unictype/category-Ll-tests (Files): Likewise.
21884         * modules/unictype/category-Lm-tests (Files): Likewise.
21885         * modules/unictype/category-Lo-tests (Files): Likewise.
21886         * modules/unictype/category-Lt-tests (Files): Likewise.
21887         * modules/unictype/category-Lu-tests (Files): Likewise.
21888         * modules/unictype/category-M-tests (Files): Likewise.
21889         * modules/unictype/category-Mc-tests (Files): Likewise.
21890         * modules/unictype/category-Me-tests (Files): Likewise.
21891         * modules/unictype/category-Mn-tests (Files): Likewise.
21892         * modules/unictype/category-N-tests (Files): Likewise.
21893         * modules/unictype/category-Nd-tests (Files): Likewise.
21894         * modules/unictype/category-Nl-tests (Files): Likewise.
21895         * modules/unictype/category-No-tests (Files): Likewise.
21896         * modules/unictype/category-P-tests (Files): Likewise.
21897         * modules/unictype/category-Pc-tests (Files): Likewise.
21898         * modules/unictype/category-Pd-tests (Files): Likewise.
21899         * modules/unictype/category-Pe-tests (Files): Likewise.
21900         * modules/unictype/category-Pf-tests (Files): Likewise.
21901         * modules/unictype/category-Pi-tests (Files): Likewise.
21902         * modules/unictype/category-Po-tests (Files): Likewise.
21903         * modules/unictype/category-Ps-tests (Files): Likewise.
21904         * modules/unictype/category-S-tests (Files): Likewise.
21905         * modules/unictype/category-Sc-tests (Files): Likewise.
21906         * modules/unictype/category-Sk-tests (Files): Likewise.
21907         * modules/unictype/category-Sm-tests (Files): Likewise.
21908         * modules/unictype/category-So-tests (Files): Likewise.
21909         * modules/unictype/category-Z-tests (Files): Likewise.
21910         * modules/unictype/category-Zl-tests (Files): Likewise.
21911         * modules/unictype/category-Zp-tests (Files): Likewise.
21912         * modules/unictype/category-Zs-tests (Files): Likewise.
21913         * modules/unictype/category-and-not-tests (Files): Likewise.
21914         * modules/unictype/category-and-tests (Files): Likewise.
21915         * modules/unictype/category-byname-tests (Files): Likewise.
21916         * modules/unictype/category-name-tests (Files): Likewise.
21917         * modules/unictype/category-none-tests (Files): Likewise.
21918         * modules/unictype/category-of-tests (Files): Likewise.
21919         * modules/unictype/category-or-tests (Files): Likewise.
21920         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21921         * modules/unictype/combining-class-tests (Files): Likewise.
21922         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21923         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21924         * modules/unictype/ctype-blank-tests (Files): Likewise.
21925         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21926         * modules/unictype/ctype-digit-tests (Files): Likewise.
21927         * modules/unictype/ctype-graph-tests (Files): Likewise.
21928         * modules/unictype/ctype-lower-tests (Files): Likewise.
21929         * modules/unictype/ctype-print-tests (Files): Likewise.
21930         * modules/unictype/ctype-punct-tests (Files): Likewise.
21931         * modules/unictype/ctype-space-tests (Files): Likewise.
21932         * modules/unictype/ctype-upper-tests (Files): Likewise.
21933         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21934         * modules/unictype/decimal-digit-tests (Files): Likewise.
21935         * modules/unictype/digit-tests (Files): Likewise.
21936         * modules/unictype/mirror-tests (Files): Likewise.
21937         * modules/unictype/numeric-tests (Files): Likewise.
21938         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21939         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21940         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21941         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21942         Likewise.
21943         * modules/unictype/property-bidi-block-separator-tests (Files):
21944         Likewise.
21945         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21946         Likewise.
21947         * modules/unictype/property-bidi-common-separator-tests (Files):
21948         Likewise.
21949         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21950         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21951         Likewise.
21952         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21953         Likewise.
21954         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21955         Likewise.
21956         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21957         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21958         Likewise.
21959         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21960         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21961         Likewise.
21962         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21963         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21964         * modules/unictype/property-bidi-segment-separator-tests (Files):
21965         Likewise.
21966         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21967         * modules/unictype/property-byname-tests (Files): Likewise.
21968         * modules/unictype/property-combining-tests (Files): Likewise.
21969         * modules/unictype/property-composite-tests (Files): Likewise.
21970         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21971         * modules/unictype/property-dash-tests (Files): Likewise.
21972         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21973         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21974         Likewise.
21975         * modules/unictype/property-deprecated-tests (Files): Likewise.
21976         * modules/unictype/property-diacritic-tests (Files): Likewise.
21977         * modules/unictype/property-extender-tests (Files): Likewise.
21978         * modules/unictype/property-format-control-tests (Files): Likewise.
21979         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21980         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21981         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21982         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21983         * modules/unictype/property-hyphen-tests (Files): Likewise.
21984         * modules/unictype/property-id-continue-tests (Files): Likewise.
21985         * modules/unictype/property-id-start-tests (Files): Likewise.
21986         * modules/unictype/property-ideographic-tests (Files): Likewise.
21987         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21988         * modules/unictype/property-ids-trinary-operator-tests (Files):
21989         Likewise.
21990         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21991         * modules/unictype/property-iso-control-tests (Files): Likewise.
21992         * modules/unictype/property-join-control-tests (Files): Likewise.
21993         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21994         * modules/unictype/property-line-separator-tests (Files): Likewise.
21995         * modules/unictype/property-logical-order-exception-tests (Files):
21996         Likewise.
21997         * modules/unictype/property-lowercase-tests (Files): Likewise.
21998         * modules/unictype/property-math-tests (Files): Likewise.
21999         * modules/unictype/property-non-break-tests (Files): Likewise.
22000         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22001         * modules/unictype/property-numeric-tests (Files): Likewise.
22002         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22003         * modules/unictype/property-other-default-ignorable-code-point-tests
22004         (Files): Likewise.
22005         * modules/unictype/property-other-grapheme-extend-tests (Files):
22006         Likewise.
22007         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22008         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22009         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22010         * modules/unictype/property-other-math-tests (Files): Likewise.
22011         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22012         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22013         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22014         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22015         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22016         * modules/unictype/property-private-use-tests (Files): Likewise.
22017         * modules/unictype/property-punctuation-tests (Files): Likewise.
22018         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22019         * modules/unictype/property-radical-tests (Files): Likewise.
22020         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22021         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22022         * modules/unictype/property-space-tests (Files): Likewise.
22023         * modules/unictype/property-terminal-punctuation-tests (Files):
22024         Likewise.
22025         * modules/unictype/property-test-tests (Files): Likewise.
22026         * modules/unictype/property-titlecase-tests (Files): Likewise.
22027         * modules/unictype/property-unassigned-code-value-tests (Files):
22028         Likewise.
22029         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22030         * modules/unictype/property-uppercase-tests (Files): Likewise.
22031         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22032         * modules/unictype/property-white-space-tests (Files): Likewise.
22033         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22034         * modules/unictype/property-xid-start-tests (Files): Likewise.
22035         * modules/unictype/property-zero-width-tests (Files): Likewise.
22036         * modules/unictype/scripts-tests (Files): Likewise.
22037         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22038         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22039         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22040         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22041         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22042         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22043         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22044         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22045         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22046         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22047         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22048         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22049         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22050         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22051         * modules/uninorm/composition-tests (Files): Likewise.
22052         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22053         * modules/uninorm/decomposition-tests (Files): Likewise.
22054         * modules/uninorm/filter-tests (Files): Likewise.
22055         * modules/uninorm/nfc-tests (Files): Likewise.
22056         * modules/uninorm/nfd-tests (Files): Likewise.
22057         * modules/uninorm/nfkc-tests (Files): Likewise.
22058         * modules/uninorm/nfkd-tests (Files): Likewise.
22059         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22060         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22061         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22062         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22063         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22064         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22065         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22066         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22067         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22068         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22069         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22070         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22071         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22072         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22073         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22074         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22075         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22076         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22077         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22078         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22079         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22080         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22081         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22082         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22083         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22084         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22085         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22086         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22087         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22088         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22089         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22090         * modules/uniwidth/u8-width-tests (Files): Likewise.
22091         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22092         * modules/uniwidth/u16-width-tests (Files): Likewise.
22093         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22094         * modules/uniwidth/u32-width-tests (Files): Likewise.
22095         * modules/uniwidth/width-tests (Files): Likewise.
22096         * modules/unlink-tests (Files): Likewise.
22097         * modules/unsetenv-tests (Files): Likewise.
22098         * modules/usleep-tests (Files): Likewise.
22099         * modules/utimens-tests (Files): Likewise.
22100         * modules/utimensat-tests (Files): Likewise.
22101         * modules/vasnprintf-posix-tests (Files): Likewise.
22102         * modules/vasnprintf-tests (Files): Likewise.
22103         * modules/vasprintf-posix-tests (Files): Likewise.
22104         * modules/vasprintf-tests (Files): Likewise.
22105         * modules/vdprintf-posix-tests (Files): Likewise.
22106         * modules/vfprintf-posix-tests (Files): Likewise.
22107         * modules/vprintf-posix-tests (Files): Likewise.
22108         * modules/vsnprintf-posix-tests (Files): Likewise.
22109         * modules/vsnprintf-tests (Files): Likewise.
22110         * modules/vsprintf-posix-tests (Files): Likewise.
22111         * modules/wcrtomb-tests (Files): Likewise.
22112         * modules/wcsnrtombs-tests (Files): Likewise.
22113         * modules/wcsrtombs-tests (Files): Likewise.
22114         * modules/wctype-tests (Files): Likewise.
22115         * modules/wcwidth-tests (Files): Likewise.
22116         * modules/xmemdup0-tests (Files): Likewise.
22117         * modules/xprintf-posix-tests (Files): Likewise.
22118         * modules/xvasprintf-tests (Files): Likewise.
22119
22120 2009-12-24  Eric Blake  <ebb9@byu.net>
22121
22122         test-nanosleep: fix typo
22123         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22124         patch.
22125         Reported by Bruno Haible.
22126
22127 2009-12-24  Bruno Haible  <bruno@clisp.org>
22128
22129         Reduce namespace pollution on glibc systems.
22130         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22131         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22132         systems.
22133         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22134         <getopt.h> on glibc systems.
22135         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22136         systems.
22137         * lib/fcntl.c: Include <unistd.h> here instead.
22138
22139 2009-12-24  Bruno Haible  <bruno@clisp.org>
22140
22141         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22142
22143 2009-12-24  Eric Blake  <ebb9@byu.net>
22144
22145         tests: add signature checks
22146         * tests/signature.h (SIGNATURE_CHECK): New file.
22147         * modules/atexit-tests (Files): Use it.
22148         * modules/btowc-tests (Files): Likewise.
22149         * modules/canonicalize-lgpl-tests (Files): Likewise.
22150         * modules/ceilf-tests (Files): Likewise.
22151         * modules/ceill-tests (Files): Likewise.
22152         * modules/chown-tests (Files): Likewise.
22153         * modules/dprintf-posix-tests (Files): Likewise.
22154         * modules/dup2-tests (Files): Likewise.
22155         * modules/dup3-tests (Files): Likewise.
22156         * modules/duplocale-tests (Files): Likewise.
22157         * modules/fchdir-tests (Files): Likewise.
22158         * modules/fcntl-tests (Files): Likewise.
22159         * modules/fdopendir-tests (Files): Likewise.
22160         * modules/fflush-tests (Files): Likewise.
22161         * modules/flock-tests (Files): Likewise.
22162         * modules/floorf-tests (Files): Likewise.
22163         * modules/floorl-tests (Files): Likewise.
22164         * modules/fnmatch-tests (Files): Likewise.
22165         * modules/fopen-tests (Files): Likewise.
22166         * modules/fprintf-posix-tests (Files): Likewise.
22167         * modules/freopen-tests (Files): Likewise.
22168         * modules/frexp-nolibm-tests (Files): Likewise.
22169         * modules/frexp-tests (Files): Likewise.
22170         * modules/frexpl-nolibm-tests (Files): Likewise.
22171         * modules/frexpl-tests (Files): Likewise.
22172         * modules/fseek-tests (Files): Likewise.
22173         * modules/fseeko-tests (Files): Likewise.
22174         * modules/fsync-tests (Files): Likewise.
22175         * modules/ftell-tests (Files): Likewise.
22176         * modules/ftello-tests (Files): Likewise.
22177         * modules/futimens-tests (Files): Likewise.
22178         * modules/getaddrinfo-tests (Files): Likewise.
22179         * modules/getcwd-tests (Files): Likewise.
22180         * modules/getdelim-tests (Files): Likewise.
22181         * modules/getdtablesize-tests (Files): Likewise.
22182         * modules/getgroups-tests (Files): Likewise.
22183         * modules/gethostname-tests (Files): Likewise.
22184         * modules/getline-tests (Files): Likewise.
22185         * modules/getopt-posix-tests (Files): Likewise.
22186         * modules/gettimeofday-tests (Files): Likewise.
22187         * modules/glob-tests (Files): Likewise.
22188         * modules/iconv-tests (Files): Likewise.
22189         * modules/inet_ntop-tests (Files): Likewise.
22190         * modules/inet_pton-tests (Files): Likewise.
22191         * modules/isblank-tests (Files): Likewise.
22192         * modules/lchown-tests (Files): Likewise.
22193         * modules/ldexpl-tests (Files): Likewise.
22194         * modules/link-tests (Files): Likewise.
22195         * modules/linkat-tests (Files): Likewise.
22196         * modules/lseek-tests (Files): Likewise.
22197         * modules/lstat-tests (Files): Likewise.
22198         * modules/mbrtowc-tests (Files): Likewise.
22199         * modules/mbsinit-tests (Files): Likewise.
22200         * modules/mbsnrtowcs-tests (Files): Likewise.
22201         * modules/mbsrtowcs-tests (Files): Likewise.
22202         * modules/memchr-tests (Files): Likewise.
22203         * modules/memcmp-tests (Files): Likewise.
22204         * modules/memmem-tests (Files): Likewise.
22205         * modules/memrchr-tests (Files): Likewise.
22206         * modules/mkdir-tests (Files): Likewise.
22207         * modules/mkfifo-tests (Files): Likewise.
22208         * modules/mkfifoat-tests (Files): Likewise.
22209         * modules/mknod-tests (Files): Likewise.
22210         * modules/nanosleep-tests (Files): Likewise.
22211         * modules/nl_langinfo-tests (Files): Likewise.
22212         * modules/obstack-printf-tests (Files): Likewise.
22213         * modules/open-tests (Files): Likewise.
22214         * modules/openat-tests (Files): Likewise.
22215         * modules/perror-tests (Files): Likewise.
22216         * modules/pipe2-tests (Files): Likewise.
22217         * modules/poll-tests (Files): Likewise.
22218         * modules/popen-tests (Files): Likewise.
22219         * modules/posix_spawn-tests (Files): Likewise.
22220         * modules/posix_spawnp-tests (Files): Likewise.
22221         * modules/pread-tests (Files): Likewise.
22222         * modules/printf-posix-tests (Files): Likewise.
22223         * modules/pty-tests (Files): Likewise.
22224         * modules/random_r-tests (Files): Likewise.
22225         * modules/rawmemchr-tests (Files): Likewise.
22226         * modules/readlink-tests (Files): Likewise.
22227         * modules/remove-tests (Files): Likewise.
22228         * modules/rename-tests (Files): Likewise.
22229         * modules/renameat-tests (Files): Likewise.
22230         * modules/rmdir-tests (Files): Likewise.
22231         * modules/round-tests (Files): Likewise.
22232         * modules/roundf-tests (Files): Likewise.
22233         * modules/roundl-tests (Files): Likewise.
22234         * modules/select-tests (Files): Likewise.
22235         * modules/setenv-tests (Files): Likewise.
22236         * modules/sigaction-tests (Files): Likewise.
22237         * modules/sleep-tests (Files): Likewise.
22238         * modules/snprintf-posix-tests (Files): Likewise.
22239         * modules/snprintf-tests (Files): Likewise.
22240         * modules/sprintf-posix-tests (Files): Likewise.
22241         * modules/stat-tests (Files): Likewise.
22242         * modules/strcasestr-tests (Files): Likewise.
22243         * modules/strchrnul-tests (Files): Likewise.
22244         * modules/strerror-tests (Files): Likewise.
22245         * modules/strsignal-tests (Files): Likewise.
22246         * modules/strstr-tests (Files): Likewise.
22247         * modules/strtod-tests (Files): Likewise.
22248         * modules/strverscmp-tests (Files): Likewise.
22249         * modules/symlink-tests (Files): Likewise.
22250         * modules/symlinkat-tests (Files): Likewise.
22251         * modules/times-tests (Files): Likewise.
22252         * modules/trunc-tests (Files): Likewise.
22253         * modules/truncf-tests (Files): Likewise.
22254         * modules/truncl-tests (Files): Likewise.
22255         * modules/tsearch-tests (Files): Likewise.
22256         * modules/uname-tests (Files): Likewise.
22257         * modules/unlink-tests (Files): Likewise.
22258         * modules/unsetenv-tests (Files): Likewise.
22259         * modules/usleep-tests (Files): Likewise.
22260         * modules/utimensat-tests (Files): Likewise.
22261         * modules/vasprintf-tests (Files): Likewise.
22262         * modules/vdprintf-posix-tests (Files): Likewise.
22263         * modules/vfprintf-posix-tests (Files): Likewise.
22264         * modules/vprintf-posix-tests (Files): Likewise.
22265         * modules/vsnprintf-posix-tests (Files): Likewise.
22266         * modules/vsnprintf-tests (Files): Likewise.
22267         * modules/vsprintf-posix-tests (Files): Likewise.
22268         * modules/wcrtomb-tests (Files): Likewise.
22269         * modules/wcsnrtombs-tests (Files): Likewise.
22270         * modules/wcsrtombs-tests (Files): Likewise.
22271         * modules/wcwidth-tests (Files): Likewise.
22272         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22273         * tests/test-isinf.c (isinf): Likewise.
22274         * tests/test-isnan.c (isnan): Likewise.
22275         * tests/test-signbit.c (signbit): Likewise.
22276         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22277         declaration, either as macro or with correct signature.
22278         (select): Ensure function under test is declared with correct
22279         signature in correct header.
22280         * tests/test-atexit.c (atexit): Likewise.
22281         * tests/test-btowc.c (btowc): Likewise.
22282         * tests/test-canonicalize-lgpl.c (realpath)
22283         (canonicalize_file_name): Likewise.
22284         * tests/test-ceilf1.c (ceilf): Likewise.
22285         * tests/test-ceill.c (ceill): Likewise.
22286         * tests/test-chown.c (chown): Likewise.
22287         * tests/test-dprintf-posix.c (dprintf): Likewise.
22288         * tests/test-dup2.c (dup2): Likewise.
22289         * tests/test-dup3.c (dup3): Likewise.
22290         * tests/test-duplocale.c (duplocale): Likewise.
22291         * tests/test-fchdir.c (fchdir): Likewise.
22292         * tests/test-fchownat.c (fchownat): Likewise.
22293         * tests/test-fcntl.c (fcntl): Likewise.
22294         * tests/test-fdopendir.c (fdopendir): Likewise.
22295         * tests/test-fflush.c (fflush): Likewise.
22296         * tests/test-flock.c (flock): Likewise.
22297         * tests/test-floorf1.c (floorf): Likewise.
22298         * tests/test-floorl.c (floorl): Likewise.
22299         * tests/test-fnmatch.c (fnmatch): Likewise.
22300         * tests/test-fopen.c (fopen): Likewise.
22301         * tests/test-fprintf-posix.c (fprintf): Likewise.
22302         * tests/test-freopen.c (freopen): Likewise.
22303         * tests/test-frexp.c (frexp): Likewise.
22304         * tests/test-frexpl.c (frexpl): Likewise.
22305         * tests/test-fseek.c (fseek): Likewise.
22306         * tests/test-fseeko.c (fseeko): Likewise.
22307         * tests/test-fstatat.c (fstatat): Likewise.
22308         * tests/test-fsync.c (fsync): Likewise.
22309         * tests/test-ftell.c (ftell): Likewise.
22310         * tests/test-ftello.c (ftello): Likewise.
22311         * tests/test-futimens.c (futimens): Likewise.
22312         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22313         (gai_strerror): Likewise.
22314         * tests/test-getcwd.c (getcwd): Likewise.
22315         * tests/test-getdelim.c (getdelim): Likewise.
22316         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22317         * tests/test-getgroups.c (getgroups): Likewise.
22318         * tests/test-gethostname.c (gethostname): Likewise.
22319         * tests/test-getline.c (getline): Likewise.
22320         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22321         Likewise.
22322         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22323         * tests/test-glob.c (glob, globfree): Likewise.
22324         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22325         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22326         * tests/test-inet_pton.c (inet_pton): Likewise.
22327         * tests/test-isblank.c (isblank): Likewise.
22328         * tests/test-lchown.c (lchown): Likewise.
22329         * tests/test-ldexpl.c (ldexpl): Likewise.
22330         * tests/test-link.c (link): Likewise.
22331         * tests/test-linkat.c (linkat): Likewise.
22332         * tests/test-lseek.c (lseek): Likewise.
22333         * tests/test-lstat.c (lstat): Likewise.
22334         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22335         * tests/test-mbsinit.c (mbsinit): Likewise.
22336         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22337         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22338         * tests/test-memchr.c (memchr): Likewise.
22339         * tests/test-memcmp.c (memcmp): Likewise.
22340         * tests/test-memmem.c (memmem): Likewise.
22341         * tests/test-memrchr.c (memrchr): Likewise.
22342         * tests/test-mkdir.c (mkdir): Likewise.
22343         * tests/test-mkdirat.c (mkdirat): Likewise.
22344         * tests/test-mkfifo.c (mkfifo): Likewise.
22345         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22346         * tests/test-mknod.c (mknod): Likewise.
22347         * tests/test-nanosleep.c (nanosleep): Likewise.
22348         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22349         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22350         Likewise.
22351         * tests/test-open.c (open): Likewise.
22352         * tests/test-openat.c (openat): Likewise.
22353         * tests/test-perror.c (perror): Likewise.
22354         * tests/test-pipe2.c (pipe2): Likewise.
22355         * tests/test-poll.c (poll): Likewise.
22356         * tests/test-popen.c (popen, pclose): Likewise.
22357         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22358         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22359         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22360         (posix_spawn_file_actions_destroy)
22361         (posix_spawn_file_actions_addclose)
22362         (posix_spawn_file_actions_addopen)
22363         (posix_spawn_file_actions_adddup2): Likewise.
22364         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22365         * tests/test-pread.c (pread): Likewise.
22366         * tests/test-printf-posix.c (printf): Likewise.
22367         * tests/test-pty.c (openpty, forkpty): Likewise.
22368         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22369         (random_r): Likewise.
22370         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22371         * tests/test-readlink.c (readlink): Likewise.
22372         * tests/test-remove.c (remove): Likewise.
22373         * tests/test-rename.c (rename): Likewise.
22374         * tests/test-renameat.c (renameat): Likewise.
22375         * tests/test-rmdir.c (rmdir): Likewise.
22376         * tests/test-round1.c (round): Likewise.
22377         * tests/test-roundf1.c (roundf): Likewise.
22378         * tests/test-roundl.c (roundl): Likewise.
22379         * tests/test-setenv.c (setenv): Likewise.
22380         * tests/test-sigaction.c (sigaction): Likewise.
22381         * tests/test-sleep.c (sleep): Likewise.
22382         * tests/test-snprintf.c (snprintf): Likewise.
22383         * tests/test-sprintf-posix.c (sprintf): Likewise.
22384         * tests/test-stat.c (stat): Likewise.
22385         * tests/test-stpncpy.c (stpncpy): Likewise.
22386         * tests/test-strcasestr.c (strcasestr): Likewise.
22387         * tests/test-strchrnul.c (strchrnul): Likewise.
22388         * tests/test-strerror.c (strerror): Likewise.
22389         * tests/test-strsignal.c (strsignal): Likewise.
22390         * tests/test-strstr.c (strstr): Likewise.
22391         * tests/test-strtod.c (strtod): Likewise.
22392         * tests/test-strverscmp.c (strverscmp): Likewise.
22393         * tests/test-symlink.c (symlink): Likewise.
22394         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22395         * tests/test-times.c (times): Likewise.
22396         * tests/test-trunc1.c (trunc): Likewise.
22397         * tests/test-truncf1.c (truncf): Likewise.
22398         * tests/test-truncl.c (truncl): Likewise.
22399         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22400         Likewise.
22401         * tests/test-uname.c (uname): Likewise.
22402         * tests/test-unlink.c (unlink): Likewise.
22403         * tests/test-unlinkat.c (unlinkat): Likewise.
22404         * tests/test-unsetenv.c (unsetenv): Likewise.
22405         * tests/test-usleep.c (usleep): Likewise.
22406         * tests/test-utimensat.c (utimensat): Likewise.
22407         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22408         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22409         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22410         * tests/test-vprintf-posix.c (vprintf): Likewise.
22411         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22412         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22413         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22414         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22415         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22416         * tests/test-wcwidth.c (wcwidth): Likewise.
22417
22418         build: pull in conditional headers during GNULIB_POSIXCHECK
22419         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22420         definitions from any conditionally-included headers.
22421         * lib/stdlib.in.h (includes): Likewise.
22422         * lib/unistd.in.h (includes): Likewise.
22423
22424 2009-12-24  Bruno Haible  <bruno@clisp.org>
22425
22426         * tests/test-argv-iter.c: Include header file being tested immediately
22427         after config.h.
22428         * tests/test-base64.c: Likewise.
22429         * tests/test-flock.c: Likewise.
22430         * tests/test-fsync.c: Likewise.
22431         * tests/test-getdate.c: Likewise.
22432         * tests/test-getndelim2.c: Likewise.
22433         * tests/test-isfinite.c: Likewise.
22434         * tests/test-isinf.c: Likewise.
22435         * tests/test-strerror.c: Likewise.
22436         * tests/test-strsignal.c: Likewise.
22437
22438 2009-12-23  Eric Blake  <ebb9@byu.net>
22439
22440         unistd: work around cygwin bug
22441         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22442         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22443         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22444
22445 2009-12-23  Bruno Haible  <bruno@clisp.org>
22446
22447         localename: More tests.
22448         * tests/test-localename.c (SIZEOF): New macro.
22449         (categories): New variable.
22450         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22451         test_locale_name_default): Add test w.r.t. thread locale.
22452         (test_locale_name_thread): New function.
22453         (main): Invoke it.
22454
22455         localename: Make aware of thread locale.
22456         * lib/localename.h (gl_locale_name_thread): New declaration.
22457         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22458         behaviour with respect to thread locale.
22459         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22460         <langinfo.h>, glthread/lock.h.
22461         (SIZE_BITS): New macro.
22462         (string_hash): New function.
22463         (struct hash_node): New type.
22464         (HASH_TABLE_SIZE): New macro.
22465         (struniq_hash_table, struniq_lock): New variables.
22466         (struniq): New function.
22467         (gl_locale_name_thread): New function.
22468         (gl_locale_name): Invoke it.
22469         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22470         * modules/localename (Depends-on): Add lock.
22471         Reported by Mike Gran <spk121@yahoo.com>.
22472
22473 2009-12-23  Eric Blake  <ebb9@byu.net>
22474
22475         va-args: new module
22476         * modules/va-args: New file.
22477         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22478         * MODULES.html.sh (Core language properties): Mention it.
22479
22480         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22481         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22482         named alias for __attribute__((__unused__)).
22483         * lib/chown.c: Update client.
22484         * lib/fchmodat.c: Likewise.
22485         * lib/fts.c: Likewise.
22486         * lib/getdate.y: Likewise.
22487         * lib/getgroups.c: Likewise.
22488         * lib/getopt.c: Likewise.
22489         * lib/getugroups.c: Likewise.
22490         * lib/mkdir.c: Likewise.
22491         * lib/mkfifo.c: Likewise.
22492         * lib/mkfifoat.c: Likewise.
22493         * lib/mknod.c: Likewise.
22494         * lib/mknodat.c: Likewise.
22495         * lib/readlink.c: Likewise.
22496         * lib/se-context.in.h: Likewise.
22497         * lib/se-selinux.in.h: Likewise.
22498         * lib/sockets.c: Likewise.
22499         * lib/symlink.c: Likewise.
22500         * lib/symlinkat.c: Likewise.
22501         * lib/unicodeio.c: Likewise.
22502         * lib/unistr.h: Likewise.
22503         * tests/test-areadlink.c: Likewise.
22504         * tests/test-areadlinkat.c: Likewise.
22505         * tests/test-filenamecat.c: Likewise.
22506         * tests/test-fseeko.c: Likewise.
22507         * tests/test-ftello.c: Likewise.
22508         * tests/test-getdate.c: Likewise.
22509         * tests/test-getgroups.c: Likewise.
22510         * tests/test-gethostname.c: Likewise.
22511         * tests/test-quotearg.c: Likewise.
22512         * tests/test-version-etc.c: Likewise.
22513         * tests/test-xalloc-die.c: Likewise.
22514         * tests/test-xfprintf-posix.c: Likewise.
22515         * tests/test-xprintf-posix.c: Likewise.
22516         * tests/test-xvasprintf.c: Likewise.
22517
22518         tests: avoid compiler warnings
22519         * tests/test-fcntl.c (main): Delete unused parameters.
22520         * tests/test-freopen-safer.c (main): Likewise.
22521         * tests/test-xalloc-die.c (main): Mark unused parameters.
22522         * tests/test-fseeko.c (main): Likewise.
22523         * tests/test-ftello.c (main): Likewise.
22524         * tests/test-nanosleep.c (main): Avoid declaration warning.
22525         * tests/test-sleep.c (main): Likewise.
22526         * tests/test-unsetenv.c (main): Silence warning about string
22527         literal.
22528         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22529
22530 2009-12-23  Bruno Haible  <bruno@clisp.org>
22531
22532         * tests/test-localename.c (test_locale_name): New function, extracted
22533         from main. Also test mixed situations.
22534         (test_locale_name_posix, test_locale_name_environ,
22535         test_locale_name_default): New functions.
22536         (main): Invoke them all.
22537         * modules/localename-tests (configure.ac): Test for newlocale.
22538
22539 2009-12-23  Bruno Haible  <bruno@clisp.org>
22540
22541         unistd: Ensure getcwd gets declared before being overridden.
22542         * lib/unistd.in.h: Conditionally include <io.h>.
22543
22544 2009-12-22  Bruno Haible  <bruno@clisp.org>
22545
22546         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22547         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22548         (gl_WCHAR_H): Invoke it.
22549         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22550         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22551         Reported by Karl Berry <karl@freefriends.org>.
22552
22553 2009-12-22  Eric Blake  <ebb9@byu.net>
22554
22555         math, unistd: avoid redundant includes
22556         * lib/math.in.h (isnan): No need to re-include <math.h>.
22557         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22558
22559         getsubopt: work around cygwin bug
22560         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22561         avoid conflicting with system getsubopt.
22562         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22563         bug.
22564
22565         getopt: synchronize from glibc
22566         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22567         parameter order.  Adjust all callers.
22568         (_getopt_internal_r, main): Adjust quoting in error messages.
22569         Drop considerations for outdated POSIX 1003.2 error message.
22570         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22571         callers.
22572         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22573
22574         test-getopt: test stderr behavior
22575         * modules/getopt-posix-tests (Depends-on): Add dup2.
22576         * tests/test-getopt.c (ASSERT): Avoid stderr.
22577         (main): Move stderr to a temporary file.
22578         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22579         Instead, add parameter to inform caller if output occurred.
22580         (test_getopt): Adjust all existing tests to expect silence, and
22581         add new tests of leading ":".
22582         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22583         glibc shortcomings with leading "-:" or "+:" in optstring.
22584         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22585         Likewise.
22586         * doc/posix-functions/getopt.texi (getopt): Likewise.
22587
22588         test-getopt: enhance test
22589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22590         supports optind=0.
22591         * tests/test-getopt.c (OPTIND_MIN): Move...
22592         * tests/test-getopt.h (OPTIND_MIN): ...here.
22593         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22594         Require that optind=0 works, since modern BSD supports it in
22595         addition to optreset, and since coreutils expects it.
22596         (test_getopt_long_only): New test.
22597         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22598         glibc shortcomings with 'W;', and enforcement of optind=0.
22599         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22600         Likewise.
22601
22602 2009-12-21  Bruno Haible  <bruno@clisp.org>
22603
22604         localename: Improvements for MacOS X and Cygwin.
22605         * lib/localename.h (gl_locale_name_environ): New declaration.
22606         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22607         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22608         (gl_locale_name_posix): Invoke it.
22609         (gl_locale_name_default): Add comments. Use Windows native API also on
22610         Cygwin.
22611
22612 2009-12-21  Bruno Haible  <bruno@clisp.org>
22613
22614         Update list of Win32 locale ids.
22615         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22616         (LANG_SAMI): Renamed from LANG_SAAMI.
22617         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22618         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22619         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22620         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22621         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22622         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22623         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22624         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22625         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22626         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22627         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22628         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22629         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22630         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22631         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22632         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22633         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22634         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22635         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22636         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22637         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22638         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22639         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22640         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22641         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22642         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22643         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22644         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22645         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22646         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22647         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22648         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22649         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22650         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22651         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22652         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22653         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22654         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22655         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22656         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22657         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22658         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22659         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22660         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22661         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22662         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22663         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22664         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22665         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22666         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22667         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22668         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22669         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22670         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22671         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22672         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22673         Add more languages and countries for Sami, Sorbian. Add more countries
22674         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22675         for Pashto. Change country for Syriac, Tswana.
22676
22677 2009-12-21  Eric Blake  <ebb9@byu.net>
22678
22679         test-utimens: avoid spurious failure
22680         * tests/test-chown.h (nap): Factor...
22681         * tests/nap.h: ...into new file.
22682         * tests/test-lchown.h (nap): Avoid duplication.
22683         * tests/test-utimens-common.h (nap): Use shared implementation,
22684         necessary on file systems with 1-second resolution.
22685         * modules/chown-tests (Files): Include new file.
22686         * modules/fdutimensat-tests (Files): Likewise.
22687         * modules/futimens-tests (Files): Likewise.
22688         * modules/lchown-tests (Files): Likewise.
22689         * modules/openat-tests (Files): Likewise.
22690         * modules/utimens-tests (Files): Likewise.
22691         * modules/utimensat-tests (Files): Likewise.
22692
22693 2009-12-19  Eric Blake  <ebb9@byu.net>
22694
22695         futimens, utimensat: work around Linux bug
22696         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22697         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22698         * lib/utimensat.c (rpl_utimensat): Work around it.
22699         * lib/futimens.c (rpl_futimens): Adjust comment.
22700
22701         utimens: work around Linux ctime bug
22702         * lib/utimens.c (detect_ctime_bug): New helper function.
22703         (update_timespec): Differentiate between workaround needed for
22704         this bug vs. what is needed for systems that lack utimensat.
22705         (fdutimens, lutimens): Work around bug.
22706
22707         utimens: check for ctime update
22708         * tests/test-utimens-common.h (check_ctime): Define.
22709         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22710         * tests/test-futimens.h (test_futimens): Likewise.
22711         * tests/test-lutimens.h (test_lutimens): Likewise.
22712         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22713         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22714
22715 2009-12-19  Bruno Haible  <bruno@clisp.org>
22716
22717         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22718         * tests/test-dprintf-posix2.sh: New file.
22719         * tests/test-dprintf-posix2.c: New file.
22720         * modules/dprintf-posix-tests (Files): Add them.
22721         (configure.ac): Check for getrlimit and setrlimit.
22722         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22723
22724 2009-12-19  Bruno Haible  <bruno@clisp.org>
22725
22726         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22727         * tests/test-fprintf-posix3.sh: New file.
22728         * tests/test-fprintf-posix3.c: New file.
22729         * modules/fprintf-posix-tests (Files): Add them.
22730         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22731
22732 2009-12-19  Eric Blake  <ebb9@byu.net>
22733
22734         dirfd: fix prototype
22735         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22736         * lib/dirfd.c (dirfd): Likewise.
22737
22738         canonicalize: reduce memory usage
22739         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22740         allocation to size.
22741         Reported by Solar Designer <solar@openwall.com>.
22742
22743 2009-12-19  Bruno Haible  <bruno@clisp.org>
22744
22745         New module attribute 'Applicability'.
22746         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22747         * gnulib-tool: New option --extract-applicability.
22748         (func_usage): Document it.
22749         (sed_extract_prog): Recognize it.
22750         (func_get_applicability): New function.
22751         (func_import): Generalize handling of 'link-warning' module.
22752         * modules/link-warning (Applicability): New section.
22753         * modules/arg-nonnull (Applicability): New section.
22754         Repoted by Simon Josefsson <simon@josefsson.org>.
22755
22756 2009-12-19  Bruno Haible  <bruno@clisp.org>
22757
22758         fflush: tweak
22759         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22760         * lib/fseeko.c (rpl_fseeko): Likewise.
22761
22762 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22763
22764         * lib/gl_list.h: Fix typo in comment.
22765
22766 2009-12-16  Eric Blake  <ebb9@byu.net>
22767
22768         fcntl: use to simplify other modules
22769         * modules/cloexec (Depends-on): Add fcntl.
22770         * modules/fchdir (Depends-on): Likewise.
22771         * modules/fd-safer-flag (Depends-on): Likewise.
22772         * modules/unistd-safer (Depends-on): Likewise.
22773         * modules/dup3 (configure.ac): Set module indicator.
22774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22775         missing.
22776         * lib/fchdir.c (_gl_register_dup): Fix comment.
22777         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22778         * lib/dup-safer.c (dup_safer): Likewise.
22779         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22780         * lib/dup3.c (dup3): Likewise.
22781         * tests/test-fchdir.c (main): Enhance test.
22782         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22783
22784         fcntl: port portions of fcntl to mingw
22785         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22786         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22787         replacement for mingw.
22788         * modules/fcntl (Description): Update.
22789         (Depends-on): Add dup2.
22790         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22791         * modules/fcntl-h (Makefile.am): Substitute it.
22792         * lib/fcntl.in.h (fcntl): Update declaration.
22793         (F_DUPFD, F_GETFD): New macros, when needed.
22794         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22795         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22796         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22797         we now guarantee.
22798
22799         fcntl: work around cygwin bug in F_DUPFD
22800         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22801         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22802         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22803         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22804         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22805
22806         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22807         * modules/fcntl (Files): List new files.
22808         (configure.ac): Run a test.
22809         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22810         * lib/fcntl.c (rpl_fcntl): Likewise.
22811         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22812         (gl_FCNTL_H): Always replace fcntl.h.
22813         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22814         * lib/fcntl.in.h (fcntl): Declare replacement.
22815         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22816         needed, plus a witness.
22817         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22818         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22819         * tests/test-fcntl.c: New file.
22820         * modules/fcntl-tests: Likewise.
22821
22822         binary-io: avoid potential compilation warning
22823         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22824         directives.
22825
22826         fflush: avoid compilation error on NetBSD
22827         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22828         between off_t and fpos_t, since the latter is sometimes a struct.
22829         * lib/fseeko.c (rpl_fseeko): Likewise.
22830         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22831
22832 2009-12-15  Eric Blake  <ebb9@byu.net>
22833
22834         fcntl-h, stdio, sys_ioctl: fix declarations
22835         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22836         function must not take arguments.
22837         * lib/sys_ioctl.in.h (ioctl): Likewise.
22838         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22839         (open): Add a link warning.
22840
22841 2009-12-15  Jim Meyering  <meyering@redhat.com>
22842
22843         areadlink, areadlink-with-size: relax license to LGPLv2+
22844         * modules/areadlink (License): Relax to LGPLv2+.
22845         * modules/areadlink-with-size (License): Likewise.
22846
22847 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22848             Bruno Haible  <bruno@clisp.org>
22849
22850         *printf: Fix memory leak.
22851         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22852         * lib/vfprintf.c (vfprintf): Likewise.
22853         * lib/dprintf.c (dprintf): Likewise.
22854         * lib/vdprintf.c (vdprintf): Likewise.
22855
22856 2009-12-14  Eric Blake  <ebb9@byu.net>
22857
22858         accept4: adjust module dependencies
22859         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22860
22861         utimens: one more try at avoiding compiler warning
22862         * lib/utimens.c (lutimens): Lower scope of result.
22863
22864 2009-12-13  Bruno Haible  <bruno@clisp.org>
22865
22866         Move the malloc checking from module 'list' to new module 'xlist'.
22867         * modules/xlist: New file.
22868         * lib/gl_xlist.h: New file.
22869         * lib/gl_xlist.c: New file.
22870         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22871         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22872         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22873         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22874         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22875         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22876         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22877         gl_sortedlist_nx_add): New declarations.
22878         (struct gl_list_implementation): Rename and change methods accordingly.
22879         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22880         (gl_list_nx_create): Renamed from gl_list_create.
22881         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22882         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22883         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22884         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22885         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22886         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22887         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22888         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22889         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22890         gl_list_create_empty.
22891         (gl_list_nx_create): Renamed from gl_list_create.
22892         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22893         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22894         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22895         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22896         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22897         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22898         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22899         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22900         * lib/gl_array_list.c: Don't include xalloc.h.
22901         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22902         NULL upon out-of-memory.
22903         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22904         out-of-memory.
22905         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22906         Change return type to 'int'.
22907         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22908         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22909         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22910         upon out-of-memory.
22911         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22912         upon out-of-memory.
22913         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22914         upon out-of-memory.
22915         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22916         upon out-of-memory.
22917         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22918         out-of-memory.
22919         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22920         Update.
22921         (gl_array_list_implementation): Update.
22922         * lib/gl_carray_list.c: Don't include xalloc.h.
22923         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22924         Return NULL upon out-of-memory.
22925         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22926         out-of-memory.
22927         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22928         Change return type to 'int'.
22929         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22930         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22931         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22932         upon out-of-memory.
22933         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22934         upon out-of-memory.
22935         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22936         out-of-memory.
22937         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22938         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22939         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22940         Update.
22941         (gl_carray_list_implementation): Update.
22942         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22943         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22944         gl_linked_create_empty. Return NULL upon out-of-memory.
22945         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22946         out-of-memory.
22947         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22948         Change return type to 'int'. Return -1 upon out-of-memory.
22949         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22950         out-of-memory.
22951         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22952         upon out-of-memory.
22953         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22954         upon out-of-memory.
22955         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22956         NULL upon out-of-memory.
22957         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22958         upon out-of-memory.
22959         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22960         out-of-memory.
22961         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22962         Update.
22963         * lib/gl_linked_list.c: Don't include xalloc.h.
22964         (gl_linked_list_implementation): Update.
22965         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22966         (add_to_bucket): Change return type to 'int'.
22967         (gl_linkedhash_list_implementation): Update.
22968         * lib/gl_anytree_list1.h (free_subtree): New function.
22969         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22970         gl_tree_create_empty. Return NULL upon out-of-memory.
22971         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22972         Change return type to 'int'. Return -1 upon out-of-memory.
22973         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22974         out-of-memory.
22975         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22976         (gl_tree_remove_node): New function, moved here from
22977         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22978         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22979         Update.
22980         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22981         malloc, not xmalloc. Return NULL upon out-of-memory.
22982         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22983         out-of-memory.
22984         (gl_tree_remove_node_from_tree): New function, extracted from
22985         gl_tree_remove_node.
22986         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22987         upon out-of-memory.
22988         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22989         out-of-memory.
22990         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22991         upon out-of-memory.
22992         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22993         upon out-of-memory.
22994         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22995         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22996         not xmalloc. Return NULL upon out-of-memory.
22997         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22998         out-of-memory.
22999         (gl_tree_remove_node_from_tree): New function, extracted from
23000         gl_tree_remove_node.
23001         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23002         upon out-of-memory.
23003         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23004         out-of-memory.
23005         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23006         upon out-of-memory.
23007         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23008         upon out-of-memory.
23009         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23010         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23011         gl_anytree_list1.h before gl_anyavltree_list2.h.
23012         (gl_avltree_list_implementation): Update.
23013         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23014         gl_anytree_list1.h before gl_anyavltree_list2.h.
23015         (gl_rbtree_list_implementation): Update.
23016         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23017         Change return type to 'int'. Return -1 upon out-of-memory. Use
23018         __builtin_expect.
23019         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23020         (gl_avltreehash_list_implementation): Update.
23021         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23022         (gl_rbtreehash_list_implementation): Update.
23023         * modules/array-list (Depends-on): Remove xalloc.
23024         * modules/carray-list (Depends-on): Likewise.
23025         * modules/linked-list (Depends-on): Likewise.
23026         * modules/linkedhash-list (Depends-on): Likewise.
23027         * modules/avltree-list (Depends-on): Likewise.
23028         * modules/rbtree-list (Depends-on): Likewise.
23029         * modules/avltreehash-list (Depends-on): Likewise.
23030         * modules/rbtreehash-list (Depends-on): Likewise.
23031
23032         * modules/xsublist: New file.
23033         * lib/gl_xsublist.h: New file.
23034         * lib/gl_xsublist.c: New file.
23035         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23036         (gl_sublist_nx_create): New declaration.
23037         * lib/gl_sublist.c: Don't include xalloc.h.
23038         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23039         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23040         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23041         Change return type to 'int'. Return -1 upon out-of-memory.
23042         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23043         upon out-of-memory.
23044         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23045         NULL upon out-of-memory.
23046         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23047         upon out-of-memory.
23048         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23049         NULL upon out-of-memory.
23050         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23051         NULL upon out-of-memory.
23052         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23053         upon out-of-memory.
23054         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23055         (gl_sublist_list_implementation): Update.
23056         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23057         upon out-of-memory.
23058         * modules/sublist (Depends-on): Remove xalloc.
23059
23060         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23061         * tests/test-carray_list.c: Likewise.
23062         * tests/test-linked_list.c: Likewise.
23063         * tests/test-linkedhash_list.c: Likewise.
23064         * tests/test-avltree_list.c: Likewise.
23065         * tests/test-rbtree_list.c: Likewise.
23066         * tests/test-avltreehash_list.c: Likewise.
23067         * tests/test-rbtreehash_list.c: Likewise.
23068         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23069         * modules/carray-list-tests (Makefile.am): Likewise.
23070         * modules/linked-list-tests (Makefile.am): Likewise.
23071         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23072         * modules/avltree-list-tests (Makefile.am): Likewise.
23073         * modules/rbtree-list-tests (Makefile.am): Likewise.
23074         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23075         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23076
23077         * NEWS: Mention the changes.
23078
23079         * lib/clean-temp.c: Include gl_xlist.h.
23080         * modules/clean-temp (Depends-on): Add xlist.
23081
23082         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23083         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23084
23085         * tests/test-array_oset.c: Include gl_xlist.h.
23086         * modules/array-oset-tests (Depends-on): Add xlist.
23087
23088         Reported by José E. Marchesi <jemarch@gnu.org>.
23089
23090 2009-12-13  Bruno Haible  <bruno@clisp.org>
23091
23092         Move the malloc checking from module 'oset' to new module 'xoset'.
23093         * modules/xoset: New file.
23094         * lib/gl_xoset.h: New file.
23095         * lib/gl_xoset.c: New file.
23096         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23097         declarations.
23098         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23099         (struct gl_oset_implementation): Rename and change methods accordingly.
23100         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23101         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23102         'int'. Mark as __warn_unused_result__.
23103         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23104         gl_oset_create_empty.
23105         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23106         'int'.
23107         * lib/gl_array_oset.c: Don't include xalloc.h.
23108         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23109         malloc, not xmalloc.
23110         (grow): Change return type to 'int'. Don't call xalloc_die.
23111         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23112         to 'int'.
23113         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23114         'int'.
23115         (gl_array_oset_implementation): Update.
23116         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23117         gl_tree_create_empty.
23118         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23119         'int'.
23120         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23121         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23122         xmalloc.
23123         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23124         not xmalloc.
23125         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23126         xmalloc.
23127         (gl_avltree_oset_implementation): Update.
23128         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23129         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23130         xmalloc.
23131         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23132         not xmalloc.
23133         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23134         xmalloc.
23135         (gl_rbtree_oset_implementation): Update.
23136         * modules/array-oset (Depends-on): Remove xalloc.
23137         * modules/avltree-oset (Depends-on): Likewise.
23138         * modules/rbtree-oset (Depends-on): Likewise.
23139         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23140         * tests/test-avltree_oset.c: Likewise.
23141         * tests/test-rbtree_oset.c: Likewise.
23142         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23143         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23144         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23145         * NEWS: Mention the change.
23146
23147 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23148
23149         maint.mk: allow a project to override release-prep commands
23150         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23151         commands into a new rule.
23152         (release-prep): New rule.
23153         (release-prep-hook): New overridable variable.
23154
23155 2009-12-13  Bruno Haible  <bruno@clisp.org>
23156
23157         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23158
23159 2009-12-13  Jim Meyering  <meyering@redhat.com>
23160
23161         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23162         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23163
23164 2009-12-12  Bruno Haible  <bruno@clisp.org>
23165
23166         duplocale: Tweak.
23167         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23168
23169 2009-12-12  Karl Berry  <karl@gnu.org>
23170
23171         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23172
23173 2009-12-12  Bruno Haible  <bruno@clisp.org>
23174
23175         * m4/po.m4: Undo incorrect untabification.
23176
23177 2009-12-12  Bruno Haible  <bruno@clisp.org>
23178
23179         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23180         * modules/c-strtod (Depends-on): Add locale.
23181         * modules/c-strtold (Depends-on): Likewise.
23182
23183 2009-12-12  Bruno Haible  <bruno@clisp.org>
23184
23185         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23186
23187 2009-12-11  Eric Blake  <ebb9@byu.net>
23188
23189         setenv: relax requirement in light of POSIX ruling
23190         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23191         not NULL.
23192         * tests/test-setenv.c (main): Relax test.
23193         * tests/test-unsetenv.c (main): Likewise.
23194         * doc/posix-functions/setenv.texi (setenv): Document this.
23195         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23196
23197 2009-12-11  Bruno Haible  <bruno@clisp.org>
23198
23199         New module 'fd-safer-flag'.
23200         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23201         * lib/dup-safer.c (dup_safer_flag): Remove function.
23202         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23203         * lib/fd-safer.c (fd_safer_flag): Remove function.
23204         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23205         * modules/cloexec (configure.ac): Drop indicator macro.
23206         * modules/fd-safer-flag: New file.
23207         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23208         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23209         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23210
23211 2009-12-11  Bruno Haible  <bruno@clisp.org>
23212
23213         Tests for module 'nl_langinfo'.
23214         * modules/nl_langinfo-tests: New file.
23215         * tests/test-nl_langinfo.sh: New file.
23216         * tests/test-nl_langinfo.c: New file.
23217
23218         New module 'nl_langinfo'.
23219         * lib/nl_langinfo.c: New file.
23220         * m4/nl_langinfo.m4: New file.
23221         * modules/nl_langinfo: New file.
23222         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23223
23224 2009-12-11  Bruno Haible  <bruno@clisp.org>
23225
23226         Tests for module 'langinfo'.
23227         * modules/langinfo-tests: New file.
23228         * tests/test-langinfo.c: New file.
23229
23230         New module 'langinfo'.
23231         * lib/langinfo.in.h: New file.
23232         * m4/langinfo_h.m4: New file.
23233         * modules/langinfo: New file.
23234         * doc/posix-headers/langinfo.texi: Mention the new module.
23235
23236 2009-12-11  Bruno Haible  <bruno@clisp.org>
23237
23238         * lib/config.charset: Untabify.
23239
23240 2009-12-11  Bruno Haible  <bruno@clisp.org>
23241
23242         * modules/unistd-safer (configure.ac): Drop indicator macro.
23243
23244 2009-12-11  Bruno Haible  <bruno@clisp.org>
23245
23246         Move pipe2-safer code to its own file.
23247         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23248         * lib/pipe-safer.c (pipe2_safer): Remove function.
23249         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23250         (Makefile.am): Add it to lib_SOURCES.
23251
23252 2009-12-10  Bruno Haible  <bruno@clisp.org>
23253
23254         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23255
23256 2009-12-10  Bruno Haible  <bruno@clisp.org>
23257
23258         Declare which arguments expect non-NULL values, for GCC and clang.
23259         * build-aux/arg-nonnull.h: New file.
23260         * modules/arg-nonnull: New file.
23261         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23262         (inet_ntop, inet_pton): Use it.
23263         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23264         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23265         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23266         (open, openat): Use it.
23267         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23268         (fnmatch): Use it.
23269         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23270         (getopt, getopt_long, getopt_long_only): Use it.
23271         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23272         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23273         Use it.
23274         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23275         (iconv_open): Use it.
23276         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23277         (strtoimax, strtoumax): Use it.
23278         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23279         (duplocale): Use it.
23280         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23281         (frexp, frexpl): Use it.
23282         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23283         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23284         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23285         (tsearch, tfind, tdelete, twalk): Use it.
23286         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23287         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23288         sigpending): Use it.
23289         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23290         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23291         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23292         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23293         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23294         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23295         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23296         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23297         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23298         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23299         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23300         Use it.
23301         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23302         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23303         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23304         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23305         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23306         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23307         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23308         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23309         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23310         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23311         strtoull, unsetenv): Use it.
23312         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23313         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23314         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23315         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23316         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23317         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23318         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23319         (strcasecmp, strncasecmp): Use it.
23320         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23321         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23322         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23323         rpl_setsockopt): Use it.
23324         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23325         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23326         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23327         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23328         (gettimeofday): Use it.
23329         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23330         (times): Use it.
23331         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23332         (uname): Use it.
23333         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23334         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23335         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23336         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23337         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23338         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23339         unlinkat, write): Use it.
23340         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23341         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23342         * lib/argv-iter.h: Include arg-nonnull.h.
23343         (_ATTRIBUTE_NONNULL_): Remove macro.
23344         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23345         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23346         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23347         optimization.
23348         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23349         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23350         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23351         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23352         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23353         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23354         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23355         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23356         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23357         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23358         * modules/dirent (Depends-on): Add arg-nonnull.
23359         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23360         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23361         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23362         * modules/fnmatch (Depends-on): Add arg-nonnull.
23363         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23364         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23365         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23366         * modules/glob (Depends-on): Add arg-nonnull.
23367         (Makefile.am): Insert arg-nonnull.h into glob.h.
23368         * modules/iconv_open (Depends-on): Add arg-nonnull.
23369         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23370         * modules/inttypes (Depends-on): Add arg-nonnull.
23371         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23372         * modules/locale (Depends-on): Add arg-nonnull.
23373         (Makefile.am): Insert arg-nonnull.h into locale.h.
23374         * modules/math (Depends-on): Add arg-nonnull.
23375         (Makefile.am): Insert arg-nonnull.h into math.h.
23376         * modules/netdb (Depends-on): Add arg-nonnull.
23377         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23378         * modules/search (Depends-on): Add arg-nonnull.
23379         (Makefile.am): Insert arg-nonnull.h into search.h.
23380         * modules/signal (Depends-on): Add arg-nonnull.
23381         (Makefile.am): Insert arg-nonnull.h into signal.h.
23382         * modules/spawn (Depends-on): Add arg-nonnull.
23383         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23384         * modules/stdio (Depends-on): Add arg-nonnull.
23385         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23386         * modules/stdlib (Depends-on): Add arg-nonnull.
23387         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23388         * modules/string (Depends-on): Add arg-nonnull.
23389         (Makefile.am): Insert arg-nonnull.h into string.h.
23390         * modules/strings (Depends-on): Add arg-nonnull.
23391         (Makefile.am): Insert arg-nonnull.h into strings.h.
23392         * modules/sys_socket (Depends-on): Add arg-nonnull.
23393         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23394         * modules/sys_stat (Depends-on): Add arg-nonnull.
23395         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23396         * modules/sys_time (Depends-on): Add arg-nonnull.
23397         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23398         * modules/sys_times (Depends-on): Add arg-nonnull.
23399         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23400         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23401         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23402         * modules/time (Depends-on): Add arg-nonnull.
23403         (Makefile.am): Insert arg-nonnull.h into time.h.
23404         * modules/unistd (Depends-on): Add arg-nonnull.
23405         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23406         * modules/wchar (Depends-on): Add arg-nonnull.
23407         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23408         * modules/argv-iter (Depends-on): Add arg-nonnull.
23409         * tests/test-canonicalize.c (null_ptr): New function.
23410         (main): Use it.
23411         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23412         (main): Use it.
23413         * tests/test-memmem.c (null_ptr): New function.
23414         (main): Use it.
23415         Reported by Jim Meyering.
23416
23417 2009-12-10  Bruno Haible  <bruno@clisp.org>
23418
23419         Use spaces for indentation, not tabs.
23420         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23421         * m4/*.m4: Untabify.
23422         * build-aux/*.h: Untabify.
23423         * tests/**/*.[hc]: Untabify.
23424         * README: New section "Indent with spaces, not TABs", based on
23425         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23426         * NEWS: Mention the change.
23427
23428 2009-12-10  Bruno Haible  <bruno@clisp.org>
23429
23430         pty test: Fix link error.
23431         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23432         test_pty_LDADD.
23433
23434 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23435
23436         * modules/pty: New file.
23437         * modules/pty-tests: New file.
23438         * m4/pty.m4: New file.
23439         * tests/test-pty.c: New file.
23440         * doc/glibc-headers/pty.texi: Modified.
23441         * doc/glibc-functions/forkpty.texi: Modified.
23442         * doc/glibc-functions/openpty.texi: Modified.
23443
23444 2009-12-10  Bruno Haible  <bruno@clisp.org>
23445
23446         Avoid syntax error in C++ mode.
23447         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23448
23449 2009-12-10  Bruno Haible  <bruno@clisp.org>
23450
23451         Use sed with option -e.
23452         * gnulib-tool (func_version, func_emit_copyright_notice,
23453         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23454         option -e to sed.
23455         * modules/link-warning (Makefile.am): Likewise.
23456
23457 2009-12-10  Jim Meyering  <meyering@redhat.com>
23458
23459         mgetgroups: do not write bytes beyond end of malloc'd buffer
23460         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23461         username, we call getgroups with a one-element-shorter buffer,
23462         but still told it the length was original, max_n_groups.
23463
23464 2009-12-09  Eric Blake  <ebb9@byu.net>
23465
23466         cloexec: relax license
23467         * modules/cloexec (Maintainer): Add myself.
23468         (License): Use LGPL, not GPL.
23469
23470         link-warning: optimize generation
23471         * modules/link-warning (Makefile.am): Reduce process usage.
23472
23473 2009-12-09  Bruno Haible  <bruno@clisp.org>
23474
23475         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23476         workaround was added on 2009-11-17.
23477
23478 2009-12-09  Jim Meyering  <meyering@redhat.com>
23479             Bruno Haible  <bruno@clisp.org>
23480
23481         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23482         * modules/link-warning (Makefile.am): Make the comment-removing sed
23483         command more robust in the face of bootstrap-prepended comment lines.
23484
23485 2009-12-09  Bruno Haible  <bruno@clisp.org>
23486
23487         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23488         most one group.
23489
23490 2009-12-09  Simon Josefsson <simon@josefsson.org>
23491             Bruno Haible  <bruno@clisp.org>
23492
23493         * build-aux/link-warning.h: Add copyright notice.
23494         * modules/link-warning (Makefile.am): Generate link-warning.h from
23495         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23496         * NEWS: Mention change in link-warning module.
23497         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23498         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23499         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23500         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23501         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23502         * modules/math (Makefile.am): Add dependency to math.h.
23503         * modules/search (Makefile.am): Add dependency to search.h.
23504         * modules/signal (Makefile.am): Add dependency to signal.h.
23505         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23506         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23507         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23508         * modules/string (Makefile.am): Add dependency to string.h.
23509         * modules/strings (Makefile.am): Add dependency to strings.h.
23510         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23511         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23512         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23513         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23514         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23515         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23516         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23517         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23518         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23519
23520 2009-12-09  Bruno Haible  <bruno@clisp.org>
23521
23522         fchdir: Optimize away rpl_fstat when possible.
23523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23524         REPLACE_OPEN_DIRECTORY.
23525         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23526
23527 2009-12-09  Bruno Haible  <bruno@clisp.org>
23528
23529         * lib/fchdir.c: Update comment.
23530
23531 2009-12-09  Bruno Haible  <bruno@clisp.org>
23532
23533         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23534
23535 2009-12-08  Eric Blake  <ebb9@byu.net>
23536
23537         fchdir: avoid memory leak on re-registration.
23538         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23539
23540 2009-12-08  Jim Meyering  <meyering@redhat.com>
23541
23542         init.sh: avoid Solaris 10 /bin/sh portability problem
23543         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23544         sourced script:
23545           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23546           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23547           bar
23548         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23549         and two tests used that idiom.
23550         * tests/init.sh: Update suggested usage comments.
23551         (path_prepend_): New function, to be used in place
23552         of the --src-path=DIR option.
23553         (setup_): Move PATH-prepending code into path_prepend_.
23554         * tests/test-pread.sh: Adapt to new usage.
23555         * tests/test-xalloc-die.sh: Likewise.
23556
23557 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23558
23559         * doc/gnulib.texi (Glibc pty.h): Add.
23560         * doc/glibc-functions/forkpty.texi: Add.
23561         * doc/glibc-functions/openpty.texi: Add.
23562         Suggested by Bruno Haible.
23563
23564 2009-12-08  Eric Blake  <ebb9@byu.net>
23565
23566         fchdir: fix logic bugs
23567         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23568         * tests/test-fchdir.c (main): Enhance test.
23569         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23570         is in use.
23571
23572         dup2: fix logic bugs
23573         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23574         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23575         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23576         exists.
23577         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23578
23579 2009-12-07  Eric Blake  <ebb9@byu.net>
23580
23581         unlink: fix m4 detection
23582         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23583
23584         unistd-safer: add unit test
23585         * modules/unistd-safer-tests: New file.
23586         * tests/test-dup-safer.c: Likewise.
23587         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23588         * tests/test-dup2.c (setmode): Likewise.
23589         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23590
23591         cloexec: preserve text vs. binary across dup_cloexec
23592         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23593         mode.
23594         * modules/dup2-tests (Depends-on): Add binary-io.
23595         * modules/cloexec-tests (Depends-on): Likewise.
23596         * tests/test-dup2.c (setmode, is_mode): New helpers.
23597         (main): Add tests that translation mode is preserved.
23598         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23599         Reported by Bruno Haible.
23600
23601         mgetgroups: reduce duplicate listings
23602         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23603         resulting array.
23604         * tests/test-chown.h (test_chown): Simplify client.
23605         * tests/test-lchown.h (test_lchown): Likewise.
23606
23607 2009-12-06  Bruno Haible  <bruno@clisp.org>
23608
23609         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23610         value.
23611
23612 2009-12-06  Bruno Haible  <bruno@clisp.org>
23613
23614         * lib/progname.c: Include stdio.h, stdlib.h.
23615         (set_program_name): Reject a NULL argument.
23616
23617 2009-12-05  Eric Blake  <ebb9@byu.net>
23618
23619         pipe2-safer: new module
23620         * modules/pipe2-safer: New file.
23621         * lib/unistd-safer.h (pipe2_safer): New prototype.
23622         * lib/unistd--.h (pipe2): New wrapper.
23623         * lib/pipe-safer.c (pipe2_safer): New function.
23624         * modules/pipe (Depends-on): Add pipe2-safer.
23625         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23626
23627         stdlib-safer: preserve cloexec flag for mkostemp[s]
23628         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23629         fd_safer_flag.
23630
23631         unistd-safer: allow preservation of cloexec status via flag
23632         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23633         prototypes.
23634         * lib/dup-safer.c (dup_safer_flag): New function.
23635         * lib/fd-safer.c (fd_safer_flag): Likewise.
23636         * modules/cloexec (configure.ac): Set witness.
23637
23638         test-dup2: enhance test
23639         * modules/dup2-tests (Depends-on): Add cloexec.
23640         * tests/test-dup2.c (main): Enhance test.
23641
23642         cloexec: add dup_cloexec
23643         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23644         header and comments.
23645         * lib/cloexec.c (set_cloexec_flag): Add comments.
23646         (dup_cloexec): New function, with mingw implementation borrowed
23647         from...
23648         * lib/w32spawn.h (dup_noinherit): ...here.
23649         * modules/execute (Depends-on): Add cloexec.
23650         * modules/pipe (Depends-on): Likewise.
23651         * modules/cloexec (Depends-on): Add dup2.
23652         * modules/cloexec-tests (Files): New file.
23653         * tests/test-cloexec.c: Likewise.
23654
23655         test-xalloc-die: fix test for mingw
23656         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23657         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23658         directory and .exe suffix off argv[0] output.
23659
23660         test-fseeko: fix test for mingw
23661         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23662         than undefining fseek, so test will pass on mingw.
23663
23664 2009-12-05  Bruno Haible  <bruno@clisp.org>
23665
23666         * lib/progname.h (set_program_name): Clarify specification.
23667         * lib/progname.c (set_program_name): Likewise.
23668         Reported by Jim Meyering.
23669
23670 2009-12-05  Jim Meyering  <meyering@redhat.com>
23671
23672         maint.mk: backslash-escape parens in default regexp
23673         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23674         backslash-escape the literal parentheses.
23675
23676         maint.mk: news-date-check: use grep -E
23677         * top/maint.mk (today): Define a Make variable, not a...
23678         (news-date-check): ...shell variable.
23679         (news-date-regexp): Use the Make variable.
23680         Use grep's -E option.  Change the failing diagnostic to mention
23681         the variable, $(news-date-regexp).
23682
23683 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23684
23685         maintainer-makefile: allow customization of NEWS entry format
23686         * top/maint.mk (news-date-regexp): New overridable variable.
23687         (news-date-check): Use it.
23688
23689 2009-12-04  Eric Blake  <ebb9@byu.net>
23690
23691         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23692         * lib/mgetgroups.h (xgetgroups): New prototype.
23693         * lib/mgetgroups.c (xgetgroups): New wrapper.
23694         (mgetgroups): Handle ENOSYS.
23695         * modules/mgetgroups (Depends-on): Add realloc.
23696         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23697
23698         mgetgroups: avoid argument promotion issues with -1
23699         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23700         for invalid gid_t.
23701         * tests/test-chown.h (getegid, test_chown): Likewise.
23702         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23703
23704 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23705
23706         exclude: Fix header file problems.
23707         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23708
23709 2009-12-01  Jim Meyering  <meyering@redhat.com>
23710
23711         fts: fts_open: do not let an empty string cause immediate failure
23712         This is required in support of GNU rm, for which the command
23713         "rm A '' B" must process and remove both A and B, in spite of
23714         the empty string argument.
23715         * lib/fts.c (fts_open): Do not let the presence of an empty string
23716         cause fts_open to fail immediately.  Most fts-using tools must be
23717         able to process all arguments, in order, and can be expected to
23718         diagnose such arguments themselves.
23719
23720 2009-11-30  Eric Blake  <ebb9@byu.net>
23721
23722         utimens: fix compilation error
23723         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23724         Declare variable at right scope.
23725
23726 2009-11-29  Jim Meyering  <meyering@redhat.com>
23727
23728         bootstrap: handle perl-5.11's changed --version output
23729         * build-aux/bootstrap (get_version): Handle perl separately,
23730         since perl-5.11's --version output is different.
23731
23732 2009-11-28  Jim Meyering  <meyering@redhat.com>
23733
23734         userspec: depend on the inttostr module, too
23735         * modules/userspec (Depends-on): Add inttostr.
23736
23737         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23738         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23739         number of MAXUID when it evaluates to (uid_t) -1.
23740         Likewise for group ID.  Reported by Matt McCutchen in
23741         <http://savannah.gnu.org/bugs/?28113>
23742
23743         userspec: reformat to use spaces, not TABs
23744         * lib/userspec.c: Expand TABs to spaces.
23745         Add Emacs' "indent-tabs-mode: nil" hint.
23746
23747 2009-11-27  Eric Blake  <ebb9@byu.net>
23748
23749         getopt-gnu: flush out another BSD bug
23750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23751         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23752         flush out BSD bug.
23753         * tests/test-getopt.h (test_getopt): End lists with NULL.
23754         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23755         (test_getopt_long_posix): Enhance test.
23756         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23757         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23758         getopt-gnu.
23759         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23760         Likewise.
23761
23762 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23763
23764         * modules/idpriv-droptemp-tests (Notice): Fix text.
23765
23766 2009-11-27  Jim Meyering  <meyering@redhat.com>
23767
23768         test-xalloc-die: avoid spurious failure due to libtool argv difference
23769         In a libtool-enabled project, this test would fail due to a difference
23770         in the emitted program name, e.g.,
23771         -test-xalloc-die: memory exhausted
23772         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23773         Use program to avoid that.
23774         * modules/xalloc-die-tests (Depends-on): Add progname.
23775         * tests/test-xalloc-die.c: Include progname.h".
23776         (program_name): Remove decl.
23777         (main): Call set_program_name.
23778         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23779
23780 2009-11-26  Richard Jones  <rjones@redhat.com>
23781
23782         w32sock: leave win32 error in place.
23783         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23784
23785 2009-11-26  Eric Blake  <ebb9@byu.net>
23786
23787         init.sh: suggest to use skip_ and fail_ functions in comments
23788         * tests/init.sh: Add a sentence.
23789
23790 2009-11-25  Bruno Haible  <bruno@clisp.org>
23791
23792         init.sh: add documentation in comments
23793         * tests/init.sh: Add some developer and user documentation.
23794
23795 2009-11-26  Jim Meyering  <meyering@redhat.com>
23796
23797         init.sh: accommodate even those who specify bogus srcdir manually
23798         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23799         configure-time tests to be sanitized, so that there is no need to
23800         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23801         (with no double quotes) suffices.  However, since tests may be
23802         invoked manually, and since you may explicitly set srcdir to the
23803         name of a directory containing spaces, do quote its uses here.
23804         * tests/test-pread.sh: Likewise.
23805         Suggested by Bruno Haible.
23806
23807         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23808         * tests/test-pread.sh: Write no data into the pipe, because
23809         test-pread actually reads none.  This avoids a diagnostic,
23810         "bash: echo: write error: Broken pipe", that arises in the unusual
23811         event something is ignoring SIGPIPE, and might be interpreted
23812         as some sort of failure.  Reported by Bruno Haible.
23813
23814 2009-11-25  Jim Meyering  <meyering@redhat.com>
23815
23816         test-pread: cover failure with ESPIPE and EINVAL
23817         * tests/test-pread.c (main): Test for failure, too.
23818         * tests/test-pread.sh: Invoke with stdin on a pipe.
23819         Suggested by Eric Blake.
23820
23821         pread: improvement and fix
23822         * modules/pread (Depends-on): Depend on lseek, for portability to
23823         e.g., mingw.  Suggested by Eric Blake.
23824         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23825
23826         unistd.in.h: correct declaration of pread
23827         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23828         Reported by Richard W.M. Jones.
23829
23830         test-pread.sh: distribute the test script
23831         * modules/pread-tests (Files): Include test-pread.sh.
23832
23833         test-pread.sh: clean up
23834         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23835         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23836         That is unnecessary, since it's always ".".
23837         Suggestion from Eric Blake.
23838
23839         test-pread.sh: make executable
23840         * tests/test-pread.sh: Set executable bit.
23841         Reported by Eric Blake.
23842
23843         correct typo in test-pread.sh
23844         * tests/test-pread.sh: Add #! line.
23845
23846         test pread
23847         * tests/test-pread.c: New file.
23848         * tests/test-pread.sh: Likewise.
23849         * modules/pread-tests: Likewise.
23850
23851         pread: new module
23852         * modules/pread: New file.
23853         * lib/unistd.in.h (pread): Define/declare.
23854         * lib/pread.c (pread): New file.
23855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23856         * modules/unistd (Makefile.am): Substitute witnesses.
23857         * doc/posix-functions/pread.texi (pread): Update.
23858         * MODULES.html.sh: Add pread.
23859
23860 2009-11-25  Jim Meyering  <meyering@redhat.com>
23861
23862         tests/init.sh: new file to be used via most *.sh tests
23863         * tests/init.sh: New file.
23864
23865 2009-11-25  Eric Blake  <ebb9@byu.net>
23866
23867         utimens: work around older Linux failure with symlinks
23868         * lib/utimens.c (lutimensat_works_really): New variable.
23869         (fdutimens, lutimens): Use it to manage kernels that support
23870         nanosecond times on files, but not on symlinks.
23871         Reported by OndÅ™ej Vašík.
23872
23873         utimes: fix configure grammar
23874         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23875
23876 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23877
23878         regex: Fix fastmap for multibyte character ranges.
23879         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23880         characters when a multibyte character range is included.
23881
23882 2009-11-22  Andy Wingo  <wingo@pobox.com>
23883
23884         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23885         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23886
23887 2009-11-24  Bruno Haible  <bruno@clisp.org>
23888
23889         doc: Most *_l functions exist in MacOS X 10.5.
23890         * doc/posix-functions/duplocale.texi: Update platforms list.
23891         * doc/posix-functions/freelocale.texi: Likewise.
23892         * doc/posix-functions/newlocale.texi: Likewise.
23893         * doc/posix-functions/uselocale.texi: Likewise.
23894         * doc/posix-functions/isalnum_l.texi: Likewise.
23895         * doc/posix-functions/isalpha_l.texi: Likewise.
23896         * doc/posix-functions/isblank_l.texi: Likewise.
23897         * doc/posix-functions/iscntrl_l.texi: Likewise.
23898         * doc/posix-functions/isdigit_l.texi: Likewise.
23899         * doc/posix-functions/isgraph_l.texi: Likewise.
23900         * doc/posix-functions/islower_l.texi: Likewise.
23901         * doc/posix-functions/isprint_l.texi: Likewise.
23902         * doc/posix-functions/ispunct_l.texi: Likewise.
23903         * doc/posix-functions/isspace_l.texi: Likewise.
23904         * doc/posix-functions/isupper_l.texi: Likewise.
23905         * doc/posix-functions/iswalnum_l.texi: Likewise.
23906         * doc/posix-functions/iswalpha_l.texi: Likewise.
23907         * doc/posix-functions/iswblank_l.texi: Likewise.
23908         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23909         * doc/posix-functions/iswctype_l.texi: Likewise.
23910         * doc/posix-functions/iswdigit_l.texi: Likewise.
23911         * doc/posix-functions/iswgraph_l.texi: Likewise.
23912         * doc/posix-functions/iswlower_l.texi: Likewise.
23913         * doc/posix-functions/iswprint_l.texi: Likewise.
23914         * doc/posix-functions/iswpunct_l.texi: Likewise.
23915         * doc/posix-functions/iswspace_l.texi: Likewise.
23916         * doc/posix-functions/iswupper_l.texi: Likewise.
23917         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23918         * doc/posix-functions/isxdigit_l.texi: Likewise.
23919         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23920         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23921         * doc/posix-functions/strcoll_l.texi: Likewise.
23922         * doc/posix-functions/strfmon_l.texi: Likewise.
23923         * doc/posix-functions/strftime_l.texi: Likewise.
23924         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23925         * doc/posix-functions/strxfrm_l.texi: Likewise.
23926         * doc/posix-functions/tolower_l.texi: Likewise.
23927         * doc/posix-functions/toupper_l.texi: Likewise.
23928         * doc/posix-functions/towctrans_l.texi: Likewise.
23929         * doc/posix-functions/towlower_l.texi: Likewise.
23930         * doc/posix-functions/towupper_l.texi: Likewise.
23931         * doc/posix-functions/wcscoll_l.texi: Likewise.
23932         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23933         * doc/posix-functions/wctrans_l.texi: Likewise.
23934         * doc/posix-functions/wctype_l.texi: Likewise.
23935         * doc/glibc-functions/strptime_l.texi: Likewise.
23936         * doc/glibc-functions/strtod_l.texi: Likewise.
23937         * doc/glibc-functions/strtof_l.texi: Likewise.
23938         * doc/glibc-functions/strtol_l.texi: Likewise.
23939         * doc/glibc-functions/strtold_l.texi: Likewise.
23940         * doc/glibc-functions/strtoll_l.texi: Likewise.
23941         * doc/glibc-functions/strtoul_l.texi: Likewise.
23942         * doc/glibc-functions/strtoull_l.texi: Likewise.
23943         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23944         * doc/glibc-functions/wcstod_l.texi: Likewise.
23945         * doc/glibc-functions/wcstof_l.texi: Likewise.
23946         * doc/glibc-functions/wcstol_l.texi: Likewise.
23947         * doc/glibc-functions/wcstold_l.texi: Likewise.
23948         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23949         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23950         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23951
23952 2009-11-24  Bruno Haible  <bruno@clisp.org>
23953
23954         duplocale: Fix logic bug.
23955         * lib/duplocale.c: Don't include <langinfo.h>.
23956         (_NL_LOCALE_NAME): Remove macro.
23957         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23958         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23959
23960 2009-11-23  Jim Meyering  <meyering@redhat.com>
23961
23962         test-update-copyright: don't hard-code /usr/bin/perl
23963         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23964         perl to print the current year.  Gilles Espinasse reported that
23965         the replaced use of perl was hard-coded as /usr/bin/perl.
23966
23967 2009-11-23  Bruno Haible  <bruno@clisp.org>
23968
23969         duplocale: Add support for glibc 2.3.x.
23970         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23971
23972 2009-11-22  Bruno Haible  <bruno@clisp.org>
23973
23974         vasnprintf: Tiny optimization.
23975         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23976         MacOS X.
23977
23978 2009-11-22  Bruno Haible  <bruno@clisp.org>
23979
23980         Tests for module 'duplocale'.
23981         * modules/duplocale-tests: New file.
23982         * tests/test-duplocale.c: New file.
23983
23984         New module 'duplocale'.
23985         * m4/duplocale.m4: New file.
23986         * lib/locale.in.h (duplocale): New declaration.
23987         * lib/duplocale.c: New file.
23988         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23989         gl_LOCALE_H_DEFAULTS): New macros.
23990         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23991         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23992         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23993         REPLACE_DUPLOCALE.
23994         * modules/duplocale: New file.
23995         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23996
23997 2009-11-22  Bruno Haible  <bruno@clisp.org>
23998
23999         * modules/locale-tests (configure.ac): Test for newlocale function.
24000         * tests/test-locale.c: When the system has extended locale functions,
24001         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24002
24003         locale: Make locale_t available when possible.
24004         * lib/locale.in.h: Include <xlocale.h> when it exists.
24005         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24006         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24007         * modules/locale (Depends-on): Add extensions.
24008         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24009         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24010
24011 2009-11-22  Bruno Haible  <bruno@clisp.org>
24012
24013         Add comments.
24014         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24015         invocation.
24016         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24017         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24018         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24019
24020 2009-11-22  Bruno Haible  <bruno@clisp.org>
24021
24022         error: account for the possibility of freopen (stdout).
24023         * lib/error.c: Include <unistd.h>.
24024         (flush_stdout): New function, extracted from error and error_at_line.
24025         Determine stdout's fd dynamically.
24026         (error, error_at_line): Invoke flush_stdout.
24027         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24028         * modules/error (Depends-on): Add unistd.
24029
24030 2009-11-22  Bruno Haible  <bruno@clisp.org>
24031
24032         diffseq: Add comment.
24033         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24034
24035 2009-11-22  Jim Meyering  <meyering@redhat.com>
24036
24037         c-stack: avoid defining an unused static function
24038         * lib/c-stack.c (find_stack_direction): Do not define this function
24039         when it will not be used.
24040
24041         diffseq: avoid spurious gcc warnings
24042         * lib/diffseq.h (IF_LINT2): Define.
24043         (compareseq): Use it to initialize two members of "part".
24044         This avoids two used-uninitialized warnings.
24045
24046 2009-11-21  Jim Meyering  <meyering@redhat.com>
24047
24048         c-stack: avoid "ignoring return value of `write'" warning
24049         * lib/c-stack.c: Include "ignore-value.h".
24050         (die): Explicitly ignore each write return value.
24051         * modules/c-stack (Depends-on): Add ignore-value.
24052
24053 2009-11-21  Bruno Haible  <bruno@clisp.org>
24054
24055         diffseq: reduce scope of variable 'best'.
24056         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24057         variable, earlier used for two different purposes.
24058
24059 2009-11-21  Jim Meyering  <meyering@redhat.com>
24060
24061         diffseq: remove useless assignment to "best"
24062         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24063         assignment.  At that point "best" is already guaranteed to be zero.
24064
24065 2009-11-20  Eric Blake  <ebb9@byu.net>
24066
24067         build: mention ftp redirector in release announcements
24068         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24069         values that used to come from cfg.mk; mention FTP redirect URL.
24070         * build-aux/announce-gen: Mention the mirror list.
24071         Suggested by Karl Berry.
24072
24073         nanosleep: improve port to mingw
24074         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24076         LIB_NANOSLEEP, but only when needed.
24077         * modules/select (Link): Document LIBSOCKET.
24078         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24079         enough.
24080
24081         nanosleep: work around cygwin bug
24082         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24083         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24084         bug.
24085         (getnow): Delete, not needed.
24086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24087         LIB_CLOCK_GETTIME.
24088         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24089         clock-time, gettime.
24090         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24091         bug.
24092         * modules/nanosleep-tests: New test.
24093         * tests/test-nanosleep.c: New file.
24094
24095         sleep: work around cygwin bug
24096         * lib/sleep.c (rpl_sleep): Work around the bug.
24097         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24098         (gl_PREREQ_SLEEP): Delete unused macro.
24099         * modules/sleep (Depends-on): Add verify.
24100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24101         * modules/unistd (Makefile.am): Substitute witness.
24102         * lib/unistd.in.h (sleep): Update prototype.
24103         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24104         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24105         * modules/sleep-tests (Depends-on): Check for alarm.
24106
24107 2009-11-20  Jim Meyering  <meyering@redhat.com>
24108
24109         maint.mk: improve sc_prohibit_magic_number_exit
24110         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24111         so it does not match uses like System.exit(1).
24112         Add comments showing how to correct all offenders.
24113
24114 2009-11-19  Eric Blake  <ebb9@byu.net>
24115
24116         xalloc-die-tests: add missing library
24117         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24118
24119         test-xvasprintf: silence compiler warnings
24120         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24121         empty string from gcc.
24122
24123 2009-11-19  Jim Meyering  <meyering@redhat.com>
24124
24125         xfreopen: new module, from coreutils
24126         * modules/xfreopen: New module.
24127         * lib/xfreopen.c: New file.
24128         * lib/xfreopen.h: New file.
24129         * MODULES.html.sh (File stream based Input/Output"): Add it.
24130
24131 2009-11-19  Eric Blake  <ebb9@byu.net>
24132
24133         manywarnings: depend on warnings
24134         * modules/manywarnings (Depends-on): Add warnings.
24135
24136         build: avoid compiler warnings
24137         * lib/select.c (rpl_select): Delete unused variable.
24138         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24139
24140 2009-11-18  Eric Blake  <ebb9@byu.net>
24141
24142         tests: avoid false negative with --with-packager
24143         * tests/test-version-etc.sh: Discard packager information.
24144         * tests/test-argp-version-etc-1.sh: Likewise.
24145         Reported by Mike Frysinger.
24146
24147         utimens: fix regression on Solaris
24148         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24149         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24150         can only change fd timestamps via futimesat.  Instead, use an
24151         additional witness macro to avoid BSD bug.
24152         Reported by Jim Meyering.
24153
24154 2009-11-17  Eric Blake  <ebb9@byu.net>
24155
24156         usleep: use it to simplify tests
24157         * modules/stat-time-tests (Depends-on): Add usleep.
24158         (configure.ac): Drop usleep check.
24159         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24160         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24161         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24162         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24163         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24164         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24165         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24166         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24167         Likewise.
24168         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24169         * tests/test-lchown.h (nap): Likewise.
24170         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24171         * tests/test-stat-time.c (nap): Likewise.
24172         * tests/test-utimens-common.h (nap): Update comments.
24173
24174         usleep: new module
24175         * modules/usleep: New file.
24176         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24177         * lib/usleep.c (usleep): Likewise.
24178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24179         * modules/unistd (Makefile.am): Substitute witnesses.
24180         * lib/unistd.in.h (usleep): Add declaration.
24181         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24182         * MODULES.html.sh (Date and time): Likewise.
24183         * modules/usleep-tests (Depends-on): New test.
24184         * tests/test-usleep.c: New file.
24185
24186         chown: work around OpenBSD bug
24187         * lib/chown.c (rpl_chown): Work around the bug.
24188         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24189         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24190         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24191         * modules/chown (Depends-on): Add stdbool.
24192         * modules/lchown (Depends-on): Likewise.
24193         * doc/posix-functions/chown.texi (chown): Document the bug.
24194         * doc/posix-functions/lchown.texi (lchown): Likewise.
24195         * tests/test-lchown.h (test_chown): Relax test.
24196
24197         mkstemp: avoid conflict with C++ keyword template
24198         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24199         * lib/mkostemp.c (mkostemp): Likewise.
24200         * lib/mkostemps.c (mkostemps): Likewise.
24201         * lib/mkstemp.c (mkstemp): Likewise.
24202         * lib/mkstemps.c (mkstemps): Likewise.
24203
24204         xalloc-die-tests: optimize
24205         * tests/test-xalloc-die.sh: Reduce number of processes.
24206
24207 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24208
24209         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24210         patch from ludo@gnu.org (Ludovic Courtès).
24211
24212 2009-11-17  Jim Meyering  <meyering@redhat.com>
24213
24214         version-etc: use proper license string
24215         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24216         * modules/version-etc-fsf: Likewise.
24217
24218 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24219
24220         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24221         printed to stdout.  Deal with EOL differences.
24222
24223 2009-11-17  Eric Blake  <ebb9@byu.net>
24224
24225         unsetenv: work around Solaris bug
24226         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24227         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24228         Reported by Jim Meyering.
24229
24230         vasnprintf: avoid compiler warnings
24231         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24232         variables.
24233         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24234
24235 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24236
24237         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24238         settings since xalloc-die is no longer the self test,
24239         xalloc-die.sh is.
24240
24241 2009-11-17  Jim Meyering  <meyering@redhat.com>
24242
24243         test-xalloc-die.sh: make the code agree with the commit log
24244         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24245         at the end, just in case you happen to have a test-xalloc-die
24246         program in some other PATH directory.
24247
24248         test-xalloc-die.sh: fix a portability bug
24249         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24250         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24251         Otherwise, argv[0] (as often seen in diagnostics) would be too
24252         system-dependent, sometimes with, and sometimes without the leading "./".
24253
24254         version-etc-fsf: relax license to LGPLv3+
24255         * modules/version-etc-fsf (License): Relax license.
24256
24257 2009-11-16  Eric Blake  <ebb9@byu.net>
24258
24259         xalloc-die-tests: avoid printing null pointer
24260         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24261         shell script.
24262         * tests/test-xalloc-die.c (program_name): Declare.
24263         * tests/test-xalloc-die.sh (tmpfiles): New file.
24264
24265         setenv, unsetenv: work around various bugs
24266         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24267         (setenv) [HAVE_SETENV]: Work around bugs.
24268         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24269         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24270         for bugs.
24271         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24272         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24274         * modules/stdlib (Makefile.am): Update substitutions.
24275         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24276         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24277         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24278         * modules/setenv-tests: New test.
24279         * modules/unsetenv-tests: Likewise.
24280         * tests/test-setenv.c: New file.
24281         * tests/test-unsetenv.c: Likewise.
24282
24283 2009-11-16  Jim Meyering  <meyering@redhat.com>
24284
24285         version-etc: relax license to LGPLv3+
24286         * modules/version-etc (License): Relax license.
24287
24288         better AC_REQUIRE expanded-before-required-warning avoidance
24289         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24290         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24291         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24292         which is no longer needed.
24293
24294 2009-11-16  Eric Blake  <ebb9@byu.net>
24295
24296         test-freading: clean up temporary file
24297         * tests/test-freading.c (main): Remove file on success, and use
24298         ASSERT more liberally.
24299         Reported by Jim Meyering.
24300
24301 2009-11-16  Jim Meyering  <meyering@redhat.com>
24302
24303         avoid new AC_REQUIRE expanded-before-required warnings
24304         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24305         merely using it.
24306         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24307         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24308
24309 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24310
24311         * tests/test-xalloc-die.c: New file.
24312         * modules/xalloc-die-tests: New file.
24313         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24314         XFAIL_TESTS so it can be appended by modules.
24315
24316 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24317
24318         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24319         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24320
24321 2009-11-14  Eric Blake  <ebb9@byu.net>
24322
24323         fnmatch: avoid compiler warning
24324         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24325         to silence compiler warning about mismatch signedness in ?:.
24326         Reported by Robert Millan.
24327
24328         intprops: add double-inclusion guard
24329         * lib/intprops.h: Allow idempotent includes.
24330         Suggested by Bruce Korb.
24331
24332         openat: detect Solaris fchownat bug
24333         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24334         penalizing glibc chownat when only lchownat is broken.
24335         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24336         trailing slash bugs.
24337         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24338         * modules/openat-tests (Files): Include more files.
24339         (Depends-on): Add mgetgroups, sleep, stat-time.
24340         (configure.ac): Add additional checks.
24341         (Makefile.am): Build new test.
24342         * tests/test-fchownat.c: New file.
24343
24344         lchown: detect Solaris and FreeBSD bug
24345         * lib/lchown.c (rpl_lchown): Work around bug.
24346         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24348         * modules/unistd (Makefile.am): Populate it.
24349         * lib/unistd.in.h (lchown): Update declaration.
24350         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24351         * modules/lchown-tests: New file.
24352         * tests/test-lchown.h (test_lchown): Likewise.
24353         * tests/test-lchown.c (main): Likewise.
24354
24355         chown: detect Solaris and FreeBSD bug
24356         * lib/chown.c (rpl_chown): Work around bug.
24357         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24358         (gl_PREREQ_CHOWN): Delete.
24359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24360         * modules/unistd (Makefile.am): Populate it.
24361         * lib/unistd.in.h (chown): Update declaration.
24362         * lib/lchown.c (chown): Update client.
24363         * modules/lchown (Depends-on): Add lstat.
24364         * doc/posix-functions/chown.texi (chown): Document the bug.
24365         * doc/posix-functions/getgroups.texi (getgroups): Document
24366         getgroups pitfall.
24367         * modules/chown-tests: New file.
24368         * tests/test-chown.h (test_chown): Likewise.
24369         * tests/test-chown.c (main): Likewise.
24370
24371 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24372
24373         gnulib-tool: correctly detect absence of m4 directories
24374         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24375
24376 2009-11-14  Jim Meyering  <meyering@redhat.com>
24377
24378         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24379         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24380
24381 2009-11-14  John W. Eaton  <jwe@gnu.org>
24382
24383         strftime.h: wrap funtion declaration in extern "C" block
24384         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24385
24386 2009-11-13  Eric Blake  <ebb9@byu.net>
24387
24388         getgroups: avoid compiler warning
24389         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24390
24391         getgroups: work around FreeBSD bug
24392         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24393         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24394         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24395         * tests/test-getgroups.c (main): Fix buffer overrun.
24396
24397         getgroups: avoid compilation failure
24398         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24399         * modules/getgroups (Depends-on): Add stdint.
24400
24401 2009-11-13  Jim Meyering  <meyering@redhat.com>
24402
24403         test-getgroups: avoid compilation failure
24404         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24405
24406 2009-11-13  Eric Blake  <ebb9@byu.net>
24407
24408         mgetgroups: new module, taken from coreutils
24409         * modules/mgetgroups: New file.
24410         * lib/mgetgroups.h: Likewise.
24411         * lib/mgetgroups.c (mgetgroups): Likewise.
24412         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24413         * MODULES.html.sh (Users and groups): Mention it.
24414
24415         getgroups: don't expose GETGROUPS_T to user
24416         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24417         an element at a time if GETGROUPS_T is wrong size.
24418         * lib/getugroups.h (getugroups): Change signature.
24419         * lib/unistd.in.h (getgroups): Likewise.
24420         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24421         signature needs fixing.
24422         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24423         AC_TYPE_GETGROUPS.
24424         * modules/group-member (Depends-on): Add getgroups.
24425         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24426         (group_member): Rely on getgroups replacement.
24427         * lib/getugroups.c (getugroups): Use gid_t.
24428         * tests/test-getgroups.c (main): Likewise.
24429         * NEWS: Mention the signature change.
24430         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24431         problem with signature.
24432         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24433         GETGROUPS_T is still useful for setgroups.
24434
24435         getgroups, getugroups: provide stubs for mingw
24436         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24437         * lib/getugroups.c (getugroups): Likewise.
24438         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24439         function.  Modernize replacement scheme.
24440         (gl_PREREQ_GETGROUPS): Delete.
24441         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24442         * modules/getgroups (configure.ac): Declare witness.
24443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24444         * modules/unistd (Depends-on): Substitute witness.
24445         * lib/unistd.in.h (getgroups): Declare replacement.
24446
24447         getgroups: avoid calling exit
24448         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24449         drop xalloc.
24450         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24451         dependencies.
24452         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24453         exiting, in the rare case of malloc failure.
24454
24455         getgroups: fix logic error
24456         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24457         has more than 20 groups.
24458         * modules/getgroups-tests: New test.
24459         * tests/test-getgroups.c: New file.
24460
24461 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24462
24463         * tests/test-base64.c: Improve.
24464
24465 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24466
24467         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24468         Blake <ebb9@byu.net>.
24469
24470 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24471
24472         * tests/test-xvasprintf.c: Add %s%s related checks.
24473
24474 2009-11-12  Eric Blake  <ebb9@byu.net>
24475
24476         version-etc: match standards.texi style
24477         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24478         and use <> only for URLs.
24479
24480 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24481
24482         fts: do not fail on a submount during traversal
24483         * lib/fts.c (fts_build): Read the stat info again after opening
24484         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24485         Original report at http://bugzilla.redhat.com/501848.
24486
24487 2009-11-12  Jim Meyering  <meyering@redhat.com>
24488
24489         bootstrap: sync from coreutils
24490         * build-aux/bootstrap (bootstrap_epilogue): New function.
24491         Use git_modules_config in one more place.  This make bootstrap's
24492         --gnulib-srcdir option more useful for testing.
24493
24494         bootstrap: generalize autoheader check
24495         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24496         AC_CONFIG_HEADERS.
24497
24498 2009-11-11  Eric Blake  <ebb9@byu.net>
24499
24500         mkfifoat: use new modules for Solaris and BSD bugs
24501         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24502         * lib/mkfifoat.c (mknodat): Split...
24503         * lib/mknodat.c (mknodat): ...into new file.
24504         * modules/mkfifoat (Files): Ship new file.
24505         (Depends-on): Add mkfifo, mknod.
24506         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24507         (Depends-on): Add symlink.
24508         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24509         redundant with test_mkfifo.h.
24510         (do_mkfifoat, do_mknodat): New helpers.
24511
24512         mknod: new module
24513         * modules/mknod: New file.
24514         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24515         * lib/mknod.c (mknod): Likewise.
24516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24517         defaults.
24518         * modules/sys_stat (Makefile.am): Substitute them.
24519         * lib/sys_stat.in.h (mknod): Declare replacement.
24520         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24521         Document it.
24522         * doc/posix-functions/mknod.texi (mknod): Likewise.
24523         * modules/mknod-tests: New test.
24524         * tests/test-mknod.c: Likewise.
24525
24526         mkfifo: new module
24527         * modules/mkfifo: New file.
24528         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24529         * lib/mkfifo.c (mkfifo): Likewise.
24530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24531         defaults.
24532         * modules/sys_stat (Makefile.am): Substitute them.
24533         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24534         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24535         Document it.
24536         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24537         * modules/mkfifo-tests: New test.
24538         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24539         from test-mkfifoat.c.
24540         * tests/test-mkfifo.c: New file.
24541
24542         readlink: detect FreeBSD bug
24543         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24544         slash on symlink.
24545         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24546         * tests/test-readlink.h (test_readlink): Enhance test.
24547
24548         symlink: detect FreeBSD bug
24549         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24550         slash on symlink.
24551         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24552         * tests/test-symlink.h (test_symlink): Enhance test.
24553
24554 2009-11-10  Eric Blake  <ebb9@byu.net>
24555
24556         link: detect FreeBSD bug
24557         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24558         symlink.
24559         * doc/posix-functions/link.texi (link): Document the bug.
24560         * tests/test-link.h (test_link): Enhance test.
24561         * tests/test-linkat.c (main): Update caller.
24562
24563         unlink, remove: detect FreeBSD bug
24564         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24565         slash on symlink.
24566         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24567         * doc/posix-functions/remove.texi (remove): Likewise.
24568         * tests/test-unlink.h (test_unlink): Enhance test.
24569         * tests/test-remove.c (main): Likewise.
24570
24571 2009-11-09  Eric Blake  <ebb9@byu.net>
24572
24573         rename: detect FreeBSD bug
24574         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24575         slash on symlink.
24576         * modules/renameat-tests (Depends-on): Add filenamecat.
24577         * tests/test-rename.h (test_rename): Allow one more errno.
24578         * tests/test-renameat.c (main): Likewise.
24579         * doc/posix-functions/rename.texi (rename): Document the bug.
24580
24581         open: detect FreeBSD bug
24582         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24583         symlink.
24584         * doc/posix-functions/open.texi (open): Document the bug.
24585         * doc/posix-functions/utimes.texi (utimes): Likewise.
24586         * tests/test-open.h (test_open): Add parameters, and test symlink
24587         handling.
24588         * tests/test-open.c (main): Adjust caller.
24589         * tests/test-fcntl-safer.c (main): Likewise.
24590         * modules/open-tests (Depends-on): Add stdbool, symlink.
24591         * modules/fcntl-safer-tests (Depends-on): Likewise.
24592         * tests/test-openat.c (main): Add test-open tests.
24593
24594         stat: detect FreeBSD bug
24595         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24596         symlink.
24597         * doc/posix-functions/stat.texi (stat): Document the bug.
24598         * tests/test-stat.h (test_stat_func): Add argument.
24599         * tests/test-stat.c (main): Adjust caller.
24600         * tests/test-fstatat.c (main): Likewise.
24601         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24602         Reported by Jim Meyering.
24603
24604 2009-11-09  James Youngman  <jay@gnu.org>
24605
24606         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24607         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24608
24609 2009-11-08  Jim Meyering  <meyering@redhat.com>
24610
24611         utimens: remove invalid futimesat call
24612         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24613         It used the file descriptor of the target file as the DIR_FD
24614         parameter and NULL as the file name.  That caused failure with
24615         errno == EFAULT on FreeBSD-8.0-rc2
24616
24617 2009-11-07  Eric Blake  <ebb9@byu.net>
24618
24619         fflush, freadseek: use fseeko, not fseek
24620         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24621         (clear_ungetc_buffer): Avoid potential problems on large files.
24622         * lib/freadseek.c (freadseek): Likewise.
24623         * modules/freadseek (Depends-on): Add fseeko.
24624         * modules/fseek (configure.ac): Set a witness.
24625         * tests/test-fflush.c (main): Use fseeko.
24626         * tests/test-fpurge.c (fseek): Disable link warning.
24627         * tests/test-freadable.c (fseek): Likewise.
24628         * tests/test-freading.c (fseek): Likewise.
24629         * tests/test-fseeko.c (fseek): Likewise.
24630         * tests/test-ftell.c (fseek): Likewise.
24631         * tests/test-ftello.c (fseek): Likewise.
24632         * tests/test-fwritable.c (fseek): Likewise.
24633         * tests/test-fwriting.c (fseek): Likewise.
24634
24635 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24636
24637         * modules/memchr (Depends-on): Drop getpagesize dependency.
24638
24639 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24640
24641         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24642         Reported by Ludovic Courtès.
24643         * build-aux/pmccabe2html: Improve example usage.
24644         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24645
24646 2009-11-06  Jim Meyering  <meyering@redhat.com>
24647
24648         do-release-commit-and-tag: New module.
24649         Automate the release-commit and tag process.
24650         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24651         * modules/do-release-commit-and-tag: New file.
24652         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24653
24654 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24655
24656         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24657         because test-select.c uses inet_pton.
24658
24659 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24660
24661         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24662         GETADDRINFO_LIB.  Bump serial number.
24663         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24664         Suggested by Eric Blake <ebb9@byu.net>.
24665
24666 2009-11-05  Eric Blake  <ebb9@byu.net>
24667
24668         strtod: detect darwin bug
24669         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24670         Reported by Leo Davis.
24671
24672         freopen-safer: new module
24673         * modules/freopen-safer: New module.
24674         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24675         * lib/freopen-safer.c (freopen_safer): New file.
24676         * lib/stdio-safer.h (freopen_safer): New declaration.
24677         * lib/stdio--.h (freopen): New override.
24678         * MODULES.html.sh (File stream based Input/Output): Mention it.
24679         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24680         freopen-safer module.
24681         * doc/posix-functions/stderr.texi (stderr): Likewise.
24682         * doc/posix-functions/stdin.texi (stdin): Likewise.
24683         * doc/posix-functions/stdout.texi (stdout): Likewise.
24684         * modules/freopen-safer-tests: New test.
24685         * tests/test-reopen-safer.c: New file.
24686
24687 2009-11-05  Jim Meyering  <meyering@redhat.com>
24688
24689         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24690         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24691
24692 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24693
24694         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24695
24696 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24697
24698         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24699
24700 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24701
24702         Fix link error.
24703         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24704         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24705
24706 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24707
24708         * tests/test-func.c: Also test value of __func__.
24709
24710 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24711
24712         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24713         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24714
24715 2009-11-05  Bruno Haible  <bruno@clisp.org>
24716
24717         Fix link error.
24718         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24719         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24720         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24721
24722 2009-11-05  Bruno Haible  <bruno@clisp.org>
24723
24724         Tests for module 'inet_pton'.
24725         * modules/inet_pton-tests: New file.
24726         * tests/test-inet_pton.c: New file.
24727
24728 2009-11-05  Bruno Haible  <bruno@clisp.org>
24729
24730         Tests for module 'inet_ntop'.
24731         * modules/inet_ntop-tests: New file.
24732         * tests/test-inet_ntop.c: New file.
24733
24734 2009-11-04  Eric Blake  <ebb9@byu.net>
24735
24736         stdlib-safer: wrap all mkstemp variants
24737         * modules/mkostemp (configure.ac): Set witness.
24738         * modules/mkostemps (configure.ac): Likewise.
24739         * modules/mkstemps (configure.ac): Likewise.
24740         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24741         (mkstemps_safer): Wrap more functions.
24742         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24743         wrapping.
24744         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24745         (mkstemps_safer): Implement the wrappers.
24746
24747         mkstemps, mkostemps: new modules
24748         * modules/mkostemps: New module.
24749         * modules/mkstemps: Likewise.
24750         * lib/mkostemps.c (mkostemps): New file.
24751         * lib/mkstemps.c (mkstemps): Likewise.
24752         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24753         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24755         * modules/stdlib (Makefile.am): Substitute them.
24756         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24757         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24758         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24759         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24760         * MODULES.html.sh (File system functions): Mention them.
24761
24762         tempname: resync from glibc
24763         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24764         same values for __GT_FILE as glibc.  Abort even when assertions
24765         are disabled.
24766         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24767         match its value otherwise.  Allow idempotent inclusion.
24768         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24769         * lib/mkostemp.c (mkostemp): Likewise.
24770         * lib/mkstemp.c (mkstemp): Likewise.
24771         * lib/tmpfile.c (tmpfile): Likewise.
24772         * NEWS: Document this.
24773
24774         utimens: fix use of futimens on older Linux
24775         * lib/utimens.c (fdutimens): Use updated, rather than original,
24776         timespec to avoid bug in older Linux kernel.
24777         Reported by Simon Josefsson.
24778
24779 2009-11-04  Bruno Haible  <bruno@clisp.org>
24780
24781         Make num_processors more flexible and consistent.
24782         * lib/nproc.h (enum nproc_query): New type.
24783         (num_processors): Add a 'query' argument.
24784         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24785         (num_processors): Add a 'query' argument. Test the value of the
24786         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24787         mingw, count the number of CPUs available for the current process.
24788         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24789         Check for sched_getaffinity and sched_getaffinity_np.
24790         * modules/nproc (Depends-on): Add c-ctype, extensions.
24791         * NEWS: Mention the change.
24792
24793 2009-11-03  Bruno Haible  <bruno@clisp.org>
24794
24795         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24796
24797 2009-11-03  Jim Meyering  <meyering@redhat.com>
24798
24799         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24800         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24801         if it is defined.
24802
24803 2009-11-02  Eric Blake  <ebb9@byu.net>
24804
24805         mktime, timegm: share common declaration
24806         * lib/mktime-internal.h: New file.
24807         * lib/mktime.c: Use it rather than open-coding a declaration.
24808         * lib/timegm.c: Likewise.
24809         * modules/mktime (Files): Ship it.
24810         * modules/timegm (Files): Likewise.
24811         Suggested by Bruno Haible.
24812
24813         test-update-copyright: update test to match script changes
24814         * tests/test-update-copyright.sh: Avoid hard-coding perl
24815         location.  Don't update *.bak created by earlier runs.
24816
24817 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24818             Simon Josefsson  <simon@josefsson.org>
24819             Bruno Haible  <bruno@clisp.org>
24820
24821         Fix link error on Solaris 8.
24822         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24823         also in libnsl. Define also INET_PTON_LIB.
24824         * modules/inet_pton (Link): New section.
24825
24826 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24827             Bruno Haible  <bruno@clisp.org>
24828
24829         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24830         * modules/inet_ntop (Link): New section.
24831         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24832
24833 2009-11-02  Eric Blake  <ebb9@byu.net>
24834
24835         maint: avoid compiler warnings in m4 macros
24836         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24837         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24838
24839 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24840
24841         * m4/pmccabe2html.m4: Remove file.
24842         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24843         function.  Change maintainer.
24844         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24845         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24846         Courtès).
24847
24848 2009-10-31  Eric Blake  <ebb9@byu.net>
24849
24850         fseeko: fix m4 regression
24851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24852         regression from 2009-10-27.
24853         Reported by Ralf Wildenhues.
24854
24855 2009-10-31  Jim Meyering  <meyering@redhat.com>
24856
24857         inttostr: aesthetics and improved (compile-time) safety
24858         Define inttype_is_signed rather than inttype_is_unsigned,
24859         since the sole use is via "#if inttype_is_signed".
24860         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24861         inttype_is_unsigned.
24862         * lib/offtostr.c (inttype_is_signed): Likewise.
24863         * lib/uinttostr.c (inttype_is_signed): Likewise.
24864         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24865         * lib/inttostr.c (inttostr): Use verify to cross-check the
24866         inttype_is_signed value and the signedness of the actual type.
24867         * modules/inttostr (Depends-on): Add verify.
24868
24869 2009-10-30  Eric Blake  <ebb9@byu.net>
24870
24871         build: avoid compiler warnings
24872         * lib/fchmodat.c (lchmod): Mark unused variables.
24873         * lib/getopt.c (_getopt_initialize): Likewise.
24874         * lib/mktime.c (__mktime_internal): Provide prototype.
24875         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24876         older gcc that do not understand #pragma GCC diagnostic.
24877         * lib/uinttostr.c (inttype_is_unsigned): Define.
24878         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24879
24880 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24881
24882         stat: fix compilation on AIX
24883         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24884         only see struct stat64.
24885
24886 2009-10-30  Eric Blake  <ebb9@byu.net>
24887
24888         exclude: make more robust
24889         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24890         rather than masking a coding bug.
24891         Suggested by Bruno Haible.
24892
24893 2009-10-30  Jim Meyering  <meyering@redhat.com>
24894
24895         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24896         Rather than putting #!/usr/bin/perl on the first line,
24897         start with a variant of what's recommended by "man perlrun" that
24898         invokes the first "perl" program from your shell's search path.
24899         * build-aux/gitlog-to-changelog: Replace #!... as above.
24900         Add a "Local Variables" perl mode setting.
24901         Prompted by a patch from Ludovic Courtès.
24902         Improved by Eric Blake.
24903         * build-aux/useless-if-before-free: Likewise.
24904         * build-aux/announce-gen: Likewise.
24905         * build-aux/update-copyright: Likewise.
24906
24907 2009-10-29  Eric Blake  <ebb9@byu.net>
24908
24909         filenamecat-lgpl: adjust clients
24910         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24911         filenamecat.
24912         * modules/renameat (Depends-on): Likewise.
24913
24914         filenamecat: split into filenamecat-lgpl
24915         * modules/filenamecat-lgpl: New module.
24916         * modules/filenamecat (Files): Move library-safe files into
24917         filenamecat-lgpl.
24918         (Depends-on): Add filenamecat-lgpl.
24919         (configure.ac): Declare witness.
24920         * lib/filenamecat.h (file_name_concat): Only declare when using
24921         GPL module.
24922         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24923         Move...
24924         * lib/filenamecat-lgpl.c: ...into new file.
24925         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24926         (gl_FILE_NAME_CONCAT): Use it.
24927         * MODULES.html.sh (File system functions): Mention new module.
24928
24929         argp: avoid memory leak
24930         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24931         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24932         base_name, since the latter malloc()s and can call exit().
24933         Leak introduced 2006-07-03.
24934
24935         dirname-lgpl: adjust clients that don't need full dirname
24936         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24937         * modules/filenamecat (Depends-on): Likewise.
24938         * modules/linkat (Depends-on): Likewise.
24939         * modules/mkancesdirs (Depends-on): Likewise.
24940         * modules/mkdir (Depends-on): Likewise.
24941         * modules/openat (Depends-on): Likewise.
24942         * modules/savewd (Depends-on): Likewise.
24943         * modules/rename (Depends-on): Likewise.
24944         (License): Relax license.
24945         * modules/mkdir-tests (Depends-on): Drop progname.
24946         (Makefile.am): Delete unneeded LDADD.
24947         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24948
24949         dirname: split into dirname-lgpl
24950         * modules/dirname-lgpl: New module.
24951         * modules/dirname (Files): Move library-safe files into
24952         dirname-lgpl.
24953         (Depends-on): Add dirname-lgpl.
24954         (configure.ac): Declare witness.
24955         * modules/double-slash-root (License): Relax license.
24956         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24957         module.
24958         * lib/dirname.c (dir_len, mdir_name): Move...
24959         * lib/dirname-lgpl.c: ...into new file.
24960         * lib/basename.c (last_component, base_len): Move...
24961         * lib/basename-lgpl.c: ...into new file.
24962         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24963         (gl_DIRNAME): Use it.
24964         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24965         Mention new module.
24966         * modules/dirname-tests (Depends-on): Add progname.
24967         * tests/test-dirname.c (program_name): Delete.
24968
24969         mkdir: make safe for libraries
24970         * modules/mkdir (Depends-on): Drop xalloc.
24971         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24972         exit.
24973
24974         tests: avoid some compiler warnings
24975         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24976         literals.
24977         * tests/test-memchr.c (main): Avoid type mismatch.
24978         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24979         * tests/test-base64.c (main): Likewise.
24980         * tests/test-getdelim.c (main): Likewise.
24981         * tests/test-gethostname.c (main): Likewise.
24982         * tests/test-getline.c (main): Likewise.
24983         * tests/test-netinet_in.c (main): Likewise.
24984         * tests/test-select.c (open_server_socket, main): Likewise.
24985         * tests/test-select-stdin.c (main): Likewise.
24986         * tests/test-sockets.c (main): Likewise.
24987         * tests/test-strsignal.c (main): Likewise.
24988         * tests/test-sys_select.c (main): Likewise.
24989         * tests/test-sys_socket.c (main): Likewise.
24990         * tests/test-u64.c (main): Likewise.
24991         * tests/test-xfprintf-posix.c (main): Likewise.
24992         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24993
24994         sockets: avoid compiler warning
24995         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24996
24997         maint: detect usage(1) and other suspicious exits
24998         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24999
25000 2009-10-29  Jim Meyering  <meyering@redhat.com>
25001
25002         timespec: long-to-int truncation could make timespec_cmp malfunction
25003         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25004         a multiple of 2^32 nanoseconds as no difference.
25005
25006 2009-10-28  Jim Meyering  <meyering@redhat.com>
25007
25008         fprintftime: wrap macro code argument in "do {...} while(0)"
25009         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25010         cpy macro must be a statement that can be followed by a semicolon.
25011         Now that the else clause contains a comment and is hence longer
25012         than one line, I require curly braces.  That in turn requires
25013         that we wrap this code block in the standard do...while(0).
25014
25015         fprintftime: remove stray semicolon from previous change
25016         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25017
25018         fprintftime: avoid a warning about ignored fwrite return value
25019         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25020         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25021         that is unsafe.
25022         * modules/fprintftime (Depends-on): Add ignore-value.
25023
25024         exclude: avoid an unwarranted warning
25025         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25026
25027 2009-10-27  Eric Blake  <ebb9@byu.net>
25028
25029         fseek: avoid compilation failure when fflush is replaced
25030         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25031         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25032         module is in use.
25033         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25034         module is not in use; since REPLACE_FSEEK worked otherwise.
25035         (GNULIB_FTELLO): Likewise for ftell.
25036         Reported by Ian Beckwith and others.
25037
25038 2009-10-27  Bruno Haible  <bruno@clisp.org>
25039
25040         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25041         Reported by Jim Meyering.
25042
25043 2009-10-27  Jim Meyering  <jim@meyering.net>
25044             Bruno Haible  <bruno@clisp.org>
25045
25046         Avoid warning despite dropping the return value of fwrite.
25047         * lib/unicodeio.c: Include ignore-value.h.
25048         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25049         * modules/unicodeio (Depends-on): Add ignore-value.
25050
25051 2009-10-26  Eric Blake  <ebb9@byu.net>
25052
25053         areadlinkat: fix fallback path
25054         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25055         pointer and zero.
25056
25057 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25058
25059         Use a better IO block size for modern systems
25060         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25061         * lib/md2.c: Likewise.
25062         * lib/md4.c: Likewise.
25063         * lib/md5.c: Likewise.
25064         * lib/sha1.c: Likewise.
25065         * lib/sha256.c: Likewise.
25066         * lib/sha512.c: Likewise.
25067
25068 2009-10-22  Eric Blake  <ebb9@byu.net>
25069
25070         tests: avoid several compiler warnings
25071         * tests/test-getcwd.c (main): Avoid buffer underflow.
25072         * tests/test-getdate.c (main): String literals are not safe with
25073         putenv, so use setenv.  Declare unused argument.
25074         * modules/getdate-tests (Depends-on): Add setenv.
25075         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25076         problems with string literals in char *.
25077         * tests/test-hash.c (main): Avoid shadowing declaration.
25078         (insert_new): Treat string literals as char const *.
25079         * tests/test-getopt.h (test_getopt): Likewise.
25080         (getopt_loop): Alter types to minimize casting elsewhere.
25081         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25082         (test_getopt_long_posix): Likewise.
25083         (do_getopt_long): Add wrapper to minimize casting.
25084         * tests/test-atexit.c (clear_temp_file): Use void.
25085         * tests/test-areadlink-with-size.c (main): Declare unused
25086         arguments.
25087         * tests/test-areadlink.c (main): Likewise.
25088         * tests/test-areadlinkat-with-size.c (main): Likewise.
25089         * tests/test-areadlinkat.c (main): Likewise.
25090         * tests/test-canonicalize-lgpl.c (main): Likewise.
25091         * tests/test-canonicalize.c (main): Likewise.
25092         * tests/test-dirent-safer.c (main): Likewise.
25093         * tests/test-dirname.c (main): Likewise.
25094         * tests/test-dup2.c (main): Likewise.
25095         * tests/test-fchdir.c (main): Likewise.
25096         * tests/test-fcntl-h.c (main): Likewise.
25097         * tests/test-fcntl-safer.c (main): Likewise.
25098         * tests/test-fdopendir.c (main): Likewise.
25099         * tests/test-fdutimensat.c (main): Likewise.
25100         * tests/test-fflush.c (main): Likewise.
25101         * tests/test-filenamecat.c (main): Likewise.
25102         * tests/test-filevercmp.c (main): Likewise.
25103         * tests/test-fopen-safer.c (main): Likewise.
25104         * tests/test-fopen.c (main): Likewise.
25105         * tests/test-fpending.c (main): Likewise.
25106         * tests/test-fpurge.c (main): Likewise.
25107         * tests/test-freading.c (main): Likewise.
25108         * tests/test-fstatat.c (main): Likewise.
25109         * tests/test-fsync.c (main): Likewise.
25110         * tests/test-futimens.c (main): Likewise.
25111         * tests/test-getndelim2.c (main): Likewise.
25112         * tests/test-gettimeofday.c (main): Likewise.
25113         * tests/test-getopt.c (main): Likewise.
25114         * tests/test-i-ring.c (main): Likewise.
25115         * tests/test-inttypes.c (main): Likewise.
25116         * tests/test-link.c (main): Likewise.
25117         * tests/test-lstat.c (main): Likewise.
25118         * tests/test-math.c (main): Likewise.
25119         * tests/test-md5.c (main): Likewise.
25120         * tests/test-memchr2.c (main): Likewise.
25121         * tests/test-memrchr.c (main): Likewise.
25122         * tests/test-mkdir.c (main): Likewise.
25123         * tests/test-mkdirat.c (main): Likewise.
25124         * tests/test-mkfifoat.c (main): Likewise.
25125         * tests/test-open.c (main): Likewise.
25126         * tests/test-openat-safer.c (main): Likewise.
25127         * tests/test-openat.c (main): Likewise.
25128         * tests/test-quotearg.c (main): Likewise.
25129         * tests/test-rawmemchr.c (main): Likewise.
25130         * tests/test-readlink.c (main): Likewise.
25131         * tests/test-remove.c (main): Likewise.
25132         * tests/test-rename.c (main): Likewise.
25133         * tests/test-renameat.c (main): Likewise.
25134         * tests/test-rmdir.c (main): Likewise.
25135         * tests/test-sha1.c (main): Likewise.
25136         * tests/test-signal.c (main): Likewise.
25137         * tests/test-sigaction.c (main): Likewise.
25138         * tests/test-stat.c (main): Likewise.
25139         * tests/test-stat-time.c (main): Likewise.
25140         * tests/test-stddef.c (main): Likewise.
25141         * tests/test-stdint.c (main): Likewise.
25142         * tests/test-stdio.c (main): Likewise.
25143         * tests/test-stdlib.c (main): Likewise.
25144         * tests/test-strchrnul.c (main): Likewise.
25145         * tests/test-strerror.c (main): Likewise.
25146         * tests/test-string.c (main): Likewise.
25147         * tests/test-strtod.c (main): Likewise.
25148         * tests/test-strverscmp.c (main): Likewise.
25149         * tests/test-symlink.c (main): Likewise.
25150         * tests/test-symlinkat.c (main): Likewise.
25151         * tests/test-sys_stat.c (main): Likewise.
25152         * tests/test-sys_time.c (main): Likewise.
25153         * tests/test-time.c (main): Likewise.
25154         * tests/test-unistd.c (main): Likewise.
25155         * tests/test-unlink.c (main): Likewise.
25156         * tests/test-unlinkat.c (main): Likewise.
25157         * tests/test-utimens.c (main): Likewise.
25158         * tests/test-utimensat.c (main): Likewise.
25159         * tests/test-version-etc.c (main): Likewise.
25160         * tests/test-wchar.c (main): Likewise.
25161         * tests/test-wctype.c (main): Likewise.
25162         * tests/test-xprintf-posix.c (main): Likewise.
25163         * tests/test-posixtm.c (main): Likewise.
25164         (STREQ): Delete unused macro.
25165         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25166         shadowed variables.
25167         * tests/test-memchr.c (main): Likewise.
25168
25169 2009-10-21  Eric Blake  <ebb9@byu.net>
25170
25171         areadlinkat: avoid failure on older glibc
25172         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25173         rather than mis-comparing 0 against FUNC_RESULT of char*.
25174
25175 2009-10-21  Bruno Haible  <bruno@clisp.org>
25176
25177         * modules/stpncpy (License): Relicense under LGPLv2+.
25178         Reported by David Lutterkort <lutter@redhat.com>.
25179
25180 2009-10-20  Eric Blake  <ebb9@byu.net>
25181
25182         utimensat: work around Solaris 9 bug
25183         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25184         has trailing slash bugs.
25185         * tests/test-lutimens.h (test_lutimens): Enhance test.
25186         * tests/test-utimens.h (test_utimens): Likewise.
25187         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25188         * doc/posix-functions/utimes.texi (utimes): Likewise.
25189         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25190         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25191         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25192         * doc/posix-functions/futimens.texi (futimens): Likewise.
25193
25194         fdutimensat: new module
25195         * modules/fdutimensat: New file.
25196         * lib/fdutimensat.c (fdutimensat): Likewise.
25197         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25198         * MODULES.html.sh (File system functions): Mention module.
25199         * modules/fdutimensat-tests: New test.
25200         * tests/test-fdutimensat.c: Likewise.
25201
25202         doc: regenerate INSTALL
25203         * doc/INSTALL: Reflect recent autoconf update.
25204         * doc/INSTALL.ISO: Likewise.
25205         * doc/INSTALL.UTF-8: Likewise.
25206
25207 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25208
25209         acl: warn if ACL support is not detected
25210         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25211
25212 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25213
25214         * lib/nproc.h: Add extern "C" block for C++.
25215
25216 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25217             Bruno Haible  <bruno@clisp.org>
25218
25219         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25220         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25221         * doc/posix-functions/isalpha.texi: Likewise.
25222         * doc/posix-functions/isblank.texi: Likewise.
25223         * doc/posix-functions/iscntrl.texi: Likewise.
25224         * doc/posix-functions/isdigit.texi: Likewise.
25225         * doc/posix-functions/isgraph.texi: Likewise.
25226         * doc/posix-functions/islower.texi: Likewise.
25227         * doc/posix-functions/isprint.texi: Likewise.
25228         * doc/posix-functions/ispunct.texi: Likewise.
25229         * doc/posix-functions/isspace.texi: Likewise.
25230         * doc/posix-functions/isupper.texi: Likewise.
25231         * doc/posix-functions/isxdigit.texi: Likewise.
25232
25233 2009-10-18  Bruno Haible  <bruno@clisp.org>
25234
25235         Tests for module 'isblank'.
25236         * modules/isblank-tests: New file.
25237         * tests/test-isblank.c: New file.
25238
25239         New module 'isblank'.
25240         * lib/isblank.c: New file.
25241         * m4/isblank.m4: New file.
25242         * modules/isblank: New file.
25243         * doc/posix-functions/isblank.texi: Mention the new module.
25244
25245 2009-10-18  Bruno Haible  <bruno@clisp.org>
25246
25247         New module 'ctype'.
25248         * lib/ctype.in.h: New file.
25249         * m4/ctype.m4: New file.
25250         * modules/ctype: New file.
25251         * doc/posix-headers/ctype.texi: Mention the new module.
25252
25253 2009-10-18  Jim Meyering  <meyering@redhat.com>
25254
25255         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25256         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25257         right after its initialization, rather than farther down.
25258         Keeping these in close proximity makes it easier to ensure
25259         that each such variable is initialized.  E.g.,
25260
25261             LIB_CLOCK_GETTIME=
25262             AC_SUBST([LIB_CLOCK_GETTIME])
25263
25264         This change also increments these serial numbers.
25265         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25266         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25268
25269 2009-10-18  Bruno Haible  <bruno@clisp.org>
25270
25271         Don't let environment variables perturb build.
25272         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25273         (gl_PREREQ_GETHRXTIME): ... not here.
25274
25275 2009-10-18  Bruno Haible  <bruno@clisp.org>
25276
25277         Avoid symlink attack in localcharset module.
25278         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25279         (O_NOFOLLOW): Define fallback.
25280         (get_charset_aliases): Don't open the file if it is a symbolic link.
25281         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25282         gl_FCNTL_H.
25283         (gl_FCNTL_H): Require it.
25284         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25285         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25286         Reported by Fergal Glynn <fglynn@veracode.com>.
25287
25288 2009-10-18  Bruno Haible  <bruno@clisp.org>
25289
25290         Implement nproc for mingw.
25291         * lib/nproc.c: Include <windows.h>
25292         (num_processors): On native Windows platforms, try GetSystemInfo.
25293
25294 2009-10-18  Bruno Haible  <bruno@clisp.org>
25295
25296         Implement nproc for IRIX.
25297         * lib/nproc.c: Include <sys/sysmp.h>.
25298         (num_processors): On IRIX systems, try sysmp.
25299         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25300
25301 2009-10-18  Bruno Haible  <bruno@clisp.org>
25302
25303         Implement nproc for HP-UX.
25304         * lib/nproc.c: Include <sys/pstat.h>
25305         (num_processors): On HP-UX systems, try pstat_getdynamic.
25306         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25307         pstat_getdynamic.
25308
25309 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25310             Bruno Haible  <bruno@clisp.org>
25311
25312         Implement nproc for NetBSD, OpenBSD.
25313         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25314         (ARRAY_SIZE): New macro.
25315         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25316         * m4/nproc.m4: New file.
25317         * modules/nproc (Files): Add m4/nproc.m4.
25318         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25319         (Makefile.am): Instead, augment lib_SOURCES.
25320
25321 2009-10-18  Bruno Haible  <bruno@clisp.org>
25322
25323         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25324         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25325         sys/param.h.
25326
25327 2009-10-16  Eric Blake  <ebb9@byu.net>
25328
25329         utimensat: new module
25330         * modules/utimensat: New file.
25331         * lib/utimensat.c (utimensat): Likewise.
25332         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25333         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25334         so we can work around Linux bugs.
25335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25336         * modules/sys_stat (Makefile.am): Substitute them.
25337         * lib/sys_stat.in.h (utimensat): Declare it.
25338         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25339         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25340         * modules/utimensat-tests: New test.
25341         * tests/test-utimensat.c: Likewise.
25342
25343         utimens: let lutimens work on non-symlinks
25344         * lib/utimens.c (lutimens): Fall back to utimens rather than
25345         failing with ENOSYS, when file is not a symlink.
25346         (utimens): Reduce redirection.
25347         * tests/test-lutimens.h (test_lutimens): Update test to cover
25348         non-symlinks.
25349         * tests/test-utimens.h (test_utimens): Update test to cover
25350         symlinks.
25351         * tests/test-utimens.c (main): Update caller.
25352
25353         utimens: cache whether utimensat syscall works
25354         * lib/utimens.c (utimensat_works_really): New cache variable.
25355         (fdutimens, lutimens): Use it to avoid failing syscall.
25356
25357         test-stat-time, test-utimens: improve portability
25358         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25359         ext4 on alpha, and for cygwin.
25360         * tests/test-utimens-common.h: New file.
25361         (nap): Factor delays into single function.
25362         * tests/test-lutimens.h (test_lutimens): Use new header.
25363         * tests/test-futimens.h (test_futimens): Likewise.
25364         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25365         timestamps to occur from same machine, as was done previously for
25366         test_utimens.
25367         * modules/utimens-tests (Files): Ship new file.
25368         * modules/futimens-tests (Files): Likewise.
25369         Reported in part by Jim Meyering.
25370
25371         sys_stat: sort replacement declarations
25372         * lib/sys_stat.in.h: Sort declarations.
25373         * lib/futimens.c (futimens): Fix typo.
25374
25375 2009-10-15  Jim Meyering  <meyering@redhat.com>
25376
25377         don't let environment settings perturb build
25378         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25379         could cause a configure-time and/or build-time malfunction.
25380         Typically, a configure-time function-in-library test is performed
25381         via code like this:
25382
25383           LIB_VAR=
25384           AC_SUBST([LIB_VAR])
25385           prefix_saved_LIBS=$LIBS
25386             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25387                        [test "$ac_cv_search_FUNC" = "none required" ||
25388                         LIB_VAR=$ac_cv_search_FUNC])
25389           LIBS=$prefix_saved_LIBS
25390
25391         However, in each of the files affected by this change, the LIB_VAR=
25392         initialization was omitted.  Thus, when set in the environment, its
25393         value would propagate into generated Makefiles when FUNC is not found
25394         in LIB_NAME.
25395         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25396         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25398
25399 2009-10-14  Eric Blake  <ebb9@byu.net>
25400
25401         fchdir: avoid infinite recursion in mingw
25402         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25403         recursing.
25404
25405         test-stat-time: port to mingw
25406         * tests/test-stat-time.c (force_unlink): Return a value.
25407         (test_ctime) [W32]: Fix compilation error.
25408         (nap): Don't call usleep with too large an argument.  Use
25409         force_unlink.
25410         * doc/pastposix-functions/usleep.texi (usleep): Document the
25411         portability issue.
25412
25413 2009-10-13  Jim Meyering  <meyering@redhat.com>
25414
25415         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25416         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25417         * modules/pipe-filter-ii: Likewise.
25418         * modules/sys_socket-tests: Likewise.
25419         * modules/tsearch-tests: Likewise.
25420         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25421         (check): Depend on it.
25422
25423 2009-10-12  Eric Blake  <ebb9@byu.net>
25424
25425         utimens-tests: port to NFS file systems
25426         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25427         comparisons to avoid spurious failures from timestamp drift
25428         between NFS machines.
25429
25430 2009-10-12  Eric Blake  <ebb9@byu.net>
25431
25432         stat-time-tests: minor cleanups
25433         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25434         * tests/test-stat-time.c (nap): Separate assignment from call.
25435         Suggested by Paolo Bonzini and Bruno Haible.
25436
25437         sys_stat: guarantee struct timespec
25438         * lib/sys_stat.in.h (includes): Always include <time.h>
25439         * modules/sys_stat (Depends-on): Add time.
25440         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25441         mode_t permission values.
25442         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25443         get at subsecond timestamps.
25444
25445 2009-10-10  Eric Blake  <ebb9@byu.net>
25446
25447         futimens: new module
25448         * modules/futimens: New file.
25449         * lib/futimens.c (futimens): Likewise.
25450         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25451         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25452         we can work around Linux bugs.
25453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25454         * modules/sys_stat (Makefile.am): Substitute them.
25455         * lib/sys_stat.in.h (futimens): Declare it.
25456         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25457         * doc/posix-functions/futimens.texi (futimens): Likewise.
25458         * modules/futimens-tests: New test.
25459         * tests/test-futimens.c: Likewise.
25460
25461         utimens: introduce fdutimens
25462         * lib/utimens.h (fdutimens): New prototype.
25463         * lib/utimens.c (gl_futimens): Move guts...
25464         (fdutimens): ...to new interface.
25465         * tests/test-utimens.c (do_fdutimens): Use it.
25466
25467         utimens: add UTIME_NOW and UTIME_OMIT support
25468         * lib/utimens.c (validate_timespec, update_timespec): New helper
25469         functions.
25470         (gl_futimens, lutimens): Use them.
25471         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25472         stdbool, sys_stat.
25473         (Link): Mention resulting library dependency.
25474         * modules/utimecmp (Link): Likewise.
25475         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25476         (Makefile.am): Pick up library dependency.
25477         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25478         definition.
25479         * tests/test-sys_stat.c: Test the definitions.
25480         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25481         * NEWS: Document library dependency.
25482
25483         utimecmp: support symlink timestamps
25484         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25485         hashing when possible.  Use pathconf when available.
25486         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25487         * modules/utimecmp (Depends-on): Add lstat.
25488
25489         utimens: add lutimens interface
25490         * lib/utimens.c (lutimens): New function.
25491         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25492         * lib/utimens.h (lutimens): Declare new interface.
25493         * tests/test-utimens.c (main): Enhance test.
25494         * tests/test-lutimens.h (test_lutimens): New file.
25495         * modules/utimens-tests (Files): Distribute it.
25496         (Depends-on): Add symlink.
25497         (configure.ac): Check for usleep.
25498
25499         utimens: validate futimens usage
25500         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25501         fewer syscalls on failure later on.  Avoid compiler warning on
25502         mingw.
25503         * modules/utimens (Depends-on): Add dup2.
25504
25505         utimens: add test
25506         * modules/utimens-tests: New test.
25507         * tests/test-utimens.h: New file.
25508         * tests/test-futimens.h: Likewise.
25509         * tests/test-utimens.c: Likewise.
25510
25511         doc: mention timestamp portability issues
25512         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25513         instead.
25514         * doc/posix-functions/utime.texi (utime): Likewise.
25515         * doc/posix-functions/utimes.texi (utimes): Likewise.
25516         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25517         instead.
25518         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25519         module.
25520         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25521         Mention weakness with symlink timestamps.
25522         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25523         to utimensat/futimens instead.
25524         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25525
25526         test-dup2: enhance test
25527         * tests/test-dup2.c (main): Also check AT_FDCWD.
25528
25529         test-stat-time: avoid more spurious failures
25530         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25531         xfs; and avoid race if the two timestamps cross quantization edge.
25532
25533         relocatable: prefer 'file system' over 'filesystem'
25534         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25535         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25536         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25537         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25538         * lib/relocatable.c (compute_curr_prefix): Likewise.
25539
25540 2009-10-10  Jim Meyering  <meyering@redhat.com>
25541
25542         stat-time-tests: check for the usleep function
25543         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25544
25545 2009-10-10  Bruno Haible  <bruno@clisp.org>
25546
25547         * modules/xnanosleep: Put the Link section after the Include section.
25548
25549 2009-10-09  Eric Blake  <ebb9@byu.net>
25550
25551         dup2: work around FreeBSD 6.1 bug
25552         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25553         * doc/posix-functions/dup2.texi (dup2): Document it.
25554         Reported by Nelson H. F. Beebe and Jim Meyering.
25555
25556         test-stat-time: port to buggy NFS clients
25557         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25558         (test_ctime): Also skip test if mtime and ctime are skewed.
25559
25560         maint: prefer 'file system' over 'filesystem'
25561         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25562         * doc/posix-functions/lstat.texi (lstat): Likewise.
25563         * lib/file-has-acl.c (file_has_acl): Likewise.
25564         * lib/fwriteerror.c [TEST]: Likewise.
25565         * tests/test-areadlink.h (test_areadlink): Likewise.
25566         * tests/test-areadlinkat-with-size.c (main): Likewise.
25567         * tests/test-areadlinkat.c (main): Likewise.
25568         * tests/test-canonicalize-lgpl.c (main): Likewise.
25569         * tests/test-canonicalize.c (main): Likewise.
25570         * tests/test-fstatat.c (main): Likewise.
25571         * tests/test-linkat.c (main): Likewise.
25572         * tests/test-lstat.h (test_lstat_func): Likewise.
25573         * tests/test-mkdir.h (test_mkdir): Likewise.
25574         * tests/test-readlink.h (test_readlink): Likewise.
25575         * tests/test-remove.c (main): Likewise.
25576         * tests/test-rename.h (test_rename): Likewise.
25577         * tests/test-renameat.c (main): Likewise.
25578         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25579         * tests/test-symlink.h (test_symlink): Likewise.
25580         * tests/test-symlinkat.c (main): Likewise.
25581         * tests/test-unlink.h (test_unlink_func): Likewise.
25582         * tests/test-unlinkat.c (main): Likewise.
25583
25584         maint: make realtime library usage explicit
25585         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25586         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25587         * modules/settime (Link): Likewise.
25588         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25589
25590         test-stat-time: speed up execution
25591         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25592         warning on mingw.
25593         (nap): New helper function.
25594         (prepare_test): Use it to reduce sleep time.
25595         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25596         execution.
25597         * modules/stat-time-tests (configure.ac): Check for usleep.
25598
25599 2009-10-09  Jim Meyering  <meyering@redhat.com>
25600
25601         selinux-h: always use getfilecon wrappers
25602         * lib/getfilecon.c: New file.
25603         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25604         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25605         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25606         (fgetfilecon): Provide a stub.
25607         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25608         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25609         file unconditionally.
25610         When <selinux/selinux.h> is found, arrange to use wrappers.
25611         * modules/selinux-h (Files): Add getfilecon.c.
25612         (Makefile.am): Substitute include-next-related bits
25613         into the now-always-generated selinux/selinux.h file.
25614         * doc/glibc-functions/lgetfilecon.texi: New file.
25615         * doc/glibc-functions/fgetfilecon.texi: New file.
25616         * doc/glibc-functions/getfilecon.texi: New file.
25617         * doc/glibc-functions/getfilecon-desc.texi: New file.
25618         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25619         which to pull in the new files.
25620         * MODULES.html.sh (Misc): Add selinux-h.
25621
25622 2009-10-08  Jim Meyering  <meyering@redhat.com>
25623
25624         unistd: fix comment typo
25625         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25626
25627 2009-10-08  Eric Blake  <ebb9@byu.net>
25628
25629         areadlink: use SIZE_MAX consistently
25630         * modules/areadlink (Depends-on): Add stdint.
25631         * modules/areadlink-with-size (Depends-on): Likewise.
25632         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25633         gives NULL; drop sys/types, since unistd gives size_t; and add
25634         stdint for SIZE_MAX.
25635         (SIZE_MAX): Rely on headers.
25636         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25637         and add stdint.
25638         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25639         (SIZE_MAX): Likewise.
25640         (INITIAL_BUF_SIZE): Turn into enum.
25641         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25642
25643 2009-10-08  Jim Meyering  <meyering@redhat.com>
25644
25645         areadlinkat: avoid compilation failure
25646         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25647         Fix typo in comment.
25648
25649 2009-10-07  Eric Blake  <ebb9@byu.net>
25650
25651         areadlinkat-with-size: new module
25652         * modules/areadlinkat-with-size: New module.
25653         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25654         * lib/areadlink.h (areadlinkat): Declare it.
25655         * MODULES.html.sh (File system functions): Mention it.
25656         * modules/areadlinkat-with-size-tests: New test.
25657         * tests/test-areadlinkat-with-size.c: New file.
25658
25659         xreadlinkat: new module
25660         * modules/xreadlinkat: New module.
25661         * lib/xreadlinkat.c (xreadlinkat): New file.
25662         * lib/xreadlink.h (xreadlinkat): Declare it.
25663         * MODULES.html.sh (File system functions): Mention it.
25664
25665         areadlinkat: new module
25666         * lib/at-func.c (FUNC_FAIL): New define.
25667         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25668         * modules/areadlinkat: New module.
25669         * lib/linkat.c (areadlinkat): Move...
25670         * lib/areadlinkat.c (areadlinkat): ...to new file.
25671         * lib/areadlink.h (areadlinkat): Declare it.
25672         * modules/linkat (Depends-on): Add areadlinkat.
25673         * MODULES.html.sh (File system functions): Mention it.
25674         * modules/areadlinkat-tests: New test.
25675         * tests/test-areadlinkat.c: New file.
25676
25677         areadlink, areadlink-with-size: add tests
25678         * modules/areadlink-tests: New test.
25679         * modules/areadlink-with-size-tests: Likewise.
25680         * tests/test-areadlink.h: New file.
25681         * tests/test-areadlink.c: Likewise.
25682         * tests/test-areadlink-with-size.c: Likewise.
25683
25684         maint: minor cleanups
25685         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25686         _UNUSED_PARAMETER_ instead.
25687         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25688         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25689         * modules/linkat-tests (Files): Distribute test-link.h.
25690
25691         openat, utimens: whitespace cleanup
25692         * lib/openat.c: Prefer space throughout, rather than mix of 8
25693         spaces vs. tabs.
25694         * lib/at-func.c: Likewise.
25695         * lib/utimens.c: Likewise.
25696
25697         openat: avoid using wrong fd
25698         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25699         working directory chooses same fd.
25700         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25701
25702         mkdir, mkdirat: fix cygwin 1.5.x bug
25703         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25704         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25705         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25706         bug.
25707         (gl_PREREQ_MKDIR): Delete unused macro.
25708         * modules/mkdir (Files): Track file rename.
25709         (configure.ac): Update macro name.
25710         * modules/openat (Depends-on): Add mkdir.
25711         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25712
25713         mkdir, mkdirat: add tests
25714         * modules/mkdir-tests: New test.
25715         * tests/test-mkdir.h: New file.
25716         * tests/test-mkdir.c: Likewise.
25717         * tests/test-mkdirat.c: Likewise.
25718         * modules/openat-tests (Files): Add new files.
25719         (Makefile.am): Run new test.
25720
25721 2009-10-06  Eric Blake  <ebb9@byu.net>
25722
25723         doc: tweak *at function documentation
25724         * doc/posix-functions/faccessat.texi (faccessat): Mention
25725         known issue with replacement.
25726         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25727         * doc/posix-functions/linkat.texi (linkat): Likewise.
25728         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25729         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25730         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25731         * doc/posix-functions/renameat.texi (renameat): Likewise.
25732         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25733
25734         openat: fix GNU/Hurd bug in unlinkat
25735         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25736         broken.
25737         * doc/posix-functions/unlink.texi (unlink): Document this.
25738         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25739
25740         fdopendir: fix GNU/Hurd bug
25741         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25742         allowing non-directory fds.
25743         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25744         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25745         * modules/dirent (Makefile.am): Substitute it.
25746         * lib/dirent.in.h (fdopendir): Declare replacement.
25747         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25748         * tests/test-fdopendir.c (main): Test something other than
25749         /dev/null, since on Hurd that behaves like a directory.
25750
25751         test-symlink: port to GNU/Hurd
25752         * tests/test-symlink.h (test_symlink): Relax expected errno.
25753
25754         doc: tweak more cygwin information
25755         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25756         now compatible with glibc.
25757         * doc/posix-functions/getopt.texi (getopt): Likewise.
25758
25759         getopt-gnu: add another test
25760         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25761         guarantee behavior relied on by m4.
25762         * tests/test-getopt.c (main): Use it.
25763         * modules/getopt-posix-tests (Depends-on): Add setenv.
25764         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25765
25766         getopt: fix compilation on darwin
25767         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25768         include.
25769         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25770         Reported by Ludovic Courtès.
25771
25772 2009-10-06  Bruno Haible  <bruno@clisp.org>
25773
25774         * modules/size_max (Description): Discourage its use.
25775         Reported by Simon Josefsson.
25776
25777 2009-10-06  Jim Meyering  <meyering@redhat.com>
25778
25779         linkat: avoid compilation failure
25780         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25781
25782 2009-10-05  Eric Blake  <ebb9@byu.net>
25783
25784         linkat: support Linux 2.6.17
25785         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25786         linkat on Linux, but allow cache variable override.
25787         * lib/linkat.c (rpl_linkat): Define override.
25788         * modules/linkat (Depends-on): Add symlinkat.
25789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25790         * modules/unistd (Makefile.am): Substitute it.
25791         * lib/unistd.in.h (linkat): Declare replacement.
25792         Reported by Pádraig Brady.
25793
25794         quotearg: port test to systems with C.UTF-8 locale
25795         * tests/test-quotearg.c (struct result_strings): Add another
25796         member, differentiating between C.ASCII and C.UTF-8 handling.
25797         (compare_strings): Add parameter.
25798         (main): Adjust all callers.
25799
25800         getopt: avoid clash with FreeBSD _getopt_internal
25801         * lib/getopt.in.h (_getopt_internal): Override the name.
25802         * lib/getopt_int.h (includes): Pick up any overrides.
25803         Reported by Reuben Thomas.
25804
25805         hash: allow C89 compilation
25806         * lib/hash.c (check_tuning): Move declaration before statement.
25807         Reported by Reuben Thomas.
25808
25809 2009-10-05  Karl Berry  <karl@gnu.org>
25810
25811         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25812
25813 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25814             Bruno Haible  <bruno@clisp.org>
25815
25816         * lib/uname.c (uname): Use a table-driven algorithm to compute
25817         Windows NT versions.
25818
25819 2009-10-04  Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25822         program_invocation_short_name.
25823         * modules/progname (configure.ac): Test for presence of
25824         program_invocation_short_name.
25825         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25826
25827 2009-10-04  Bruno Haible  <bruno@clisp.org>
25828
25829         * lib/progname.c (set_program_name): Fix comment.
25830         Reported by Jim Meyering.
25831
25832 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25833             Bruno Haible  <bruno@clisp.org>
25834
25835         * lib/uname.c: Include <string.h>.
25836         (uname): Do only one call to GetVersionEx in the common case.
25837
25838 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25839             Bruno Haible  <bruno@clisp.org>
25840
25841         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25842         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25843         (uname): Add support for Windows CE and various non-x86 CPU types.
25844
25845 2009-10-03  Bruno Haible  <bruno@clisp.org>
25846
25847         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25848         invocation to tests/configure.ac.
25849         Reported by Ian Beckwith <ianb@erislabs.net>.
25850
25851 2009-10-02  Eric Blake  <ebb9@byu.net>
25852
25853         fchdir: avoid compiler warning
25854         * lib/fchdir.c (canonicalize_file_name)
25855         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25856
25857         test-open: support mingw errno values
25858         * tests/test-open.h (test_open): Relax test.
25859         * tests/test-fopen.h (test_fopen): Likewise.
25860         * tests/test-openat-safer.c (main): Likewise.
25861
25862         open: fix opening directory on mingw
25863         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25864
25865         test-open: on GNU/Hurd, /dev/null is a directory
25866         * tests/test-fopen.h (main): Rename...
25867         (test_fopen): ...to this.  Use a guaranteed non-directory when
25868         confirming open behavior on trailing slash.
25869         * tests/test-openat-safer.c (main): Likewise.
25870         * tests/test-open.h (main): Likewise....
25871         (test_open): ...to this.
25872         * tests/test-fopen.c (main): Adjust caller.
25873         * tests/test-fopen-safer.c (main): Likewise.
25874         * tests/test-open.c (main): Likewise.
25875         * tests/test-fcntl-safer.c (main): Likewise.
25876         Reported by Samuel Thibault.
25877
25878         rename, fchdir: don't ignore chdir failure
25879         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25880         * lib/rename.c (rpl_rename) [W32]: Likewise.
25881         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25882         an empty destination directory if source cannot be renamed,
25883         although there is still possibility for failure.
25884         * doc/posix-functions/rename.texi (rename): Document the race.
25885         Reported by Jim Meyering.
25886
25887         maint: cleanup whitespace in recent commits
25888         * lib/rename.c (rpl_rename): Remove tabs.
25889         * tests/test-link.h (test_link): Likewise.
25890         * lib/fchdir.c (get_name): Likewise.
25891         Reported by Jim Meyering.
25892
25893 2009-10-02  Ben Pfaff  <blp@gnu.org>
25894
25895         relocatable-prog-wrapper: Add missing dependency on
25896         double-slash-root.
25897         * modules/relocatable-prog-wrapper: Add dependency.
25898         Reported by Ian Beckwith <ianb@erislabs.net>.
25899
25900 2009-10-02  Eric Blake  <ebb9@byu.net>
25901
25902         renameat: fix Solaris bugs
25903         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25904         needed fixing.
25905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25906         * modules/stdio (Makefile.am): Substitute it.
25907         * lib/stdio.in.h (renameat): Declare replacement.
25908         * lib/renameat.c (rpl_renameat): Implement fix.
25909
25910         renameat: new module
25911         * modules/renameat: New file.
25912         * lib/renameat.c (renameat): Likewise.
25913         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25915         * modules/stdio (Makefile.am): Substitute them.
25916         * lib/stdio.in.h (renameat): Declare it.
25917         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25918         * doc/posix-functions/renameat.texi (renameat): Likewise.
25919         * modules/renameat-tests: New test.
25920         * tests/test-renameat.c: Likewise.
25921
25922         rename: fix mingw bugs
25923         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25924         directory overwrite bugs.
25925
25926         rename: fix another cygwin 1.5 bug
25927         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25928         checks.
25929         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25930         unnecessary cygwin workarounds.  Also work around bug with moving
25931         full directory onto an empty one.
25932         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25933
25934         rename-dest-slash: merge into rename module
25935         * modules/rename-dest-slash (Status): Mark obsolete.
25936         (Depends-on): Add rename.
25937         (Files): Let rename do it all.
25938         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25939         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25940         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25941         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25942         * lib/rename.c (rpl_rename): Update comments.
25943
25944         rename: fix cygwin 1.5.x bugs
25945         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25946         * lib/rename.c (rpl_rename): Work around them.
25947         * modules/rename (Depends-on): Add same-inode.
25948
25949         rename: fix Solaris 10 bug
25950         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25951         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25952         was the only bug.
25953
25954         rename: fix Solaris 9 bug
25955         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25956         on non-directory.  Avoid calling exit.
25957         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25958         strdup.
25959         * modules/rename-tests (Depends-on): Drop lstat.
25960         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25961         (gl_PREREQ_RENAME): Delete unused macro.
25962
25963         rename-dest-slash: fix NetBSD bug
25964         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25965         links.
25966         * modules/rename-dest-slash (Depends-on): Add same-inode.
25967
25968         rename-tests: new test, exposes several platform bugs
25969         * modules/rename-tests: New file.
25970         * tests/test-rename.h: Likewise.
25971         * tests/test-rename.c: Likewise.
25972         * doc/posix-functions/rename.texi (rename): Improve documentation,
25973         including bugs that will eventually be fixed in gnulib.
25974
25975 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25976
25977         * lib/uname.c: Include <stdlib.h>
25978         (uname): Assume version info is available.
25979
25980 2009-10-02  Jim Meyering  <meyering@redhat.com>
25981
25982         gnu-web-doc-update: correct --help output
25983         * build-aux/gnu-web-doc-update: Make --help output relevant.
25984
25985         gnu-web-doc-update: add standard options
25986         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25987
25988         gnu-web-doc-update: New module.
25989         Use this script to automatically update the on-line web documentation
25990         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25991         * modules/gnu-web-doc-update: New file, from coreutils.
25992         * build-aux/gnu-web-doc-update: New script.
25993
25994 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25995
25996         link: LoadLibrary is not needed.
25997         * lib/link.c: Use GetModuleHandle.
25998
25999 2009-10-01  Eric Blake  <ebb9@byu.net>
26000
26001         getopt: bump serial number
26002         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26003         change.
26004
26005         tests: tighten link, rmdir, and remove tests
26006         * tests/test-link.h (includes): No need to use <config.h> here.
26007         Clean up if directory hard link was created, otherwise test for
26008         trailing '.'.
26009         * tests/test-linkat.c (main): Simplify.
26010         * tests/test-remove.c (main): Enhance test for trailing '.'.
26011         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26012
26013 2009-10-01  Jim Meyering  <meyering@redhat.com>
26014
26015         maint.mk: requiring "make major" was annoying, for a "minor" release.
26016         What is intended is "stable", to contrast with alpha and beta,
26017         so require "make stable", not "make major".
26018         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26019         (get_tool_versions): Likewise.
26020         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26021
26022 2009-09-30  Ben Pfaff  <blp@gnu.org>
26023
26024         Fix broken build of replacement for Windows tmpfile().
26025         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26026         flags argument added along with the 'mkostemp' module.
26027
26028 2009-09-28  Bruno Haible  <bruno@clisp.org>
26029
26030         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26031         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26032         to 'remove_elt'.
26033         (gl_list_remove): Update.
26034         * lib/gl_list.c (gl_list_remove): Update.
26035         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26036         to 'remove_elt'.
26037         (gl_oset_remove): Update.
26038         * lib/gl_list.c (gl_oset_remove): Update.
26039         Reported by Eric Blake.
26040
26041 2009-09-28  Eric Blake  <ebb9@byu.net>
26042
26043         doc: mention yet more cygwin 1.7 status
26044         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26045         cygwin.
26046         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26047         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26048
26049         argp: fix test failure
26050         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26051         that are not upper-case.  Pass correct range to tolower.
26052
26053 2009-09-27  Jim Meyering  <meyering@redhat.com>
26054
26055         test-yesno: work around sparc-dash here-document infelicity
26056         Without this change, the literal \177 byte in a here document
26057         would make dash 0.5.5.1-3 access uninitialized memory.
26058         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26059         Instead, use a marker, "@", and filter through tr to create the desired
26060         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26061
26062 2009-09-27  Bruno Haible  <bruno@clisp.org>
26063
26064         Disable untested support for new flavours of ACLs on AIX.
26065         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26066         progress.
26067         * lib/set-mode-acl.c (qset_acl): Likewise.
26068
26069 2008-12-07  Bruno Haible  <bruno@clisp.org>
26070
26071         Add support for new flavours of ACLs on AIX. (Untested.)
26072         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26073         (file_has_acl): Add support for newer AIX.
26074         * lib/set-mode-acl.c (qset_acl): Likewise.
26075         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26076         Rainer Tammer <tammer@tammer.net>.
26077
26078 2009-09-26  Eric Blake  <ebb9@byu.net>
26079
26080         argp: fix compilation of getopt
26081         * lib/getopt.in.h (includes): Use different guard than glibc.
26082         Reported by Sergey Poznyakoff.
26083
26084         doc: mention more cygwin 1.7 status
26085         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26086         bug.
26087         * doc/posix-functions/execl.texi (execl): Likewise.
26088         * doc/posix-functions/execle.texi (execle): Likewise.
26089         * doc/posix-functions/execlp.texi (execlp): Likewise.
26090         * doc/posix-functions/execv.texi (execv): Likewise.
26091         * doc/posix-functions/execve.texi (execve): Likewise.
26092         * doc/posix-functions/execvp.texi (execvp): Likewise.
26093         * doc/glibc-functions/canonicalize_file_name.texi
26094         (canonicalize_file_name): Cygwin 1.7 now provides this.
26095         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26096         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26097         on AT_SYMLINK_NOFOLLOW.
26098
26099 2009-09-24  Eric Blake  <ebb9@byu.net>
26100
26101         test-linkat: make test more robust
26102         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26103
26104         getopt: fix inclusion guards for cygwin
26105         * modules/getopt-posix (Depends-on): Add include-next.
26106         (Makefile.am): Substitute more items in replacement header.
26107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26108         <getopt.h>.
26109         * lib/getopt.in.h (includes): Use split inclusion guard, and
26110         prefer <getopt.h> over include <unistd.h> when one is present.
26111         (option): Also override name of 'struct option'.
26112
26113         same-inode: revert prior change; it is not yet ready
26114         * NEWS: Undo mention of this change.
26115         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26116         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26117         * lib/cycle-check.c (cycle_check): Likewise.
26118         * lib/same.c (same_name): Likewise.
26119         * lib/at-func2.c (at_func2): Likewise.
26120
26121 2009-09-23  Eric Blake  <ebb9@byu.net>
26122
26123         linkat: new module
26124         * modules/linkat: New file.
26125         * lib/at-func2.c (at_func2): Likewise.
26126         * lib/linkat.c (linkat): Likewise.
26127         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26128         * lib/openat-priv.h (at_func2): Add declaration.
26129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26130         * modules/unistd (Makefile.am): Substitute them.
26131         * lib/unistd.in.h (linkat): Declare it.
26132         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26133         * doc/posix-functions/linkat.texi (linkat): Likewise.
26134         * doc/posix-functions/link.texi (link): Tweak wording.
26135         * tests/test-link.c (main): Move guts...
26136         * tests/test-link.h (test_link): ...into new file.
26137         * modules/linkat-tests: New test.
26138         * tests/test-linkat.c: Likewise.
26139         * modules/link-tests (Files): Ship new file.
26140         (Depends-on): Add stdbool.
26141
26142         dirname: add library-safe mdir_name
26143         * lib/dirname.h (mdir_name): New prototype.
26144         * lib/dirname.c (dir_name): Move guts...
26145         (mdir_name): ...to new function that avoids xalloc_die.
26146
26147         fchdir: another mingw fix
26148         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26149         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26150         on mingw (where it has not yet been ported), and make it optional
26151         elsewhere.
26152         (_gl_register_fd): Use it.
26153
26154         same-inode: make SAME_INODE tri-state, to port to mingw
26155         * NEWS: Mention this change.
26156         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26157         st_ino always being 0.
26158         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26159         * lib/cycle-check.c (cycle_check): Likewise.
26160         * lib/same.c (same_name): Likewise.
26161
26162         lstat: avoid mingw compilation error
26163         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26164         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26165         lstat ourselves.
26166         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26167         was adequate.
26168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26169         the checks for lstat.
26170         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26171
26172         link: fix test failure on Solaris 9
26173         * lib/link.c (rpl_link): Don't assume link will catch bogus
26174         trailing slash on source.
26175
26176         test-symlinkat: enhance test
26177         * tests/test-readlink.c (main): Move guts...
26178         * tests/test-readlink.h (test_readlink): ...into new file.
26179         * tests/test-symlink.c (main): Move guts...
26180         * tests/test-symlink.h (test_symlink): ...into new file.
26181         * tests/test-symlinkat.c (main): Use new files for further
26182         coverage.
26183         (do_symlink, do_readlink): New helper functions.
26184         * modules/symlink-tests (Files): Ship new file.
26185         (Depends-on): Add stdbool.
26186         * modules/readlink-tests (Files): Ship new file.
26187         (Depends-on): Add stdbool.
26188         * modules/symlinkat-tests (Files): Use new files.
26189
26190 2009-09-23  Eric Blake  <ebb9@byu.net>
26191
26192         readlink: document portability issue with symlink length
26193         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26194         systems have bogus st_size on symlinks, and mention the
26195         areadlink-with-size module.
26196         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26197         * doc/posix-functions/readlink.texi (readlink): Mention the
26198         areadlink module, and ERANGE failure.
26199         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26200         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26201
26202         readlink: fix Solaris 9 bug with trailing slash
26203         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26204         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26205         * doc/posix-functions/readlink.texi (readlink): Document this.
26206         * modules/readlink-tests: New test.
26207         * tests/test-readlink.c: Likewise.
26208
26209         readlink: fix cygwin 1.5.x bug with return type
26210         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26211         * lib/unistd.in.h (readlink): Use ssize_t.
26212         * lib/readlink.c (readlink): Likewise.
26213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26214         * modules/unistd (Makefile.am): Substitute it.
26215         * lib/unistd.in.h (readlink): Declare replacement.
26216         * doc/posix-functions/readlink.texi (readlink): Document this.
26217
26218         symlink: use throughout gnulib
26219         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26220         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26221         symlink is not used.
26222         * modules/symlinkat (Depends-on): Add symlink.
26223         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26224         * modules/canonicalize-tests (Depends-on): Likewise.
26225         * modules/lstat-tests (Depends-on): Likewise.
26226         * modules/openat-tests (Depends-on): Likewise.
26227         * modules/remove-tests (Depends-on): Likewise.
26228         * modules/rmdir-tests (Depends-on): Likewise.
26229         * modules/unlink-tests (Depends-on): Likewise.
26230         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26231         * tests/test-canonicalize.c (symlink): Likewise.
26232         * tests/test-fstatat.c (symlink): Likewise.
26233         * tests/test-lstat.c (symlink): Likewise.
26234         * tests/test-remove.c (symlink): Likewise.
26235         * tests/test-rmdir.c (symlink): Likewise.
26236         * tests/test-unlink.c (symlink): Likewise.
26237         * tests/test-unlinkat.c (symlink): Likewise.
26238
26239         symlink: new module, for Solaris 9 bug
26240         * modules/symlink: New file.
26241         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26242         * lib/symlink.c: Likewise.
26243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26244         * modules/unistd (Makefile.am): Substitute them.
26245         * lib/unistd.in.h (symlink): Declare replacement.
26246         * MODULES.html.sh (File system functions): Mention it.
26247         * doc/posix-functions/symlink.texi (symlink): Likewise.
26248         * modules/symlink-tests: New test.
26249         * tests/test-symlink.c: Likewise.
26250
26251 2009-09-23  Bruno Haible  <bruno@clisp.org>
26252
26253         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26254         when needed.
26255         Test case: gnulib-tool --import --with-tests atexit inttypes.
26256         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26257
26258 2009-09-23  Bruno Haible  <bruno@clisp.org>
26259
26260         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26261         subcommand, not in a subshell.
26262
26263 2009-09-22  Eric Blake  <ebb9@byu.net>
26264
26265         unistd: sort replacement declarations
26266         * lib/unistd.in.h: Sort declarations.
26267
26268         open, openat: minor optimization
26269         * lib/open.c (open): If open succeeded, len is non-zero.
26270         * lib/openat.c (rpl_openat): Likewise.
26271
26272         link-follow: ensure correct result
26273         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26274         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26275         distinguish between possible failures.
26276
26277 2009-09-21  Eric Blake  <ebb9@byu.net>
26278
26279         fts: avoid compiler warning
26280         * lib/fts.c (dirent_inode_sort_may_be_useful)
26281         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26282
26283 2009-09-19  Bruno Haible  <bruno@clisp.org>
26284
26285         * lib/progreloc.c (canonicalize_file_name): New declaration.
26286
26287 2009-09-19  Eric Blake  <ebb9@byu.net>
26288
26289         link: fix quoting
26290         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26291
26292         openat: fix openat bugs on Solaris 9
26293         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26294         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26295         * modules/openat (Depends-on): Add open.
26296         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26297         * modules/fcntl-h (Makefile.am): Substitute it.
26298         * lib/fcntl.in.h (openat): Declare replacement.
26299         * doc/posix-functions/openat.texi (openat): Document this.
26300
26301         openat: move fstatat and unlinkat into correct files
26302         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26303         compiled.
26304         * lib/openat.c (fstatat, unlinkat): Move...
26305         * lib/fstatat.c (fstatat): ...into correct files.
26306         * lib/unlinkat.c (unlinkat): Likewise.
26307
26308         openat: fix unlinkat bugs on Solaris 9
26309         * lib/unlinkat.c (unlinkat): New file.
26310         * modules/openat (Depends-on): Add unlink.
26311         (Files): Distribute it.
26312         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26313         trailing slash behavior is broken.
26314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26315         * modules/unistd (Makefile.am): Substitute it.
26316         * lib/unistd.in.h (unlinkat): Declare replacement.
26317         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26318
26319         openat: fix fstatat bugs on Solaris 9
26320         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26321         stat.
26322         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26323
26324         test-unlinkat: enhance test, to expose Solaris 9 bug
26325         * tests/test-unlink.c (main): Factor guts...
26326         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26327         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26328         * tests/test-rmdir.c (main): Adjust caller.
26329         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26330         (unlinker): New helper function.
26331         (rmdirat): Enhance check.
26332         * modules/rmdir-tests (Depends-on): Add stdbool.
26333         * modules/unlink-tests (Depends-on): Likewise.
26334         (Files): Add test-unlink.h.
26335         * modules/openat-tests (Files): Likewise.
26336         (Depends-on): Add unlinkdir.
26337
26338         test-fstatat: new test, to expose Solaris 9 bugs
26339         * tests/test-stat.c (main): Factor guts...
26340         * tests/test-stat.h (test_stat_func): ...into new file.
26341         * tests/test-lstat.c (main): Factor guts...
26342         * tests/test-lstat.h (test_lstat_func): ...into new file.
26343         * tests/test-fstatat.c: New file.
26344         * modules/stat-tests (Files): Add test-stat.h.
26345         * modules/lstat-tests (Files): Add test-lstat.h.
26346         (Depends-on): Add stdbool.
26347         * modules/openat-tests (Depends-on): Add pathmax.
26348         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26349         (Makefile.am): Run new test.
26350
26351         remove: new module, for mingw and Solaris 9 bugs
26352         * modules/remove: New file.
26353         * lib/remove.c: Likewise.
26354         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26356         * modules/stdio (Makefile.am): Use them.
26357         * lib/stdio.in.h (remove): Declare replacement.
26358         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26359         * doc/posix-functions/remove.texi (remove): Likewise.
26360         * modules/remove-tests: New test.
26361         * tests/test-remove.c: Likewise.
26362
26363         unlink: new module, for Solaris 9 bug
26364         * modules/unlink: New file.
26365         * lib/unlink.c: Likewise.
26366         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26368         * modules/unistd (Makefile.am): Use them.
26369         * lib/unistd.in.h (stat): Declare replacement.
26370         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26371         * doc/posix-functions/unlink.texi (unlink): Likewise.
26372         * modules/unlink-tests: New test.
26373         * tests/test-unlink.c: Likewise.
26374
26375         lstat: fix Solaris 9 bug
26376         * lib/lstat.c (lstat): Also check for trailing slash on
26377         non-symlink, non-directories.  Use stat module to simplify logic.
26378         * doc/posix-functions/lstat.texi (lstat): Document it.
26379         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26380         (configure.ac): Check for symlink.
26381         * tests/test-lstat.c (main): Add more tests.
26382
26383         stat: add as dependency to other modules
26384         * modules/chown (Depends-on): Add stat.
26385         * modules/euidaccess (Depends-on): Likewise.
26386         * modules/fchdir (Depends-on): Likewise.
26387         * modules/isdir (Depends-on): Likewise.
26388         * modules/link (Depends-on): Likewise.
26389         * modules/lstat (Depends-on): Likewise.
26390         * modules/mkdir-p (Depends-on): Likewise.
26391         * modules/modechange (Depends-on): Likewise.
26392         * modules/open (Depends-on): Likewise.
26393         * modules/readlink (Depends-on): Likewise.
26394         * modules/same (Depends-on): Likewise.
26395
26396         stat: fix Solaris 9 bug
26397         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26398         slash.
26399         * lib/stat.c (rpl_stat): Work around it.
26400         * doc/posix-functions/stat.texi (stat): Update documentation.
26401
26402         stat: new module, for mingw bug
26403         * modules/stat: New file.
26404         * lib/stat.c: Likewise.
26405         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26406         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26407         * modules/sys_stat (Makefile.am): Use them.
26408         * lib/sys_stat.in.h (stat): Declare replacement.
26409         * lib/openat.c (fstatat): Deal with lstat and stat being function
26410         macros.
26411         * modules/openat (Depends-on): Add inline.
26412         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26413         * doc/posix-functions/stat.texi (stat): Likewise.
26414         * modules/stat-tests: New test.
26415         * tests/test-stat.c: Likewise.
26416
26417 2009-09-19  Jim Meyering  <meyering@redhat.com>
26418
26419         syntax-check: detect unnecessary inclusion of canonicalize.h
26420         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26421
26422 2009-09-19  Eric Blake  <ebb9@byu.net>
26423
26424         canonicalize-lgpl: adjust clients to use correct header
26425         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26426         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26427         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26428         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26429         * lib/progreloc.c (includes): Likewise.
26430
26431 2009-09-19  Jim Meyering  <meyering@redhat.com>
26432
26433         test-posixtm.c: correct a comment
26434         * tests/test-posixtm.c: Correct first-line comment.
26435         Spotted by Eric Blake.
26436
26437 2009-09-16  Jim Meyering  <meyering@redhat.com>
26438
26439         posixtm-tests: make T const-correct; add a test case
26440         * tests/test-posixtm.c (T): Declare const.
26441         Add a test for -(2^31+1).
26442         Remove useless can-succeed-only-in-2002 test.
26443
26444         posixtm-tests: adjust the sole failing test
26445         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26446         expected output matches what mktime now produces.  Cross-checked via
26447         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26448
26449         posixtm: move #ifdef'd tests into a new module
26450         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26451         * tests/test-posixtm.c: ... this new file.
26452         * modules/posixtm-tests: New module.
26453
26454 2009-09-19  Eric Blake  <ebb9@byu.net>
26455
26456         openat: simplify use of at-func.c
26457         * lib/at-func.c (includes): Include prerequisites here, to
26458         simplify requirements on client files.
26459         * lib/openat-priv.h: Add double-inclusion guard.
26460         * lib/faccessat.c (includes): Simplify.
26461         * lib/fchmodat.c (includes): Likewise.
26462         * lib/fchownat.c (includes): Likewise.
26463         * lib/mkdirat.c (includes): Likewise.
26464         * lib/mkfifoat.c (includes): Likewise.
26465         * lib/symlinkat.c (includes): Likewise.
26466
26467         openat: allow return of fd 0
26468         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26469         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26470         unistd-safer.
26471         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26472         <fcntl.h>; this module does not leak fds.
26473         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26474         must be allowed to return 0, leaving openat_safer to add the
26475         safety.
26476         (openat_permissive): Avoid writing to just-opened fd 2 if
26477         restoring the current directory fails.
26478         * lib/openat-die.c (openat_restore_fail): Add comment.
26479         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26480         (save_cwd): Guarantee safe fd, but without use of open_safer.
26481         * tests/test-openat.c: New test.
26482         * modules/openat-tests (Files, Makefile.am): Distribute and build
26483         new file.
26484
26485         relocatable-prog-wrapper: fix build
26486         * modules/relocatable-prog-wrapper (Files): Update name of
26487         canonicalize m4 file, broken on 2009-09-17.
26488         Reported by emad hajjar <aleppos@hotmail.com>.
26489
26490 2009-09-19  Bruno Haible  <bruno@clisp.org>
26491
26492         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26493         * lib/safe-alloc.c: Likewise.
26494         Reported by Ian Beckwith <ianb@erislabs.net>.
26495
26496 2009-09-18  Bruno Haible  <bruno@clisp.org>
26497
26498         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26499         Reported by <erobles@sensacd.com.mx>.
26500
26501 2009-09-17  Eric Blake  <ebb9@byu.net>
26502
26503         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26504         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26505         slashes when checking if last component is missing.
26506         * tests/test-canonicalize.c (main): Test this.
26507
26508         canonicalize, canonicalize-lgpl: honor // if distinct from /
26509         * modules/canonicalize (Files): Add double-slash-root.m4.
26510         * modules/canonicalize-lgpl (Files): Likewise.
26511         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26512         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26513         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26514         fallback definition.
26515         (canonicalize_filename_mode): Use it to protect //.
26516         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26517         (__realpath): Likewise.
26518         * tests/test-canonicalize.c (main): Test this.
26519         * tests/test-canonicalize-lgpl.c (main): Likewise.
26520         * modules/canonicalize-tests (Depends-on): Add same-inode.
26521         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26522
26523         canonicalize-lgpl: fix glibc bug with trailing slash
26524         * m4/canonicalize-lgpl.m4: Move contents...
26525         * m4/canonicalize.m4: ...here.
26526         (gl_CANONICALIZE_LGPL): Factor realpath check...
26527         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26528         glibc 2.3.5 bug, fixed 2005-04-27.
26529         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26530         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26531         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26532         * modules/canonicalize-lgpl (Files): Manage file rename.
26533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26534         * modules/stdlib (Makefile.am): Substitute witness.
26535         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26536         is needed.
26537         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26538         replacement is required.
26539         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26540         * doc/glibc-functions/canonicalize_file_name.texi
26541         (canonicalize_file_name): Document this.
26542         * doc/posix-functions/realpath.texi (realpath): Likewise.
26543
26544         canonicalize-lgpl: reject non-directory with trailing slash
26545         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26546         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26547         catches failures in glibc 2.3.5.
26548         * tests/test-canonicalize.c (main): Likewise.
26549
26550         canonicalize-lgpl: use native realpath if it works
26551         * lib/canonicalize-lgpl.c (realpath): Guard with
26552         FUNC_REALPATH_WORKS.
26553         * lib/stdlib.in.h (realpath): Make declaration optional based on
26554         HAVE_REALPATH.
26555         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26556         native realpath works.
26557         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26558         * modules/stdlib (Makefile.am): Substitute witness.
26559
26560         canonicalize, canonicalize-lgpl: use <stdlib.h>
26561         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26562         (Include): Mention <stdlib.h>.
26563         (configure.ac): Mention functions we provide.
26564         * modules/canonicalize (configure.ac): Likewise.
26565         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26566         realpath if canonicalize_file_name is missing.
26567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26568         * modules/stdlib (Makefile.am): Substitute witnesses.
26569         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26570         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26571         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26572         * NEWS: Document this.
26573         * doc/glibc-functions/canonicalize_file_name.texi
26574         (canonicalize_file_name): Likewise.
26575         * doc/posix-functions/realpath.texi (realpath): Likewise.
26576         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26577
26578         test-canonicalize: consolidate into single C program
26579         * tests/test-canonicalize.sh: Delete; move setup into...
26580         * tests/test-canonicalize.c (main): ...the program, making it
26581         easier to run in debugger.  Add some tests.
26582         * modules/canonicalize-tests (Files): Remove unused file.
26583         (Depends-on): Add progname.
26584         (configure.ac, Makefile.am): Simplify.
26585
26586         test-canonicalize-lgpl: consolidate into single C program
26587         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26588         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26589         easier to run in debugger.  Add some tests.
26590         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26591         (configure.ac, Makefile.am): Simplify.
26592
26593         canonicalize: avoid resolvepath
26594         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26595         unnecessary checks.
26596         * lib/canonicalize.c (includes): Simplify.
26597         (canonicalize_file_name): Drop resolvepath implementation.
26598         * modules/canonicalize (Depends-on): Drop filenamecat.
26599
26600         canonicalize: don't lose errno
26601         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26602         over calls to free.
26603
26604         canonicalize: simplify errno handling
26605         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26606         assignment.
26607
26608         canonicalize, canonicalize-lgpl: update module dependencies
26609         * modules/canonicalize (Depends-on): Add extensions, lstat,
26610         pathmax, stdlib.
26611         (Files): Drop pathmax.h.
26612         (configure.ac): Adjust macro name.
26613         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26614         lstat, stdlib, sys_stat.
26615         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26616         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26617         extensions.
26618         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26619         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26620         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26621         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26622         declaration, if available.
26623         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26624         we can rely on the readlink module.
26625         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26626         (includes): Use <unistd.h> unconditionally.
26627
26628 2009-09-17  Eric Blake  <ebb9@byu.net>
26629
26630         maint: make Include sections of modules consistent
26631         * modules/alloca: Use only header name; no need to list #include.
26632         * modules/alloca-opt: Likewise.
26633         * modules/arpa_inet: Likewise.
26634         * modules/canon-host: Likewise.
26635         * modules/configmake: Likewise.
26636         * modules/dirent: Likewise.
26637         * modules/eealloc: Likewise.
26638         * modules/environ: Likewise.
26639         * modules/fchdir: Likewise.
26640         * modules/fcntl: Likewise.
26641         * modules/fcntl-h: Likewise.
26642         * modules/gethrxtime: Likewise.
26643         * modules/gettime: Likewise.
26644         * modules/ignore-value: Likewise.
26645         * modules/inet_ntop: Likewise.
26646         * modules/inet_pton: Likewise.
26647         * modules/inttypes: Likewise.
26648         * modules/isnand-nolibm: Likewise.
26649         * modules/isnanf-nolibm: Likewise.
26650         * modules/mbchar: Likewise.
26651         * modules/mbfile: Likewise.
26652         * modules/mbiter: Likewise.
26653         * modules/mbuiter: Likewise.
26654         * modules/netdb: Likewise.
26655         * modules/netinet_in: Likewise.
26656         * modules/nproc: Likewise.
26657         * modules/pagealign_alloc: Likewise.
26658         * modules/poll: Likewise.
26659         * modules/printf-frexp: Likewise.
26660         * modules/pthread: Likewise.
26661         * modules/putenv: Likewise.
26662         * modules/random_r: Likewise.
26663         * modules/relocatable-prog: Likewise.
26664         * modules/search: Likewise.
26665         * modules/select: Likewise.
26666         * modules/selinux-h: Likewise.
26667         * modules/settime: Likewise.
26668         * modules/signal: Likewise.
26669         * modules/size_max: Likewise.
26670         * modules/socklen: Likewise.
26671         * modules/ssize_t: Likewise.
26672         * modules/stdarg: Likewise.
26673         * modules/stdbool: Likewise.
26674         * modules/stddef: Likewise.
26675         * modules/stdint: Likewise.
26676         * modules/stdio: Likewise.
26677         * modules/stdlib: Likewise.
26678         * modules/string: Likewise.
26679         * modules/strings: Likewise.
26680         * modules/sys_file: Likewise.
26681         * modules/sys_ioctl: Likewise.
26682         * modules/sys_select: Likewise.
26683         * modules/sys_socket: Likewise.
26684         * modules/sys_stat: Likewise.
26685         * modules/sys_time: Likewise.
26686         * modules/sys_times: Likewise.
26687         * modules/sys_utsname: Likewise.
26688         * modules/sys_wait: Likewise.
26689         * modules/sysexits: Likewise.
26690         * modules/time: Likewise.
26691         * modules/times: Likewise.
26692         * modules/tmpfile: Likewise.
26693         * modules/trim: Likewise.
26694         * modules/unistd: Likewise.
26695         * modules/wchar: Likewise.
26696         * modules/wctype: Likewise.
26697
26698 2009-09-17  Bruno Haible  <bruno@clisp.org>
26699
26700         Make getdate.y compile on QNX and NetBSD 5 / i386.
26701         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26702         TIME_T_FITS_IN_LONG_INT.
26703         * lib/getdate.y (long_time_t): New type.
26704         (relative_time): Change type of 'seconds' field to long_time_t.
26705         (get_date): Update types of local variables. Check against overflow
26706         during conversion from long_time_t to time_t.
26707         Reported by Matt Kraai <kraai@ftbfs.org>
26708         and Hasso Tepper <hasso@netbsd.org>.
26709
26710 2009-09-17  Bruno Haible  <bruno@clisp.org>
26711
26712         * modules/COPYING: Update copyright years.
26713         * modules/README: Likeiwse.
26714         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26715         Reported by Ian Beckwith <ianb@erislabs.net>.
26716
26717 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26718
26719         * users.txt: Update references for gnuit package.
26720
26721 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26722
26723         * m4/getdelim.m4: Fix typo in copyright line.
26724
26725 2009-09-17  Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/atoll.c: Use the standard header with GPL copyright.
26728         * lib/argz.in.h: Likewise.
26729         * lib/glob.c: Likewise.
26730         * lib/glob-libc.h: Likewise.
26731         * lib/random_r.c: Likewise.
26732         * lib/siglist.h: Likewise.
26733         * lib/strsignal.c: Likewise.
26734         Reported by Ian Beckwith <ianb@erislabs.net>.
26735
26736 2009-09-17  Eric Blake  <ebb9@byu.net>
26737
26738         rmdir: ensure correct dependency order
26739         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26740
26741 2009-09-17  Bruno Haible  <bruno@clisp.org>
26742
26743         Disable assertion that fails on NetBSD 5 / i386.
26744         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26745         Reported by Sam Steingold <sds@gnu.org>
26746         and Hasso Tepper <hasso@netbsd.org>.
26747
26748 2009-09-16  Eric Blake  <ebb9@byu.net>
26749
26750         unlinkdir: port to mingw
26751         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26752         on which no one can unlink a directory.
26753
26754         stdlib: sort witness names
26755         * modules/stdlib (Makefile.am): Sort replacements.
26756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26757         * lib/stdlib.in.h: Likewise.
26758
26759         parse-duration-tests: avoid link failure
26760         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26761         LIBINTL.
26762         Reported by Tom G. Christensen.
26763
26764         openat-tests: ensure unlinkat behaves like rmdir
26765         * tests/test-rmdir.c (main): Factor guts...
26766         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26767         * modules/rmdir-tests (Files): Ship new file.
26768         * modules/openat-tests: New test.
26769         * tests/test-unlinkat.c: Likewise.
26770
26771         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26772         * modules/rmdir-errno (Status, Notice): Now obsolete.
26773
26774         rmdir: work around cygwin 1.5.x and mingw bugs
26775         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26776         * lib/rmdir.c (rmdir): Work around it.
26777         * modules/rmdir (Status, Notice): No longer obsolete.
26778         (Files): Add dos.m4.
26779         (Depends-on): Add unistd.
26780         (configure.ac): Set witnesses.
26781         (License): Relax to LGPLv2+.
26782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26783         * modules/unistd (Makefile.am): Substitute witnesses.
26784         * lib/unistd.in.h (rmdir): Declare replacement.
26785         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26786         * modules/rmdir-tests: New tests.
26787         * tests/test-rmdir.c: Likewise.
26788
26789 2009-09-15  Eric Blake  <ebb9@byu.net>
26790
26791         fchdir: improve use of replacement functions
26792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26794         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26795         REPLACE_CLOSEDIR.
26796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26797         * modules/sys_stat (Makefile.am): Substitute correct witness.
26798         * modules/dirent (Makefile.am): Likewise.
26799         * modules/unistd (Makefile.am): Likewise.
26800         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26801         * lib/unistd.in.h (dup): Likewise.
26802         * lib/sys_stat.in.h (fstat): Likewise.
26803
26804         maint: ignore gnulib-tool temp files
26805         * .gitignore: Ignore files created during gnulib-tool --test.
26806
26807 2009-09-13  Jim Meyering  <meyering@redhat.com>
26808
26809         posixtm: don't reject a time that specify "60" as the number of seconds
26810         * lib/posixtm.c (posixtime): The code to reject invalid dates
26811         would also reject a time specified with the .60 suffix.
26812         But POSIX allows that, in order to accommodate leap seconds.
26813         So don't reject it.
26814         (main): Adjust tests accordingly.
26815         * modules/posixtm (Depends-on): Add stpcpy.
26816
26817 2009-09-11  Jim Meyering  <meyering@redhat.com>
26818
26819         announce-gen: include [$release_type] in emitted Subject:
26820         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26821         e.g., [stable] in the emitted Subject: line.
26822
26823 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26824
26825         Remove obsolete macros from several modules.
26826         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26827         obsolete Autoconf macros with their modern counterparts.
26828         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26829         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26831         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26832         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26833         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26835         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26836         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26837         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26838         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26839         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26840         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26841         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26842         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26843         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26844         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26845         * m4/time_r.m4 (gl_TIME_R): Likewise.
26846         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26847         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26848         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26849
26850         Fix copyright header in build-aux scripts.
26851         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26852         recommendation.
26853         * build-aux/ncftpput-ftp: Likewise.
26854         * build-aux/update-copyright: Likewise.
26855
26856 2009-09-09  Eric Blake  <ebb9@byu.net>
26857
26858         test-link: allow Linux choice of errno
26859         * tests/test-link.c (main): Relax test for alternate error.
26860
26861         strndup: fix improper m4 caching
26862         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26863         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26864         (gl_PREREQ_STRNDUP): Delete.
26865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26866         * modules/string (Makefile.am): Substitute it.
26867         * lib/string.in.h (strndup): Modernize prototype.
26868
26869         getcwd: port to mingw
26870         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26871         different from the POSIX assumptions made throughout the getcwd
26872         module; fortunately, the mingw getcwd does not need replacement.
26873         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26874         * modules/getcwd-tests: New test.
26875         * tests/test-getcwd.c: Likewise.
26876
26877         link: fix platform bugs
26878         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26879         * lib/link.c (link): Work around them.  Fix related mingw bug.
26880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26881         * modules/unistd (Makefile.am): Substitute it.
26882         * lib/unistd.in.h (link): Declare replacement.
26883         * doc/posix-functions/link.texi (link): Document this.
26884         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26885
26886         test-link: consolidate into single C program, test more cases
26887         * tests/test-link.sh: Delete.
26888         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26889         at least Cygwin and Solaris.
26890         * modules/link-tests (Files): Remove unused file.
26891         (Depends-on): Add errno, sys_stat.
26892         (Makefile.am): Simplify.
26893
26894 2009-09-08  Bruno Haible  <bruno@clisp.org>
26895
26896         Work around towlower, towupper bug on mingw.
26897         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26898         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26899         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26900         * doc/posix-functions/towupper.texi: Likewise.
26901         Reported by Eric Blake.
26902
26903 2009-09-08  Jim Meyering  <meyering@redhat.com>
26904
26905         build: don't try to run autoheader if we don't use it
26906         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26907         is not used in configure.ac.
26908
26909 2009-09-08  Eric Blake  <ebb9@byu.net>
26910
26911         euidaccess: fix compilation error
26912         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26913
26914         rawmemchr: relax license
26915         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26916         okay.
26917         Reported by Jim Meyering.
26918
26919         mkfifoat: new module
26920         * modules/mkfifoat: New file.
26921         * lib/mkfifoat.c: Likewise.
26922         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26923         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26924         * modules/sys_stat (Makefile.am): Use them.
26925         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26926         * MODULES.html.sh (File system functions): Mention module.
26927         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26928         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26929         * modules/mkfifoat-tests: New test.
26930         * tests/test-mkfifoat.c: Likewise.
26931
26932         strchrnul: relax license
26933         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26934         okay.
26935         Reported by Jim Meyering.
26936
26937 2009-09-08  Eric Blake  <ebb9@byu.net>
26938
26939         fstatat: fix compilation on Solaris
26940         * lib/fstatat.c (includes): Add fcntl.h.
26941         Reported by Pádraig Brady.
26942
26943 2009-09-07  Eric Blake  <ebb9@byu.net>
26944
26945         rename: modernize replacement
26946         * modules/rename (Depends-on): Add stdio.
26947         (configure.ac): Declare witness.
26948         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26949         stdio take care of replacement.
26950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26951         * modules/stdio (Makefile.am): Substitute them.
26952         * lib/stdio.in.h (rename): Declare replacement.
26953         * lib/rename.c (includes): Allow cross-compilation to non-windows
26954         machines.
26955         * doc/posix-functions/rename.texi (rename): Improve
26956         documentation.
26957
26958         stdio: sort witness names
26959         * modules/stdio (Makefile.am): Sort replacements.
26960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26961         * lib/stdio.in.h: Likewise.
26962
26963         getcwd: minor cleanups
26964         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26965         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26966
26967         openat: provide more convenience names
26968         * modules/faccessat (configure.ac): Add C witness.
26969         * lib/unistd.in.h (readlinkat): Fix typo.
26970         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26971         convenience wrappers.
26972         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26973         wrappers in syntax checks.
26974
26975 2009-09-06  Eric Blake  <ebb9@byu.net>
26976
26977         doc: fix comments in recent patches
26978         * lib/faccessat.c: Mention correct function.
26979         * lib/fchmodat.c: Likewise.
26980         * lib/fchownat.c: Likewise.
26981         * lib/symlinkat.c: Likewise.
26982         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26983         constants.
26984
26985         faccessat, symlinkat: continue cleanup of previous patch
26986         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26987         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26988         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26990         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26991         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26992         set.
26993
26994 2009-09-06  Bruno Haible  <bruno@clisp.org>
26995
26996         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26997         (fstatat): Declare if GNULIB_FSTATAT is set.
26998         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26999         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27000         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27001         * modules/fcntl-h (Files): Remove m4/openat.m4.
27002         * modules/sys_stat (Files): Remove m4/openat.m4.
27003         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27004         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27005         * modules/unistd (Files): Remove m4/openat.m4.
27006         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27007         GNULIB_OPENAT.
27008         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27009         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27010         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27011         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27012         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27013         gl_OPENAT_DEFAULTS.
27014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27015         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27016         Don't require gl_OPENAT_DEFAULTS.
27017         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27018         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27019         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27020         (gl_OPENAT_DEFAULTS): Remove macro.
27021
27022 2009-09-06  Bruno Haible  <bruno@clisp.org>
27023
27024         * modules/openat (configure.ac): Remove unneeded witness.
27025
27026 2009-09-06  Bruno Haible  <bruno@clisp.org>
27027
27028         Set errno to ENOSYS when a function is entirely unsupported.
27029         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27030         EOPNOTSUPP.
27031         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27032         * modules/chown (Depends-on): Remove errno.
27033
27034 2009-09-06  Bruno Haible  <bruno@clisp.org>
27035
27036         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27037
27038 2009-09-06  Bruno Haible  <bruno@clisp.org>
27039
27040         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27041
27042 2009-09-06  Ben Pfaff  <blp@gnu.org>
27043             Bruno Haible  <bruno@clisp.org>
27044
27045         Work around a glibc bug in strtok_r.
27046         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27047         Undefine if UNDEFINE_STRTOK_R is set.
27048         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27050         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27051         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27052         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27053         UNDEFINE_STRTOK_R.
27054         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27055
27056 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27057
27058         exclude: minor fix
27059         * lib/exclude.c: Include wctype.h
27060
27061 2009-09-06  Akim Demaille  <demaille@gostai.com>
27062
27063         bootstrap: improve error message
27064         * build-aux/bootstrap (find_tool): Upon failure, report the list
27065         of candidates.
27066         Honor the initial value of the envvar.
27067
27068 2009-09-05  Eric Blake  <ebb9@byu.net>
27069
27070         symlinkat: new module
27071         * modules/symlinkat: New file.
27072         * lib/symlinkat.c: Likewise.
27073         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27075         * modules/unistd (Makefile.am): Use them.
27076         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27077         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27078         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27079         * MODULES.html.sh (File system functions): Mention module.
27080         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27081         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27082         * modules/symlinkat-tests: New test.
27083         * tests/test-symlinkat.c: Likewise.
27084
27085         test-openat-safer: add more checks
27086         * tests/test-openat-safer.c (main): Check more code paths.
27087
27088 2009-09-05  Jim Meyering  <meyering@redhat.com>
27089
27090         syntax-check: detect unnecessary inclusion of openat.h
27091         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27092
27093 2009-09-05  Bruno Haible  <bruno@clisp.org>
27094
27095         Support towlower, towupper.
27096         * doc/posix-functions/towlower.texi: Mention module wctype.
27097         * doc/posix-functions/towupper.texi: Likewise.
27098         * lib/wctype.in.h (towlower, towupper): New functions.
27099         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27100         (ASSERT): New macro.
27101         (e): New variable.
27102         (main): Test also towlower, towupper. Test WEOF argument.
27103         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27104
27105 2009-09-05  Bruno Haible  <bruno@clisp.org>
27106
27107         Fix conversion behaviour when the input is invalid.
27108         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27109         mark occurring in first pass of indirect conversion.
27110         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27111         input.
27112         Found by clang's static analyzer.
27113
27114 2009-09-05  Bruno Haible  <bruno@clisp.org>
27115
27116         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27117         where direct conversion is possible.
27118
27119 2009-09-04  Eric Blake  <ebb9@byu.net>
27120
27121         openat: fail with ENOENT on empty name
27122         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27123         buffer.
27124
27125         link-follow: fix logic bug in prior patch
27126         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27127         reversed sense of yes and no in prior patch.  Avoid confusing
27128         compilation failure with desired semantics.
27129
27130         link-follow: accomodate mingw and cross-compilation
27131         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27132         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27133         cross-compilation results to -1, to make linkat easier to
27134         implement when cross-compiling.  Trivially support mingw.
27135         * modules/link-follow (configure.ac): Call new name.
27136         * NEWS: Mention this.
27137
27138 2009-09-03  Eric Blake  <ebb9@byu.net>
27139
27140         faccessat: compile replacement
27141         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27142         needed.
27143
27144         fts: fix compilation error
27145         * lib/fts.c (includes): Re-add "openat.h", for
27146         openat_needs_fchdir.
27147
27148         faccessat: new module
27149         * modules/faccessat: New file.
27150         * lib/faccessat.c: Likewise.
27151         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27153         * modules/unistd (Makefile.am): Use it.
27154         * lib/unistd.in.h (faccessat): Declare it.
27155         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27156         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27157         * MODULES.html.sh (File system functions): Mention it.
27158         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27159         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27160
27161         euidaccess: prefer POSIX over non-standard implementation
27162         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27163         * lib/euidaccess.c (euidaccess): Use it if available.
27164
27165         openat: make template easier to use
27166         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27167         AT_FUNC_F2 to be undefined.
27168         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27169         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27170         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27171         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27172         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27173         Likewise.
27174         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27175         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27176         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27177         Likewise.
27178
27179         openat: declare in POSIX headers
27180         * NEWS: Mention this.
27181         * modules/openat (configure.ac): Declare witnesses.
27182         (Depends-on): Add fcntl-h, sys_stat, unistd.
27183         (Include): Mention correct headers.
27184         * modules/fcntl-h (Depends-on): Add link-warning.
27185         (Files): Add openat.m4.
27186         (Makefile.am): Substitute witnesses.
27187         * modules/sys_stat (Files, Makefile.am): Likewise.
27188         * modules/unistd (Files, Makefile.am): Likewise.
27189         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27190         (gl_OPENAT_DEFAULTS): New macro.
27191         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27193         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27194         (SYS_STAT_H): Remove unused variable.
27195         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27196         * lib/fcntl--.h (includes): Remove unneeded header.
27197         * lib/openat-safer.c (includes): Likewise.
27198         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27199         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27200         appropriate headers.
27201         (__OPENAT_PREFIX): Delete.
27202         * lib/fcntl.in.h (openat): Provide declaration.
27203         (AT_FDCWD): Fix Solaris bug.
27204         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27205         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27206         * lib/fchmodat.c (includes):  Adjust to find declaration.
27207         * lib/fchownat.c (includes): Likewise.
27208         * lib/mkdirat.c (includes): Likewise.
27209         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27210         still visible.
27211
27212 2009-09-02  Eric Blake  <ebb9@byu.net>
27213
27214         errno: use consistently
27215         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27216         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27217         * lib/canonicalize.c (ELOOP): Likewise.
27218         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27219         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27220         * lib/lchown.c (EOPNOTSUPP): Likewise.
27221         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27222         * lib/savewd.c (ESTALE): Likewise.
27223         * lib/settime.c (ENOSYS): Likewise.
27224         * lib/utimens.c (ENOSYS): Likewise.
27225         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27226         * lib/chdir-safer.c (ELOOP): Likewise.
27227         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27228         * modules/c-stack (Depends-on): Add errno.
27229         * modules/canonicalize (Depends-on): Likewise.
27230         * modules/chdir-safer (Depends-on): Likewise.
27231         * modules/fdopendir (Depends-on): Likewise.
27232         * modules/inet_ntop (Depends-on): Likewise.
27233         * modules/inet_pton (Depends-on): Likewise.
27234         * modules/lchown (Depends-on): Likewise.
27235         * modules/openat (Depends-on): Likewise.
27236         * modules/savewd (Depends-on): Likewise.
27237         * modules/settime (Depends-on): Likewise.
27238         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27239
27240         fts: avoid leaking fds
27241         * modules/fts (Depends-on): Add cloexec.
27242         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27243         flag.
27244
27245         fts: make directory fds more robust
27246         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27247         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27248
27249         backupfile, chdir-long, fts, savedir: make safer
27250         * lib/backupfile.c (includes): Use "dirent--.h", since
27251         numbered_backup can write to stderr during readdir.
27252         * lib/savedir.c (includes): Likewise.
27253         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27254         emulation can write to stderr on failure.
27255         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27256         * lib/getcwd.c: Document why opendir_safer is unused.
27257         * lib/glob.c: Likewise.
27258         * lib/scandir.c: Likewise.
27259         * lib/openat-proc.c: Likewise, for open_safer.
27260         * modules/backupfile (Depends-on): Add dirent-safer.
27261         * modules/savedir (Depends-on): Likewise.
27262         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27263         * modules/chdir-long (Depends-on): Add openat-safer.
27264
27265         openat-safer: new module
27266         * modules/openat-safer: New file.
27267         * lib/openat-safer.c: Likewise.
27268         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27269         * lib/fcntl-safer.h (openat_safer): Declare.
27270         * lib/fcntl--.h (openat): Override.
27271         * MODULES.html.sh (File descriptor based I/O): Mention it.
27272         * lib/openat.h: Add double-inclusion guards.
27273         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27274         "fcntl--.h", so we can implement openat.
27275         * modules/openat-safer-tests: New test.
27276         * tests/test-openat-safer.c: New file.
27277
27278         dirent-safer: new module
27279         * modules/dirent-safer: New file.
27280         * lib/dirent--.h: Likewise.
27281         * lib/dirent-safer.h: Likewise.
27282         * lib/opendir-safer.c: Likewise.
27283         * m4/dirent-safer.m4: Likewise.
27284         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27285         * modules/dirent-safer-tests: New test.
27286         * tests/test-dirent-safer.c: New file.
27287         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27288
27289         fdopendir: optimize on mingw
27290         * lib/unistd.in.h (_gl_directory_name): New prototype.
27291         * lib/fchdir.c (_gl_directory_name): Implement it.
27292         (fchdir): Use it to simplify implementation.
27293         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27294         fchdir, when available, to avoid calling [f]chdir().
27295
27296         fdopendir: split into its own module
27297         * lib/openat.c (fdopendir): Move...
27298         * lib/fdopendir.c: ...into new file.
27299         * modules/fdopendir: New module.
27300         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27301         * modules/openat (Depends-on): Add fdopendir.
27302         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27303         fdopendir here.
27304         * modules/savedir (Depends-on): Only need fdopendir, not full
27305         openat.
27306         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27307         * lib/openat.h (fdopendir): Drop prototype.
27308         * lib/dirent.in.h (fdopendir): Provide prototype.
27309         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27310         * modules/dirent (Makefile.am): Substitute them.
27311         * MODULES.html.sh (File system functions): Mention it.
27312         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27313         * modules/fdopendir-tests: New file.
27314         * tests/test-fdopendir.c: Likewise.
27315
27316         fchdir: use more consistent macro convention
27317         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27318         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27319         REPLACE_FCHDIR, rather than relying on config.h macros.
27320         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27321         inside a single make-time REPLACE_FCHDIR block, rather than using
27322         the config.h FCHDIR_REPLACEMENT.
27323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27324         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27325         Manage fstat replacement.
27326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27327         REPLACE_FCHDIR.
27328         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27329         (Makefile.am): Substitute REPLACE_FCHDIR.
27330         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27331         FCHDIR_REPLACEMENT.
27332         * lib/dup-safer.c (dup_safer): Likewise.
27333         * lib/dup2.c (rpl_dup2): Likewise.
27334         * lib/dup3.c (rpl_dup3): Likewise.
27335         * lib/open.c (rpl_open): Likewise.
27336
27337         fchdir: simplify error handling, and support dup3
27338         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27339         stdbool, malloc-posix, realloc-posix.
27340         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27341         (ensure_dirs_slot): Return false on allocation failure.
27342         (rpl_dup2): Delete.
27343         (_gl_register_dup): New function.
27344         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27345         (_gl_register_fd): Close fd on allocation failure.
27346         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27347         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27348         prototype.
27349         (rpl_dup2_fchdir): Delete prototype.
27350         * lib/open.c (open): Update caller.
27351         * lib/dup2.c (dup2): Track fchdir metadata.
27352         * lib/dup3.c (dup3): Likewise.
27353         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27355
27356 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27357
27358         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27359         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27360         don't pass arguments to AC_OUTPUT.
27361
27362 2009-09-02  Bruno Haible  <bruno@clisp.org>
27363
27364         * modules/mkdtemp (License): Relicense under LGPLv2+.
27365         Reported by Paolo Bonzini.
27366
27367 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27368
27369         Replace uses of obsolete autoconf macros in Jim's modules.
27370         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27371         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27372         can evoke a warning from autoconf when run with -Wobsolete
27373         enabled.  They were declared obsolete for good reasons (see
27374         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27375         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27376         should not continue using the deprecated macros.
27377         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27378         obsolete Autoconf macros with modern counterparts.
27379         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27380         * m4/dos.m4 (gl_AC_DOS): Likewise.
27381         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27383         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27384         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27385         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27386         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27387         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27388         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27389         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27390         Likewise.
27391         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27392         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27393         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27394         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27395         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27396         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27397
27398 2009-09-01  Eric Blake  <ebb9@byu.net>
27399
27400         fchdir: fix off-by-one bug in previous patch
27401         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27402         (_gl_unregister_fd): Delete useless if.
27403
27404 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27405
27406         maint.mk: sort the list of syntax-check rules
27407         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27408         easier to get a sense of progress when the rules are run sequentially
27409         and take a long time.
27410
27411 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27412
27413         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27414         * modules/netinet_in: Likewise.
27415         * modules/sys_file: Likewise.
27416         * modules/sys_ioctl: Likewise.
27417         * modules/sys_select: Likewise.
27418         * modules/sys_socket: Likewise.
27419         * modules/sys_stat: Likewise.
27420         * modules/sys_time: Likewise.
27421         * modules/sys_times: Likewise.
27422         * modules/sys_utsname: Likewise.
27423         * modules/sys_wait: Likewise.
27424
27425 2009-09-01  Jim Meyering  <meyering@redhat.com>
27426
27427         fts: help ensure that return values are not ignored
27428         * lib/fts_.h (__GNUC_PREREQ): Define.
27429         (__attribute_warn_unused_result__): Define.
27430         (fts_children, fts_close, fts_open, fts_read): Declare with
27431         __attribute_warn_unused_result__.
27432
27433         fts: fts_close now fails also when closing a dir file descriptor fails
27434         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27435         and propagate to caller, along with errno.
27436
27437         announce-gen: correct formatting in --help output
27438         * build-aux/announce-gen (usage): Move the one-line description in
27439         --help output "up", to where it belongs, just after Usage:.
27440
27441 2009-08-31  Eric Blake  <ebb9@byu.net>
27442
27443         fchdir: port to mingw
27444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27445         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27446         opened, then use a substitute.
27447         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27448         replacement.
27449         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27450         (_gl_register_fd): No need to check stat if open already filters
27451         all directories.
27452         (fchdir): Fix error condition to match POSIX.
27453         * modules/fchdir (Depends-on): Add sys_stat.
27454         * doc/posix-functions/open.texi (open): Document the limitation.
27455         * modules/fchdir-tests: New file.
27456         * tests/test-fchdir.c: Likewise.
27457
27458         canonicalize: allow cross-testing from cygwin to mingw
27459         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27460         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27461         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27462         Likewise.
27463         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27464         target does not support symlinks.
27465         * tests/test-canonicalize-lgpl.sh: Likewise.
27466
27467         chown: avoid compilation warning on mingw
27468         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27469         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27470         mingw.
27471         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27472         * modules/chown (Depends-on): Add errno.
27473
27474 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27475
27476         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27477         command.
27478
27479 2009-08-31  Jim Meyering  <meyering@redhat.com>
27480
27481         canonicalize: remove useless initialization
27482         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27483         initialization of local, "end".
27484
27485 2009-08-30  Bruno Haible  <bruno@clisp.org>
27486
27487         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27488         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27489         ENOSYS.
27490
27491 2009-08-30  Bruno Haible  <bruno@clisp.org>
27492
27493         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27494         /usr/xpg4/bin/tr when it exists.
27495         * tests/test-pipe-filter-gi1.sh: Likewise.
27496
27497 2009-08-30  Bruno Haible  <bruno@clisp.org>
27498
27499         Work around deficient /usr/bin/id program on Solaris.
27500         * tests/test-file-has-acl.sh (ID): New variable.
27501         * tests/test-set-mode-acl.sh (ID): Likewise.
27502         * tests/test-copy-acl.sh (ID): Likewise.
27503         * tests/test-copy-file.sh (ID): Likewise.
27504
27505 2009-08-30  Bruno Haible  <bruno@clisp.org>
27506
27507         New module 'xstriconveh'.
27508         * lib/xstriconveh.h: New file.
27509         * lib/xstriconveh.c: New file.
27510         * modules/xstriconveh: New file.
27511
27512 2009-08-30  Bruno Haible  <bruno@clisp.org>
27513
27514         Make it easier to use mem_cd_iconveh.
27515         * lib/striconveh.h (iconveh_t): New type.
27516         (iconveh_open, iconveh_close): New declarations.
27517         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27518         with a single 'const iconveh_t *' argument.
27519         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27520         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27521         with a single 'const iconveh_t *' argument.
27522         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27523         * tests/test-striconveh.c (main): Update.
27524         * NEWS: Mention the change.
27525
27526 2009-08-30  Bruno Haible  <bruno@clisp.org>
27527
27528         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27529         problem.
27530
27531 2009-08-30  Bruno Haible  <bruno@clisp.org>
27532
27533         Work around iconv_open problem on Solaris.
27534         * lib/iconv_open-solaris.gperf: New file.
27535         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27537         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27538         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27539         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27540         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27541
27542 2009-08-29  Jim Meyering  <meyering@redhat.com>
27543
27544         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27545         * top/maint.mk (cvs-check): Remove target; it was just an alias
27546         to the better-named vc-diff-check.
27547         (maintainer-distcheck): Remove rule.  It was used only from
27548         the (alpha/beta/major) target, and all of its commands but one
27549         were coreutils-specific.
27550         (vc-dist): Remove rule.
27551         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27552         Run vc-diff-check, not vc-dist.
27553         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27554
27555 2009-08-27  Bruno Haible  <bruno@clisp.org>
27556
27557         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27558         of 0.
27559
27560 2009-08-27  Bruno Haible  <bruno@clisp.org>
27561
27562         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27563         compilers.
27564         * doc/func.texi: Document the SunPRO C bug.
27565
27566 2009-08-27  Bruno Haible  <bruno@clisp.org>
27567
27568         Fix link error on Solaris.
27569         * tests/test-parse-duration.c (xstrdup): Remove function.
27570
27571 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27572
27573         ignore-value: handle pointer types, too
27574         * lib/ignore-value.h (__attribute__): Remove definition.
27575         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27576         of a more concise and more-often effective "(void) i" statement.
27577         (ignore_ptr): New function to suppress warnings from functions that
27578         return pointers, and to make it explicit that one function doesn't
27579         handle all cases.
27580
27581 2009-08-25  Bruno Haible  <bruno@clisp.org>
27582
27583         dup2: work around a Linux bug.
27584         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27585         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27586         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27587         Reported by Simon Josefsson.
27588
27589 2009-08-25  Jim Meyering  <meyering@redhat.com>
27590
27591         libguestfs uses gnulib
27592         * users.txt: Add libguestfs.
27593
27594 2009-08-24  Eric Blake  <ebb9@byu.net>
27595
27596         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27597         * lib/pipe2.c (includes): Add binary-io.h.
27598         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27599
27600 2009-08-24  Bruno Haible  <bruno@clisp.org>
27601
27602         Tolerate declared but missing accept4 syscall.
27603         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27604         available.
27605         * lib/sys_socket.in.h (accept4): If the function is already present,
27606         override it.
27607         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27608         * modules/accept4 (Makefile.am): Compile accept4.c always.
27609         Reported by Paolo Bonzini and Eric Blake.
27610
27611 2009-08-23  Bruno Haible  <bruno@clisp.org>
27612
27613         New module 'accept4'.
27614         * lib/sys_socket.in.h (accept4): New declaration.
27615         * lib/accept4.c: New file.
27616         * m4/accept4.m4: New file.
27617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27618         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27619         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27620         HAVE_ACCEPT4.
27621         * modules/accept4: New file.
27622         * doc/glibc-functions/accept4.texi: Mention the new module.
27623
27624 2009-08-24  Jim Meyering  <meyering@redhat.com>
27625
27626         progname: also set global program_invocation_name, when possible
27627         Before this change, a libtool-enabled program that calls glibc's
27628         error function would report the program name as
27629         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27630         * modules/progname (configure.ac): Check for a declaration of
27631         program_invocation_name.
27632         * lib/progname.c:  Include <errno.h>.
27633         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27634         Set program_invocation_name.
27635
27636 2009-08-23  Bruno Haible  <bruno@clisp.org>
27637
27638         * lib/dup3.c: Include <string.h>.
27639
27640 2009-08-23  Bruno Haible  <bruno@clisp.org>
27641
27642         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27643         * lib/pipe2.c (pipe2): Likewise.
27644         Suggested by Eric Blake.
27645
27646 2009-08-23  Bruno Haible  <bruno@clisp.org>
27647
27648         Tolerate declared but missing dup3 syscall.
27649         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27650         * lib/unistd.in.h (dup3): If the function is already present,
27651         override it.
27652         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27653         * modules/dup3 (Makefile.am): Compile dup3.c always.
27654         Reported by Paolo Bonzini.
27655
27656 2009-08-23  Bruno Haible  <bruno@clisp.org>
27657
27658         Tolerate declared but missing pipe2 syscall.
27659         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27660         available.
27661         * lib/unistd.in.h (pipe2): If the function is already present,
27662         override it.
27663         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27664         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27665         Reported by Paolo Bonzini.
27666
27667 2009-08-23  Bruno Haible  <bruno@clisp.org>
27668
27669         * lib/pipe2.c (pipe2): Move #ifs inside function.
27670
27671 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27672
27673         quotearg: document limitations of quote_these_too
27674         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27675         those limitations are created.
27676         * lib/quotearg.h (set_char_quoting): Document that digits and
27677         letters that are special after backslash are not permitted.
27678         (quotearg_char): Cross-reference set_char_quoting documentation.
27679
27680 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27681
27682         quotearg: implement custom_quoting_style
27683         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27684         right_quote fields.
27685         (set_custom_quoting): New public function.
27686         (quotearg_buffer_restyled): Add left_quote and right_quote
27687         arguments, handle them very much like locale quoting, and update
27688         all uses.
27689         (quotearg_n_custom): New public function.
27690         (quotearg_n_custom_mem): New public function.
27691         (quotearg_custom): New public function.
27692         (quotearg_custom_mem): New public function.
27693         * lib/quotearg.h: Prototype and document new public functions.
27694         (enum quoting_style): For escape_quoting_style and
27695         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27696         ignored even though they're otherwise like c_quoting_style.
27697         Add custom_quoting_style member and document with comparison to
27698         clocale_quoting_style.
27699         * tests/test-quotearg.c (custom_quotes): New array.
27700         (custom_results): New array.
27701         (main): Extend to test custom quoting.
27702
27703 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27704
27705         quotearg: fix right quote escaping when it's in quote_these_too
27706         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27707         quote, be sure to prepend only one backslash.
27708         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27709         (main): Test it.
27710
27711 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27712
27713         quotearg-tests: test escaping of embedded locale quotes
27714         * tests/test-quotearg.c (struct result_strings): Add member for
27715         new input.
27716         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27717         (inputs): Add new input.
27718         (results_g): Add expected results.
27719         (flag_results): Likewise.
27720         (locale_results): Likewise.
27721         (compare_strings): Check those.
27722
27723 2009-08-23  Bruno Haible  <bruno@clisp.org>
27724
27725         Tests for module 'dup3'.
27726         * modules/dup3-tests: New file.
27727         * tests/test-dup3.c: New file.
27728
27729         New module 'dup3'.
27730         * lib/unistd.in.h (dup3): New declaration.
27731         * lib/dup3.c: New file.
27732         * m4/dup3.m4: New file.
27733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27734         HAVE_DUP3.
27735         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27736         * modules/dup3: New file.
27737         * doc/glibc-functions/dup3.texi: Mention the new module.
27738
27739 2009-08-23  Bruno Haible  <bruno@clisp.org>
27740
27741         Tweak the dup2 test.
27742         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27743         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27744         the test file is still empty. Fix argument order of lseek.
27745
27746 2009-08-23  Bruno Haible  <bruno@clisp.org>
27747
27748         Avoid test link errors when the modules getopt-gnu, gettext are used.
27749         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27751
27752 2009-08-23  Bruno Haible  <bruno@clisp.org>
27753
27754         Fix getdtablesize() on mingw.
27755         * lib/getdtablesize.c (getdtablesize): Implement differently.
27756         * lib/unistd.in.h (getdtablesize): Improve comment.
27757
27758 2009-08-23  Bruno Haible  <bruno@clisp.org>
27759
27760         New module 'mkostemp'.
27761         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27762         * lib/stdlib.in.h (mksotemp): New declaration.
27763         * lib/mkostemp.c: New file, from glibc with modifications.
27764         * lib/tempname.h (GT_FILE): Remove outdated comment.
27765         (gen_tempname): Add flags argument.
27766         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27767         (__GT_FILE): Map to 1.
27768         (small_open, large_open): Remove macros.
27769         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27770         * lib/mkstemp.c (mkstemp): Update.
27771         * lib/mkdtemp.c (mkdtemp): Likewise.
27772         * m4/mkostemp.m4: New file.
27773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27774         HAVE_MKOSTEMP.
27775         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27776         HAVE_MKOSTEMP.
27777         * modules/mkostemp: New file, based on modules/mkstemp.
27778         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27779         * NEWS: Mention the change.
27780
27781 2009-08-23  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27784         Reported by Eric Blake.
27785
27786 2009-08-23  Bruno Haible  <bruno@clisp.org>
27787
27788         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27789         Reported by Eric Blake.
27790
27791 2009-08-23  Bruno Haible  <bruno@clisp.org>
27792
27793         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27794         * modules/pipe2 (Depends-on): Likewise.
27795
27796 2009-08-23  Eric Blake  <ebb9@byu.net>
27797
27798         fcntl-h: add O_TTY_INIT support
27799         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27800         * tests/test-fcntl-h.c (o): Test it.
27801         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27802
27803         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27804         * modules/fcntl: Move <fcntl.h> header replacement...
27805         * modules/fcntl-h: ...to new name, so as not to collide with
27806         like-named function.
27807         * tests/test-fcntl.c: Rename...
27808         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27809         * modules/fcntl-tests: Rename...
27810         * modules/fcntl-h-tests: ...to this.  Update test file name.
27811         * modules/chdir-long (Depends-on): Update clients.
27812         * modules/chdir-safer (Depends-on): Likewise.
27813         * modules/fcntl-safer (Depends-on): Likewise.
27814         * modules/fts (Depends-on): Likewise.
27815         * modules/mkancesdirs (Depends-on): Likewise.
27816         * modules/mkdir-p (Depends-on): Likewise.
27817         * modules/open (Depends-on): Likewise.
27818         * modules/savewd (Depends-on): Likewise.
27819         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27820         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27821
27822 2009-08-22  Bruno Haible  <bruno@clisp.org>
27823
27824         * modules/binary-io (License): Relicense under LGPL.
27825         * modules/pipe2 (License): Likewise.
27826
27827 2009-08-22  Bruno Haible  <bruno@clisp.org>
27828
27829         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27830         return value.
27831         * lib/pipe-filter-gi.c (filter_init): Likewise.
27832         Reported by Eric Blake.
27833
27834 2009-08-22  Bruno Haible  <bruno@clisp.org>
27835
27836         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27837         * modules/pipe (Depends-on): Add pipe2.
27838
27839 2009-08-22  Bruno Haible  <bruno@clisp.org>
27840
27841         Tests for module 'pipe2'.
27842         * modules/pipe2-tests: New file.
27843         * tests/test-pipe2.c: New file.
27844
27845         New module 'pipe2'.
27846         * lib/unistd.in.h (pipe2): New declaration.
27847         * lib/pipe2.c: New file.
27848         * m4/pipe2.m4: New file.
27849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27850         HAVE_PIPE2.
27851         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27852         * modules/pipe2: New file.
27853         * doc/glibc-functions/pipe2.texi: Mention the new module.
27854
27855 2009-08-22  Bruno Haible  <bruno@clisp.org>
27856
27857         Reference some new glibc functions.
27858         * doc/glibc-functions/accept4.texi: New file.
27859         * doc/glibc-functions/dup3.texi: New file.
27860         * doc/glibc-functions/mkostemp.texi: New file.
27861         * doc/glibc-functions/pipe2.texi: New file.
27862         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27863         (Glibc sys/socket.h): Refer to accept4.
27864         (Glibc unistd.h): Refer to dup3, pipe2.
27865         Reported by Eric Blake.
27866
27867 2009-08-22  Jim Meyering  <meyering@redhat.com>
27868             Bruno Haible  <bruno@clisp.org>
27869
27870         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27871         This makes it so packages using automake-1.11's silent-rules option
27872         can print e.g., a single "GEN    configmake.h" line, rather than
27873         the 30+ statements that perform the job.  If you want to see the
27874         actual commands, you can still run "make V=1".
27875         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27876         so that make output is abbreviated when those variables are defined
27877         appropriately.
27878         * modules/argz: Likewise.
27879         * modules/arpa_inet: Likewise.
27880         * modules/byteswap: Likewise.
27881         * modules/configmake: Likewise.
27882         * modules/dirent: Likewise.
27883         * modules/errno: Likewise.
27884         * modules/fcntl: Likewise.
27885         * modules/float: Likewise.
27886         * modules/fnmatch: Likewise.
27887         * modules/getopt-posix: Likewise.
27888         * modules/glob: Likewise.
27889         * modules/iconv_open: Likewise.
27890         * modules/inttypes: Likewise.
27891         * modules/localcharset: Likewise.
27892         * modules/locale: Likewise.
27893         * modules/math: Likewise.
27894         * modules/netdb: Likewise.
27895         * modules/netinet_in: Likewise.
27896         * modules/poll: Likewise.
27897         * modules/posix_spawnp-tests: Likewise.
27898         * modules/sched: Likewise.
27899         * modules/search: Likewise.
27900         * modules/selinux-h: Likewise.
27901         * modules/signal: Likewise.
27902         * modules/spawn: Likewise.
27903         * modules/stdarg: Likewise.
27904         * modules/stdbool: Likewise.
27905         * modules/stddef: Likewise.
27906         * modules/stdint: Likewise.
27907         * modules/stdio: Likewise.
27908         * modules/stdlib: Likewise.
27909         * modules/string: Likewise.
27910         * modules/strings: Likewise.
27911         * modules/sys_file: Likewise.
27912         * modules/sys_ioctl: Likewise.
27913         * modules/sys_select: Likewise.
27914         * modules/sys_socket: Likewise.
27915         * modules/sys_stat: Likewise.
27916         * modules/sys_time: Likewise.
27917         * modules/sys_times: Likewise.
27918         * modules/sys_utsname: Likewise.
27919         * modules/sys_wait: Likewise.
27920         * modules/sysexits: Likewise.
27921         * modules/time: Likewise.
27922         * modules/unistd: Likewise.
27923         * modules/wchar: Likewise.
27924         * modules/wctype: Likewise.
27925
27926 2009-08-22  Jim Meyering  <meyering@redhat.com>
27927
27928         announce-gen: detect write failure
27929         * build-aux/announce-gen: Add Coda at end.
27930         Remove equivalent-but-more-verbose block at top.
27931
27932 2009-08-19  Akim Demaille  <demaille@gostai.com>
27933
27934         bootstrap: --help to stdout.
27935         * bootstrap (usage): Don't send --help to stderr.
27936         Use a here doc instead of a long string.
27937
27938 2009-08-21  Eric Blake  <ebb9@byu.net>
27939
27940         test-popen-safer: split from test-popen
27941         * tests/test-popen.c (main): Move...
27942         * tests/test-popen.h: ...into new file.
27943         * tests/test-popen-safer2.c: New file.
27944         * modules/popen-tests (Files): Add test-popen.h.
27945         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27946         Suggested by Bruno Haible.
27947
27948         test-fcntl-safer: split from test-open
27949         * tests/test-open.c (main): Move...
27950         * tests/test-open.h: ...into new file.
27951         * tests/test-fcntl-safer.c: New file.
27952         * modules/open-tests (Files): Add test-open.h.
27953         * modules/fcntl-safer-tests: New file.
27954         Suggested by Bruno Haible.
27955
27956         test-fopen-safer: split from test-fopen
27957         * tests/test-fopen.c (main): Move...
27958         * tests/test-fopen.h: ...into new file.
27959         * tests/test-fopen-safer.c: New file.
27960         * modules/fopen-tests (Files): Add test-fopen.h.
27961         * modules/fopen-safer-tests: New file.
27962         Suggested by Bruno Haible.
27963
27964 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27965
27966         popen-safer: test O_CLOEXEC at run-time.
27967         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27968
27969 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27970
27971         fcntl: move more flags to the header
27972         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27973         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27974         * lib/fcntl.in.h: Do both things here.
27975
27976 2009-08-21  Jim Meyering  <meyering@redhat.com>
27977
27978         consistently remove $@-t before redirecting to it
27979         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27980         * modules/alloca-opt: Likewise.
27981         * modules/byteswap: Likewise.
27982         * modules/fnmatch: Likewise.
27983         * modules/getopt-posix: Likewise.
27984         * modules/glob: Likewise.
27985         * modules/poll: Likewise.
27986         * modules/posix_spawnp-tests: Likewise.
27987         * modules/sys_socket: Likewise.
27988         * modules/sysexits: Likewise.
27989
27990 2009-08-21  Eric Blake  <ebb9@byu.net>
27991
27992         popen: simplify access to original popen
27993         * lib/popen.c (rpl_popen): No need to worry about popen being a
27994         macro.
27995         Reported by Bruno Haible.
27996
27997 2009-08-20  Eric Blake  <ebb9@byu.net>
27998
27999         build: avoid some compiler warnings
28000         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28001         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28002         type.
28003         (new_exclude_segment, excluded_file_pattern_p)
28004         (excluded_file_name_p): Reduce scope.
28005         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28006         old-style declaration.
28007
28008 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28009
28010         * tests/test-exclude1.sh: Handle Windows EOL.
28011         * tests/test-exclude2.sh: Likewise.
28012         * tests/test-exclude3.sh: Likewise.
28013         * tests/test-exclude4.sh: Likewise.
28014         * tests/test-exclude5.sh: Likewise.
28015         * tests/test-exclude6.sh: Likewise.
28016         * tests/test-exclude7.sh: Likewise.
28017
28018 2009-08-19  Akim Demaille  <demaille@gostai.com>
28019
28020         bootstrap: find sha1sum when named gsha1sum.
28021         * bootstrap (find_tool): New.
28022         ($SHA1SUM): New.
28023         Use it.
28024
28025 2009-08-20  Jim Meyering  <meyering@redhat.com>
28026
28027         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28028         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28029         expression that converts "." in a file name to "\." in the resulting
28030         regexp.  Start with a dummy statement, so that prior shell variable
28031         definitions are expanded portably.  Reported by Simon Josefsson.
28032
28033 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28034
28035         Fix polling for writeability of a screen buffer.
28036         * lib/poll.c: Distinguish input and screen buffers for the
28037         Win32 implementation.
28038         * lib/select.c: Likewise.
28039
28040 2009-08-19  Eric Blake  <ebb9@byu.net>
28041
28042         popen-safer: prevent popen from clobbering std descriptors
28043         * modules/popen-safer: New file.
28044         * lib/popen-safer.c: Likewise.
28045         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28046         * lib/stdio--.h (popen): Provide override.
28047         * lib/stdio-safer.h (popen_safer): Provide declaration.
28048         * tests/test-popen.c (includes): Partially test this.
28049         * modules/popen-safer-tests: New file, for more tests.
28050         * tests/test-popen-safer.c: Likewise.
28051         * MODULES.html.sh (file stream based Input/Output): Mention it.
28052
28053         tests: test some of the *-safer modules
28054         * modules/fopen-safer (Depends-on): Add fopen.
28055         * modules/fcntl-safer (Depends-on): Add fcntl.
28056         * modules/stdlib-safer (Depends-on): Add stdlib.
28057         (configure.ac): Set indicator.
28058         * modules/unistd-safer (configure.ac): Likewise.
28059         * modules/tmpfile-safer (configure.ac): Likewise.
28060         (Depends-on): Add tmpfile.
28061         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28062         active.
28063         * tests/test-fopen.c (includes): Test safer versions when they are
28064         in use.
28065         * tests/test-open.c (includes): Likewise.
28066
28067         popen: fix cygwin 1.5 bug when stdin closed
28068         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28069         * modules/popen: New file.
28070         * modules/popen-tests: Likewise.
28071         * tests/test-popen.c: Likewise.
28072         * m4/popen.m4: Likewise.
28073         * lib/popen.c: Likewise.
28074         * lib/stdio.in.h (popen): New declaration.
28075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28076         * modules/stdio (Makefile.am): Likewise.
28077         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28078
28079 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28080
28081         maint.mk: give full control over update-copyright exclusions
28082         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28083         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28084         (update-copyright): Don't force inclusion of top-level
28085         ChangeLog.  Don't force exclusion of all COPYING files, but make
28086         them the default exclusion instead.
28087
28088 2009-08-16  Bruno Haible  <bruno@clisp.org>
28089
28090         Fix test failures on Solaris 10.
28091         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28092         tests when Solaris iconv() is used.
28093         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28094         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28095         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28096         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28097         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28098
28099 2009-08-16  Bruno Haible  <bruno@clisp.org>
28100
28101         Fix test failures on Solaris 10.
28102         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28103         'tr' program and pass it as first argument.
28104         * tests/test-pipe-filter-gi1.sh: Likewise.
28105         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28106         program as first argument.
28107         * tests/test-pipe-filter-gi1.c (main): Likewise.
28108
28109 2009-08-16  Eric Blake  <ebb9@byu.net>
28110
28111         fpurge: fix previous commits
28112         * modules/fpurge (Makefile.am): Make replacement conditional,
28113         partially reverting 2007-04-29 change; missed in previous
28114         attempt.
28115         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28116         is missing.
28117
28118 2009-08-16  Bruno Haible  <bruno@clisp.org>
28119
28120         Clarify fpurge's effect on the file position.
28121         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28122         * tests/test-fpurge.c (main): Make a second pass for checking the file
28123         position.
28124
28125 2009-08-16  Bruno Haible  <bruno@clisp.org>
28126
28127         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28128         declaration of fpurge is missing.
28129         * tests/test-fpurge.c (main): Check that the file has not more contents
28130         than expected. Close the file before removing it.
28131
28132 2009-08-15  Eric Blake  <ebb9@byu.net>
28133
28134         fpurge: don't wrap working cygwin implementation
28135         * lib/fpurge.c (fpurge): Fix comment typo.
28136         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28137         1.7 to avoid replacement.
28138         * tests/test-fpurge.c (main): Enhance test.
28139
28140 2009-08-15  Eric Blake  <ebb9@byu.net>
28141         and Jim Meyering  <meyering@redhat.com>
28142
28143         test-update-copyright: skip if perl is insufficient
28144         * tests/test-update-copyright.sh: Failure to run maintainer tool
28145         should not cause testsuite failure on cygwin 1.5.
28146
28147 2009-08-14  Eric Blake  <ebb9@byu.net>
28148
28149         doc: mention more functions added in cygwin 1.7.0
28150         * doc/posix-headers/limits.texi (limits.h): Update for recent
28151         cygwin additions.
28152         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28153         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28154         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28155         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28156         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28157
28158 2009-08-14  Eric Blake  <ebb9@byu.net>
28159
28160         maint.mk: simplify update-copyright rule
28161         * top/maint.mk (update-copyright-local): Delete, and document how
28162         to do it in cfg.mk instead.
28163         (update-copyright-exclude-regexp): Delete, and document how to do
28164         it in .x-update-copyright instead.
28165         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28166         exclude ChangeLog.
28167
28168 2009-08-14  Bruno Haible  <bruno@clisp.org>
28169
28170         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28171
28172 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28173
28174         maint.mk: support update-copyright-env
28175         * top/maint.mk (update-copyright-env): Define place-holder.
28176         (update-copyright): Expand $(update-copyright-env) before
28177         invoking update-copyright.
28178
28179 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28180
28181         update-copyright: implement forced reformatting
28182         * build-aux/update-copyright: Implement and document
28183         UPDATE_COPYRIGHT_FORCE.
28184         * tests/test-update-copyright.sh: Test it.
28185
28186 2009-08-14  Eric Blake  <ebb9@byu.net>
28187         and Bruno Haible  <bruno@clisp.org>
28188
28189         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28190         * tests/test-locale.c: Revert previous patch related to NULL.
28191         * tests/test-stdio.c: Likewise.
28192         * tests/test-stdlib.c: Likewise.
28193         * tests/test-string.c: Likewise.
28194         * tests/test-unistd.c: Likewise.
28195         * modules/time-tests (Depends-on): Add verify.
28196         * modules/wchar-tests (Depends-on): Likewise.
28197         * tests/test-time.c: Test for NULL compliance.
28198         * tests/test-wchar.c: Likewise.
28199         * modules/locale (Depends-on): Add stddef.
28200         * modules/stdio (Depends-on): Likewise.
28201         * modules/stdlib (Depends-on): Likewise.
28202         * modules/string (Depends-on): Likewise.
28203         * modules/time (Depends-on): Likewise.
28204         * modules/unistd (Depends-on): Likewise.
28205         * modules/wchar (Depends-on): Likewise.
28206         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28207         * lib/stdlib.in.h (includes): Likewise.
28208         * lib/string.in.h (includes): Likewise.
28209         * lib/time.in.h (includes): Likewise.
28210         * lib/unistd.in.h (includes): Likewise.
28211         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28212         replaced.
28213         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28214         * m4/stddef_h.m4: New file.
28215         * modules/stddef: Likewise.
28216         * lib/stddef.in.h: Likewise.
28217         * modules/stddef-tests: Likewise.
28218         * tests/test-stddef.c: Likewise.
28219         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28220         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28221         * doc/posix-headers/locale.texi (locale.h): Likewise.
28222         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28223         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28224         * doc/posix-headers/string.texi (string.h): Likewise.
28225         * doc/posix-headers/time.texi (time.h): Likewise.
28226         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28227         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28228
28229 2009-08-14  Eric Blake  <ebb9@byu.net>
28230
28231         doc: improve git diff of texinfo files
28232         * .gitattributes: Add rule for *.texi files, with hint on how to
28233         use it.
28234         Copied from m4, and based on a report by Bruno Haible.
28235
28236 2009-08-14  Bruno Haible  <bruno@clisp.org>
28237
28238         Disable multithread support by default on Cygwin 1.5.x for real.
28239         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28240
28241 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28242
28243         update-copyright: much ado about intervals
28244         * build-aux/update-copyright: Implement and document
28245         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28246         of copyright year intervals.
28247         Also, document UPDATE_COPYRIGHT_YEAR.
28248         * tests/test-update-copyright.sh: Test it.
28249
28250         update-copyright: convert 2-digit to 4-digit years
28251         * build-aux/update-copyright: Implement and document.
28252         * tests/test-update-copyright.sh: Update.
28253
28254 2009-08-14  Jim Meyering  <meyering@redhat.com>
28255
28256         test-exclude: avoid coreutils "make check" failure
28257         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28258         just as in test-argmatch.c.
28259
28260 2009-08-13  Eric Blake  <ebb9@byu.net>
28261
28262         test-dup2: fix bad assumption
28263         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28264         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28265
28266         test-version-etc: fix CRLF portability issue
28267         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28268         recognize \r.
28269         * tests/test-argp-version-etc-1.sh: Likewise.
28270
28271         getopt: update client modules
28272         * modules/argp (Depends-on): Use getopt-gnu.
28273         * modules/git-merge-changelog (Depends-on): Likewise.
28274         * modules/long-options (Depends-on): Likewise.
28275         * modules/xstrtol (Depends-on): Likewise.
28276
28277 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28278
28279         * tests/test-version-etc.sh: Don't fail on different
28280         project/version.  Don't fail on CRLF differences.  Rewrite to use
28281         multiple -e instead of multiple sed forks, suggested by Eric Blake
28282         <ebb9@byu.net>.
28283         * tests/test-argp-version-etc-1.sh: Likewise.
28284
28285 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28286
28287         * tests/test-version-etc.sh: Don't fail on different
28288         project/version.
28289
28290 2009-08-12  Bruno Haible  <bruno@clisp.org>
28291
28292         Tests for modules 'getopt-posix', 'getopt-gnu'.
28293         * modules/getopt-posix-tests: New file.
28294         * tests/test-getopt.c: New file.
28295         * tests/test-getopt.h: New file.
28296         * tests/test-getopt_long.h: New file.
28297
28298         New modules 'getopt-posix', 'getopt-gnu'.
28299         * modules/getopt-gnu: New file, renamed from modules/getopt.
28300         * modules/getopt-posix: New file.
28301         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28302         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28303         (gl_GETOPT): Remove macro.
28304         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28305         Disable the test against BSD systems that declare optreset. Test
28306         against mingw bug. Test against lack of support of optional arguments
28307         on many platforms.
28308         * doc/glibc-headers/getopt.texi: Update module name and list of
28309         relevant platforms.
28310         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28311         'getopt-gnu' and more portability problems.
28312         * NEWS: Mention the changes.
28313
28314 2009-08-12  Bruno Haible  <bruno@clisp.org>
28315
28316         Ensure that optarg etc. get declared by <unistd.h>.
28317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28318         AC_USE_SYSTEM_EXTENSIONS.
28319         * modules/getopt (Depends-on): Add 'extensions'.
28320
28321 2009-08-12  Bruno Haible  <bruno@clisp.org>
28322
28323         Avoid test link errors.
28324         * modules/pipe-filter-ii-tests (Makefile.am): Define
28325         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28326         * modules/pipe-filter-gi-tests (Makefile.am): Define
28327         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28329
28330 2009-08-12  Bruno Haible  <bruno@clisp.org>
28331
28332         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28333         gl_GETOPT_SUBSTITUTE before.
28334         (gl_GETOPT): Use it.
28335         * m4/argp.m4 (gl_ARGP): Update.
28336         Reported by Sergey Poznyakoff.
28337
28338         * m4/getopt.m4: Reorder macros.
28339         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28340         (gl_GETOPT_SUBSTITUTE): Remove macro.
28341
28342 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28343
28344         Minor improvement in gitlog-to-changelog
28345
28346         * build-aux/gitlog-to-changelog: New option `--format' makes
28347         output format string configurable.
28348
28349 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28350
28351         Optimize exclude: use hash tables for non-wildcard patterns.
28352
28353         * lib/exclude.c: Include hash.h and mbuiter.h
28354         (struct exclude_pattern, exclude_segment): New data types.
28355         (struct exclude): Rewrite.
28356         (fnmatch_pattern_has_wildcards): New function.
28357         (new_exclude_segment, free_exclude_segment): New functions.
28358         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28359         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28360         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28361         * modules/exclude: Depend on hash and mbuiter.
28362
28363         * modules/exclude-tests: New file.
28364         * tests/test-exclude.c: New file.
28365         * tests/test-exclude1.sh: New file.
28366         * tests/test-exclude2.sh: New file.
28367         * tests/test-exclude3.sh: New file.
28368         * tests/test-exclude4.sh: New file.
28369         * tests/test-exclude5.sh: New file.
28370         * tests/test-exclude6.sh: New file.
28371         * tests/test-exclude7.sh: New file.
28372
28373 2009-08-12  Bruno Haible  <bruno@clisp.org>
28374
28375         Ensure that getopt() gets declared by <unistd.h>.
28376         * lib/unistd.in.h: Conditionally include getopt.h.
28377         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28378         Set GNULIB_UNISTD_H_GETOPT.
28379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28380         GNULIB_UNISTD_H_GETOPT.
28381         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28382
28383 2009-08-12  Bruno Haible  <bruno@clisp.org>
28384
28385         Clarify logic.
28386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28387         gl_replace_getopt instead of GETOPT_H.
28388
28389 2009-08-12  Bruno Haible  <bruno@clisp.org>
28390
28391         * m4/getopt.m4: Add comments.
28392
28393 2009-08-12  Bruno Haible  <bruno@clisp.org>
28394
28395         Disable multithread support by default on Cygwin 1.5.x.
28396         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28397         set gl_use_threads=no if not specified otherwise.
28398
28399 2009-08-11  Bruno Haible  <bruno@clisp.org>
28400
28401         Avoid compilation error on NetBSD 5.0.
28402         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28403         * tests/test-stdio.c: Likewise.
28404         * tests/test-stdlib.c: Likewise.
28405         * tests/test-string.c: Likewise.
28406         * tests/test-unistd.c: Likewise.
28407         Reported by Greg Troxel <gdt@ir.bbn.com>
28408         at <https://savannah.gnu.org/support/?106973>.
28409
28410 2009-08-11  Bruno Haible  <bruno@clisp.org>
28411
28412         * modules/dup2-tests (Depends-on): Remove close.
28413
28414         Undo 2009-07-19 commit.
28415         * modules/acl-tests (Depends-on): Remove close.
28416         * modules/binary-io-tests (Depends-on): Likewise.
28417         * modules/closein-tests (Depends-on): Likewise.
28418         * modules/flock-tests (Depends-on): Likewise.
28419         * modules/fsync-tests (Depends-on): Likewise.
28420         * modules/lseek-tests (Depends-on): Likewise.
28421         * modules/pipe-tests (Depends-on): Likewise.
28422         * modules/posix_spawn-tests (Depends-on): Likewise.
28423         * modules/posix_spawnp-tests (Depends-on): Likewise.
28424         * modules/stat-time-tests (Depends-on): Likewise.
28425         * modules/yesno-tests (Depends-on): Likewise.
28426
28427 2009-08-10  Bruno Haible  <bruno@clisp.org>
28428
28429         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28430
28431 2009-08-10  Bruno Haible  <bruno@clisp.org>
28432
28433         Fix a gcc warning.
28434         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28435
28436 2009-08-10  Bruno Haible  <bruno@clisp.org>
28437
28438         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28439         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28440         not only the first time.
28441         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28442         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28443         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28444         is 1, not only the the first time.
28445
28446 2009-08-10  Bruno Haible  <bruno@clisp.org>
28447
28448         Make it possible to use module 'gethostname' without module 'close'.
28449         * lib/unistd.in.h (close): Evoke a link error only if
28450         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28452         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28453         * modules/unistd (Makefile.am): Substitute
28454         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28455         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28456         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28457         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28458         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28459         * modules/sys_ioctl (Makefile.am): Substitute
28460         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28461         * modules/socket (configure.ac): On native Windows, set
28462         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28463         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28464         Reported by Sam Steingold <sds@gnu.org>.
28465
28466 2009-08-10  Bruno Haible  <bruno@clisp.org>
28467
28468         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28469         * modules/ioctl (configure.ac): Likewise.
28470
28471 2009-08-10  Bruno Haible  <bruno@clisp.org>
28472
28473         Avoid collision between gnulib wrapper and libintl wrapper.
28474         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28475         already defined in intl/printf.c.
28476         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28477         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28478
28479 2009-08-09  Bruno Haible  <bruno@clisp.org>
28480
28481         Make <sys/select.h> really self-contained, also on Solaris 10.
28482         * lib/sys_select.in.h: Include <string.h>.
28483         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28484         Solaris 10 problem.
28485         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28486         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28487         Reported by Jim Meyering.
28488
28489 2009-08-09  Bruno Haible  <bruno@clisp.org>
28490
28491         Avoid warnings from 'aclocal' that are due to a use of macro name
28492         AM_XGETTEXT_OPTION that is not defined in automake.
28493         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28494         automake.
28495         * modules/error (configure.ac): Likewise.
28496         * modules/propername (configure.ac): Likewise.
28497         * modules/vasprintf (configure.ac): Likewise.
28498         * modules/verror (configure.ac): Likewise.
28499         * modules/xprintf (configure.ac): Likewise.
28500         * modules/xvasprintf (configure.ac): Likewise.
28501
28502 2009-08-08  Bruno Haible  <bruno@clisp.org>
28503
28504         Avoid compilation error in C++ mode.
28505         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28506         Reported by Sam Steingold <sds@gnu.org>.
28507
28508 2009-08-08  Bruno Haible  <bruno@clisp.org>
28509
28510         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28511         for the various Unix platforms.
28512         * doc/posix-headers/limits.texi: Update platforms list regarding
28513         HOST_NAME_MAX.
28514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28515
28516 2009-08-07  Jim Meyering  <meyering@redhat.com>
28517
28518         selinux-at: fix typo in a comment
28519         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28520         Spotted by Paolo Bonzini.
28521
28522         selinux-at: remove redundant m4 code, add documentation
28523         * modules/selinux-at (configure.ac): Remove redundant code.
28524         LIB_SELINUX is already set via the dependent module, selinux-h.
28525         (Include): Add quotes around selinux-at.h.
28526         * lib/selinux-at.h: Add documentation.
28527         Reported by Bruno Haible in
28528         http://marc.info/?l=gnulib-bug&m=124958988300749
28529
28530 2009-08-07  Bruno Haible  <bruno@clisp.org>
28531
28532         Avoid link error on MacOS X 10.3 and 10.4.
28533         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28534         on non-ELF systems.
28535         * lib/argp-pv.c (argp_program_version): Likewise.
28536         Reported by Simon Josefsson.
28537
28538 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28539
28540         * tests/test-version-etc.sh: Use $EXEEXT.
28541
28542 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28543
28544         update-copyright: update documentation to point to maint.mk
28545         * build-aux/update-copyright: Here.
28546
28547 2009-08-06  Jim Meyering  <meyering@redhat.com>
28548
28549         maint.mk: support update-copyright-local
28550         * top/maint.mk (update-copyright-local): Define place-holder.
28551         (update-copyright): Depend on $(update-copyright-local).
28552
28553 2009-08-06  Jim Meyering  <meyering@redhat.com>
28554
28555         selinux-at: new module
28556         Initially written for coreutils, this module will soon be
28557         used by findutils, too.
28558         * MODULES.html.sh [Misc]: Add selinux-at.
28559         * lib/selinux-at.h: New file, from coreutils.
28560         * lib/selinux-at.c: Likewise.
28561         * modules/selinux-at: Likewise.
28562         (License): Change from LGPL to GPL, since it depends
28563         on the GPL'd openat module.
28564
28565         doc: update README
28566         * README: Remove references to cogito.
28567         Remove cvs-repo-updating instructions from 2007.
28568         Don't imply that CVS is better if you have limited disk space.
28569
28570 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28571
28572         update-copyright: support C-style comments
28573         * build-aux/update-copyright: Implement and document.
28574         * tests/test-update-copyright.sh: Test.
28575
28576 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28577
28578         update-copyright: support omitted "(C)"
28579         * build-aux/update-copyright: Implement and document.  Also,
28580         allow variable whitespace before "(C)".
28581         * tests/test-update-copyright.sh: Test.
28582
28583 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28584
28585         update-copyright: don't trip on non-FSF copyright statements
28586         * build-aux/update-copyright: Fix so that the first correctly
28587         formatted FSF copyright statement is recognized no matter what
28588         appears before it.  Update documentation.
28589         * tests/test-update-copyright.sh: Test that.
28590
28591 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28592
28593         update-copyright: clean up code a little
28594         * build-aux/update-copyright: Append "_re" to the name of any
28595         variable holding a regular expression.
28596         Replace "old" and "new" with "stmt" in variable names.
28597         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28598         handled correctly.
28599         Format code more consistently.
28600
28601 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28602
28603         update-copyright-tests: improve portability
28604         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28605         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28606
28607 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28608
28609         update-copyright: support @copyright{} and &copy;
28610         * build-aux/update-copyright: Implement and document.
28611         * tests/test-update-copyright.sh: Test.
28612
28613 2009-08-04  Jim Meyering  <meyering@redhat.com>
28614
28615         update-copyright-tests: correctly test EOL=\r\n handling
28616         * tests/test-update-copyright.sh: Put \r at the end of some lines
28617         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28618
28619         maint.mk: make update-copyright exclusion list more configurable
28620         * top/maint.mk (update-copyright): Default to excluding COPYING,
28621         but allow an override, in case someone does want to update that file.
28622
28623         maint.mk: don't update copyright date in COPYING
28624         * top/maint.mk (update-copyright): Exclude COPYING.
28625
28626         maint.mk: add a copyright-updating rule
28627         * top/maint.mk (update-copyright): New rule.
28628         Derived from coreutils/Makefile.am.
28629
28630         update-copyright: rename some variables
28631         * build-aux/update-copyright: Rename a few variables for clarity.
28632         Tweak syntax.  List Joel E. Denny as coauthor.
28633
28634 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28635
28636         update-copyright: fix bug for 2-digit last year and add tests
28637         * build-aux/update-copyright: Fix bug.
28638         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28639         specified.
28640         * modules/update-copyright-tests: New
28641         * tests/test-update-copyright.sh: New.
28642
28643 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28644
28645         update-copyright: handle leading tabs in line prefix
28646         * build-aux/update-copyright: Count leading tabs as 8 spaces
28647         when computing margin.  This helps with the formatting of
28648         ChangeLogs, for example.
28649         Fix documentation a little.
28650
28651 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28652
28653         update-copyright: support EOL=\r\n
28654         * build-aux/update-copyright: Implement that.
28655
28656 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28657
28658         update-copyright: automatically format copyright statements
28659         * build-aux/update-copyright: Implement that.
28660         Also, be a little more predictable and safer by always failing
28661         when the full copyright format is not perfectly recognized as an
28662         unbroken whole.  Discussed at
28663         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28664         Rewrite documentation.
28665
28666 2009-08-03  Bruno Haible  <bruno@clisp.org>
28667
28668         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28669
28670 2009-08-02  Bruno Haible  <bruno@clisp.org>
28671
28672         Tests for module 'uname'.
28673         * modules/uname-tests: New file.
28674         * tests/test-uname.c: New file.
28675
28676         New module 'uname'.
28677         * lib/uname.c: New file.
28678         * m4/uname.m4: New file.
28679         * modules/uname: New file.
28680         * doc/posix-functions/uname.texi: Mention the new module.
28681
28682 2009-08-02  Bruno Haible  <bruno@clisp.org>
28683
28684         Tests for module 'sys_utsname'.
28685         * modules/sys_utsname-tests: New file.
28686         * tests/test-sys_utsname.c: New file.
28687
28688         New module 'sys_utsname'.
28689         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28690         * m4/sys_utsname_h.m4: New file.
28691         * modules/sys_utsname: New file.
28692         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28693
28694 2009-08-02  Bruno Haible  <bruno@clisp.org>
28695
28696         Implicitly initialize the sockets library.
28697         * lib/gethostname.c: Include sockets.h.
28698         (rpl_gethostname): Invoke gl_sockets_startup.
28699         * lib/socket.c: Include sockets.h.
28700         (rpl_socket): Invoke gl_sockets_startup.
28701         * modules/gethostname (Depends-on): Add sockets.
28702         * modules/socket (Depends-on): Likewise.
28703         * tests/test-poll.c: Don't include sockets.h.
28704         (main): Don't invoke gl_sockets_startup.
28705         * tests/test-select.c: Don't include sockets.h.
28706         (main): Don't invoke gl_sockets_startup.
28707
28708 2009-08-02  Bruno Haible  <bruno@clisp.org>
28709
28710         Allow multiple calls to gl_sockets_startup.
28711         * lib/sockets.c (initialized_sockets_version): New variable.
28712         (gl_sockets_startup): Do nothing if already called for this or a higher
28713         version.
28714         (gl_sockets_cleanup): Reset initialized_sockets_version.
28715
28716 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28717
28718         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28719         different project/version.
28720
28721 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28722             Bruno Haible  <bruno@clisp.org>
28723
28724         Tests for module 'pipe-filter-gi'.
28725         * modules/pipe-filter-gi-tests: New file.
28726         * tests/test-pipe-filter-gi1.sh: New file.
28727         * tests/test-pipe-filter-gi1.c: New file.
28728         * tests/test-pipe-filter-gi2.sh: New file.
28729         * tests/test-pipe-filter-gi2-main.c: New file.
28730         * tests/test-pipe-filter-gi2-child.c: New file.
28731
28732         New module 'pipe-filter-gi'.
28733         * lib/pipe-filter-gi.c: New file.
28734         * modules/pipe-filter-gi: New file.
28735
28736 2009-08-02  Bruno Haible  <bruno@clisp.org>
28737             Paolo Bonzini  <bonzini@gnu.org>
28738
28739         Tests for module 'pipe-filter-ii'.
28740         * modules/pipe-filter-ii-tests: New file.
28741         * tests/test-pipe-filter-ii1.sh: New file.
28742         * tests/test-pipe-filter-ii1.c: New file.
28743         * tests/test-pipe-filter-ii2.sh: New file.
28744         * tests/test-pipe-filter-ii2-main.c: New file.
28745         * tests/test-pipe-filter-ii2-child.c: New file.
28746
28747         New module 'pipe-filter-ii'.
28748         * lib/pipe-filter.h: New file.
28749         * lib/pipe-filter-ii.c: New file.
28750         * lib/pipe-filter-aux.h: New file.
28751         * modules/pipe-filter-ii: New file.
28752
28753 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28754
28755         * lib/gc-libgcrypt.c: Change copyright to FSF.
28756         * lib/gc-gnulib.c: Likewise.
28757
28758 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28759
28760         * lib/gethostname.c: Include limits.h.
28761
28762 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28763             Bruno Haible  <bruno@clisp.org>
28764
28765         Ensure HOST_NAME_MAX as part of the gethostname module.
28766         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28767         define also HOST_NAME_MAX.
28768         * tests/test-gethostname.c: Include <limits.h>.
28769         (main): Check also HOST_NAME_MAX.
28770         * doc/posix-headers/limits.texi: Document the mingw problem.
28771
28772 2009-08-02  Bruno Haible  <bruno@clisp.org>
28773
28774         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28775         Add comments.
28776
28777 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28778
28779         * lib/gethostname.c: Add Windows wrapper.
28780         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28781         * modules/gethostname: Depend on sys_socket & errno, for also
28782         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28783         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28784
28785 2009-07-31  Jim Meyering  <meyering@redhat.com>
28786
28787         getloadavg: fix symbol name in comment
28788         * lib/getloadavg.c: Correct a typo I introduced when adding
28789         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28790         Matt Kraai spotted the problem.
28791
28792 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28793
28794         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28795         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28796         code also if ! defined N_NAME_POINTER.
28797         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28798         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28799         but the n_name member is a 12-byte array.
28800
28801 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28802
28803         update-copyright: generalize comment handling
28804         * build-aux/update-copyright: Handle copyright statements
28805         within more comment styles.
28806         Document usage.
28807         Report any file with an external copyright holder or parse failure.
28808
28809 2009-07-29  Jim Meyering  <meyering@redhat.com>
28810
28811         mktime: correct setting of REPLACE_MKTIME
28812         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28813
28814         update-copyright: new module
28815         * modules/update-copyright: New file.
28816         * build-aux/update-copyright: New file.
28817         * MODULES.html.sh (maint+release support): Add update-copyright.
28818
28819 2009-07-27  Bruno Haible  <bruno@clisp.org>
28820
28821         Fix compilation error when <ctime> is used and mktime is replaced.
28822         * lib/time.in.h (mktime): New declaration.
28823         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28824         REPLACE_MKTIME instead of defining mktime in config.h.
28825         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28826         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28827         Reported by Ross McFarland <rwmcfa1@neces.com>.
28828
28829 2009-07-27  Bruno Haible  <bruno@clisp.org>
28830
28831         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28832         Reported by Matt Kraai <mkraai@beckman.com>.
28833
28834 2009-07-25  Jim Meyering  <meyering@redhat.com>
28835
28836         maint.mk: avoid warnings about missing files
28837         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28838         diagnostic when .prev-version does not exist.
28839         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28840         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28841         nonexistent cfg.mk.
28842         Suggestions from Simon Josefsson.
28843
28844 2009-07-25  Bruno Haible  <bruno@clisp.org>
28845
28846         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28847         defined as macros. Needed on QNX 6.4.1.
28848         Reported by Matt Kraai <mkraai@beckman.com>.
28849
28850 2009-07-23  Jim Meyering  <meyering@redhat.com>
28851
28852         maint.mk: invoke "make dist" with a working value of XZ_OPT
28853         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28854
28855 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28856
28857         Make fseeko.c compile on QNX.
28858         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28859
28860 2009-07-22  Peter Simons  <simons@cryp.to>
28861
28862         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28863         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28864         * lib/md4.h: Likewise.
28865         * lib/md5.h: Likewise.
28866         * lib/sha1.h: Likewise.
28867         * lib/sha256.h: Likewise.
28868         * lib/sha512.h: Likewise.
28869
28870         tests-sha1: don't assign literal string to 'char *' variable
28871         * tests/test-sha1.c (main): Declare locals with "const" to match
28872         attributes of the right hand side.
28873
28874 2009-07-21  Eric Blake  <ebb9@byu.net>
28875
28876         dup2: fix more mingw problems
28877         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28878         fd to itself.
28879         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28880         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28881         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28882         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28883         care of mingw bugs.
28884
28885 2009-07-21  Jim Meyering  <meyering@redhat.com>
28886
28887         vc-list-files: avoid failure when /bin/sh is dash
28888         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28889         On some Debian based systems, /bin/sh is a symlink to dash, and running
28890         this command would omit the "/" following each 'tests' prefix:
28891           dash -x build-aux/vc-list-files -C . tests
28892         That is because bash and dash work differently:
28893           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28894           bash ok
28895           dash odd
28896
28897 2009-07-21  Eric Blake  <ebb9@byu.net>
28898
28899         dup2-tests: test previous patch
28900         * modules/dup2-tests: New file.
28901         * tests/test-dup2.c: Likewise.
28902         * tests/test-open.c (main): Avoid unspecified behavior.
28903         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28904         test.
28905
28906         dup2: work around mingw and cygwin 1.5 bug
28907         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28909         * modules/unistd (Makefile.am): Substitute it.
28910         * lib/unistd.in.h (dup2): Declare the replacement.
28911         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28912         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28913         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28914         * modules/execute (Depends-on): Add dup2.
28915         * modules/fseterr (Depends-on): Likewise.
28916         * modules/pipe (Depends-on): Likewise.
28917         * modules/posix_spawn-internal (Depends-on): Likewise.
28918
28919 2009-07-21  Bruno Haible  <bruno@clisp.org>
28920
28921         * modules/.gitattributes: New file.
28922
28923 2009-07-20  Bruno Haible  <bruno@clisp.org>
28924
28925         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28926         (main): Use it.
28927
28928 2009-07-20  Eric Blake  <ebb9@byu.net>
28929
28930         test-pipe: make a bit more robust.
28931         * tests/test-pipe.c (myerr): Allow error messages regardless of
28932         what we do to stderr.
28933         (test_pipe): Rearrange to avoid deadlock.
28934         (child_main): Try a larger read, to ensure we avoided deadlock.
28935         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28936         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28937         if misused.
28938
28939 2009-07-19  Jim Meyering  <meyering@redhat.com>
28940
28941         fts: avoid false-positive cycle-detection
28942         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28943         for each new command line argument.
28944
28945 2009-07-19  Bruno Haible  <bruno@clisp.org>
28946
28947         Fix build error on mingw with the modules sys_select and unistd.
28948         * modules/acl-tests (Depends-on): Add close.
28949         * modules/binary-io-tests (Depends-on): Likewise.
28950         * modules/closein-tests (Depends-on): Likewise.
28951         * modules/flock-tests (Depends-on): Likewise.
28952         * modules/fsync-tests (Depends-on): Likewise.
28953         * modules/lseek-tests (Depends-on): Likewise.
28954         * modules/pipe-tests (Depends-on): Likewise.
28955         * modules/posix_spawn-tests (Depends-on): Likewise.
28956         * modules/posix_spawnp-tests (Depends-on): Likewise.
28957         * modules/stat-time-tests (Depends-on): Likewise.
28958         * modules/yesno-tests (Depends-on): Likewise.
28959
28960 2009-07-19  Bruno Haible  <bruno@clisp.org>
28961
28962         Unify conditionals.
28963         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28964         macros, not at the compiler macros.
28965         * lib/pipe.c: Likewise.
28966         * lib/execute.c: Likewise.
28967         * lib/spawni.c: Likewise.
28968
28969 2009-07-19  Bruno Haible  <bruno@clisp.org>
28970
28971         Fix handling of closed stdin/stdout/stderr on mingw.
28972         * lib/w32spawn.h: Include unistd.h.
28973         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28974         file descriptor with O_NOINHERIT flag.
28975         (fd_safer_noinherit): New function, based on fd-safer.c.
28976         (dup_safer_noinherit): New function, based on dup-safer.c.
28977         (undup_safer_noinherit): New function.
28978         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28979         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28980         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28981         instead of fd_safer.
28982         * tests/test-pipe.c: Include <windows.h>.
28983         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28984         result.
28985
28986         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28987         from main.
28988         (test_pipe): Pass an extra argument for disambiguation.
28989         (main): Invoke parent_main or child_main.
28990
28991         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28992         consistently.
28993
28994 2009-07-18  Eric Blake  <ebb9@byu.net>
28995
28996         test-pipe: fix mingw build
28997         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28998
28999 2009-07-18  Bruno Haible  <bruno@clisp.org>
29000
29001         * modules/pipe-tests (Makefile.am): Fix typo.
29002
29003 2009-07-18  Eric Blake  <ebb9@byu.net>
29004
29005         error: fix mingw build
29006         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29007         Reported by Bruno Haible.
29008
29009         error: avoid undefined use of stdout
29010         * lib/error.c (error, error_at_line): Check that fd 1 is open
29011         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29012         is handling faults and the close_stdout module wants to report the
29013         detection of closed stdout as an error.
29014
29015 2009-07-17  Eric Blake  <ebb9@byu.net>
29016
29017         pipe: be robust in face of closed fds
29018         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29019         should cause child to misbehave.
29020         * modules/pipe-tests: New module.
29021         * tests/test-pipe.c: New file.
29022         * tests/test-pipe.sh: New file.
29023         Reported by Akim Demaille.
29024
29025 2009-07-14  Bruno Haible  <bruno@clisp.org>
29026
29027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29028         Reported by anonymous kc.
29029
29030 2009-07-07  Jim Meyering  <meyering@redhat.com>
29031
29032         maint.mk: don't look for translatable strings in *.m4 or *.mk
29033         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29034         when searching for translatable strings.
29035
29036 2009-07-05  Jim Meyering  <meyering@redhat.com>
29037
29038         remove superfluous parentheses in STREQ definition
29039         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29040         * lib/getugroups.c (STREQ): Likewise.
29041         * lib/fnmatch.c (STREQ): Likewise.
29042         Spotted by Bruno Haible.
29043
29044 2009-07-04  Jim Meyering  <meyering@redhat.com>
29045
29046         argv-iter: new module
29047         * MODULES.html.sh: Add argv-iter.
29048         * lib/argv-iter.c, lib/argv-iter.h: New files.
29049         * modules/argv-iter: New file.
29050         * modules/argv-iter-tests: New file.
29051         * tests/test-argv-iter.c: Test it.
29052
29053 2009-07-04  Bruno Haible  <bruno@clisp.org>
29054
29055         Fix assertion.
29056         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29057         contains more exact copies of a given entry than file2, leave the extra
29058         copies unpaired rather than aborting.
29059         Reported by Eric Blake.
29060
29061 2009-07-02  Bruno Haible  <bruno@clisp.org>
29062
29063         Speedup git-merge-changelog for git cherry-pick.
29064         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29065         (entries_mapping_get): New function, extracted from compute_mapping.
29066         (entries_mapping_reverse_get): New function.
29067         (compute_mapping): Add a 'full' argument. Return the result in a
29068         'struct entries_mapping'.
29069         (main): Update. Access the mappings through entries_mapping_get.
29070         Reported by Eric Blake.
29071
29072 2009-07-02  Bruno Haible  <bruno@clisp.org>
29073
29074         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29075         best_i.
29076
29077 2009-07-02  Bruno Haible  <bruno@clisp.org>
29078
29079         Speed up approximate search for matching ChangeLog entries.
29080         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29081         argument. Call fstrcmp_bounded instead of fstrcmp.
29082         (compute_mapping, try_split_merged_entry, main): Update callers.
29083
29084 2009-07-02  Bruno Haible  <bruno@clisp.org>
29085
29086         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29087
29088 2009-06-30  Bruno Haible  <bruno@clisp.org>
29089
29090         Reduce the number of uc_is_cased calls.
29091         * lib/unicase.h (casing_suffix_context_t): Add
29092         'first_char_except_ignorable' field.
29093         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29094         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29095         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29096         Update initializer.
29097         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29098         case-ignorable characters.
29099         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29100         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29101         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29102         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29103         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29104
29105 2009-06-30  Bruno Haible  <bruno@clisp.org>
29106
29107         Tests for module 'unicase/ignorable'.
29108         * modules/unicase/ignorable-tests: New file.
29109         * tests/unicase/test-ignorable.c: New file, generated by
29110         gen-uni-tables.
29111
29112         Tests for module 'unicase/cased'.
29113         * modules/unicase/cased-tests: New file.
29114         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29115         * tests/unicase/test-predicate-part1.h: New file, derived from
29116         tests/unictype/test-predicate-part1.h.
29117         * tests/unicase/test-predicate-part2.h: New file, same as
29118         tests/unictype/test-predicate-part2.h.
29119
29120         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29121         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29122         (output_casing_properties): New function.
29123         (main): Call it.
29124         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29125         * lib/unicase/cased.c: Include unictype/bitmap.h.
29126         (uc_is_cased): Define through a bitmap lookup.
29127         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29128         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29129         (uc_is_case_ignorable): Define through a bitmap lookup.
29130         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29131         lib/unictype/bitmap.h.
29132         (Depends-on): Add inline. Clean up.
29133         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29134         lib/unictype/bitmap.h.
29135         (Depends-on): Add inline. Clean up.
29136         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29137         recognition.
29138         * tests/unicase/test-u16-tolower.c (main): Likewise.
29139         * tests/unicase/test-u32-tolower.c (main): Likewise.
29140
29141 2009-06-30  Bruno Haible  <bruno@clisp.org>
29142
29143         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29144         * lib/unicase/u16-casemap.c: Likewise.
29145         * lib/unicase/u32-casemap.c: Likewise.
29146
29147 2009-06-29  Bruno Haible  <bruno@clisp.org>
29148
29149         Define u32_casefold as a wrapper around u32_ct_casefold.
29150         * lib/unicase/u32-casefold.c: Update.
29151         * modules/unicase/u32-casefold (Depends-on): Add
29152         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29153         unicase/empty-suffix-context. Clean up.
29154
29155         Define u16_casefold as a wrapper around u16_ct_casefold.
29156         * lib/unicase/u16-casefold.c: Update.
29157         * modules/unicase/u16-casefold (Depends-on): Add
29158         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29159         unicase/empty-suffix-context. Clean up.
29160
29161         Define u8_casefold as a wrapper around u8_ct_casefold.
29162         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29163         * lib/unicase/u8-casefold.c: Update.
29164         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29165         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29166
29167         Define u32_totitle as a wrapper around u32_ct_totitle.
29168         * lib/unicase/u32-totitle.c: Update.
29169         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29170         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29171
29172         Define u16_totitle as a wrapper around u16_ct_totitle.
29173         * lib/unicase/u16-totitle.c: Update.
29174         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29175         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29176
29177         Define u8_totitle as a wrapper around u8_ct_totitle.
29178         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29179         functions.
29180         (FUNC): Delegate to U_CT_TOTITLE.
29181         * lib/unicase/u8-totitle.c: Update.
29182         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29183         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29184
29185         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29186         invocation.
29187         * modules/unicase/u32-tolower (Depends-on): Add
29188         unicase/empty-prefix-context, unicase/empty-suffix-context.
29189
29190         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29191         invocation.
29192         * modules/unicase/u16-tolower (Depends-on): Add
29193         unicase/empty-prefix-context, unicase/empty-suffix-context.
29194
29195         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29196         * modules/unicase/u8-tolower (Depends-on): Add
29197         unicase/empty-prefix-context, unicase/empty-suffix-context.
29198
29199         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29200         invocation.
29201         * modules/unicase/u32-toupper (Depends-on): Add
29202         unicase/empty-prefix-context, unicase/empty-suffix-context.
29203
29204         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29205         invocation.
29206         * modules/unicase/u16-toupper (Depends-on): Add
29207         unicase/empty-prefix-context, unicase/empty-suffix-context.
29208
29209         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29210         * modules/unicase/u8-toupper (Depends-on): Add
29211         unicase/empty-prefix-context, unicase/empty-suffix-context.
29212
29213         New module 'unicase/u32-ct-casefold'.
29214         * lib/unicase/u32-ct-casefold.c: New file.
29215         * modules/unicase/u32-ct-casefold: New file.
29216
29217         New module 'unicase/u16-ct-casefold'.
29218         * lib/unicase/u16-ct-casefold.c: New file.
29219         * modules/unicase/u16-ct-casefold: New file.
29220
29221         New module 'unicase/u8-ct-casefold'.
29222         * lib/unicase/u8-ct-casefold.c: New file.
29223         * lib/unicase/u-ct-casefold.h: New file, derived from
29224         lib/unicase/u-casefold.h.
29225         * modules/unicase/u8-ct-casefold: New file.
29226
29227         New module 'unicase/u32-ct-totitle'.
29228         * lib/unicase/u32-ct-totitle.c: New file.
29229         * modules/unicase/u32-ct-totitle: New file.
29230
29231         New module 'unicase/u16-ct-totitle'.
29232         * lib/unicase/u16-ct-totitle.c: New file.
29233         * modules/unicase/u16-ct-totitle: New file.
29234
29235         New module 'unicase/u8-ct-totitle'.
29236         * lib/unicase/u8-ct-totitle.c: New file.
29237         * lib/unicase/u-ct-totitle.h: New file, derived from
29238         lib/unicase/u-totitle.h.
29239         * modules/unicase/u8-ct-totitle: New file.
29240
29241         New module 'unicase/u32-ct-tolower'.
29242         * lib/unicase/u32-ct-tolower.c: New file.
29243         * modules/unicase/u32-ct-tolower: New file.
29244
29245         New module 'unicase/u16-ct-tolower'.
29246         * lib/unicase/u16-ct-tolower.c: New file.
29247         * modules/unicase/u16-ct-tolower: New file.
29248
29249         New module 'unicase/u8-ct-tolower'.
29250         * lib/unicase/u8-ct-tolower.c: New file.
29251         * modules/unicase/u8-ct-tolower: New file.
29252
29253         New module 'unicase/u32-ct-toupper'.
29254         * lib/unicase/u32-ct-toupper.c: New file.
29255         * modules/unicase/u32-ct-toupper: New file.
29256
29257         New module 'unicase/u16-ct-toupper'.
29258         * lib/unicase/u16-ct-toupper.c: New file.
29259         * modules/unicase/u16-ct-toupper: New file.
29260
29261         New module 'unicase/u8-ct-toupper'.
29262         * lib/unicase/u8-ct-toupper.c: New file.
29263         * modules/unicase/u8-ct-toupper: New file.
29264
29265         Add context arguments to u*_casemap functions.
29266         * lib/unicase/unicasemap.h: Include unicase.h.
29267         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29268         suffix_context arguments.
29269         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29270         functions.
29271         (FUNC): Add prefix_context and suffix_context arguments. Use
29272         uc_is_cased and uc_is_case_ignorable.
29273         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29274         * lib/unicase/u16-casemap.c: Likewise.
29275         * lib/unicase/u32-casemap.c: Likewise.
29276         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29277         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29278         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29279         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29280         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29281         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29282
29283         New module 'unicase/u32-suffix-context'.
29284         * lib/unicase/u32-suffix-context.c: New file.
29285         * modules/unicase/u32-suffix-context: New file.
29286
29287         New module 'unicase/u16-suffix-context'.
29288         * lib/unicase/u16-suffix-context.c: New file.
29289         * modules/unicase/u16-suffix-context: New file.
29290
29291         New module 'unicase/u8-suffix-context'.
29292         * lib/unicase/u8-suffix-context.c: New file.
29293         * lib/unicase/u-suffix-context.h: New file.
29294         * modules/unicase/u8-suffix-context: New file.
29295
29296         New module 'unicase/empty-suffix-context'.
29297         * lib/unicase/empty-suffix-context.c: New file.
29298         * modules/unicase/empty-suffix-context: New file.
29299
29300         New module 'unicase/u32-prefix-context'.
29301         * lib/unicase/u32-prefix-context.c: New file.
29302         * modules/unicase/u32-prefix-context: New file.
29303
29304         New module 'unicase/u16-prefix-context'.
29305         * lib/unicase/u16-prefix-context.c: New file.
29306         * modules/unicase/u16-prefix-context: New file.
29307
29308         New module 'unicase/u8-prefix-context'.
29309         * lib/unicase/u8-prefix-context.c: New file.
29310         * lib/unicase/u-prefix-context.h: New file.
29311         * lib/unicase/context.h: New file.
29312         * modules/unicase/u8-prefix-context: New file.
29313
29314         New module 'unicase/empty-prefix-context'.
29315         * lib/unicase/empty-prefix-context.c: New file.
29316         * modules/unicase/empty-prefix-context: New file.
29317
29318         New module 'unicase/ignorable'.
29319         * lib/unicase/ignorable.c: New file.
29320         * modules/unicase/ignorable: New file.
29321
29322         New module 'unicase/cased'.
29323         * lib/unicase/caseprop.h: New file.
29324         * lib/unicase/cased.c: New file.
29325         * modules/unicase/cased: New file.
29326
29327         New functions for case mapping of substrings.
29328         * lib/unicase.h (casing_prefix_context_t): New type.
29329         (unicase_empty_prefix_context): New variable.
29330         (u8_casing_prefix_context, u16_casing_prefix_context,
29331         u32_casing_prefix_context, u8_casing_prefixes_context,
29332         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29333         declarations.
29334         (casing_suffix_context_t): New type.
29335         (unicase_empty_suffix_context): New variable.
29336         (u8_casing_suffix_context, u16_casing_suffix_context,
29337         u32_casing_suffix_context, u8_casing_suffixes_context,
29338         u16_casing_suffixes_context, u32_casing_suffixes_context,
29339         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29340         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29341         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29342         declarations.
29343
29344 2009-06-28  Jim Meyering  <meyering@redhat.com>
29345
29346         boostrap: indent only with spaces
29347         * build-aux/bootstrap: Indent only with spaces, never TABs.
29348
29349         bootstrap: split long lines
29350         * build-aux/bootstrap: Keep line length < 80.
29351
29352         bootstrap: sync from coreutils
29353         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29354         just as autoreconf does.  Verify a list of prerequisite
29355         package-name,version-number pairs if defined in bootstrap.conf.
29356         Refer to README-prereq, if prerequisites are not satisfied.
29357
29358 2009-06-27  Eric Blake  <ebb9@byu.net>
29359
29360         tests: add test for bogus NULL definition
29361         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29362         * tests/test-stdlib.c: Likewise.
29363         * tests/test-string.c: Likewise.
29364         * tests/test-locale.c: Likewise.
29365         * tests/test-unistd.c: Likewise.
29366         * modules/stdio-tests (Depends-on): Add verify.
29367         * modules/stdlib-tests (Depends-on): Likewise.
29368         * modules/string-tests (Depends-on): Likewise.
29369         * modules/locale-tests (Depends-on): Likewise.
29370         * modules/unistd-tests (Depends-on): Likewise.
29371
29372 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29373
29374         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29375         self-explaining comment.
29376         * m4/selinux-selinux-h: Update serial.
29377         (gl_LIBSELINUX): New macro, adding a warning for missing development
29378         packages to code extracted from...
29379         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29380         Add warning for missing development packages here, too.
29381
29382 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29383
29384         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29385
29386 2009-06-25  Eric Blake  <ebb9@byu.net>
29387
29388         version-etc: fix regression
29389         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29390         gcc.
29391         (version_etc): Use it, to catch bugs with trailing NULL.
29392         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29393         (version_etc_va): Fix logic bug.
29394         * modules/version-etc-tests: Add test.
29395         * tests/test-version-etc.c: New file.
29396         * tests/test-version-etc.sh: Likewise.
29397
29398 2009-06-25  Sam Steingold  <sds@gnu.org>
29399
29400         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29401         mbtowc declaration.
29402
29403 2009-06-25  Eric Blake  <ebb9@byu.net>
29404
29405         fpurge: migrate into <stdio.h>
29406         * lib/fpurge.h: Delete...
29407         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29408         * lib/fpurge.c (fpurge): Change declaring header.
29409         * modules/fpurge (Files): Drop deleted file.
29410         (Depends-on): Add stdio.
29411         (configure.ac): Set witness.
29412         * modules/stdio (Makefile.am): Support fpurge macros.
29413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29414         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29415         * lib/fflush.c: Update client.
29416         * tests/test-fpurge.c: Likewise.
29417         * NEWS: Mention the change.
29418
29419 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29420
29421         * lib/argp-version-etc.c (program_authors): Add const
29422         qualifier.
29423         * lib/version-etc.c: Fix typos in the comments.
29424         * modules/argp-version-etc: Depends on version-etc.
29425
29426 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29427
29428         argp-version-etc: new module.
29429
29430         * lib/argp-version-etc.c: New file.
29431         * lib/argp-version-etc.h: New file.
29432         * modules/argp-version-etc: New file.
29433         * modules/argp-version-etc-tests: New file.
29434         * tests/test-argp-version-etc.c: New test.
29435         * tests/test-argp-version-etc-1.sh: New test.
29436
29437 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29438
29439         Provide additional interfaces and documentation for version-etc
29440         module.
29441
29442         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29443         interfaces.
29444         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29445         prototypes.
29446
29447 2009-06-24  Bruno Haible  <bruno@clisp.org>
29448
29449         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29450         HAVE_LIB${NAME} macro.
29451         Reported by Sam Steingold <sds@gnu.org>.
29452
29453 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29454
29455         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29456         needed.
29457
29458 2009-06-21  Bruno Haible  <bruno@clisp.org>
29459
29460         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29461         work.
29462         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29463         together with LIB${NAME}, LTLIB${NAME}.
29464         Reported by Sam Steingold <sds@gnu.org>.
29465
29466 2009-06-20  Jim Meyering  <meyering@redhat.com>
29467
29468         tests: make sc_require_test_exit_idiom more generic
29469         * top/maint.mk (Exit_witness_file): New overridable variable.
29470         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29471         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29472
29473 2009-06-19  Jim Meyering  <meyering@redhat.com>
29474
29475         hash: reverse order of src/dst parameters in an internal interface
29476         * lib/hash.c (transfer_entries): Reverse order of parameters to
29477         put DST before SRC.  Adjust callers.
29478
29479         tests: test-hash: avoid wholesale duplication
29480         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29481         Instead, use a loop and add a single conditional.
29482
29483         tests: test-hash: allow seed selection via a command line argument
29484         * tests/test-hash.c (get_seed): New function.
29485         (main): Use it.
29486
29487 2009-06-19  Eric Blake  <ebb9@byu.net>
29488
29489         hash: avoid memory leak on allocation failure
29490         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29491         failure.  Factor repeated algorithm...
29492         (transfer_entries): ...into new helper routine.
29493         (hash_delete): React to hash_rehash return value.
29494
29495         hash: reduce memory pressure in hash_rehash no-op case
29496         * lib/hash.c (next_prime): Avoid overflow.
29497         (hash_initialize): Factor bucket size computation...
29498         (compute_bucket_size): ...into new helper function.
29499         (hash_rehash): Use new function and open coding to reduce memory
29500         pressure, and avoid a memory leak in USE_OBSTACK code.
29501         Reported by Jim Meyering.
29502
29503 2009-06-18  Eric Blake  <ebb9@byu.net>
29504
29505         hash: make rotation more obvious
29506         * modules/hash (Depends-on): Add bitrotate and stdint.
29507         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29508         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29509         (SIZE_MAX): Rely on headers for definition.
29510         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29511         (raw_hasher): Use rotr_sz.
29512         Suggested by Jim Meyering.
29513
29514         hash: fix memory leak in last patch
29515         * lib/hash.c (hash_rehash): Avoid memory leak.
29516
29517         hash: avoid no-op rehashing
29518         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29519
29520         hash: provide default callback functions
29521         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29522         (hash_initialize): Use them as defaults.
29523         * tests/test-hash.c (main): Test this.
29524
29525         hash: minor optimization
29526         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29527         when possible.
29528         (hash_initialize): Document this promise.
29529         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29530         * tests/test-hash.c (hash_compare_strings): Test this.
29531
29532 2009-06-18  Bruno Haible  <bruno@clisp.org>
29533
29534         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29535         going to be replaced anyway.
29536
29537 2009-06-18  Bruno Haible  <bruno@clisp.org>
29538
29539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29540         in one place.
29541         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29542         be replaced anyway.
29543
29544 2009-06-18  Eric Blake  <ebb9@byu.net>
29545
29546         hash: check for resize before insertion
29547         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29548         threshold before insertion, so that a pathological hash_rehash
29549         that fills every bucket can still trigger another rehash.
29550
29551 2009-06-18  Jim Meyering  <meyering@redhat.com>
29552
29553         hash-tests: add a loop around the small tests
29554         * tests/test-hash.c (main): Repeat small tests with selected
29555         small initial table sizes.
29556
29557 2009-06-17  Eric Blake  <ebb9@byu.net>
29558
29559         hash: minor cleanups
29560         * lib/hash.h (hash_entry): Make opaque, by moving...
29561         * lib/hash.c (hash_entry): ...here.
29562         (hash_insert): Clarify restrictions on what can be inserted.
29563         (hash_get_next): Clarify when it is safe to remove an element
29564         during traversal.
29565         (check_tuning): Skip verification when tuning is known safe.
29566         (hash_initialize): Clarify restrictions on tuning.
29567
29568 2009-06-17  Jim Meyering  <jim@meyering.net>
29569         and Eric Blake  <ebb9@byu.net>
29570
29571         hash-tests: new module
29572         * modules/hash-tests: New file.
29573         * tests/test-hash.c: New file.
29574
29575 2009-06-17  Eric Blake  <ebb9@byu.net>
29576
29577         strstr-simple: document new module
29578         * MODULES.html.sh: Document new module.
29579
29580         strstr, strcasestr: replace on platforms with broken memchr
29581         * modules/strstr: Split into...
29582         * modules/strstr-simple: ...new module that does not care about
29583         performance, but does care about glibc bug.
29584         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29585         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29586         if platform memchr is broken, per Debian bug 521737.
29587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29588         memchr.
29589         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29590         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29591         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29592         * modules/mountlist (Depends-on): Add strstr-simple.
29593         * modules/gen-uni-tables (Depends-on): Likewise.
29594         * modules/argz (Depends-on): Add strstr.
29595
29596 2009-06-17  Bruno Haible  <bruno@clisp.org>
29597
29598         * modules/posix_spawn-internal (Depends-on): Add errno.
29599
29600 2009-06-17  Bruno Haible  <bruno@clisp.org>
29601
29602         Define missing ESTALE on Interix 3.5.
29603         * lib/errno.in.h (ESTALE): Assign a value if missing.
29604         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29605         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29606         missing.
29607         * doc/posix-headers/errno.texi: Mention the Interix bug.
29608         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29609
29610 2009-06-15  Eric Blake  <ebb9@byu.net>
29611
29612         memchr, memchr2: add valgrind exception
29613         * lib/memchr.valgrind: New file.
29614         * lib/memchr2.valgrind: New file.
29615         * modules/memchr (Files): Distribute valgrind file.
29616         * modules/memchr2 (Files): Likewise.
29617
29618         docs: memchr is no longer obsolete
29619         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29620         * lib/string.in.h (memchr): Simplify logic.
29621
29622 2009-06-14  Jim Meyering  <meyering@redhat.com>
29623
29624         link-follow: fix the "checking..." message to not mention trailing slash
29625         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29626         never considered trailing slashes.
29627
29628 2009-06-14  Bruno Haible  <bruno@clisp.org>
29629
29630         * m4/memchr.m4: Mention also the bug on IA-64.
29631         * doc/posix-functions/memchr.texi: Likewise.
29632
29633 2009-06-12  Eric Blake  <ebb9@byu.net>
29634
29635         memchr: detect broken x86_64 and alpha implementations
29636         * modules/memchr-tests (Depends-on): Move mmap detection...
29637         * modules/memchr (Depends-on): ...here.
29638         (configure.ac): Set indicator.
29639         * lib/string.in.h (memchr): Declare replacement.
29640         * modules/string (Makefile.am): Trigger replacement.
29641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29642         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29643         bugs.
29644         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29645         * modules/getpagesize (License): Relax license.
29646
29647 2009-06-11  Bruno Haible  <bruno@clisp.org>
29648
29649         * lib/idpriv.h: Add more references.
29650
29651 2009-06-08  Bruno Haible  <bruno@clisp.org>
29652
29653         Tests for module 'idpriv-droptemp'.
29654         * modules/idpriv-droptemp-tests: New file.
29655         * tests/test-idpriv-droptemp.sh: New file.
29656         * tests/test-idpriv-droptemp.su.sh: New file.
29657         * tests/test-idpriv-droptemp.c: New file.
29658
29659         New module 'idpriv-droptemp'.
29660         * lib/idpriv-droptemp.c: New file.
29661         * modules/idpriv-droptemp: New file.
29662
29663 2009-06-08  Bruno Haible  <bruno@clisp.org>
29664
29665         Tests for module 'idpriv-drop'.
29666         * modules/idpriv-drop-tests: New file.
29667         * tests/test-idpriv-drop.sh: New file.
29668         * tests/test-idpriv-drop.su.sh: New file.
29669         * tests/test-idpriv-drop.c: New file.
29670
29671         New module 'idpriv-drop'.
29672         * lib/idpriv.h: New file.
29673         * lib-idpriv-drop.c: New file.
29674         * m4/idpriv.m4: New file.
29675         * modules/idpriv-drop: New file.
29676
29677 2009-06-08  Bruno Haible  <bruno@clisp.org>
29678
29679         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29680         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29681         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29682         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29683         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29684         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29685         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29686
29687 2009-06-08  Eric Blake  <ebb9@byu.net>
29688
29689         test-strstr: use memory fence, when possible
29690         * tests/test-strstr.c (main): Use memory fence, in order to be
29691         more likely to trigger Debian bug 521737.
29692         * modules/strstr-tests (Files): Pull in additional files.
29693
29694         memchr: no longer obsolete, for wider field testing
29695         * modules/memchr (Status, Notice): Delete, this module is no
29696         longer obsolete.
29697         * modules/vasnprintf (Depends-on): Add memchr.
29698
29699 2009-06-07  Jim Meyering  <meyering@redhat.com>
29700
29701         hash: declare some functions with the warn_unused_result attribute
29702         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29703
29704 2009-06-07  Bruno Haible  <bruno@clisp.org>
29705
29706         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29707         Reported by Eric Blake.
29708
29709 2009-06-06  Eric Blake  <ebb9@byu.net>
29710
29711         test-alignof: fix typo with long double
29712         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29713         compiler error.
29714
29715 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29716
29717         Escape non-texinfo { and }s.
29718         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29719         markup error.
29720
29721 2009-06-04  Jim Meyering  <meyering@redhat.com>
29722
29723         gitlog-to-changelog: don't infloop on an empty commit log
29724         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29725         Reported by Boris Petersen <transacid@centerim.org>.
29726
29727 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29728
29729         version-etc: extend for packagers
29730         Add three new configure options, intended for packagers:
29731           --with-packager="packager name"
29732           --with-packager-version="packager-specific version"
29733           --with-packager-bug-reports="packager bug reporting"
29734         An example with coreutils:
29735           $ ./configure \
29736             --with-packager=Gentoo \
29737             --with-packager-bug-report=http://bugs.gentoo.org/ \
29738             --with-packager-version="patchset 1.6"
29739           $ ./src/ls --version | head -n2
29740           ls (GNU coreutils) 7.1-dirty
29741           Packaged by Gentoo (patchset 1.6)
29742         Note that the bug reporting info via --help doesn't show up because
29743         coreutils uses its own custom emit_bug_reporting_address() implementation
29744         in src/system.h.  If it didn't, it'd look like:
29745           $ ./src/ls --help | tail -n4
29746           Report bugs to <bug-coreutils@gnu.org>.
29747           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29748           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29749           General help using GNU software: <http://www.gnu.org/gethelp/>.
29750         * lib/version-etc.c: Print new information, if provided.
29751         * m4/version-etc.m4: New file.
29752         * modules/version-etc (Files): Add m4/version-etc.m4.
29753         (configure.ac): Add gl_VERSION_ETC.
29754
29755 2009-05-31  Bruno Haible  <bruno@clisp.org>
29756
29757         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29758         and 'int64_t'.
29759         * modules/alignof-tests (Dependencies): Add stdint.
29760         Reported by Eric Blake.
29761
29762 2009-05-31  Bruno Haible  <bruno@clisp.org>
29763
29764         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29765         restriction due to compiler bugs.
29766         Reported by Eric Blake.
29767
29768 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29769             Bruno Haible  <bruno@clisp.org>
29770
29771         Fix test-alignof failure.
29772         * lib/alignof.h (alignof_slot): New macro.
29773         (alignof_type): New macro, with the same semantics as the previous
29774         'alignof'.
29775         (alignof): Alias to alignof_slot.
29776         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29777         check that the results are usable as constant expressions.
29778
29779 2009-05-31  Bruno Haible  <bruno@clisp.org>
29780
29781         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29782         * tests/test-memchr.c (main): Check that memchr does not read past the
29783         first occurrence of the byte.
29784         * tests/test-strstr.c (main): Update comment.
29785         Suggested by Eric Blake.
29786
29787 2009-05-30  Bruno Haible  <bruno@clisp.org>
29788
29789         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29790         detail how to use dumpbin.
29791         Reported by David Byron <dbyron@dbyron.com>.
29792
29793 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29794
29795         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29796
29797 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29798
29799         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29800
29801 2009-05-28  Bruno Haible  <bruno@clisp.org>
29802
29803         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29804         build-aux/ files.
29805
29806 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29807
29808         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29809
29810 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29811
29812         * gnulib-tool (sed_transform_main_lib_file)
29813         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29814         regexps.
29815
29816 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29817
29818         * tests/test-strstr.c: Add another self-test.
29819         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29820         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29821
29822 2009-05-23  Bruno Haible  <bruno@clisp.org>
29823
29824         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29825         change.
29826
29827 2009-05-21  Bruno Haible  <bruno@clisp.org>
29828
29829         Simplify use of mode_t varargs.
29830         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29831         uses 'mode_t' or 'int'.
29832         * lib/openat.c (openat): Likewise.
29833         * lib/open-safer.c (open_safer): Likewise.
29834         * m4/mode_t.m4: New file.
29835         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29836         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29837         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29838         * modules/open (Files): Add m4/mode_t.m4.
29839         * modules/openat (Files): Likewise.
29840         * modules/fcntl-safer (Files): Likewise.
29841         Suggested by Eric Blake.
29842
29843 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29844
29845         * doc/glibc-functions/fallocate.texi: New file.
29846         * doc/gnulib.texi: Include it.
29847
29848 2009-05-21  Eric Blake  <ebb9@byu.net>
29849             Bruno Haible  <bruno@clisp.org>
29850
29851         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29852         invocations.
29853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29854
29855 2009-05-21  Eric Blake  <ebb9@byu.net>
29856             Bruno Haible  <bruno@clisp.org>
29857
29858         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29859         include_next. Fix of 2008-11-20 commit.
29860         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29861         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29862         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29863         NEXT_MATH_H.
29864         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29865         instead of NEXT_MATH_H.
29866
29867 2009-05-21  Bruno Haible  <bruno@clisp.org>
29868
29869         Avoid redefinition warnings for SIZE_MAX.
29870         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29871         Reported by Simon Josefsson.
29872
29873 2009-05-21  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29876         AC_CACHE_VAL.
29877
29878 2009-05-20  Bruno Haible  <bruno@clisp.org>
29879
29880         Make zeroptr.h work on mingw.
29881         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29882         mprotect.
29883         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29884         * modules/memchr2-tests (configure.ac): Likewise.
29885         * modules/memcmp-tests (configure.ac): Likewise.
29886         * modules/memmem-tests (configure.ac): Likewise.
29887         * modules/memrchr-tests (configure.ac): Likewise.
29888         Reported by Simon Josefsson.
29889
29890 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29891
29892         * tests/test-glob.c: Include string.h for strcmp prototype.
29893
29894 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29895
29896         * modules/getdelim (Depends-on): Add explicit stdint, although it
29897         was implicitly already pulled in via realloc-posix.
29898         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29899
29900 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29901
29902         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29903         G. Christensen" <tgc@jupiterrise.com>.
29904         * m4/sys_socket_h.m4: Check for sa_family_t.
29905         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29906         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29907         * tests/test-sys_socket.c: Check that sa_family_t works.
29908
29909 2009-05-18  Eric Blake  <ebb9@byu.net>
29910
29911         maint.mk: allow gnulib_dir in VPATH build
29912         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29913
29914 2009-05-15  Jim Meyering  <meyering@redhat.com>
29915
29916         maint.mk: Give gnulib_dir a default definition.
29917         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29918         Thus, most packages no longer need to specify this variable in cfg.mk
29919
29920 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29921
29922         rename.m4: fix typos that would make non-mingw cross-configure fail
29923         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29924
29925 2009-05-13  Eric Blake  <ebb9@byu.net>
29926
29927         mmap-anon: avoid out-of-order autoconf expansion
29928         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29929         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29930         * modules/memchr-tests (Depends-on): Add extensions.
29931         * modules/memchr2-tests (Depends-on): Add extensions.
29932         * modules/memcmp-tests (Depends-on): Add extensions.
29933         * modules/memmem-tests (Depends-on): Add extensions.
29934         * modules/memrchr-tests (Depends-on): Add extensions.
29935
29936 2009-05-13  Bruno Haible  <bruno@clisp.org>
29937
29938         Make some tests ISO C 99 compliant.
29939         * tests/zerosize-ptr.h: New file.
29940         * tests/test-memchr.c: Include zerosize-ptr.h.
29941         (main): Use a zero-size object pointer instead of NULL.
29942         * tests/test-memchr2.c: Include zerosize-ptr.h.
29943         (main): Use a zero-size object pointer instead of NULL.
29944         * tests/test-memcmp.c: Include zerosize-ptr.h.
29945         (main): Use a zero-size object pointer instead of NULL.
29946         * tests/test-memmem.c: Include zerosize-ptr.h.
29947         (main): Use a zero-size object pointer instead of NULL.
29948         * tests/test-memrchr.c: Include zerosize-ptr.h.
29949         (main): Use a zero-size object pointer instead of NULL.
29950         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29951         m4/mmap-anon.m4.
29952         (Depends-on): Add getpagesize.
29953         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29954         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29955         m4/mmap-anon.m4.
29956         (Depends-on): Add getpagesize.
29957         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29958         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29959         m4/mmap-anon.m4.
29960         (Depends-on): Add getpagesize.
29961         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29962         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29963         m4/mmap-anon.m4.
29964         (Depends-on): Add getpagesize.
29965         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29966         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29967         m4/mmap-anon.m4.
29968         (Depends-on): Add getpagesize.
29969         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29970
29971 2009-05-12  Bruno Haible  <bruno@clisp.org>
29972
29973         Tests for module 'alignof'.
29974         * modules/alignof-tests: New file.
29975         * tests/test-alignof.c: New file.
29976
29977 2009-05-12  Bruno Haible  <bruno@clisp.org>
29978
29979         Fix alignof macro.
29980         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29981         vendor compilers that are always correct.
29982
29983 2009-05-12  Bruno Haible  <bruno@clisp.org>
29984
29985         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29986         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29987         not whether its fully works.
29988
29989 2009-05-12  Bruno Haible  <bruno@clisp.org>
29990
29991         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29992
29993 2009-05-12  Jim Meyering  <meyering@redhat.com>
29994
29995         * top/maint.mk: Adjust backslash alignment.
29996
29997 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29998
29999         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30000
30001 2009-05-11  Eric Blake  <ebb9@byu.net>
30002
30003         argp: avoid undefined behavior
30004         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30005         macros.
30006
30007 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30008
30009         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30010         user.name to prevent git commit from complaining.
30011
30012 2009-05-10  Bruno Haible  <bruno@clisp.org>
30013
30014         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30015         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30016         it rewrites every file name only once.
30017         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30018
30019 2009-05-08  Bruno Haible  <bruno@clisp.org>
30020
30021         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30022         instead of 'max'.
30023
30024 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30025
30026         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30027         sockaddr_storage test.
30028
30029 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30030
30031         * modules/sys_socket (Makefile.am): Substitute
30032         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30033         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30034         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30035         * tests/test-sys_socket.c: Check sockaddr_storage.
30036
30037 2009-05-08  Bruno Haible  <bruno@clisp.org>
30038
30039         New module 'alignof'.
30040         * lib/alignof.h: New file.
30041         * modules/alignof: New file.
30042
30043 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30044             Bruno Haible  <bruno@clisp.org>
30045
30046         Fix test-file-has-acl on FreeBSD.
30047         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30048         mask is implicitly added.
30049         * tests/test-file-has-acl.c: Include <signal.h>.
30050         (main): Terminate the test after 5 seconds.
30051         * modules/acl-tests (configure.ac): Check for alarm function.
30052
30053 2009-05-04  Bruno Haible  <bruno@clisp.org>
30054
30055         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30056         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30057         * modules/errno (configure.ac): Drop AC_REQUIRE.
30058         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30059         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30060
30061 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30062
30063         * modules/glob-tests: New module.
30064         * tests/test-glob.c: Add.
30065
30066 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30067
30068         * modules/fnmatch-tests: New module.
30069         * tests/test-fnmatch.c: Add.
30070
30071 2009-05-04  Eric Blake  <ebb9@byu.net>
30072
30073         maint: make the new no-submodule-changes rule VPATH-safe
30074         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30075
30076 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30077             Bruno Haible  <bruno@clisp.org>
30078
30079         acl: Fix infinite loop on FreeBSD.
30080         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30081         of return value from acl_get_entry.
30082         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30083         Likewise.
30084
30085 2009-05-03  Bruno Haible  <bruno@clisp.org>
30086
30087         * lib/acl-internal.h (acl_entries): Clarify return value.
30088         * lib/acl_entries.c (acl_entries): Likewise.
30089
30090 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30091
30092         Bug fix in acl module.
30093         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30094
30095 2009-05-03  Bruno Haible  <bruno@clisp.org>
30096
30097         Create gperf-generated file in the source dir, not in the build dir.
30098         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30099         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30100         * modules/unicase/locale-language (unicase/locale-languages.h):
30101         Likewise.
30102         * modules/unicase/special-casing (unicase/special-casing-table.h):
30103         Likewise.
30104         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30105         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30106         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30107         Reported by Ralf Wildenhues.
30108
30109 2009-05-03  Bruno Haible  <bruno@clisp.org>
30110
30111         * modules/fnmatch (Description, configure.ac): Taken from
30112         fnmatch-posix.
30113         * modules/fnmatch-posix: Turn into a symbolic reference to the
30114         'fnmatch' module, and deprecate.
30115         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30116
30117 2009-05-03  Bruno Haible  <bruno@clisp.org>
30118
30119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30120         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30121         Reported by Ralf Wildenhues.
30122
30123 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30124
30125         * m4/fnmatch.m4: Fix fnmatch re-define.
30126
30127 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30128
30129         priv-set: new module and tests; adapt write-any-file
30130         * lib/priv-set.c: New file.
30131         * lib/priv-set.h: New file.
30132         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30133         * lib/write-any-file.c: Simplify by using priv-set module.
30134         * m4/priv-set.m4: New file.
30135         * modules/priv-set: New file.
30136         * modules/unlinkdir: Add dependency on priv-set module.
30137         * modules/write-any-file: Likewise.
30138
30139         Tests for module 'priv-set'.
30140         * modules/priv-set-tests: New file.
30141         * tests/test-priv-set.c: New file.
30142
30143 2009-05-03  Jim Meyering  <meyering@redhat.com>
30144             Bruno Haible  <bruno@clisp.org>
30145
30146         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30147         use the converted UTF-8 variant of the name instead.
30148
30149 2009-05-03  Jim Meyering  <meyering@redhat.com>
30150
30151         tests: tighten some getdate tests
30152         * tests/test-getdate.c (main): Tighten tests: require equality,
30153         not just greater than.  Set TZ envvar to UTC0.
30154
30155 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30156
30157         getdate: correctly interpret "next monday" when run on a Monday
30158         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30159         that e.g., "next tues" (when run on a tuesday) results in a date
30160         that is one week in the future, and not today's date.
30161         I.e., add a week when the wday is the same as the current one.
30162         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30163         and earlier by Martin Bernreuther and Jan Minář.
30164         * tests/test-getdate.c (main): Check that "next DAY" is always in
30165         the future and that "last DAY" is always in the past.
30166
30167 2009-05-02  Jim Meyering  <meyering@redhat.com>
30168
30169         build: ensure that a release build fails when a submodule is unclean
30170         * top/maint.mk (no-submodule-changes): New rule.
30171         (alpha beta major): Depend on it.
30172
30173 2009-05-02  Bruno Haible  <bruno@clisp.org>
30174
30175         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30176         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30177         shell variable gl_fnmatch_required to detect which variant is
30178         requested.
30179         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30180         gl_FUNC_FNMATCH_POSIX.
30181         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30182         exclude fnmatch-posix.
30183
30184 2009-05-02  Bruno Haible  <bruno@clisp.org>
30185
30186         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30187         * modules/mbsrtowcs (License): Change to LGPLv2+.
30188         * modules/strnlen1 (License): Likewise.
30189         Reported by Simon Josefsson.
30190
30191 2009-05-02  Bruno Haible  <bruno@clisp.org>
30192
30193         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30194         "cross".
30195         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30196         gnulib-tool was called with option --source-base=lib.
30197
30198 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30199
30200         Use automake *-local hooks without commands, for extensibility.
30201         * modules/localcharset (Makefile.am): Rename install-exec-local
30202         rule to install-exec-localcharset, and make it a prerequisite of
30203         install-exec-local.  Likewise, rename the uninstall-local rule to
30204         uninstall-localcharset, and make it a prerequisite of the former.
30205
30206 2009-05-01  Bruno Haible  <bruno@clisp.org>
30207
30208         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30209         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30210         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30212         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30213         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30214         m4/locale-zh.m4, m4/codeset.m4.
30215
30216         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30217         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30218         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30219         m4/locale-zh.m4.
30220
30221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30222         REPLACE_WCRTOMB if mbstate_t must be replaced.
30223         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30224         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30225
30226 2009-05-01  Bruno Haible  <bruno@clisp.org>
30227
30228         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30229         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30230         dngettext, dcngettext, textdomain, bindtextdomain,
30231         bind_textdomain_codeset): Undefine before redefining.
30232
30233 2009-04-30  Bruno Haible  <bruno@clisp.org>
30234
30235         Fix bug introduced on 2009-04-25.
30236         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30237         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30238         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30239         is defined.
30240         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30241         is defined.
30242         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30243         is defined.
30244         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30245
30246 2009-04-28  Bruno Haible  <bruno@clisp.org>
30247
30248         Comment tweaks.
30249         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30250         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30251         * lib/unicase.h (u*_casexfrm): Likewise.
30252         Reported by Paolo Bonzini.
30253
30254 2009-04-28  Bruno Haible  <bruno@clisp.org>
30255
30256         Fix a compilation error.
30257         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30258         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30259         Reported by Jim Meyering.
30260
30261 2009-04-27  Bruno Haible  <bruno@clisp.org>
30262
30263         New module 'libunistring'.
30264         * modules/libunistring: New file.
30265         * m4/libunistring.m4: New file.
30266         * MODULES.html.sh (Unicode string functions): Add it.
30267
30268 2009-04-27  Eric Blake  <ebb9@byu.net>
30269
30270         maint.mk: allow package-specific header to provide <config.h>
30271         * top/maint.mk (sc_require_config_h): New variable.
30272         (sc_require_config_h, sc_require_config_h_first): Use it.
30273
30274 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30275
30276         * top/maint.mk (sc_avoid_if_before_free): Except
30277         useless-if-before-free script.
30278
30279 2009-04-27  Eric Blake  <ebb9@byu.net>
30280
30281         maintainer-makefile: depend on all required helper scripts
30282         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30283         useless-if-before-free.
30284         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30285         version, rather than assuming gnulib checkout is available.
30286         Reported by Simen Josefsson.
30287
30288 2009-04-26  Bruno Haible  <bruno@clisp.org>
30289
30290         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30291         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30292         "../" or "..".
30293
30294 2009-04-26  Bruno Haible  <bruno@clisp.org>
30295
30296         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30297         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30298         AC_LIB_HAVE_LINKFLAGS.
30299
30300 2009-04-26  Bruno Haible  <bruno@clisp.org>
30301
30302         Simplify calling convention of u*_conv_from_encoding.
30303         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30304         u32_conv_from_encoding): Expect a resultbuf argument and return the
30305         result directly as a pointer.
30306         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30307         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30308         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30309         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30310         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30311         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30312         Update.
30313         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30314         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30315         * lib/vasnprintf.c (VASNPRINTF): Update.
30316         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30317         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30318         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30319         * NEWS: Mention the change.
30320
30321 2009-04-26  Bruno Haible  <bruno@clisp.org>
30322
30323         Simplify calling convention of u*_conv_to_encoding.
30324         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30325         u32_conv_to_encoding): Expect a resultbuf argument and return the
30326         result directly as a pointer.
30327         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30328         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30329         freeing scaled_offsets if mem_iconveha failed.
30330         * lib/unicase/u-casexfrm.h (FUNC): Update.
30331         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30332         * lib/vasnprintf.c (VASNPRINTF): Update.
30333         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30334         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30335         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30336         * NEWS: Mention the change.
30337
30338 2009-04-26  Bruno Haible  <bruno@clisp.org>
30339
30340         Avoid test failures on AIX and OSF/1.
30341         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30342         malloc(0).
30343         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30344         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30345         Likewise.
30346         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30347         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30348         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30349         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30350         * doc/posix-functions/malloc.texi: Document the portability problem
30351         related to malloc(0).
30352
30353 2009-04-26  Bruno Haible  <bruno@clisp.org>
30354
30355         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30356         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30357         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30358
30359 2009-04-25  Bruno Haible  <bruno@clisp.org>
30360
30361         Avoid link error when creating a namespace clean library.
30362         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30363         as macro with arguments if already defined as an alias.
30364         * lib/signbitf.c (gl_signbitf): Don't undefine.
30365         * lib/signbitd.c (gl_signbitd): Don't undefine.
30366         * lib/signbitl.c (gl_signbitl): Don't undefine.
30367
30368 2009-04-25  Jim Meyering  <meyering@redhat.com>
30369
30370         vc-list-files: fix another quoting bug
30371         * build-aux/vc-list-files: Avoid sed backslash expansion
30372         of pathological directory names.
30373
30374 2009-04-25  Eric Blake  <ebb9@byu.net>
30375
30376         vc-list-files: fix shell quoting error
30377         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30378         timestamp.
30379
30380 2009-04-25  Jim Meyering  <meyering@redhat.com>
30381
30382         vc-list-files: restore lost functionality with subdir argument
30383         * build-aux/vc-list-files: When given a non-"." sub-directory
30384         argument, substitute the $dir/ prefix back onto each resulting name.
30385         Otherwise, coreutils' root_tests check would fail.
30386
30387 2009-04-24  Eric Blake  <ebb9@byu.net>
30388
30389         vc-list-files: ignore git symlinks
30390         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30391         than ls-files, to ignore git symlinks.
30392
30393         maint.mk: import improvements from m4
30394         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30395         (move_if_change): Delete unused macro.
30396         (news-date-check, vc-diff-check): Support VPATH builds.
30397         (announcement): Likewise.  Split --bootstrap-tools list...
30398         (boostrap-tools): ...into separate list, which can be overridden
30399         in cfg.mk.
30400         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30401         requiring dependency on useless-if-before-free module.
30402         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30403         Support VPATH builds.
30404
30405 2009-04-24  Jim Meyering  <meyering@redhat.com>
30406
30407         maint.mk: remove coreutils-specific rules and variables
30408         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30409         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30410         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30411
30412         maint.mk: remove obsolete rule
30413         * top/maint.mk (rel-check): Remove rule.
30414         (WGET, WGETFLAGS): Remove now-unused variables.
30415
30416 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30417
30418         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30419         consistency.
30420
30421         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30422         '$(PATH_SEPARATOR)' instead of ':'.
30423
30424 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30425
30426         * lib/getopt1.c (main): Use 'const' for static array.
30427
30428 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30429
30430         * top/maint.mk: Sync with coreutils.
30431         * NEWS: Explain incompatibilities.
30432
30433 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30434             Bruno Haible  <bruno@clisp.org>
30435
30436         Fix cross-compilation results.
30437         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30438         statement, as third argument of AC_TRY_RUN.
30439         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30440         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30441         Likewise.
30442         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30443         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30444         Likewise.
30445         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30446         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30447         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30448
30449 2009-04-20  Bruno Haible  <bruno@clisp.org>
30450
30451         Avoid test failure on mingw.
30452         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30453
30454 2009-04-20  Bruno Haible  <bruno@clisp.org>
30455
30456         Avoid compilation error on mingw.
30457         * modules/localename-tests (Depends-on): Add locale.
30458
30459 2009-04-19  Bruno Haible  <bruno@clisp.org>
30460
30461         Support for building a shared library on Windows platforms.
30462         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30463         (main): Test the presence of UNINORM_NFC here.
30464         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30465         (main): Test the presence of UNINORM_NFD here.
30466         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30467         (main): Test the presence of UNINORM_NFKC here.
30468         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30469         (main): Test the presence of UNINORM_NFKD here.
30470
30471 2009-04-19  Bruno Haible  <bruno@clisp.org>
30472
30473         Avoid a compiler warning.
30474         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30475         Change type of variable 'sequence'.
30476
30477 2009-04-19  Bruno Haible  <bruno@clisp.org>
30478
30479         * modules/configmake (Makefile.am): When the contents of configmake.h
30480         does not change, arrange to preserve its modification time.
30481
30482 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30483
30484         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30485         gettext domain.
30486
30487 2009-04-16  Jim Meyering  <meyering@redhat.com>
30488
30489         useless-if-before-free: improve conversion code
30490         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30491         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30492
30493 2009-04-14  Bruno Haible  <bruno@clisp.org>
30494
30495         * modules/fcntl (Depends-on): Add extensions.
30496         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30497
30498 2009-04-12  Ben Pfaff  <blp@gnu.org>
30499
30500         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30501         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30502
30503 2009-03-20  Ben Pfaff  <blp@gnu.org>
30504
30505         Make rename replace existing destinations on Windows.
30506         * m4/rename.m4: Add test for Mingw.
30507         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30508         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30509         * doc/posix-functions/rename.texi: Document.
30510
30511 2009-04-10  Bruno Haible  <bruno@clisp.org>
30512
30513         New include file "iconveh.h".
30514         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30515         * lib/striconveh.h: Include it.
30516         (enum iconv_ilseq_handler): Remove definition.
30517         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30518         striconveh.h.
30519         * lib/striconveha.c: Include striconveh.h.
30520         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30521         * modules/striconveh (Files): Add lib/iconveh.h.
30522         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30523         lib/striconveh.h.
30524
30525 2009-04-10  Bruno Haible  <bruno@clisp.org>
30526
30527         * lib/uniconv.h: Update comment.
30528
30529 2009-04-10  Bruno Haible  <bruno@clisp.org>
30530
30531         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30532         always.
30533         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30534         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30535         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30536         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30537         "unistring-notinline.h", so that the function gets defined always.
30538         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30539         * lib/unistr/u8-uctomb.c: Likewise.
30540         * lib/unistr/u16-mbtouc.c: Likewise.
30541         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30542         * lib/unistr/u16-uctomb.c: Likewise.
30543         * lib/unistr/u32-mbtouc.c: Likewise.
30544         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30545         * lib/unistr/u32-uctomb.c: Likewise.
30546
30547 2009-04-10  Bruno Haible  <bruno@clisp.org>
30548
30549         Mark 'utime' obsolete.
30550         * modules/utime (Status, Notice): New sections.
30551         Suggested by Jim Meyering.
30552
30553         Fix cross-compile guess for utime test.
30554         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30555         autoconf.
30556         * doc/posix-functions/utime.texi: Give more precisions.
30557         Reported by Jan <ipif@ymail.com>.
30558
30559 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30560
30561         filevercmp: correct today's change
30562         * lib/filevercmp.c: Also handle coreutils' test inputs.
30563         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30564
30565         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30566         for reporting it.
30567         * lib/filevercmp.c: Special handle for "", "." and "..".
30568         * tests/test-filevercmp.c: Enlarge the set suite.
30569
30570 2009-04-07  Jim Meyering  <meyering@redhat.com>
30571
30572         useless-if-before-free: show how to remove braced useless free, too
30573         * build-aux/useless-if-before-free: still only in a comment, though.
30574
30575 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30576
30577         maint.mk: import changes to syntax-check macros from coreutils
30578         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30579         Use them in the relevant macros.
30580
30581 2009-04-06  Bruno Haible  <bruno@clisp.org>
30582
30583         Fix unportable use of bit-fields.
30584         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30585         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30586         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30587
30588 2009-04-06  Bruno Haible  <bruno@clisp.org>
30589
30590         Avoid test failures on AIX and OSF/1.
30591         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30592         that malloc(0) = NULL.
30593         * tests/unicase/test-u8-tolower.c (check): Likewise.
30594         * tests/unicase/test-u8-totitle.c (check): Likewise.
30595         * tests/unicase/test-u8-toupper.c (check): Likewise.
30596         * tests/unicase/test-u16-casefold.c (check): Likewise.
30597         * tests/unicase/test-u16-tolower.c (check): Likewise.
30598         * tests/unicase/test-u16-totitle.c (check): Likewise.
30599         * tests/unicase/test-u16-toupper.c (check): Likewise.
30600         * tests/unicase/test-u32-casefold.c (check): Likewise.
30601         * tests/unicase/test-u32-tolower.c (check): Likewise.
30602         * tests/unicase/test-u32-totitle.c (check): Likewise.
30603         * tests/unicase/test-u32-toupper.c (check): Likewise.
30604         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30605         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30606         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30607         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30608         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30609         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30610         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30611         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30612         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30613         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30614         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30615         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30616
30617 2009-04-05  Bruno Haible  <bruno@clisp.org>
30618
30619         Work around an autoconf limitation.
30620         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30621         comment line if it would be longer than 3 KB.
30622
30623 2009-04-05  Bruno Haible  <bruno@clisp.org>
30624
30625         Avoid test failure with libiconv-1.13.
30626         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30627         of the expected test results.
30628
30629 2009-04-05  Bruno Haible  <bruno@clisp.org>
30630
30631         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30632         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30633         that it should be installed.
30634
30635 2009-04-05  Bruno Haible  <bruno@clisp.org>
30636
30637         * gnulib-tool: New option --copy-file.
30638         (func_usage): Document it.
30639         (func_dest_tmpfilename): Moved out of func_import.
30640         (func_add_file, func_update_file): New functions, extracted from
30641         func_import.
30642         (func_import): Update.
30643
30644 2009-04-05  Karl Berry  <karl@gnu.org>
30645
30646         * README: prominently mention gnulib-tool.
30647         Rearrange sections so getting the code is near the top.
30648
30649 2009-04-05  Bruno Haible  <bruno@clisp.org>
30650
30651         * lib/unicase.h: Mention u*_cmp2.
30652         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30653         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30654         * lib/unicase/ulc-casecmp.c: Likewise.
30655         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30656         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30657         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30658         unistr/u8-cmp.
30659         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30660         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30661         unistr/u16-cmp.
30662         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30663         unistr/u32-cmp.
30664
30665         * lib/uninorm.h: Mention u*_cmp2.
30666         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30667         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30668         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30669         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30670         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30671         unistr/u8-cmp.
30672         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30673         unistr/u16-cmp.
30674         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30675         unistr/u32-cmp.
30676
30677         New module 'unistr/u32-cmp2'.
30678         * lib/unistr/u32-cmp2.c: New file.
30679         * modules/unistr/u32-cmp2: New file.
30680
30681         New module 'unistr/u16-cmp2'.
30682         * lib/unistr/u16-cmp2.c: New file.
30683         * modules/unistr/u16-cmp2: New file.
30684
30685         New module 'unistr/u8-cmp2'.
30686         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30687         * lib/unistr/u8-cmp2.c: New file.
30688         * lib/unistr/u-cmp2.h: New file.
30689         * modules/unistr/u8-cmp2: New file.
30690
30691 2009-04-05  Bruno Haible  <bruno@clisp.org>
30692
30693         * lib/unictype.h (uc_property_is_valid): New macro.
30694         * tests/unictype/test-pr_byname.c (main): Use it.
30695
30696         * lib/unistr.h: Doc fixes.
30697         * lib/uniconv.h: Doc fixes.
30698         * lib/unictype.h: Doc fixes.
30699
30700 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30701
30702         Port coreutils 7.2 to Solaris 8.
30703
30704         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30705         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30706         for Solaris 8.  This is a bit of a hack, as it means it's the
30707         caller's responsibility to add -lnsl if needed, but most likely it
30708         won't be needed since only getaddrinfo uses this and getaddrinfo
30709         isn't needed on Solaris 8.
30710
30711         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30712         problem to Solaris 8 encountered with coreutils 7.2, which
30713         resulted in a message "fnmatch.c:292: warning: passing argument 4
30714         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30715         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30716
30717 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30718
30719         * m4/ld-version-script.m4: Add FIXME comment.
30720
30721 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30722
30723         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30724         SOVERSION variable.
30725
30726 2009-04-02  Bruno Haible  <bruno@clisp.org>
30727
30728         * Makefile (info, html, dvi, pdf): Combine the rules.
30729         Suggested by Jim Meyering.
30730
30731 2009-04-01  Bruno Haible  <bruno@clisp.org>
30732
30733         * Makefile (info, html, dvi, pdf): New targets.
30734         Reported by Reuben Thomas <rrt@sc3d.org>.
30735
30736 2009-04-01  Bruno Haible  <bruno@clisp.org>
30737
30738         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30739         can be put into PATH.
30740         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30741
30742 2009-04-01  Bruno Haible  <bruno@clisp.org>
30743
30744         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30745
30746 2009-04-01  Bruno Haible  <bruno@clisp.org>
30747
30748         Rename module 'visibility'.
30749         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30750         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30751         * doc/gnulib.texi: Update.
30752         * MODULES.html.sh (Misc): Update.
30753         * NEWS: Mention the change.
30754
30755 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30756
30757         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30758         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30759         Eric Blake <ebb9@byu.net> for review.
30760         * MODULES.html.sh: Add lib-msvc-compat.
30761         * doc/gnulib.texi: Link to new section.
30762         * m4/ld-output-def.m4: New file.
30763         * doc/ld-output-def.texi: New file.
30764
30765 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30766
30767         Rename ld-version-script to lib-symbol-versions.  Suggested by
30768         Bruno Haible <bruno@clisp.org>.
30769         * modules/ld-version-script: Renamed to lib-symbol-versions.
30770         * doc/ld-version-script.texi: Fix module name.
30771         * MODULES.html.sh: Add lib-symbol-versions.
30772
30773 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30774
30775         * modules/u64-tests: New file.
30776         * tests/test-u64.c: New file.
30777
30778 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30779
30780         * MODULES.html.sh: Mention u64.
30781         * modules/u64: New module.
30782         * modules/crypto/sha512: Depend on u64 module instead of providing
30783         u64.h.
30784
30785 2009-03-27  Eric Blake  <ebb9@byu.net>
30786
30787         test-strerror: make debugging EAI_SYSTEM easier
30788         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30789         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30790         failure was EAI_SYSTEM.
30791
30792 2009-03-25  Bruno Haible  <bruno@clisp.org>
30793
30794         Fix a problem with --enable-relocatable on Solaris 7.
30795         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30796         since 2008-02-24.
30797
30798 2009-03-25  Eric Blake  <ebb9@byu.net>
30799
30800         test-sockets: avoid gcc warning
30801         * tests/test-sockets.c (main): Silence compiler warning.
30802
30803 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30804
30805         New modules nproc, pthread, contributed by Glen Lenker.
30806
30807         * MODULES.html.sh: Add pthread, nproc.
30808         * lib/nproc.c: New file.
30809         * lib/nproc.h: New file.
30810         * lib/pthread.in.h: New file.
30811         * m4/pthread.m4: New file.
30812         * modules/nproc: New file.
30813         * modules/pthread: New file.
30814
30815 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30816
30817         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30818         New variable.
30819
30820 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30821
30822         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30823         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30824         * tests/test-filevercmp.c: Add tests for backup suffixes.
30825
30826 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30827
30828         * modules/stdlib (Depends-on): Add stdint, needed when defining
30829         struct random_data on, for example, HP-UX 10.20.  Reported by
30830         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30831
30832 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30833
30834         * lib/readline.c (readline): Call fflush on stdout after printing
30835         prompt.
30836
30837 2009-03-20  Bruno Haible  <bruno@clisp.org>
30838
30839         Remove dependency from 'close' module to -lws2_32 on native Windows.
30840         * lib/close-hook.h: New file.
30841         * lib/close-hook.c: New file.
30842         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30843         w32sock.h.
30844         (_gl_close_fd_maybe_socket): Remove function.
30845         (rpl_close): Invoke execute_all_close_hooks instead of
30846         _gl_close_fd_maybe_socket.
30847         * lib/sockets.c: Include close-hook.h, w32sock.h.
30848         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30849         (close_sockets_hook): New variable.
30850         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30851         (gl_sockets_cleanup): Unregister it.
30852         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30853         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30854         * modules/close-hook: New file.
30855         * modules/close (Files): Remove lib/w32sock.h.
30856         (Depends-on): Add close-hook.
30857         (Link): Remove section.
30858         * modules/sockets (Files): Add lib/w32sock.h.
30859         (Depends-on): Add close-hook.
30860         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30861         invocation.
30862         * NEWS: Mention that LIB_CLOSE is gone.
30863
30864 2009-03-23  Eric Blake  <ebb9@byu.net>
30865
30866         signal-tests: test previous patch
30867         * tests/test-signal.c: New file.
30868         * modules/signal-tests: Likewise.
30869
30870         signal.h: always support 'volatile sig_atomic_t'
30871         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30872         (gl_SIGNAL_H_DEFAULTS): Add a default.
30873         * modules/signal (Makefile.am): Substitute if needed.
30874         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30875         users can blindly add volatile.
30876         * doc/posix-headers/signal.texi (signal.h): Document it.
30877         Reported by Matthew Woehlke.
30878
30879 2009-03-23  Jim Meyering  <meyering@redhat.com>
30880
30881         pathmax: PATH_MAX: use pathconf only when available
30882         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30883         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30884         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30885         This avoids a link failure in a PSP cross-compilation environment
30886         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30887
30888         * lib/vasnprintf.c (divide): Fix typo in comment.
30889
30890 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30891
30892         * gnulib-tool (func_filter_filelist): Fix comment.
30893
30894 2009-03-20  Bruno Haible  <bruno@clisp.org>
30895
30896         Make sockets.h self-contained.
30897         * lib/sockets.c: Include sockets.h first.
30898         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30899
30900 2009-03-19  Eric Blake  <ebb9@byu.net>
30901
30902         doc: mention more functions added in cygwin 1.7.0
30903         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30904         addition.
30905         * doc/posix-functions/log2f.texi: Likewise.
30906
30907 2009-03-19  Jim Meyering  <meyering@redhat.com>
30908
30909         fsusage: avoid syntax error due to statement-before-declaration
30910         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30911         after all declarations.  Reported by Matthew Woehlke in
30912         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30913
30914 2009-03-18  Eric Blake  <ebb9@byu.net>
30915
30916         build-aux/compile: sync from automake
30917         * build-aux/compile: New file, from automake.
30918         * config/srclist.txt: Mention build-aux/compile.
30919
30920 2009-03-17  Bruno Haible  <bruno@clisp.org>
30921
30922         * lib/git-merge-changelog.c: Fix typo in comment.
30923         Reported by Reuben Thomas <rrt@sc3d.org>.
30924
30925 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30926
30927         * m4/regex.m4: update and improve help for
30928         --without-included-regex.
30929
30930 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30931
30932         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30933         failure on missing include files.
30934
30935 2009-03-17  Eric Blake  <ebb9@byu.net>
30936
30937         doc: mention more functions added in cygwin 1.7.0
30938         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30939         addition.
30940         * doc/posix-functions/fwscanf.texi: Likewise.
30941         * doc/posix-functions/swprintf.texi: Likewise.
30942         * doc/posix-functions/swscanf.texi: Likewise.
30943         * doc/posix-functions/vfwprintf.texi: Likewise.
30944         * doc/posix-functions/vfwscanf.texi: Likewise.
30945         * doc/posix-functions/vswprintf.texi: Likewise.
30946         * doc/posix-functions/vswscanf.texi: Likewise.
30947         * doc/posix-functions/vwprintf.texi: Likewise.
30948         * doc/posix-functions/vwscanf.texi: Likewise.
30949         * doc/posix-functions/wcscasecmp.texi: Likewise.
30950         * doc/posix-functions/wcsdup.texi: Likewise.
30951         * doc/posix-functions/wcsftime.texi: Likewise.
30952         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30953         * doc/posix-functions/wprintf.texi: Likewise.
30954         * doc/posix-functions/wscanf.texi: Likewise.
30955         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30956
30957 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30958
30959         maint.mk: really add $(AM_MAKEFLAGS)
30960         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30961         was inadvertently omitted in the last commit.
30962         Spotted by Bruno Haible.
30963
30964         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30965         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30966         $(AM_MAKEFLAGS)' rather than plain `make'.
30967
30968         gnulib-tool: execute $MAKE not make
30969         * gnulib-tool: Default $MAKE to 'make'.
30970         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30971         than make.  Initialize $MAKE in the do-autobuild script.
30972
30973         gnulib-tool: use $MAKE not make in generated files
30974         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30975         make, in generated files.  Initialize $MAKE in the do-autobuild
30976         script.
30977
30978         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30979
30980         GNUmakefile: disable parallelism only for multiple, recursive targets
30981         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30982         additions in the Makefile.
30983         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30984         by Automake.
30985         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30986         are listed on the command line and at least one of them is
30987         listed in $(ALL_RECURSIVE_TARGETS).
30988
30989 2009-03-14  Bruno Haible  <bruno@clisp.org>
30990
30991         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30992         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30993         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30994         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30995         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30996         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30997         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30998         unistr/u8-uctomb.
30999         * modules/unistr/u8-strchr (Depends-on): Likewise.
31000         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31001         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31002         unistr/u16-uctomb.
31003         * modules/unistr/u16-strchr (Depends-on): Likewise.
31004         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31005
31006 2009-03-12  Bruno Haible  <bruno@clisp.org>
31007
31008         Work around select() bug on Interix 3.5.
31009         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31010         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31011         * m4/select.m4: New file.
31012         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31013         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31014         * modules/select (Files): Add m4/select.m4.
31015         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31016         * modules/nanosleep (Depends-on): Add select.
31017         * modules/poll (Depends-on): Likewise.
31018         * doc/posix-functions/select.texi: Mention the Interix bug.
31019         Reported by Markus Duft <mduft@gentoo.org>.
31020
31021         * lib/select.c: Renamed from lib/winsock-select.c.
31022         * modules/select (Files): Add lib/select.c, remove
31023         lib/winsock-select.c.
31024         (configure.ac): Update.
31025
31026 2009-03-12  Jim Meyering  <meyering@redhat.com>
31027
31028         avoid gcc warnings about unused macro definitions
31029         * lib/readtokens.c (STREQ): Remove unused definition.
31030         * lib/xmalloc.c (SIZE_MAX): Likewise.
31031         * lib/openat-die.c (N_): Likewise.
31032         * lib/mountlist.c (SIZE_MAX): Remove definition.
31033         Instead, include <stdint.h>.
31034         * lib/readutmp.c: Likewise.
31035         * modules/readutmp (Depends-on): Add stdint.
31036         * modules/mountlist (Depends-on): Add stdint.
31037         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31038
31039 2009-03-10  Bruno Haible  <bruno@clisp.org>
31040
31041         Tests for module 'mbmemcasecoll'.
31042         * modules/mbmemcasecoll-tests: New file.
31043         * tests/test-mbmemcasecoll1.sh: New file.
31044         * tests/test-mbmemcasecoll2.sh: New file.
31045         * tests/test-mbmemcasecoll3.sh: New file.
31046         * tests/test-mbmemcasecoll.c: New file.
31047
31048         New module 'mbmemcasecoll'.
31049         * lib/mbmemcasecoll.h: New file.
31050         * lib/mbmemcasecoll.c: New file.
31051         * modules/mbmemcasecoll: New file.
31052
31053         * tests/test-mbmemcasecmp.h: New file, extracted from
31054         tests/test-mbmemcasecmp.c.
31055         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31056         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31057         (main): Update.
31058         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31059
31060 2009-03-09  Bruno Haible  <bruno@clisp.org>
31061
31062         Tests for module 'mbmemcasecmp'.
31063         * modules/mbmemcasecmp-tests: New file.
31064         * tests/test-mbmemcasecmp1.sh: New file.
31065         * tests/test-mbmemcasecmp2.sh: New file.
31066         * tests/test-mbmemcasecmp3.sh: New file.
31067         * tests/test-mbmemcasecmp.c: New file.
31068
31069         New module 'mbmemcasecmp'.
31070         * lib/mbmemcasecmp.h: New file.
31071         * lib/mbmemcasecmp.c: New file.
31072         * modules/mbmemcasecmp: New file.
31073
31074 2009-03-09  Bruno Haible  <bruno@clisp.org>
31075
31076         Tests for module 'unicase/ulc-casecoll'.
31077         * modules/unicase/ulc-casecoll-tests: New file.
31078         * tests/unicase/test-ulc-casecoll1.sh: New file.
31079         * tests/unicase/test-ulc-casecoll2.sh: New file.
31080         * tests/unicase/test-ulc-casecoll.c: New file.
31081
31082         New module 'unicase/ulc-casecoll'.
31083         * lib/unicase.h (ulc_casecoll): New declaration.
31084         * lib/unicase/ulc-casecoll.c: New file.
31085         * modules/unicase/ulc-casecoll: New file.
31086
31087         New module 'unicase/ulc-casexfrm'.
31088         * lib/unicase.h (ulc_casexfrm): New declaration.
31089         * lib/unicase/ulc-casexfrm.c: New file.
31090         * modules/unicase/ulc-casexfrm: New file.
31091
31092 2009-03-09  Bruno Haible  <bruno@clisp.org>
31093
31094         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31095         invocations.
31096
31097         * m4/mbscasecmp.m4: Remove file.
31098         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31099         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31100
31101         * m4/mbscasestr.m4: Remove file.
31102         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31103         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31104
31105         * m4/mbschr.m4: Remove file.
31106         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31107         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31108
31109         * m4/mbscspn.m4: Remove file.
31110         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31111         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31112
31113         * m4/mbslen.m4: Remove file.
31114         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31115         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31116
31117         * m4/mbsncasecmp.m4: Remove file.
31118         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31119         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31120
31121         * m4/mbsnlen.m4: Remove file.
31122         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31123         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31124
31125         * m4/mbspbrk.m4: Remove file.
31126         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31127         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31128
31129         * m4/mbspcasecmp.m4: Remove file.
31130         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31131         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31132
31133         * m4/mbsrchr.m4: Remove file.
31134         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31135         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31136
31137         * m4/mbssep.m4: Remove file.
31138         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31139         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31140
31141         * m4/mbsspn.m4: Remove file.
31142         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31143         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31144
31145         * m4/mbsstr.m4: Remove file.
31146         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31147         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31148
31149         * m4/mbstok_r.m4: Remove file.
31150         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31151         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31152
31153         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31154
31155         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31156         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31157
31158         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31159
31160 2009-03-08  Bruno Haible  <bruno@clisp.org>
31161
31162         Tests for module 'unicase/ulc-casecmp'.
31163         * modules/unicase/ulc-casecmp-tests: New file.
31164         * tests/unicase/test-ulc-casecmp1.sh: New file.
31165         * tests/unicase/test-ulc-casecmp2.sh: New file.
31166         * tests/unicase/test-ulc-casecmp.c: New file.
31167
31168         New module 'unicase/ulc-casecmp'.
31169         * lib/unicase.h (ulc_casecmp): New declaration.
31170         * lib/unicase/ulc-casecmp.c: New file.
31171         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31172         'const SRC_UNIT *'.
31173         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31174         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31175         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31176         * modules/unicase/ulc-casecmp: New file.
31177
31178         Tests for module 'unicase/u32-is-cased'.
31179         * modules/unicase/u32-is-cased-tests: New file.
31180         * tests/unicase/test-u32-is-cased.c: New file.
31181
31182         Tests for module 'unicase/u16-is-cased'.
31183         * modules/unicase/u16-is-cased-tests: New file.
31184         * tests/unicase/test-u16-is-cased.c: New file.
31185
31186         Tests for module 'unicase/u8-is-cased'.
31187         * modules/unicase/u8-is-cased-tests: New file.
31188         * tests/unicase/test-u8-is-cased.c: New file.
31189         * tests/unicase/test-is-cased.h: New file.
31190
31191         New module 'unicase/u32-is-cased'.
31192         * lib/unicase/u32-is-cased.c: New file.
31193         * modules/unicase/u32-is-cased: New file.
31194
31195         New module 'unicase/u16-is-cased'.
31196         * lib/unicase/u16-is-cased.c: New file.
31197         * modules/unicase/u16-is-cased: New file.
31198
31199         New module 'unicase/u8-is-cased'.
31200         * lib/unicase/u8-is-cased.c: New file.
31201         * lib/unicase/u-is-cased.h: New file.
31202         * modules/unicase/u8-is-cased: New file.
31203
31204         Tests for module 'unicase/u32-is-casefolded'.
31205         * modules/unicase/u32-is-casefolded-tests: New file.
31206         * tests/unicase/test-u32-is-casefolded.c: New file.
31207
31208         Tests for module 'unicase/u16-is-casefolded'.
31209         * modules/unicase/u16-is-casefolded-tests: New file.
31210         * tests/unicase/test-u16-is-casefolded.c: New file.
31211
31212         Tests for module 'unicase/u8-is-casefolded'.
31213         * modules/unicase/u8-is-casefolded-tests: New file.
31214         * tests/unicase/test-u8-is-casefolded.c: New file.
31215         * tests/unicase/test-is-casefolded.h: New file.
31216
31217         New module 'unicase/u32-is-casefolded'.
31218         * lib/unicase/u32-is-casefolded.c: New file.
31219         * modules/unicase/u32-is-casefolded: New file.
31220
31221         New module 'unicase/u16-is-casefolded'.
31222         * lib/unicase/u16-is-casefolded.c: New file.
31223         * modules/unicase/u16-is-casefolded: New file.
31224
31225         New module 'unicase/u8-is-casefolded'.
31226         * lib/unicase/u8-is-casefolded.c: New file.
31227         * modules/unicase/u8-is-casefolded: New file.
31228
31229         Tests for module 'unicase/u32-is-titlecase'.
31230         * modules/unicase/u32-is-titlecase-tests: New file.
31231         * tests/unicase/test-u32-is-titlecase.c: New file.
31232
31233         Tests for module 'unicase/u16-is-titlecase'.
31234         * modules/unicase/u16-is-titlecase-tests: New file.
31235         * tests/unicase/test-u16-is-titlecase.c: New file.
31236
31237         Tests for module 'unicase/u8-is-titlecase'.
31238         * modules/unicase/u8-is-titlecase-tests: New file.
31239         * tests/unicase/test-u8-is-titlecase.c: New file.
31240         * tests/unicase/test-is-titlecase.h: New file.
31241
31242         New module 'unicase/u32-is-titlecase'.
31243         * lib/unicase/u32-is-titlecase.c: New file.
31244         * modules/unicase/u32-is-titlecase: New file.
31245
31246         New module 'unicase/u16-is-titlecase'.
31247         * lib/unicase/u16-is-titlecase.c: New file.
31248         * modules/unicase/u16-is-titlecase: New file.
31249
31250         New module 'unicase/u8-is-titlecase'.
31251         * lib/unicase/u8-is-titlecase.c: New file.
31252         * modules/unicase/u8-is-titlecase: New file.
31253
31254         Tests for module 'unicase/u32-is-lowercase'.
31255         * modules/unicase/u32-is-lowercase-tests: New file.
31256         * tests/unicase/test-u32-is-lowercase.c: New file.
31257
31258         Tests for module 'unicase/u16-is-lowercase'.
31259         * modules/unicase/u16-is-lowercase-tests: New file.
31260         * tests/unicase/test-u16-is-lowercase.c: New file.
31261
31262         Tests for module 'unicase/u8-is-lowercase'.
31263         * modules/unicase/u8-is-lowercase-tests: New file.
31264         * tests/unicase/test-u8-is-lowercase.c: New file.
31265         * tests/unicase/test-is-lowercase.h: New file.
31266
31267         New module 'unicase/u32-is-lowercase'.
31268         * lib/unicase/u32-is-lowercase.c: New file.
31269         * modules/unicase/u32-is-lowercase: New file.
31270
31271         New module 'unicase/u16-is-lowercase'.
31272         * lib/unicase/u16-is-lowercase.c: New file.
31273         * modules/unicase/u16-is-lowercase: New file.
31274
31275         New module 'unicase/u8-is-lowercase'.
31276         * lib/unicase/u8-is-lowercase.c: New file.
31277         * modules/unicase/u8-is-lowercase: New file.
31278
31279         Tests for module 'unicase/u32-is-uppercase'.
31280         * modules/unicase/u32-is-uppercase-tests: New file.
31281         * tests/unicase/test-u32-is-uppercase.c: New file.
31282
31283         Tests for module 'unicase/u16-is-uppercase'.
31284         * modules/unicase/u16-is-uppercase-tests: New file.
31285         * tests/unicase/test-u16-is-uppercase.c: New file.
31286
31287         Tests for module 'unicase/u8-is-uppercase'.
31288         * modules/unicase/u8-is-uppercase-tests: New file.
31289         * tests/unicase/test-u8-is-uppercase.c: New file.
31290         * tests/unicase/test-is-uppercase.h: New file.
31291
31292         New module 'unicase/u32-is-uppercase'.
31293         * lib/unicase/u32-is-uppercase.c: New file.
31294         * modules/unicase/u32-is-uppercase: New file.
31295
31296         New module 'unicase/u16-is-uppercase'.
31297         * lib/unicase/u16-is-uppercase.c: New file.
31298         * modules/unicase/u16-is-uppercase: New file.
31299
31300         New module 'unicase/u8-is-uppercase'.
31301         * lib/unicase/u8-is-uppercase.c: New file.
31302         * modules/unicase/u8-is-uppercase: New file.
31303
31304         New module 'unicase/u32-is-invariant'.
31305         * lib/unicase/u32-is-invariant.c: New file.
31306         * modules/unicase/u32-is-invariant: New file.
31307
31308         New module 'unicase/u16-is-invariant'.
31309         * lib/unicase/u16-is-invariant.c: New file.
31310         * modules/unicase/u16-is-invariant: New file.
31311
31312         New module 'unicase/u8-is-invariant'.
31313         * lib/unicase/u8-is-invariant.c: New file.
31314         * lib/unicase/invariant.h: New file.
31315         * lib/unicase/u-is-invariant.h: New file.
31316         * modules/unicase/u8-is-invariant: New file.
31317
31318         Tests for module 'unicase/u32-casecoll'.
31319         * modules/unicase/u32-casecoll-tests: New file.
31320         * tests/unicase/test-u32-casecoll.c: New file.
31321
31322         Tests for module 'unicase/u16-casecoll'.
31323         * modules/unicase/u16-casecoll-tests: New file.
31324         * tests/unicase/test-u16-casecoll.c: New file.
31325
31326         Tests for module 'unicase/u8-casecoll'.
31327         * modules/unicase/u8-casecoll-tests: New file.
31328         * tests/unicase/test-u8-casecoll.c: New file.
31329
31330         New module 'unicase/u32-casecoll'.
31331         * lib/unicase/u32-casecoll.c: New file.
31332         * modules/unicase/u32-casecoll: New file.
31333
31334         New module 'unicase/u16-casecoll'.
31335         * lib/unicase/u16-casecoll.c: New file.
31336         * modules/unicase/u16-casecoll: New file.
31337
31338         New module 'unicase/u8-casecoll'.
31339         * lib/unicase/u8-casecoll.c: New file.
31340         * lib/unicase/u-casecoll.h: New file.
31341         * modules/unicase/u8-casecoll: New file.
31342
31343         New module 'unicase/u32-casexfrm'.
31344         * lib/unicase/u32-casexfrm.c: New file.
31345         * modules/unicase/u32-casexfrm: New file.
31346
31347         New module 'unicase/u16-casexfrm'.
31348         * lib/unicase/u16-casexfrm.c: New file.
31349         * modules/unicase/u16-casexfrm: New file.
31350
31351         New module 'unicase/u8-casexfrm'.
31352         * lib/unicase/u8-casexfrm.c: New file.
31353         * lib/unicase/u-casexfrm.h: New file.
31354         * modules/unicase/u8-casexfrm: New file.
31355
31356         Tests for module 'unicase/u32-casecmp'.
31357         * modules/unicase/u32-casecmp-tests: New file.
31358         * tests/unicase/test-u32-casecmp.c: New file.
31359
31360         Tests for module 'unicase/u16-casecmp'.
31361         * modules/unicase/u16-casecmp-tests: New file.
31362         * tests/unicase/test-u16-casecmp.c: New file.
31363
31364         Tests for module 'unicase/u8-casecmp'.
31365         * modules/unicase/u8-casecmp-tests: New file.
31366         * tests/unicase/test-u8-casecmp.c: New file.
31367         * tests/unicase/test-casecmp.h: New file.
31368
31369         New module 'unicase/u32-casecmp'.
31370         * lib/unicase/u32-casecmp.c: New file.
31371         * modules/unicase/u32-casecmp: New file.
31372
31373         New module 'unicase/u16-casecmp'.
31374         * lib/unicase/u16-casecmp.c: New file.
31375         * modules/unicase/u16-casecmp: New file.
31376
31377         New module 'unicase/u8-casecmp'.
31378         * lib/unicase/u8-casecmp.c: New file.
31379         * lib/unicase/u-casecmp.h: New file.
31380         * modules/unicase/u8-casecmp: New file.
31381
31382         Tests for module 'unicase/u32-casefold'.
31383         * modules/unicase/u32-casefold-tests: New file.
31384         * tests/unicase/test-u32-casefold.c: New file.
31385
31386         Tests for module 'unicase/u16-casefold'.
31387         * modules/unicase/u16-casefold-tests: New file.
31388         * tests/unicase/test-u16-casefold.c: New file.
31389
31390         Tests for module 'unicase/u8-casefold'.
31391         * modules/unicase/u8-casefold-tests: New file.
31392         * tests/unicase/test-u8-casefold.c: New file.
31393
31394         New module 'unicase/u32-casefold'.
31395         * lib/unicase/u32-casefold.c: New file.
31396         * modules/unicase/u32-casefold: New file.
31397
31398         New module 'unicase/u16-casefold'.
31399         * lib/unicase/u16-casefold.c: New file.
31400         * modules/unicase/u16-casefold: New file.
31401
31402         New module 'unicase/u8-casefold'.
31403         * lib/unicase/u8-casefold.c: New file.
31404         * lib/unicase/u-casefold.h: New file.
31405         * modules/unicase/u8-casefold: New file.
31406
31407         New module 'unicase/tocasefold'.
31408         * lib/unicase/casefold.h: New file.
31409         * lib/unicase/tocasefold.c: New file.
31410         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31411         * modules/unicase/tocasefold: New file.
31412
31413         Tests for module 'unicase/u32-totitle'.
31414         * modules/unicase/u32-totitle-tests: New file.
31415         * tests/unicase/test-u32-totitle.c: New file.
31416
31417         Tests for module 'unicase/u16-totitle'.
31418         * modules/unicase/u16-totitle-tests: New file.
31419         * tests/unicase/test-u16-totitle.c: New file.
31420
31421         Tests for module 'unicase/u8-totitle'.
31422         * modules/unicase/u8-totitle-tests: New file.
31423         * tests/unicase/test-u8-totitle.c: New file.
31424
31425         New module 'unicase/u32-totitle'.
31426         * lib/unicase/u32-totitle.c: New file.
31427         * modules/unicase/u32-totitle: New file.
31428
31429         New module 'unicase/u16-totitle'.
31430         * lib/unicase/u16-totitle.c: New file.
31431         * modules/unicase/u16-totitle: New file.
31432
31433         New module 'unicase/u8-totitle'.
31434         * lib/unicase/u8-totitle.c: New file.
31435         * lib/unicase/u-totitle.h: New file.
31436         * modules/unicase/u8-totitle: New file.
31437
31438         Tests for module 'unicase/u32-tolower'.
31439         * modules/unicase/u32-tolower-tests: New file.
31440         * tests/unicase/test-u32-tolower.c: New file.
31441
31442         Tests for module 'unicase/u16-tolower'.
31443         * modules/unicase/u16-tolower-tests: New file.
31444         * tests/unicase/test-u16-tolower.c: New file.
31445
31446         Tests for module 'unicase/u8-tolower'.
31447         * modules/unicase/u8-tolower-tests: New file.
31448         * tests/unicase/test-u8-tolower.c: New file.
31449
31450         New module 'unicase/u32-tolower'.
31451         * lib/unicase/u32-tolower.c: New file.
31452         * modules/unicase/u32-tolower: New file.
31453
31454         New module 'unicase/u16-tolower'.
31455         * lib/unicase/u16-tolower.c: New file.
31456         * modules/unicase/u16-tolower: New file.
31457
31458         New module 'unicase/u8-tolower'.
31459         * lib/unicase/u8-tolower.c: New file.
31460         * modules/unicase/u8-tolower: New file.
31461
31462         Tests for module 'unicase/u32-toupper'.
31463         * modules/unicase/u32-toupper-tests: New file.
31464         * tests/unicase/test-u32-toupper.c: New file.
31465
31466         Tests for module 'unicase/u16-toupper'.
31467         * modules/unicase/u16-toupper-tests: New file.
31468         * tests/unicase/test-u16-toupper.c: New file.
31469
31470         Tests for module 'unicase/u8-toupper'.
31471         * modules/unicase/u8-toupper-tests: New file.
31472         * tests/unicase/test-u8-toupper.c: New file.
31473
31474         New module 'unicase/u32-toupper'.
31475         * lib/unicase/u32-toupper.c: New file.
31476         * modules/unicase/u32-toupper: New file.
31477
31478         New module 'unicase/u16-toupper'.
31479         * lib/unicase/u16-toupper.c: New file.
31480         * modules/unicase/u16-toupper: New file.
31481
31482         New module 'unicase/u8-toupper'.
31483         * lib/unicase/u8-toupper.c: New file.
31484         * modules/unicase/u8-toupper: New file.
31485
31486         New module 'unicase/u32-casemap'.
31487         * lib/unicase/u32-casemap.c: New file.
31488         * modules/unicase/u32-casemap: New file.
31489
31490         New module 'unicase/u16-casemap'.
31491         * lib/unicase/u16-casemap.c: New file.
31492         * modules/unicase/u16-casemap: New file.
31493
31494         New module 'unicase/u8-casemap'.
31495         * lib/unicase/unicasemap.h: New file.
31496         * lib/unicase/u8-casemap.c: New file.
31497         * lib/unicase/u-casemap.h: New file.
31498         * modules/unicase/u8-casemap: New file.
31499
31500         New module 'unicase/special-casing'.
31501         * lib/unicase/special-casing.h: New file.
31502         * lib/unicase/special-casing.c: New file.
31503         * lib/unicase/special-casing-table.gperf: New file, generated by
31504         gen-uni-tables.c.
31505         * modules/unicase/special-casing: New file.
31506
31507         Tests for module 'unicase/locale-language'.
31508         * modules/unicase/locale-language-tests: New file.
31509         * tests/unicase/test-locale-language.sh: New file.
31510         * tests/unicase/test-locale-language.c: New file.
31511
31512         New module 'unicase/locale-language'.
31513         * lib/unicase/locale-language.c: New file.
31514         * lib/unicase/locale-languages.gperf: New file.
31515         * modules/unicase/locale-language: New file.
31516
31517         Generate more tables for case conversion and case folding.
31518         * lib/gen-uni-tables.c (SCC_*): New enum items.
31519         (struct special_casing_rule): New type.
31520         (casing_rules, num_casing_rules, allocated_casing_rules): New
31521         variables.
31522         (add_casing_rule, fill_casing_rules): New functions.
31523         (struct casefold_rule): New type.
31524         (casefolding_rules, num_casefolding_rules,
31525         allocated_casefolding_rules): New variables.
31526         (fill_casefolding_rules): New function.
31527         (unicode_casefold): New variable.
31528         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31529         sort_casing_rules, output_casing_rules): New functions.
31530         (main): Accept to more arguments: SpecialCasing.txt and
31531         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31532         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31533         Output mapping for casefolding.
31534
31535         * lib/unicase.h: Include stdbool.h, uninorm.h.
31536         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31537         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31538         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31539         arguments.
31540         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31541         resultp arguments.
31542         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31543         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31544         resultp arguments.
31545         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31546         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31547         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31548         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31549         declarations.
31550         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31551
31552 2009-03-08  Bruno Haible  <bruno@clisp.org>
31553
31554         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31555         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31556         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31557         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31558
31559 2009-03-07  Bruno Haible  <bruno@clisp.org>
31560
31561         Adjust u*_normcmp, u*_normcoll API.
31562         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31563         u16_normcoll, u32_normcoll): Change failure conventions.
31564         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31565         errno and return -1.
31566         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31567
31568 2009-03-07  Bruno Haible  <bruno@clisp.org>
31569
31570         Tests for module 'uninorm/u32-normcoll'.
31571         * modules/uninorm/u32-normcoll-tests: New file.
31572         * tests/uninorm/test-u32-normcoll.c: New file.
31573
31574         Tests for module 'uninorm/u16-normcoll'.
31575         * modules/uninorm/u16-normcoll-tests: New file.
31576         * tests/uninorm/test-u16-normcoll.c: New file.
31577
31578         Tests for module 'uninorm/u8-normcoll'.
31579         * modules/uninorm/u8-normcoll-tests: New file.
31580         * tests/uninorm/test-u8-normcoll.c: New file.
31581
31582 2009-03-07  Bruno Haible  <bruno@clisp.org>
31583
31584         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31585         tests/uninorm/test-u32-normcmp.c.
31586         * tests/uninorm/test-u32-normcmp.c: Include it.
31587         (test_nonascii): New function, extracted from main. Add some more
31588         tests.
31589         (main): Invoke test_ascii and test_nonascii.
31590         * modules/uninorm/u32-normcmp-tests (Files): Add
31591         tests/uninorm/test-u32-normcmp.h.
31592         (Depends-on): Remove uninorm/u32-normcmp.
31593
31594         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31595         tests/uninorm/test-u16-normcmp.c.
31596         * tests/uninorm/test-u16-normcmp.c: Include it.
31597         (test_nonascii): New function, extracted from main. Add some more
31598         tests.
31599         (main): Invoke test_ascii and test_nonascii.
31600         * modules/uninorm/u16-normcmp-tests (Files): Add
31601         tests/uninorm/test-u16-normcmp.h.
31602         (Depends-on): Remove uninorm/u16-normcmp.
31603
31604         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31605         tests/uninorm/test-u8-normcmp.c.
31606         * tests/uninorm/test-u8-normcmp.c: Include it.
31607         (test_nonascii): New function, extracted from main. Add some more
31608         tests.
31609         (main): Invoke test_ascii and test_nonascii.
31610         * modules/uninorm/u8-normcmp-tests (Files): Add
31611         tests/uninorm/test-u8-normcmp.h.
31612         (Depends-on): Remove uninorm/u8-normcmp.
31613
31614 2009-03-07  Bruno Haible  <bruno@clisp.org>
31615
31616         New module 'uninorm/u32-normcoll'.
31617         * lib/uninorm/u32-normcoll.c: New file.
31618         * modules/uninorm/u32-normcoll: New file.
31619
31620         New module 'uninorm/u16-normcoll'.
31621         * lib/uninorm/u16-normcoll.c: New file.
31622         * modules/uninorm/u16-normcoll: New file.
31623
31624         New module 'uninorm/u8-normcoll'.
31625         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31626         declarations.
31627         * lib/uninorm/u8-normcoll.c: New file.
31628         * lib/uninorm/u-normcoll.h: New file.
31629         * modules/uninorm/u8-normcoll: New file.
31630
31631         New module 'uninorm/u32-normxfrm'.
31632         * lib/uninorm/u32-normxfrm.c: New file.
31633         * modules/uninorm/u32-normxfrm: New file.
31634
31635         New module 'uninorm/u16-normxfrm'.
31636         * lib/uninorm/u16-normxfrm.c: New file.
31637         * modules/uninorm/u16-normxfrm: New file.
31638
31639         New module 'uninorm/u8-normxfrm'.
31640         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31641         declarations.
31642         * lib/uninorm/u8-normxfrm.c: New file.
31643         * lib/uninorm/u-normxfrm.h: New file.
31644         * modules/uninorm/u8-normxfrm: New file.
31645
31646 2009-03-07  Bruno Haible  <bruno@clisp.org>
31647
31648         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31649         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31650         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31651
31652 2009-03-07  Bruno Haible  <bruno@clisp.org>
31653
31654         New module 'memxfrm'.
31655         * lib/memxfrm.h: New file.
31656         * lib/memxfrm.c: New file.
31657         * modules/memxfrm: New file.
31658
31659 2009-03-07  Bruno Haible  <bruno@clisp.org>
31660
31661         New module 'memcmp2'.
31662         * lib/memcmp2.h: New file.
31663         * lib/memcmp2.c: New file.
31664         * modules/memcmp2: New file.
31665
31666 2009-03-07  Bruno Haible  <bruno@clisp.org>
31667
31668         Tests for module 'uninorm/decomposing-form'.
31669         * modules/uninorm/decomposing-form-tests: New file.
31670         * tests/uninorm/test-decomposing-form.c: New file.
31671
31672         New module 'uninorm/decomposing-form'.
31673         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31674         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31675         Add 'decomposing_variant' field.
31676         * lib/uninorm/decomposing-form.c: New file.
31677         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31678         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31679         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31680         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31681         * modules/uninorm/decomposing-form: New file.
31682         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31683         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31684
31685 2009-03-07  Bruno Haible  <bruno@clisp.org>
31686
31687         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31688         strings.
31689
31690 2009-03-06  Bruno Haible  <bruno@clisp.org>
31691
31692         Tests for module 'uninorm/u32-normcmp'.
31693         * tests/uninorm/test-u32-normcmp.c: New file.
31694         * modules/uninorm/u32-normcmp-tests: New file.
31695
31696         Tests for module 'uninorm/u16-normcmp'.
31697         * tests/uninorm/test-u16-normcmp.c: New file.
31698         * modules/uninorm/u16-normcmp-tests: New file.
31699
31700         Tests for module 'uninorm/u8-normcmp'.
31701         * tests/uninorm/test-u8-normcmp.c: New file.
31702         * modules/uninorm/u8-normcmp-tests: New file.
31703
31704         New module 'uninorm/u32-normcmp'.
31705         * lib/uninorm/u32-normcmp.c: New file.
31706         * modules/uninorm/u32-normcmp: New file.
31707
31708         New module 'uninorm/u16-normcmp'.
31709         * lib/uninorm/u16-normcmp.c: New file.
31710         * modules/uninorm/u16-normcmp: New file.
31711
31712         New module 'uninorm/u8-normcmp'.
31713         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31714         declarations.
31715         * lib/uninorm/u8-normcmp.c: New file.
31716         * lib/uninorm/u-normcmp.h: New file.
31717         * modules/uninorm/u8-normcmp: New file.
31718
31719 2009-03-06  Bruno Haible  <bruno@clisp.org>
31720
31721         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31722         Reported by Eric Blake.
31723
31724 2009-03-06  Eric Blake  <ebb9@byu.net>
31725             Bruno Haible  <bruno@clisp.org>
31726
31727         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31728         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31729         condition.
31730         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31731         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31732         condition.
31733         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31734
31735 2009-03-06  Eric Blake  <ebb9@byu.net>
31736
31737         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31738         to avoid compiler warnings.
31739         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31740
31741 2009-03-05  Bruno Haible  <bruno@clisp.org>
31742
31743         * tests/test-ftell.c (main): Disable test beyond end of file on
31744         FreeMiNT.
31745         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31746
31747 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31748
31749         * lib/filevercmp.c: Move hidden files up in ordering.
31750         * tests/test-filevercmp.c: Add tests for hidden files.
31751
31752 2009-03-04  Bruno Haible  <bruno@clisp.org>
31753
31754         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31755         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31756         AM_CFLAGS.
31757         Reported by Simon Josefsson.
31758
31759 2009-03-03  Bruno Haible  <bruno@clisp.org>
31760
31761         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31762         Reported by Simon Josefsson.
31763
31764         * doc/ld-version-script.texi: Update node reference.
31765
31766 2009-03-03  Bruno Haible  <bruno@clisp.org>
31767
31768         * modules/visibility (License): Change to 'unlimited'.
31769         Suggested by Simon Josefsson.
31770
31771 2009-03-03  Jim Meyering  <meyering@redhat.com>
31772
31773         unlinkdir: cannot_unlink_dir may modify process state
31774         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31775         it's neither thread-safe nor appropriate for use in a library.
31776
31777 2009-03-03  Eric Blake  <ebb9@byu.net>
31778
31779         test-closein: silence test under Darwin
31780         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31781         care if it dies from EPIPE or EBADF.
31782
31783 2009-03-03  Bruno Haible  <bruno@clisp.org>
31784
31785         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31786         earlier.
31787         * doc/visibility.texi: Fix @node and @section.
31788
31789 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31790
31791         * doc/gnulib.texi: Link to sections for ld version script and
31792         visibility.
31793         * doc/visibility.texi: Add @node and @section.
31794         * modules/ld-version-script: New module.
31795         * m4/ld-version-script.m4: New file.
31796         * doc/ld-version-script.texi: New file.
31797
31798 2009-03-02  David Lutterkort  <lutter@redhat.com>
31799
31800         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31801         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31802
31803 2009-03-02  Bruno Haible  <bruno@clisp.org>
31804
31805         * doc/visibility.texi: Mention libtool's -export-symbols option.
31806
31807 2009-03-02  Jim Meyering  <meyering@redhat.com>
31808
31809         announce-gen: new option: --no-print-checksums
31810         * build-aux/announce-gen (usage): Describe it.
31811         (print_checksums): Print a newline here, not in the [*] footnote.
31812         (main): Honor it.
31813
31814 2009-03-01  Bruno Haible  <bruno@clisp.org>
31815
31816         Use socklen_t in the native Windows replacements prototypes.
31817         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31818         instead of 'int'.
31819         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31820         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31821         * modules/getsockopt (Depends-on): Add socklen.
31822         * modules/setsockopt (Depends-on): Add socklen.
31823
31824 2009-03-01  Bruno Haible  <bruno@clisp.org>
31825
31826         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31827         least 4.2.
31828
31829 2009-03-01  Eric Blake  <ebb9@byu.net>
31830             Bruno Haible  <bruno@clisp.org>
31831
31832         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31833         error messages.
31834         * lib/wait-process.c (wait_subprocess): Omit error message about
31835         deadly signal sent to the child of termsigp != NULL.
31836
31837 2009-03-01  Eric Blake  <ebb9@byu.net>
31838
31839         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31840
31841 2009-03-01  Bruno Haible  <bruno@clisp.org>
31842
31843         Avoid a gcc warning.
31844         * tests/test-sched.c (b): Make global.
31845         Reported by Eric Blake.
31846
31847 2009-01-19  Martin Lambers  <marlam@marlam.de>
31848
31849         Provide POSIX semantics for socket timeout options on W32.
31850         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31851         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31852         * modules/setsockopt: Depend on sys_time module for struct timeval.
31853         * modules/getsockopt: Depend on sys_time module for struct timeval.
31854
31855 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31856
31857         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31858         __USE_GNU, for consistency with netdb.in.h.
31859         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31860
31861 2009-03-01  Bruno Haible  <bruno@clisp.org>
31862
31863         More support for FreeMiNT.
31864         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31865         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31866
31867 2009-03-01  Bruno Haible  <bruno@clisp.org>
31868
31869         More support for FreeMiNT.
31870         * lib/fpurge.c (fpurge): Correct last commit.
31871         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31872
31873 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31874
31875         Fix unportable awk script in vc-list-files.
31876         * build-aux/vc-list-files: In the replacement awk script, use
31877         substr with a second argument of 1, not zero.
31878         Report by Simon Josefsson.
31879
31880 2009-02-28  Bruno Haible  <bruno@clisp.org>
31881
31882         More support for FreeMiNT.
31883         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31884         to FreeMiNT today.
31885         * lib/fwriting.c (fwriting): Likewise.
31886         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31887
31888 2009-02-28  Bruno Haible  <bruno@clisp.org>
31889
31890         * tests/test-freadseek.c (main): Disable test beyond end of file on
31891         FreeMiNT.
31892         * tests/test-ftello.c (main): Likewise.
31893         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31894
31895 2009-02-28  Bruno Haible  <bruno@clisp.org>
31896
31897         Add tentative support for FreeMiNT.
31898         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31899         * lib/fpurge.c (fpurge): Likewise.
31900         * lib/freadable.c (freadable): Likewise.
31901         * lib/freading.c (freading): Likewise.
31902         * lib/freadptr.c (freadptr): Likewise.
31903         * lib/freadseek.c (freadptrinc): Likewise.
31904         * lib/fseeko.c (rpl_fseeko): Likewise.
31905         * lib/fseterr.c (fseterr): Likewise.
31906         * lib/fwritable.c (fwritable): Likewise.
31907         * lib/fwriting.c (fwriting): Likewise.
31908         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31909         Hourihane.
31910         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31911
31912 2009-02-28  Bruno Haible  <bruno@clisp.org>
31913
31914         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31915         SIGCHLD.
31916         Reported by Jim Meyering.
31917
31918 2009-02-28  Bruno Haible  <bruno@clisp.org>
31919
31920         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31921         Mention the results of these tests on various platforms.
31922         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31923         order.
31924         * doc/posix-functions/printf.texi: Likewise.
31925         * doc/posix-functions/snprintf.texi: Likewise.
31926         * doc/posix-functions/sprintf.texi: Likewise.
31927         * doc/posix-functions/vfprintf.texi: Likewise.
31928         * doc/posix-functions/vprintf.texi: Likewise.
31929         * doc/posix-functions/vsnprintf.texi: Likewise.
31930         * doc/posix-functions/vsprintf.texi: Likewise.
31931         * doc/glibc-functions/obstack_printf.texi: Likewise.
31932         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31933
31934 2009-02-28  Bruno Haible  <bruno@clisp.org>
31935
31936         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31937         Reported by Loïc Minier <lool@dooz.org>.
31938
31939 2009-02-27  Bruno Haible  <bruno@clisp.org>
31940
31941         * gnulib-tool (func_import): Make the sed expression used to create the
31942         sed script for updating the .gitignore file POSIX compliant.
31943         Reported by Eric Blake.
31944
31945 2009-02-27  Bruno Haible  <bruno@clisp.org>
31946
31947         * gnulib-tool (sed): Don't alias as "sed --posix".
31948         Reported by Eric Blake.
31949
31950 2009-02-27  Bruno Haible  <bruno@clisp.org>
31951
31952         Avoid test link errors.
31953         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31954         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31955         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31956         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31958
31959 2009-02-27  Bruno Haible  <bruno@clisp.org>
31960
31961         Avoid spurious "(cached)" in configure output.
31962         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31963         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31964         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31965         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31966         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31967         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31968         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31969         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31970         Reported by Eric Blake.
31971
31972 2009-02-27  Eric Blake  <ebb9@byu.net>
31973
31974         printf: fix regression in previous patch
31975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31976
31977 2009-02-27  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31980         value.
31981         * lib/stdint.in.h: Likewise.
31982         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31983
31984 2009-02-27  Eric Blake  <ebb9@byu.net>
31985
31986         doc: mention more functions added in cygwin 1.7.0
31987         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31988         addition.
31989         * doc/posix-functions/open_wmemstream.texi: Likewise.
31990         * doc/posix-functions/wcsnlen.texi: Likewise.
31991         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31992         * doc/posix-functions/wcstod.texi: Likewise.
31993         * doc/posix-functions/wcstof.texi: Likewise.
31994         * doc/posix-functions/wcstoimax.texi: Likewise.
31995         * doc/posix-functions/wcstok.texi: Likewise.
31996         * doc/posix-functions/wcstoumax.texi: Likewise.
31997
31998         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32000         * doc/posix-functions/fprintf.texi: Update.
32001         * doc/posix-functions/printf.texi: Update.
32002         * doc/posix-functions/snprintf.texi: Update.
32003         * doc/posix-functions/sprintf.texi: Update.
32004         * doc/posix-functions/vfprintf.texi: Update.
32005         * doc/posix-functions/vprintf.texi: Update.
32006         * doc/posix-functions/vsnprintf.texi: Update.
32007         * doc/posix-functions/vsprintf.texi: Update.
32008         * doc/glibc-functions/obstack_printf.texi: Update.
32009         * doc/glibc-functions/obstack_vprintf.texi: Update.
32010
32011 2009-02-26  Eric Blake  <ebb9@byu.net>
32012
32013         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32014         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32015         compilation bug by using runtime conversion.
32016         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32017         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32018         * modules/ceill-tests (Files): Use nan.h.
32019         * modules/floorl-tests (Files): Likewise.
32020         * modules/frexpl-tests (Files): Likewise.
32021         * modules/isnanl-tests (Files): Likewise.
32022         * modules/ldexpl-tests (Files): Likewise.
32023         * modules/roundl-tests (Files): Likewise.
32024         * modules/truncl-tests (Files): Likewise.
32025         * tests/test-ceill.c (main): Use a working NaN.
32026         * tests/test-floorl.c (main): Likewise.
32027         * tests/test-frexpl.c (main): Likewise.
32028         * tests/test-isnan.c (test_long_double): Likewise.
32029         * tests/test-isnanl.h (main): Likewise.
32030         * tests/test-ldexpl.h (main): Likewise.
32031         * tests/test-roundl.h (main): Likewise.
32032         * tests/test-truncl.h (main): Likewise.
32033         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32034
32035 2009-02-26  Eric Blake  <ebb9@byu.net>
32036             Bruno Haible  <bruno@clisp.org>
32037
32038         Work around a *printf bug with %ls on Solaris.
32039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32040         precision is specified, sprintf stops converting the wide string
32041         argument when the number of bytes that have been produced by this
32042         conversion equals or exceeds the precision.
32043         * doc/posix-functions/fprintf.texi: Update.
32044         * doc/posix-functions/printf.texi: Update.
32045         * doc/posix-functions/snprintf.texi: Update.
32046         * doc/posix-functions/sprintf.texi: Update.
32047         * doc/posix-functions/vfprintf.texi: Update.
32048         * doc/posix-functions/vprintf.texi: Update.
32049         * doc/posix-functions/vsnprintf.texi: Update.
32050         * doc/posix-functions/vsprintf.texi: Update.
32051         * doc/glibc-functions/obstack_printf.texi: Update.
32052         * doc/glibc-functions/obstack_vprintf.texi: Update.
32053
32054 2009-02-26  Eric Blake  <ebb9@byu.net>
32055
32056         stdlib: favor compiler check of random.h
32057         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32058         to avoid an ObjC random.h installed by Swarm.
32059
32060 2009-02-26  Bruno Haible  <bruno@clisp.org>
32061
32062         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32063         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32064         Reported by Gary V. Vaughan <gary@gnu.org>.
32065
32066 2009-02-26  Bruno Haible  <bruno@clisp.org>
32067
32068         Fix *printf behaviour regarding the %ls directive.
32069         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32070         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32071         NEED_PRINTF_DIRECTIVE_LS.
32072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32073         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32074         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32075         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32076         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32077         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32078         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32079         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32080         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32083         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32084         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32086         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
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         Reported by Eric Blake.
32098
32099 2009-02-25  Bruno Haible  <bruno@clisp.org>
32100
32101         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32102         with known value.
32103         Reported by Gary V. Vaughan <gary@gnu.org>.
32104
32105 2009-02-25  Bruno Haible  <bruno@clisp.org>
32106
32107         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32108         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32109         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32110         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32111         Reported by Gary V. Vaughan <gary@gnu.org>.
32112
32113 2009-02-25  Bruno Haible  <bruno@clisp.org>
32114
32115         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32116         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32117         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32118         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32119         Reported by Gary V. Vaughan <gary@gnu.org>.
32120
32121 2009-02-25  Eric Blake  <ebb9@byu.net>
32122
32123         tests: skip fseek/ftell tests if ungetc is broken
32124         * m4/ungetc.m4: New file.
32125         * modules/fseek-tests: Split test, so ungetc dependency is
32126         separate from rest of test.
32127         * modules/fseeko-tests: Likewise.
32128         * modules/ftell-tests: Likewise.
32129         * modules/ftello-tests: Likewise.
32130         * tests/test-fseek.c (main): Isolate ungetc dependency.
32131         * tests/test-fseeko.c (main): Likewise.
32132         * tests/test-ftell.c (main): Likewise.
32133         * tests/test-ftello.c (main): Likewise.
32134         * tests/test-fseek2.sh: New file.
32135         * tests/test-fseeko2.sh: Likewise.
32136         * tests/test-ftell2.sh: Likewise.
32137         * tests/test-ftello2.sh: Likewise.
32138
32139 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32140
32141         test-getaddrinfo: fix usage of skip return code 77
32142         * tests/test-gettaddrinfo.c: Return skip code 77 only
32143         for first occurance of skip (4x77 is not 77)
32144
32145 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32146
32147         strtod: avoid C99 decl-after-statement
32148         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32149
32150 2009-02-24  Eric Blake  <ebb9@byu.net>
32151
32152         strtod: detect HP-UX 11.31 bug
32153         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32154         Reported by Gary V. Vaughan.
32155
32156 2009-02-23  Bruno Haible  <bruno@clisp.org>
32157
32158         Fix invalid read past end of memory block.
32159         * lib/vasnprintf.c (DCHAR_SET): Define.
32160         (local_wcslen): Define only when needed.
32161         (local_strnlen, local_wcsnlen): New functions.
32162         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32163         directives that involve a conversion ourselves.
32164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32165         wcsnlen, mbrtowc, wcrtomb.
32166         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32167         * tests/test-vasprintf-posix.c (test_function): Likewise.
32168         * tests/test-snprintf-posix.h (test_function): Likewise.
32169         * tests/test-sprintf-posix.h (test_function): Likewise.
32170         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32171
32172 2009-02-22  Bruno Haible  <bruno@clisp.org>
32173
32174         Implement new clarified decomposition of Hangul syllables.
32175         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32176         of type LTV, return only a pairwise decomposition.
32177         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32178         Likewise.
32179         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32180         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32181         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32182
32183 2009-02-22  Bruno Haible  <bruno@clisp.org>
32184
32185         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32186         zero-length results and shrink excess allocated memory.
32187         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32188         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32189         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32190         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32191         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32192         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32193         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32194         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32195         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32196         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32197         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32198         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32199
32200 2009-02-21  Bruno Haible  <bruno@clisp.org>
32201
32202         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32203         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32204         spaces after a period. Put a space between a macro name and its
32205         argument list. Trivial rewordings.
32206         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32207         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32208         (main): Return 0 explicitly.
32209
32210 2009-02-21  Bruno Haible  <bruno@clisp.org>
32211
32212         Tests for module 'uninorm/filter'.
32213         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32214         * modules/uninorm/filter-tests: New file.
32215
32216         New module 'uninorm/filter'.
32217         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32218         uninorm_filter_flush, uninorm_filter_free): New declarations.
32219         * lib/uninorm/uninorm-filter.c: New file.
32220         * modules/uninorm/filter: New file.
32221
32222 2009-02-21  Bruno Haible  <bruno@clisp.org>
32223
32224         Tests for module 'uninorm/nfkc'.
32225         * tests/uninorm/test-nfkc.c: New file.
32226         * tests/uninorm/test-u8-nfkc.c: New file.
32227         * tests/uninorm/test-u16-nfkc.c: New file.
32228         * tests/uninorm/test-u32-nfkc.c: New file.
32229         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32230         * tests/uninorm/test-u32-nfkc-big.c: New file.
32231         * modules/uninorm/nfkc-tests: New file.
32232
32233         New module 'uninorm/nfkc'.
32234         * lib/uninorm/nfkc.c: New file.
32235         * modules/uninorm/nfkc: New file.
32236
32237         Tests for module 'uninorm/nfkd'.
32238         * tests/uninorm/test-nfkd.c: New file.
32239         * tests/uninorm/test-u8-nfkd.c: New file.
32240         * tests/uninorm/test-u16-nfkd.c: New file.
32241         * tests/uninorm/test-u32-nfkd.c: New file.
32242         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32243         * tests/uninorm/test-u32-nfkd-big.c: New file.
32244         * modules/uninorm/nfkd-tests: New file.
32245
32246         New module 'uninorm/nfkd'.
32247         * lib/uninorm/nfkd.c: New file.
32248         * modules/uninorm/nfkd: New file.
32249
32250         Tests for module 'uninorm/nfc'.
32251         * tests/uninorm/test-nfc.c: New file.
32252         * tests/uninorm/test-u8-nfc.c: New file.
32253         * tests/uninorm/test-u16-nfc.c: New file.
32254         * tests/uninorm/test-u32-nfc.c: New file.
32255         * tests/uninorm/test-u32-nfc-big.sh: New file.
32256         * tests/uninorm/test-u32-nfc-big.c: New file.
32257         * modules/uninorm/nfc-tests: New file.
32258
32259         New module 'uninorm/nfc'.
32260         * lib/uninorm/nfc.c: New file.
32261         * modules/uninorm/nfc: New file.
32262
32263         Tests for module 'uninorm/nfd'.
32264         * tests/uninorm/test-nfd.c: New file.
32265         * tests/uninorm/test-u8-nfd.c: New file.
32266         * tests/uninorm/test-u16-nfd.c: New file.
32267         * tests/uninorm/test-u32-nfd.c: New file.
32268         * tests/uninorm/test-u32-nfd-big.sh: New file.
32269         * tests/uninorm/test-u32-nfd-big.c: New file.
32270         * tests/uninorm/test-u32-normalize-big.h: New file.
32271         * tests/uninorm/test-u32-normalize-big.c: New file.
32272         * tests/uninorm/NormalizationTest.txt: New file, created from
32273         Unicode 5.1.0 NormalizationTest.txt.
32274         * modules/uninorm/nfd-tests: New file.
32275
32276         New module 'uninorm/nfd'.
32277         * lib/uninorm/nfd.c: New file.
32278         * modules/uninorm/nfd: New file.
32279
32280         New module 'uninorm/u32-normalize'.
32281         * lib/uninorm/u32-normalize.c: New file.
32282         * modules/uninorm/u32-normalize: New file.
32283
32284         New module 'uninorm/u16-normalize'.
32285         * lib/uninorm/u16-normalize.c: New file.
32286         * modules/uninorm/u16-normalize: New file.
32287
32288         New module 'uninorm/u8-normalize'.
32289         * lib/uninorm/u8-normalize.c: New file.
32290         * lib/uninorm/normalize-internal.h: New file.
32291         * lib/uninorm/u-normalize-internal.h: New file.
32292         * modules/uninorm/u8-normalize: New file.
32293
32294         New module 'uninorm/decompose-internal'.
32295         * lib/uninorm/decompose-internal.c: New file.
32296         * modules/uninorm/decompose-internal: New file.
32297
32298         Tests for module 'uninorm/composition'.
32299         * tests/uninorm/test-composition.c: New file.
32300         * modules/uninorm/composition-tests: New file.
32301
32302         New module 'uninorm/composition'.
32303         * lib/uninorm/composition.c: New file.
32304         * lib/uninorm/composition-table.gperf: New file, generated by
32305         gen-uni-tables.
32306         * modules/uninorm/composition: New file.
32307
32308         Tests for module 'uninorm/compat-decomposition'.
32309         * tests/uninorm/test-compat-decomposition.c: New file.
32310         * modules/uninorm/compat-decomposition-tests: New file.
32311
32312         New module 'uninorm/compat-decomposition'.
32313         * lib/uninorm/decompose-internal.h: New file.
32314         * lib/uninorm/compat-decomposition.c: New file.
32315         * modules/uninorm/compat-decomposition: New file.
32316
32317         Tests for module 'uninorm/canonical-decomposition'.
32318         * tests/uninorm/test-canonical-decomposition.c: New file.
32319         * modules/uninorm/canonical-decomposition-tests: New file.
32320
32321         New module 'uninorm/canonical-decomposition'.
32322         * lib/uninorm/canonical-decomposition.c: New file.
32323         * modules/uninorm/canonical-decomposition: New file.
32324
32325         Tests for module 'uninorm/decomposition'.
32326         * tests/uninorm/test-decomposition.c: New file.
32327         * modules/uninorm/decomposition-tests: New file.
32328
32329         New module 'uninorm/decomposition'.
32330         * lib/uninorm/decomposition.c: New file.
32331         * modules/uninorm/decomposition: New file.
32332
32333         New module 'uninorm/decomposition-table'.
32334         * lib/uninorm/decomposition-table.h: New file.
32335         * lib/uninorm/decomposition-table.c: New file.
32336         * lib/uninorm/decomposition-table1.h: New file, generated by
32337         gen-uni-tables.
32338         * lib/uninorm/decomposition-table2.h: New file, generated by
32339         gen-uni-tables.
32340         * modules/uninorm/decomposition-table: New file.
32341
32342         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32343         (UC_DECOMP_*): New enumeration items.
32344         (get_decomposition): New function.
32345         (struct decomp_table): New type.
32346         (output_decomposition, output_decomposition_tables): New functions.
32347         (unicode_composition_exclusions): New variable.
32348         (fill_composition_exclusions, debug_output_composition_tables): New
32349         functions.
32350         (main): Accept one more argument. Invoke fill_composition_exclusions.
32351         Output decomposition and composition tables.
32352
32353         New module 'uninorm/base'.
32354         * lib/uninorm.h: New file.
32355         * lib/unictype.h: Update comment.
32356         * modules/uninorm/base: New file.
32357
32358 2009-02-21  David Lutterkort  <lutter@redhat.com>
32359
32360         Tests for module 'safe-alloc'.
32361         * tests/test-safe-alloc.c: New file.
32362         * modules/safe-alloc-tests: New file.
32363
32364         New module 'safe-alloc'.
32365         * lib/safe-alloc.h: New file.
32366         * lib/safe-alloc.c: New file.
32367         * m4/safe-alloc.m4: New file.
32368         * modules/safe-alloc: New file.
32369         * doc/safe-alloc.texi: New file.
32370         * doc/gnulib.texi: Include it.
32371         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32372         safe-alloc.
32373
32374 2009-02-18  Bruno Haible  <bruno@clisp.org>
32375
32376         Fix link error on non-glibc systems.
32377         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32378         variable.
32379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32380
32381 2009-02-18  Jim Meyering  <meyering@redhat.com>
32382
32383         fts: avoid used-uninitialized error due to recent change
32384         * lib/fts.c (fts_read): Guard uses of the new member,
32385         parent->fts_n_dirs_remaining, since it's not relevant for
32386         the parent of a directory specified on the command-line.
32387
32388 2009-02-17  James Youngman  <jay@gnu.org>
32389             Bruno Haible  <bruno@clisp.org>
32390
32391         * m4/include_next.m4: Reformulate comment.
32392
32393 2009-02-16  Jim Meyering  <meyering@redhat.com>
32394
32395         fts: add #if guards so that the fts_lgpl module still builds
32396         * lib/fts.c: Guard just-added hash-table-using parts with
32397         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32398         Reported by Simon Josefsson.
32399
32400 2009-02-15  Bruno Haible  <bruno@clisp.org>
32401
32402         * modules/array-mergesort-tests: New file.
32403         * tests/test-array-mergesort.c: New file.
32404
32405         New module 'array-mergesort'.
32406         * modules/array-mergesort: New file.
32407         * lib/array-mergesort.h: New file.
32408
32409 2009-02-15  Bruno Haible  <bruno@clisp.org>
32410
32411         Fix 2009-02-07 commit.
32412         * lib/gen-uni-tables.c (output_predicate, output_category,
32413         output_combclass, output_bidi_category, output_decimal_digit,
32414         output_digit, output_numeric, output_mirror, output_scripts,
32415         output_ident_category, output_simple_mapping): Fix format directives.
32416         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32417
32418 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32419
32420         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32421         fixes are available from IBM.
32422
32423 2009-02-13  Jim Meyering  <meyering@redhat.com>
32424
32425         fts: arrange not to stat non-directories in more cases
32426         This makes GNU find (when it doesn't need to stat each file)
32427         *much* more efficient at traversing reiserfs file systems.
32428         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32429         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32430         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32431         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32432         (leaf_optimization_applies): New function.
32433         (LCO_hash, LCO_compare): New helper functions.
32434         (link_count_optimize_ok): New function.
32435         (fts_stat): Initialize new member (if dir).
32436         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32437         we've just stat'ed a directory.  Skip the stat call when possible.
32438         ---
32439         Note this AFS-related exchange:
32440         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32441         and note find's pioctl call in find/fstype.c.
32442         But that is necessary only if you want to enable the
32443         optimization for AFS, and for now, I don't.
32444
32445         fts: move a function definition "up" (no semantic change)
32446         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32447         "up" to precede upcoming use of a related function.
32448
32449 2009-02-11  Jim Meyering  <meyering@redhat.com>
32450
32451         fts: correct internal computation of nlinks (optimization-related)
32452         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32453         whether the current entry is a directory, so don't test it.
32454
32455 2009-02-10  Bruno Haible  <bruno@clisp.org>
32456
32457         Tests for module 'uniwbrk/ulc-wordbreaks'.
32458         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32459         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32460         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32461
32462         Tests for module 'uniwbrk/u32-wordbreaks'.
32463         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32464         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32465
32466         Tests for module 'uniwbrk/u16-wordbreaks'.
32467         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32468         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32469
32470         Tests for module 'uniwbrk/u8-wordbreaks'.
32471         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32472         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32473
32474 2009-02-10  Bruno Haible  <bruno@clisp.org>
32475
32476         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32477         property.
32478         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32479         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32480         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32481
32482 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32483
32484         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32485         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32486
32487 2009-02-10  Bruno Haible  <bruno@clisp.org>
32488
32489         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32490         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32491         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32492         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32493         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32494         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32495
32496 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32497
32498         * lib/sockets.h (gl_fd_to_handle): New function.
32499
32500         * tests/test-sockets.c: Call gl_fd_to_handle.
32501
32502 2009-02-09  Bruno Haible  <bruno@clisp.org>
32503
32504         * doc/havelib.texi: Document the conventions on bi-arch systems.
32505
32506 2009-02-08  Bruno Haible  <bruno@clisp.org>
32507
32508         Document the AC_LIB_LINKFLAGS macro.
32509         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32510         * doc/gnulib.texi: Include it.
32511
32512 2009-02-08  Bruno Haible  <bruno@clisp.org>
32513
32514         Fix wrong order of sections, compared to TOC.
32515         * doc/gnulib.texi: Include relocatable-maint.texi after the
32516         "Regular expressions" node, not before.
32517
32518 2009-02-08  Bruno Haible  <bruno@clisp.org>
32519
32520         Tests for module 'unicase/totitle'.
32521         * modules/unicase/totitle-tests: New file.
32522
32523         Tests for module 'unicase/tolower'.
32524         * modules/unicase/tolower-tests: New file.
32525
32526         Tests for module 'unicase/toupper'.
32527         * modules/unicase/toupper-tests: New file.
32528         * tests/unicase/test-mapping-part1.h: New file.
32529         * tests/unicase/test-mapping-part2.h: New file.
32530
32531         New module 'unicase/totitle'.
32532         * modules/unicase/totitle: New file.
32533         * lib/unicase/totitle.c: New file.
32534
32535         New module 'unicase/tolower'.
32536         * modules/unicase/tolower: New file.
32537         * lib/unicase/tolower.c: New file.
32538
32539         New module 'unicase/toupper'.
32540         * modules/unicase/toupper: New file.
32541         * lib/unicase/toupper.c: New file.
32542         * lib/unicase/simple-mapping.h: New file.
32543
32544         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32545         (mapping_table): New structure.
32546         (output_simple_mapping): New function.
32547         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32548         * modules/gen-uni-tables (Description): Update.
32549         * lib/unicase/toupper.h: New file, automatically generated by
32550         gen-uni-tables.
32551         * lib/unicase/tolower.h: New file, automatically generated by
32552         gen-uni-tables.
32553         * lib/unicase/totitle.h: New file, automatically generated by
32554         gen-uni-tables.
32555         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32556         gen-uni-tables.
32557         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32558         gen-uni-tables.
32559         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32560         gen-uni-tables.
32561
32562         New module 'unicase/base'.
32563         * modules/unicase/base: New file.
32564         * lib/unicase.h: New file.
32565
32566 2009-02-08  Bruno Haible  <bruno@clisp.org>
32567
32568         New module 'uniwbrk/ulc-wordbreaks'.
32569         * modules/uniwbrk/ulc-wordbreaks: New file.
32570         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32571
32572         New module 'uniwbrk/u32-wordbreaks'.
32573         * modules/uniwbrk/u32-wordbreaks: New file.
32574         * lib/uniwbrk/u32-wordbreaks.c: New file.
32575
32576         New module 'uniwbrk/u16-wordbreaks'.
32577         * modules/uniwbrk/u16-wordbreaks: New file.
32578         * lib/uniwbrk/u16-wordbreaks.c: New file.
32579
32580         New module 'uniwbrk/u8-wordbreaks'.
32581         * modules/uniwbrk/u8-wordbreaks: New file.
32582         * lib/uniwbrk/u8-wordbreaks.c: New file.
32583         * lib/uniwbrk/u-wordbreaks.h: New file.
32584
32585         New module 'uniwbrk/table'.
32586         * modules/uniwbrk/table: New file.
32587         * lib/uniwbrk/wbrktable.h: New file.
32588         * lib/uniwbrk/wbrktable.c: New file.
32589
32590         New module 'uniwbrk/wordbreak-property'.
32591         * modules/uniwbrk/wordbreak-property: New file.
32592         * lib/uniwbrk/wordbreak-property.c: New file.
32593
32594         * lib/gen-uni-tables.c (WBP_*): New enum items.
32595         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32596         (unicode_org_wbp): New variable.
32597         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32598         New functions.
32599         (wbp_table): New structure.
32600         (output_wbp, output_wbrk_tables): New functions.
32601         (main): Accept additional argument. Invoke fill_org_wbp,
32602         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32603         output_wbrk_tables.
32604         * modules/gen-uni-tables (Description): Update.
32605         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32606         gen-uni-tables.
32607
32608         New module 'uniwbrk/base'.
32609         * modules/uniwbrk/base: New file.
32610         * lib/uniwbrk.h: New file.
32611
32612 2009-02-08  Bruno Haible  <bruno@clisp.org>
32613
32614         Update to Unicode 5.1.0.
32615         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32616         U+2185..U+2188.
32617         (is_property_default_ignorable_code_point): Don't include characters
32618         of category Cc or Cs and not-a-characters.
32619         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32620         U+0D79, U+109E, U+109F, U+A60C.
32621         * lib/unictype/bidi_of.h: Regenerated.
32622         * lib/unictype/blocks.h: Regenerated.
32623         * lib/unictype/categ_C.h: Regenerated.
32624         * lib/unictype/categ_Cf.h: Regenerated.
32625         * lib/unictype/categ_Cn.h: Regenerated.
32626         * lib/unictype/categ_L.h: Regenerated.
32627         * lib/unictype/categ_Ll.h: Regenerated.
32628         * lib/unictype/categ_Lm.h: Regenerated.
32629         * lib/unictype/categ_Lo.h: Regenerated.
32630         * lib/unictype/categ_Lu.h: Regenerated.
32631         * lib/unictype/categ_M.h: Regenerated.
32632         * lib/unictype/categ_Mc.h: Regenerated.
32633         * lib/unictype/categ_Me.h: Regenerated.
32634         * lib/unictype/categ_Mn.h: Regenerated.
32635         * lib/unictype/categ_N.h: Regenerated.
32636         * lib/unictype/categ_Nd.h: Regenerated.
32637         * lib/unictype/categ_Nl.h: Regenerated.
32638         * lib/unictype/categ_No.h: Regenerated.
32639         * lib/unictype/categ_P.h: Regenerated.
32640         * lib/unictype/categ_Pd.h: Regenerated.
32641         * lib/unictype/categ_Pe.h: Regenerated.
32642         * lib/unictype/categ_Pf.h: Regenerated.
32643         * lib/unictype/categ_Pi.h: Regenerated.
32644         * lib/unictype/categ_Po.h: Regenerated.
32645         * lib/unictype/categ_Ps.h: Regenerated.
32646         * lib/unictype/categ_S.h: Regenerated.
32647         * lib/unictype/categ_Sk.h: Regenerated.
32648         * lib/unictype/categ_Sm.h: Regenerated.
32649         * lib/unictype/categ_So.h: Regenerated.
32650         * lib/unictype/categ_of.h: Regenerated.
32651         * lib/unictype/combining.h: Regenerated.
32652         * lib/unictype/ctype_alnum.h: Regenerated.
32653         * lib/unictype/ctype_alpha.h: Regenerated.
32654         * lib/unictype/ctype_graph.h: Regenerated.
32655         * lib/unictype/ctype_lower.h: Regenerated.
32656         * lib/unictype/ctype_print.h: Regenerated.
32657         * lib/unictype/ctype_punct.h: Regenerated.
32658         * lib/unictype/ctype_upper.h: Regenerated.
32659         * lib/unictype/decdigit.h: Regenerated.
32660         * lib/unictype/digit.h: Regenerated.
32661         * lib/unictype/mirror.h: Regenerated.
32662         * lib/unictype/numeric.h: Regenerated.
32663         * lib/unictype/pr_alphabetic.h: Regenerated.
32664         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32665         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32666         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32667         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32668         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32669         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32670         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32671         * lib/unictype/pr_combining.h: Regenerated.
32672         * lib/unictype/pr_dash.h: Regenerated.
32673         * lib/unictype/pr_decimal_digit.h: Regenerated.
32674         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32675         * lib/unictype/pr_deprecated.h: Regenerated.
32676         * lib/unictype/pr_diacritic.h: Regenerated.
32677         * lib/unictype/pr_extender.h: Regenerated.
32678         * lib/unictype/pr_format_control.h: Regenerated.
32679         * lib/unictype/pr_grapheme_base.h: Regenerated.
32680         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32681         * lib/unictype/pr_grapheme_link.h: Regenerated.
32682         * lib/unictype/pr_id_continue.h: Regenerated.
32683         * lib/unictype/pr_id_start.h: Regenerated.
32684         * lib/unictype/pr_ideographic.h: Regenerated.
32685         * lib/unictype/pr_ignorable_control.h: Regenerated.
32686         * lib/unictype/pr_lowercase.h: Regenerated.
32687         * lib/unictype/pr_math.h: Regenerated.
32688         * lib/unictype/pr_numeric.h: Regenerated.
32689         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32690         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32691         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32692         * lib/unictype/pr_other_id_continue.h: Regenerated.
32693         * lib/unictype/pr_other_lowercase.h: Regenerated.
32694         * lib/unictype/pr_other_math.h: Regenerated.
32695         * lib/unictype/pr_punctuation.h: Regenerated.
32696         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32697         * lib/unictype/pr_soft_dotted.h: Regenerated.
32698         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32699         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32700         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32701         * lib/unictype/pr_uppercase.h: Regenerated.
32702         * lib/unictype/pr_xid_continue.h: Regenerated.
32703         * lib/unictype/pr_xid_start.h: Regenerated.
32704         * lib/unictype/pr_zero_width.h: Regenerated.
32705         * lib/unictype/scripts.h: Regenerated.
32706         * lib/unictype/scripts_byname.gperf: Regenerated.
32707         * lib/unictype/sy_java_ident.h: Regenerated.
32708         * lib/unilbrk/lbrkprop1.h: Regenerated.
32709         * lib/unilbrk/lbrkprop2.h: Regenerated.
32710         * tests/unictype/test-categ_C.c: Regenerated.
32711         * tests/unictype/test-categ_Cf.c: Regenerated.
32712         * tests/unictype/test-categ_Cn.c: Regenerated.
32713         * tests/unictype/test-categ_L.c: Regenerated.
32714         * tests/unictype/test-categ_Ll.c: Regenerated.
32715         * tests/unictype/test-categ_Lm.c: Regenerated.
32716         * tests/unictype/test-categ_Lo.c: Regenerated.
32717         * tests/unictype/test-categ_Lu.c: Regenerated.
32718         * tests/unictype/test-categ_M.c: Regenerated.
32719         * tests/unictype/test-categ_Mc.c: Regenerated.
32720         * tests/unictype/test-categ_Me.c: Regenerated.
32721         * tests/unictype/test-categ_Mn.c: Regenerated.
32722         * tests/unictype/test-categ_N.c: Regenerated.
32723         * tests/unictype/test-categ_Nd.c: Regenerated.
32724         * tests/unictype/test-categ_Nl.c: Regenerated.
32725         * tests/unictype/test-categ_No.c: Regenerated.
32726         * tests/unictype/test-categ_P.c: Regenerated.
32727         * tests/unictype/test-categ_Pd.c: Regenerated.
32728         * tests/unictype/test-categ_Pe.c: Regenerated.
32729         * tests/unictype/test-categ_Pf.c: Regenerated.
32730         * tests/unictype/test-categ_Pi.c: Regenerated.
32731         * tests/unictype/test-categ_Po.c: Regenerated.
32732         * tests/unictype/test-categ_Ps.c: Regenerated.
32733         * tests/unictype/test-categ_S.c: Regenerated.
32734         * tests/unictype/test-categ_Sk.c: Regenerated.
32735         * tests/unictype/test-categ_Sm.c: Regenerated.
32736         * tests/unictype/test-categ_So.c: Regenerated.
32737         * tests/unictype/test-ctype_alnum.c: Regenerated.
32738         * tests/unictype/test-ctype_alpha.c: Regenerated.
32739         * tests/unictype/test-ctype_graph.c: Regenerated.
32740         * tests/unictype/test-ctype_lower.c: Regenerated.
32741         * tests/unictype/test-ctype_print.c: Regenerated.
32742         * tests/unictype/test-ctype_punct.c: Regenerated.
32743         * tests/unictype/test-ctype_upper.c: Regenerated.
32744         * tests/unictype/test-decdigit.h: Regenerated.
32745         * tests/unictype/test-digit.h: Regenerated.
32746         * tests/unictype/test-numeric.h: Regenerated.
32747         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32748         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32749         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32750         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32751         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32752         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32753         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32754         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32755         * tests/unictype/test-pr_combining.c: Regenerated.
32756         * tests/unictype/test-pr_dash.c: Regenerated.
32757         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32758         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32759         * tests/unictype/test-pr_deprecated.c: Regenerated.
32760         * tests/unictype/test-pr_diacritic.c: Regenerated.
32761         * tests/unictype/test-pr_extender.c: Regenerated.
32762         * tests/unictype/test-pr_format_control.c: Regenerated.
32763         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32764         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32765         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32766         * tests/unictype/test-pr_id_continue.c: Regenerated.
32767         * tests/unictype/test-pr_id_start.c: Regenerated.
32768         * tests/unictype/test-pr_ideographic.c: Regenerated.
32769         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32770         * tests/unictype/test-pr_lowercase.c: Regenerated.
32771         * tests/unictype/test-pr_math.c: Regenerated.
32772         * tests/unictype/test-pr_numeric.c: Regenerated.
32773         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32774         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32775         Regenerated.
32776         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32777         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32778         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32779         * tests/unictype/test-pr_other_math.c: Regenerated.
32780         * tests/unictype/test-pr_punctuation.c: Regenerated.
32781         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32782         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32783         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32784         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32785         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32786         * tests/unictype/test-pr_uppercase.c: Regenerated.
32787         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32788         * tests/unictype/test-pr_xid_start.c: Regenerated.
32789         * tests/unictype/test-pr_zero_width.c: Regenerated.
32790
32791         Update to Unicode 5.1.0.
32792         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32793         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32794         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32795         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32796         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32797         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32798         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32799         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32800         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32801         (nonspacing_table_ind): Update.
32802         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32803
32804         Update to Unicode 5.1.0.
32805         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32806         code transform.
32807         * lib/uniname/uniname.c (unicode_character_name,
32808         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32809         * lib/uniname/uninames.h: Regenerated.
32810         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32811
32812 2009-02-07  Bruno Haible  <bruno@clisp.org>
32813
32814         Merge gen-ctype and gen-lbrk into a single program.
32815         * lib/gen-uni-tables.c: New file, incorporating
32816         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32817         Add directory prefixes to the names of the generated files.
32818         * lib/unictype/gen-ctype.c: Remove file.
32819         * lib/unilbrk/gen-lbrk.c: Remove file.
32820         * modules/gen-uni-tables: New file.
32821         * modules/unictype/gen-ctype: Remove file.
32822         * modules/unilbrk/gen-lbrk: Remove file.
32823
32824 2009-02-07  Bruno Haible  <bruno@clisp.org>
32825
32826         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32827
32828         New module 'unistr/u32-strcoll'.
32829         * modules/unistr/u32-strcoll: New file.
32830         * lib/unistr/u32-strcoll.c: New file.
32831
32832         New module 'unistr/u16-strcoll'.
32833         * modules/unistr/u16-strcoll: New file.
32834         * lib/unistr/u16-strcoll.c: New file.
32835
32836         New module 'unistr/u8-strcoll'.
32837         * modules/unistr/u8-strcoll: New file.
32838         * lib/unistr/u8-strcoll.c: New file.
32839         * lib/unistr/u-strcoll.h: New file.
32840
32841 2009-02-07  Bruno Haible  <bruno@clisp.org>
32842
32843         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32844         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32845         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32846         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32847         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32848         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32849
32850 2009-02-07  Bruno Haible  <bruno@clisp.org>
32851
32852         Make 64-bit clean.
32853         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32854         output_combclass, output_bidi_category, output_decimal_digit,
32855         output_digit, output_numeric, output_mirror, output_scripts,
32856         output_ident_category): Use proper width specifier in format strings.
32857
32858 2009-02-07  Bruno Haible  <bruno@clisp.org>
32859
32860         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32861         failure behaviour.
32862
32863 2009-02-07  Jim Meyering  <meyering@redhat.com>
32864
32865         regex: avoid compilation failure with upcoming gcc-4.4
32866         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32867         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32868         "... error: integer overflow in preprocessor expression".
32869
32870 2009-02-05  Ben Pfaff  <blp@gnu.org>
32871
32872         Fix link errors on Windows when close module is used.
32873         * modules/close: Add $(LIB_CLOSE) to Link section.
32874         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32875         $(LIB_CLOSE) on Windows.
32876
32877 2009-02-05  Jim Meyering  <meyering@redhat.com>
32878
32879         still avoid unused-parameter warnings, but do it cleanly
32880         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32881         (get_fs_usage): Cast to void instead.
32882         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32883         (dev_from_mount_options, read_file_system_list): Cast to void.
32884         Prompted by Bruno Haible.
32885
32886 2009-02-04  Jim Meyering  <meyering@redhat.com>
32887
32888         fsusage.c: correct copyright year
32889         * lib/fsusage.c: Reflect year in which the change is pushed into
32890
32891         avoid misc. warnings
32892         * lib/fsusage.c (UNUSED_PARAM): Define.
32893         (get_fs_usage): Mark parameter "disk" as unused.
32894         * lib/getugroups.c (getgrent): Use "void" in prototype.
32895         * lib/mountlist.c: Mark unused parameters.
32896         (read_file_system_list): Declare a local with "const".
32897         * lib/nanosleep.c (getnow): Declare static.
32898         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32899
32900         dirfd: set errno upon failure
32901         * lib/dirfd.c: Include <errno.h>.
32902         Set errno to ENOTSUP when returning -1.
32903         * modules/dirfd (Depends-on): Add errno.
32904         Suggested by John Kodis <kodis@comcast.net>.
32905
32906 2009-02-01  Bruno Haible  <bruno@clisp.org>
32907
32908         Don't assume sizeof (long) >= sizeof (void *).
32909         * lib/memcmp.c: Include stdint.h.
32910         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32911         srcp2 to 'const byte *'.
32912         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32913         types to uintptr_t.
32914         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32915         * modules/memcmp (Depends-on): Add stdint.
32916         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32917
32918 2009-01-30  Eric Blake  <ebb9@byu.net>
32919
32920         fix more require-before-expand issues
32921         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32922         expand, AC_PROG_AWK.
32923         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32924
32925 2009-01-28  Eric Blake  <ebb9@byu.net>
32926
32927         version-etc: use consistent URL formatting
32928         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32929         Improve formatting.  Use fputs for string without %.
32930
32931 2009-01-28  Jim Meyering  <meyering@redhat.com>
32932
32933         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32934         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32935         "underquoted definition of NAME" from autoconf-2.59.
32936
32937 2009-01-28  Bruno Haible  <bruno@clisp.org>
32938
32939         * doc/gnulib.texi: Add "Obsolete modules" to index.
32940
32941 2009-01-28  Jim Meyering  <meyering@redhat.com>
32942
32943         useless-if-before-free: recognize more variants
32944         * build-aux/useless-if-before-free: Also recognize e.g.,
32945         if (NULL != p) free (p);
32946
32947 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32948
32949         test-getaddrinfo: skip (don't fail) this test when there's no network
32950         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32951         on the presumption that it means you lack network access.
32952
32953 2009-01-26  Jim Meyering  <meyering@redhat.com>
32954
32955         fflush: avoid warnings on modern systems
32956         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32957         pos and result, into scopes where they're used.
32958
32959 2009-01-26  Eric Blake  <ebb9@byu.net>
32960
32961         Silence warning reintroduced by recent extensions patch.
32962         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32963         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32964         autoconf.
32965
32966         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32967         * m4/00gnulib.m4: New file.
32968         * gnulib-tool (func_get_filelist): Always use it.
32969         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32970         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32971
32972 2009-01-25  Bruno Haible  <bruno@clisp.org>
32973
32974         Make test-quotearg work on MacOS X and AIX.
32975         * tests/test-quotearg.sh: New file.
32976         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32977         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32978         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32979         include <libintl.h>.
32980         (fake_locale): Remove variable.
32981         (gettext, dgettext, dcgettext): Remove functions.
32982         (main): Instead of setting a fake locale, set a real locale. Call
32983         textdomain and bindtextdomain.
32984         * modules/quotearg-tests (Files): Add the new files.
32985         (Depends-on): Add gettext, setenv, unsetenv.
32986         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32987         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32988         Augment TESTS_ENVIRONMENT.
32989
32990 2009-01-25  Bruno Haible  <bruno@clisp.org>
32991
32992         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32993         fr_FR.ISO8859-1 locale on MacOS X.
32994         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32995         ja_JP.eucJP locale on MacOS X.
32996         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32997         zh_CN.GB18030 locale on MacOS X.
32998
32999 2009-01-25  Bruno Haible  <bruno@clisp.org>
33000
33001         Avoid link errors on MacOS X 10.3.
33002         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33003         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33004
33005 2009-01-25  Bruno Haible  <bruno@clisp.org>
33006
33007         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33008         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33009         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33010         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33011         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33012         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33013         posix_spawnattr_init, posix_spawnattr_setsigmask,
33014         posix_spawnattr_setflags, posix_spawnattr_destroy.
33015
33016         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33017         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33018         * modules/execute (Files): Remove m4/posix_spawn.m4.
33019         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33020         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33021         posix_spawnattr_init, posix_spawnattr_setsigmask,
33022         posix_spawnattr_setflags, posix_spawnattr_destroy.
33023
33024 2009-01-25  Bruno Haible  <bruno@clisp.org>
33025
33026         * lib/glthread/threadlib.c: Include <stdlib.h>.
33027
33028 2009-01-25  Bruno Haible  <bruno@clisp.org>
33029
33030         * lib/glthread/threadlib.c (dummy): New declaration.
33031
33032 2009-01-25  Bruno Haible  <bruno@clisp.org>
33033
33034         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33035         multibyte characters also for the GB18030 encoding. Don't crash when
33036         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33037
33038 2009-01-25  Bruno Haible  <bruno@clisp.org>
33039
33040         Avoid redefining 'struct random_data' on OSF/1 5.1.
33041         * lib/stdlib.in.h: Include <random.h> if it exists.
33042         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33043         HAVE_RANDOM_H. Include <random.h> when testing whether
33044         'struct random_data' exists.
33045         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33046
33047 2009-01-25  Bruno Haible  <bruno@clisp.org>
33048
33049         Don't install charset.alias on MacOS X >= 10.3.
33050         * lib/localcharset.c (DARWIN7): New macro.
33051         (get_charset_aliases): Hardcode the result for Darwin7.
33052         * modules/localcharset (install-exec-local): Don't install
33053         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33054
33055 2009-01-25  Bruno Haible  <bruno@clisp.org>
33056
33057         Don't install charset.alias on mingw and Cygwin.
33058         * modules/localcharset (install-exec-local): Don't install
33059         charset.alias on mingw and Cygwin, if the file does not yet exist.
33060         The result for these platforms is hardcoded in localcharset.c.
33061
33062 2009-01-25  Bruno Haible  <bruno@clisp.org>
33063
33064         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33065         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33066         before requiring AC_USE_SYSTEM_EXTENSIONS.
33067
33068 2009-01-25  Jim Meyering  <meyering@redhat.com>
33069
33070         c-strtod: avoid warnings
33071         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33072         "assignment discards qualifiers from pointer target type" warnings.
33073
33074 2009-01-24  Bruno Haible  <bruno@clisp.org>
33075
33076         Add support for non-UTF-8 locales on MacOS X.
33077         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33078         canonical encodings. For Darwin 7 and newer, don't map traditional
33079         encodings to UTF-8.
33080         Reported by Vincent Lefevre <vincent@vinc17.org>
33081         at <http://savannah.gnu.org/bugs/?25235>.
33082
33083 2009-01-24  Bruno Haible  <bruno@clisp.org>
33084
33085         * doc/gnulib.texi (Obsolete modules): New section.
33086         Reported by Mike Frysinger <vapier@gentoo.org>.
33087
33088 2009-01-24  Bruno Haible  <bruno@clisp.org>
33089
33090         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33091         (%.dvi): New rule.
33092
33093 2009-01-24  Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33096         Reported by Eric Blake.
33097
33098 2009-01-24  Bruno Haible  <bruno@clisp.org>
33099
33100         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33101         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33102         Reported by Gary V. Vaughan <gary@gnu.org>.
33103
33104 2009-01-24  Bruno Haible  <bruno@clisp.org>
33105
33106         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33107
33108 2009-01-23  Bruno Haible  <bruno@clisp.org>
33109
33110         Make c-strtod, c-strtold usable in libraries.
33111         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33112         (C_STRTOD): Call strdup instead of xstrdup.
33113         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33114         * modules/c-strtold (Depends-on): Likewise.
33115         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33116         * NEWS: Mention the change.
33117         Reported by Michael Gold <mgold@ncf.ca>.
33118
33119 2009-01-23  Jim Meyering  <meyering@redhat.com>
33120
33121         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33122         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33123         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33124
33125 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33126
33127         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33128         GNU CoreUtils.
33129         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33130         * modules/version-etc (Description): Update.
33131
33132 2009-01-22  Bruno Haible  <bruno@clisp.org>
33133
33134         Cache the C locale object.
33135         * lib/c-strtod.c (c_locale_cache): New variable.
33136         (c_locale): New function.
33137         (C_STRTOD): Use it, and don't call freelocale.
33138         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33139         Suggested by Paolo Bonzini.
33140
33141 2009-01-21  Bruno Haible  <bruno@clisp.org>
33142
33143         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33144         conditions other than overflow.
33145
33146 2009-01-21  Bruno Haible  <bruno@clisp.org>
33147
33148         * lib/c-strtod.c: Include errno.h.
33149         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33150         value from STRTOD_L and STRTOD.
33151
33152 2009-01-21  Bruno Haible  <bruno@clisp.org>
33153         and Jim Meyering  <meyering@redhat.com>
33154
33155         nanosleep: skip configure test (fail it) for apple universal builds
33156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33157         universal builds, assume that nanosleep does not work.
33158         * modules/nanosleep (Depends-on): Add multiarch.
33159
33160         mktime: skip configure test (fail it) for apple universal builds
33161         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33162         universal builds, assume that mktime does not work.
33163         * modules/mktime (Depends-on): Add multiarch.
33164
33165 2009-01-21  Eric Blake  <ebb9@byu.net>
33166
33167         multiarch: avoid expand-before-require warning
33168         * modules/multiarch (configure.ac): Require, rather than expand,
33169         gl_MULTIARCH.
33170         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33171         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33172         enforce that all clients require it.  Partial reversion of
33173         2008-12-29 patch.
33174
33175         error: avoid expand-before-require warning
33176         * modules/errno (configure.ac): Require, rather than expand,
33177         gl_HEADER_ERRNO_H.
33178         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33179         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33180         enforce that all clients require it.
33181
33182         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33183         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33184         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33185         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33186
33187 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33188
33189         Revert:
33190         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33191
33192         regex: do not depend on obsolete modules.
33193         * modules/regex: Remove memcmp and memmove.
33194
33195 2009-01-20  Bruno Haible  <bruno@clisp.org>
33196
33197         Make the 'link' module link on Windows NT 4.
33198         * lib/link.c (_WIN32_WINNT): Don't define.
33199         (CreateHardLinkFuncType): New type.
33200         (CreateHardLinkFunc, initialized): New variables.
33201         (initialize): New function.
33202         (link): Invoke CreateHardLink indirectly through the function pointer.
33203
33204 2009-01-20  Bruno Haible  <bruno@clisp.org>
33205
33206         Fix compilation failure on mingw.
33207         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33208
33209 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33210
33211         * doc/c-strtod.texi: Mention a couple of restrictions.
33212
33213 2009-01-20  Jim Meyering  <meyering@redhat.com>
33214
33215         gettimeofday: move more declarations out of functions
33216         * lib/gettimeofday.c: Move extern declarations of tzset and
33217         gmtime out of containing functions.  Prompted by Bruno Haible.
33218
33219 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33220
33221         regex: do not depend on obsolete modules.
33222         * modules/regex: Remove memcmp and memmove.
33223
33224 2009-01-19  Bruno Haible  <bruno@clisp.org>
33225
33226         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33227         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33228         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33229         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33230         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33231
33232 2009-01-19  Bruno Haible  <bruno@clisp.org>
33233
33234         * tests/test-link.c: Include <errno.h>.
33235         (main): Exit with code 77 when a hard link cannot be created due to
33236         the file system.
33237         * tests/test-link.sh: Skip test when a hard link cannot be created due
33238         to the file system.
33239         Suggested by Eric Blake.
33240
33241 2009-01-19  Martin Lambers  <marlam@marlam.de>
33242
33243         * modules/link-tests: New file.
33244         * tests/test-link.sh: New file.
33245         * tests/test-link.c: New file.
33246
33247 2009-01-19  Eric Blake  <ebb9@byu.net>
33248
33249         doc: mention another function added in cygwin 1.7.0
33250         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33251         Another new function in cygwin 1.7.
33252
33253 2009-01-19  Bruno Haible  <bruno@clisp.org>
33254
33255         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33256         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33257         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33258         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33259         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33260         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33261         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33262         * m4/md4.m4 (gl_MD4): Likewise.
33263         * m4/md5.m4 (gl_MD5): Likewise.
33264         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33265         * m4/sha1.m4 (gl_SHA1): Likewise.
33266         * m4/sha256.m4 (gl_SHA256): Likewise.
33267         * m4/sha512.m4 (gl_SHA512): Likewise.
33268
33269 2009-01-19  Bruno Haible  <bruno@clisp.org>
33270
33271         * modules/uniname/uniname-tests (Depends-on): Add progname.
33272         * tests/uniname/test-uninames.c: Include progname.h.
33273         (main): Call set_program_name.
33274
33275         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33276         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33277         (main): Call set_program_name.
33278
33279         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33280         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33281         (main): Call set_program_name.
33282
33283         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33284         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33285         (main): Call set_program_name.
33286
33287         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33288         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33289         (main): Call set_program_name.
33290
33291         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33292         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33293         (main): Call set_program_name.
33294
33295         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33296         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33297         (main): Call set_program_name.
33298
33299         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33300         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33301         (main): Call set_program_name.
33302
33303         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33304         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33305         (main): Call set_program_name.
33306
33307 2009-01-19  Eric Blake  <ebb9@byu.net>
33308
33309         test-unistd: test previous patch
33310         * tests/test-unistd.c: Test *_FILENO macros.
33311
33312         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33313         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33314         Guarantee a definition.
33315         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33316         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33317         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33318         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33319         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33320         Likewise.
33321         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33322         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33323         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33324         Likewise.
33325         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33326         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33327         (STDERR_FILENO): Likewise.
33328         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33329         (STDERR_FILENO): Likewise.
33330         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33331         (STDERR_FILENO): Likewise.
33332         Reported by Elbert Pol.
33333
33334 2009-01-19  Eric Blake  <ebb9@byu.net>
33335
33336         doc: mention more functions added in cygwin 1.7.0
33337         * doc/posix-functions/abort.texi (abort): Update wording related
33338         to cygwin.
33339         * doc/posix-functions/daylight.texi (daylight): Likewise.
33340         * doc/posix-functions/optarg.texi (optarg): Likewise.
33341         * doc/posix-functions/optarg.texi (opterr): Likewise.
33342         * doc/posix-functions/optarg.texi (optind): Likewise.
33343         * doc/posix-functions/optarg.texi (optopt): Likewise.
33344         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33345         worked in 1.5.x, and was withdrawn in 1.7.
33346         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33347         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33348         cygwin versions.
33349         * doc/posix-functions/perror.texi (perror): Likewise.
33350         * doc/posix-functions/printf.texi (printf): Likewise.
33351         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33352         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33353         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33354         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33355         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33356         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33357         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33358         Likewise.
33359         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33360         Likewise.
33361         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33362         this function.
33363         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33364         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33365         Likewise.
33366         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33367         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33368         * doc/posix-functions/confstr.texi (confstr): Likewise.
33369         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33370         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33371         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33372         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33373         * doc/posix-functions/fputws.texi (fputws): Likewise.
33374         * doc/posix-functions/fwide.texi (fwide): Likewise.
33375         * doc/posix-functions/getwc.texi (getwc): Likewise.
33376         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33377         * doc/posix-functions/putwc.texi (putwc): Likewise.
33378         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33379         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33380         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33381         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33382         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33383         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33384         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33385         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33386         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33387         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33388         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33389
33390 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33391
33392         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33393         * lib/ioctl.c: Include <sys/ioctl.h>.
33394
33395 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33396
33397         * modules/getdate-tests (Depends-on): Add progname.
33398         * tests/test-getdate.c: Use progname module, to avoid link errors
33399         on non-glibc systems.
33400
33401 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33402
33403         * modules/filenamecat-tests (Depends-on): Add progname.
33404         * modules/fstrcmp-tests (Depends-on): Likewise.
33405
33406         * tests/test-filenamecat.c: Use progname module, to avoid link
33407         errors on non-glibc systems.
33408         * tests/test-fstrcmp.c: Likewise.
33409
33410 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33411
33412         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33413         * lib/gettimeofday.c: Move extern declaration out of function.
33414
33415 2009-01-18  Bruno Haible  <bruno@clisp.org>
33416
33417         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33418         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33419         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33420
33421 2009-01-18  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/strftime.c (MEMPCPY): Remove unused macro.
33424         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33425
33426 2009-01-18  Martin Lambers  <marlam@marlam.de>
33427
33428         New module 'link'.
33429         * lib/unistd.in.h (link): New declaration.
33430         * lib/link.c: New file.
33431         * m4/link.m4: New file.
33432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33433         HAVE_LINK.
33434         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33435         * modules/link: New file.
33436         * doc/posix-functions/link.texi: Mention the new module.
33437
33438 2009-01-18  Bruno Haible  <bruno@clisp.org>
33439
33440         * tests/test-avltree_list.c (main): Call set_program_name.
33441         * tests/test-avltree_oset.c (main): Likewise.
33442         * tests/test-obstack-printf.c: Include progname.h.
33443         (main): Call set_program_name.
33444         * tests/test-quotearg.c: Include progname.h.
33445         (main): Call set_program_name.
33446         * tests/test-xmemdup0.c: Include progname.h.
33447         (main): Call set_program_name.
33448
33449 2009-01-18  Bruno Haible  <bruno@clisp.org>
33450
33451         New module 'alphasort'.
33452         * lib/dirent.in.h (alphasort): New declaration.
33453         * lib/alphasort.c: New file, from glibc with modifications.
33454         * m4/alphasort.m4: New file.
33455         * modules/alphasort: New file.
33456         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33457         HAVE_ALPHASORT.
33458         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33459         HAVE_ALPHASORT.
33460         * doc/posix-functions/alphasort.texi: Mention the new module and the
33461         portability problems.
33462
33463 2009-01-18  Bruno Haible  <bruno@clisp.org>
33464
33465         New module 'scandir'.
33466         * lib/dirent.in.h (scandir): New declaration.
33467         * lib/scandir.c: New file, from glibc with modifications.
33468         * m4/scandir.m4: New file.
33469         * modules/scandir: New file.
33470         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33471         HAVE_SCANDIR.
33472         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33473         HAVE_SCANDIR.
33474         * doc/posix-functions/scandir.texi: Mention the new module and the
33475         portability problems.
33476
33477 2009-01-17  Bruno Haible  <bruno@clisp.org>
33478
33479         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33480         Update documentation.
33481         (func_remove_suffix): Escape all dots in the suffix. Update
33482         documentation.
33483         (func_filter_filelist): Update documentation.
33484         Reported by Ralf Wildenhues.
33485
33486 2009-01-17  Bruno Haible  <bruno@clisp.org>
33487
33488         * modules/dprintf-posix-tests: New file.
33489         * tests/test-dprintf-posix.sh: New file.
33490         * tests/test-dprintf-posix.c: New file.
33491
33492         New modules 'dprintf', 'dprintf-posix'.
33493         * lib/stdio.in.h (dprintf): New declaration.
33494         * lib/dprintf.c: New file.
33495         * m4/dprintf.m4: New file.
33496         * m4/dprintf-posix.m4: New file.
33497         * modules/dprintf: New file.
33498         * modules/dprintf-posix: New file.
33499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33500         HAVE_DPRINTF, REPLACE_DPRINTF.
33501         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33502         HAVE_DPRINTF, REPLACE_DPRINTF.
33503         * doc/posix-functions/dprintf.texi: Mention the new modules.
33504
33505 2009-01-17  Bruno Haible  <bruno@clisp.org>
33506
33507         * modules/vdprintf-posix-tests: New file.
33508         * tests/test-vdprintf-posix.sh: New file.
33509         * tests/test-vdprintf-posix.c: New file.
33510
33511         New modules 'vdprintf', 'vdprintf-posix'.
33512         * lib/stdio.in.h (vdprintf): New declaration.
33513         * lib/vdprintf.c: New file.
33514         * m4/vdprintf.m4: New file.
33515         * m4/vdprintf-posix.m4: New file.
33516         * modules/vdprintf: New file.
33517         * modules/vdprintf-posix: New file.
33518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33519         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33520         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33521         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33522         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33523
33524 2009-01-17  Bruno Haible  <bruno@clisp.org>
33525
33526         Fix replacement of fopen on mingw.
33527         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33528         mingw.
33529
33530 2009-01-17  Bruno Haible  <bruno@clisp.org>
33531
33532         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33533         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33534
33535 2009-01-17  Bruno Haible  <bruno@clisp.org>
33536
33537         Avoid test-fflush2.sh failure on mingw.
33538         * tests/test-fflush2.c: Include binary-io.h.
33539         (main): Put standard input into binary mode.
33540         * modules/fflush-tests (Depends-on): Add binary-io.
33541
33542 2009-01-17  Bruno Haible  <bruno@clisp.org>
33543
33544         * lib/wchar.in.h: In another particular situation, include only the
33545         system's <wchar.h> file.
33546         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33547         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33548         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33549
33550 2009-01-17  Bruno Haible  <bruno@clisp.org>
33551
33552         Support for stripping executables in --enable-relocatable.
33553         * build-aux/install-reloc: Expect one more argument, or an environment
33554         variable RELOC_STRIP_PROG. If set, strip the destination program and
33555         its wrapper.
33556         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33557         RELOC_STRIP_PROG.
33558         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33559         to set RELOCATABLE_STRIP.
33560         * NEWS: Mention the new Makefile requirement.
33561
33562 2009-01-17  Bruno Haible  <bruno@clisp.org>
33563
33564         * build-aux/install-reloc: Remove debugging information left over by
33565         C compiler on MacOS X.
33566
33567 2009-01-17  Bruno Haible  <bruno@clisp.org>
33568
33569         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33570         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33571         _NSGetExecutablePath.
33572
33573 2009-01-16  Jim Meyering  <meyering@redhat.com>
33574
33575         strerror: avoid warnings about discarding "const"
33576         * lib/strerror.c (rpl_strerror): Instead of returning a const
33577         string from each and every "case", use a variable, and add a single
33578         cast after the switch.
33579
33580 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33581
33582         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33583
33584 2009-01-16  Bruno Haible  <bruno@clisp.org>
33585
33586         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33587         array initializer syntax that also works in C++ mode.
33588         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33589
33590 2009-01-16  Jim Meyering  <meyering@redhat.com>
33591
33592         poll: suppress a warning
33593         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33594         to ignore "...unsigned expression < 0 is always false" warnings.
33595
33596 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33597
33598         poll: remove declarations of unused variables
33599         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33600         sockbuf and optlen.
33601
33602 2009-01-15  Bruno Haible  <bruno@clisp.org>
33603
33604         Make fflush-after-ungetc POSIX compliant on BSD systems.
33605         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33606         (clear_ungetc_buffer): Implement also for other systems.
33607         (rpl_fflush): On glibc systems, invoke
33608         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33609         clear_ungetc_buffer after fetching the stream's position, not before.
33610
33611 2009-01-15  Bruno Haible  <bruno@clisp.org>
33612
33613         Make fflush-after-ungetc POSIX compliant on glibc systems.
33614         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33615         after ungetc.
33616         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33617         (rpl_fflush): On glibc systems, simply call the system's fflush
33618         function after clearing the ungetc buffer.
33619         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33620         Instead, lseek only to the end of file, then use the system's fseeko
33621         for the rest. On glibc systems, reset the EOF indicator bit.
33622
33623 2009-01-15  Jim Meyering  <meyering@redhat.com>
33624
33625         openmp.m4: revert quote-adding change, for portability to older autoconf
33626         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33627         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33628         Simon Josefsson noticed the problem when using autoconf-2.61.
33629
33630 2009-01-15  Bruno Haible  <bruno@clisp.org>
33631
33632         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33633         * tests/test-fflush2.c (ASSERT): Always fail.
33634         (main): Add two tests for fflush() after ungetc(), taking into account
33635         the Austin Group's clarification.
33636         Suggested by Eric Blake.
33637
33638 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33639
33640         mktime.m4: remove K&R-style function prototypes
33641         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33642         for the Sun C++ compiler.
33643
33644 2009-01-14  Bruno Haible  <bruno@clisp.org>
33645
33646         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33647         while including <wchar.h>.
33648         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33649         the system's <wchar.h> file.
33650         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33651
33652 2009-01-14  Bruno Haible  <bruno@clisp.org>
33653
33654         * m4/csharp.m4: Don't mention gettext on the serial number line.
33655         * m4/csharpexec.m4: Likewise.
33656         * m4/eaccess.m4: Likewise.
33657         * m4/javaexec.m4: Likewise.
33658         * m4/sig_atomic_t.m4: Likewise.
33659         * m4/tmpdir.m4: Likewise.
33660         * m4/intldir.m4: Bump gettext version.
33661         * m4/lib-ld.m4: Likewise.
33662
33663 2009-01-14  Bruno Haible  <bruno@clisp.org>
33664
33665         * lib/progname.c (set_program_name): Add more comments.
33666         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33667
33668 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33669
33670         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33671         were sys/stat.h does not define it.
33672
33673 2009-01-14  Jim Meyering  <meyering@redhat.com>
33674
33675         many *.m4 files: improve m4 quoting
33676         99% of this change was performed by running the following commands:
33677         git ls-files | grep '\.m4$' | xargs perl -pi \
33678           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33679           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33680           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33681           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33682         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33683         The remainder were to add Copyright dates, increment serial numbers,
33684         undo some changes in comments, exclude m4/intl.m4, and add quotes
33685         around the "1" in ",1" where the unusual spacing prohibited the
33686         above regexps from doing the job.  For more details, see
33687         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33688         * m4/acl.m4: Modified.
33689         * m4/afs.m4: Likewise.
33690         * m4/alloca.m4: Likewise.
33691         * m4/argp.m4: Likewise.
33692         * m4/argz.m4: Likewise.
33693         * m4/atexit.m4: Likewise.
33694         * m4/bison-i18n.m4: Likewise.
33695         * m4/bison.m4: Likewise.
33696         * m4/byteswap.m4: Likewise.
33697         * m4/c-stack.m4: Likewise.
33698         * m4/c-strtod.m4: Likewise.
33699         * m4/calloc.m4: Likewise.
33700         * m4/canonicalize-lgpl.m4: Likewise.
33701         * m4/chown.m4: Likewise.
33702         * m4/clock_time.m4: Likewise.
33703         * m4/codeset.m4: Likewise.
33704         * m4/copy-file.m4: Likewise.
33705         * m4/csharp.m4: Likewise.
33706         * m4/csharpcomp.m4: Likewise.
33707         * m4/csharpexec.m4: Likewise.
33708         * m4/d-ino.m4: Likewise.
33709         * m4/d-type.m4: Likewise.
33710         * m4/dirfd.m4: Likewise.
33711         * m4/double-slash-root.m4: Likewise.
33712         * m4/eaccess.m4: Likewise.
33713         * m4/eealloc.m4: Likewise.
33714         * m4/environ.m4: Likewise.
33715         * m4/errno_h.m4: Likewise.
33716         * m4/euidaccess.m4: Likewise.
33717         * m4/execute.m4: Likewise.
33718         * m4/fatal-signal.m4: Likewise.
33719         * m4/fchdir.m4: Likewise.
33720         * m4/fcntl_h.m4: Likewise.
33721         * m4/fileblocks.m4: Likewise.
33722         * m4/filenamecat.m4: Likewise.
33723         * m4/findprog.m4: Likewise.
33724         * m4/flexmember.m4: Likewise.
33725         * m4/fnmatch.m4: Likewise.
33726         * m4/fopen.m4: Likewise.
33727         * m4/fpending.m4: Likewise.
33728         * m4/fprintf-posix.m4: Likewise.
33729         * m4/free.m4: Likewise.
33730         * m4/frexp.m4: Likewise.
33731         * m4/frexpl.m4: Likewise.
33732         * m4/fsusage.m4: Likewise.
33733         * m4/ftruncate.m4: Likewise.
33734         * m4/gc-camellia.m4: Likewise.
33735         * m4/gc-random.m4: Likewise.
33736         * m4/gc.m4: Likewise.
33737         * m4/getaddrinfo.m4: Likewise.
33738         * m4/getcwd-abort-bug.m4: Likewise.
33739         * m4/getcwd-path-max.m4: Likewise.
33740         * m4/getdate.m4: Likewise.
33741         * m4/getdomainname.m4: Likewise.
33742         * m4/getgroups.m4: Likewise.
33743         * m4/gethostname.m4: Likewise.
33744         * m4/gethrxtime.m4: Likewise.
33745         * m4/getline.m4: Likewise.
33746         * m4/getloadavg.m4: Likewise.
33747         * m4/getndelim2.m4: Likewise.
33748         * m4/getpass.m4: Likewise.
33749         * m4/gettext.m4: Likewise.
33750         * m4/gettime.m4: Likewise.
33751         * m4/gettimeofday.m4: Likewise.
33752         * m4/gnulib-common.m4: Likewise.
33753         * m4/group-member.m4: Likewise.
33754         * m4/host-os.m4: Likewise.
33755         * m4/iconv.m4: Likewise.
33756         * m4/iconv_open.m4: Likewise.
33757         * m4/inet_ntop.m4: Likewise.
33758         * m4/inet_pton.m4: Likewise.
33759         * m4/inline.m4: Likewise.
33760         * m4/intldir.m4: Likewise.
33761         * m4/intlmacosx.m4: Likewise.
33762         * m4/intmax.m4: Likewise.
33763         * m4/intmax_t.m4: Likewise.
33764         * m4/inttypes.m4: Likewise.
33765         * m4/inttypes_h.m4: Likewise.
33766         * m4/inttypes-pri.m4: Likewise.
33767         * m4/isapipe.m4: Likewise.
33768         * m4/isnand.m4: Likewise.
33769         * m4/isnanf.m4: Likewise.
33770         * m4/isnanl.m4: Likewise.
33771         * m4/javacomp.m4: Likewise.
33772         * m4/javaexec.m4: Likewise.
33773         * m4/jm-winsz1.m4: Likewise.
33774         * m4/jm-winsz2.m4: Likewise.
33775         * m4/lchown.m4: Likewise.
33776         * m4/lcmessage.m4: Likewise.
33777         * m4/ldexpl.m4: Likewise.
33778         * m4/lib-ld.m4: Likewise.
33779         * m4/lib-link.m4: Likewise.
33780         * m4/libsigsegv.m4: Likewise.
33781         * m4/link-follow.m4: Likewise.
33782         * m4/localcharset.m4: Likewise.
33783         * m4/locale-fr.m4: Likewise.
33784         * m4/locale-ja.m4: Likewise.
33785         * m4/locale-tr.m4: Likewise.
33786         * m4/locale-zh.m4: Likewise.
33787         * m4/lock.m4: Likewise.
33788         * m4/longlong.m4: Likewise.
33789         * m4/ls-mntd-fs.m4: Likewise.
33790         * m4/lstat.m4: Likewise.
33791         * m4/malloc.m4: Likewise.
33792         * m4/mathl.m4: Likewise.
33793         * m4/mbrtowc.m4: Likewise.
33794         * m4/mbstate_t.m4: Likewise.
33795         * m4/mbswidth.m4: Likewise.
33796         * m4/memchr.m4: Likewise.
33797         * m4/memcmp.m4: Likewise.
33798         * m4/memcpy.m4: Likewise.
33799         * m4/memmem.m4: Likewise.
33800         * m4/memmove.m4: Likewise.
33801         * m4/mempcpy.m4: Likewise.
33802         * m4/memrchr.m4: Likewise.
33803         * m4/memset.m4: Likewise.
33804         * m4/minmax.m4: Likewise.
33805         * m4/mkdir-slash.m4: Likewise.
33806         * m4/mkdtemp.m4: Likewise.
33807         * m4/mktime.m4: Likewise.
33808         * m4/mmap-anon.m4: Likewise.
33809         * m4/mountlist.m4: Likewise.
33810         * m4/nanosleep.m4: Likewise.
33811         * m4/nls.m4: Likewise.
33812         * m4/nocrash.m4: Likewise.
33813         * m4/open.m4: Likewise.
33814         * m4/openat.m4: Likewise.
33815         * m4/openmp.m4: Likewise.
33816         * m4/pathmax.m4: Likewise.
33817         * m4/perl.m4: Likewise.
33818         * m4/physmem.m4: Likewise.
33819         * m4/pipe.m4: Likewise.
33820         * m4/po.m4: Likewise.
33821         * m4/poll.m4: Likewise.
33822         * m4/posixtm.m4: Likewise.
33823         * m4/posixver.m4: Likewise.
33824         * m4/printf-frexp.m4: Likewise.
33825         * m4/printf-frexpl.m4: Likewise.
33826         * m4/printf-posix.m4: Likewise.
33827         * m4/printf-posix-rpl.m4: Likewise.
33828         * m4/printf.m4: Likewise.
33829         * m4/progtest.m4: Likewise.
33830         * m4/putenv.m4: Likewise.
33831         * m4/readline.m4: Likewise.
33832         * m4/readlink.m4: Likewise.
33833         * m4/readutmp.m4: Likewise.
33834         * m4/realloc.m4: Likewise.
33835         * m4/regex.m4: Likewise.
33836         * m4/relocatable.m4: Likewise.
33837         * m4/relocatable-lib.m4: Likewise.
33838         * m4/rename-dest-slash.m4: Likewise.
33839         * m4/rename.m4: Likewise.
33840         * m4/rmdir-errno.m4: Likewise.
33841         * m4/rmdir.m4: Likewise.
33842         * m4/roundf.m4: Likewise.
33843         * m4/roundl.m4: Likewise.
33844         * m4/rpmatch.m4: Likewise.
33845         * m4/save-cwd.m4: Likewise.
33846         * m4/selinux-selinux-h.m4: Likewise.
33847         * m4/setenv.m4: Likewise.
33848         * m4/settime.m4: Likewise.
33849         * m4/sig2str.m4: Likewise.
33850         * m4/sig_atomic_t.m4: Likewise.
33851         * m4/signalblocking.m4: Likewise.
33852         * m4/signbit.m4: Likewise.
33853         * m4/sigpipe.m4: Likewise.
33854         * m4/sockets.m4: Likewise.
33855         * m4/sockpfaf.m4: Likewise.
33856         * m4/st_dm_mode.m4: Likewise.
33857         * m4/stat-time.m4: Likewise.
33858         * m4/stdbool.m4: Likewise.
33859         * m4/stdint.m4: Likewise.
33860         * m4/stdint_h.m4: Likewise.
33861         * m4/stpcpy.m4: Likewise.
33862         * m4/stpncpy.m4: Likewise.
33863         * m4/strcase.m4: Likewise.
33864         * m4/strchrnul.m4: Likewise.
33865         * m4/strcspn.m4: Likewise.
33866         * m4/strdup.m4: Likewise.
33867         * m4/strftime.m4: Likewise.
33868         * m4/strndup.m4: Likewise.
33869         * m4/strnlen.m4: Likewise.
33870         * m4/strpbrk.m4: Likewise.
33871         * m4/strptime.m4: Likewise.
33872         * m4/strsep.m4: Likewise.
33873         * m4/strtod.m4: Likewise.
33874         * m4/strtoimax.m4: Likewise.
33875         * m4/strtok_r.m4: Likewise.
33876         * m4/strtol.m4: Likewise.
33877         * m4/strtoll.m4: Likewise.
33878         * m4/strtoul.m4: Likewise.
33879         * m4/strtoull.m4: Likewise.
33880         * m4/strtoumax.m4: Likewise.
33881         * m4/strverscmp.m4: Likewise.
33882         * m4/threadlib.m4: Likewise.
33883         * m4/timegm.m4: Likewise.
33884         * m4/tm_gmtoff.m4: Likewise.
33885         * m4/tmpdir.m4: Likewise.
33886         * m4/tmpfile.m4: Likewise.
33887         * m4/tzset.m4: Likewise.
33888         * m4/uintmax_t.m4: Likewise.
33889         * m4/unlinkdir.m4: Likewise.
33890         * m4/unlocked-io.m4: Likewise.
33891         * m4/uptime.m4: Likewise.
33892         * m4/userspec.m4: Likewise.
33893         * m4/utimbuf.m4: Likewise.
33894         * m4/utime.m4: Likewise.
33895         * m4/utimes-null.m4: Likewise.
33896         * m4/utimes.m4: Likewise.
33897         * m4/vararrays.m4: Likewise.
33898         * m4/vasnprintf.m4: Likewise.
33899         * m4/vfprintf-posix.m4: Likewise.
33900         * m4/vprintf-posix.m4: Likewise.
33901         * m4/wait-process.m4: Likewise.
33902         * m4/wchar_t.m4: Likewise.
33903         * m4/wint_t.m4: Likewise.
33904         * m4/write-any-file.m4: Likewise.
33905         * m4/yield.m4: Likewise.
33906
33907 2009-01-13  Bruno Haible  <bruno@clisp.org>
33908
33909         Avoid test-copy-file.sh failures when ACL support insufficient.
33910         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33911         TESTS_ENVIRONMENT.
33912         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33913         Reported by Jim Meyering.
33914
33915 2009-01-13  Bruno Haible  <bruno@clisp.org>
33916
33917         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33918         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33919         * modules/unistdio/u8-printf-parse (Files): Likewise.
33920         * modules/unistdio/u32-printf-parse (Files): Likewise.
33921         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33922
33923 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33924
33925         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33926         and m4/inttypes_h.m4 too.
33927
33928 2009-01-12  Eric Blake  <ebb9@byu.net>
33929
33930         tests: IRIX 6.2 cc can't compile -0.0 into .data
33931         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33932         rather than at compile-time.
33933         * tests/test-floorl.c (minus_zero): Likewise.
33934         * tests/test-frexpl.c (minus_zero): Likewise.
33935         * tests/test-isnan.c (minus_zerol): Likewise.
33936         * tests/test-isnanl.h (minus_zero): Likewise.
33937         * tests/test-ldexpl.c (minus_zero): Likewise.
33938         * tests/test-roundl.c (minus_zero): Likewise.
33939         * tests/test-signbit.c (minus_zerol): Likewise.
33940         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33941         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33942         * tests/test-truncl.c (minus_zero): Likewise.
33943         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33944         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33945         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33946
33947 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33948
33949         regex: fix glibc bug 9697
33950         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33951         handling.
33952
33953 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33954
33955         regex: fix glibc bug 697
33956         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33957         being NULL also if there are no backreferences.
33958
33959 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33960
33961         regex: merge glibc changes
33962         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33963         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33964         re_string_skip_chars, re_string_reconstruct): Likewise.
33965         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33966
33967 2009-01-07  Jim Meyering  <meyering@redhat.com>
33968
33969         poll: filter through cppi
33970         * lib/poll.c: Indent cpp directives to reflect nesting.
33971
33972 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33973
33974         poll: don't return uninitialized
33975         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33976
33977 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33978
33979         avoid compile failure on AIX 6.1
33980         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33981         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33982
33983 2009-01-04  Jim Meyering  <meyering@redhat.com>
33984
33985         remove duplicate inclusion of <stdio.h>
33986         * tests/test-fprintf-posix.c: Likewise.
33987         * tests/test-printf-posix.c: Likewise.
33988         * tests/test-snprintf-posix.c: Likewise.
33989         * tests/test-sprintf-posix.c: Likewise.
33990         * tests/test-vasprintf-posix.c: Likewise.
33991         * tests/test-vfprintf-posix.c: Likewise.
33992         * tests/test-vprintf-posix.c: Likewise.
33993         * tests/test-vsnprintf-posix.c: Likewise.
33994         * tests/test-vsprintf-posix.c: Likewise.
33995
33996 2009-01-03  Jim Meyering  <meyering@redhat.com>
33997
33998         gnulib-tool: fix sed-based filtering
33999         * gnulib-tool (func_filter_filelist): Remove extra backslash
34000         in sed_fff_filter definition.
34001
34002 2009-01-02  Jim Meyering  <meyering@redhat.com>
34003
34004         strftime: avoid compilation failure on Solaris 2.6
34005         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34006         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34007         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34008         be available.  Reported by Tom G. Christensen.  Details in
34009         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34010
34011 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34012             Bruno Haible  <bruno@clisp.org>
34013
34014         Speed up gnulib-tool by doing more string processing through shell
34015         built-ins.
34016         * gnulib-tool (fast_func_append): New variable.
34017         (func_remove_prefix, func_remove_suffix): New functions.
34018         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34019         (func_filter_filelist): New function.
34020         (func_get_dependencies): Use func_remove_suffix instead of sed.
34021         (func_get_automake_snippet): Use func_filter_filelist instead of a
34022         subshell and sed invocation.
34023
34024 2009-01-01  Bruno Haible  <bruno@clisp.org>
34025
34026         Fix a security bug.
34027         * gnulib-tool (func_import, import, update): Don't allow the characters
34028         '"', '$', '`', '\' in macro arguments that become part of commands that
34029         are evaluated.
34030
34031 2009-01-01  Bruno Haible  <bruno@clisp.org>
34032
34033         * gnulib-tool (func_reset_sigpipe): Add more comments.
34034
34035 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34036
34037         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34038         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34039         already know the answer.
34040
34041 2009-01-01  Jim Meyering  <meyering@redhat.com>
34042
34043         * lib/version-etc.c (version_etc_va): Update copyright year.
34044
34045 2008-12-30  Bruno Haible  <bruno@clisp.org>
34046
34047         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34048         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34049         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34050
34051 2008-12-29  Eric Blake  <ebb9@byu.net>
34052
34053         multiarch: avoid autoconf AC_REQUIRE bug
34054         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34055         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34056         2.63 and older.
34057         Reported by Bruno Haible, and analyzed in
34058         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34059
34060 2008-12-29  Bruno Haible  <bruno@clisp.org>
34061
34062         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34063         files in subdirectories correctly.
34064         Reported by Ralf Wildenhues.
34065
34066 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34067
34068         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34069         rather than 'join FILE -', for Solaris join.
34070
34071 2008-12-29  Bruno Haible  <bruno@clisp.org>
34072
34073         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34074         quoting.
34075         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34076         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34077         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34078         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34079         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34080         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34081         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34082         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34083         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34084         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34085         * m4/nls.m4 (AM_NLS): Likewise.
34086         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34087         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34088         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34089         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34090         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34091         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34092         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34093         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34094         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34095         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34096         * m4/xsize.m4 (gl_XSIZE): Likewise.
34097         Suggested by Jim Meyering.
34098
34099 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34100
34101         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34102         * lib/parse-duration.c: use a switch instead of cascading if's.
34103
34104 2008-12-29  Eric Blake  <ebb9@byu.net>
34105
34106         wchar.h: supply WEOF on Irix 5.3
34107         * lib/wchar.in.h (wint_t): Also supply WEOF.
34108         * lib/wctype.in.h (wint_t): Likewise.
34109         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34110         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34111         Reported by Tom G. Christensen.
34112
34113 2008-12-26  Bruno Haible  <bruno@clisp.org>
34114
34115         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34116         i486, i586, i686.
34117
34118 2008-12-26  Bruno Haible  <bruno@clisp.org>
34119
34120         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34121
34122 2008-12-26  Bruno Haible  <bruno@clisp.org>
34123
34124         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34125         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34126         not __STDC_CONSTANT_MACROS.
34127         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34128
34129 2008-12-25  Bruno Haible  <bruno@clisp.org>
34130
34131         Add support for universal builds to vasnprintf.
34132         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34133         universal builds, guess no.
34134         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34135         * modules/vasprintf-posix (Depends-on): Likewise.
34136         * modules/fprintf-posix (Depends-on): Likewise.
34137         * modules/vfprintf-posix (Depends-on): Likewise.
34138         * modules/snprintf-posix (Depends-on): Likewise.
34139         * modules/vsnprintf-posix (Depends-on): Likewise.
34140         * modules/sprintf-posix (Depends-on): Likewise.
34141         * modules/vsprintf-posix (Depends-on): Likewise.
34142         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34143         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34144         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34145         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34149
34150         Add support for universal builds to <inttypes.h>.
34151         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34152         _SCNu64_PREFIX): In Apple
34153         universal builds, define directly, using _LP64.
34154         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34155         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34156         * modules/inttypes (Depends-on): Add multiarch.
34157         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34158
34159         Add support for universal builds to <stdint.h>.
34160         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34161         universal builds, define directly, using _LP64.
34162         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34163         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34164         and size_t.
34165         * modules/stdint (Depends-on): Add multiarch.
34166         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34167
34168         New module 'multiarch'.
34169         * modules/multiarch: New file.
34170         * m4/multiarch.m4: New file.
34171
34172 2008-12-25  Bruno Haible  <bruno@clisp.org>
34173
34174         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34175
34176 2008-12-25  Bruno Haible  <bruno@clisp.org>
34177
34178         * modules/btowc (License): Relicense under LGPLv2+.
34179         * modules/mbsinit (License): Likewise.
34180         * modules/mbrtowc (License): Likewise.
34181         * modules/wcrtomb (License): Likewise.
34182         * modules/streq (License): Likewise.
34183         Reported by David Lutterkort <lutter@redhat.com>.
34184
34185 2008-12-23  Bruno Haible  <bruno@clisp.org>
34186
34187         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34188
34189 2008-12-23  Bruno Haible  <bruno@clisp.org>
34190
34191         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34192         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34193         GETADDRINFO_LIB, not in LIBS.
34194         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34195         * modules/canon-host (Link): Likewise.
34196         * NEWS: Mention the change.
34197         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34198         GETADDRINFO_LIB.
34199
34200 2008-12-22  Bruno Haible  <bruno@clisp.org>
34201
34202         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34203         * doc/posix-functions/iswalpha_l.texi: Likewise.
34204         * doc/posix-functions/iswblank_l.texi: Likewise.
34205         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34206         * doc/posix-functions/iswctype_l.texi: Likewise.
34207         * doc/posix-functions/iswdigit_l.texi: Likewise.
34208         * doc/posix-functions/iswgraph_l.texi: Likewise.
34209         * doc/posix-functions/iswlower_l.texi: Likewise.
34210         * doc/posix-functions/iswprint_l.texi: Likewise.
34211         * doc/posix-functions/iswpunct_l.texi: Likewise.
34212         * doc/posix-functions/iswspace_l.texi: Likewise.
34213         * doc/posix-functions/iswupper_l.texi: Likewise.
34214         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34215         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34216         * doc/posix-functions/open_wmemstream.texi: Likewise.
34217         * doc/posix-functions/swscanf.texi: Likewise.
34218         * doc/posix-functions/towctrans_l.texi: Likewise.
34219         * doc/posix-functions/towlower.texi: Likewise.
34220         * doc/posix-functions/towlower_l.texi: Likewise.
34221         * doc/posix-functions/towupper.texi: Likewise.
34222         * doc/posix-functions/towupper_l.texi: Likewise.
34223         * doc/posix-functions/vfwprintf.texi: Likewise.
34224         * doc/posix-functions/vfwscanf.texi: Likewise.
34225         * doc/posix-functions/vswscanf.texi: Likewise.
34226         * doc/posix-functions/vwprintf.texi: Likewise.
34227         * doc/posix-functions/vwscanf.texi: Likewise.
34228         * doc/posix-functions/wcpcpy.texi: Likewise.
34229         * doc/posix-functions/wcpncpy.texi: Likewise.
34230         * doc/posix-functions/wcscasecmp.texi: Likewise.
34231         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34232         * doc/posix-functions/wcscoll_l.texi: Likewise.
34233         * doc/posix-functions/wcsdup.texi: Likewise.
34234         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34235         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34236         * doc/posix-functions/wcsnlen.texi: Likewise.
34237         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34238         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34239         * doc/posix-functions/wctrans_l.texi: Likewise.
34240         * doc/posix-functions/wctype_l.texi: Likewise.
34241         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34242         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34243         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34244         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34245         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34246         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34247         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34248         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34249         * doc/glibc-functions/wcschrnul.texi: Likewise.
34250         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34251         * doc/glibc-functions/wcstod_l.texi: Likewise.
34252         * doc/glibc-functions/wcstof_l.texi: Likewise.
34253         * doc/glibc-functions/wcstol_l.texi: Likewise.
34254         * doc/glibc-functions/wcstold_l.texi: Likewise.
34255         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34256         * doc/glibc-functions/wcstoq.texi: Likewise.
34257         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34258         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34259         * doc/glibc-functions/wcstouq.texi: Likewise.
34260         * doc/glibc-functions/wmempcpy.texi: Likewise.
34261
34262 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34263             Eric Blake  <ebb9@byu.net>
34264             Paolo Bonzini  <bonzini@gnu.org>
34265             Bruno Haible  <bruno@clisp.org>
34266
34267         Make c-stack work on Haiku.
34268         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34269         (c_stack_action): Use SA_ONSTACK flag.
34270
34271 2008-12-22  Bruno Haible  <bruno@clisp.org>
34272
34273         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34274
34275 2008-12-22  Bruno Haible  <bruno@clisp.org>
34276
34277         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34278         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34279         being overridden.
34280         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34281         New macros.
34282         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34284         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34285         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34286
34287 2008-12-22  Bruno Haible  <bruno@clisp.org>
34288
34289         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34290         from test code.
34291
34292 2008-12-22  Eric Blake  <ebb9@byu.net>
34293
34294         Avoid gcc warnings on cygwin.
34295         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34296         Avoid unused variable.
34297         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34298         Likewise.
34299
34300 2008-12-22  Bruno Haible  <bruno@clisp.org>
34301
34302         Remove HAVE_MBRTOWC conditionals.
34303         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34304         (mbscasecmp): Assume mbrtowc function.
34305         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34306         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34307         * lib/mbschr.c: Include mbuiter.h unconditionally.
34308         (mbschr): Assume mbrtowc function.
34309         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34310         (mbscspn): Assume mbrtowc function.
34311         * lib/mbslen.c: Include mbuiter.h unconditionally.
34312         (mbslen): Assume mbrtowc function.
34313         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34314         (mbsncasecmp): Assume mbrtowc function.
34315         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34316         (mbsnlen): Assume mbrtowc function.
34317         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34318         (mbspbrk): Assume mbrtowc function.
34319         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34320         (mbspcasecmp): Assume mbrtowc function.
34321         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34322         (mbsrchr): Assume mbrtowc function.
34323         * lib/mbssep.c: Include mbuiter.h unconditionally.
34324         (mbssep): Assume mbrtowc function.
34325         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34326         (mbsspn): Assume mbrtowc function.
34327         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34328         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34329         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34330         (mbstok_r): Assume mbrtowc function.
34331         * lib/propername.c: Include mbuiter.h unconditionally.
34332         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34333         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34334         (trim2): Assume mbrtowc function.
34335         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34336         (mbsnwidth): Assume mbrtowc function.
34337         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34338         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34339         fallback definitions.
34340         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34341
34342 2008-12-22  Bruno Haible  <bruno@clisp.org>
34343
34344         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34345
34346 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34347
34348         * modules/regex: Request emulations for the mb*/wc* functions we need.
34349         * m4/regex.m4: Don't look for those functions here.
34350         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34351
34352 2008-12-22  Bruno Haible  <bruno@clisp.org>
34353
34354         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34355
34356 2008-12-21  Bruno Haible  <bruno@clisp.org>
34357
34358         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34359         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34360         (Include): Remove conditionalization.
34361         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34362         (Include): Remove conditionalization.
34363         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34364         (Include): Remove conditionalization.
34365         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34366         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34367         * NEWS: Mention the change.
34368         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34369         via Sergey Poznyakoff <gray@gnu.org.ua>.
34370
34371 2008-12-21  Bruno Haible  <bruno@clisp.org>
34372
34373         * MODULES.html.sh (Extended multibyte and wide character utilities
34374         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34375         wcrtomb, wcsrtombs.
34376         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34377         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34378         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34379         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34380
34381 2008-12-21  Bruno Haible  <bruno@clisp.org>
34382
34383         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34384
34385 2008-12-21  Bruno Haible  <bruno@clisp.org>
34386
34387         * modules/wcsnrtombs-tests: New file.
34388         * tests/test-wcsnrtombs1.sh: New file.
34389         * tests/test-wcsnrtombs2.sh: New file.
34390         * tests/test-wcsnrtombs3.sh: New file.
34391         * tests/test-wcsnrtombs4.sh: New file.
34392         * tests/test-wcsnrtombs.c: New file.
34393
34394         New module 'wcsnrtombs'.
34395         * lib/wchar.in.h (wcsnrtombs): New declaration.
34396         * lib/wcsnrtombs.c: New file.
34397         * lib/wcsrtombs-state.c: New file.
34398         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34399         (internal_state): Remove variable.
34400         * m4/wcsnrtombs.m4: New file.
34401         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34402         compilation units.
34403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34404         HAVE_WCSNRTOMBS.
34405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34406         HAVE_WCSNRTOMBS.
34407         * modules/wcsnrtombs: New file.
34408         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34409         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34410
34411 2008-12-21  Bruno Haible  <bruno@clisp.org>
34412
34413         * modules/wcsrtombs-tests: New file.
34414         * tests/test-wcsrtombs1.sh: New file.
34415         * tests/test-wcsrtombs2.sh: New file.
34416         * tests/test-wcsrtombs3.sh: New file.
34417         * tests/test-wcsrtombs4.sh: New file.
34418         * tests/test-wcsrtombs.c: New file.
34419
34420         New module 'wcsrtombs'.
34421         * lib/wchar.in.h (wcsrtombs): New declaration.
34422         * lib/wcsrtombs.c: New file.
34423         * m4/wcsrtombs.m4: New file.
34424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34425         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34427         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34428         * modules/wcsrtombs: New file.
34429         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34430         bugs.
34431
34432 2008-12-21  Bruno Haible  <bruno@clisp.org>
34433
34434         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34435         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34436         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34437         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34438         if not correct.
34439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34440         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34441         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34442         m4/locale-zh.m4, m4/codeset.m4.
34443         * doc/posix-functions/wcrtomb.texi: Document the bug.
34444
34445 2008-12-21  Bruno Haible  <bruno@clisp.org>
34446
34447         Work around a btowc() bug on IRIX 6.5.
34448         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34449         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34450         REPLACE_WTOBC if not.
34451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34452         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34453         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34454
34455 2008-12-21  Bruno Haible  <bruno@clisp.org>
34456
34457         * modules/wcrtomb-tests: New file.
34458         * tests/test-wcrtomb.sh: New file.
34459         * tests/test-wcrtomb.c: New file.
34460
34461         New module 'wcrtomb'.
34462         * lib/wchar.in.h (wcrtomb): New declaration.
34463         * lib/wcrtomb.c: New file.
34464         * m4/wcrtomb.m4: New file.
34465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34466         HAVE_WCRTOMB.
34467         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34468         HAVE_WCRTOMB.
34469         * modules/wcrtomb: New file.
34470         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34471
34472 2008-12-21  Bruno Haible  <bruno@clisp.org>
34473
34474         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34475         * modules/mbsrtowcs (Files): Likewise.
34476         * modules/wctob (Files): Likewise.
34477         * modules/c-strcase-tests (Files): Likewise.
34478         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34479         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34480         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34481         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34482         * modules/vasnprintf-posix-tests (Files): Likewise.
34483
34484 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34485
34486         gitlog-to-changelog: pass all command-line arguments to git-log
34487         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34488         it is sometimes convenient to filter the commits in various ways.
34489         gitlog-to-changelog only allows --since to specify a start date,
34490         but git-log itself supports many other filtering mechanisms.
34491         At the moment, I want to filter by branch name.  Rather than
34492         adding a --branch option to gitlog-to-changelog, it seems more
34493         flexible to simply pass all options directly to git-log and let
34494         git do the work.  Notice that this effectively makes --since a
34495         redundant option for gitlog-to-changelog, but removing it would
34496         require current usage to change since calls would then require
34497         an additional '--'.
34498
34499 2008-12-21  Bruno Haible  <bruno@clisp.org>
34500
34501         * modules/mbsnrtowcs-tests: New file.
34502         * tests/test-mbsnrtowcs1.sh: New file.
34503         * tests/test-mbsnrtowcs2.sh: New file.
34504         * tests/test-mbsnrtowcs3.sh: New file.
34505         * tests/test-mbsnrtowcs4.sh: New file.
34506         * tests/test-mbsnrtowcs.c: New file.
34507
34508         New module 'mbsnrtowcs'.
34509         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34510         * lib/mbsnrtowcs.c: New file.
34511         * lib/mbsrtowcs-state.c: New file.
34512         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34513         (internal_state): Remove variable.
34514         * m4/mbsnrtowcs.m4: New file.
34515         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34516         compilation units.
34517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34518         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34519         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34520         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34521         * modules/mbsnrtowcs: New file.
34522         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34523         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34524         portability problem.
34525
34526 2008-12-21  Bruno Haible  <bruno@clisp.org>
34527
34528         Work around mbsrtowcs bug.
34529         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34530         (gl_FUNC_MBSRTOWCS): Invoke it.
34531         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34532         m4/locale-zh.m4.
34533         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34534
34535 2008-12-21  Bruno Haible  <bruno@clisp.org>
34536
34537         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34538
34539 2008-12-21  Bruno Haible  <bruno@clisp.org>
34540
34541         Update doc for AIX.
34542         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34543         16-bit wchar_t type.
34544         * doc/posix-functions/btowc.texi: Likewise.
34545         * doc/posix-functions/fgetwc.texi: Likewise.
34546         * doc/posix-functions/fgetws.texi: Likewise.
34547         * doc/posix-functions/fputwc.texi: Likewise.
34548         * doc/posix-functions/fputws.texi: Likewise.
34549         * doc/posix-functions/fwide.texi: Likewise.
34550         * doc/posix-functions/fwprintf.texi: Likewise.
34551         * doc/posix-functions/fwscanf.texi: Likewise.
34552         * doc/posix-functions/getwchar.texi: Likewise.
34553         * doc/posix-functions/getwc.texi: Likewise.
34554         * doc/posix-functions/iswalnum.texi: Likewise.
34555         * doc/posix-functions/iswalpha.texi: Likewise.
34556         * doc/posix-functions/iswblank.texi: Likewise.
34557         * doc/posix-functions/iswcntrl.texi: Likewise.
34558         * doc/posix-functions/iswctype.texi: Likewise.
34559         * doc/posix-functions/iswdigit.texi: Likewise.
34560         * doc/posix-functions/iswgraph.texi: Likewise.
34561         * doc/posix-functions/iswlower.texi: Likewise.
34562         * doc/posix-functions/iswprint.texi: Likewise.
34563         * doc/posix-functions/iswpunct.texi: Likewise.
34564         * doc/posix-functions/iswspace.texi: Likewise.
34565         * doc/posix-functions/iswupper.texi: Likewise.
34566         * doc/posix-functions/iswxdigit.texi: Likewise.
34567         * doc/posix-functions/mbrtowc.texi: Likewise.
34568         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34569         * doc/posix-functions/mbstowcs.texi: Likewise.
34570         * doc/posix-functions/mbtowc.texi: Likewise.
34571         * doc/posix-functions/putwchar.texi: Likewise.
34572         * doc/posix-functions/putwc.texi: Likewise.
34573         * doc/posix-functions/swprintf.texi: Likewise.
34574         * doc/posix-functions/tolower.texi: Likewise.
34575         * doc/posix-functions/toupper.texi: Likewise.
34576         * doc/posix-functions/towctrans.texi: Likewise.
34577         * doc/posix-functions/ungetwc.texi: Likewise.
34578         * doc/posix-functions/vswprintf.texi: Likewise.
34579         * doc/posix-functions/wcrtomb.texi: Likewise.
34580         * doc/posix-functions/wcscat.texi: Likewise.
34581         * doc/posix-functions/wcschr.texi: Likewise.
34582         * doc/posix-functions/wcscmp.texi: Likewise.
34583         * doc/posix-functions/wcscoll.texi: Likewise.
34584         * doc/posix-functions/wcscpy.texi: Likewise.
34585         * doc/posix-functions/wcscspn.texi: Likewise.
34586         * doc/posix-functions/wcsftime.texi: Likewise.
34587         * doc/posix-functions/wcslen.texi: Likewise.
34588         * doc/posix-functions/wcsncat.texi: Likewise.
34589         * doc/posix-functions/wcsncmp.texi: Likewise.
34590         * doc/posix-functions/wcsncpy.texi: Likewise.
34591         * doc/posix-functions/wcspbrk.texi: Likewise.
34592         * doc/posix-functions/wcsrchr.texi: Likewise.
34593         * doc/posix-functions/wcsrtombs.texi: Likewise.
34594         * doc/posix-functions/wcsspn.texi: Likewise.
34595         * doc/posix-functions/wcsstr.texi: Likewise.
34596         * doc/posix-functions/wcstod.texi: Likewise.
34597         * doc/posix-functions/wcstof.texi: Likewise.
34598         * doc/posix-functions/wcstoimax.texi: Likewise.
34599         * doc/posix-functions/wcstok.texi: Likewise.
34600         * doc/posix-functions/wcstold.texi: Likewise.
34601         * doc/posix-functions/wcstoll.texi: Likewise.
34602         * doc/posix-functions/wcstol.texi: Likewise.
34603         * doc/posix-functions/wcstombs.texi: Likewise.
34604         * doc/posix-functions/wcstoull.texi: Likewise.
34605         * doc/posix-functions/wcstoul.texi: Likewise.
34606         * doc/posix-functions/wcstoumax.texi: Likewise.
34607         * doc/posix-functions/wcswidth.texi: Likewise.
34608         * doc/posix-functions/wcsxfrm.texi: Likewise.
34609         * doc/posix-functions/wctob.texi: Likewise.
34610         * doc/posix-functions/wctomb.texi: Likewise.
34611         * doc/posix-functions/wctrans.texi: Likewise.
34612         * doc/posix-functions/wctype.texi: Likewise.
34613         * doc/posix-functions/wcwidth.texi: Likewise.
34614         * doc/posix-functions/wmemchr.texi: Likewise.
34615         * doc/posix-functions/wmemcmp.texi: Likewise.
34616         * doc/posix-functions/wmemcpy.texi: Likewise.
34617         * doc/posix-functions/wmemmove.texi: Likewise.
34618         * doc/posix-functions/wmemset.texi: Likewise.
34619         * doc/posix-functions/wprintf.texi: Likewise.
34620         * doc/posix-functions/wscanf.texi: Likewise.
34621
34622 2008-12-21  Bruno Haible  <bruno@clisp.org>
34623
34624         Update doc for HP-UX 11.11.
34625         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34626         in HP-UX version 11.00, not in all versions of HP-UX 11.
34627         * doc/posix-functions/fwide.texi: Likewise.
34628         * doc/posix-functions/fwprintf.texi: Likewise.
34629         * doc/posix-functions/fwscanf.texi: Likewise.
34630         * doc/posix-functions/inet_ntop.texi: Likewise.
34631         * doc/posix-functions/inet_pton.texi: Likewise.
34632         * doc/posix-functions/mbrlen.texi: Likewise.
34633         * doc/posix-functions/mbrtowc.texi: Likewise.
34634         * doc/posix-functions/mbsinit.texi: Likewise.
34635         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34636         * doc/posix-functions/swprintf.texi: Likewise.
34637         * doc/posix-functions/swscanf.texi: Likewise.
34638         * doc/posix-functions/towctrans.texi: Likewise.
34639         * doc/posix-functions/vfwprintf.texi: Likewise.
34640         * doc/posix-functions/vswprintf.texi: Likewise.
34641         * doc/posix-functions/vwprintf.texi: Likewise.
34642         * doc/posix-functions/wcrtomb.texi: Likewise.
34643         * doc/posix-functions/wcsrtombs.texi: Likewise.
34644         * doc/posix-functions/wcsstr.texi: Likewise.
34645         * doc/posix-functions/wctob.texi: Likewise.
34646         * doc/posix-functions/wctrans.texi: Likewise.
34647         * doc/posix-functions/wmemchr.texi: Likewise.
34648         * doc/posix-functions/wmemcmp.texi: Likewise.
34649         * doc/posix-functions/wmemcpy.texi: Likewise.
34650         * doc/posix-functions/wmemmove.texi: Likewise.
34651         * doc/posix-functions/wmemset.texi: Likewise.
34652         * doc/posix-functions/wprintf.texi: Likewise.
34653         * doc/posix-functions/wscanf.texi: Likewise.
34654
34655 2008-12-21  Bruno Haible  <bruno@clisp.org>
34656
34657         Work around a portability problem.
34658         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34659         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34660
34661 2008-12-20  Bruno Haible  <bruno@clisp.org>
34662
34663         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34664         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34665         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34667         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34668
34669         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34670         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34671         set.
34672         (GNULIB_defined_mbstate_t): New macro.
34673         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34674         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34675         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34676         reuses the system's mbrtowc function but works around the bugs.
34677         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34678         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34679         macros.
34680         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34681         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34682         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34683         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34684         REPLACE_MBSINIT if mbsinit needs to be overridden.
34685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34686         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34687         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34688         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34689         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34690         m4/locale-zh.m4.
34691         (Depends): Add mbsinit.
34692         * modules/mbsinit (Depends): Add mbrtowc.
34693         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34694
34695 2008-12-20  Bruno Haible  <bruno@clisp.org>
34696
34697         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34698         so that there are no conversion errors on AIX.
34699         * tests/test-mbsrtowcs.c (main): LIkewise.
34700
34701 2008-12-20  Bruno Haible  <bruno@clisp.org>
34702
34703         Work around wctob bug on Solaris <= 9.
34704         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34705         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34706         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34707         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34708         * modules/wctob (Files): Add m4/locale-fr.m4.
34709         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34710
34711 2008-12-20  Bruno Haible  <bruno@clisp.org>
34712
34713         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34714         /dev/null.
34715         * tests/test-select-in.sh: Likewise.
34716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34717
34718 2008-12-20  Bruno Haible  <bruno@clisp.org>
34719
34720         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34721         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34722         Cygwin 1.5.x.
34723
34724 2008-12-20  Bruno Haible  <bruno@clisp.org>
34725
34726         Ensure mbstate_t is defined on HP-UX 11.11.
34727         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34728         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34729         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34730         AC_USE_SYSTEM_EXTENSIONS.
34731         * modules/fnmatch (Depends-on): Add extensions.
34732         * modules/mbrlen (Depends-on): Likewise.
34733         * modules/mbrtowc (Depends-on): Likewise.
34734         * modules/mbsinit (Depends-on): Likewise.
34735         * modules/mbsrtowcs (Depends-on): Likewise.
34736         * modules/mbswidth (Depends-on): Likewise.
34737         * modules/quotearg (Depends-on): Likewise.
34738         * modules/strftime (Depends-on): Likewise.
34739
34740 2008-12-20  Bruno Haible  <bruno@clisp.org>
34741
34742         Ensure wctob is declared on IRIX 6.5.
34743         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34744         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34745         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34747         of HAVE_WCTOB.
34748         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34749         HAVE_WCTOB.
34750         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34751
34752 2008-12-19  Bruno Haible  <bruno@clisp.org>
34753
34754         * modules/mbsrtowcs-tests: New file.
34755         * tests/test-mbsrtowcs1.sh: New file.
34756         * tests/test-mbsrtowcs2.sh: New file.
34757         * tests/test-mbsrtowcs3.sh: New file.
34758         * tests/test-mbsrtowcs4.sh: New file.
34759         * tests/test-mbsrtowcs.c: New file.
34760
34761         New module 'mbsrtowcs'.
34762         * lib/wchar.in.h (mbsrtowcs): New declaration.
34763         * lib/mbsrtowcs.c: New file.
34764         * m4/mbsrtowcs.m4: New file.
34765         * modules/mbsrtowcs: New file.
34766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34767         HAVE_MBSRTOWCS.
34768         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34769         HAVE_MBSRTOWCS.
34770         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34771
34772 2008-12-19  Bruno Haible  <bruno@clisp.org>
34773
34774         New module 'mbrlen'.
34775         * lib/wchar.in.h (mbrlen): New declaration.
34776         * lib/mbrlen.c: New file.
34777         * m4/mbrlen.m4: New file.
34778         * modules/mbrlen: New file.
34779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34780         HAVE_MBRLEN.
34781         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34782         HAVE_MBRLEN.
34783         * doc/posix-functions/mbrlen.texi: Document the new module.
34784
34785 2008-12-19  Bruno Haible  <bruno@clisp.org>
34786
34787         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34788         * modules/mbrtowc (Depends-on): Add verify.
34789         Suggested by Paul Eggert.
34790
34791 2008-12-18  Bruno Haible  <bruno@clisp.org>
34792
34793         * modules/mbsinit-tests: New file.
34794         * tests/test-mbsinit.sh: New file.
34795         * tests/test-mbsinit.c: New file.
34796
34797 2008-12-18  Bruno Haible  <bruno@clisp.org>
34798
34799         * modules/mbrtowc-tests: New file.
34800         * tests/test-mbrtowc1.sh: New file.
34801         * tests/test-mbrtowc2.sh: New file.
34802         * tests/test-mbrtowc3.sh: New file.
34803         * tests/test-mbrtowc4.sh: New file.
34804         * tests/test-mbrtowc.c: New file.
34805
34806         New module 'mbrtowc'.
34807         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34808         mbsinit and mbrtowc.
34809         (mbrtowc): New declaration.
34810         * lib/mbrtowc.c: New file.
34811         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34812         * modules/mbrtowc: New file.
34813         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34814         HAVE_MBRTOWC.
34815         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34816         HAVE_MBRTOWC.
34817         * doc/posix-functions/mbrtowc.texi: Document the new module.
34818
34819 2008-12-18  Bruno Haible  <bruno@clisp.org>
34820
34821         New module 'wctob'.
34822         * lib/wchar.in.h (wctob): New declaration.
34823         * lib/wctob.c: New file.
34824         * m4/wctob.m4: New file.
34825         * modules/wctob: New file.
34826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34827         HAVE_WCTOB.
34828         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34829         * doc/posix-functions/wctob.texi: Document the new module.
34830
34831 2008-12-18  Bruno Haible  <bruno@clisp.org>
34832
34833         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34834         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34835
34836 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34837
34838         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34839         G. Christensen" <tgc@jupiterrise.com>.
34840
34841         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34842         G. Christensen" <tgc@jupiterrise.com>.
34843
34844         * lib/flock.c: Need to include string.h.  Reported by "Tom
34845         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34846         <ebb9@byu.net>.
34847
34848 2008-12-18  Bruno Haible  <bruno@clisp.org>
34849
34850         * m4/locale-ja.m4: New file, from GNU gettext.
34851
34852 2008-12-17  Bruno Haible  <bruno@clisp.org>
34853
34854         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34855         Suggested by Eric Blake.
34856
34857 2008-12-17  Bruno Haible  <bruno@clisp.org>
34858
34859         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34860
34861 2008-12-17  Bruno Haible  <bruno@clisp.org>
34862
34863         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34864         * modules/mbsinit (Depends-on): Add verify.
34865         Suggested by Paul Eggert.
34866
34867 2008-12-17  Bruno Haible  <bruno@clisp.org>
34868
34869         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34870         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34871         gl_FUNC_MBRTOWC.
34872         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34873         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34874         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34875         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34876         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34877         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34878         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34879         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34880         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34881         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34882         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34883         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34884         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34885         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34886         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34887         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34888         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34889         * modules/trim (configure.ac): Likewise.
34890
34891 2008-12-17  Bruno Haible  <bruno@clisp.org>
34892
34893         * modules/btowc-tests: New file.
34894         * tests/test-btowc1.sh: New file.
34895         * tests/test-btowc2.sh: New file.
34896         * tests/test-btowc.c: New file.
34897
34898         New module 'btowc'.
34899         * lib/wchar.in.h (btowc): New declaration.
34900         * lib/btowc.c: New file.
34901         * m4/btowc.m4: New file.
34902         * modules/btowc: New file.
34903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34904         HAVE_BTOWC.
34905         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34906         * doc/posix-functions/btowc.texi: Document the new module.
34907
34908 2008-12-17  Bruno Haible  <bruno@clisp.org>
34909
34910         New module 'mbsinit'.
34911         * lib/wchar.in.h (mbsinit): New declaration.
34912         * lib/mbsinit.c: New file.
34913         * m4/mbsinit.m4: New file.
34914         * modules/mbsinit: New file.
34915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34916         HAVE_MBSINIT.
34917         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34918         HAVE_MBSINIT.
34919         * doc/posix-functions/mbsinit.texi: Document the new module.
34920
34921 2008-12-16  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/unistd.in.h: Add comment.
34924         * tests/test-environ.c: Don't include <stdlib.h>.
34925
34926 2008-12-16  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/parse-duration.h (parse_duration): Document return value
34929         convention.
34930         * lib/parse-duration.c: Include specification header first. Add
34931         comments.
34932         (_): Remove macro.
34933         (parse_year_month_day, parse_hour_minute_second): Move side effects
34934         outside of strchr call.
34935         (parse_non_iso8601): Move side effects outside of isspace call.
34936         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34937         call.
34938
34939 2008-12-16  Bruno Haible  <bruno@clisp.org>
34940
34941         * tests/test-parse-duration.sh: Produce no output when the test
34942         succeeds.
34943
34944 2008-12-16  Bruno Haible  <bruno@clisp.org>
34945
34946         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34947         expressions.
34948
34949 2008-12-15  Bruno Haible  <bruno@clisp.org>
34950
34951         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34952         * doc/glibc-functions/flistxattr.texi: Likewise.
34953         * doc/glibc-functions/fopencookie.texi: Likewise.
34954         * doc/glibc-functions/fremovexattr.texi: Likewise.
34955         * doc/glibc-functions/fsetxattr.texi: Likewise.
34956         * doc/glibc-functions/getxattr.texi: Likewise.
34957         * doc/glibc-functions/lgetxattr.texi: Likewise.
34958         * doc/glibc-functions/listxattr.texi: Likewise.
34959         * doc/glibc-functions/llistxattr.texi: Likewise.
34960         * doc/glibc-functions/lremovexattr.texi: Likewise.
34961         * doc/glibc-functions/lsetxattr.texi: Likewise.
34962         * doc/glibc-functions/removexattr.texi: Likewise.
34963         * doc/glibc-functions/setxattr.texi: Likewise.
34964         * doc/posix-functions/open_memstream.texi: Likewise.
34965
34966 2008-12-15  Eric Blake  <ebb9@byu.net>
34967
34968         Update doc for cygwin 1.7.
34969         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34970         functions.
34971         * doc/posix-functions/fchmodat.texi: Likewise.
34972         * doc/posix-functions/fchownat.texi: Likewise.
34973         * doc/posix-functions/fdopendir.texi: Likewise.
34974         * doc/posix-functions/fmemopen.texi: Likewise.
34975         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34976         * doc/posix-functions/fstatat.texi: Likewise.
34977         * doc/posix-functions/futimens.texi: Likewise.
34978         * doc/posix-functions/gai_strerror.texi: Likewise.
34979         * doc/posix-functions/getaddrinfo.texi: Likewise.
34980         * doc/posix-functions/getnameinfo.texi: Likewise.
34981         * doc/posix-functions/if_freenameindex.texi: Likewise.
34982         * doc/posix-functions/if_indextoname.texi: Likewise.
34983         * doc/posix-functions/if_nameindex.texi: Likewise.
34984         * doc/posix-functions/if_nametoindex.texi: Likewise.
34985         * doc/posix-functions/insque.texi: Likewise.
34986         * doc/posix-functions/linkat.texi: Likewise.
34987         * doc/posix-functions/llrint.texi: Likewise.
34988         * doc/posix-functions/llrintf.texi: Likewise.
34989         * doc/posix-functions/llrintl.texi: Likewise.
34990         * doc/posix-functions/lockf.texi: Likewise.
34991         * doc/posix-functions/lrintl.texi: Likewise.
34992         * doc/posix-functions/mkdirat.texi: Likewise.
34993         * doc/posix-functions/mkfifoat.texi: Likewise.
34994         * doc/posix-functions/mknodat.texi: Likewise.
34995         * doc/posix-functions/mq_close.texi: Likewise.
34996         * doc/posix-functions/mq_getattr.texi: Likewise.
34997         * doc/posix-functions/mq_notify.texi: Likewise.
34998         * doc/posix-functions/mq_open.texi: Likewise.
34999         * doc/posix-functions/mq_receive.texi: Likewise.
35000         * doc/posix-functions/mq_send.texi: Likewise.
35001         * doc/posix-functions/mq_setattr.texi: Likewise.
35002         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35003         * doc/posix-functions/mq_timedsend.texi: Likewise.
35004         * doc/posix-functions/mq_unlink.texi: Likewise.
35005         * doc/posix-functions/open_memstream.texi: Likewise.
35006         * doc/posix-functions/openat.texi: Likewise.
35007         * doc/posix-functions/posix_fadvise.texi: Likewise.
35008         * doc/posix-functions/posix_fallocate.texi: Likewise.
35009         * doc/posix-functions/posix_madvise.texi: Likewise.
35010         * doc/posix-functions/posix_memalign.texi: Likewise.
35011         * doc/posix-functions/posix_openpt.texi: Likewise.
35012         * doc/posix-functions/readlinkat.texi: Likewise.
35013         * doc/posix-functions/remque.texi: Likewise.
35014         * doc/posix-functions/renameat.texi: Likewise.
35015         * doc/posix-functions/rintl.texi: Likewise.
35016         * doc/posix-functions/sem_unlink.texi: Likewise.
35017         * doc/posix-functions/shm_open.texi: Likewise.
35018         * doc/posix-functions/shm_unlink.texi: Likewise.
35019         * doc/posix-functions/signgam.texi: Likewise.
35020         * doc/posix-functions/sigset.texi: Likewise.
35021         * doc/posix-functions/stpcpy.texi: Likewise.
35022         * doc/posix-functions/stpncpy.texi: Likewise.
35023         * doc/posix-functions/strerror.texi: Likewise.
35024         * doc/posix-functions/strtod.texi: Likewise.
35025         * doc/posix-functions/symlinkat.texi: Likewise.
35026         * doc/posix-functions/unlinkat.texi: Likewise.
35027         * doc/posix-functions/utimensat.texi: Likewise.
35028         * doc/glibc-functions/bindresvport.texi: Likewise.
35029         * doc/glibc-functions/dn_expand.texi: Likewise.
35030         * doc/glibc-functions/exp10.texi: Likewise.
35031         * doc/glibc-functions/exp10f.texi: Likewise.
35032         * doc/glibc-functions/fgetxattr.texi: Likewise.
35033         * doc/glibc-functions/flistxattr.texi: Likewise.
35034         * doc/glibc-functions/fopencookie.texi: Likewise.
35035         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35036         * doc/glibc-functions/fremovexattr.texi: Likewise.
35037         * doc/glibc-functions/fsetxattr.texi: Likewise.
35038         * doc/glibc-functions/getifaddrs.texi: Likewise.
35039         * doc/glibc-functions/getxattr.texi: Likewise.
35040         * doc/glibc-functions/lgetxattr.texi: Likewise.
35041         * doc/glibc-functions/listxattr.texi: Likewise.
35042         * doc/glibc-functions/llistxattr.texi: Likewise.
35043         * doc/glibc-functions/lremovexattr.texi: Likewise.
35044         * doc/glibc-functions/lsetxattr.texi: Likewise.
35045         * doc/glibc-functions/pow10.texi: Likewise.
35046         * doc/glibc-functions/pow10f.texi: Likewise.
35047         * doc/glibc-functions/rcmd_af.texi: Likewise.
35048         * doc/glibc-functions/removexattr.texi: Likewise.
35049         * doc/glibc-functions/res_init.texi: Likewise.
35050         * doc/glibc-functions/res_mkquery.texi: Likewise.
35051         * doc/glibc-functions/res_query.texi: Likewise.
35052         * doc/glibc-functions/res_querydomain.texi: Likewise.
35053         * doc/glibc-functions/res_send.texi: Likewise.
35054         * doc/glibc-functions/rresvport_af.texi: Likewise.
35055         * doc/glibc-functions/setxattr.texi: Likewise.
35056         * doc/glibc-functions/strcasestr.texi: Likewise.
35057
35058 2008-12-15  Bruno Haible  <bruno@clisp.org>
35059
35060         Fix compilation error on OSF/1 4.0.
35061         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35062         <sys/time.h>, simply delegate to the system header.
35063         Reported by Daniel Richard G. <oss@teragram.com>.
35064
35065 2008-12-15  Bruno Haible  <bruno@clisp.org>
35066
35067         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35068         * doc/posix-functions/fchmodat.texi: Likewise.
35069         * doc/posix-functions/fchownat.texi: Likewise.
35070         * doc/posix-functions/fdopendir.texi: Likewise.
35071         * doc/posix-functions/fstatat.texi: Likewise.
35072         * doc/posix-functions/mkdirat.texi: Likewise.
35073         * doc/posix-functions/unlinkat.texi: Likewise.
35074
35075 2008-12-14  Bruno Haible  <bruno@clisp.org>
35076
35077         Update doc for POSIX:2008.
35078         * doc/posix-functions/faccessat.texi: New file.
35079         * doc/posix-functions/fchmodat.texi: New file.
35080         * doc/posix-functions/fchownat.texi: New file.
35081         * doc/posix-functions/fdopendir.texi: New file.
35082         * doc/posix-functions/fstatat.texi: New file.
35083         * doc/posix-functions/futimens.texi: New file.
35084         * doc/posix-functions/linkat.texi: New file.
35085         * doc/posix-functions/mkdirat.texi: New file.
35086         * doc/posix-functions/mkfifoat.texi: New file.
35087         * doc/posix-functions/mknodat.texi: New file.
35088         * doc/posix-functions/open_wmemstream.texi: New file.
35089         * doc/posix-functions/openat.texi: New file.
35090         * doc/posix-functions/psiginfo.texi: New file.
35091         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35092         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35093         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35094         * doc/posix-functions/readlinkat.texi: New file.
35095         * doc/posix-functions/renameat.texi: New file.
35096         * doc/posix-functions/strerror_l.texi: New file.
35097         * doc/posix-functions/symlinkat.texi: New file.
35098         * doc/posix-functions/unlinkat.texi: New file.
35099         * doc/posix-functions/utimensat.texi: New file.
35100         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35101
35102 2008-12-14  Bruno Haible  <bruno@clisp.org>
35103
35104         Update doc for POSIX:2008.
35105         * doc/posix-functions/alphasort.texi: Renamed from
35106         doc/glibc-functions/alphasort.texi.
35107         * doc/posix-functions/dirfd.texi: Renamed from
35108         doc/glibc-functions/dirfd.texi.
35109         * doc/posix-functions/dprintf.texi: Renamed from
35110         doc/glibc-functions/dprintf.texi.
35111         * doc/posix-functions/duplocale.texi: Renamed from
35112         doc/glibc-functions/duplocale.texi.
35113         * doc/posix-functions/fexecve.texi: Renamed from
35114         doc/glibc-functions/fexecve.texi.
35115         * doc/posix-functions/fmemopen.texi: Renamed from
35116         doc/glibc-functions/fmemopen.texi.
35117         * doc/posix-functions/freelocale.texi: Renamed from
35118         doc/glibc-functions/freelocale.texi.
35119         * doc/posix-functions/getdate_err.texi: Renamed from
35120         doc/glibc-functions/getdate_err.texi.
35121         * doc/posix-functions/isalnum_l.texi: Renamed from
35122         doc/glibc-functions/isalnum_l.texi.
35123         * doc/posix-functions/isalpha_l.texi: Renamed from
35124         doc/glibc-functions/isalpha_l.texi.
35125         * doc/posix-functions/isblank_l.texi: Renamed from
35126         doc/glibc-functions/isblank_l.texi.
35127         * doc/posix-functions/iscntrl_l.texi: Renamed from
35128         doc/glibc-functions/iscntrl_l.texi.
35129         * doc/posix-functions/isdigit_l.texi: Renamed from
35130         doc/glibc-functions/isdigit_l.texi.
35131         * doc/posix-functions/isgraph_l.texi: Renamed from
35132         doc/glibc-functions/isgraph_l.texi.
35133         * doc/posix-functions/islower_l.texi: Renamed from
35134         doc/glibc-functions/islower_l.texi.
35135         * doc/posix-functions/isprint_l.texi: Renamed from
35136         doc/glibc-functions/isprint_l.texi.
35137         * doc/posix-functions/ispunct_l.texi: Renamed from
35138         doc/glibc-functions/ispunct_l.texi.
35139         * doc/posix-functions/isspace_l.texi: Renamed from
35140         doc/glibc-functions/isspace_l.texi.
35141         * doc/posix-functions/isupper_l.texi: Renamed from
35142         doc/glibc-functions/isupper_l.texi.
35143         * doc/posix-functions/iswalnum_l.texi: Renamed from
35144         doc/glibc-functions/iswalnum_l.texi.
35145         * doc/posix-functions/iswalpha_l.texi: Renamed from
35146         doc/glibc-functions/iswalpha_l.texi.
35147         * doc/posix-functions/iswblank_l.texi: Renamed from
35148         doc/glibc-functions/iswblank_l.texi.
35149         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35150         doc/glibc-functions/iswcntrl_l.texi.
35151         * doc/posix-functions/iswctype_l.texi: Renamed from
35152         doc/glibc-functions/iswctype_l.texi.
35153         * doc/posix-functions/iswdigit_l.texi: Renamed from
35154         doc/glibc-functions/iswdigit_l.texi.
35155         * doc/posix-functions/iswgraph_l.texi: Renamed from
35156         doc/glibc-functions/iswgraph_l.texi.
35157         * doc/posix-functions/iswlower_l.texi: Renamed from
35158         doc/glibc-functions/iswlower_l.texi.
35159         * doc/posix-functions/iswprint_l.texi: Renamed from
35160         doc/glibc-functions/iswprint_l.texi.
35161         * doc/posix-functions/iswpunct_l.texi: Renamed from
35162         doc/glibc-functions/iswpunct_l.texi.
35163         * doc/posix-functions/iswspace_l.texi: Renamed from
35164         doc/glibc-functions/iswspace_l.texi.
35165         * doc/posix-functions/iswupper_l.texi: Renamed from
35166         doc/glibc-functions/iswupper_l.texi.
35167         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35168         doc/glibc-functions/iswxdigit_l.texi.
35169         * doc/posix-functions/isxdigit_l.texi: Renamed from
35170         doc/glibc-functions/isxdigit_l.texi.
35171         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35172         doc/glibc-functions/mbsnrtowcs.texi.
35173         * doc/posix-functions/mkdtemp.texi: Renamed from
35174         doc/glibc-functions/mkdtemp.texi.
35175         * doc/posix-functions/newlocale.texi: Renamed from
35176         doc/glibc-functions/newlocale.texi.
35177         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35178         doc/glibc-functions/nl_langinfo_l.texi.
35179         * doc/posix-functions/open_memstream.texi: Renamed from
35180         doc/glibc-functions/open_memstream.texi.
35181         * doc/posix-functions/opterr.texi: Renamed from
35182         doc/glibc-functions/opterr.texi.
35183         * doc/posix-functions/optind.texi: Renamed from
35184         doc/glibc-functions/optind.texi.
35185         * doc/posix-functions/optopt.texi: Renamed from
35186         doc/glibc-functions/optopt.texi.
35187         * doc/posix-functions/psignal.texi: Renamed from
35188         doc/glibc-functions/psignal.texi.
35189         * doc/posix-functions/scandir.texi: Renamed from
35190         doc/glibc-functions/scandir.texi.
35191         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35192         doc/glibc-functions/sched_get_priority_min.texi.
35193         * doc/posix-functions/signgam.texi: Renamed from
35194         doc/glibc-functions/signgam.texi.
35195         * doc/posix-functions/stpcpy.texi: Renamed from
35196         doc/glibc-functions/stpcpy.texi.
35197         * doc/posix-functions/stpncpy.texi: Renamed from
35198         doc/glibc-functions/stpncpy.texi.
35199         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35200         doc/glibc-functions/strcasecmp_l.texi.
35201         * doc/posix-functions/strcoll_l.texi: Renamed from
35202         doc/glibc-functions/strcoll_l.texi.
35203         * doc/posix-functions/strfmon_l.texi: Renamed from
35204         doc/glibc-functions/strfmon_l.texi.
35205         * doc/posix-functions/strftime_l.texi: Renamed from
35206         doc/glibc-functions/strftime_l.texi.
35207         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35208         doc/glibc-functions/strncasecmp_l.texi.
35209         * doc/posix-functions/strndup.texi: Renamed from
35210         doc/glibc-functions/strndup.texi.
35211         * doc/posix-functions/strnlen.texi: Renamed from
35212         doc/glibc-functions/strnlen.texi.
35213         * doc/posix-functions/strsignal.texi: Renamed from
35214         doc/glibc-functions/strsignal.texi.
35215         * doc/posix-functions/strxfrm_l.texi: Renamed from
35216         doc/glibc-functions/strxfrm_l.texi.
35217         * doc/posix-functions/timer_gettime.texi: Renamed from
35218         doc/glibc-functions/timer_gettime.texi.
35219         * doc/posix-functions/tolower_l.texi: Renamed from
35220         doc/glibc-functions/tolower_l.texi.
35221         * doc/posix-functions/toupper_l.texi: Renamed from
35222         doc/glibc-functions/toupper_l.texi.
35223         * doc/posix-functions/towctrans_l.texi: Renamed from
35224         doc/glibc-functions/towctrans_l.texi.
35225         * doc/posix-functions/towlower_l.texi: Renamed from
35226         doc/glibc-functions/towlower_l.texi.
35227         * doc/posix-functions/towupper_l.texi: Renamed from
35228         doc/glibc-functions/towupper_l.texi.
35229         * doc/posix-functions/uselocale.texi: Renamed from
35230         doc/glibc-functions/uselocale.texi.
35231         * doc/posix-functions/vdprintf.texi: Renamed from
35232         doc/glibc-functions/vdprintf.texi.
35233         * doc/posix-functions/wcpcpy.texi:
35234         Renamed from doc/glibc-functions/wcpcpy.texi.
35235         * doc/posix-functions/wcpncpy.texi: Renamed from
35236         doc/glibc-functions/wcpncpy.texi.
35237         * doc/posix-functions/wcscasecmp.texi: Renamed from
35238         doc/glibc-functions/wcscasecmp.texi.
35239         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35240         doc/glibc-functions/wcscasecmp_l.texi.
35241         * doc/posix-functions/wcscoll_l.texi: Renamed from
35242         doc/glibc-functions/wcscoll_l.texi.
35243         * doc/posix-functions/wcsdup.texi: Renamed from
35244         doc/glibc-functions/wcsdup.texi.
35245         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35246         doc/glibc-functions/wcsncasecmp.texi.
35247         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35248         doc/glibc-functions/wcsncasecmp_l.texi.
35249         * doc/posix-functions/wcsnlen.texi: Renamed from
35250         doc/glibc-functions/wcsnlen.texi.
35251         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35252         doc/glibc-functions/wcsnrtombs.texi.
35253         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35254         doc/glibc-functions/wcsxfrm_l.texi.
35255         * doc/posix-functions/wctrans_l.texi: Renamed from
35256         doc/glibc-functions/wctrans_l.texi.
35257         * doc/posix-functions/wctype_l.texi: Renamed from
35258         doc/glibc-functions/wctype_l.texi.
35259         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35260         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35261         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35262         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35263         these subsections.
35264         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35265         Remove sections.
35266
35267 2008-12-14  Bruno Haible  <bruno@clisp.org>
35268
35269         Update doc for POSIX:2008.
35270         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35271
35272 2008-12-14  Bruno Haible  <bruno@clisp.org>
35273
35274         Update doc for POSIX:2008.
35275         * doc/pastposix-functions/bcmp.texi: Renamed from
35276         doc/posix-functions/bcmp.texi.
35277         * doc/pastposix-functions/bcopy.texi: Renamed from
35278         doc/posix-functions/bcopy.texi.
35279         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35280         doc/posix-functions/bsd_signal.texi.
35281         * doc/pastposix-functions/bzero.texi: Renamed from
35282         doc/posix-functions/bzero.texi.
35283         * doc/pastposix-functions/ecvt.texi: Renamed from
35284         doc/posix-functions/ecvt.texi.
35285         * doc/pastposix-functions/fcvt.texi: Renamed from
35286         doc/posix-functions/fcvt.texi.
35287         * doc/pastposix-functions/ftime.texi: Renamed from
35288         doc/posix-functions/ftime.texi.
35289         * doc/pastposix-functions/gcvt.texi: Renamed from
35290         doc/posix-functions/gcvt.texi.
35291         * doc/pastposix-functions/getcontext.texi: Renamed from
35292         doc/posix-functions/getcontext.texi.
35293         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35294         doc/posix-functions/gethostbyaddr.texi.
35295         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35296         doc/posix-functions/gethostbyname.texi.
35297         * doc/pastposix-functions/getwd.texi: Renamed from
35298         doc/posix-functions/getwd.texi.
35299         * doc/pastposix-functions/h_errno.texi: Renamed from
35300         doc/posix-functions/h_errno.texi.
35301         * doc/pastposix-functions/index.texi: Renamed from
35302         doc/posix-functions/index.texi.
35303         * doc/pastposix-functions/makecontext.texi: Renamed from
35304         doc/posix-functions/makecontext.texi.
35305         * doc/pastposix-functions/mktemp.texi: Renamed from
35306         doc/posix-functions/mktemp.texi.
35307         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35308         doc/posix-functions/pthread_attr_getstackaddr.texi.
35309         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35310         doc/posix-functions/pthread_attr_setstackaddr.texi.
35311         * doc/pastposix-functions/rindex.texi: Renamed from
35312         doc/posix-functions/rindex.texi.
35313         * doc/pastposix-functions/scalb.texi: Renamed from
35314         doc/posix-functions/scalb.texi.
35315         * doc/pastposix-functions/setcontext.texi: Renamed from
35316         doc/posix-functions/setcontext.texi.
35317         * doc/pastposix-functions/swapcontext.texi: Renamed from
35318         doc/posix-functions/swapcontext.texi.
35319         * doc/pastposix-functions/ualarm.texi: Renamed from
35320         doc/posix-functions/ualarm.texi.
35321         * doc/pastposix-functions/usleep.texi: Renamed from
35322         doc/posix-functions/usleep.texi.
35323         * doc/pastposix-functions/vfork.texi: Renamed from
35324         doc/posix-functions/vfork.texi.
35325         * doc/pastposix-functions/wcswcs.texi: Renamed from
35326         doc/posix-functions/wcswcs.texi.
35327         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35328         (Function Substitutes): Update.
35329
35330 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35331
35332         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35333         m4/strerror.m4.
35334
35335 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35336             Bruno Haible  <bruno@clisp.org>
35337
35338         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35339
35340 2008-12-13  Bruno Haible  <bruno@clisp.org>
35341
35342         * modules/strtoull (Depends-on): Remove unistd.
35343
35344 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35345
35346         * modules/strtoull (Depends-on): Add stdlib.
35347
35348 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35349
35350         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35351
35352 2008-12-10  Jim Meyering  <meyering@redhat.com>
35353
35354         gl_ASSERT: don't say assertions are disabled when they're not
35355         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35356         "checking whether to enable assertions... no", when they are in
35357         fact enabled.  This is solely a bug in the output of configure.
35358         In spite of saying "no", NDEBUG was not defined in that case.
35359         Also, as noted by Eric Blake, leave assertions enabled upon
35360         --enable-assert=INVALID.
35361
35362 2008-12-10  Bruno Haible  <bruno@clisp.org>
35363
35364         Change MODULES.html to refer to POSIX:2008 where possible.
35365         * MODULES.html.sh (POSIX2008_URL): New variable.
35366         (posix_headers): Remove sys/timeb, ucontext.
35367         (posix2001_headers): New variable.
35368         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35369         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35370         index, makecontext, mktemp, pthread_attr_getstackaddr,
35371         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35372         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35373         (posix2001_functions): New variable.
35374         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35375         otherwise.
35376
35377 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35378
35379         add missing include to parse-duration.c
35380         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35381         * modules/parse-duration (Depends-on): Add xalloc.
35382
35383         fix sed script reading maint.mk
35384         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35385         (syntax-check-rules): Use it.
35386
35387 2008-12-09  Bruno Haible  <bruno@clisp.org>
35388
35389         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35390         MacOS X 10.4/PowerPC.
35391         Reported by Simon Josefsson.
35392
35393 2008-12-08  Jim Meyering  <meyering@redhat.com>
35394
35395         work around mingw's lack of some S_IF definitions
35396         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35397         Reported by Simon Josefsson.
35398
35399 2008-12-08  Bruno Haible  <bruno@clisp.org>
35400
35401         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35402         applied to variables. Needed on MacOS X 10.4/PowerPC.
35403         Reported by Simon Josefsson.
35404
35405 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35406         and Eric Blake  <ebb9@byu.net>
35407
35408         assert: honor --enable-assert
35409         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35410         order to honor --enable-assert, rather than treating it as a
35411         synonym for --disable-assert.
35412
35413 2008-12-08  Jim Meyering  <meyering@redhat.com>
35414
35415         * lib/posixtm.c: Remove now-useless declaration of mktime.
35416
35417         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35418
35419 2008-12-07  Bruno Haible  <bruno@clisp.org>
35420
35421         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35422         test_once): Mark functions as static.
35423         * tests/test-tls.c (test_tls): Likewise.
35424
35425 2008-12-07  Bruno Haible  <bruno@clisp.org>
35426
35427         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35428         iconv_register_autodetect.
35429
35430 2008-12-07  Jim Meyering  <meyering@redhat.com>
35431
35432         posixtm.c: avoid a warning
35433         * lib/posixtm.c (posixtime): Don't initialize tm0.
35434         It's no longer needed to placate gcc4's -Wuninitialized,
35435         and the attempt to placate would elicit a new warning.
35436
35437         unicodeio.c: mark unused parameters
35438         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35439         (fallback_failure_callback): Likewise.
35440
35441 2008-12-07  Bruno Haible  <bruno@clisp.org>
35442
35443         * gnulib-tool (func_create_testdir): When building the tests
35444         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35445         Reported by Simon Josefsson.
35446
35447 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35448
35449         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35450
35451 2008-12-06  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35454         Suggested by Eric Blake.
35455
35456 2008-12-06  Bruno Haible  <bruno@clisp.org>
35457
35458         Fix a c-stack test failure on MacOS X.
35459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35460         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35461         handler for SIGBUS as well.
35462         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35463         install a signal handler for SIGBUS as well.
35464         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35465
35466 2008-12-06  Bruno Haible  <bruno@clisp.org>
35467
35468         Advocacy documentation.
35469         * doc/gnulib-intro.texi (Benefits): New section.
35470         * doc/gnulib.texi: Update.
35471
35472 2008-12-06  Bruno Haible  <bruno@clisp.org>
35473
35474         Document the 'manywarnings' module.
35475         * doc/manywarnings.texi: New file.
35476         * doc/gnulib.texi: Include it.
35477
35478 2008-12-05  Eric Blake  <ebb9@byu.net>
35479
35480         tests: silence some gcc warnings
35481         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35482         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35483         type mismatches.
35484
35485 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35486             Bruno Haible  <bruno@clisp.org>
35487
35488         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35489
35490 2008-11-29  Jim Meyering  <meyering@redhat.com>
35491
35492         unicodeio.c: mark unused parameters
35493         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35494         (fallback_failure_callback): Likewise.
35495
35496         fts: fix a thinko
35497         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35498         (set_stat_type): Return S_IF*-valued "type" directly.
35499         Prompted by James Youngman's spotting a related bug.
35500         Confirmed by further testing through find.
35501
35502         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35503         * lib/fts.c (D_TYPE): Define.
35504         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35505         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35506         (s_ifmt_shift_bits): New function.
35507         (set_stat_type): New function.
35508         (fts_build): When not calling fts_stat, call set_stat_type
35509         to propagate dirent.d_type info to fts_read caller.
35510         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35511         fts_statp->st_mode type information may be valid.
35512
35513 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35514
35515         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35516         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35517         <sds@gnu.org>.
35518
35519 2008-11-20  Bruno Haible  <bruno@clisp.org>
35520
35521         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35522         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35523         INCLUDE_NEXT.
35524         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35525         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35526         * modules/math (Makefile.am): Substitute
35527         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35528         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35529
35530 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35531             Bruno Haible  <bruno@clisp.org>
35532
35533         * lib/stdint.in.h: Define all type macros so that their expansion is
35534         a single typedef'ed token. Fixes a compilation failure in Boost which
35535         does "using ::int8_t;".
35536
35537 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35538
35539         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35540         gl_MANYWARN_ALL_GCC.
35541         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35542         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35543         * modules/manywarnings: New file.
35544         * MODULES.html.sh: Mention manywarnings module.
35545
35546 2008-11-18  Bruno Haible  <bruno@clisp.org>
35547
35548         * doc/gnulib-tool.texi (Unit tests): New section.
35549
35550 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35551
35552         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35553         paths like 'lib/po/foo.po'.
35554
35555 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35556
35557         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35558         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35559
35560 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35561
35562         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35563         parameter works.
35564
35565 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35566
35567         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35568
35569 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35570
35571         * modules/parse-duration-tests: New file.
35572         * tests/test-parse-duration.sh: New file.
35573         * tests/test-parse-duration.c: New file.
35574
35575         New module 'parse-duration'.
35576         * lib/parse-duration.h: New file.
35577         * lib/parse-duration.c: New file.
35578         * modules/parse-duration: New file.
35579
35580 2008-11-17  Bruno Haible  <bruno@clisp.org>
35581
35582         * tests/test-select-out.sh: Comment out the first pipe test.
35583         Reported by Simon Josefsson.
35584
35585 2008-11-17  Bruno Haible  <bruno@clisp.org>
35586
35587         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35589         gl_HOSTENT.
35590
35591 2008-11-17  Bruno Haible  <bruno@clisp.org>
35592
35593         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35594         -lnetwork and -lnet. Needed for Haiku and BeOS.
35595
35596 2008-11-16  Bruno Haible  <bruno@clisp.org>
35597
35598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35599
35600 2008-11-16  Bruno Haible  <bruno@clisp.org>
35601
35602         Avoid test failure on Haiku.
35603         * tests/test-fsync.c: Include <errno.h>.
35604         (main): Don't require that fsync (0) fails.
35605
35606 2008-11-15  Bruno Haible  <bruno@clisp.org>
35607
35608         New module 'hostent'.
35609         * modules/hostent: New file.
35610         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35611
35612 2008-11-15  Bruno Haible  <bruno@clisp.org>
35613
35614         New module 'servent'.
35615         * modules/servent: New file.
35616         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35617
35618 2008-11-15  Bruno Haible  <bruno@clisp.org>
35619
35620         Avoid generating same test program with two different rules.
35621         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35622         test-frexp to test-frexp-nolibm.
35623         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35624         test-frexpl to test-frexpl-nolibm.
35625
35626 2008-11-15  Bruno Haible  <bruno@clisp.org>
35627
35628         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35629         $(FREXPL_LIBM).
35630
35631 2008-11-15  Bruno Haible  <bruno@clisp.org>
35632
35633         * lib/netdb.in.h: Activate the definitions also when the system's
35634         <netdb.h> has 'struct addrinfo'.
35635         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35636         EAI_OVERFLOW or AI_NUMERICSERV.
35637         * doc/posix-headers/netdb.texi: Document the problem.
35638
35639 2008-11-15  Bruno Haible  <bruno@clisp.org>
35640
35641         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35642
35643         Make the 'sched' module work on platforms where <sched.h> exists but
35644         is incomplete (such as Haiku).
35645         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35646         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35647         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35648         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35649         HAVE_STRUCT_SCHED_PARAM.
35650         * modules/sched (Depends-on): Add include_next.
35651         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35652         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35653         * doc/posix-headers/sched.texi: Document the issue.
35654
35655 2008-11-13  Jim Meyering  <meyering@redhat.com>
35656
35657         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35658         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35659         test would fail due to the difference in the Report bugs to ...
35660         line.  The expected address is empty, "<>", while the actual
35661         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35662
35663 2008-11-12  Bruno Haible  <bruno@clisp.org>
35664
35665         lstat: don't compile lstat.c on systems lacking lstat
35666         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35667         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35668         Reported by Daniel P. Berrange via Jim Meyering.
35669
35670 2008-11-12  Jim Meyering  <meyering@redhat.com>
35671
35672         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35673
35674 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35675
35676         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35677         instead.
35678
35679 2008-11-12  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/unicodeio.c: Include unistr.h.
35682         (utf8_wctomb): Remove function.
35683         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35684
35685 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35686
35687         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35688         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35689         <bruno@clisp.org>.
35690         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35691
35692 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35693
35694         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35695         * doc/gnulib.texi: Add section for warnings.
35696
35697 2008-11-11  Bruno Haible  <bruno@clisp.org>
35698
35699         * lib/sockets.h: Add a comment.
35700
35701 2008-11-11  Karl Berry  <karl@gnu.org>
35702
35703         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35704
35705 2008-11-11  Eric Blake  <ebb9@byu.net>
35706
35707         fdl.texi: avoid git symlinks
35708         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35709
35710 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35711
35712         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35713
35714 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35715
35716         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35717         (gl_WARN_ADD): Substitute $2 if literal.
35718
35719 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35720
35721         * m4/warning.m4: Remove.
35722
35723 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35724
35725         * m4/warnings.m4: Almost complete rewrite. :-)
35726
35727 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35728
35729         * modules/warnings: New module.
35730         * m4/warnings.m4: New file.
35731         * MODULES.html.sh: Mention warnings module.
35732         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35733         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35734
35735 2008-11-10  Eric Blake  <ebb9@byu.net>
35736
35737         fdl.texi: make a symlink to the latest version
35738         * doc/standards.texi: Revert today's earlier change.
35739         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35740         * doc/fdl.texi: ...and replace this with a symlink to the newer
35741         fdl-1.3.texi.
35742
35743 2008-11-10  Bruno Haible  <bruno@clisp.org>
35744
35745         * tests/test-select-fd.c (main): Accept the result file name as fourth
35746         argument.
35747         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35748         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35749
35750 2008-11-10  Bruno Haible  <bruno@clisp.org>
35751
35752         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35753         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35754         as autoconf-substituted macros.
35755         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35757         gl_NETDB_H_DEFAULTS. Set these variables.
35758         * modules/netdb (Makefile.am): Substitute these variables.
35759
35760 2008-11-10  Eric Blake  <ebb9@byu.net>
35761
35762         standards.texi: include correct file for FDL 1.3
35763         * doc/standards.texi (GNU Free Documentation License): Change
35764         include file to pull in FDL 1.3, not 1.2.
35765
35766         fdl.texi: revert accidental change to license
35767         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35768
35769 2008-11-10  Bruno Haible  <bruno@clisp.org>
35770
35771         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35772         cross-compiling guesses also when the native compile gives no result.
35773
35774 2008-11-10  Bruno Haible  <bruno@clisp.org>
35775
35776         * lib/spawni.c (__spawni): Force variable into the stack.
35777
35778 2008-11-10  Bruno Haible  <bruno@clisp.org>
35779
35780         Add support for Haiku.
35781         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35782         glibc and BeOS, but also on Haiku.
35783         * lib/fpurge.c (fpurge): Likewise.
35784         * lib/freadable.c (freadable): Likewise.
35785         * lib/freadahead.c (freadahead): Likewise.
35786         * lib/freading.c (freading): Likewise.
35787         * lib/freadptr.c (freadptr): Likewise.
35788         * lib/freadseek.c (freadptrinc): Likewise.
35789         * lib/fseeko.c (rpl_fseeko): Likewise.
35790         * lib/fseterr.c (fseterr): Likewise.
35791         * lib/fwritable.c (fwritable): Likewise.
35792         * lib/fwriting.c (fwriting): Likewise.
35793         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35794
35795 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35796
35797         * lib/config.charset: Treat Haiku like BeOS.
35798
35799 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35800
35801         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35802         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35803
35804 2008-11-08  Bruno Haible  <bruno@clisp.org>
35805
35806         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35807         AC_CACHE_CHECK.
35808
35809 2008-11-08  Bruno Haible  <bruno@clisp.org>
35810
35811         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35812
35813 2008-11-08  Bruno Haible  <bruno@clisp.org>
35814
35815         * tests/test-select-fd.c: New file.
35816         * tests/test-select-in.sh: New file.
35817         * tests/test-select-out.sh: New file.
35818         * tests/test-select-stdin.c: New file.
35819         * modules/select-tests (Files): Add the new files.
35820         (Depends-on): Add gettimeofday.
35821         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35822         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35823         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35824
35825 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35826             Bruno Haible  <bruno@clisp.org>
35827
35828         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35829
35830 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35831
35832         * build-aux/pmccabe2html: Added support for C++ source files.
35833
35834 2008-11-05  Ben Pfaff  <blp@gnu.org>
35835
35836         Fix lib/close.c build on Windows.
35837         * modules/close (Files): Add lib/w32sock.h.
35838
35839 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35840
35841         Accept Bison's NEWS format.
35842         * build-aux/announce-gen (print_news_deltas): Tweak
35843         $re_prefix.
35844
35845 2008-11-04  Bruno Haible  <bruno@clisp.org>
35846
35847         * modules/random_r (Maintainer): Add glibc.
35848
35849 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35850
35851         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35852         by karl@freefriends.org (Karl Berry).
35853         * doc/alloca.texi: Likewise.
35854         * doc/c-ctype.texi: Likewise.
35855         * doc/c-strcase.texi: Likewise.
35856         * doc/c-strcaseeq.texi: Likewise.
35857         * doc/c-strcasestr.texi: Likewise.
35858         * doc/c-strstr.texi: Likewise.
35859         * doc/c-strtod.texi: Likewise.
35860         * doc/c-strtold.texi: Likewise.
35861         * doc/ctime.texi: Likewise.
35862         * doc/error.texi: Likewise.
35863         * doc/fdl.texi: Likewise.
35864         * doc/gcd.texi: Likewise.
35865         * doc/getdate.texi: Likewise.
35866         * doc/gnulib-intro.texi: Likewise.
35867         * doc/gnulib-tool.texi: Likewise.
35868         * doc/gnulib.texi: Likewise.
35869         * doc/inet_ntoa.texi: Likewise.
35870         * doc/maintain.texi: Likewise.
35871         * doc/make-stds.texi: Likewise.
35872         * doc/quote.texi: Likewise.
35873         * doc/regexprops-generic.texi: Likewise.
35874         * doc/standards.texi: Likewise.
35875         * doc/verify.texi: Likewise.
35876         * doc/visibility.texi: Likewise.
35877         * doc/gnulib.texi (GNU Free Documentation License): Include
35878         fdl-1.3.texi instead of fdl.texi.
35879
35880 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35881
35882         * doc/fdl-1.3.texi: New file, from
35883         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35884         * modules/fdl-1.3: Add.
35885         * MODULES.html.sh: Add fdl-1.3.
35886
35887 2008-11-03  Bruno Haible  <bruno@clisp.org>
35888
35889         Make determination of absolute name of header file work with AIX xlc.
35890         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35891         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35892         preprocessing.
35893         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35894         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35895
35896 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35897
35898         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35899         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35900         <ludo@gnu.org>.
35901
35902 2008-11-02  Bruno Haible  <bruno@clisp.org>
35903
35904         Mark 'strpbrk' obsolete.
35905         * modules/strpbrk (Status, Notice): New sections.
35906         * modules/strtok_r (Depends-on): Add strpbrk.
35907
35908 2008-11-02  Bruno Haible  <bruno@clisp.org>
35909
35910         Mark 'strdup' obsolete.
35911         * modules/strdup (Status, Notice): New sections.
35912         * modules/findprog (Depends-on): Add strdup.
35913         * modules/getaddrinfo (Depends-on): Likewise.
35914         * modules/localename (Depends-on): Likewise.
35915         * modules/relocatable-lib (Depends-on): Likewise.
35916         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35917         * modules/relocatable-prog (Depends-on): Likewise.
35918         * modules/trim (Depends-on): Likewise.
35919         * modules/unictype/gen-ctype (Depends-on): Likewise.
35920         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35921
35922 2008-11-02  Bruno Haible  <bruno@clisp.org>
35923
35924         Mark 'strcspn' obsolete.
35925         * modules/strcspn (Status, Notice): New sections.
35926
35927 2008-11-02  Bruno Haible  <bruno@clisp.org>
35928
35929         Mark 'rmdir' obsolete.
35930         * modules/rmdir (Status, Notice): New sections.
35931         * modules/clean-temp (Depends-on): Add rmdir.
35932         * modules/openat (Depends-on): Likewise.
35933
35934 2008-11-02  Bruno Haible  <bruno@clisp.org>
35935
35936         Mark 'raise' obsolete.
35937         * modules/raise (Status, Notice): New sections.
35938         (Include): Specify <signal.h>.
35939         * modules/stdio (Depends-on): Add raise.
35940         * modules/write (Depends-on): Likewise.
35941
35942 2008-11-02  Bruno Haible  <bruno@clisp.org>
35943
35944         Mark 'memset' obsolete.
35945         * modules/memset (Status, Notice): New sections.
35946
35947 2008-11-02  Bruno Haible  <bruno@clisp.org>
35948
35949         Mark 'memmove' obsolete.
35950         * modules/memmove (Status, Notice): New sections.
35951         * modules/argp (Depends-on): Add memmove.
35952         * modules/argz (Depends-on): Likewise.
35953         * modules/canonicalize (Depends-on): Likewise.
35954         * modules/canonicalize-lgpl (Depends-on): Likewise.
35955         * modules/fts (Depends-on): Likewise.
35956         * modules/getcwd (Depends-on): Likewise.
35957         * modules/human (Depends-on): Likewise.
35958         * modules/regex (Depends-on): Likewise.
35959         * modules/striconveh (Depends-on): Likewise.
35960         * modules/trim (Depends-on): Likewise.
35961         * modules/unistr/u8-move (Depends-on): Likewise.
35962         * modules/unistr/u16-move (Depends-on): Likewise.
35963         * modules/unistr/u32-move (Depends-on): Likewise.
35964
35965 2008-11-02  Bruno Haible  <bruno@clisp.org>
35966
35967         Mark 'memcpy' obsolete.
35968         * modules/memcpy (Status, Notice): New sections.
35969
35970 2008-11-02  Bruno Haible  <bruno@clisp.org>
35971
35972         Mark 'memcmp' obsolete.
35973         * modules/memcmp (Status, Notice): New sections.
35974         * modules/argmatch (Depends-on): Add memchr.
35975         * modules/backupfile (Depends-on): Likewise.
35976         * modules/c-strcasestr (Depends-on): Likewise.
35977         * modules/crypto/des (Depends-on): Likewise.
35978         * modules/csharpcomp (Depends-on): Likewise.
35979         * modules/fnmatch (Depends-on): Likewise.
35980         * modules/git-merge-changelog (Depends-on): Likewise.
35981         * modules/isnand (Depends-on): Likewise.
35982         * modules/isnand-nolibm (Depends-on): Likewise.
35983         * modules/isnanf (Depends-on): Likewise.
35984         * modules/isnanf-nolibm (Depends-on): Likewise.
35985         * modules/isnanl (Depends-on): Likewise.
35986         * modules/isnanl-nolibm (Depends-on): Likewise.
35987         * modules/mbchar (Depends-on): Likewise.
35988         * modules/memcoll (Depends-on): Likewise.
35989         * modules/quotearg (Depends-on): Likewise.
35990         * modules/regex (Depends-on): Likewise.
35991         * modules/relocatable-prog (Depends-on): Likewise.
35992         * modules/same (Depends-on): Likewise.
35993         * modules/signbit (Depends-on): Likewise.
35994         * modules/strcasestr-simple (Depends-on): Likewise.
35995         * modules/unictype/gen-ctype (Depends-on): Likewise.
35996         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35997         * modules/uniname/uniname (Depends-on): Likewise.
35998         * modules/unistr/u8-cmp (Depends-on): Likewise.
35999
36000 2008-11-02  Bruno Haible  <bruno@clisp.org>
36001
36002         Mark 'memchr' obsolete.
36003         * modules/memchr (Status, Notice): New sections.
36004         * modules/argp (Depends-on): Add memchr.
36005         * modules/base64 (Depends-on): Likewise.
36006         * modules/c-strcasestr (Depends-on): Likewise.
36007         * modules/chdir-long (Depends-on): Likewise.
36008         * modules/fnmatch (Depends-on): Likewise.
36009         * modules/getsubopt (Depends-on): Likewise.
36010         * modules/git-merge-changelog (Depends-on): Likewise.
36011         * modules/glob (Depends-on): Likewise.
36012         * modules/strcasestr-simple (Depends-on): Likewise.
36013         * modules/strnlen (Depends-on): Likewise.
36014
36015 2008-11-02  Bruno Haible  <bruno@clisp.org>
36016
36017         Mark 'atexit' obsolete.
36018         * modules/atexit (Status, Notice): New sections.
36019         * modules/chdir-long (Depends-on): Add atexit.
36020         * modules/wait-process (Depends-on): Likewise.
36021
36022 2008-11-02  Bruno Haible  <bruno@clisp.org>
36023
36024         * gnulib-tool: New option --with-obsolete.
36025         (func_usage): Document it.
36026         (func_modules_transitive_closure): Drop obsolete dependencies if
36027         incobsolete is not true.
36028         (func_import): Read and save the incobsolete variable to the cache.
36029
36030 2008-11-02  Bruno Haible  <bruno@clisp.org>
36031
36032         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36033         * gnulib-tool: New option --extract-status.
36034         (func_usage): Document it.
36035         (sed_extract_prog): Recognize it.
36036         (func_get_status): New function.
36037
36038 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36039
36040         * modules/sockets (License): Change from LGPL to LGPLv2+.
36041
36042 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36043
36044         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36045
36046 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36047
36048         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36049         Mention times and sys_times.
36050         * modules/sys_times, modules/sys_times-tests: New modules.
36051         * modules/times, modules/times-tests: Likewise
36052         * m4/sys_times_h.m4: New file.
36053         * lib/sys_times.in.h: Likewise
36054         * lib/times.c: Likewise.
36055         * tests/test-sys_times.c: Likewise.
36056         * tests/test-times.c: Likewise.
36057         * doc/posix-headers/sys_times.texi: Update.
36058         * doc/posix-functions/times.texi: Update.
36059
36060 2008-10-28  Jim Meyering  <meyering@redhat.com>
36061
36062         * modules/tempname (Depends-on): Add lstat.
36063
36064         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36065
36066 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36067
36068         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36069         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36070         using idiom used elsewhere in gnulib.
36071
36072 2008-10-27  Jim Meyering  <meyering@redhat.com>
36073
36074         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36075
36076 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36077
36078         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36079         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36080         programs.
36081         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36082
36083 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36084
36085         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36086
36087 2008-10-27  Bruno Haible  <bruno@clisp.org>
36088
36089         * tests/test-lstat.c: Include <stdio.h>.
36090
36091 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36092
36093         * modules/lstat-tests: New module.
36094         * tests/test-lstat.c: New file.
36095
36096 2008-10-26  Jim Meyering  <meyering@redhat.com>
36097
36098         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36099
36100 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36101             Bruno Haible  <bruno@clisp.org>
36102
36103         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36104         * modules/configmake (Include): Add a note that the include must come
36105         after all system headers.
36106         * lib/javaversion.c: Include configmake.h after all other includes.
36107
36108 2008-10-26  Bruno Haible  <bruno@clisp.org>
36109
36110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36111         HAVE_STRUCT_RANDOM_DATA to 1.
36112         (gl_STDLIB_H): Simplify.
36113
36114 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36115
36116         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36117         substitute HAVE_STRUCT_RANDOM_DATA.
36118         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36119         random_data.
36120         * modules/stdlib (Makefile.am): Substitute
36121         HAVE_STRUCT_RANDOM_DATA.
36122
36123 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36124
36125         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36126         * doc/gnulib-intro.texi (Copyright): Likewise.
36127
36128 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36129
36130         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36131         findings.
36132
36133 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36134             Bruno Haible  <bruno@clisp.org>
36135
36136         * lib/unistd.in.h: Include <winsock2.h>.
36137         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36138         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36139         Provide dummy declarations.
36140         (gethostname): Override.
36141         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36142         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36143         gl_PREREQ_SYS_H_WINSOCK2.
36144         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36145         * doc/posix-functions/gethostname.texi: More details.
36146
36147 2008-10-25  Bruno Haible  <bruno@clisp.org>
36148
36149         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36150         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36151         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36152
36153         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36154         here ...
36155         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36156         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36157         gl_UNISTD_H_DEFAULTS.
36158
36159 2008-10-25  Eric Blake  <ebb9@byu.net>
36160
36161         signbit: avoid spurious compiler failure
36162         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36163         declarations inside function.
36164
36165 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36166             Bruno Haible  <bruno@clisp.org>
36167
36168         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36169         * modules/random_r (Depends-on): Add stdint.
36170
36171 2008-10-24  Bruno Haible  <bruno@clisp.org>
36172
36173         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36174         Eggert.
36175         * modules/strerror (License): Likewise.
36176
36177 2008-10-24  Jim Meyering  <meyering@redhat.com>
36178
36179         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36180         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36181
36182 2008-10-24  Eric Blake  <ebb9@byu.net>
36183
36184         getgroups: fix compilation when getgroups is available
36185         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36186         but with <config.h> override of getgroups disabled.
36187
36188 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36189
36190         * doc/gnulib.texi (Header files): Add note about C++ problems.
36191         Explained by Bruno Haible <bruno@clisp.org>.
36192
36193 2008-10-23  Bruno Haible  <bruno@clisp.org>
36194
36195         Define a dummy SA_NODEFER macro on Interix.
36196         * lib/signal.in.h (SA_NODEFER): Define fallback.
36197         Reported by Aleksey Cheusov <cheusov@tut.by> via
36198         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36199
36200 2008-10-23  Bruno Haible  <bruno@clisp.org>
36201
36202         * modules/freadahead (License): Change to LGPLv2+.
36203         Suggested by Simon Josefsson.
36204
36205 2008-10-23  Jim Meyering  <meyering@redhat.com>
36206
36207         random_r: new module
36208         * modules/random_r: New file.
36209         * m4/random_r.m4: New file.
36210         * lib/random_r.c: New file, from glibc.
36211         * modules/random_r-tests: New file.
36212         * tests/test-random_r.c: New file.
36213         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36214          Declare.
36215         (RAND_MAX): Define.
36216         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36217         * modules/stdlib: Substitute them, too.
36218         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36219         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36220         * doc/glibc-functions/random_r.texi: Likewise.
36221         * doc/glibc-functions/setstate_r.texi: Likewise.
36222         * doc/glibc-functions/srandom_r.texi: Likewise.
36223         * config/srclist.txt: Mention it.
36224
36225 2008-10-23  David Lutterkort  <lutter@redhat.com>
36226
36227         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36228         link requirement
36229
36230 2008-10-23  Jim Meyering  <meyering@redhat.com>
36231
36232         selinux-h: mark parameters of stub functions as intentionally unused
36233         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36234         * lib/se-context.in.h: Likewise.
36235
36236 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36237
36238         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36239
36240 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36241
36242         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36243
36244 2008-10-22  Eric Blake  <ebb9@byu.net>
36245
36246         glthread/thread: avoid compiler warning
36247         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36248         Add unreachable abort to silence compiler.
36249
36250 2008-10-22  Eric Blake  <ebb9@byu.net>
36251
36252         netdb: also supply struct addrinfo for cygwin 1.5.x
36253         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36254         older cygwin.
36255         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36256         cygwin.
36257         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36258
36259 2008-10-22  Bruno Haible  <bruno@clisp.org>
36260
36261         * users.txt: Update entry about pspp.
36262
36263 2008-10-21  Bruno Haible  <bruno@clisp.org>
36264
36265         Simplification.
36266         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36267         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36268
36269         Simplification.
36270         * lib/ioctl.c (ioctl): Don't undefine.
36271         * lib/socket.c (socket): Don't undefine.
36272
36273         Remove unused module indicator macros.
36274         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36275         GNULIB_$1 as a C macro.
36276
36277         * doc/posix-functions/close.texi: Undo last change.
36278         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36279         Windows platforms.
36280
36281 2008-10-21  Bruno Haible  <bruno@clisp.org>
36282
36283         Add gethostname() declaration to <unistd.h>.
36284         * lib/unistd.in.h (gethostname): New declaration.
36285         * lib/gethostname.c: Include <unistd.h>.
36286         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36287         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36289         and HAVE_GETHOSTNAME.
36290         * modules/gethostname (Depends-on): Add unistd.
36291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36292         (Include): Specify <unistd.h>.
36293         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36294         HAVE_GETHOSTNAME.
36295         * tests/test-gethostname.c: Include <unistd.h> first.
36296
36297 2008-10-21  Bruno Haible  <bruno@clisp.org>
36298
36299         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36300         * modules/select-tests (Depends-on): Likewise.
36301         Reported by Simon Josefsson.
36302
36303 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36304
36305         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36306         * lib/accept.c: New file, based on winsock.c.
36307         * lib/bind.c: New file, based on winsock.c.
36308         * lib/connect.c: New file, based on winsock.c.
36309         * lib/getpeername.c: New file, based on winsock.c.
36310         * lib/getsockname.c: New file, based on winsock.c.
36311         * lib/getsockopt.c: New file, based on winsock.c.
36312         * lib/ioctl.c: New file, based on winsock.c.
36313         * lib/listen.c: New file, based on winsock.c.
36314         * lib/recv.c: New file, based on winsock.c.
36315         * lib/recvfrom.c: New file, based on winsock.c.
36316         * lib/send.c: New file, based on winsock.c.
36317         * lib/sendto.c: New file, based on winsock.c.
36318         * lib/setsockopt.c: New file, based on winsock.c.
36319         * lib/shutdown.c: New file, based on winsock.c.
36320         * lib/socket.c: New file, based on winsock.c.
36321         * lib/w32sock.h: New file, based on winsock.c.
36322         * lib/winsock.c: Remove file.
36323         * modules/accept: Likewise.
36324         * modules/bind: Likewise.
36325         * modules/connect: Likewise.
36326         * modules/getpeername: Likewise.
36327         * modules/getsockname: Likewise.
36328         * modules/getsockopt: Likewise.
36329         * modules/ioctl: Likewise.
36330         * modules/listen: Likewise.
36331         * modules/recv: Likewise.
36332         * modules/recvfrom: Likewise.
36333         * modules/send: Likewise.
36334         * modules/sendto: Likewise.
36335         * modules/setsockopt: Likewise.
36336         * modules/shutdown: Likewise.
36337         * modules/socket: Use socket.c instead of winsock.c.
36338         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36339         * doc/posix-functions/accept.texi: Doc fix.
36340         * doc/posix-functions/bind.texi: Doc fix.
36341         * doc/posix-functions/close.texi: Doc fix.
36342         * doc/posix-functions/connect.texi: Doc fix.
36343         * doc/posix-functions/getpeername.texi: Doc fix.
36344         * doc/posix-functions/getsockname.texi: Doc fix.
36345         * doc/posix-functions/getsockopt.texi: Doc fix.
36346         * doc/posix-functions/ioctl.texi: Doc fix.
36347         * doc/posix-functions/listen.texi: Doc fix.
36348         * doc/posix-functions/recv.texi: Doc fix.
36349         * doc/posix-functions/recvfrom.texi: Doc fix.
36350         * doc/posix-functions/send.texi: Doc fix.
36351         * doc/posix-functions/sendto.texi: Doc fix.
36352         * doc/posix-functions/setsockopt.texi: Doc fix.
36353         * doc/posix-functions/shutdown.texi: Doc fix.
36354         * doc/posix-functions/socket.texi: Doc fix.
36355
36356 2008-10-20  Bruno Haible  <bruno@clisp.org>
36357
36358         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36359         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36360         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36361         as an alias for SIGABRT.
36362         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36363         (sigaction): Map it to SIGABRT.
36364         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36365
36366 2008-10-20  Bruno Haible  <bruno@clisp.org>
36367
36368         * lib/fts.c: Don't include lstat.h.
36369         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36370
36371         Move the lstat() declaration to <sys/stat.h>.
36372         * lib/lstat.h: Remove file.
36373         * lib/sys_stat.in.h: Add special invocation convention.
36374         (lstat): New declaration.
36375         * lib/lstat.c (orig_lstat): New function.
36376         (rpl_lstat): Use orig_lstat instead of lstat.
36377         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36378         AC_C_INLINE. Set REPLACE_LSTAT.
36379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36380         and REPLACE_LSTAT.
36381         * modules/lstat (Files): Remove lib/lstat.h.
36382         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36383         (Include): Specify <sys/stat.h> instead of lstat.h.
36384         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36385         REPLACE_LSTAT.
36386         * NEWS: Mention the change.
36387
36388 2008-10-20  Bruno Haible  <bruno@clisp.org>
36389
36390         * modules/posix_spawn-tests: New file.
36391         * tests/test-posix_spawn3.c: New file.
36392
36393 2008-10-20  Bruno Haible  <bruno@clisp.org>
36394
36395         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36396         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36397         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36398         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36399         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36400
36401 2008-10-20  Bruno Haible  <bruno@clisp.org>
36402
36403         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36404         of posix_spawn on AIX 5.3.
36405
36406 2008-10-20  Bruno Haible  <bruno@clisp.org>
36407
36408         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36409
36410 2008-10-20  Bruno Haible  <bruno@clisp.org>
36411
36412         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36413         of AC_LANG_PROGRAM.
36414
36415 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36416
36417         * lib/netdb.in.h: Don't define GNU specific constants until they
36418         are supported or needed.  Reported by Bruno Haible
36419         <bruno@clisp.org>.
36420
36421 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36422
36423         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36424
36425 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36426
36427         * lib/getaddrinfo.h: Remove file.
36428         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36429         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36430         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36431         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36432         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36433         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36434         * tests/test-getaddrinfo.c: Likewise.
36435         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36436         * NEWS: Mention change.
36437
36438 2008-10-19  Bruno Haible  <bruno@clisp.org>
36439
36440         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36441
36442 2008-10-19  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/wait-process.c: Include simply <sys/wait.h>.
36445         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36446         WIFSTOPPED): Remove fallback definitions.
36447         * modules/wait-process (Depends-on): Add sys_wait.
36448
36449         New module 'sys_wait'.
36450         * modules/sys_wait: New file.
36451         * lib/sys_wait.in.h: New file, partially copied from
36452         lib/wait-process.c.
36453         * m4/sys_wait_h.m4: New file.
36454         * doc/posix-headers/sys_wait.texi: Mention the new module.
36455
36456 2008-10-19  Bruno Haible  <bruno@clisp.org>
36457
36458         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36459
36460 2008-10-19  Bruno Haible  <bruno@clisp.org>
36461
36462         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36463         * lib/wait-process.c (WAIT_T): Remove type.
36464         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36465         (wait_subprocess): Update.
36466
36467 2008-10-19  Bruno Haible  <bruno@clisp.org>
36468
36469         New module 'atoll'.
36470         * modules/atoll: New file.
36471         * lib/stdlib.in.h (atoll): New declaration.
36472         * lib/atoll.c: New file, from glibc with modifications.
36473         * m4/atoll.m4: New file.
36474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36475         HAVE_ATOLL.
36476         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36477         * doc/posix-functions/atoll.texi: Mention the new module.
36478
36479 2008-10-19  Bruno Haible  <bruno@clisp.org>
36480
36481         Add strtoull() declaration to <stdlib.h>.
36482         * lib/stdlib.in.h (strtoull): New declaration.
36483         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36484         Set HAVE_STRTOULL.
36485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36486         HAVE_STRTOULL.
36487         * modules/strtoull (Depends-on): Add stdlib.
36488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36489         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36490         HAVE_STRTOULL.
36491
36492 2008-10-19  Bruno Haible  <bruno@clisp.org>
36493
36494         Add strtoll() declaration to <stdlib.h>.
36495         * lib/stdlib.in.h (strtoll): New declaration.
36496         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36497         Set HAVE_STRTOLL.
36498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36499         HAVE_STRTOLL.
36500         * modules/strtoll (Depends-on): Add stdlib.
36501         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36502         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36503
36504 2008-10-19  Bruno Haible  <bruno@clisp.org>
36505
36506         * modules/bcopy (Depends-on): Add strings.
36507         (Include): Specify <strings.h>.
36508
36509 2008-10-19  Bruno Haible  <bruno@clisp.org>
36510
36511         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36512
36513 2008-10-19  Bruno Haible  <bruno@clisp.org>
36514
36515         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36516         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36517         mingw.
36518
36519 2008-10-19  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/atanl.c: Don't include isnanl.h.
36522         * lib/cosl.c: Likewise.
36523         * lib/ldexpl.c: Likewise.
36524         * lib/logl.c: Likewise.
36525         * lib/sinl.c: Likewise.
36526         * lib/sqrtl.c: Likewise.
36527         * lib/tanl.c: Likewise.
36528
36529         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36530         * lib/isnanf.h: Remove file.
36531         * lib/isnand.h: Remove file.
36532         * lib/isnanl.h: Remove file.
36533         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36534         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36535         macros.
36536         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36537         HAVE_ISNANF, don't define it as a C macro.
36538         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36539         HAVE_ISNAND, don't define it as a C macro.
36540         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36541         HAVE_ISNANL, don't define it as a C macro.
36542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36543         HAVE_ISNAN[FDL].
36544         * modules/isnanf (Files): Remove lib/isnanf.h.
36545         (Depends-on): Add math.
36546         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36547         (Include): Specify <math.h> instead of isnanf.h.
36548         * modules/isnand (Files): Remove lib/isnand.h.
36549         (Depends-on): Add math.
36550         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36551         (Include): Specify <math.h> instead of isnand.h.
36552         * modules/isnanl (Files): Remove lib/isnanl.h.
36553         (Depends-on): Add math.
36554         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36555         (Include): Specify <math.h> instead of isnanl.h.
36556         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36557         HAVE_ISNAN[FDL].
36558         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36559         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36560         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36561         * NEWS: Mention the change.
36562
36563 2008-10-18  Bruno Haible  <bruno@clisp.org>
36564
36565         Add getusershell(), setusershell(), endusershell() declarations to
36566         <unistd.h>.
36567         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36568         declarations.
36569         * lib/getusershell.c: Include unistd.h.
36570         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36571         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36572         HAVE_GETUSERSHELL.
36573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36574         and HAVE_GETUSERSHELL.
36575         * modules/getusershell (Depends-on): Add unistd, extensions.
36576         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36577         (Include): Specify <unistd.h>.
36578         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36579         HAVE_GETUSERSHELL.
36580
36581 2008-10-18  Bruno Haible  <bruno@clisp.org>
36582
36583         Add a getloadavg() declaration to <stdlib.h>.
36584         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36585         getloadavg declaration.
36586         (getloadavg): New declaration.
36587         * lib/getloadavg.c: Include <stdlib.h> first.
36588         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36589         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36590         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36592         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36593         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36594         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36595         (Include): Specify <stdlib.h>.
36596         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36597         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36598
36599 2008-10-18  Bruno Haible  <bruno@clisp.org>
36600
36601         * lib/dirchownmod.c: Don't include lchmod.h.
36602
36603         Move the lchmod() declaration to <sys/stat.h>.
36604         * lib/lchmod.h: Remove file.
36605         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36606         (lchmod): New declaration, moved here from lib/lchown.h.
36607         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36608         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36609         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36610         and HAVE_LCHMOD.
36611         * modules/lchmod (Files): Remove lib/lchmod.h.
36612         (Depends-on): Add sys_stat, extensions.
36613         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36614         (Include): Specify <sys/stat.h> instead of lchmod.h.
36615         * modules/sys_stat (Depends-on): Add link-warning.
36616         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36617         definition of GL_LINK_WARNING.
36618         * NEWS: Mention the change.
36619
36620 2008-10-18  Bruno Haible  <bruno@clisp.org>
36621
36622         * lib/fchdir.c: Don't include dirfd.h.
36623         * lib/fts.c: Likewise.
36624         * lib/getcwd.c: Likewise.
36625         * lib/glob.c: Likewise.
36626
36627         Move the dirfd() declaration to <dirent.h>.
36628         * lib/dirfd.h: Remove file.
36629         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36630         (dirfd): New declaration.
36631         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36632         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36633         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36634         HAVE_DECL_DIRFD.
36635         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36636         HAVE_DECL_DIRFD.
36637         * modules/dirfd (Files): Remove lib/dirfd.h.
36638         (Depends-on): Add dirent, extensions.
36639         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36640         (Include): Specify <dirent.h> instead of dirfd.h.
36641         * modules/dirent (Depends-on): Add link-warning.
36642         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36643         definition of GL_LINK_WARNING.
36644         * NEWS: Mention the change.
36645
36646 2008-10-18  Bruno Haible  <bruno@clisp.org>
36647
36648         Move the euidaccess() declaration to <unistd.h>.
36649         * lib/euidaccess.h: Remove file.
36650         * lib/unistd.in.h (euidaccess): New declaration.
36651         * lib/euidaccess.c: Don't include euidaccess.h.
36652         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36653         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36655         and HAVE_EUIDACCESS.
36656         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36657         (Depends-on): Add unistd.
36658         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36659         (Include): Specify <unistd.h> instead of euidaccess.h.
36660         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36661         HAVE_EUIDACCESS.
36662         * NEWS: Mention the change.
36663
36664 2008-10-18  Bruno Haible  <bruno@clisp.org>
36665
36666         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36667
36668         Move the getdomainname() declaration to <unistd.h>.
36669         * lib/getdomainname.h: Remove file.
36670         * lib/unistd.in.h (getdomainname): New declaration.
36671         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36672         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36673         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36674         HAVE_GETDOMAINNAME.
36675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36676         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36677         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36678         (Depends-on): Add unistd, extensions.
36679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36680         (Includes): Specify <unistd.h> instead of getdomainname.h.
36681         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36682         HAVE_GETDOMAINNAME.
36683         * NEWS: Mention the change.
36684
36685 2008-10-18  Bruno Haible  <bruno@clisp.org>
36686
36687         * modules/dirent: New file.
36688         * m4/dirent_h.m4: New file.
36689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36690         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36691         * modules/fchdir (Files): Remove lib/dirent.in.h.
36692         (Depends-on): Add dirent.
36693         (Makefile.am): Move rules to modules/dirent.
36694         * doc/posix-headers/dirent.texi: Mention the new module.
36695
36696 2008-10-18  Bruno Haible  <bruno@clisp.org>
36697
36698         Avoid -Wunused-parameter warnings in public gnulib header files.
36699         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36700         macro.
36701         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36702
36703 2008-10-18  Bruno Haible  <bruno@clisp.org>
36704
36705         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36706         * doc/glibc-functions/error.texi: Mention the module 'error'.
36707         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36708         * doc/glibc-functions/getdomainname.texi: Mention the module
36709         'getdomainname'.
36710         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36711         * doc/glibc-functions/getpagesize.texi: Mention the module
36712         'getpagesize'.
36713         * doc/glibc-functions/getusershell.texi: Mention the module
36714         'getusershell'.
36715         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36716         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36717         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36718         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36719         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36720         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36721         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36722         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36723         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36724         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36725         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36726         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36727         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36728         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36729
36730 2008-10-17  Bruno Haible  <bruno@clisp.org>
36731
36732         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36733         HP-UX and IRIX, use -0.0L.
36734         * tests/test-ceill.c (minus_zero): Likewise.
36735         * tests/test-floorl.c (minus_zero): Likewise.
36736         * tests/test-frexpl.c (minus_zero): Likewise.
36737         * tests/test-isnan.c (minus_zerol): Likewise.
36738         * tests/test-isnanl.h (minus_zero): Likewise.
36739         * tests/test-ldexpl.c (minus_zero): Likewise.
36740         * tests/test-roundl.c (minus_zero): Likewise.
36741         * tests/test-signbit.c (minus_zerol): Likewise.
36742         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36743         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36744         * tests/test-truncl.c (minus_zero): Likewise.
36745         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36746         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36747         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36748         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36749
36750 2008-10-17  Bruno Haible  <bruno@clisp.org>
36751
36752         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36753         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36754         that it gets activated only for gcc >= 3.0.
36755         * lib/dirent.in.h: Likewise.
36756         * lib/errno.in.h: Likewise.
36757         * lib/fcntl.in.h: Likewise.
36758         * lib/float.in.h: Likewise.
36759         * lib/iconv.in.h: Likewise.
36760         * lib/inttypes.in.h: Likewise.
36761         * lib/locale.in.h: Likewise.
36762         * lib/math.in.h: Likewise.
36763         * lib/netdb.in.h: Likewise.
36764         * lib/netinet_in.in.h: Likewise.
36765         * lib/search.in.h: Likewise.
36766         * lib/signal.in.h: Likewise.
36767         * lib/spawn.in.h: Likewise.
36768         * lib/stdarg.in.h: Likewise.
36769         * lib/stdint.in.h: Likewise.
36770         * lib/stdio.in.h: Likewise.
36771         * lib/stdlib.in.h: Likewise.
36772         * lib/string.in.h: Likewise.
36773         * lib/strings.in.h: Likewise.
36774         * lib/sys_file.in.h: Likewise.
36775         * lib/sys_ioctl.in.h: Likewise.
36776         * lib/sys_select.in.h: Likewise.
36777         * lib/sys_socket.in.h: Likewise.
36778         * lib/sys_stat.in.h: Likewise.
36779         * lib/sys_time.in.h: Likewise.
36780         * lib/sysexits.in.h: Likewise.
36781         * lib/time.in.h: Likewise.
36782         * lib/unistd.in.h: Likewise.
36783         * lib/wchar.in.h: Likewise.
36784         * lib/wctype.in.h: Likewise.
36785         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36786
36787 2008-10-17  Jim Meyering  <meyering@redhat.com>
36788
36789         ignore-value: don't depend on inline module
36790         * modules/ignore-value (Depends-on): Remove 'inline'.
36791         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36792         Suggestion from Bruno Haible.
36793
36794 2008-10-17  Bruno Haible  <bruno@clisp.org>
36795
36796         New implementation of condition variables for Win32.
36797         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36798         (gl_linked_waitqueue_t): New type.
36799         (gl_cond_t): Use it.
36800         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36801         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36802         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36803         (glthread_cond_init_func, glthread_cond_wait_func,
36804         glthread_cond_timedwait_func, glthread_cond_signal_func,
36805         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36806         Reimplemented on the basis of gl_linked_waitqueue_t.
36807         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36808         gl_waitqueue_t.
36809         (gl_rwlock_t): Update.
36810         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36811
36812 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36813
36814         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36815         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36816
36817 2008-10-17  Jim Meyering  <meyering@redhat.com>
36818
36819         ignore-value: new module
36820         * modules/ignore-value: New file.
36821         * lib/ignore-value.h: New file.
36822         * MODULES.html.sh (Compiler warning management): New section,
36823         just for this module.  More to come.
36824
36825 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36826
36827         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36828         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36829         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36830
36831 2008-10-16  Jim Meyering  <meyering@redhat.com>
36832
36833         openat-die.c: avoid 'no previous prototype' warning
36834         * lib/openat-die.c: Include "openat.h".
36835         Reported by Reuben Thomas <rrt@sc3d.org>.
36836
36837 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36838
36839         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36840         * lib/netdb.in.h: Fix typo.
36841         Reported by Bruno Haible  <bruno@clisp.org>
36842
36843         * lib/netdb.in.h: Include sys/socket.h for platforms without
36844         netdb.h, to get structures like hostent on MinGW.
36845         * modules/netdb (Depends-on): Add sys_socket.
36846
36847 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36848
36849         * modules/netdb, modules/netdb-tests: New file.
36850         * m4/netdb_h.m4: New file.
36851         * lib/netdb.in.h: Add, currently just an empty file pending
36852         definitions.
36853         * tests/test-netdb.c: New file.
36854         * doc/posix-headers/netdb.texi: Mention that we replace it if
36855         needed.
36856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36857         netdb.
36858
36859 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36860
36861         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36862         with code.
36863
36864 2008-10-13  Bruno Haible  <bruno@clisp.org>
36865
36866         * lib/glthread/cond.c (glthread_cond_wait_func,
36867         glthread_cond_timedwait_func): Add a comment.
36868
36869 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36870
36871         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36872         * tests/test-select.c: Likewise,
36873
36874 2008-10-13  Bruno Haible  <bruno@clisp.org>
36875
36876         * lib/glthread/cond.c (glthread_cond_wait_func,
36877         glthread_cond_timedwait_func): Fix variable name.
36878         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36879
36880 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36881
36882         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36883         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36884         struct sockaddr.sa_len.
36885         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36886
36887 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36888
36889         * build-aux/pmccabe2html: Add css and css_url parameters.
36890
36891 2008-10-12  Bruno Haible  <bruno@clisp.org>
36892
36893         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36894         calling aclx_get.
36895         Reported by Rainer Tammer <tammer@tammer.net>.
36896
36897 2008-10-12  Bruno Haible  <bruno@clisp.org>
36898
36899         Use msvcrt aware primitives for creation/termination of Win32 threads.
36900         * lib/glthread/thread.c: Include <process.h>.
36901         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36902         (wrapper_func): Update signature.
36903         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36904
36905 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36906             Bruno Haible  <bruno@clisp.org>
36907
36908         Provide a Win32 implementation of the 'cond' module.
36909         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36910         * lib/glthread/cond.c (glthread_cond_init_func,
36911         glthread_cond_wait_func, glthread_cond_timedwait_func,
36912         glthread_cond_signal_func, glthread_cond_broadcast_func,
36913         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36914         * modules/cond (Dependencies): Add gettimeofday.
36915
36916 2008-10-11  Bruno Haible  <bruno@clisp.org>
36917
36918         Make sleep work on older versions of mingw.
36919         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36920         only whether it exists.
36921         * doc/posix-functions/sleep.texi: Mention the problem with older
36922         versions of mingw.
36923
36924 2008-10-11  Bruno Haible  <bruno@clisp.org>
36925
36926         New module 'shutdown'.
36927         * modules/shutdown: New file.
36928         * lib/sys_socket.in.h (shutdown): New declaration.
36929         * lib/winsock.c (shutdown): New function.
36930         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36931         GNULIB_SHUTDOWN.
36932         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36933         * doc/posix-functions/shutdown.texi: Document the new module.
36934
36935 2008-10-11  Jim Meyering  <meyering@redhat.com>
36936
36937         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36938
36939 2008-10-11  Bruno Haible  <bruno@clisp.org>
36940
36941         New module 'fclose'.
36942         * modules/fclose: New file.
36943         * lib/stdio.in.h (fclose): New declaration.
36944         * lib/fclose.c: New file.
36945         * m4/fclose.m4: New file.
36946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36947         REPLACE_FCLOSE.
36948         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36949         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36950         REPLACE_FCLOSE.
36951         * modules/close (Depends-on): fclose.
36952         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36953
36954 2008-10-11  Bruno Haible  <bruno@clisp.org>
36955
36956         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36957         set errno and don't call _close.
36958
36959 2008-10-10  Bruno Haible  <bruno@clisp.org>
36960
36961         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36962         ACL, not afterwards. Fixes test failure on Cygwin.
36963
36964 2008-10-09  Ben Pfaff  <blp@gnu.org>
36965
36966         * build-aux/announce-gen: Fix gnulib version related part of usage
36967         message.  Die with a useful error message if no tarballs are
36968         found.
36969
36970 2008-10-10  Jim Meyering  <meyering@redhat.com>
36971
36972         bootstrap: use git's --depth=N option only if it's supported
36973         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36974         recognize the --depth option.  Reported by Pádraig Brady.
36975
36976 2008-10-09  Bruno Haible  <bruno@clisp.org>
36977
36978         New module 'ioctl'.
36979         * modules/ioctl: New file.
36980         * lib/sys_socket.in.h (ioctl): Remove declaration.
36981         * lib/winsock.c: Include <sys/ioctl.h>.
36982         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36983         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36984         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36985         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36986         * doc/posix-functions/ioctl.texi: Mention the new module.
36987
36988 2008-10-09  Bruno Haible  <bruno@clisp.org>
36989
36990         New module 'sys_ioctl'.
36991         * lib/sys_ioctl.in.h: New file.
36992         * m4/sys_ioctl_h.m4: New file.
36993         * modules/sys_ioctl: New file.
36994         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36995
36996 2008-10-09  Bruno Haible  <bruno@clisp.org>
36997
36998         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36999         * lib/winsock.c: Include <stdarg.h>.
37000         (rpl_ioctl): Change to second argument 'int' and then varargs.
37001
37002 2008-10-09  Bruno Haible  <bruno@clisp.org>
37003
37004         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37005         when the sys_socket module is present and the system has <winsock2.h>.
37006
37007 2008-10-09  Bruno Haible  <bruno@clisp.org>
37008
37009         * doc/posix-functions/close.texi: Mention module 'close' instead of
37010         module 'sys_socket'.
37011
37012 2008-10-09  Bruno Haible  <bruno@clisp.org>
37013
37014         * doc/glibc-headers/sys_ioctl.texi: New file.
37015         * doc/gnulib.texi: Include it.
37016
37017 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37018             Bruno Haible  <bruno@clisp.org>
37019
37020         Combine the two replacements of 'close'.
37021         * lib/sys_socket.in.h (close): Define to a reminder to include
37022         <unistd.h>.
37023         (_gl_close_fd_maybe_socket): New declaration.
37024         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37025         * lib/winsock.c (close): Remove undefinition.
37026         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37027         needed for the gnulib module 'close'.
37028         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37029         define to an error symbol or to a warning, if suitable.
37030         * lib/close.c: Include <sys/socket.h>.
37031         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37032         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37033         UNISTD_H_HAVE_WINSOCK2_H.
37034         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37036         UNISTD_H_HAVE_WINSOCK2_H.
37037         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37038         (configure.ac): Set a module indicator.
37039         (Makefile.am): Substitute GNULIB_CLOSE.
37040         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37041         * modules/poll-tests (Depends-on): Add close.
37042         * modules/select-tests (Depends-on): Likewise.
37043
37044 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37045             Bruno Haible  <bruno@clisp.org>
37046
37047         New module 'close'.
37048         * modules/close: New file.
37049         * lib/unistd.in.h (close): Move declaration out of the
37050         FCHDIR_REPLACEMENT scope.
37051         (_gl_unregister_fd): New declaration.
37052         * lib/close.c: New file.
37053         * lib/fchdir.c (rpl_close): Remove function.
37054         * m4/close.m4: New file.
37055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37056         close.
37057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37058         REPLACE_CLOSE.
37059         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37060         REPLACE_CLOSE.
37061         * modules/fchdir (Depends-on): Add close.
37062
37063 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37064             Bruno Haible  <bruno@clisp.org>
37065
37066         * lib/fcntl.in.h (open): Simplify conditionals.
37067         (_gl_register_fd): New declaration.
37068         * lib/fchdir.c (rpl_open): Remove function.
37069         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37070         also.
37071         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37073         open.
37074
37075 2008-10-09  Jim Meyering  <meyering@redhat.com>
37076
37077         GNUmakefile: use the more name-space-friendly "_version"
37078         * top/GNUmakefile (_dummy): Update.
37079         (_version): Rename from "version".
37080
37081 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37082             Bruno Haible  <bruno@clisp.org>
37083
37084         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37085         rpl_close.
37086         (_gl_register_fd): New function, extracted from rpl_open.
37087         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37088         (rpl_open, rpl_opendir): Use _gl_register_fd.
37089
37090 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37091
37092         Fix organization of 'open' replacement.
37093         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37094         (gl_FUNC_OPEN): Use it.
37095         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37096
37097 2008-10-08  Bruno Haible  <bruno@clisp.org>
37098
37099         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37100
37101 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37102
37103         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37104         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37105         listen).
37106
37107 2008-10-08  Eric Blake  <ebb9@byu.net>
37108
37109         GNUmakefile: add 'make version' target
37110         * top/GNUmakefile (_curr-ver): Split version update rules...
37111         (version): ...into a target.
37112
37113 2008-10-07  Bruno Haible  <bruno@clisp.org>
37114
37115         Use a more portable replacement expression for -0.0L.
37116         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37117         instead of -0.0L. Fix m4 quotation.
37118
37119         * tests/test-signbit.c: Include <float.h>.
37120         (minus_zero): New variable.
37121         (test_signbitl): Use minus_zero instead of -zero.
37122         * modules/signbit-tests (Depends-on): Add float.
37123
37124         * tests/test-ceill.c: Include <float.h>.
37125         (zero): Remove variable.
37126         (minus_zero): New variable.
37127         (main): Use minus_zero instead of -zero.
37128         * modules/ceill-tests (Depends-on): Add float.
37129
37130         * tests/test-floorl.c: Include <float.h>.
37131         (zero): Remove variable.
37132         (minus_zero): New variable.
37133         (main): Use minus_zero instead of -zero.
37134         * modules/floorl-tests (Depends-on): Add float.
37135
37136         * tests/test-roundl.c: Include <float.h>.
37137         (zero): Remove variable.
37138         (minus_zero): New variable.
37139         (main): Use minus_zero instead of -zero.
37140         * modules/roundl-tests (Depends-on): Add float.
37141
37142         * tests/test-truncl.c: Include <float.h>.
37143         (zero): Remove variable.
37144         (minus_zero): New variable.
37145         (main): Use minus_zero instead of -zero.
37146         * modules/truncl-tests (Depends-on): Add float.
37147
37148         * tests/test-frexpl.c (zero): Remove variable.
37149         (minus_zero): New variable.
37150         (main): Use minus_zero instead of -zero.
37151         * modules/frexpl-tests (Depends-on): Add float.
37152
37153         * tests/test-isnan.c (zerol): Remove variable.
37154         (minus_zerol): New variable.
37155         (test_long_double): Use minus_zerol instead of -zerol.
37156         * modules/isnan-tests (Depends-on): Add float.
37157
37158         * tests/test-isnanl.h (zero): Remove variable.
37159         (minus_zero): New variable.
37160         (main): Use minus_zero instead of -zero.
37161         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37162         * modules/isnanl-tests (Depends-on): Add float.
37163
37164         * tests/test-ldexpl.c (zero): Remove variable.
37165         (minus_zero): New variable.
37166         (main): Use minus_zero instead of -zero.
37167         * modules/ldexpl-tests (Depends-on): Add float.
37168
37169         * tests/test-snprintf-posix.h (zerol): Remove variable.
37170         (minus_zerol): New variable.
37171         (test_function): Use minus_zerol instead of -zerol.
37172         * modules/snprintf-posix-tests (Depends-on): Add float.
37173         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37174
37175         * tests/test-sprintf-posix.h (zerol): Remove variable.
37176         (minus_zerol): New variable.
37177         (test_function): Use minus_zerol instead of -zerol.
37178         * modules/sprintf-posix-tests (Depends-on): Add float.
37179         * modules/vsprintf-posix-tests (Depends-on): Add float.
37180
37181         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37182         (minus_zerol): New variable.
37183         (test_function): Use minus_zerol instead of -zerol.
37184         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37185
37186         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37187         (minus_zerol): New variable.
37188         (test_function): Use minus_zerol instead of -zerol.
37189         * modules/vasprintf-posix-tests (Depends-on): Add float.
37190
37191 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37192
37193         * MODULES.html.sh (Support for building documentation): Mention
37194         pmccabe2html.  Sort entries.
37195
37196         Add pmccabe2html module, from gnupdf.
37197         * build-aux/pmccabe.css: New file.
37198         * build-aux/pmccabe2html: New file.
37199         * m4/pmccabe2html.m4: New file.
37200         * modules/pmccabe2html: New file.
37201
37202 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37203
37204         flock: new module
37205         * MODULES.html.sh: Add to list of modules.
37206         * lib/flock.c: flock implementation for Windows and Unix systems
37207         which have fcntl.
37208         * doc/glibc-functions/flock.texi: Update documentation.
37209         * lib/sys_file.in.h: <sys/file.h> header file.
37210         * m4/flock.m4: M4 macros.
37211         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37212         * modules/flock: flock module.
37213         * modules/flock-tests: flock tests module.
37214         * modules/sys_file: sys/file.h module.
37215         * tests/test-flock.c: test suite for flock.
37216
37217 2008-10-06  Jim Meyering  <meyering@redhat.com>
37218
37219         bootstrap: check for LT_INIT more portably still ;-)
37220         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37221         Spotted by Bruno Haible.
37222
37223 2008-10-06  Eric Blake  <ebb9@byu.net>
37224
37225         test-signbit: avoid tripping Irix cc bug on -0.0L
37226         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37227         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37228         entire testsuite consistent and avoids an Irix 6.2 bug.
37229
37230 2008-10-05  Bruno Haible  <bruno@clisp.org>
37231             Jim Meyering  <jim@meyering.net>
37232
37233         Add an option for ignoring EPIPE during close_stdout.
37234         * lib/closeout.h: Include <stdbool.h>.
37235         (close_stdout_set_ignore_EPIPE): New declaration.
37236         * lib/closeout.c: Include <stdbool.h>.
37237         (ignore_EPIPE): New variable.
37238         (close_stdout_set_ignore_EPIPE): New function.
37239         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37240         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37241         failure.
37242         * modules/closeout (Depends-on): Add stdbool.
37243
37244 2008-10-05  Bruno Haible  <bruno@clisp.org>
37245
37246         * modules/accept: New file.
37247         * modules/bind: New file.
37248         * modules/connect: New file.
37249         * modules/getpeername: New file.
37250         * modules/getsockname: New file.
37251         * modules/getsockopt: New file.
37252         * modules/listen: New file.
37253         * modules/recv: New file.
37254         * modules/recvfrom: New file.
37255         * modules/send: New file.
37256         * modules/sendto: New file.
37257         * modules/setsockopt: New file.
37258         * modules/socket: New file.
37259         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37260         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37261         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37262         the particular module is requested. Add a link warning when the
37263         particular module is not requested.
37264         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37265         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37266         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37267         the particular module is requested.
37268         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37269         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37270         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37271         * modules/sys_socket (Depends-on): Add link-warning.
37272         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37273         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37274         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37275         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37276         GL_LINK_WARNING.
37277         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37278         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37279         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37280         * doc/posix-functions/getpeername.texi: Mention the new module
37281         'getpeername'.
37282         * doc/posix-functions/getsockname.texi: Mention the new module
37283         'getsockname'.
37284         * doc/posix-functions/getsockopt.texi: Mention the new module
37285         'getsockopt'.
37286         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37287         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37288         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37289         * doc/posix-functions/send.texi: Mention the new module 'send'.
37290         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37291         * doc/posix-functions/setsockopt.texi: Mention the new module
37292         'setsockopt'.
37293         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37294         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37295         listen, connect, accept.
37296         * modules/select-tests (Depends-on): Likewise.
37297
37298 2008-10-05  Bruno Haible  <bruno@clisp.org>
37299
37300         * lib/winsock.c (strerror): Remove unused #undef.
37301         (rpl_close): Remove unused local variable.
37302
37303         * modules/sys_socket (Depends-on); Add errno.
37304
37305 2008-10-05  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37308         (select): Add a link warning when the 'select' module is not used.
37309         * modules/sys_select (Depends-on): Add link-warning.
37310         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37311         Suggested by Paolo Bonzini.
37312
37313 2008-10-05  Jim Meyering  <meyering@redhat.com>
37314
37315         bootstrap: check for LT_INIT more portably
37316         * build-aux/bootstrap: Avoid using grep -E, since it's not
37317         portable enough.  Suggestion from Bruno Haible.
37318
37319 2008-10-05  Bruno Haible  <bruno@clisp.org>
37320
37321         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37322         as being fixed by gnulib.
37323
37324 2008-10-05  Bruno Haible  <bruno@clisp.org>
37325
37326         * modules/select-tests: New file, mostly copied from
37327         modules/sys_select-tests.
37328         * tests/test-select.c: New file, mostly copied from
37329         tests/test-sys_select.c.
37330         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37331         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37332         (Makefile.am): Remove test_sys_select_LDADD.
37333
37334         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37335         to an undefined symbol, for an error message.
37336         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37337         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37338         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37339         winsock-select.c here.
37340         * modules/sys_select (Files): Remove lib/winsock-select.c.
37341         (Depends-on): Remove alloca.
37342         (Makefile.am): Substitute GNULIB_SELECT.
37343         * modules/select: New file.
37344         * doc/posix-functions/select.texi: Update.
37345
37346 2008-10-05  Bruno Haible  <bruno@clisp.org>
37347
37348         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37349         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37350         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37351         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37352         getdtablesize.
37353         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37354         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37355
37356 2008-10-05  Bruno Haible  <bruno@clisp.org>
37357
37358         * modules/getdtablesize-tests: New file.
37359         * tests/test-getdtablesize.c: New file.
37360
37361         New module 'getdtablesize'.
37362         * lib/unistd.in.h (getdtablesize): New declaration.
37363         * lib/getdtablesize.c: New file.
37364         * m4/getdtablesize.m4: New file.
37365         * modules/getdtablesize: New file.
37366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37367         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37368         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37369         HAVE_GETDTABLESIZE.
37370         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37371
37372 2008-10-05  Bruno Haible  <bruno@clisp.org>
37373
37374         * modules/sched (Makefile.am): Fix typo.
37375         Reported by Simon Josefsson.
37376
37377 2008-10-05  Jim Meyering  <meyering@redhat.com>
37378
37379         bootstrap: check for LT_INIT, too
37380         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37381         are deprecated.  Suggestion from Ralf Wildenhues.
37382
37383 2008-10-05  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37386         overriding them by ours.
37387         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37388
37389 2008-10-05  Jim Meyering  <meyering@redhat.com>
37390
37391         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37392         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37393         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37394
37395 2008-10-04  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/dup2 (License): Change to LGPLv2+.
37398         * modules/sleep (License): Likewise.
37399         * modules/perror (License): Likewise.
37400         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37401         Blake.
37402         * modules/signal (License): Likewise.
37403         * modules/sigprocmask (License): Likewise.
37404         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37405         Meyering.
37406
37407 2008-10-04  Bruno Haible  <bruno@clisp.org>
37408
37409         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37410         Reported by Rainer Tammer <tammer@tammer.net>.
37411
37412 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37413             Bruno Haible  <bruno@clisp.org>
37414
37415         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37416         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37417         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37418
37419 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37420
37421         filevercmp: new module
37422         * lib/filevercmp.h: New function filevercmp comparing version strings.
37423         * lib/filevercmp.c: Implementation of filevercmp function.
37424         * modules/filevercmp: Module metadata.
37425         * tests/test-filevercmp.c: Unit test for new module.
37426         * modules/filevercmp-tests: Unit test metadata.
37427         * MODULES.html.sh: Add filevercmp module.
37428
37429 2008-10-03  Bruno Haible  <bruno@clisp.org>
37430
37431         * lib/c-ctype.h: Add comment.
37432         Reported by Jim Meyering.
37433
37434 2008-10-02  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37437
37438 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37439
37440         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37441         name of bootstrap.conf accordingly.
37442
37443 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37444
37445         * build-aux/bootstrap: Install git-merge-changelog configuration
37446         items into .gitconfig if needed.
37447
37448 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37449
37450         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37451         git repository, and initialize/update it accordingly.
37452
37453 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37454
37455         * modules/fsync-tests: New file.
37456         * tests/test-fsync.c: New file.
37457
37458         New module 'fsync'.
37459         * lib/fsync.c: New file.
37460         * m4/fsync.m4: New file.
37461         * modules/fsync: New file.
37462         * lib/unistd.in.h (fsync): New declaration.
37463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37464         GNULIB_FSYNC and HAVE_FSYNC.
37465         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37466         * MODULES.html.sh (posix_functions): Add fsync.
37467         * doc/posix-functions/fsync.texi: Mention the new module.
37468
37469 2008-10-02  Jim Meyering  <meyering@redhat.com>
37470
37471         fts.c: sync with similar code from coreutils' remove.c
37472         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37473         Guard also with "#if defined __linux__", since for now at least,
37474         this code is Linux-kernel-specific.
37475
37476 2008-10-02  Jim Meyering  <meyering@redhat.com>
37477
37478         fts: bug fixes
37479         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37480         Include <sys/vfs.h>, not <sys/statfs.h>.
37481
37482         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37483         Include <sys/vfs.h>, not <sys/statfs.h>.
37484
37485 2008-10-01  Bruno Haible  <bruno@clisp.org>
37486
37487         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37488         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37489         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37490         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37491         * doc/posix-functions/posix_spawnp.texi: Likewise.
37492         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37493         whether posix_spawn actually works.
37494         * m4/pipe.m4 (gl_PIPE): Likewise.
37495         * modules/execute (Files): Add m4/posix_spawn.m4.
37496         * modules/pipe (Files): Add m4/posix_spawn.m4.
37497         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37498
37499 2008-10-01  Jim Meyering  <meyering@redhat.com>
37500
37501         remove trailing spaces
37502         * NEWS: Likewise.
37503         * lib/poll.c (poll): Likewise.
37504         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37505         * lib/winsock.c (rpl_close): Likewise.
37506         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37507         * modules/yield: Likewise.
37508         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37509         * tests/test-sys_select.c (connect_to_socket): Likewise.
37510
37511         fts.c: adjust a new interface to be more generally useful
37512         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37513         (fts_build): Adjust caller.
37514
37515 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37516
37517         * modules/cond-tests: New file.
37518         * tests/test-cond.c: New file.
37519
37520 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37521             Bruno Haible  <bruno@clisp.org>
37522
37523         * modules/cond (Dependencies): Add errno, time.
37524         * lib/glthread/cond.h: Include <time.h>.
37525         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37526         across platforms.
37527
37528 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37529             Bruno Haible  <bruno@clisp.org>
37530
37531         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37532
37533 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37534             Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/tls-tests (Depends-on): Add thread, yield.
37537         (configure.ac): Remove all checks.
37538         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37539         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37540         gl_thread_self): Remove definitions. Include glthread/thread.h and
37541         glthread/yield.h instead.
37542         (test_tls): Pass an additional NULL argument to gl_thread_join.
37543
37544 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37545             Bruno Haible  <bruno@clisp.org>
37546
37547         * modules/lock-tests (Depends-on): Add thread, yield.
37548         (configure.ac): Remove all checks.
37549         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37550         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37551         gl_thread_self): Remove definitions. Include glthread/thread.h and
37552         glthread/yield.h instead.
37553         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37554         additional NULL argument to gl_thread_join.
37555
37556 2008-09-30  Bruno Haible  <bruno@clisp.org>
37557
37558         Fix the Win32 implementation of the 'thread' module.
37559         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37560         pointer type.
37561         (gl_thread_self): Invoke gl_thread_self_func.
37562         (gl_thread_self_func): New declaration.
37563         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37564         (do_init_self_key, init_self_key): New functions.
37565         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37566         Remove some fields.
37567         (running_threads, running_lock): Remove variables.
37568         (get_current_thread_handle): New function.
37569         (gl_thread_self_func, wrapper_func, glthread_create_func,
37570         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37571         simplified.
37572
37573 2008-09-30  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37576         files.
37577
37578 2008-09-30  Jim Meyering  <meyering@redhat.com>
37579
37580         fts.m4: correct the test for statfs.f_type
37581         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37582         when checking for statfs.f_type.
37583
37584 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37585
37586         tests: avoid some compiler warnings
37587         * tests/test-memchr.c (main): Pass NULL indirectly.
37588         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37589
37590 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37591
37592         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37593         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37594         exactly specified dayshifts.
37595         (dayshift): New rule.
37596         (rel): Add dayshift.
37597         (relative_time_table) [tomorrow, yesterday, today, now]:
37598         Use tDAY_SHIFT in place of tDAY_UNIT.
37599         * tests/test-getdate.c: Add tests for now-disallowed countable
37600         dayshifts, e.g., "4 yesterday ago".
37601
37602 2008-09-29  Bruno Haible  <bruno@clisp.org>
37603
37604         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37605         * tests/test-posix_spawn1.in.sh: Renamed from
37606         tests/test-posix_spawn.in.sh.
37607         * tests/test-posix_spawn2.c: New file.
37608         * tests/test-posix_spawn2.in.sh: New file.
37609         * modules/posix_spawnp-tests (Files): Update.
37610         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37611
37612 2008-09-29  Bruno Haible  <bruno@clisp.org>
37613
37614         Propagate effects of putenv/setenv/unsetenv to child processes.
37615         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37616         * lib/pipe.c (create_pipe): Likewise.
37617
37618 2008-09-29  Bruno Haible  <bruno@clisp.org>
37619
37620         Enable use of shell scripts as executables in mingw.
37621         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37622         run the program as a shell script.
37623         * lib/pipe.c (create_pipe): Likewise.
37624         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37625         resulting array.
37626
37627 2008-09-29  Eric Blake  <ebb9@byu.net>
37628
37629         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37630
37631 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37632
37633         * doc/posix-functions/accept.texi: Update mingw problems.
37634         * doc/posix-functions/bind.texi: Update mingw problems.
37635         * doc/posix-functions/close.texi: Update mingw problems.
37636         * doc/posix-functions/connect.texi: Update mingw problems.
37637         * doc/posix-functions/getpeername.texi: Update mingw problems.
37638         * doc/posix-functions/getsockname.texi: Update mingw problems.
37639         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37640         * doc/posix-functions/ioctl.texi: Update mingw problems.
37641         * doc/posix-functions/listen.texi: Update mingw problems.
37642         * doc/posix-functions/recv.texi: Update mingw problems.
37643         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37644         * doc/posix-functions/select.texi: Update mingw problems.
37645         * doc/posix-functions/send.texi: Update mingw problems.
37646         * doc/posix-functions/sendto.texi: Update mingw problems.
37647         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37648         * doc/posix-functions/socket.texi: Update mingw problems.
37649
37650 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37651             Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/sys_select.in.h: Include sys/time.h.
37654         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37655         * modules/sys_select: Depend on sys_time.
37656         * tests/test-sys_select.c: Test that sys/select.h defines struct
37657         timeval fully.
37658
37659 2008-09-29  Bruno Haible  <bruno@clisp.org>
37660
37661         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37662         * lib/sys_select.in.h: Likewise.
37663
37664 2008-09-29  Bruno Haible  <bruno@clisp.org>
37665
37666         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37667
37668 2008-09-29  Bruno Haible  <bruno@clisp.org>
37669
37670         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37671         Set LIBSOCKET instead of augmenting LIBS.
37672         * modules/sockets (Link): New section.
37673         * modules/sockets-tests (test_sockets_LDADD): New variable.
37674         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37675         * modules/poll-tests (test_poll_LDADD): New variable.
37676         * NEWS: Document the change.
37677
37678 2008-09-29  Bruno Haible  <bruno@clisp.org>
37679
37680         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37681         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37682         ARPA_INET_H directly.
37683         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37684
37685 2008-09-28  Bruno Haible  <bruno@clisp.org>
37686
37687         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37688         from gl_HEADER_SYS_SOCKET.
37689         (gl_HEADER_SYS_SOCKET): Invoke it.
37690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37691
37692 2008-09-28  Bruno Haible  <bruno@clisp.org>
37693
37694         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37695         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37696         Needed on OSF/1 4.0.
37697
37698 2008-09-28  Bruno Haible  <bruno@clisp.org>
37699
37700         Override open more carefully.
37701         * lib/open.c (orig_open): New function.
37702         (rpl_open): Use orig_open instead of open.
37703         * lib/fcntl.in.h: Add special invocation convention.
37704         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37705         (gl_FUNC_OPEN): Invoke it.
37706
37707         Override freopen more carefully.
37708         * lib/freopen.c (orig_freopen): New function.
37709         (rpl_freopen): Use orig_freopen instead of freopen.
37710         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37711         (gl_FUNC_FREOPEN): Invoke it.
37712
37713         Override fopen more carefully.
37714         * lib/fopen.c (orig_fopen): New function.
37715         (rpl_fopen): Use orig_fopen instead of fopen.
37716         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37717         (gl_FUNC_FOPEN): Invoke it.
37718         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37719
37720 2008-09-28  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37723         SIGPIPE.
37724
37725 2008-09-28  Bruno Haible  <bruno@clisp.org>
37726
37727         * tests/test-sigaction.c (handler, main): Disable the check whether
37728         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37729         glibc systems with LinuxThreads.
37730
37731 2008-09-28  Bruno Haible  <bruno@clisp.org>
37732
37733         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37734
37735         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37736         with AIX xlc.
37737         * lib/fcntl.in.h (open): Likewise.
37738         Reported by Rainer Tammer <tammer@tammer.net>.
37739
37740 2008-09-28  Bruno Haible  <bruno@clisp.org>
37741
37742         * modules/posix_spawnp-tests: New file.
37743         * tests/test-posix_spawn.c: New file.
37744         * tests/test-posix_spawn.in.sh: New file.
37745
37746         New module 'posix_spawnp'.
37747         * modules/posix_spawnp: New file.
37748         * lib/spawnp.c: New file, from GNU libc with modifications.
37749         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37750
37751         New module 'posix_spawn'.
37752         * modules/posix_spawn: New file.
37753         * lib/spawn.c: New file, from GNU libc with modifications.
37754         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37755
37756         New module 'posix_spawnattr_destroy'.
37757         * modules/posix_spawnattr_destroy: New file.
37758         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37759         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37760         module.
37761
37762         New module 'posix_spawnattr_setsigmask'.
37763         * modules/posix_spawnattr_setsigmask: New file.
37764         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37765         modifications.
37766         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37767         new module.
37768
37769         New module 'posix_spawnattr_getsigmask'.
37770         * modules/posix_spawnattr_getsigmask: New file.
37771         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37772         modifications.
37773         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37774         new module.
37775
37776         New module 'posix_spawnattr_setsigdefault'.
37777         * modules/posix_spawnattr_setsigdefault: New file.
37778         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37779         modifications.
37780         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37781         new module.
37782
37783         New module 'posix_spawnattr_getsigdefault'.
37784         * modules/posix_spawnattr_getsigdefault: New file.
37785         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37786         modifications.
37787         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37788         new module.
37789
37790         New module 'posix_spawnattr_setschedpolicy'.
37791         * modules/posix_spawnattr_setschedpolicy: New file.
37792         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37793         modifications.
37794         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37795         new module.
37796
37797         New module 'posix_spawnattr_getschedpolicy'.
37798         * modules/posix_spawnattr_getschedpolicy: New file.
37799         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37800         modifications.
37801         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37802         new module.
37803
37804         New module 'posix_spawnattr_setschedparam'.
37805         * modules/posix_spawnattr_setschedparam: New file.
37806         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37807         modifications.
37808         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37809         new module.
37810
37811         New module 'posix_spawnattr_getschedparam'.
37812         * modules/posix_spawnattr_getschedparam: New file.
37813         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37814         modifications.
37815         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37816         new module.
37817
37818         New module 'posix_spawnattr_setpgroup'.
37819         * modules/posix_spawnattr_setpgroup: New file.
37820         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37821         modifications.
37822         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37823         module.
37824
37825         New module 'posix_spawnattr_getpgroup'.
37826         * modules/posix_spawnattr_getpgroup: New file.
37827         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37828         modifications.
37829         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37830         module.
37831
37832         New module 'posix_spawnattr_setflags'.
37833         * modules/posix_spawnattr_setflags: New file.
37834         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37835         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37836         module.
37837
37838         New module 'posix_spawnattr_getflags'.
37839         * modules/posix_spawnattr_getflags: New file.
37840         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37841         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37842         module.
37843
37844         New module 'posix_spawnattr_init'.
37845         * modules/posix_spawnattr_init: New file.
37846         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37847         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37848         module.
37849
37850         New module 'posix_spawn_file_actions_destroy'.
37851         * modules/posix_spawn_file_actions_destroy: New file.
37852         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37853         modifications.
37854         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37855         the new module.
37856
37857         New module 'posix_spawn_file_actions_addopen'.
37858         * modules/posix_spawn_file_actions_addopen: New file.
37859         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37860         modifications.
37861         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37862         the new module.
37863
37864         New module 'posix_spawn_file_actions_adddup2'.
37865         * modules/posix_spawn_file_actions_adddup2: New file.
37866         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37867         modifications.
37868         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37869         the new module.
37870
37871         New module 'posix_spawn_file_actions_addclose'.
37872         * modules/posix_spawn_file_actions_addclose: New file.
37873         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37874         modifications.
37875         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37876         the new module.
37877
37878         New module 'posix_spawn_file_actions_init'.
37879         * modules/posix_spawn_file_actions_init: New file.
37880         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37881         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37882         new module.
37883
37884         New module 'posix_spawn-internal'.
37885         * modules/posix_spawn-internal: New file.
37886         * lib/spawn_int.h: New file, from GNU libc with modifications.
37887         * lib/spawni.c: New file, from GNU libc with modifications.
37888         * m4/posix_spawn.m4: New file.
37889
37890         New module 'spawn'.
37891         * modules/spawn: New file.
37892         * lib/spawn.in.h: New file, from GNU libc with modifications.
37893         * m4/spawn_h.m4: New file.
37894         * doc/posix-headers/spawn.texi: Mention the new module.
37895
37896 2008-09-28  Bruno Haible  <bruno@clisp.org>
37897
37898         * modules/sched-tests: New file.
37899         * tests/test-sched.c: New file.
37900
37901         New module 'sched'.
37902         * modules/sched: New file.
37903         * lib/sched.in.h: New file.
37904         * m4/sched_h.m4: New file.
37905         * doc/posix-headers/sched.texi: Mention the new module.
37906
37907 2008-09-27  Eric Blake  <ebb9@byu.net>
37908
37909         Fix previous patch, and tweak references to $0.
37910         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37911         (func_version, func_gnulib_dir): Don't call this program
37912         gnulib-tool.
37913         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37914         with using $0 in function.
37915         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37916         (func_fatal_error): Reuse the name the user invoked us with.
37917
37918 2008-09-27  Bruno Haible  <bruno@clisp.org>
37919
37920         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37921         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37922         (gl_ICONV_H): Not here.
37923         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37924         instead of assigning ICONV_H directly.
37925
37926         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37928         WCHAR_H directly.
37929
37930 2008-09-27  Bruno Haible  <bruno@clisp.org>
37931
37932         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37933         * modules/arpa_inet (Depends-on): Add link-warning.
37934         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37935         * modules/unistd (Makefile.am): Likewise.
37936
37937 2008-09-26  Bruno Haible  <bruno@clisp.org>
37938
37939         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37940         variables.
37941         (func_version): Essentially copied from gnulib-tool.
37942         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37943         func_readlink): Copied from gnulib-tool.
37944
37945 2008-09-26  Bruno Haible  <bruno@clisp.org>
37946
37947         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37948         invoking git-version-gen.
37949
37950 2008-09-26  Bruno Haible  <bruno@clisp.org>
37951
37952         * posix-modules: Update to directory names changed on 2008-01-19.
37953         Remove commas in output before splitting into words. No more need to
37954         avoid 'ftruncate' since 2007-02-19.
37955
37956 2008-09-26  Bruno Haible  <bruno@clisp.org>
37957
37958         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37959
37960 2008-09-26  Bruno Haible  <bruno@clisp.org>
37961
37962         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37963         * modules/fwriteerror (Depends-on): Add errno.
37964
37965 2008-09-26  Bruno Haible  <bruno@clisp.org>
37966
37967         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37968         * tests/test-vc-list-files-cvs.sh: Likewise.
37969
37970 2008-09-26  Bruno Haible  <bruno@clisp.org>
37971
37972         * doc/posix-headers/sys_resource.texi: Reorder items.
37973
37974 2008-09-26  Jim Meyering  <meyering@redhat.com>
37975
37976         fts: tweak inode comparison function
37977         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37978         inode numbers, as documented.
37979
37980         fts: sort dirent entries on inode number before traversing
37981         This avoids a quadratic, seek-related performance penalty when
37982         operating on a directory containing many entries (measurable at 10k;
37983         3.5 hours at 2 million entries with a cold cache) on certain types
37984         of file systems, including ext3 and ext4, but not tmpfs.
37985         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37986         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37987         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37988         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37989         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37990         (fts_build): Set the stat.st_ino member from D_INO.
37991         If it is likely to be useful, sort dirent entries on inode number.
37992
37993         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37994         and the struct statfs.f_type member.
37995         * modules/fts (Depends-on): Add d-ino.
37996
37997 2008-09-26  Bruno Haible  <bruno@clisp.org>
37998
37999         * modules/sigpipe-die (Depends-on): Add sigpipe.
38000
38001         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38002         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38003         and GNULIB_STDIO_H_SIGPIPE are set.
38004         * lib/stdio-write.c: New file.
38005         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38006         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38007         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38008         REPLACE_STDIO_WRITE_FUNCS.
38009         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38010         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38011         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38012         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38013         * modules/stdio (Files): Add lib/stdio-write.c.
38014         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38015         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38016         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38017         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38018         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38019         REPLACE_FPRINTF_POSIX.
38020         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38021         REPLACE_PRINTF_POSIX.
38022         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38023         REPLACE_VFPRINTF_POSIX.
38024         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38025         REPLACE_VPRINTF_POSIX.
38026         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38027         SIGPIPE issue.
38028         * doc/posix-functions/fputc.texi: Likewise.
38029         * doc/posix-functions/fputs.texi: Likewise.
38030         * doc/posix-functions/fwrite.texi: Likewise.
38031         * doc/posix-functions/printf.texi: Likewise.
38032         * doc/posix-functions/putc.texi: Likewise.
38033         * doc/posix-functions/putchar.texi: Likewise.
38034         * doc/posix-functions/puts.texi: Likewise.
38035         * doc/posix-functions/vfprintf.texi: Likewise.
38036         * doc/posix-functions/vprintf.texi: Likewise.
38037
38038         * modules/safe-write (Depends-on): Add write.
38039
38040         * modules/sigpipe-tests: New file.
38041         * tests/test-sigpipe.c: New file.
38042         * tests/test-sigpipe.sh: New file.
38043
38044         * modules/write: New file.
38045         * lib/unistd.in.h: Include <sys/types.h>.
38046         (write): New declaration.
38047         * lib/write.c: New file.
38048         * m4/write.m4: New file.
38049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38050         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38051         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38052         GNULIB_WRITE, REPLACE_WRITE.
38053         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38054         and the SIGPIPE issue.
38055
38056         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38057         (raise): New declaration.
38058         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38059         (ext_signal): New function.
38060         (rpl_raise): New function.
38061         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38062         GNULIB_SIGNAL_H_SIGPIPE.
38063         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38064         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38065
38066         * modules/sigpipe: New file.
38067         * m4/sigpipe.m4: New file.
38068
38069 2008-09-25  Derek Price  <derek@ximbiot.com>
38070             Bruno Haible  <bruno@clisp.org>
38071
38072         * gnulib-tool (func_import): Report all license incompatibilities, not
38073         just the first one.
38074
38075 2008-09-25  Bruno Haible  <bruno@clisp.org>
38076
38077         * gnulib-tool (func_import): When computing the edits, consider not
38078         only the Makefile.ams that exist but also those that will be generated.
38079
38080 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38081
38082         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38083         fixes gnulib-tool --test warning about duplicate dependency.
38084
38085 2008-09-25  Bruno Haible  <bruno@clisp.org>
38086
38087         * gnulib-tool: Don't ask the user to perform edits in the generated
38088         Makefile.ams.
38089         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38090         apply to the Makefile.am being generated.
38091         (func_emit_tests_Makefile_am): Execute edits that apply to the
38092         Makefile.am being generated.
38093         (func_import): Setup list of Makefile.am edits before emitting the
38094         Makefile.ams, not at the end.
38095         (func_create_testdir): Update.
38096         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38097
38098 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38099
38100         * gnulib-tool (func_import): Store the --tests-base option in the
38101         comment in gnulib-cache.m4.
38102
38103 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38104
38105         * NEWS: Document increased portability that sys_select now provides.
38106
38107         * lib/sys_select.in.h: Install select wrapper.
38108         * lib/sys_socket.in.h: Use more descriptive name when there is no
38109         select wrapper.
38110         * lib/winsock-select.c: New.
38111         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38112         Require gl_HEADER_SYS_SOCKET.
38113         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38114         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38115         * tests/test-sys_select.c: Add functional tests.
38116
38117 2008-09-24  Eric Blake  <ebb9@byu.net>
38118
38119         open, fopen: close fd leak in last patch
38120         * lib/open.c (rpl_open): Close fd before returning error.
38121         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38122         * doc/posix-functions/open.texi (open): Document that Irix also
38123         has the bug.
38124         * doc/posix-functions/fopen.texi (fopen): Likewise.
38125         Reported by Paolo Bonzini.
38126
38127 2008-09-24  Bruno Haible  <bruno@clisp.org>
38128
38129         Ensure that a filename ending in a slash cannot be used to access a
38130         non-directory.
38131         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38132         to check whether it's really a directory.
38133         * lib/fopen.c: Include fcntl.h, unistd.h.
38134         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38135         and fdopen().
38136         * modules/fopen (Depends-on): Add unistd.
38137         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38138         * tests/test-fopen.c (main): Likewise.
38139         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38140         * doc/posix-functions/fopen.texi: Likewise.
38141         Reported by Eric Blake.
38142
38143 2008-09-23  Eric Blake  <ebb9@byu.net>
38144
38145         c-stack: avoid compiler optimizations when provoking overflow
38146         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38147         recursion harder to optimize, to ensure a stack overflow occurs.
38148         * tests/test-c-stack.c (recurse): Likewise.
38149         Borrowed from libsigsegv.
38150
38151         c-stack: work around Irix sigaltstack bug
38152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38153         whether sigaltstack uses wrong end of stack_t (copied in part from
38154         libsigsegv).
38155         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38156         Irix bug, without requiring an over-allocation.
38157         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38158         bug.
38159
38160         fopen: document mingw bug on directories
38161         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38162         not allowing a stream visiting a directory, even though reading
38163         from such a stream is not portable.
38164
38165 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38166
38167         * lib/poll.c: Rewrite.
38168         * modules/poll: Depend on alloca.
38169
38170 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38171
38172         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38173         instead define prototypes for a full set of wrappers.  Ensure
38174         that Cygwin does not use the compatibility code, which is only
38175         for MinGW.
38176         * lib/winsock.c: New.
38177         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38178         * modules/sys_socket: Add lib/winsock.c.
38179
38180         * modules/poll-tests: Add errno and perror.
38181         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38182
38183 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38184
38185         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38186
38187 2008-09-23  Bruno Haible  <bruno@clisp.org>
38188
38189         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38190         * doc/glibc-functions/*: Likewise.
38191
38192 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38193
38194         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38195         success.
38196
38197 2008-09-22  Eric Blake  <ebb9@byu.net>
38198             Bruno Haible  <bruno@clisp.org>
38199
38200         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38201         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38202         supply %A but mishandle pseudo-NaN.
38203         Reported by Simon Josefsson.
38204
38205 2008-09-21  Bruno Haible  <bruno@clisp.org>
38206
38207         * tests/test-lock.c (main): Tweak skip message.
38208         * tests/test-tls.c (main): Likewise.
38209
38210 2008-09-21  Bruno Haible  <bruno@clisp.org>
38211
38212         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38213         whether 'struct sigaction' has sa_sigaction here...
38214         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38215         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38216
38217 2008-09-21  Bruno Haible  <bruno@clisp.org>
38218
38219         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38220         section.
38221         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38222         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38223         the new section.
38224         (Support for obsolete systems lacking POSIX:2001): New section.
38225         (String handling <string.h>): Move strdup to the new section.
38226         Suggested by Simon Josefsson and Paolo Bonzini.
38227
38228 2008-09-21  Bruno Haible  <bruno@clisp.org>
38229
38230         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38231         exponents in %e and %g results on 'long double'. Needed for mingw's
38232         improved *printf functions.
38233         * tests/test-vasprintf-posix.c (test_function): Likewise.
38234         * tests/test-snprintf-posix.h (test_function): Likewise.
38235         * tests/test-sprintf-posix.h (test_function): Likewise.
38236         Reported by Eric Blake.
38237
38238 2008-09-21  Bruno Haible  <bruno@clisp.org>
38239
38240         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38241         * tests/test-sprintf-posix.h (test_function): Likewise.
38242
38243 2008-09-21  Bruno Haible  <bruno@clisp.org>
38244
38245         * modules/getpass (Depends-on): Add strdup-posix.
38246
38247         New module 'strdup-posix'.
38248         * modules/strdup-posix: New file.
38249         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38250         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38252         REPLACE_STRDUP.
38253         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38254         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38256         strdup-posix.
38257
38258         * modules/strdup (Depends-on): Remove malloc-posix.
38259
38260 2008-09-20  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38263         Wildenhues.
38264
38265 2008-09-20  Bruno Haible  <bruno@clisp.org>
38266
38267         Ensure that wint_t gets defined on IRIX 5.3.
38268         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38269         * lib/wctype.in.h (wint_t): Likewise.
38270         (__wctype_wint_t): Remove type.
38271         (isw*): Use wint_t instead of __wctype_wint_t.
38272         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38273         * modules/wchar (Files): Add m4/wint_t.m4.
38274         (Makefile.am): Substitute HAVE_WINT_T.
38275         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38276         * tests/test-wctype.c: Check that wint_t is defined.
38277         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38278         * doc/posix-headers/wctype.texi: Likewise.
38279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38280
38281 2008-09-18  Bruno Haible  <bruno@clisp.org>
38282
38283         * gnulib-tool (func_exit): Update comment.
38284
38285 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38286
38287         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38288         assumes strdup exists and does not depend on strdup to return
38289         ENOMEM on out of memory conditions.
38290
38291 2008-09-18  Bruno Haible  <bruno@clisp.org>
38292
38293         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38294         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38295         digits for the exponent.
38296
38297 2008-09-18  Jim Meyering  <meyering@redhat.com>
38298             Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/vasnprintf.c (decimal_point_char): Define also if
38301         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38302
38303 2008-09-16  Bruno Haible  <bruno@clisp.org>
38304         and Eric Blake  <ebb9@byu.net>
38305
38306         vasnprintf: support Irix 5.3
38307         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38308         that mishandle long double infinity.
38309         Reported by Tom G. Christensen.
38310
38311 2008-09-16  Bruno Haible  <bruno@clisp.org>
38312
38313         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38314         Solaris 9.
38315         * doc/glibc-functions/alphasort.texi: Likewise.
38316         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38317
38318 2008-09-16  Jim Meyering  <meyering@redhat.com>
38319
38320         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38321         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38322         a umask modification leak out of a subshell.  Otherwise, the
38323         opensolaris /bin/sh would be accepted and thus cause unwarranted
38324         failures in the coreutils test suite.
38325
38326 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38327
38328         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38329         to succeed.
38330
38331 2008-09-16  Jim Meyering  <meyering@redhat.com>
38332
38333         avoid spurious test failure when library is built without ACL support
38334         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38335         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38336         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38337         * tests/test-copy-acl.sh: Likewise.
38338
38339 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38340
38341         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38342         based on character occurrence counts.
38343
38344 2008-09-15  Eric Blake  <ebb9@byu.net>
38345
38346         tests: avoid some compiler warnings
38347         * tests/test-memchr.c (main): Pass NULL indirectly.
38348         * tests/test-closein.c (main): Avoid unused variable.
38349
38350 2008-09-15  Bruno Haible  <bruno@clisp.org>
38351
38352         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38353         are missing on OpenBSD 4.0 individually.
38354         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38355
38356 2008-09-15  Bruno Haible  <bruno@clisp.org>
38357
38358         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38359         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38360         * doc/posix-functions/perror.texi: Likewise.
38361         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38362         is missing.
38363         Reported by Eric Blake.
38364
38365         * lib/errno.in.h: Use replacement values >= 2000.
38366         Reported by Eric Blake.
38367
38368 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38369
38370         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38371         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38372         limit.
38373         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38374         compareseq was aborted.
38375
38376 2008-09-14  Bruno Haible  <bruno@clisp.org>
38377
38378         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38379         yvec_edit_count.
38380         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38381         (fstrcmp_bounded): Simplify result computation accordingly.
38382
38383 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38384
38385         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38386         (fstrcmp): Define in terms of fstrcmp_bounded.
38387         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38388         lower_bound argument.
38389         Return quickly if the result is certainly < lower_bound.
38390         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38391
38392 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38393
38394         * lib/diffseq.h (EARLY_ABORT): New macro.
38395         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38396         evaluates to true.
38397
38398 2008-09-14  Bruno Haible  <bruno@clisp.org>
38399
38400         * modules/perror-tests: New file.
38401         * tests/test-perror.sh: New file.
38402         * tests/test-perror.c: New file.
38403
38404         New module 'perror'.
38405         * lib/stdio.in.h (perror): New declaration.
38406         * lib/perror.c: New file.
38407         * m4/perror.m4: New file.
38408         * modules/perror: New file.
38409         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38410         * doc/posix-functions/perror.texi: Mention the perror module.
38411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38412         REPLACE_PERROR.
38413         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38414         REPLACE_PERROR.
38415
38416 2008-09-14  Bruno Haible  <bruno@clisp.org>
38417
38418         * modules/stdio (Makefile.am): Reorder to match the order in
38419         lib/stdio.in.h.
38420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38421
38422 2008-09-13  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38425
38426 2008-09-13  Bruno Haible  <bruno@clisp.org>
38427
38428         Extend strerror to cover the added errno values.
38429         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38430         (rpl_strerror): Provide error messages for the added errno values and
38431         for the WSA* values.
38432         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38433         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38434         strerror.
38435         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38436         * modules/strerror (Depends-on): Add errno.
38437         * doc/posix-functions/strerror.texi: Document the change.
38438         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38439         and EOVERFLOW.
38440
38441 2008-09-13  Bruno Haible  <bruno@clisp.org>
38442
38443         * modules/EOVERFLOW: Remove file.
38444         * m4/eoverflow.m4: Remove file.
38445         * modules/EOVERFLOW-tests: Remove file.
38446         * tests/test-EOVERFLOW.c: Remove file.
38447         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38448         * modules/ftell (Depends-on): Likewise.
38449         * modules/getdelim (Depends-on): Likewise.
38450         * modules/getugroups (Depends-on): Likewise.
38451         * modules/poll (Depends-on): Likewise.
38452         * modules/snprintf (Depends-on): Likewise.
38453         * modules/sprintf-posix (Depends-on): Likewise.
38454         * modules/vasnprintf (Depends-on): Likewise.
38455         * modules/vasprintf (Depends-on): Likewise.
38456         * modules/vfprintf-posix (Depends-on): Likewise.
38457         * modules/vsnprintf (Depends-on): Likewise.
38458         * modules/vsprintf-posix (Depends-on): Likewise.
38459         * modules/xvasprintf (Depends-on): Likewise.
38460         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38461         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38462         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38463         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38464         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38465         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38466         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38467         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38468         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38469         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38470         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38471         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38472         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38473         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38474         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38475         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38476         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38477         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38478         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38479         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38480         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38481         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38482         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38483         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38484         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38485         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38486         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38487         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38488         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38489         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38490         * MODULES.html.sh: Remove EOVERFLOW.
38491         * NEWS: Mention the change.
38492
38493 2008-09-13  Bruno Haible  <bruno@clisp.org>
38494
38495         * modules/errno-tests: New file.
38496         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38497
38498         * lib/errno.in.h: New file.
38499         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38500         * modules/errno: New file.
38501         * doc/posix-headers/errno.texi: Update documentation.
38502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38503
38504 2008-09-13  Bruno Haible  <bruno@clisp.org>
38505
38506         * tests/test-poll.c: Use #if for native Windows, rather than testing
38507         __MSVCRT__.
38508
38509 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38510             Bruno Haible  <bruno@clisp.org>
38511
38512         * lib/glob.c: Don't include <pwd.h> on native Windows.
38513         (WINDOWS32): New macro.
38514         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38515
38516 2008-09-13  Bruno Haible  <bruno@clisp.org>
38517
38518         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38519         (ETIMEDOUT): Remove macro.
38520         (glthread_cond_timedwait_multithreaded): New declaration.
38521         (glthread_cond_timedwait): Use it.
38522         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38523         (glthread_cond_timedwait_multithreaded): New function.
38524
38525 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38526
38527         * modules/poll-tests: Do not check for io.h.
38528         * tests/test-poll.c: Check for __MSVCRT__ instead.
38529
38530 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38531
38532         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38533         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38534         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38535
38536 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38537
38538         * modules/poll-tests: New.
38539         * tests/test-poll.c: New.
38540
38541 2008-09-12  Eric Blake  <ebb9@byu.net>
38542
38543         frexp: test for NetBSD failure on -0.0
38544         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38545         not all, bugs from NetBSD 3.0 have been fixed.
38546         * doc/posix-functions/frexp.texi (frexp): Document bug.
38547         Reported by Thomas Klausner.
38548
38549         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38550         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38551         literal -0.0.
38552         Reported by Jonathan C. Patschke <jp@centtech.com>.
38553
38554 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38555
38556         * lib/glthread/cond.h: Use dummy implementation also if
38557         USE_WIN32_THREADS.
38558
38559 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38560
38561         * modules/fnmatch-posix (License): Change to LGPLv2+.
38562         * modules/fnmatch-gnu (License): Likewise.
38563
38564 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38565
38566         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38567
38568 2008-09-11  Jim Meyering  <meyering@redhat.com>
38569
38570         * users.txt: Add gtk-vnc.
38571
38572 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38573
38574         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38575         rotate amounts.
38576
38577         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38578         required for 16-bit and 8-bit rotates.
38579         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38580         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38581         UINT8_MAX instead of hard-coded constants.
38582         Suggested by Paul Eggert.
38583
38584 2008-09-07  Bruno Haible  <bruno@clisp.org>
38585
38586         * tests/test-striconveh.c (main): Check behaviour when converting from
38587         UTF-7.
38588
38589         Make striconveh work better with stateful encodings.
38590         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38591         that iconv does not increment the inptr when returning -1/EINVAL.
38592
38593 2008-09-07  Bruno Haible  <bruno@clisp.org>
38594
38595         * build-aux/config.rpath: Update according to libtool-2.2.6.
38596         * build-aux/config.libpath: Likewise.
38597
38598 2008-09-06  Bruno Haible  <bruno@clisp.org>
38599
38600         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38601         * lib/freadptr.c (freadptr): Likewise.
38602         * lib/freadseek.c (freadptrinc): Likewise.
38603         Reported by Simon Josefsson.
38604
38605 2008-09-06  Bruno Haible  <bruno@clisp.org>
38606
38607         * modules/freadptr (License): Change to LGPLv2+.
38608         * modules/freadseek (License): Likewise.
38609         Suggested by Eric Blake.
38610
38611         * modules/memchr2 (License): Change to LGPLv2+.
38612         Approved by Eric Blake.
38613
38614 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38615             Bruno Haible  <bruno@clisp.org>
38616
38617         Make gnulib-tool work with native 'sed' on AIX.
38618         * gnulib-tool (sed_noop): New variable.
38619         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38620         func_add_or_update, func_create_testdir): Use it to initialize sed
38621         script variables.
38622         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38623
38624 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38625             Bruno Haible  <bruno@clisp.org>
38626
38627         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38628         also works after #include directives.
38629
38630 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38631
38632         getdate.y: reject an out-of-range timezone value
38633         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38634         the range [-24...+24].  When specified with only one or two digits,
38635         * tests/test-getdate.c: Tests for the fix.
38636         * doc/getdate.texi: Document this change.
38637
38638 2008-09-03  Bruno Haible  <bruno@clisp.org>
38639
38640         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38641
38642 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38643
38644         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38645         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38646         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38647         Blake <ebb9@byu.net>.
38648
38649         * tests/test-bitrotate.c: Add more test vectors.
38650
38651 2008-09-02  Eric Blake  <ebb9@byu.net>
38652
38653         vasnprintf-posix: handle large precision via %.*d
38654         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38655         when handling it ourselves.
38656         * tests/test-vasnprintf-posix.c (test_function): Add test.
38657         * tests/test-snprintf-posix.h (test_function): Likewise.
38658         * tests/test-sprintf-posix.h (test_function): Likewise.
38659         * tests/test-vasprintf-posix.c (test_function): Likewise.
38660         Reported by Alain Guibert.
38661
38662 2008-09-01  Eric Blake  <ebb9@byu.net>
38663
38664         c-stack: make configure-time check more robust
38665         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38666         successful sigaction call.
38667         Reported by Tom G. Christensen.
38668
38669 2008-09-01  Bruno Haible  <bruno@clisp.org>
38670
38671         New module 'findprog-lgpl'.
38672         * modules/findprog-lgpl: New file.
38673         * lib/findprog-lgpl.c: New file.
38674         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38675         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38676         to decide whether to use strdup or xstrdup, concatenated_filename or
38677         xconcatenated_filename.
38678
38679 2008-09-01  Bruno Haible  <bruno@clisp.org>
38680
38681         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38682         'xconcat-filename' (GPL).
38683         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38684         (License): Change to LGPLv2+.
38685         * modules/xconcat-filename: New file.
38686         * lib/concat-filename.h (concatenated_filename): Change specification.
38687         (xconcatenated_filename): New declaration.
38688         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38689         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38690         memory situations.
38691         * lib/xconcat-filename.c: New file.
38692         * NEWS: Mention the change.
38693         * lib/findprog.c: Include concat-filename.h, not filename.h.
38694         (find_in_path): Use xconcatenated_filename instead of
38695         concatenated_filename.
38696         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38697         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38698         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38699         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38700         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38701         instead of concatenated_filename.
38702         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38703         (execute_java_class): Use xconcatenated_filename instead of
38704         concatenated_filename.
38705         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38706         * modules/javacomp (Depends-on): Likewise.
38707         * modules/javaexec (Depends-on): Likewise.
38708
38709 2008-09-01  Bruno Haible  <bruno@clisp.org>
38710
38711         Split module 'filename' into 'filename' and 'concat-filename'.
38712         * modules/filename: Keep only lib/filename.h.
38713         (License): Change to LGPLv2+.
38714         * modules/concat-filename: New file, extracted from modules/filename.
38715         * lib/filename.h (concatenated_filename): Remove declaration.
38716         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38717         * lib/concat-filename.c: Include concat-filename.h.
38718         * NEWS: Mention the change.
38719
38720 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38721
38722         * lib/bitrotate.h (rotl8, rotr8): Add.
38723
38724         * modules/bitrotate (configure.ac): Need
38725         AC_REQUIRE([AC_C_INLINE]).
38726         (Description): Mention stdint.h.  Reported by Bruno Haible
38727         <bruno@clisp.org>.
38728
38729         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38730         Paolo Bonzini <bonzini@gnu.org>.
38731
38732 2008-08-31  Bruno Haible  <bruno@clisp.org>
38733
38734         Assume Solaris specific bi-arch conventions on Solaris systems.
38735         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38736         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38737         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38738         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38739         like acl_libdirstem.
38740         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38741         acl_libdirstem.
38742         * NEWS: Mention the change.
38743         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38744
38745 2008-08-31  Jim Meyering  <meyering@redhat.com>
38746
38747         * lib/strftime.h: Add comments describing the two added arguments.
38748
38749         remove duplicate #include directives
38750         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38751         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38752
38753 2008-08-31  Bruno Haible  <bruno@clisp.org>
38754
38755         New module 'sigpipe-die'.
38756         * modules/sigpipe-die: New file.
38757         * lib/sigpipe-die.h: New file.
38758         * lib/sigpipe-die.c: New file.
38759         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38760
38761 2008-08-31  Bruno Haible  <bruno@clisp.org>
38762
38763         Don't override previously installed signal handlers.
38764         * lib/fatal-signal.c (saved_sigactions): New variable.
38765         (uninstall_handlers): Reset the signal to the saved handler, not
38766         to SIG_DFL (except when ignored).
38767         (install_handlers): Save the previous handlers.
38768
38769 2008-08-30  Bruno Haible  <bruno@clisp.org>
38770
38771         * gnulib-tool (func_reset_sigpipe): New function.
38772         (func_get_automake_snippet, func_modules_transitive_closure,
38773         func_import): Invoke it before a join command that reads from stdin,
38774         to avoid "echo: write error: Broken pipe" error messages on stderr.
38775         Reported by Sam Steingold <sds@gnu.org>.
38776
38777 2008-08-30  Bruno Haible  <bruno@clisp.org>
38778
38779         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38780         Code copied from m4/open.m4.
38781         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38782         access and the filename ends in a slash. Code copied from lib/open.c.
38783         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38784         * tests/test-fopen.c (main): Check against bug with trailing slash.
38785
38786 2008-08-29  Bruno Haible  <bruno@clisp.org>
38787
38788         Avoid some "gcc -pedantic" warnings.
38789         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38790         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38791         * lib/dirent.in.h: Likewise.
38792         * lib/fcntl.in.h: Likewise.
38793         * lib/float.in.h: Likewise.
38794         * lib/iconv.in.h: Likewise.
38795         * lib/inttypes.in.h: Likewise.
38796         * lib/locale.in.h: Likewise.
38797         * lib/math.in.h: Likewise.
38798         * lib/netinet_in.in.h: Likewise.
38799         * lib/search.in.h: Likewise.
38800         * lib/signal.in.h: Likewise.
38801         * lib/stdarg.in.h: Likewise.
38802         * lib/stdint.in.h: Likewise.
38803         * lib/stdio.in.h: Likewise.
38804         * lib/stdlib.in.h: Likewise.
38805         * lib/string.in.h: Likewise.
38806         * lib/strings.in.h: Likewise.
38807         * lib/sys_select.in.h: Likewise.
38808         * lib/sys_socket.in.h: Likewise.
38809         * lib/sys_stat.in.h: Likewise.
38810         * lib/sys_time.in.h: Likewise.
38811         * lib/sysexits.in.h: Likewise.
38812         * lib/time.in.h: Likewise.
38813         * lib/unistd.in.h: Likewise.
38814         * lib/wchar.in.h: Likewise.
38815         * lib/wctype.in.h: Likewise.
38816         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38817         * modules/fchdir (Makefile.am): Likewise.
38818         * modules/fcntl (Makefile.am): Likewise.
38819         * modules/float (Makefile.am): Likewise.
38820         * modules/iconv_open (Makefile.am): Likewise.
38821         * modules/inttypes (Makefile.am): Likewise.
38822         * modules/locale (Makefile.am): Likewise.
38823         * modules/math (Makefile.am): Likewise.
38824         * modules/netinet_in (Makefile.am): Likewise.
38825         * modules/search (Makefile.am): Likewise.
38826         * modules/signal (Makefile.am): Likewise.
38827         * modules/stdarg (Makefile.am): Likewise.
38828         * modules/stdint (Makefile.am): Likewise.
38829         * modules/stdio (Makefile.am): Likewise.
38830         * modules/stdlib (Makefile.am): Likewise.
38831         * modules/string (Makefile.am): Likewise.
38832         * modules/strings (Makefile.am): Likewise.
38833         * modules/sys_select (Makefile.am): Likewise.
38834         * modules/sys_socket (Makefile.am): Likewise.
38835         * modules/sys_stat (Makefile.am): Likewise.
38836         * modules/sys_time (Makefile.am): Likewise.
38837         * modules/sysexits (Makefile.am): Likewise.
38838         * modules/time (Makefile.am): Likewise.
38839         * modules/unistd (Makefile.am): Likewise.
38840         * modules/wchar (Makefile.am): Likewise.
38841         * modules/wctype (Makefile.am): Likewise.
38842         Reported by Reuben Thomas <rrt@sc3d.org>.
38843
38844 2008-08-29  Bruno Haible  <bruno@clisp.org>
38845
38846         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38847         any more.
38848
38849 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38850
38851         * MODULES.html.sh (Misc): Add bitrotate.
38852
38853         * modules/bitrotate: New file.
38854
38855         * lib/bitrotate.h: New file.
38856
38857         * modules/bitrotate-tests: New file.
38858
38859         * tests/test-bitrotate.c: New file.
38860
38861         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38862         on the bitrotate module.
38863
38864         * lib/arctwo.c: Use new bitrotate module.
38865
38866 2008-08-29  Jim Meyering  <meyering@redhat.com>
38867
38868         bootstrap: merge changes from coreutils
38869         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38870         of copied files.  Remove a kludge, now that this is fixed.
38871         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38872         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38873         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38874
38875 2008-08-29  Bruno Haible  <bruno@clisp.org>
38876
38877         * MODULES.html.sh: Remove --cvs-urls option.
38878
38879 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38880
38881         maint.mk: adjust to file name change
38882         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38883
38884 2008-08-28  Jim Meyering  <meyering@redhat.com>
38885
38886         * modules/getndelim2 (License): Relicense to LGPLv2+.
38887         Approved by Richard Stallman for the version of 1995, and by
38888         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38889
38890 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38891
38892         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38893         dummy if one is not available.  Do not touch them if
38894         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38895         (getc_maybe_unlocked): New.
38896         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38897
38898 2008-08-26  Eric Blake  <ebb9@byu.net>
38899
38900         doc/INSTALL: resync from autoconf
38901         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38902         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38903         moving...
38904         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38905         * INSTALL: Regenerate.
38906         * INSTALL.ISO: New file.
38907         * INSTALL.UTF-8: Likewise.
38908
38909 2008-08-26  Jim Meyering  <meyering@redhat.com>
38910
38911         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38912         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38913         these definitions conditional, so that they may be overridden, too.
38914
38915 2008-08-26  Bruno Haible  <bruno@clisp.org>
38916
38917         Generate INSTALL file variants with prettier quotes.
38918         * doc/Makefile (INSTALL_PRELUDE): New macro.
38919         (INSTALL): Use it.
38920         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38921
38922 2008-08-26  Bruno Haible  <bruno@clisp.org>
38923
38924         Run makeinfo in an English locale.
38925         * doc/Makefile (MAKEINFO): New variable.
38926
38927 2008-08-26  Bruno Haible  <bruno@clisp.org>
38928
38929         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38930         Suggested by Eric Blake.
38931
38932 2008-08-25  Bruno Haible  <bruno@clisp.org>
38933
38934         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38935
38936 2008-08-25  Eric Blake  <ebb9@byu.net>
38937
38938         c-stack: test that stack overflow can be caught
38939         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38940         that platform allows handling stack overflow; at least OS/2 EMX
38941         has sigaltstack, but crashes before transferring control to
38942         handler on stack overflow.
38943         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38944         check for HAVE_STACK_OVERFLOW_HANDLING.
38945         Reported by Elbert Pol.
38946
38947 2008-08-25  Bruno Haible  <bruno@clisp.org>
38948
38949         * doc/posix-functions/strftime.texi: Fix description of strftime
38950         module.
38951
38952 2008-08-24  Bruno Haible  <bruno@clisp.org>
38953
38954         * tests/uniwidth/test-uc_width2.c: New file.
38955         * tests/uniwidth/test-uc_width2.sh: New file.
38956         * modules/uniwidth/width-tests (Files): Add the new files.
38957         (TESTS): Add uniwidth/test-uc_width2.sh.
38958         (TESTS_ENVIRONMENT): New variable.
38959         (check_PROGRAMS): Add test-uc_width2.
38960         (test_uc_width2_SOURCES): New variable.
38961
38962         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38963         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38964         not 0x00AB.
38965         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38966
38967 2008-08-22  Eric Blake  <ebb9@byu.net>
38968
38969         test-lock, test-tls: mention why a test is skipped
38970         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38971         skipped.
38972         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38973
38974         count-one-bits: relax license
38975         * modules/count-one-bits (License): Relicense to LGPLv2+.
38976         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38977
38978 2008-08-22  Andreas Schwab  <schwab@suse.de>
38979
38980         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38981         Remove spurious space in assignment.
38982
38983 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38984
38985         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38986         Paul Eggert <eggert@CS.UCLA.EDU>.
38987
38988 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38989
38990         * modules/gettext: Add m4/threadlib.m4.
38991
38992 2008-08-19  Eric Blake  <ebb9@byu.net>
38993
38994         test-c-stack: fix compilation failure on FreeBSD 5.0
38995         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38996         headers before <sys/resource.h>.
38997         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38998         the bug.
38999         Reported by Nelson H. F. Beebe.
39000
39001         strverscmp: migrate from "strverscmp.h" to <string.h>
39002         * modules/string (Makefile.am): Add new hooks.
39003         * modules/strverscmp (Files): Remove strverscmp.h.
39004         (Depends-on): Add string.
39005         (configure.ac): Add indicator.
39006         (Include): Mention new header.
39007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39008         defaults.
39009         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39010         results.
39011         * lib/strverscmp.h: Delete.
39012         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39013         * tests/test-strverscmp.c (includes): Adjust client.
39014         * lib/check-version.c (includes): Likewise.
39015         * NEWS: Document the change.
39016
39017         strverscmp: add unit test
39018         * modules/strverscmp-tests: New file.
39019         * tests/test-strverscmp.c: Likewise.
39020
39021 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39022
39023         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39024         regarding Windows crypto stuff, from Mono.
39025
39026 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39027
39028         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39029         if present, for intel RND.  Return error on failures.
39030
39031 2008-08-18  Ben Pfaff  <blp@gnu.org>
39032
39033         gitlog-to-changelog: give better diagnostic for failed pipe-open
39034         * build-aux/gitlog-to-changelog: Improve error message: suggest
39035         that the version of Git may be too old.
39036
39037 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39038
39039         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39040         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39041
39042 2008-08-18  Bruno Haible  <bruno@clisp.org>
39043
39044         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39045         pthread_in_use().
39046
39047 2008-08-18  Bruno Haible  <bruno@clisp.org>
39048
39049         * lib/glthread/threadlib.c: Include <pthread.h>.
39050
39051 2008-08-18  Bruno Haible  <bruno@clisp.org>
39052
39053         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39054         glthread_recursive_lock_* macros.
39055         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39056         Fix syntax error.
39057
39058 2008-08-18  Bruno Haible  <bruno@clisp.org>
39059
39060         * lib/glthread/thread.c: Avoid forcing a context switch right after
39061         thread creation.
39062
39063 2008-08-17  Bruno Haible  <bruno@clisp.org>
39064
39065         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39066         * lib/glthread/thread.h: Provide Win32 specific implementation.
39067         * modules/thread (Files): Add lib/glthread/thread.c.
39068         (Depends-on): Add lock.
39069         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39070
39071 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39072
39073         New module 'yield'.
39074         * modules/yield: New file.
39075         * lib/glthread/yield.h: New file.
39076         * m4/yield.m4: New file.
39077         * MODULES.html.sh (Multithreading): Add yield.
39078
39079 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39080
39081         New module 'thread'.
39082         * modules/thread: New file.
39083         * lib/glthread/thread.h: New file.
39084         * m4/thread.m4: New file.
39085         * MODULES.html.sh (Multithreading): Add thread.
39086
39087 2008-08-17  Bruno Haible  <bruno@clisp.org>
39088
39089         * lib/glthread/lock.h: Include <stdlib.h> always.
39090         * lib/glthread/tls.h: Likewise.
39091         * lib/glthread/cond.h: Likewise.
39092
39093 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39094
39095         New module 'cond'.
39096         * modules/cond: New file.
39097         * lib/glthread/cond.h: New file.
39098         * lib/glthread/cond.c: New file.
39099         * m4/cond.m4: New file.
39100         * MODULES.html.sh (Multithreading): Add cond.
39101
39102 2008-08-16  Eric Blake  <ebb9@byu.net>
39103
39104         c-stack: fix regression on Irix 5.3 from 2008-06-21
39105         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39106         sa_sigaction...
39107         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39108         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39109         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39110         * modules/signal (Makefile.am): Use the value.
39111         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39112         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39113         * doc/posix-headers/signal.texi (signal.h): Document this
39114         portability issue.
39115         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39116         Reported by Tom G. Christensen.
39117
39118 2008-08-17  Bruno Haible  <bruno@clisp.org>
39119
39120         New module 'threadlib'.
39121         * modules/threadlib: New file.
39122         * lib/glthread/threadlib.c: New file, extracted from
39123         lib/glthread/lock.c.
39124         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39125         functions.
39126         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39127         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39128         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39129         macros.
39130         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39131         (gl_DISABLE_THREADS): Remove macro.
39132         * modules/lock (Files): Remove build-aux/config.rpath.
39133         (Depends-on): Remove havelib. Add threadlib.
39134         (configure.ac-early): Remove section.
39135         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39136         * modules/tls (Depends-on): Remove lock. Add threadlib.
39137         (Link): New section, copied from threadlib.
39138         * MODULES.html.sh (Multithreading): Add threadlib.
39139
39140 2008-08-14  Bruno Haible  <bruno@clisp.org>
39141
39142         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39143         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39144         glthread_rwlock_unlock, glthread_rwlock_destroy,
39145         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39146         glthread_recursive_lock_destroy): Define as macros always.
39147         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39148         glthread_lock_lock.
39149         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39150         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39151         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39152         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39153         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39154         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39155         (glthread_recursive_lock_lock_func): Renamed from
39156         glthread_recursive_lock_lock.
39157         (glthread_recursive_lock_unlock_func): Renamed from
39158         glthread_recursive_lock_unlock.
39159         (glthread_recursive_lock_destroy_func): Renamed from
39160         glthread_recursive_lock_destroy.
39161
39162 2008-08-14  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/glthread/lock.h: Renamed from lib/lock.h.
39165         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39166         * lib/glthread/tls.h: Renamed from lib/tls.h.
39167         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39168         * lib/fstrcmp.c: Update includes.
39169         * lib/strsignal.c: Update includes.
39170         * modules/lock (Files, Makefile.am): Update.
39171         (Include): Change to "glthread/lock.h".
39172         * modules/tls (Files, Makefile.am): Update.
39173         (Include): Change to "glthread/tls.h".
39174         * tests/test-lock.c: Update includes.
39175         * tests/test-tls.c: Update includes.
39176         * NEWS: Mention the renamed header files.
39177
39178 2008-08-11  Jim Meyering  <meyering@redhat.com>
39179
39180         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39181
39182 2008-08-11  Eric Blake  <ebb9@byu.net>
39183
39184         test-c-stack: avoid C99-ism
39185         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39186         before statement.
39187         Reported by Alain Guibert.
39188
39189 2008-08-10  Jim Meyering  <meyering@redhat.com>
39190
39191         ensure that return value of uinttostr et al are not ignored
39192         * lib/inttostr.h (__GNUC_PREREQ): Define.
39193         (__attribute_warn_unused_result__): Define.
39194         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39195
39196 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39197
39198         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39199         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39200
39201 2008-08-07  Jim Meyering  <meyering@redhat.com>
39202
39203         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39204
39205         * modules/mkstemp (License): Relicense under LGPLv2+.
39206         * modules/tempname (License): Likewise.
39207
39208 2008-08-06  Bruno Haible  <bruno@clisp.org>
39209
39210         * lib/poll.c (poll): Further micro-optimization.
39211
39212 2008-08-06  Jim Meyering  <meyering@redhat.com>
39213
39214         inet_pton.c: use locale-independent tolower
39215         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39216         (inet_pton6): Use c_tolower rather than tolower.
39217         * modules/inet_pton (Depends-on): Add c-ctype.
39218
39219 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39220
39221         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39222         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39223
39224 2008-08-06  Jim Meyering  <meyering@redhat.com>
39225
39226         * modules/inet_pton (License): Relicense under LGPLv2+.
39227
39228 2008-08-03  Bruno Haible  <bruno@clisp.org>
39229
39230         Additional non-aborting API for lock and tls.
39231         * lib/lock.h: Include <errno.h>.
39232         (glthread_lock_init): New macro/function.
39233         (gl_lock_init): Define as wrapper around glthread_lock_init.
39234         (glthread_lock_lock): New macro/function.
39235         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39236         (glthread_lock_unlock): New macro/function.
39237         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39238         (glthread_lock_destroy): New macro/function.
39239         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39240         (glthread_rwlock_init): New macro/function.
39241         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39242         (glthread_rwlock_rdlock): New macro/function.
39243         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39244         (glthread_rwlock_wrlock): New macro/function.
39245         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39246         (glthread_rwlock_unlock): New macro/function.
39247         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39248         (glthread_rwlock_destroy): New macro/function.
39249         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39250         (glthread_recursive_lock_init): New macro/function.
39251         (gl_recursive_lock_init): Define as wrapper around
39252         glthread_recursive_lock_init.
39253         (glthread_recursive_lock_lock): New macro/function.
39254         (gl_recursive_lock_lock): Define as wrapper around
39255         glthread_recursive_lock_lock.
39256         (glthread_recursive_lock_unlock): New macro/function.
39257         (gl_recursive_lock_unlock): Define as wrapper around
39258         glthread_recursive_lock_unlock.
39259         (glthread_recursive_lock_destroy): New macro/function.
39260         (gl_recursive_lock_destroy): Define as wrapper around
39261         glthread_recursive_lock_destroy.
39262         (glthread_once): New macro/function.
39263         (gl_once): Define as wrapper around glthread_once.
39264         Update function declarations.
39265         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39266         glthread_rwlock_init. Return error code.
39267         (glthread_rwlock_rdlock_multithreaded): Renamed from
39268         glthread_rwlock_rdlock. Return error code.
39269         (glthread_rwlock_wrlock_multithreaded): Renamed from
39270         glthread_rwlock_wrlock. Return error code.
39271         (glthread_rwlock_unlock_multithreaded): Renamed from
39272         glthread_rwlock_unlock. Return error code.
39273         (glthread_rwlock_destroy_multithreaded): Renamed from
39274         glthread_rwlock_destroy. Return error code.
39275         (glthread_recursive_lock_init_multithreaded): Renamed from
39276         glthread_recursive_lock_init. Return error code.
39277         (glthread_recursive_lock_lock_multithreaded): Renamed from
39278         glthread_recursive_lock_lock. Return error code.
39279         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39280         glthread_recursive_lock_unlock. Return error code.
39281         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39282         glthread_recursive_lock_destroy. Return error code.
39283         (glthread_once_call): Make static.
39284         (glthread_once_multithreaded): Renamed from glthread_once.
39285         * lib/tls.h: Include <errno.h>.
39286         (glthread_tls_key_init): New macro/function.
39287         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39288         (glthread_tls_set): New macro/function.
39289         (gl_tls_set): Define as wrapper around glthread_tls_set.
39290         (glthread_tls_key_destroy): New macro/function.
39291         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39292         Update function declarations.
39293         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39294         glthread_tls_get.
39295         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39296
39297 2008-08-04  Eric Blake  <ebb9@byu.net>
39298
39299         gnumakefile: use space, not TAB, outside of targets
39300         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39301
39302 2008-08-02  Jim Meyering  <meyering@redhat.com>
39303
39304         getdate.y: avoid locale-dependent date parsing failure
39305         In Turkish locales, getdate would fail to recognize keywords
39306         containing a lowercase "i".  The solution is not to rely on
39307         locale-sensitive case-conversion.
39308         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39309         (lookup_word): Use c_toupper in place of toupper.
39310         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39311         Reported by Vefa Bicakci <bicave@superonline.com> in
39312         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39313         * modules/getdate (Depends-on): Add c-ctype.
39314
39315 2008-08-02  Bruno Haible  <bruno@clisp.org>
39316
39317         * gnulib-tool (func_import): When updating or creating a .gitignore
39318         file, prepend each added line with a slash, and ignore leading slashes
39319         from the existing lines.
39320         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39321
39322 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39323
39324         Portability fix for GNU make 3.79.1.
39325         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39326         versions do not understand.
39327
39328 2008-08-01  Bruno Haible  <bruno@clisp.org>
39329
39330         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39331         * tests/test-isnanf.h (zero): New variable.
39332         (main): Avoid literal -0.0f.
39333         * tests/test-isnand.h (zero): New variable.
39334         (main): Avoid literal -0.0.
39335         * tests/test-isnanl.h (zero): New variable.
39336         (main): Avoid literal -0.0L.
39337         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39338         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39339         -0.0, -0.0L.
39340         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39341         (test_signbitd): Avoid literal -0.0.
39342         (test_signbitl): Avoid literal -0.0L.
39343         * tests/test-ceilf1.c (zero): New variable.
39344         (main): Avoid literal -0.0f.
39345         * tests/test-ceill.c (zero): New variable.
39346         (main): Avoid literal -0.0L.
39347         * tests/test-floorf1.c (zero): New variable.
39348         (main): Avoid literal -0.0f.
39349         * tests/test-floorl.c (zero): New variable.
39350         (main): Avoid literal -0.0L.
39351         * tests/test-roundf1.c (zero): New variable.
39352         (main): Avoid literal -0.0f.
39353         * tests/test-round1.c (zero): New variable.
39354         (main): Avoid literal -0.0.
39355         * tests/test-roundl.c (zero): New variable.
39356         (main): Avoid literal -0.0L.
39357         * tests/test-truncf1.c (zero): New variable.
39358         (main): Avoid literal -0.0f.
39359         * tests/test-trunc1.c (zero): New variable.
39360         (main): Avoid literal -0.0.
39361         * tests/test-truncl.c (zero): New variable.
39362         (main): Avoid literal -0.0L.
39363         * tests/test-frexp.c (zero): New variable.
39364         (main): Avoid literal -0.0.
39365         * tests/test-frexpl.c (zero): New variable.
39366         (main): Avoid literal -0.0L.
39367         * tests/test-ldexpl.c (zero): New variable.
39368         (main): Avoid literal -0.0L.
39369         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39370         (zerod, zerol): New variables.
39371         (test_function): Avoid literals -0.0, -0.0L.
39372         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39373         (zerod, zerol): New variables.
39374         (test_function): Avoid literals -0.0, -0.0L.
39375         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39376         (zerod, zerol): New variables.
39377         (test_function): Avoid literals -0.0, -0.0L.
39378         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39379         (zerod, zerol): New variables.
39380         (test_function): Avoid literals -0.0, -0.0L.
39381         * tests/test-strtod.c (zero): New variable.
39382         (main): Avoid literal -0.0.
39383         Reported by Jonathan C. Patschke <jp@centtech.com>.
39384
39385 2008-07-31  Jim Meyering  <meyering@redhat.com>
39386
39387         sha256.h: correct definition of SHA224_DIGEST_SIZE
39388         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39389         Reported by Paulie Pena IV <paulie4@gmail.com>.
39390         Define as 224 / 8, rather than as a literal.
39391         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39392         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39393         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39394
39395 2008-07-31  Bruno Haible  <bruno@clisp.org>
39396
39397         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39398         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39399         Reported by Jonathan Patschke <jp@centtech.com>.
39400
39401 2008-07-31  Bruno Haible  <bruno@clisp.org>
39402
39403         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39404         Reported by Paolo Bonzini <bonzini@gnu.org>.
39405
39406 2008-07-30  Eric Blake  <ebb9@byu.net>
39407
39408         test-strtod: allow compilation without -lm
39409         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39410         Reported by Dennis Clarke <blastwave@gmail.com>.
39411
39412 2008-07-28  Jim Meyering  <meyering@redhat.com>
39413
39414         bootstrap: work also when there are no .po files in po/
39415         * build-aux/bootstrap (update_po_files): Complete the change
39416         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39417
39418 2008-07-27  Jim Meyering  <meyering@redhat.com>
39419
39420         * users.txt: Add zile.
39421
39422 2008-07-26  Ben Pfaff  <blp@gnu.org>
39423
39424         Add missing dependencies on new m4/exponent[fdl].m4 files.
39425         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39426         * modules/isnand-nolibm: Add m4/exponentd.m4.
39427         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39428         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39429         m4/isnan[fdl].m4, because the macros actually used moved.
39430         Reported by Jim Meyering.
39431
39432 2008-07-14  Ben Pfaff  <blp@gnu.org>
39433
39434         Add isinf module.
39435         * lib/isinf.c: New file.
39436         * lib/math.in.h: Define isinf macro if we have decided to replace
39437         it.
39438         * m4/isinf.m4: New file.
39439         * m4/math_h.m4: Initialize and substitute variables for isinf
39440         module.
39441         * modules/isinf: New file.
39442         * modules/isinf-tests: New file.
39443         * modules/math: Add substitutions for new module.
39444         * tests/test-isinf.c: New file.
39445         * doc/posix-functions/isinf.texi: Mention new module.
39446         * MODULES.html.sh: Mention new module.
39447
39448 2008-07-14  Ben Pfaff  <blp@gnu.org>
39449
39450         Factor out some macros for use by additional modules.
39451         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39452         exponentf.m4.
39453         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39454         exponentd.m4.
39455         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39456         file exponentl.m4.
39457         * m4/exponentf.m4: New file.
39458         * m4/exponentd.m4: New file.
39459         * m4/exponentl.m4: New file.
39460         * modules/isnanf: Use new file m4/exponentf.m4.
39461         * modules/isnand: Use new file m4/exponentd.m4.
39462         * modules/isnanl: Use new file m4/exponentl.m4.
39463
39464 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39465
39466         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39467         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39468         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39469         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39470
39471         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39472         readlink on platforms without PATH_MAX.
39473
39474 2008-07-21  Eric Blake  <ebb9@byu.net>
39475
39476         Warn, not fail, on stale version.
39477         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39478
39479         Don't allow installation with stale devel version number.
39480         * top/GNUmakefile (_is-install-target): New macro.
39481         (_curr-ver): Forbid installation with stale version number.
39482
39483 2008-07-20  Bruno Haible  <bruno@clisp.org>
39484
39485         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39486         TESTS_ENVIRONMENT.
39487         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39488
39489 2008-07-20  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/c-stack.h (c_stack_action): Add documentation.
39492         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39493
39494 2008-07-20  Bruno Haible  <bruno@clisp.org>
39495
39496         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39497         * modules/readlink (License): Likewise.
39498
39499 2008-07-17  Eric Blake  <ebb9@byu.net>
39500
39501         * modules/c-stack (Link): Fix typo.
39502
39503         Make c-stack use libsigsegv, when available.
39504         * modules/c-stack (Depends-on): Add libsigsegv.
39505         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39506         needed.
39507         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39508         (segv_handler, overflow_handler, c_stack_action)
39509         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39510         implementation when libsigsegv is available, but only when using
39511         the library is necessary.
39512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39513         comment, explaining why XSI check fails on Linux.
39514         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39515         * tests/test-c-stack2.sh: Tweak skip message.
39516         * NEWS: Document new link-time requirements.
39517
39518 2008-07-16  Eric Blake  <ebb9@byu.net>
39519
39520         c-stack: Expose false positives when not using libsigsegv.
39521         * modules/c-stack-tests (Files): Expand test.
39522         * tests/test-c-stack.c (main): Add means to conditionally trigger
39523         non-overflow SIGSEGV.
39524         * tests/test-c-stack2.sh: New file.
39525
39526 2008-07-14  Bruno Haible  <bruno@clisp.org>
39527
39528         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39529         Reported by Eric Blake.
39530
39531 2008-07-14  Sam Steingold  <sds@gnu.org>
39532             Bruno Haible  <bruno@clisp.org>
39533
39534         New module libsigsegv.
39535         * modules/libsigsegv: New file.
39536         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39537         modifications.
39538         * MODULES.html.sh (Signal handling): New section.
39539
39540 2008-07-14  Bruno Haible  <bruno@clisp.org>
39541
39542         * modules/unictype/ctype-* (Description): Add the word "function".
39543         Improves the resulting doc in MODULES.html.
39544
39545 2008-07-12  Ben Pfaff  <blp@gnu.org>
39546
39547         Add longlong module.
39548         * modules/longlong: New file.
39549
39550 2008-07-12  Bruno Haible  <bruno@clisp.org>
39551
39552         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39553         to empty.
39554
39555 2008-07-10  Ben Pfaff  <blp@gnu.org>
39556
39557         Add isnan module.
39558         * doc/posix-functions/isnan.texi: Mention new module.
39559         * lib/math.in.h: Define isnan macro if we have decided to replace
39560         it.
39561         * m4/isnan.m4: New file.
39562         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39563         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39564         also.
39565         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39566         redundancy.
39567         * m4/math_h.m4: Initialize and substitute variables for isnan
39568         module.
39569         * modules/isnan: New file.
39570         * modules/isnan-tests: New file.
39571         * modules/math: Add substitutions for new module.
39572         * tests/test-isnan.c: New file.
39573         * MODULES.html.sh: Mention new module.
39574
39575 2008-07-10  Ben Pfaff  <blp@gnu.org>
39576
39577         Add isnanf module.
39578         * lib/isnanf.m4: New file.
39579         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39580         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39581         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39582         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39583         * modules/isnanf: New file.
39584         * modules/isnanf-tests: New file.
39585         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39586         files.
39587         * tests/test-isnanf-nolibm.c: factored most of its contents into
39588         new file tests/test-isnanf.h.
39589         * tests/test-isnanf.h: New file.
39590         * tests/test-isnanf.c: New file.
39591         * MODULES.html.sh: Mention new module.
39592         * doc/glibc-functions/isnanf.texi: Mention new module.
39593
39594 2008-07-10  Ben Pfaff  <blp@gnu.org>
39595
39596         Add isnand module.
39597         * lib/isnand.h: New file.
39598         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39599         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39600         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39601         functionality also.
39602         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39603         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39604         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39605         * modules/isnand: New file.
39606         * modules/isnand-tests: New file.
39607         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39608         files.
39609         * tests/test-isnand-nolibm.c: factored most of its contents into
39610         new file tests/test-isnand.h.
39611         * tests/test-isnand.h: New file.
39612         * tests/test-isnand.c: New file.
39613         * MODULES.html.sh: Mention new module.
39614
39615 2008-07-10  Ben Pfaff  <blp@gnu.org>
39616
39617         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39618         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39619         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39620         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39621         * modules/isnanf-nolibm: Update references to renamed files.
39622         * modules/isnand-nolibm: Likewise.
39623         * modules/isnanf-nolibm-tests: Likewise.
39624         * modules/isnand-nolibm-tests: Likewise.
39625         * lib/frexp.c: Likewise.
39626         * lib/isfinite.c: Likewise.
39627         * lib/signbitd.c: Likewise.
39628         * lib/signbitf.c: Likewise.
39629         * lib/vasnprintf.c: Likewise.
39630         * tests/test-ceilf1.c: Likewise.
39631         * tests/test-ceilf2.c: Likewise.
39632         * tests/test-floorf1.c: Likewise.
39633         * tests/test-floorf2.c: Likewise.
39634         * tests/test-frexp.c: Likewise.
39635         * tests/test-round1.c: Likewise.
39636         * tests/test-round2.c: Likewise.
39637         * tests/test-roundf1.c: Likewise.
39638         * tests/test-strtod.c: Likewise.
39639         * tests/test-trunc1.c: Likewise.
39640         * tests/test-trunc2.c: Likewise.
39641         * tests/test-truncf1.c: Likewise.
39642         * tests/test-truncf2.c: Likewise.
39643         * NEWS: Mention the renamed header files.
39644
39645 2008-07-11  Jim Meyering  <meyering@redhat.com>
39646
39647         vc-list-files: make the last-resort awk code more portable
39648         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39649         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39650         does not support it.
39651
39652 2008-07-10  Eric Blake  <ebb9@byu.net>
39653
39654         Work with tar's bootstrap.
39655         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39656         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39657         an m4 comment.
39658
39659 2008-07-09  Jim Meyering  <meyering@redhat.com>
39660
39661         posix-shell.m4: fix typo that made this test malfunction
39662         * m4/posix-shell.m4: Remove capitalization in variable name.
39663
39664 2008-07-08  Bruno Haible  <bruno@clisp.org>
39665
39666         * m4/onceonly.m4: Update comments.
39667         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39668
39669 2008-07-04  Jim Meyering  <meyering@redhat.com>
39670
39671         * users.txt: Add vc-dwim.
39672         (bison, coreutils): Use the gitweb URL.
39673
39674 2008-07-03  Jim Meyering  <meyering@redhat.com>
39675
39676         * users.txt: Add libffcall.  From Sam Steingold.
39677
39678 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39679
39680         getdate.y: do not ignore TZ with relative day, month or year offset
39681         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39682         relative-date-handling, since otherwise, the latter would clobber the
39683         sole output (an updated Start value) of the tz-handling block.
39684         * tests/test-getdate.c: Tests for the fix
39685
39686 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39687
39688         Recognize 'foo_LIBRARIES += libgnu.a'.
39689         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39690         makefile snippet has already specified an installation location,
39691         also using '+='.
39692
39693 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39694
39695         getdate.y: factor out common actions
39696         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39697         Use them in place of open-coded actions.
39698
39699 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39700
39701         Add self-test for getdate module.
39702         * modules/getdate-tests: New file.
39703         * tests/test-getdate.c: New file.
39704
39705 2008-06-29  Bruno Haible  <bruno@clisp.org>
39706
39707         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39708         .gitignore.
39709         Reported by Sylvain Beucler <beuc@beuc.net>.
39710
39711 2008-06-29  Bruno Haible  <bruno@clisp.org>
39712
39713         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39714         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39715
39716 2008-06-29  Bruno Haible  <bruno@clisp.org>
39717
39718         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39719         EXTRA_DIST.
39720         Reported by Sylvain Beucler <beuc@beuc.net>.
39721
39722 2008-06-26  Jim Meyering  <meyering@redhat.com>
39723
39724         make several modules depend on the "open" module
39725         This provides slightly increased consistency when opening-for-write
39726         the name of a non-directory spelled with a trailing slash.
39727         * modules/chdir-safer: Likewise.
39728         * modules/chown: Likewise.
39729         * modules/clean-temp: Likewise.
39730         * modules/copy-file: Likewise.
39731         * modules/fchdir: Likewise.
39732         * modules/fcntl-safer: Likewise.
39733         * modules/pipe: Likewise.
39734         * modules/utime: Likewise.
39735         Prompted by Eric Blake and Bruno Haible.
39736
39737 2008-06-24  Andreas Schwab  <schwab@suse.de>
39738
39739         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39740         literals can be used as initializers for global variables.
39741
39742 2008-06-23  Eric Blake  <ebb9@byu.net>
39743
39744         Make gnulib-cache.m4 easier to diff.
39745         * gnulib-tool (func_import): Allow newlines when reading cached
39746         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39747
39748 2008-06-23  Bruno Haible  <bruno@clisp.org>
39749
39750         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39751         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39752         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39753         m4/signalblocking.m4.
39754         (gl_PREREQ_SIGACTION): Don't invoke it.
39755         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39756         gl_PREREQ_SIG_HANDLER_H.
39757         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39758         Don't check for sigaction here.
39759
39760 2008-06-23  Bruno Haible  <bruno@clisp.org>
39761
39762         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39763         (install_handlers): Don't set the SA_RESETHAND flag.
39764
39765 2008-06-23  Bruno Haible  <bruno@clisp.org>
39766
39767         * m4/sigaction.m4: Comment fixes.
39768         * lib/signal.in.h: Likewise.
39769
39770 2008-06-23  Eric Blake  <ebb9@byu.net>
39771
39772         Fix typo.
39773         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39774
39775         Avoid SA_ namespace.
39776         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39777         Reported by Ralf Wildenhues.
39778
39779         Avoid test failure due to SA_RESTORER.
39780         * tests/test-sigaction.c (SA_MASK): New macro.
39781         (main): Avoid failing due to extension flags being set.
39782         Reported by Jim Meyering.
39783
39784         Revert use of sig-handler.h in sigprocmask.c.
39785         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39786         it requires the existence of struct sigaction.
39787         * lib/sigprocmask.c (handler_t): Restore typedef.
39788         (rpl_signal, old_handlers): Use local type.
39789
39790 2008-06-22  Bruno Haible  <bruno@clisp.org>
39791
39792         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39793         conditionally.
39794         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39795
39796 2008-06-22  Bruno Haible  <bruno@clisp.org>
39797
39798         * doc/posix-functions/siginterrupt.texi: Move note.
39799
39800         * lib/signal.in.h (SA_RESTART): New macro.
39801         * lib/sigaction.c: Update comment.
39802
39803         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39804
39805         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39806         (gl_PREREQ_SIGPROCMASK): Invoke it.
39807         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39808
39809         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39810
39811         * lib/sigprocmask.c: Update a comment.
39812
39813 2008-06-21  Eric Blake  <ebb9@byu.net>
39814
39815         Use sigaction module rather than signal().
39816         * modules/c-stack (Depends-on): Add sigaction.
39817         * modules/fatal-signal (Depends-on): Likewise.
39818         * modules/nanosleep (Depends-on): Likewise.
39819         * modules/sigprocmask (Files): Add sig-handler.h.
39820         * modules/sigaction (Files): Likewise.
39821         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39822         Eggert.
39823         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39824         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39825         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39826         (init_fatal_signals): Likewise.
39827         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39828         (siginterrupt): Delete fallback.
39829         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39830         instead.
39831         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39832         siginterrupt.
39833
39834         New module sigaction, for mingw.
39835         * modules/sigaction: New module...
39836         * modules/sigaction-tests: ...and its test.
39837         * m4/sigaction.m4: New file.
39838         * lib/sigaction.c: Likewise.
39839         * tests/test-sigaction.c: Likewise.
39840         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39841         * modules/signal (Makefile.am): Likewise.
39842         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39843         needed.
39844         * doc/posix-headers/signal.texi (signal.h): Mention provided
39845         types.
39846         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39847         that sigaction is preferable.
39848         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39849         module.
39850         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39851         sigaction.
39852
39853         Improve robustness of sigprocmask by overriding signal.
39854         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39855         is in use.
39856         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39857         (SIGKILL, SIGSTOP): Provide fallbacks.
39858         (rpl_signal): Implement.
39859         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39860         signal can be called inside handlers.
39861
39862         Fix nanosleep module on mingw.
39863         * modules/nanosleep (Depends-on): Add sys_select.
39864         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39865
39866         Fix licensing of sigprocmask.
39867         * modules/raise (License): Relicense as LGPL.
39868
39869 2008-06-21  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39872         result if it contains question marks.
39873         Reported by Michael Geng <linux@michaelgeng.de>.
39874
39875 2008-06-19  Bruno Haible  <bruno@clisp.org>
39876
39877         Fix CVS-ism.
39878         * doc/gnulib.texi: Include updated-stamp.texi.
39879         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39880         (updated-stamp.texi): New rule.
39881         (gnulib.info): Depend on it.
39882         * doc/.gitignore: Add updated-stamp.texi.
39883         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39884
39885 2008-06-19  Bruno Haible  <bruno@clisp.org>
39886
39887         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39888         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39889
39890 2008-06-19  Eric Blake  <ebb9@byu.net>
39891
39892         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39893         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39894         Reported by Stepan Kasal.
39895
39896 2008-06-18  Bruno Haible  <bruno@clisp.org>
39897
39898         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39899         Reported by Eric Blake.
39900
39901 2008-06-18  Eric Blake  <ebb9@byu.net>
39902
39903         Work around cygwin 1.5.25 strsignal bug.
39904         * tests/test-strsignal.c: Allow for const char *.
39905         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39906
39907 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39908
39909         * users.txt: Update URL to article and add author/date
39910         information.
39911
39912 2008-06-17  Bruno Haible  <bruno@clisp.org>
39913
39914         New macro gl_DISABLE_THREADS.
39915         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39916         if the user did not pass --enable-threads or --disable-threads option.
39917         (gl_DISABLE_THREADS): New macro.
39918         Reported by Eric Blake <ebb9@byu.net>.
39919
39920 2008-06-17  Bruno Haible  <bruno@clisp.org>
39921
39922         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39923         when the macro ignores it.
39924         Based on a patch by Eric Blake <ebb9@byu.net>.
39925
39926 2008-06-17  Bruno Haible  <bruno@clisp.org>
39927
39928         * modules/tls (License): Change to LGPLv2+.
39929         Reported by Eric Blake.
39930
39931 2008-06-17  Eric Blake  <ebb9@byu.net>
39932
39933         Simplify c-stack prerequisites.
39934         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39935         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39936         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39937         check.
39938         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39939         <sys/resource.h>.
39940
39941         Move c-stack test into testsuite.
39942         * modules/c-stack-tests: New file.
39943         * lib/c-stack.c [DEBUG]: Move test program...
39944         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39945         fail test if sigaltstack is lacking.
39946         * tests/test-c-stack.sh: New driver file.
39947
39948 2008-06-16  Eric Blake  <ebb9@byu.net>
39949
39950         Use raise module consistently.
39951         * modules/fatal-signal (Depends-on): Add raise.
39952         * modules/sigprocmask (Depends-on): Likewise.
39953         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39954         * lib/sigprocmask.c (sigprocmask): Likewise.
39955         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39956         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39957
39958         Fix compliance bug in sigpending.
39959         * lib/sigprocmask.c (sigpending): Return pending array via
39960         parameter, not return value.
39961
39962 2008-06-14  Eric Blake  <ebb9@byu.net>
39963
39964         Improve obstack-printf test code.
39965         * tests/test-obstack-printf.c (test_function): Fix comment, and
39966         simplify usage of obstack_* in macros.  Add a test for coverage.
39967         Reported by Bruno Haible.
39968
39969 2008-06-14  Bruno Haible  <bruno@clisp.org>
39970
39971         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39972         array size as a constant, not as a const variable.
39973         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39974         AC_USE_SYSTEM_EXTENSIONS.
39975         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39976         Test whether the obstack_printf function actually exists.
39977         * modules/obstack-printf (Depends-on): Add extensions.
39978         (Include): Remove obstack.h.
39979         * modules/obstack-printf-posix (Depends-on): Add extensions.
39980         (Include): Remove obstack.h.
39981
39982 2008-06-13  Eric Blake  <ebb9@byu.net>
39983
39984         Add obstack-printf and obstack-printf-posix modules.
39985         * modules/obstack-printf: New file.
39986         * modules/obstack-printf-posix: Likewise.
39987         * MODULES.html.sh (Misc): Mention them.
39988         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39989         Likewise.
39990         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39991         Likewise.
39992         * modules/stdio (Makefile.am): Accomodate new modules.
39993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39994         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39995         Declare.
39996         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39997         functions.
39998         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39999         (gl_REPLACE_OBSTACK_PRINTF): New macros
40000         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40001         * tests/test-obstack-printf.c: New file.
40002         * modules/obstack-printf-tests: Likewise.
40003         * modules/obstack-printf-posix-tests: Likewise.
40004
40005 2008-06-11  Bruno Haible  <bruno@clisp.org>
40006
40007         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40008         * lib/open.c: Include errno.h.
40009         (open): Fail when attempting to write to a file that has a trailing
40010         slash.
40011         * tests/test-open.c (main): Test against trailing slash bug.
40012         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40013
40014 2008-06-10  Bruno Haible  <bruno@clisp.org>
40015
40016         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40017         for $? to work inside the trap command, with various /bin/sh-s.
40018         * tests/test-vc-list-files-cvs.sh: Likewise.
40019
40020 2008-06-10  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/acl-internal.h: Don't include gettext.h here.
40023         * lib/set-mode-acl.c: Include gettext.h here.
40024         * lib/copy-acl.c: Likewise.
40025
40026 2008-06-10  Bruno Haible  <bruno@clisp.org>
40027
40028         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40029         * lib/wait-process.c (wait_subprocess): Likewise.
40030         * lib/execute.h (execute): Add termsigp argument.
40031         * lib/execute.c (execute): Likewise.
40032         * lib/csharpcomp.c (compile_csharp_using_pnet,
40033         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40034         * lib/csharpexec.c (execute_csharp_using_pnet,
40035         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40036         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40037         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40038         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40039         is_jikes_present): Update.
40040         * lib/javaexec.c (execute_java_class): Update.
40041         * lib/javaversion.c (execute_and_read_line): Update.
40042         * NEWS: Document the changes.
40043         Reported by Eric Blake.
40044
40045 2008-06-10  Eric Blake  <ebb9@byu.net>
40046
40047         Add missing include.
40048         * tests/test-strstr.c (includes): Add <signal.h>.
40049         * tests/test-strcasestr.c (includes): Likewise.
40050         * tests/test-memmem.c (includes): Likewise.
40051
40052 2008-06-10  Bruno Haible  <bruno@clisp.org>
40053
40054         * lib/wait-process.c (wait_subprocess): Add an assertion.
40055
40056 2008-06-10  Bruno Haible  <bruno@clisp.org>
40057
40058         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40059
40060 2008-06-10  Bruno Haible  <bruno@clisp.org>
40061
40062         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40063         using alarm().
40064         * tests/test-strcasestr.c (main): Likewise.
40065         * tests/test-strstr.c (main): Likewise.
40066
40067 2008-06-09  Bruno Haible  <bruno@clisp.org>
40068
40069         Work around the Solaris 10 ACE ACLs ABI change.
40070         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40071         declare if ACL_NO_TRIVIAL is present.
40072         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40073         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40074         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40075         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40076         define if ACL_NO_TRIVIAL is present.
40077         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40078         and use the current ABI.
40079         (file_has_acl): Use same #if condition as elsewhere.
40080         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40081         in use, and use the current ABI.
40082         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40083         Reported by Jim Meyering.
40084
40085 2008-06-09  Eric Blake  <ebb9@byu.net>
40086
40087         Work around environments that (stupidly) ignore SIGALRM.
40088         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40089         before using alarm().
40090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40091         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40092         Reported by Ian Beckwith <ianb@erislabs.net>.
40093
40094         Produce autobuild blurb earlier in log.
40095         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40096
40097 2008-06-09  Jim Meyering  <meyering@redhat.com>
40098         and OndÅ™ej Vašík  <ovasik@redhat.com>
40099
40100         utimens.c: correct kernel bug work-around
40101         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40102         failure, not success, and the kernel bug we're trying to work
40103         around affects not just the utimensat call, but also the fallback
40104         futimens call.
40105         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40106         not success.
40107         [HAVE_FUTIMENS]: Use the same work-around, here.
40108
40109 2008-06-09  Jim Meyering  <meyering@redhat.com>
40110
40111         add more guards around definition of ACE_-related code
40112         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40113         ALLOW and ACE_OWNER are also defined.
40114
40115 2008-06-08  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/acl-internal.h: Add me as co-author.
40118         * lib/file-has-acl.c: Likewise.
40119         * lib/set-mode-acl.c: Likewise.
40120         * lib/copy-acl.c: Likewise.
40121
40122 2008-06-08  Bruno Haible  <bruno@clisp.org>
40123
40124         Add support for AIX ACLs.
40125         * lib/acl-internal.h (acl_nontrivial): New declaration.
40126         * lib/file-has-acl.c (acl_nontrivial): New function.
40127         (file_has_acl): Add implementation using AIX 4 ACL API.
40128         * lib/set-mode-acl.c (qset_acl): Likewise.
40129         * lib/copy-acl.c (qcopy_acl): Likewise.
40130
40131 2008-06-08  Bruno Haible  <bruno@clisp.org>
40132
40133         Add support for HP-UX ACLs.
40134         * lib/acl-internal.h (acl_nontrivial): New declaration.
40135         * lib/file-has-acl.c (acl_nontrivial): New function.
40136         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40137         * lib/set-mode-acl.c (qset_acl): Likewise.
40138         * lib/copy-acl.c (qcopy_acl): Likewise.
40139
40140 2008-06-08  Bruno Haible  <bruno@clisp.org>
40141
40142         Add support for Cygwin ACLs.
40143         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40144         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40145         the chmod_or_fchmod call.
40146         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40147
40148 2008-06-08  Bruno Haible  <bruno@clisp.org>
40149
40150         Fix bug with setuid modes in Solaris 10+ code.
40151         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40152         succeeded, when the mode contains some special bits.
40153
40154 2008-06-08  Bruno Haible  <bruno@clisp.org>
40155
40156         Add support for Solaris 7..10 ACLs.
40157         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40158         declarations.
40159         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40160         functions.
40161         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40162         * lib/set-mode-acl.c (qset_acl): Likewise.
40163         * lib/copy-acl.c (qcopy_acl): Likewise.
40164
40165 2008-06-08  Bruno Haible  <bruno@clisp.org>
40166
40167         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40168         declaration.
40169         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40170         (acl_access_nontrivial): Remove MacOS X case.
40171         (file_has_acl): Use acl_extended_nontrivial.
40172         * lib/copy-acl.c (qcopy_acl): Likewise.
40173
40174 2008-06-08  Bruno Haible  <bruno@clisp.org>
40175
40176         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40177
40178 2008-06-08  Jim Meyering  <meyering@redhat.com>
40179
40180         * modules/acl (Maintainer): Add Bruno Haible.
40181
40182 2008-06-07  Bruno Haible  <bruno@clisp.org>
40183
40184         Improve support for Tru64 ACLs.
40185         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40186         ACL on OSF/1.
40187
40188 2008-06-07  Bruno Haible  <bruno@clisp.org>
40189
40190         Add support for MacOS X ACLs.
40191         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40192         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40193         * lib/set-mode-acl.c (qset_acl): Likewise.
40194         * lib/copy-acl.c (qcopy_acl): Likewise.
40195
40196 2008-06-07  Bruno Haible  <bruno@clisp.org>
40197
40198         Fix memory leak introduced on 2008-05-22.
40199         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40200         use.
40201
40202 2008-06-07  Bruno Haible  <bruno@clisp.org>
40203
40204         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40205         to construct an empty ACL.
40206
40207 2008-06-07  Bruno Haible  <bruno@clisp.org>
40208
40209         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40210         precisely.
40211         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40212
40213 2008-06-07  Bruno Haible  <bruno@clisp.org>
40214
40215         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40216         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40217
40218 2008-06-07  Bruno Haible  <bruno@clisp.org>
40219
40220         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40221         regardless of POSIX.
40222         * doc/posix-functions/_longjmp.texi: Likewise.
40223         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40224         SystemV platform in this case.
40225
40226 2008-06-06  Eric Blake  <ebb9@byu.net>
40227
40228         Document abort() bugs.
40229         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40230
40231         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40232         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40233         sigsetjmp.
40234         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40235         siglongjmp, but only as a macro.
40236         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40237         is obsolete.
40238         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40239
40240         Tweak documentation to cover cygwin argz bugs.
40241         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40242         argz bug fix; no code change needed since no cygwin releases
40243         occurred between the last fix and the bug being tested.
40244         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40245         module and recently fixed cygwin bugs.
40246         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40247         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40248         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40249         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40250         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40251         Likewise.
40252         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40253         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40254         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40255         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40256         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40257         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40258         Likewise.
40259
40260         Avoid gcc warning on cygwin.
40261         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40262         !ACL_NO_TRIVIAL]: Avoid unused variable.
40263
40264 2008-06-05  Eric Blake  <ebb9@byu.net>
40265
40266         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40267         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40268         git-version-gen fails to come up with a version.
40269         Reported by Simon Josefsson.
40270
40271 2008-06-05  Jim Meyering  <meyering@redhat.com>
40272             Paul Eggert  <eggert@cs.ucla.edu>
40273
40274         utimens.c: work around a probable Linux kernel bug
40275         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40276         appears to be a kernel bug that causes utimensat to return 280
40277         instead of 0, indicating success.
40278
40279 2008-06-04  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40282         2008-06-01 commit.
40283
40284 2008-06-04  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40287         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40288         (file_has_acl): Use it. Save errno afterwards.
40289         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40290
40291 2008-06-03  Bruno Haible  <bruno@clisp.org>
40292
40293         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40294         draft code. Simplify #ifs.
40295         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40296         Put Solaris code after POSIX-draft code. Fix comments regarding
40297         Solaris 10, HP-UX. Mention Cygwin.
40298         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40299
40300 2008-06-03  Eric Blake  <ebb9@byu.net>
40301
40302         Provide fallback for older kernels.
40303         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40304         Provide runtime fallback if kernel lacks support.
40305         Reported by Mike Frysinger.
40306
40307 2008-06-02  Bruno Haible  <bruno@clisp.org>
40308
40309         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40310         it exists.
40311
40312 2008-06-02  Bruno Haible  <bruno@clisp.org>
40313
40314         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40315         * lib/copy-acl.c (qcopy_acl): Update comment.
40316
40317 2008-06-02  Bruno Haible  <bruno@clisp.org>
40318
40319         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40320         like ACL APIs.
40321
40322 2008-06-02  Bruno Haible  <bruno@clisp.org>
40323
40324         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40325         * tests/test-set-mode-acl.sh: Likewise.
40326         * tests/test-copy-acl.sh: Likewise.
40327         * tests/test-copy-file.sh: Likewise.
40328
40329 2008-06-02  Bruno Haible  <bruno@clisp.org>
40330
40331         * tests/test-file-has-acl.sh: Remove unused code.
40332
40333 2008-06-01  Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40336         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40337         messages.
40338         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40339
40340 2008-06-01  Bruno Haible  <bruno@clisp.org>
40341
40342         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40343         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40344         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40345         APIs.
40346         * modules/acl-tests (configure.ac): Remove tests now contained in
40347         m4/acl.m4.
40348
40349 2008-06-02  Jim Meyering  <meyering@redhat.com>
40350
40351         announce-gen: use a better key-server host name
40352         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40353         it may be more consistently reliable.  Suggested by Werner Koch
40354         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40355
40356 2008-06-01  Bruno Haible  <bruno@clisp.org>
40357
40358         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40359         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40360
40361 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40362
40363         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40364
40365 2008-06-01  Bruno Haible  <bruno@clisp.org>
40366
40367         New ACL tests.
40368         * tests/test-file-has-acl.sh: New file.
40369         * tests/test-file-has-acl.c: New file.
40370         * tests/test-set-mode-acl.sh: New file.
40371         * tests/test-set-mode-acl.c: New file.
40372         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40373         * tests/test-copy-acl.c: New file.
40374         * modules/acl-tests: New file, based on modules/copy-file-tests.
40375         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40376         (Depends-on): Add acl-tests.
40377         (configure.ac): Remove checks.
40378         (Makefile.am): Don't create test-sameacls program here any more.
40379
40380 2008-06-01  Bruno Haible  <bruno@clisp.org>
40381
40382         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40383         * tests/test-sameacls.c: Include progname.h.
40384         (main): Invoke set_program_name. Portability fixes for MacOS X,
40385         Solaris, HP-UX.
40386
40387 2008-06-01  Bruno Haible  <bruno@clisp.org>
40388
40389         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40390         function.
40391         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40392
40393 2008-06-01  Bruno Haible  <bruno@clisp.org>
40394
40395         * modules/rpmatch (Depends-on): Add strdup.
40396
40397 2008-06-01  Bruno Haible  <bruno@clisp.org>
40398
40399         * lib/pipe.c: Include unistd-safer.h.
40400         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40401         * modules/pipe (Depends-on): Add unistd-safer.
40402
40403 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40404
40405         * modules/autobuild (configure.ac): Call AB_INIT.
40406
40407 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40408
40409         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40410         Suggested by Bruno Haible <bruno@clisp.org>.
40411
40412 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40413
40414         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40415         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40416         <bruno@clisp.org>.
40417
40418 2008-05-29  Eric Blake  <ebb9@byu.net>
40419
40420         Prefer new POSIX 200x interfaces over futimesat.
40421         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40422         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40423         when available.
40424         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40425
40426 2008-05-28  Bruno Haible  <bruno@clisp.org>
40427
40428         * modules/stpcpy (License): Change to LGPLv2+.
40429         Requested by David Lutterkort <dlutter@redhat.com>.
40430
40431 2008-05-27  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40434         current mingw.
40435         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40436
40437 2008-05-27  Bruno Haible  <bruno@clisp.org>
40438
40439         * modules/iconv_open (Link): New section, from module 'iconv'.
40440         * modules/striconv (Link): Likewise.
40441         * modules/striconveh (Link): Likewise.
40442         * modules/xstriconv (Link): Likewise.
40443         * modules/unicodeio (Link): Likewise.
40444         * modules/propername (Link): Likewise.
40445         Reported by Jim Meyering.
40446
40447 2008-05-26  Jim Meyering  <meyering@redhat.com>
40448
40449         sha256: do not artificially restrict buffer length to be < 2^32
40450         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40451         uint32_t to size_t.
40452         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40453         to match.
40454
40455         avoid unaligned access errors, e.g., on sparc
40456         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40457         direct access through a possibly-unaligned uint64* pointer.
40458         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40459         direct access through a possibly-unaligned uint32* pointer.
40460         Prompted by this patch from Tom "spot" Callaway:
40461         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40462
40463         sha512.c: fix typo in comment
40464         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40465
40466 2008-05-25  Bruno Haible  <bruno@clisp.org>
40467
40468         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40469         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40470         (Makefile.am): Update lib_SOURCES.
40471
40472 2008-05-25  Bruno Haible  <bruno@clisp.org>
40473
40474         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40475
40476 2008-05-25  Jim Meyering  <meyering@redhat.com>
40477
40478         useless-if-before-free: freed expr may have white-space differences
40479         * build-aux/useless-if-before-free: Recognize cases in which the
40480         freed expression differs from the tested one in embedded white
40481         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40482         $1 was used, so we can't make any regexp shy.  Improved tests now
40483         detect this.
40484
40485         useless-if-before-free: accept white space in the expression.
40486         * build-aux/useless-if-before-free: For now, any white space
40487         in the expression must be identical in the free argument.
40488
40489         useless-if-before-free: efficiency tweak
40490         * build-aux/useless-if-before-free: Make the expression-matching
40491         regexp "shy".
40492         Make the *outer* regexp shy, not the expr-matching one.
40493
40494         update code-in-comment to accept cast of free arg
40495         * build-aux/useless-if-before-free: Update regexp.
40496
40497 2008-05-25  Bruno Haible  <bruno@clisp.org>
40498
40499         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40500         * modules/copy-file-tests (Files, Makefile.am): Update.
40501         * tests/test-copy-file.c (func_test_copy): Update.
40502
40503 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40504
40505         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40506
40507 2008-05-23  Bruno Haible  <bruno@clisp.org>
40508
40509         Improve support for ACLs on OSF/1.
40510         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40511         Remove fallback for unknown flavors of ACLs.
40512
40513 2008-05-22  Bruno Haible  <bruno@clisp.org>
40514
40515         Add support for ACLs on OSF/1.
40516         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40517         replacements.
40518         (acl_free_text): New macro fallback.
40519         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40520         acl_free.
40521         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40522         acl_free_text function. Require AC_C_INLINE.
40523
40524 2008-05-22  Bruno Haible  <bruno@clisp.org>
40525
40526         Make copy_acl work on MacOS X 10.5.
40527         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40528         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40529         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40530         If MODE_INSIDE_ACL, don't assume that every system has the same text
40531         representation for ACLs as FreeBSD.
40532         * lib/copy-acl.c (copy_acl): Add support for platforms with
40533         !MODE_INSIDE_ACL.
40534         * lib/file-has-acl.c (file_has_acl): Likewise.
40535         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40536         FreeBSD, MacOS X, or IRIX, respectively.
40537
40538 2008-05-22  Bruno Haible  <bruno@clisp.org>
40539
40540         * lib/acl.h: Don't include <sys/acl.h>.
40541         (GETACLCNT): Move fallback to lib/acl-internal.h.
40542         * lib/acl-internal.h: Include <sys/acl.h> here.
40543         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40544
40545 2008-05-22  Bruno Haible  <bruno@clisp.org>
40546
40547         Split off copy_acl function to separate file.
40548         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40549         * lib/acl.c (copy_acl): Moved function to separate file.
40550         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40551         * modules/acl (Files): Add lib/copy-acl.c.
40552         (Makefiles.am): Augment lib_SOURCES.
40553
40554 2008-05-22  Bruno Haible  <bruno@clisp.org>
40555
40556         * modules/copy-file-tests: New file.
40557         * tests/test-copy-file.sh: New file.
40558         * tests/test-copy-file.c: New file.
40559         * tests/test-copy-file-sameacls.c: New file.
40560
40561 2008-05-22  Eric Blake  <ebb9@byu.net>
40562
40563         Avoid gcc warning.
40564         * tests/test-memcmp.c (main): Pass NULL indirectly.
40565
40566 2008-05-21  Bruno Haible  <bruno@clisp.org>
40567
40568         Add reference doc about ACLs.
40569         * doc/acl-resources.txt: New file.
40570         * doc/acl-cygwin.txt: New file.
40571
40572 2008-05-21  Bruno Haible  <bruno@clisp.org>
40573
40574         Avoid one more warning from gcc.
40575         * lib/vasnprintf.c (IF_LINT): Update comments.
40576         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40577
40578 2008-05-21  Jim Meyering  <meyering@redhat.com>
40579
40580         avoid a warning from gcc
40581         * lib/vasnprintf.c (IF_LINT): Define.
40582         (scale10_round_decimal_long_double):
40583         Use it to avoid a "may be used uninitialized" warning.
40584         (scale10_round_decimal_double): Likewise.
40585
40586 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40587
40588         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40589         declared.
40590
40591 2008-05-20  Bruno Haible  <bruno@clisp.org>
40592
40593         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40594         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40595
40596 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40597
40598         * modules/memcmp-tests: New file.
40599         * tests/test-memcmp.c: New file.
40600
40601 2008-05-19  Bruno Haible  <bruno@clisp.org>
40602
40603         * modules/propername (Notice, configure.ac): Put quoted "..." into
40604         --keyword option.
40605         * lib/propername.h: Update comments accordingly.
40606         Reported by Eric Blake.
40607
40608 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40609
40610         * modules/getpass-gnu (Depends-on): Add fseeko.
40611
40612 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40613
40614         * modules/base64-tests: New file.
40615
40616 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40617
40618         * lib/base64.c (base64_decode_ctx): If a decode context structure
40619         was passed in use it to ignore newlines.  If a context structure
40620         was _not_ passed in, continue to treat newlines as garbage (this
40621         is the historical behavior).  Formerly base64_decode.
40622         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40623         takes a decode context structure.
40624         * lib/base64.h (base64_decode): Macro for four-argument calls.
40625         (base64_decode_alloc): Likewise.
40626         * lib/base64.c (base64_decode_ctx): If a decode context structure
40627         was passed in use it to ignore newlines.  If a context structure
40628         was _not_ passed in, continue to treat newlines as garbage (this
40629         is the historical behavior).  Formerly base64_decode.
40630         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40631         takes a decode context structure.
40632         * lib/base64.h (base64_decode): Macro for four-argument calls.
40633         (base64_decode_alloc): Likewise.
40634
40635 2008-05-19  Jim Meyering  <meyering@redhat.com>
40636
40637         avoid a warning from gcc
40638         * lib/trim.c (IF_LINT): Define.
40639         (trim2): Use it to avoid a "may be used uninitialized" warning.
40640
40641         Fix doc typo.
40642         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40643
40644 2008-05-19  Bruno Haible  <bruno@clisp.org>
40645
40646         * doc/glibc-functions/getpass.texi: Document limits of other
40647         implementations.
40648
40649 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40650             Bruno Haible <bruno@clisp.org>
40651
40652         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40653
40654 2008-05-18  Bruno Haible  <bruno@clisp.org>
40655
40656         * modules/propername: New file, from GNU gettext.
40657         * lib/propername.h: New file, from GNU gettext.
40658         * lib/propername.c: New file, from GNU gettext.
40659         * MODULES.html.sh (Internationalization functions): Add propername.
40660
40661 2008-05-16  Jim Meyering  <meyering@redhat.com>
40662             Bruno Haible  <bruno@clisp.org>
40663
40664         Avoid some warnings from "gcc -Wshadow".
40665         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40666
40667 2008-05-15  Eric Blake  <ebb9@byu.net>
40668
40669         Extend previous patch to cygwin 1.7.0.
40670         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40671         fast implementation in cygwin >= 1.7.0.
40672         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40673         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40674
40675 2008-05-15  Bruno Haible  <bruno@clisp.org>
40676
40677         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40678         implementation in glibc >= 2.9.
40679         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40681
40682 2008-05-15  Bruno Haible  <bruno@clisp.org>
40683
40684         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40685         (Unicode string functions): Add unilbrk/*.
40686         Reported by Karl Berry.
40687
40688 2008-05-15  Eric Blake  <ebb9@byu.net>
40689
40690         Fix violation of <stdbool.h> replacement in regex.
40691         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40692         * lib/regexec.c (re_search_internal): Likewise.
40693         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40694
40695 2008-05-15  Jim Meyering  <meyering@redhat.com>
40696
40697         avoid distracting test output when git or cvs is not found
40698         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40699         * tests/test-vc-list-files-git.sh: Likewise.
40700
40701 2008-05-15  Eric Blake  <ebb9@byu.net>
40702
40703         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40704         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40705         glibc version.
40706         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40707         * doc/posix-functions/strstr.texi (strstr): Likewise.
40708         * lib/str-two-way.h (MAX): Sychronize with glibc.
40709
40710 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40711
40712         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40713         opr.ctx_type.
40714         (calc_first): Initialize constraint field.
40715         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40716         Fix grammar.
40717         (duplicate_node): Merge constraint field for all node types.
40718         (calc_eclosure_iter): Look at constraint field for all node types.
40719         * lib/regex_internal.c (create_cd_newstate): Don't look at
40720         opr.ctx_type.
40721
40722 2008-05-14  Bruno Haible  <bruno@clisp.org>
40723
40724         Help GCC to do better code generation.
40725         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40726         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40727         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40728         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40729         Declare with attribute 'malloc' if supported.
40730
40731 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40732
40733         use "echo STR|wc -c" rather than unportable "expr length STR"
40734         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40735         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40736
40737 2008-05-14  Jim Meyering  <meyering@redhat.com>
40738
40739         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40740         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40741         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40742         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40743         via Collin Lasse.
40744
40745 2008-05-14  Eric Blake  <ebb9@byu.net>
40746
40747         Avoid quadratic growth in gl_LIBSOURCES.
40748         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40749         Suggested by Bruno Haible.
40750
40751         Test xmemdup0.
40752         * modules/xmemdup0-tests: New file.
40753         * tests/test-xmemdup0.c: Likewise.
40754
40755 2008-05-13  Eric Blake  <ebb9@byu.net>
40756
40757         Split xmemdup0 into its own module.
40758         * modules/xmemdup0: New file.
40759         * lib/xmemdup0.h: Likewise.
40760         * lib/xmemdup0.c: Likewise.
40761         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40762         * lib/xalloc.h (xmemdup0): Remove.
40763         * lib/xmalloc.c (xmemdup0): Likewise.
40764
40765 2008-05-13  Eric Blake  <ebb9@byu.net>
40766             Bruno Haible  <bruno@clisp.org>
40767
40768         Reduce number of forks required during autoconf.
40769         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40770         and gl_LIBSOURCES_DIR.
40771         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40772         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40773         m4_syscmd per file.
40774         <m4_foreach_w>: Move...
40775         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40776
40777 2008-05-13  Eric Blake  <ebb9@byu.net>
40778
40779         * gnulib-tool: Fix various comment typos.
40780
40781 2008-05-12  Bruno Haible  <bruno@clisp.org>
40782
40783         Tailor the linebreaking algorithm.
40784         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40785
40786 2008-05-12  Bruno Haible  <bruno@clisp.org>
40787
40788         Update to Unicode 5.0.0.
40789         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40790         LBP_JV, LBP_JT. Redistribute values.
40791         (unilbrk_table): Change size.
40792         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40793         Unicode TR#14 rev. 22.
40794         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40795         LBP_JV, LBP_JT. Redistribute values.
40796         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40797         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40798         Update.
40799         * lib/unilbrk/lbrkprop1.h: Regenerated.
40800         * lib/unilbrk/lbrkprop2.h: Regenerated.
40801         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40802         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40803         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40804         Likewise.
40805         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40806         Likewise.
40807         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40808         result.
40809         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40810         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40811         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40812         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40813         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40814         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40815
40816 2008-05-11  Bruno Haible  <bruno@clisp.org>
40817
40818         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40819
40820 2008-05-11  Bruno Haible  <bruno@clisp.org>
40821
40822         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40823         * modules/unilbrk/gen-lbrk: New file.
40824
40825 2008-05-11  Bruno Haible  <bruno@clisp.org>
40826
40827         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40828         * m4/sha512.m4 (gl_SHA512): Likewise.
40829
40830 2008-05-11  Jim Meyering  <meyering@redhat.com>
40831
40832         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40833         * modules/crypto/sha256: New file.
40834         * modules/crypto/sha512: Likewise.
40835         * lib/sha256.c: Likewise.
40836         * lib/sha256.h: Likewise.
40837         * lib/sha512.c: Likewise.
40838         * lib/sha512.h: Likewise.
40839         * lib/u64.h: Likewise.
40840         * m4/sha256.m4: Likewise.
40841         * m4/sha512.m4: Likewise.
40842         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40843
40844 2008-05-10  Bruno Haible  <bruno@clisp.org>
40845
40846         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40847         (Input/Output <stdio.h>): Add xprintf.
40848         (Signal handling <signal.h>): Add strsignal.
40849         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40850         (Core language properties): Add func.
40851         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40852         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40853         strings.
40854         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40855         (Input/output): New section.
40856         (File system functions): Add openat-die, stat-macros.
40857         (Networking functions): Add sockets.
40858         (Unicode string functions): Add unictype/*.
40859         (Support for building libraries and executables): Add gperf.
40860         (Support for building documentation): Add agpl-3.0.
40861         (Misc): Add nocrash.
40862
40863 2008-05-10  Bruno Haible  <bruno@clisp.org>
40864
40865         * modules/unictype/gen-ctype: New file.
40866
40867 2008-05-10  Jim Meyering  <meyering@redhat.com>
40868
40869         Make chdir-safer.c more efficient on a system with no symlinks.
40870         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40871         also if ELOOP is zero.  Suggested by Bruno Haible.
40872
40873         Make chdir-safer.c slightly safer.
40874         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40875         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40876
40877         Avoid compile failure on systems without ELOOP (like mingw).
40878         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40879         Reported by Bruno Haible.
40880
40881 2008-05-10  Bruno Haible  <bruno@clisp.org>
40882
40883         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40884         (is_utf8_encoding): Use a case-insensitive comparison.
40885         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40886         streq.
40887
40888 2008-05-10  Bruno Haible  <bruno@clisp.org>
40889
40890         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40891         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40892         * lib/unilbrk/ulc-common.h (iconv_string_length,
40893         iconv_string_keeping_offsets): Remove declarations.
40894         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40895         Don't include <iconv.h>, streq.h, xsize.h.
40896         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40897         conversion.
40898         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40899         <iconv.h>, streq.h, xsize.h.
40900         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40901         conversion.
40902         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40903         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40904         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40905         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40906
40907 2008-05-10  Bruno Haible  <bruno@clisp.org>
40908
40909         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40910         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40911
40912         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40913         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40914
40915         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40916         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40917
40918         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40919         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40920
40921         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40922         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40923
40924         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40925         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40926
40927         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40928         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40929
40930         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40931         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40932
40933 2008-05-10  Bruno Haible  <bruno@clisp.org>
40934
40935         Split up 'linebreak' module.
40936         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40937         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40938         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40939         modifications.
40940         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40941         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40942         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40943         lib/linebreak.c.
40944         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40945         lib/linebreak.c.
40946         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40947         lib/linebreak.c.
40948         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40949         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40950         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40951         lib/linebreak.c.
40952         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40953         lib/linebreak.c.
40954         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40955         lib/linebreak.c.
40956         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40957         lib/linebreak.c.
40958         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40959         lib/linebreak.c.
40960         * modules/unilbrk/base: New file.
40961         * modules/unilbrk/tables: New file.
40962         * modules/unilbrk/u8-possible-linebreaks: New file.
40963         * modules/unilbrk/u16-possible-linebreaks: New file.
40964         * modules/unilbrk/u32-possible-linebreaks: New file.
40965         * modules/unilbrk/ulc-common: New file.
40966         * modules/unilbrk/ulc-possible-linebreaks: New file.
40967         * modules/unilbrk/u8-width-linebreaks: New file.
40968         * modules/unilbrk/u16-width-linebreaks: New file.
40969         * modules/unilbrk/u32-width-linebreaks: New file.
40970         * modules/unilbrk/ulc-width-linebreaks: New file.
40971         * lib/linebreak.h: Remove file.
40972         * lib/linebreak.c: Remove file.
40973         * m4/linebreak.m4: Remove file.
40974         * modules/linebreak: Remove file.
40975         * NEWS: Mention the changes.
40976
40977 2008-05-09  Eric Blake  <ebb9@byu.net>
40978
40979         Add xmemdup0.
40980         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40981         implementation.
40982         * lib/xmalloc.c (xmemdup0): New C implementation.
40983
40984 2008-05-08  Bruno Haible  <bruno@clisp.org>
40985
40986         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40987
40988 2008-05-07  Eric Blake  <ebb9@byu.net>
40989
40990         Support cross-compilation of <wctype.h>.
40991         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40992         AC_CACHE_CHECK.
40993
40994 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40995
40996         * build-aux/vc-list-files: Add support for bzr.
40997
40998 2008-05-03  Jim Meyering  <meyering@redhat.com>
40999
41000         avoid failed assertion with tight malloc
41001         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41002
41003 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41004
41005         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41006         are needed from arpa/inet.h.
41007         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41008         Reported by Bruno Haible.
41009
41010 2008-05-02  Jim Meyering  <meyering@redhat.com>
41011
41012         avoid compilation error on FreeBSD 6
41013         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41014
41015 2008-05-01  Jim Meyering  <meyering@redhat.com>
41016
41017         useless-if-before-free: correct --help's exit status description
41018         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41019         for one or more matches, etc.  Reported by Bruno Haible.
41020
41021         vc-list-files: make the stand-alone gnulib test work
41022         * modules/vc-list-files-tests (configure.ac):
41023         Define and AC_SUBST abs_aux_dir.
41024         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41025         $(abs_top_srcdir) to each script and having each of them
41026         duplicate the work of setting PATH, set PATH here, using
41027         the new variable, abs_aux_dir instead.
41028         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41029         * tests/test-vc-list-files-git.sh: Likewise.
41030         Reported by Bruno Haible.
41031
41032 2008-05-01  Bruno Haible  <bruno@clisp.org>
41033
41034         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41035         reallocation. Rename 'done' to 'found_delimiter'.
41036
41037 2008-05-01  Jim Meyering  <meyering@redhat.com>
41038
41039         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41040         * build-aux/vc-list-files: Use `...`, not $(...).
41041
41042 2008-04-30  Jim Meyering  <meyering@redhat.com>
41043
41044         add tests for vc-list-files
41045         * modules/vc-list-files-tests: New module.
41046         * tests/test-vc-list-files-cvs.sh: New file.
41047         * tests/test-vc-list-files-git.sh: New file.
41048
41049         avoid a warning from gcc
41050         * lib/getndelim2.c (IF_LINT): Define.
41051         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41052
41053         vc-list-files: work properly with build-aux/cvsu, too
41054         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41055         to all cvs-based clauses.
41056
41057         vc-list-files: work properly in the CVS+awk case, too
41058         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41059
41060         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41061         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41062         take more than one file argument, so .  Add quotes, just in case $dir
41063         ever contains a shell meta-character.  Prompted by Soren Hansen in
41064         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41065
41066 2008-04-29  Eric Blake  <ebb9@byu.net>
41067
41068         Optimize getndelim2 to use block operations when possible.
41069         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41070         freadseek, and memchr2.
41071         * lib/getndelim2.c (getndelim2): Use them for block reads.
41072
41073 2008-04-29  Bruno Haible  <bruno@clisp.org>
41074
41075         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41076         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41077         * modules/inet_ntop (Depends-on): Add extensions.
41078         * modules/inet_pton (Depends-on): Likewise.
41079         Reported by Simon Josefsson.
41080
41081 2008-04-29  Jim Meyering  <meyering@redhat.com>
41082
41083         When the is more than one match in a block, match all of them.
41084         * build-aux/useless-if-before-free: Iterate through each block
41085         until there are no more matches.
41086
41087         Fix broken useless-if-before-free script.
41088         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41089         the expression to match cast of argument to free-like function.
41090
41091 2008-04-29  Eric Blake  <ebb9@byu.net>
41092
41093         Use new header.
41094         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41095
41096 2008-04-29  Jim Meyering  <meyering@redhat.com>
41097
41098         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41099         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41100         by gnulib to exist and to declare e.g., inet_ntop.
41101         Don't include "inet_ntop.h", now removed.
41102
41103         * m4/arpa_inet_h.m4: Remove trailing blanks.
41104
41105 2008-04-29  Eric Blake  <ebb9@byu.net>
41106
41107         Silence valgrind on safe reads beyond potential array bounds.
41108         * lib/rawmemchr.valgrind: New file.
41109         * lib/strchrnul.valgrind: Likewise.
41110         * modules/rawmemchr (Files): Distribute new file.
41111         * modules/strchrnul (Files): Likewise.
41112         Suggested by Bruno Haible.
41113
41114 2008-04-29  Bruno Haible  <bruno@clisp.org>
41115
41116         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41117         (inet_ntop, inet_pton): Change portability warning's wording.
41118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41119         Invoke gl_CHECK_NEXT_HEADERS.
41120         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41121         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41122         set ARPA_INET_H.
41123         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41124         * modules/arpa_inet (Description): No longer only for systems that
41125         lack it.
41126         (Depends-on): Add include_next.
41127         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41128         HAVE_ARPA_INET_H.
41129
41130 2008-04-29  Jim Meyering  <meyering@redhat.com>
41131
41132         * modules/mkdir (License): Re-license as LGPLv2+.
41133
41134 2008-04-29  Bruno Haible  <bruno@clisp.org>
41135
41136         * modules/rawmemchr (Maintainer): Set to Eric.
41137         * modules/strchrnul (Maintainer): Likewise.
41138
41139 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41140
41141         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41142         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41143
41144         * modules/arpa_inet (arpa/inet.h): Use them.
41145
41146 2008-04-28  Eric Blake  <ebb9@byu.net>
41147
41148         Test getndelim2.
41149         * modules/getndelim2-tests: New file.
41150         * tests/test-getndelim2.c: Likewise.
41151         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41152         stream.
41153         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41154
41155         * MODULES.html.sh: Document new module.
41156
41157 2008-04-20  Bruno Haible  <bruno@clisp.org>
41158
41159         * lib/c-stack.c (die): Use raise.
41160         * modules/c-stack (Depends-on): Add raise.
41161
41162 2008-04-28  Bruno Haible  <bruno@clisp.org>
41163
41164         Expect rpmatch to be declared.
41165         * lib/yesno.c (rpmatch): Remove declaration.
41166
41167         Declare rpmatch.
41168         * lib/stdlib.in.h (rpmatch): New declaration.
41169         * lib/rpmatch.c: Include <stdlib.h> first.
41170         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41171         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41173         HAVE_RPMATCH.
41174         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41175         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41176         (Include): Set to <stdlib.h>.
41177         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41178         HAVE_RPMATCH.
41179         * NEWS: Document the change.
41180
41181 2008-04-28  Bruno Haible  <bruno@clisp.org>
41182
41183         Change rpmatch to use nl_langinfo when appropriate.
41184         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41185         (N_): New macro.
41186         (localized_pattern): New function/macro.
41187         (try): Remove match, nomatch arguments. Copy the pattern into safe
41188         memory before caching it.
41189         (rpmatch): Use localized_pattern. Add translator comments.
41190         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41191         Suggested by Eric Blake.
41192         * modules/rpmatch (Depends-on): Add stdbool.
41193
41194 2008-04-28  Eric Blake  <ebb9@byu.net>
41195
41196         Add rawmemchr module, matching glibc.
41197         * modules/string (Makefile.am): New indicator.
41198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41199         * lib/string.in.h (rawmemchr): Declare when appropriate.
41200         * modules/rawmemchr: New file.
41201         * m4/rawmemchr.m4: Likewise.
41202         * lib/rawmemchr.c: Likewise.
41203         * modules/rawmemchr-tests: Likewise.
41204         * tests/test-rawmemchr.c: Likewise.
41205         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41206         module.
41207         * modules/strchrnul (Depends-on): Add rawmemchr.
41208         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41209
41210         Whitespace cleanup.
41211         * tests/test-strchrnul.c: Reindent.
41212         * lib/strchrnul.c: Likewise.
41213
41214         Optimize and test strchrnul.
41215         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41216         * modules/strchrnul-tests: New file.
41217         * tests/test-strchrnul.c: Likewise.
41218
41219         Remove intprops dependency.
41220         * modules/memchr (Depends-on): Remove intprops.
41221         * modules/memrchr (Depends-on): Likewise.
41222         * modules/memchr2 (Depends-on): Likewise.
41223         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41224         * lib/memrchr.c (__memrchr): Likewise.
41225         * lib/memrchr2.c (memchr2): Likewise.
41226         Reported by Simon Josefsson.
41227
41228 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41229
41230         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41231         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41232
41233 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41234
41235         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41236
41237         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41238
41239         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41240
41241         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41242         declarations.
41243         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41244
41245         * m4/inet_pton.m4: Don't check for header files.
41246
41247         * m4/inet_ntop.m4: Don't check for header files.
41248
41249 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41250
41251         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41252         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41253         trigger for cygwin).
41254         Reported by Bruno Haible  <bruno@clisp.org>.
41255
41256 2008-04-28  Bruno Haible  <bruno@clisp.org>
41257
41258         * doc/posix-functions/strdup.texi: Mention mingw problem.
41259
41260 2008-04-27  Bruno Haible  <bruno@clisp.org>
41261
41262         * modules/stat-time-tests (Depends-on): Add sleep.
41263         * tests/test-stat-time.c (force_unlink): New function.
41264         (cleanup): Use it.
41265         (test_mtime): Remove the ctime related tests.
41266         (test_ctime): New function, containing the ctime related tests.
41267         (main): Call test_ctime, except on native Windows platforms.
41268
41269 2008-04-27  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/rpmatch.c (rpmatch): Add some comments.
41272         Reported by James Youngman <jay@gnu.org>.
41273
41274 2008-04-27  Bruno Haible  <bruno@clisp.org>
41275
41276         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41277         quiet NaNs.
41278
41279 2008-04-27  Bruno Haible  <bruno@clisp.org>
41280
41281         Make test-yesno.sh work on mingw.
41282         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41283         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41284         (main): Set stdin to binary mode.
41285         * modules/yesno-tests (Depends-on): Add binary-io.
41286
41287 2008-04-27  Bruno Haible  <bruno@clisp.org>
41288
41289         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41290         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41291         argument that lie outside the IEEE 854 domain.
41292         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41293         (gl_ISFINITE): Use it.
41294         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41295
41296 2008-04-27  Bruno Haible  <bruno@clisp.org>
41297
41298         Allow local renaming in config.h.
41299         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41300
41301 2008-04-27  Bruno Haible  <bruno@clisp.org>
41302
41303         * lib/memchr.c (__memchr): Change type of 'i'.
41304         * lib/memchr2.c (memchr2): Likewise.
41305
41306 2008-04-26  Eric Blake  <ebb9@byu.net>
41307         and Bruno Haible  <bruno@clisp.org>
41308
41309         Optimize and test memrchr.
41310         * modules/memrchr (Depends-on): Add intprops.
41311         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41312         * modules/memrchr-tests: New file.
41313         * tests/test-memrchr.c: New file.
41314
41315 2008-04-26  Bruno Haible  <bruno@clisp.org>
41316
41317         Add tentative support for DragonFly BSD.
41318         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41319         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41320         fp.
41321         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41322         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41323         * lib/fpurge.c (fpurge): Likewise.
41324         * lib/freadable.c (freaadable): Likewise.
41325         * lib/freadahead.c (freadahead): Likewise.
41326         * lib/freading.c (freading): Likewise.
41327         * lib/freadptr.c (freadptr): Likewise.
41328         * lib/freadseek.c (freadptrinc): Likewise.
41329         * lib/fseeko.c (fseeko): Likewise.
41330         * lib/fseterr.c (fseterr): Likewise.
41331         * lib/fwritable.c (fwritable): Likewise.
41332         * lib/fwriting.c (fwriting): Likewise.
41333
41334 2008-04-26  Bruno Haible  <bruno@clisp.org>
41335
41336         * lib/stdio-impl.h: New file.
41337         * lib/fbufmode.c: Include stdio-impl.h.
41338         (fbufmode): Use fp_, remove redundant #defines.
41339         * lib/fflush.c: Include stdio-impl.h.
41340         (clear_ungetc_buffer): Remove redundant #defines.
41341         * lib/fpurge.c: Include stdio-impl.h.
41342         (fpurge): Remove redundant #defines.
41343         * lib/freadable.c: Include stdio-impl.h.
41344         (freadable): Remove redundant #defines.
41345         * lib/freadahead.c: Include stdio-impl.h.
41346         (freadahead): Remove redundant #defines.
41347         * lib/freading.c: Include stdio-impl.h.
41348         (freading): Remove redundant #defines.
41349         * lib/freadptr.c: Include stdio-impl.h.
41350         (freadptr): Remove redundant #defines.
41351         * lib/freadseek.c: Include stdio-impl.h.
41352         (freadptrinc): Remove redundant #defines.
41353         * lib/fseeko.c: Include stdio-impl.h.
41354         (rpl_fseeko): Remove redundant #defines.
41355         * lib/fseterr.c: Include stdio-impl.h.
41356         (fseterr): Remove redundant #defines.
41357         * lib/fwritable.c: Include stdio-impl.h.
41358         (fwritable: Remove redundant #defines.
41359         * lib/fwriting.c: Include stdio-impl.h.
41360         (fwriting): Remove redundant #defines.
41361         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41362         * modules/fflush (Files): Likewise.
41363         * modules/fpurge (Files): Likewise.
41364         * modules/freadable (Files): Likewise.
41365         * modules/freadahead (Files): Likewise.
41366         * modules/freading (Files): Likewise.
41367         * modules/freadptr (Files): Likewise.
41368         * modules/freadseek (Files): Likewise.
41369         * modules/fseeko (Files): Likewise.
41370         * modules/fseterr (Files): Likewise.
41371         * modules/fwritable (Files): Likewise.
41372         * modules/fwriting (Files): Likewise.
41373
41374 2008-04-26  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41377         restore_seek_optimization, update_fpos_cache): New functions, extracted
41378         from rpl_fflush.
41379         (rpl_fflush): Use them.
41380         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41381         (gl_REPLACE_FFLUSH): Use it.
41382
41383 2008-04-26  Bruno Haible  <bruno@clisp.org>
41384
41385         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41386         on Solaris.
41387         * tests/test-xstrtoimax.sh: Likewise.
41388         * tests/test-xstrtoumax.sh: Likewise.
41389         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41390
41391 2008-04-26  Bruno Haible  <bruno@clisp.org>
41392
41393         * modules/memchr-tests: New file.
41394         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41395
41396 2008-04-26  Eric Blake  <ebb9@byu.net>
41397             Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/memchr.c: Include intprops.h.
41400         (__memchr): Optimize parallel detection of matching bytes. Rename local
41401         variables. Add explanatory comments.
41402
41403 2008-04-26  Bruno Haible  <bruno@clisp.org>
41404
41405         Fix module 'memchr', broken since 2000-10-28.
41406         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41407
41408 2008-04-26  Bruno Haible  <bruno@clisp.org>
41409
41410         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41411         comments.
41412
41413 2008-04-25  Eric Blake  <ebb9@byu.net>
41414
41415         Use native fstatat on cygwin 1.7.0.
41416         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41417         first.
41418
41419 2008-04-23  Eric Blake  <ebb9@byu.net>
41420
41421         Improve memchr2 performance.
41422         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41423         NUL bytes.
41424         * modules/memchr2 (Depends-on): Use intprops.h.
41425
41426 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41427
41428         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41429         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41430         <blp@cs.stanford.edu>.
41431
41432 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41433
41434         * lib/arpa_inet.in.h: New file.
41435
41436         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41437         (Makefile.am): Sed in substitute header file.
41438
41439         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41440         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41441
41442         * modules/inet_ntop (configure.ac): Use
41443         gl_ARPA_INET_MODULE_INDICATOR.
41444
41445         * modules/inet_pton (configure.ac): Use
41446         gl_ARPA_INET_MODULE_INDICATOR.
41447
41448 2008-04-22  Jim Meyering  <meyering@redhat.com>
41449
41450         * modules/verify (License): Re-license as LGPLv2+.
41451
41452 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41453
41454         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41455         parameter to void* as per POSIX standard (MinGW uses char*).
41456
41457 2008-04-21  Bruno Haible  <bruno@clisp.org>
41458
41459         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41460         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41461         Define to replacements if REPLACE_ISWCNTRL is 1.
41462         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41463         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41464         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41465         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41466         what it fixes.
41467         * doc/posix-functions/iswalpha.texi: Likewise.
41468         * doc/posix-functions/iswblank.texi: Likewise.
41469         * doc/posix-functions/iswcntrl.texi: Likewise.
41470         * doc/posix-functions/iswdigit.texi: Likewise.
41471         * doc/posix-functions/iswgraph.texi: Likewise.
41472         * doc/posix-functions/iswlower.texi: Likewise.
41473         * doc/posix-functions/iswprint.texi: Likewise.
41474         * doc/posix-functions/iswpunct.texi: Likewise.
41475         * doc/posix-functions/iswspace.texi: Likewise.
41476         * doc/posix-functions/iswupper.texi: Likewise.
41477         * doc/posix-functions/iswxdigit.texi: Likewise.
41478         Reported by Alain Guibert.
41479
41480 2008-04-21  Bruno Haible  <bruno@clisp.org>
41481
41482         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41483         Patch by Alain Guibert.
41484
41485 2008-04-21  Bruno Haible  <bruno@clisp.org>
41486
41487         Fix test failures on mingw.
41488         * tests/test-xstrtol.c (print_no_progname): New function.
41489         (main): Install it in error_print_progname hook.
41490         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41491         * tests/test-xstrtoimax.sh: Likewise.
41492         * tests/test-xstrtoumax.sh: Likewise.
41493
41494 2008-04-21  Bruno Haible  <bruno@clisp.org>
41495
41496         Fix test failure on mingw.
41497         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41498
41499 2008-04-21  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41502         Actually assign a value.
41503
41504 2008-04-20  Bruno Haible  <bruno@clisp.org>
41505
41506         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41507         take 2.
41508         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41509         'canonicalize-lgpl' module is also used.
41510         * lib/canonicalize-lgpl.c: Undo last change.
41511         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41512
41513 2008-04-20  Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41516         config.h. Provide _mkdir based fallback for mingw.
41517         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41518         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41519         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41520         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41521         rather than defining mkdir in config.h.
41522         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41523         (gl_SYS_STAT_H_DEFAULTS): New macro.
41524         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41525         HAVE_IO_H any more.
41526         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41527         HAVE_DECL_MKDIR and HAVE_IO_H.
41528
41529 2008-04-20  Bruno Haible  <bruno@clisp.org>
41530
41531         * lib/isapipe.c: Port to native Windows platforms.
41532
41533 2008-04-20  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41536
41537 2008-04-21  Eric Blake  <ebb9@byu.net>
41538
41539         Work around preprocessors that don't handle UINTMAX_MAX.
41540         * lib/memchr2.c (memchr2): Avoid embedded #if.
41541         Reported by Alain Guibert, fix suggested by Bruno Haible.
41542
41543 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41544
41545         * doc/posix-functions/strftime.texi (strftime): Explain better
41546         Windows incompatibility.  Suggested by Micah Cowan
41547         <micah@cowan.name>.
41548
41549 2008-04-20  Bruno Haible  <bruno@clisp.org>
41550
41551         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41552         unistr/u8-mblen.
41553
41554 2008-04-20  Bruno Haible  <bruno@clisp.org>
41555
41556         Fix test failure on platforms with non-GNU iconv.
41557         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41558         (U_TO_U8): Use it, rather than u16_to_u8.
41559         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41560         units at the end of the input string.
41561         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41562
41563 2008-04-20  Bruno Haible  <bruno@clisp.org>
41564
41565         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41566         when the resulting length is 0.
41567         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41568
41569 2008-04-20  Bruno Haible  <bruno@clisp.org>
41570
41571         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41572         works.
41573         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41574
41575 2008-04-20  Bruno Haible  <bruno@clisp.org>
41576
41577         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41578         * modules/tsearch-tests (configure.ac): Test for initstate function.
41579
41580 2008-04-20  Bruno Haible  <bruno@clisp.org>
41581
41582         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41583         for nlink_t if missing.
41584         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41585
41586 2008-04-19  Bruno Haible  <bruno@clisp.org>
41587
41588         Work around snprintf bug on Linux libc5.
41589         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41590         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41591         gl_SNPRINTF_SIZE1.
41592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41593         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41594         that test failed.
41595         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41596         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41597         * modules/snprintf (Files): Add m4/printf.m4.
41598         * modules/vsnprintf (Files): Likewise.
41599         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41600         * doc/posix-functions/vsnprintf.texi: Likewise.
41601
41602 2008-04-19  Bruno Haible  <bruno@clisp.org>
41603
41604         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41605         from 0.0058 to less than 10^-7.
41606
41607 2008-04-19  Bruno Haible  <bruno@clisp.org>
41608
41609         Fix rounding when a precision is given.
41610         * lib/vasnprintf.c (is_borderline): New function.
41611         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41612         9...9x.
41613         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41614         %e, %g.
41615         * tests/test-vasprintf-posix.c (test_function): Likewise.
41616         * tests/test-snprintf-posix.h (test_function): Likewise.
41617         * tests/test-sprintf-posix.h (test_function): Likewise.
41618         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41619         * tests/test-printf-posix.h (test_function): Likewise.
41620         * tests/test-printf-posix.output: Update.
41621         Reported by John Darrington <john@darrington.wattle.id.au> via
41622         Ben Pfaff <blp@cs.stanford.edu>.
41623
41624 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41625
41626         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41627         Suggested by Bruno Haible <bruno@clisp.org>.
41628
41629 2008-04-17  Bruno Haible  <bruno@clisp.org>
41630
41631         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41632         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41633         implementation.
41634         Patch by Bruce Merry <bmerry@gmail.com>.
41635
41636 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41637
41638         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41639         doesn't work under Windows.
41640
41641 2008-04-16  Bruno Haible  <bruno@clisp.org>
41642
41643         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41644         New macros.
41645         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41646         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41647         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41648         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41649         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41650         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41651         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41652         macros.
41653         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41654         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41655         Northern Sotho, Uighur.
41656
41657 2008-04-16  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41660         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41661         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41662         Reported by Daniel Bergström <daniel@octocode.com>.
41663
41664 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41665             Bruno Haible  <bruno@clisp.org>
41666
41667         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41668         function.
41669         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41670         New functions, mostly extracted from gl_locale_name_default.
41671         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41672
41673 2008-04-16  Eric Blake  <ebb9@byu.net>
41674
41675         Adjust strtod detection to catch glibc 2.7 bug.
41676         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41677         Reported by John Gatewood Ham.
41678
41679 2008-04-16  Bruno Haible  <bruno@clisp.org>
41680
41681         Add tentative support for Linux libc5.
41682         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41683         * lib/fpurge.c (fpurge): Likewise.
41684         * lib/freadable.c (freadable): Likewise.
41685         * lib/freadahead.c (freadahead): Likewise.
41686         * lib/freading.c (freading): Likewise.
41687         * lib/freadptr.c (freadptr): Likewise.
41688         * lib/freadseek.c (freadptrinc): Likewise.
41689         * lib/fseeko.c (rpl_fseeko): Likewise.
41690         * lib/fseterr.c (fseterr): Likewise.
41691         * lib/fwritable.c (fwritable): Likewise.
41692         * lib/fwriting.c (fwriting): Likewise.
41693         Reported by Alain Guibert <alguibert+bts@free.fr>.
41694
41695 2008-04-15  Bruno Haible  <bruno@clisp.org>
41696
41697         * modules/mathl (configure.ac): Define module indicator.
41698
41699 2008-04-15  Bruno Haible  <bruno@clisp.org>
41700
41701         * lib/logl.c (logl): Remove unused variables.
41702
41703 2008-04-15  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41706         fails.
41707
41708 2008-04-15  Bruno Haible  <bruno@clisp.org>
41709
41710         * lib/trim.c (trim2): Fix argument of isspace() macro.
41711
41712 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41713
41714         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41715         to 0.
41716         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41717
41718 2008-04-14  Bruno Haible  <bruno@clisp.org>
41719
41720         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41721         AC_LANG_PROGRAM argument.
41722         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41723         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41724         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41725         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41726         * m4/math_h.m4 (gl_MATH_H): Likewise.
41727         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41729         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41730         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41731         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41732         * m4/regex.m4 (gl_REGEX): Likewise.
41733         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41734         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41736         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41737         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41738         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41739         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41740         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41741
41742 2008-04-14  Jim Meyering  <meyering@redhat.com>
41743
41744         test-strtod: fix typos: s/abs/fabs/
41745         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41746
41747 2008-04-13  Bruno Haible  <bruno@clisp.org>
41748
41749         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41750         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41751         module is also used and while not building the reloc-wrapper.
41752
41753 2008-04-13  Bruno Haible  <bruno@clisp.org>
41754
41755         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41756
41757 2008-04-13  Bruno Haible  <bruno@clisp.org>
41758
41759         Fix AIX compilation failure introduced on 2008-04-02.
41760         * tests/test-frexp.c (exp): Undefine before redefining.
41761         * tests/test-frexpl.c (exp): Likewise.
41762
41763 2008-04-13  Bruno Haible  <bruno@clisp.org>
41764
41765         Work around a HP-UX stdio bug.
41766         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41767         * tests/test-ftello.c (main): Likewise.
41768         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41769         * doc/posix-functions/ftello.texi: Likewise.
41770
41771 2008-04-13  Bruno Haible  <bruno@clisp.org>
41772
41773         Make test-signbit pass on HP-UX/hppa.
41774         * tests/test-signbit.c (minus_zerol): New variable.
41775         (test_signbitl): Use it.
41776
41777 2008-04-13  Bruno Haible  <bruno@clisp.org>
41778
41779         Make truncl work on OSF/1 4.0.
41780         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41781         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41782         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41784         HAVE_DECL_TRUNCL.
41785         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41786         HAVE_DECL_TRUNCL.
41787         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41788
41789 2008-04-13  Bruno Haible  <bruno@clisp.org>
41790
41791         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41792
41793 2008-04-13  Bruno Haible  <bruno@clisp.org>
41794
41795         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41796         expression, so as to avoid HP-UX 11 cc compiler bug.
41797
41798 2008-04-13  Bruno Haible  <bruno@clisp.org>
41799
41800         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41801
41802 2008-04-13  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/git-merge-changelog.c: Remove empty declaration outside of
41805         functions.
41806
41807 2008-04-13  Bruno Haible  <bruno@clisp.org>
41808
41809         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41810
41811 2008-04-13  Bruno Haible  <bruno@clisp.org>
41812
41813         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41814         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41816         also if it exists but lacks definitions of the SHUT_* macros.
41817         * modules/sys_socket (Description): Update.
41818         Reported by Elbert Pol <e.pol@chello.nl>.
41819
41820 2008-04-13  Bruno Haible  <bruno@clisp.org>
41821
41822         * lib/localcharset.c (OS2): Don't redefine if already defined.
41823         Reported by Elbert Pol <e.pol@chello.nl>.
41824
41825 2008-04-13  Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/binary-io.h [__EMX__]: Include <io.h>.
41828         Reported by Elbert Pol <e.pol@chello.nl>.
41829
41830 2008-04-12  Bruno Haible  <bruno@clisp.org>
41831
41832         * lib/fpucw.h: Enable the definitions also for x86_64.
41833         Needed for NetBSD/x86_64.
41834         Reported by Thomas Klausner <tk@giga.or.at>.
41835
41836 2008-04-12  Bruno Haible  <bruno@clisp.org>
41837
41838         * tests/test-strtod.c: Include isnand.h.
41839         (main): Use isnand instead of isnan.
41840         Reported by Jim Meyering.
41841
41842 2008-04-12  Bruno Haible  <bruno@clisp.org>
41843
41844         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41845         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41846
41847 2008-04-12  Jim Meyering  <meyering@redhat.com>
41848
41849         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41850
41851 2008-04-12  Bruno Haible  <bruno@clisp.org>
41852
41853         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41854         Reported by Elbert Pol <e.pol@chello.nl>.
41855
41856 2008-04-12  Eric Blake  <ebb9@byu.net>
41857
41858         Work around Solaris 10 math.h bug.
41859         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41860         (gl_MATH_H_DEFAULTS): Set up default.
41861         * modules/math (Makefile.am): Replace new indicators.
41862         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41863         * tests/test-math.c (main): Test this.
41864         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41865         * doc/posix-headers/math.texi (math.h): Mention bug.
41866         Reported by Nelson H. F. Beebe and Jim Meyering.
41867
41868 2008-04-11  Bruno Haible  <bruno@clisp.org>
41869
41870         Adapt to future versions of Apple GCC.
41871         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41872         Reported by Peter O'Gorman <peter@pogma.com>.
41873
41874 2008-04-11  Bruno Haible  <bruno@clisp.org>
41875
41876         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41877
41878 2008-04-11  Bruno Haible  <bruno@clisp.org>
41879
41880         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41881
41882         * modules/getaddrinfo-tests (Makefile.am): Define
41883         test_getaddrinfo_LDADD.
41884
41885 2008-04-11  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41888         (init): Fix syntax error.
41889         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41890         is declared.
41891
41892 2008-04-11  Bruno Haible  <bruno@clisp.org>
41893
41894         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41895         * modules/glob (Depends-on): Add stdbool.
41896
41897 2008-04-11  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/trim.c: Include <string.h>.
41900
41901 2008-04-11  Eric Blake  <ebb9@byu.net>
41902
41903         Avoid compile failure on OS/2.
41904         * lib/regex_internal.h (internal_function): Disable optimization
41905         on OS/2 (__EMX__), where it caused compiler error.
41906         Reported by Elbert Pol.
41907
41908 2008-04-11  Bruno Haible  <bruno@clisp.org>
41909
41910         Flush the standard error stream before aborting. Needed on mingw.
41911         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41912         * tests/test-array_list.c (ASSERT): Likewise.
41913         * tests/test-array_oset.c (ASSERT): Likewise.
41914         * tests/test-avltree_list.c (ASSERT): Likewise.
41915         * tests/test-avltree_oset.c (ASSERT): Likewise.
41916         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41917         * tests/test-binary-io.c (ASSERT): Likewise.
41918         * tests/test-byteswap.c (ASSERT): Likewise.
41919         * tests/test-c-ctype.c (ASSERT): Likewise.
41920         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41921         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41922         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41923         * tests/test-c-strstr.c (ASSERT): Likewise.
41924         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41925         * tests/test-canonicalize.c (ASSERT): Likewise.
41926         * tests/test-carray_list.c (ASSERT): Likewise.
41927         * tests/test-ceilf1.c (ASSERT): Likewise.
41928         * tests/test-ceilf2.c (ASSERT): Likewise.
41929         * tests/test-ceill.c (ASSERT): Likewise.
41930         * tests/test-count-one-bits.c (ASSERT): Likewise.
41931         * tests/test-fbufmode.c (ASSERT): Likewise.
41932         * tests/test-fflush2.c (ASSERT): Likewise.
41933         * tests/test-floorf1.c (ASSERT): Likewise.
41934         * tests/test-floorf2.c (ASSERT): Likewise.
41935         * tests/test-floorl.c (ASSERT): Likewise.
41936         * tests/test-fopen.c (ASSERT): Likewise.
41937         * tests/test-fpending.c (ASSERT): Likewise.
41938         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41939         * tests/test-fpurge.c (ASSERT): Likewise.
41940         * tests/test-freadable.c (ASSERT): Likewise.
41941         * tests/test-freadahead.c (ASSERT): Likewise.
41942         * tests/test-freading.c (ASSERT): Likewise.
41943         * tests/test-freadptr.c (ASSERT): Likewise.
41944         * tests/test-freadptr2.c (ASSERT): Likewise.
41945         * tests/test-freadseek.c (ASSERT): Likewise.
41946         * tests/test-freopen.c (ASSERT): Likewise.
41947         * tests/test-frexp.c (ASSERT): Likewise.
41948         * tests/test-frexpl.c (ASSERT): Likewise.
41949         * tests/test-fseek.c (ASSERT): Likewise.
41950         * tests/test-fseeko.c (ASSERT): Likewise.
41951         * tests/test-fstrcmp.c (ASSERT): Likewise.
41952         * tests/test-ftell.c (ASSERT): Likewise.
41953         * tests/test-ftello.c (ASSERT): Likewise.
41954         * tests/test-func.c (ASSERT): Likewise.
41955         * tests/test-fwritable.c (ASSERT): Likewise.
41956         * tests/test-fwriting.c (ASSERT): Likewise.
41957         * tests/test-getdelim.c (ASSERT): Likewise.
41958         * tests/test-getline.c (ASSERT): Likewise.
41959         * tests/test-i-ring.c (ASSERT): Likewise.
41960         * tests/test-iconv-utf.c (ASSERT): Likewise.
41961         * tests/test-iconv.c (ASSERT): Likewise.
41962         * tests/test-isfinite.c (ASSERT): Likewise.
41963         * tests/test-isnand.c (ASSERT): Likewise.
41964         * tests/test-isnanf.c (ASSERT): Likewise.
41965         * tests/test-isnanl.h (ASSERT): Likewise.
41966         * tests/test-ldexpl.c (ASSERT): Likewise.
41967         * tests/test-linked_list.c (ASSERT): Likewise.
41968         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41969         * tests/test-localename.c (ASSERT): Likewise.
41970         * tests/test-lseek.c (ASSERT): Likewise.
41971         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41972         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41973         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41974         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41975         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41976         * tests/test-mbschr.c (ASSERT): Likewise.
41977         * tests/test-mbscspn.c (ASSERT): Likewise.
41978         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41979         * tests/test-mbspbrk.c (ASSERT): Likewise.
41980         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41981         * tests/test-mbsrchr.c (ASSERT): Likewise.
41982         * tests/test-mbsspn.c (ASSERT): Likewise.
41983         * tests/test-mbsstr1.c (ASSERT): Likewise.
41984         * tests/test-mbsstr2.c (ASSERT): Likewise.
41985         * tests/test-mbsstr3.c (ASSERT): Likewise.
41986         * tests/test-memchr2.c (ASSERT): Likewise.
41987         * tests/test-memmem.c (ASSERT): Likewise.
41988         * tests/test-open.c (ASSERT): Likewise.
41989         * tests/test-printf-frexp.c (ASSERT): Likewise.
41990         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41991         * tests/test-printf-posix.c (ASSERT): Likewise.
41992         * tests/test-quotearg.c (ASSERT): Likewise.
41993         * tests/test-rbtree_list.c (ASSERT): Likewise.
41994         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41995         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41996         * tests/test-round1.c (ASSERT): Likewise.
41997         * tests/test-roundf1.c (ASSERT): Likewise.
41998         * tests/test-roundl.c (ASSERT): Likewise.
41999         * tests/test-signbit.c (ASSERT): Likewise.
42000         * tests/test-sleep.c (ASSERT): Likewise.
42001         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42002         * tests/test-snprintf.c (ASSERT): Likewise.
42003         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42004         * tests/test-stat-time.c (ASSERT): Likewise.
42005         * tests/test-strcasestr.c (ASSERT): Likewise.
42006         * tests/test-strerror.c (ASSERT): Likewise.
42007         * tests/test-striconv.c (ASSERT): Likewise.
42008         * tests/test-striconveh.c (ASSERT): Likewise.
42009         * tests/test-striconveha.c (ASSERT): Likewise.
42010         * tests/test-strsignal.c (ASSERT): Likewise.
42011         * tests/test-strstr.c (ASSERT): Likewise.
42012         * tests/test-strtod.c (ASSERT): Likewise.
42013         * tests/test-trunc1.c (ASSERT): Likewise.
42014         * tests/test-trunc2.c (ASSERT): Likewise.
42015         * tests/test-truncf1.c (ASSERT): Likewise.
42016         * tests/test-truncf2.c (ASSERT): Likewise.
42017         * tests/test-truncl.c (ASSERT): Likewise.
42018         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42019         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42020         * tests/test-vasnprintf.c (ASSERT): Likewise.
42021         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42022         * tests/test-vasprintf.c (ASSERT): Likewise.
42023         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42024         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42025         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42026         * tests/test-vsnprintf.c (ASSERT): Likewise.
42027         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42028         * tests/test-wcwidth.c (ASSERT): Likewise.
42029         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42030         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42031         * tests/test-xvasprintf.c (ASSERT): Likewise.
42032         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42033         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42034         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42035         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42036         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42037         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42038         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42039         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42040         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42041         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42042         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42043         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42044         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42045         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42046         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42047         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42048         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42049         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42050         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42051         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42052         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42053         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42054         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42055         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42056         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42057         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42058         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42059         * tests/unictype/test-combining.c (ASSERT): Likewise.
42060         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42061         * tests/unictype/test-digit.c (ASSERT): Likewise.
42062         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42063         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42064         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42065         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42066         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42067         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42068         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42069         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42070         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42071         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42072         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42073         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42074         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42075         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42076         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42077         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42078         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42079         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42080         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42081         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42082         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42083         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42084         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42085         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42086         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42087         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42088         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42089         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42090         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42091         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42092         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42093         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42094         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42095         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42096         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42097         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42098         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42099         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42100         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42101         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42102         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42103         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42104         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42105         Reported by Eric Blake.
42106
42107 2008-04-11  Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/wchar.in.h: Tweak comment.
42110
42111 2008-04-11  Bruno Haible  <bruno@clisp.org>
42112
42113         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42114         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42115         gl_COMMON.
42116         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42117
42118 2008-04-11  Bruno Haible  <bruno@clisp.org>
42119
42120         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42121
42122 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42123
42124         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42125         of attempting to use non-existing /dev/*random.  Based on patch
42126         from Adam Strzelecki <ono@java.pl> in
42127         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42128
42129 2008-04-08  Bruno Haible  <bruno@clisp.org>
42130
42131         Add tentative support for emx+gcc.
42132         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42133         * lib/fpurge.c (fpurge): Likewise.
42134         * lib/freadable.c (freadable): Likewise.
42135         * lib/freadahead.c (freadahead): Likewise.
42136         * lib/freading.c (freading): Likewise.
42137         * lib/freadptr.c (freadptr): Likewise.
42138         * lib/freadseek.c (freadptrinc): Likewise.
42139         * lib/fseeko.c (rpl_fseeko): Likewise.
42140         * lib/fseterr.c (fseterr): Likewise.
42141         * lib/fwritable.c (fwritable): Likewise.
42142         * lib/fwriting.c (fwriting): Likewise.
42143         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42144
42145 2008-04-09  Eric Blake  <ebb9@byu.net>
42146
42147         Avoid some autoconf warnings.
42148         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42149         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42150         * m4/afs.m4 (gl_AFS): Likewise.
42151         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42152         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42153         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42154         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42155         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42156         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42157         (AC_CHECK_DECLS_ONCE): Likewise.
42158         Rename file...
42159         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42160         gnulib-tool requires autoconf 2.59 or better.
42161         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42162
42163 2008-04-08  Eric Blake  <ebb9@byu.net>
42164
42165         Use 'git describe --match' if present (added in git 1.5.5).
42166         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42167         if possible.
42168
42169 2008-04-08  Bruno Haible  <bruno@clisp.org>
42170
42171         Add tentative support for OpenServer.
42172         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42173         _ptr, _cnt.
42174         * lib/fpurge.c (fpurge): Likewise.
42175         * lib/freadable.c (freadable): Likewise.
42176         * lib/freadahead.c (freadahead): Likewise.
42177         * lib/freading.c (freading): Likewise.
42178         * lib/freadptr.c (freadptr): Likewise.
42179         * lib/freadseek.c (freadptrinc): Likewise.
42180         * lib/fseeko.c (rpl_fseeko): Likewise.
42181         * lib/fseterr.c (fseterr): Likewise.
42182         * lib/fwritable.c (fwritable): Likewise.
42183         * lib/fwriting.c (fwriting): Likewise.
42184         Reported by Roger Cornelius <rac@tenzing.org> and
42185         Brian K. White <brian@aljex.com>.
42186
42187 2008-04-06  Jim Meyering  <meyering@redhat.com>
42188
42189         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42190
42191 2008-04-06  Bruno Haible  <bruno@clisp.org>
42192
42193         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42194         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42195         * tests/test-printf-posix.sh: Likewise.
42196         * tests/test-vfprintf-posix.sh: Likewise.
42197         * tests/test-vprintf-posix.sh: Likewise.
42198         * tests/test-xprintf-posix.sh: Likewise.
42199
42200 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42201
42202         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42203         hide error from 'ls', needed on OS/2.
42204         Report by Elbert Pol <elbert.pol@gmail.com>.
42205
42206 2008-04-04  Eric Blake  <ebb9@byu.net>
42207
42208         Make test-fseeko.c failures meaningful.
42209         * tests/test-fseeko.c: Print line number on failure.
42210         * tests/test-fseek.c: Likewise.
42211         Reported by Nelson H. F. Beebe.
42212
42213         Improve strtod bug detection check.
42214         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42215         required for Solaris 10.
42216         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42217
42218 2008-04-04  Bruno Haible  <bruno@clisp.org>
42219
42220         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42221         by m4/setenv.m4.
42222
42223 2008-04-03  Eric Blake  <ebb9@byu.net>
42224
42225         Ensure sane .version contents.
42226         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42227         version string.
42228         * build-aux/git-version-gen: Improve documentation.
42229
42230         Make GNU make output nicer.
42231         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42232         MAKECMDGOALS to enforce message for all command line targets.  Set
42233         srcdir for use in maint.mk.
42234
42235         Another maintainer tweak.
42236         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42237         a target that regenerates version.
42238
42239 2008-04-03  Jim Meyering  <meyering@redhat.com>
42240
42241         vc-list-files: don't cause coreutils "make po-check" failure
42242         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42243
42244 2008-04-03  Eric Blake  <ebb9@byu.net>
42245
42246         Allow VPATH usage of vc-list-files.
42247         * build-aux/vc-list-files (scriptversion): Add timestamp.
42248         (options): Add --help, --version, -C.
42249         (CVS): Support installed cvsu.
42250
42251 2008-04-02  Bruno Haible  <bruno@clisp.org>
42252
42253         Avoid some "statement with no effect" warnings from gcc.
42254         * tests/test-wctype.c (main): Explicitly ignore unused values.
42255         Reported by Jim Meyering.
42256
42257 2008-04-02  Jim Meyering  <meyering@redhat.com>
42258
42259         Avoid some warnings from "gcc -Wshadow".
42260         * tests/test-frexp.c (exp): Define to a different identifier.
42261         * tests/test-frexpl.c (exp): Likewise.
42262
42263 2008-04-03  Jim Meyering  <meyering@redhat.com>
42264
42265         bootstrap: remove dangling *.[ch] symlinks from lib
42266         * build-aux/bootstrap [dangling symlink removal]: Move find's
42267         -depth option to precede all others, to avoid a warning.
42268         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42269
42270 2008-04-02  Bruno Haible  <bruno@clisp.org>
42271
42272         Avoid some warnings from "gcc -Wshadow".
42273         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42274         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42275         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42276         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42277         Reported by Jim Meyering.
42278
42279 2008-04-01  Bruno Haible  <bruno@clisp.org>
42280
42281         Fix test to work on IRIX 6.5 with cc.
42282         * tests/test-math.c (numeric_equal): New function.
42283         (main): Use it.
42284
42285 2008-04-01  Bruno Haible  <bruno@clisp.org>
42286
42287         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42288
42289 2008-04-01  Bruno Haible  <bruno@clisp.org>
42290
42291         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42292         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42293         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42294         (Depends-on): Remove math.
42295
42296         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42297         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42298         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42299         (Depends-on): Remove math.
42300
42301         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42302         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42303         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42304         (Depends-on): Remove math.
42305         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42306         (Depends-on): Remove math.
42307
42308         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42309         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42310         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42311         (Depends-on): Remove math.
42312         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42313         (Depends-on): Remove math.
42314
42315         * tests/test-round1.c: Include nan.h.
42316         (main): Use NaNd instead of NAN.
42317         * modules/round-tests (Files): Add tests/nan.h.
42318
42319         * tests/test-trunc1.c: Include nan.h.
42320         (main): Use NaNd instead of NAN.
42321         * modules/trunc-tests (Files): Add tests/nan.h.
42322
42323         * tests/test-roundf1.c: Include nan.h.
42324         (main): Use NaNf instead of NAN.
42325         * modules/roundf-tests (Files): Add tests/nan.h.
42326
42327         * tests/test-truncf1.c: Include nan.h.
42328         (main): Use NaNf instead of NAN.
42329         * modules/truncf-tests (Files): Add tests/nan.h.
42330
42331         * tests/test-ceilf1.c: Include nan.h.
42332         (main): Use NaNf instead of NAN.
42333         * modules/ceilf-tests (Files): Add tests/nan.h.
42334
42335         * tests/test-floorf1.c: Include nan.h.
42336         (main): Use NaNf instead of NAN.
42337         * modules/floorf-tests (Files): Add tests/nan.h.
42338
42339         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42340         (main): Use NaNf instead of NAN.
42341         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42342
42343         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42344         (main): Use NaNd instead of NAN.
42345         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42346
42347         * tests/test-frexp.c: Include nan.h.
42348         (main): Use NaNd instead of NAN.
42349         * modules/frexp-tests (Files): Add tests/nan.h.
42350
42351         * lib/isnan.c: Don't include <math.h>.
42352         (FUNC): Don't use NAN macro.
42353         * modules/isnand-nolibm (Depends-on): Remove math.
42354         * modules/isnanf-nolibm (Depends-on): Remove math.
42355         * modules/isnanl (Depends-on): Remove math.
42356         * modules/isnanl-nolibm (Depends-on): Remove math.
42357
42358         * tests/nan.h: New file.
42359
42360 2008-04-01  Eric Blake  <ebb9@byu.net>
42361
42362         Fix typos.
42363         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42364         values to be the right type.
42365
42366         For now, cater to gnulib strtod inaccuracies.
42367         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42368         fractional results.  While not as nice from a QoI perspective, it
42369         is a quicker patch than correctly implementing decimal to binary
42370         rounding.
42371
42372 2008-03-31  Eric Blake  <ebb9@byu.net>
42373
42374         Guarantee a definition of NAN.
42375         * lib/math.in.h (NAN): Define if missing.
42376         * tests/test-math.c (main): Test it.
42377         * doc/posix-headers/math.texi (math.h): Document this.
42378         * lib/isnan.c (rpl_isnand): Use it.
42379         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42380         * tests/test-floorf1.c (NaN): Likewise.
42381         * tests/test-frexp.c (NaN): Likewise.
42382         * tests/test-isnand.c (NaN): Likewise.
42383         * tests/test-isnanf.c (NaN): Likewise.
42384         * tests/test-round1.c (NaN): Likewise.
42385         * tests/test-roundf1.c (NaN): Likewise.
42386         * tests/test-snprintf-posix.h (NaN): Likewise.
42387         * tests/test-sprintf-posix.h (NaN): Likewise.
42388         * tests/test-trunc1.c (NaN): Likewise.
42389         * tests/test-truncf1.c (NaN): Likewise.
42390         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42391         * tests/test-vasprintf-posix.c (NaN): Likewise.
42392         * modules/isnand-nolibm (Depends-on): Add math.
42393         * modules/isnanf-nolibm (Depends-on): Likewise.
42394         * modules/isnanl (Depends-on): Likewise.
42395         * modules/isnanl-nolibm (Depends-on): Likewise.
42396         * modules/snprintf-posix-tests (Depends-on): Likewise.
42397         * modules/sprintf-posix-tests (Depends-on): Likewise.
42398         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42399         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42400         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42401         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42402
42403 2008-03-31  Bruno Haible  <bruno@clisp.org>
42404
42405         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42406         * doc/posix-functions/strtod.texi: Likewise.
42407
42408 2008-03-31  Bruno Haible  <bruno@clisp.org>
42409
42410         * tests/test-strtod.c (main): Don't use C99 syntax.
42411
42412 2008-03-31  Bruno Haible  <bruno@clisp.org>
42413
42414         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42415         Reported by Eric Blake.
42416
42417 2008-03-31  Jim Meyering  <meyering@redhat.com>
42418
42419         Don't compare actual signbit return values.
42420         * tests/test-strtod.c (main): Rather, compare only their
42421         zero/non-zero nature.
42422
42423 2008-03-31  Eric Blake  <ebb9@byu.net>
42424
42425         More strtod documentation.
42426         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42427         failures as distinct bugs.
42428
42429 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42430
42431         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42432         Problem reported by Erik Benada in
42433         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42434
42435 2008-03-30  Bruno Haible  <bruno@clisp.org>
42436
42437         * tests/test-strtod.c: Add comments about which assertion fails on which
42438         platform.
42439         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42440
42441 2008-03-30  Eric Blake  <ebb9@byu.net>
42442
42443         Test signbit behavior on zeros.
42444         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42445         (test_signbitd, test_signbitl): Likewise.
42446
42447         More strtod touchups.
42448         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42449         sign of negative underflow, for now.  Use .5, not .1.
42450         * doc/posix-functions/strtod.texi (strtod): Mention these
42451         limitations.
42452         Reported by Jim Meyering.
42453
42454 2008-03-30  Bruno Haible  <bruno@clisp.org>
42455
42456         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42457         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42458
42459 2008-03-30  Bruno Haible  <bruno@clisp.org>
42460
42461         Avoid failure when attempting to return empty iconv results on some
42462         platforms.
42463         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42464         allocation, don't report ENOMEM when the resulting string is empty.
42465
42466 2008-03-30  Bruno Haible  <bruno@clisp.org>
42467
42468         Fix buffer overrun.
42469         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42470         Don't consider the width for tmp_length. Check count against tmp_length
42471         before doing the padding. Ensure enough allocation during padding.
42472
42473 2008-03-30  Eric Blake  <ebb9@byu.net>
42474
42475         strtod touchups.
42476         * lib/strtod.c (strtod): Avoid compiler warnings.
42477         Reported by Jim Meyering.
42478
42479 2008-03-30  Bruno Haible  <bruno@clisp.org>
42480
42481         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42482         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42483         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42484         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42485         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42486         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42487         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42488         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42489
42490         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42491         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42492         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42493         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42494         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42495         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42496         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42497         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42498
42499         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42500         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42501         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42502         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42503         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42504         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42505         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42506         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42507
42508         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42509         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42510
42511         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42512         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42513
42514         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42515         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42516
42517         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42519         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42520
42521         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42523         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42524
42525         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42526         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42527         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42528
42529         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42531         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42532
42533         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42534         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42536         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42537         (Depends-on): Add EOVERFLOW.
42538         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42539         (Depends-on): Add EOVERFLOW.
42540         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42541         (Depends-on): Add EOVERFLOW.
42542         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42543         (Depends-on): Add EOVERFLOW.
42544         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42545         (Depends-on): Add EOVERFLOW.
42546         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42547         (Depends-on): Add EOVERFLOW.
42548         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42549         (Depends-on): Add EOVERFLOW.
42550         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42551         (Depends-on): Add EOVERFLOW.
42552
42553         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42555         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42556
42557         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42559         * modules/snprintf (Depends-on): Add EOVERFLOW.
42560
42561         * lib/poll.c (EOVERFLOW): Remove fallback.
42562         * modules/poll (Depends-on): Add EOVERFLOW.
42563
42564         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42565         * modules/getugroups (Depends-on): Add EOVERFLOW.
42566
42567         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42568         * modules/getdelim (Depends-on): Add EOVERFLOW.
42569
42570         * lib/ftell.c (EOVERFLOW): Remove fallback.
42571         * modules/ftell (Depends-on): Add EOVERFLOW.
42572
42573         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42575         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42576
42577         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42578
42579         * modules/EOVERFLOW-tests: New file.
42580         * tests/test-EOVERFLOW.c: New file.
42581
42582         * modules/EOVERFLOW: New file.
42583         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42584
42585 2008-03-30  Bruno Haible  <bruno@clisp.org>
42586
42587         Fix bug introduced on 2007-06-10.
42588         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42589         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42590
42591 2008-03-30  Bruno Haible  <bruno@clisp.org>
42592
42593         Improve freadseek's efficiency after ungetc.
42594         * lib/freadseek.c: Include freadahead.h.
42595         (freadptrinc): New function, extracted from freadseek.
42596         (freadseek): Use it in a loop. Use freadahead to determine the number
42597         of loop iterations.
42598         * modules/freadseek (Depends-on): Add freadahead.
42599         (configure.ac): Require AC_C_INLINE.
42600
42601 2008-03-30  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/freadseek.c (freadseek): Don't ignore the return value of
42604         freadptr.
42605
42606 2008-03-29  Eric Blake  <ebb9@byu.net>
42607
42608         Add hex float support.
42609         * modules/strtod (Depends-on): Add c-ctype.
42610         (Link): Mention POW_LIB.
42611         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42612         whitespace between 'e' and exponent.
42613         * tests/test-strtod.c (main): Enable hex float tests.
42614         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42615         now provides.
42616
42617         Document various strtod bugs, with some fixes.
42618         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42619         "-0x", "inf", "nan", and hex constants.
42620         * doc/posix-functions/atof.texi (atof): Likewise.
42621         * modules/stdlib (Makefile.am): Support strtod.
42622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42623         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42624         detect additional strtod bugs.
42625         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42626         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42627         bool where appropriate.  Parse 'inf' and 'nan'.
42628         * tests/test-strtod.c: New file.
42629         * modules/strtod (Depends-on): Add stdbool, stdlib.
42630         (configure.ac): Turn on module indicator.
42631         * modules/strtod-tests: New module.
42632
42633 2008-03-29  Eric Blake  <ebb9@byu.net>
42634
42635         Fix ftell on mingw.
42636         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42637         * modules/ftell-tests (Depends-on): Add binary-io.
42638         * modules/ftello-tests (Depends-on): Likewise.
42639         * tests/test-ftell.c (main): Enhance test to cover behavior after
42640         ungetc.  Enforce binary mode.
42641         * tests/test-ftello.c (main): Likewise.
42642
42643         Pass test-freadseek on cygwin.
42644         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42645         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42646         ungetc buffer.
42647
42648         * tests/test-fflush2.c (main): Fix typo.
42649
42650 2008-03-29  Bruno Haible  <bruno@clisp.org>
42651
42652         * tests/test-fflush2.c (main): Temporarily disable the contents of
42653         this test.
42654         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42655         Reported by Eric Blake.
42656
42657 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42658
42659         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42660         (GC_SHA224_DIGEST_SIZE): Add.
42661
42662         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42663         (gc_hash_digest_length): Likewise.
42664         (gc_hash_buffer): Likewise.
42665
42666 2008-03-25  Bruno Haible  <bruno@clisp.org>
42667
42668         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42669         detail which gettext release to use.
42670         Reported by Simon Josefsson.
42671
42672 2008-03-26  Jim Meyering  <meyering@redhat.com>
42673
42674         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42675         * modules/gnumakefile (clean-GNUmakefile): Also, use
42676         test ... && ... || : syntax rather than if-then ... fi.
42677
42678         gnumakefile: Don't double-quote-expand $(VPATH) value.
42679         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42680
42681 2008-03-24  Eric Blake  <ebb9@byu.net>
42682
42683         Alter GNUmakefile to install into top directory.
42684         * modules/maintainer-makefile: Split, and add dependency...
42685         * modules/gnumakefile: to this new module.
42686         * build-aux/GNUmakefile: Move...
42687         * top/GNUmakefile: ...here.
42688         * build-aux/maint.mk: Move...
42689         * top/maint.mk: ...here.
42690         * MODULES.html.sh (Support for maintaining...): Document new
42691         module.
42692
42693 2008-03-23  Bruno Haible  <bruno@clisp.org>
42694
42695         * gnulib-tool: New options --vc-files, --no-vc-files.
42696         (func_usage): Document them.
42697         (vc_files): New variable.
42698         (func_import): Consider vc_files.
42699         (func_create_testdir): Set vc_files to empty.
42700         Suggested by Jim Meyering and Karl Berry.
42701
42702 2008-03-23  Bruno Haible  <bruno@clisp.org>
42703
42704         Fix regex compilation error on HP-UX 11.
42705         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42706         * modules/regex (Files): Add m4/mbstate_t.m4.
42707         Reported by Ton Voon <ton.voon@altinity.com>.
42708
42709 2008-03-23  Bruno Haible  <bruno@clisp.org>
42710
42711         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42712
42713 2008-03-23  Eric Blake  <ebb9@byu.net>
42714             Bruno Haible  <bruno@clisp.org>
42715
42716         Install files from top/ in the destination directory.
42717         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42718         augmentation also for the files from top/.
42719         (func_import, func_create_testdir): Rewrite file names:
42720         top/filename -> filename.
42721
42722 2008-03-23  Bruno Haible  <bruno@clisp.org>
42723
42724         Tweak "gnulib --version" output.
42725         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42726
42727 2008-03-23  Bruno Haible  <bruno@clisp.org>
42728
42729         Tweak "gnulib --version" output.
42730         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42731         rather than contents of ChangeLog, when possible.
42732
42733 2008-03-21  Eric Blake  <ebb9@byu.net>
42734
42735         More --version tweaks.
42736         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42737         date of last ChangeLog entry.
42738
42739 2008-03-21  Jim Meyering  <meyering@redhat.com>
42740
42741         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42742
42743 2008-03-20  Eric Blake  <ebb9@byu.net>
42744
42745         VPATH fix.
42746         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42747
42748 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42749
42750         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42751         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42752
42753 2008-03-20  Eric Blake  <ebb9@byu.net>
42754
42755         Sync GNUmakefile with coreutils.
42756         * build-aux/GNUmakefile (have-Makefile): Rename...
42757         (_have-Makefile): ...to this, for namespace consideration.
42758         (GNUmakefile.cfg): Include, if present.
42759         (_autoreconf): Define a default.
42760         (_is-dist-target): New rule for rebuilds to pick up intra-release
42761         version.
42762         (maint-cfg.mk): Rename...
42763         (cfg.mk): ...to this.
42764
42765 2008-03-18  Jim Meyering  <meyering@redhat.com>
42766
42767         New script and module: mktempd
42768         * MODULES.html.sh (maint+release support): Add mktempd.
42769         * build-aux/mktempd: New file.
42770         * modules/mktempd: New file.
42771
42772 2008-03-15  Jim Meyering  <meyering@redhat.com>
42773
42774         Undo last change.
42775         * lib/sha1.c, lib/md5.c: 63 != ~63.
42776         Reported by Andreas Schwab.
42777
42778         sha1.c, md5.c: Hoist a redundant expression.
42779         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42780         "ctx->buflen" only once, before calling *_process_block.
42781         * lib/md5.c (md5_process_bytes): Likewise.
42782
42783 2008-03-14  Eric Blake  <ebb9@byu.net>
42784
42785         Bump copyright year in files generated by gnulib-tool.
42786         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42787         gnulib-tool, rather than hard-coding it.
42788
42789         Fix 'gnulib-tool --version' output to work with git.
42790         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42791         (startup): ...here.
42792         (func_version): Use it to invoke git-version-gen, rather than
42793         relying on CVS keyword expansion.  Modernize wording.
42794         (cvsdatestamp, last_checkin_date, version): Kill unused
42795         variables.
42796
42797 2008-03-12  Jim Meyering  <meyering@redhat.com>
42798
42799         Recognize optional cast of the argument to free.
42800         * build-aux/useless-if-before-free: Update regexps.
42801
42802         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42803
42804 2008-03-11  Bruno Haible  <bruno@clisp.org>
42805
42806         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42807         by a single package.
42808         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42809         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42810         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42811         Reported by Sam Steingold <sds@gnu.org>.
42812
42813 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42814
42815         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42816         repositories.
42817
42818 2008-03-11  Bruno Haible  <bruno@clisp.org>
42819
42820         Avoid conflicts between local macro definitions.
42821         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42822         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42823
42824 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42825             Bruno Haible  <bruno@clisp.org>
42826
42827         Make va_copy work with some version of xlc on AIX 5.1.
42828         * lib/stdarg.in.h: New file.
42829         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42830         On AIX, use a <stdarg.h> file substitute.
42831         * modules/stdarg (Files): Add lib/stdarg.in.h.
42832         (Depends-on): Add include_next.
42833         (Makefile.am): Build a stdarg.h substitute if requested.
42834         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42835
42836 2008-03-10  Bruno Haible  <bruno@clisp.org>
42837
42838         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42839         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42840         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42841
42842 2008-03-10  Bruno Haible  <bruno@clisp.org>
42843
42844         * modules/stdlib (Depends-on): Add include_next, remove
42845         absolute-header.
42846
42847 2008-03-09  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/freadahead.h (freadahead): Document more precisely.
42850         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42851         the sum of both buffer sizes.
42852         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42853         * NEWS: Document the change.
42854
42855 2008-03-09  Bruno Haible  <bruno@clisp.org>
42856
42857         Extend freadptr to return also the buffer size.
42858         * lib/freadptr.h (freadptr): Add sizep argument.
42859         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42860         (freadptr): Add sizep argument. Determine buffer size like freadahead
42861         does.
42862         * tests/test-freadptr.c: Don't include freadahead.h.
42863         (main): Adapt for new calling convention of freadptr.
42864         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42865         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42866         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42867         tests/test-freadptr2.sh.
42868         (Depends): Remove freadahead.
42869         (TESTS): Add test-freadptr2.sh.
42870         (check_PROGRAMS): Add test-freadptr2.
42871
42872 2008-03-09  Bruno Haible  <bruno@clisp.org>
42873
42874         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42875         Report and solution by Simon Josefsson.
42876
42877 2008-03-06  Bruno Haible  <bruno@clisp.org>
42878
42879         Make fflush after ungetc work on BSD platforms.
42880         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42881         * tests/test-fflush2.c: New file.
42882         * tests/test-fflush2.sh: New file.
42883         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42884         tests/test-fflush2.c.
42885         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42886         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42887
42888 2008-03-06  Eric Blake  <ebb9@byu.net>
42889
42890         Likewise for ftello.
42891         * modules/ftello (Dependencies): Add extensions.
42892         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42893
42894 2008-03-06  Bruno Haible  <bruno@clisp.org>
42895
42896         * modules/fseeko (Dependencies): Add extensions.
42897         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42898         Needed on glibc systems.
42899
42900 2008-03-06  Bruno Haible  <bruno@clisp.org>
42901
42902         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42903         email address.
42904         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42905
42906 2008-03-06  Bruno Haible  <bruno@clisp.org>
42907
42908         * users.txt: Add libgnupdf.
42909
42910 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42911
42912         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42913         (Header File Substitutes, Function Substitutes,
42914         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42915         (Build robot for gnulib): Fix typo.
42916
42917 2008-03-06  Bruno Haible  <bruno@clisp.org>
42918
42919         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42920         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42921
42922 2008-03-06  Bruno Haible  <bruno@clisp.org>
42923
42924         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42925         * doc/gnulib.texi: Include it.
42926
42927 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42928
42929         * modules/func (License): Change license to unlimited; there was
42930         no LGPL parts in the module anyway.
42931
42932 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42933
42934         * modules/__func__: Renamed to modules/func.
42935         * modules/__func__-tests: Renamed to modules/func-tests.
42936         * tests/test-__func__.c: Renamed to tests/test-func.c.
42937         * m4/__func__.m4: Renamed to m4/func.m4.
42938         * doc/gnulib.texi (__func__): Section renamed to func.
42939         Suggested by Eric Blake <ebb9@byu.net>.
42940
42941 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42942
42943         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42944         about __func__.  Make example self-contained.  Suggested by Eric
42945         Blake <ebb9@byu.net>.
42946
42947         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42948         Suggested by Eric Blake <ebb9@byu.net>.
42949
42950 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42951
42952         * modules/__func__: New file.
42953         * modules/__func__-tests: New file.
42954         * tests/test-__func__.c: New file.
42955         * m4/__func__.m4: New file.
42956         * doc/gnulib.texi (__func__): Document __func__ module.
42957
42958 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42959
42960         * modules/byteswap (License): Re-license as LGPLv2+.
42961
42962 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42963
42964         * doc/Makefile: Add pdf target.
42965
42966 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42967
42968         * modules/inline (License): Use 'unlimited', since there are only
42969         *.m4 files in this module.
42970
42971 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42972             Bruno Haible  <bruno@clisp.org>
42973
42974         Add support for HP C 7.1 on OpenVMS 8.3.
42975         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42976
42977 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42978
42979         Update VMS specifics.
42980         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42981
42982 2008-03-02  Jim Meyering  <meyering@redhat.com>
42983
42984         Remove the last dependency on the "free" module.
42985         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42986         Reported by Bob Proulx.
42987
42988         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42989
42990         Remove useless "if" tests before free.  Deprecate "free" module.
42991         * doc/posix-functions/free.texi: Mention that this
42992         module is no longer useful.
42993         * modules/free (Notice): Say this module is obsolete.
42994         * modules/readutmp (Depends-on): Remove free.
42995         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42996         * lib/putenv.c (putenv): Likewise.
42997         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42998         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42999         * tests/test-c-strcasestr.c (main): Likewise.
43000         * tests/test-c-strstr.c (main): Likewise.
43001         * tests/test-mbscasestr1.c (main): Likewise.
43002         * tests/test-mbscasestr2.c (main): Likewise.
43003         * tests/test-mbsstr1.c (main): Likewise.
43004         * tests/test-mbsstr2.c (main): Likewise.
43005         * tests/test-memmem.c (main): Likewise.
43006         * tests/test-strcasestr.c (main): Likewise.
43007         * tests/test-striconv.c (main): Likewise.
43008         * tests/test-striconveh.c (main): Likewise.
43009         * tests/test-striconveha.c (main): Likewise.
43010         * tests/test-strstr.c (main): Likewise.
43011
43012         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43013
43014         bootstrap: sync from coreutils again
43015         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43016
43017 2008-03-01  Jim Meyering  <meyering@redhat.com>
43018
43019         bootstrap: sync from coreutils
43020         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43021         also when the target doesn't exist.
43022
43023 2008-03-01  Eric Blake  <ebb9@byu.net>
43024
43025         Fix bugs in last patch.
43026         * lib/memchr2.c (memchr2): Fix typo.
43027         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43028         extension.
43029         Reported by Bruce Korb.
43030
43031         New module 'memchr2'.
43032         * modules/memchr2: New file.
43033         * modules/memchr2-tests: Likewise.
43034         * lib/memchr2.h: Likewise.
43035         * lib/memchr2.c: Likewise, based on memchr.c.
43036         * tests/test-memchr2.c: New test.
43037         * MODULES.html.sh (String handling): Add memchr2.
43038
43039 2008-02-29  Bruno Haible  <bruno@clisp.org>
43040
43041         * modules/freadseek-tests: New file.
43042         * tests/test-freadseek.sh: New file.
43043         * tests/test-freadseek.c: New file.
43044
43045         New module 'freadseek'.
43046         * modules/freadseek: New file.
43047         * lib/freadseek.h: New file.
43048         * lib/freadseek.c: New file.
43049         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43050
43051 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43052
43053         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43054         wydawca.
43055
43056         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43057         program_invocation_name and program_invocation_short_name are
43058         present.
43059
43060 2008-02-28  Bruno Haible  <bruno@clisp.org>
43061
43062         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43063         * tests/test-freadptr.sh: Also test non-seekable stdin.
43064
43065 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43066
43067         * build-aux/bootstrap (source_base, m4_base)
43068         (doc_base, tests_base): New variables.
43069         (gnulib_tool_options): Do not hardcode base directories, use
43070         the above variables instead.
43071
43072 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43073
43074         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43075
43076 2008-02-28  Bruno Haible  <bruno@clisp.org>
43077
43078         * modules/freadptr-tests: New file.
43079         * tests/test-freadptr.sh: New file.
43080         * tests/test-freadptr.c: New file.
43081
43082         New module 'freadptr'.
43083         * modules/freadptr: New file.
43084         * lib/freadptr.h: New file.
43085         * lib/freadptr.c: New file.
43086         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43087
43088 2008-02-26  Karl Berry  <karl@freefriends.org>
43089
43090         Sync from Libtool:
43091         * libltdl/argz.c (argz_add, argz_count): New functions.
43092         * libltdl/argz.in.h: Declare them.
43093         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43094
43095 2008-02-22  Bruno Haible  <bruno@clisp.org>
43096
43097         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43098         is a pointer type.  Needed for HP-UX 10.
43099         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43100         * doc/posix-functions/gmtime_r.texi: Likewise.
43101         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43102
43103 2008-02-24  Bruno Haible  <bruno@clisp.org>
43104
43105         * modules/environ-tests: New file.
43106         * tests/test-environ.c: New file.
43107
43108         New module 'environ'.
43109         * modules/environ: New file.
43110         * lib/unistd.in.h (environ): New declaration.
43111         * m4/environ.m4: New file.
43112         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43113         after use.
43114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43115         HAVE_DECL_ENVIRON.
43116         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43117         HAVE_DECL_ENVIRON.
43118         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43119         wrong claim that 'environ' is missing on some systems.
43120         * modules/execute (Depends-on): Add environ.
43121         * lib/execute.c (environ): Remove fallback declaration.
43122         * modules/pipe (Depends-on): Add environ.
43123         * lib/pipe.c (environ): Remove fallback declaration.
43124         * modules/setenv (Depends-on): Add environ.
43125         * lib/setenv.c (environ): Remove fallback declaration.
43126         * modules/unsetenv (Depends-on): Add environ.
43127         * lib/unsetenv.c (environ): Remove fallback declaration.
43128         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43129         m4/environ.m4.
43130         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43131         (gl_PREREQ_UNSETENV): Likewise.
43132
43133 2008-02-24  Bruno Haible  <bruno@clisp.org>
43134
43135         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43136
43137 2008-02-20  Bob Proulx  <bob@proulx.com>
43138
43139         Enable use of older two part flavor 'git describe'.
43140         * build-aux/git-version-gen: If using the older two part flavor of
43141         git version then recreate the third part now present in the
43142         newer three part flavor of git describe.
43143
43144 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43145
43146         * lib/fts.c (fts_build): Typo correction to comment.
43147
43148 2008-02-17  Bruno Haible  <bruno@clisp.org>
43149
43150         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43151         generating no-op conflicts.
43152
43153 2008-02-17  Bruno Haible  <bruno@clisp.org>
43154
43155         Speed up by 10%.
43156         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43157         result_entries, rather than an index-based loop.
43158
43159 2008-02-17  Bruno Haible  <bruno@clisp.org>
43160
43161         Speed up by 25%.
43162         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43163         'hashcode_cached'.
43164         (entry_create): New function.
43165         (entry_hashcode): Use the cached hashcode if possible.
43166         (read_changelog_file, try_split_merged_entry): Use entry_create.
43167
43168 2008-02-17  Bruno Haible  <bruno@clisp.org>
43169
43170         Speed up from O(n^2) to O(n) for long ChangeLog files.
43171         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43172         (read_changelog_file): Change implementation of entries_reversed list
43173         to rbtreehash.
43174         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43175
43176 2008-02-17  Bruno Haible  <bruno@clisp.org>
43177
43178         New option --split-merged-entry.
43179         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43180         (find_paragraph_end, try_split_merged_entry): New functions.
43181         (long_options): Add option --split-merged-entry.
43182         (usage): Document option --split-merged-entry.
43183         (main): Implement option --split-merged-entry.
43184         Reported by Eric Blake.
43185
43186 2008-02-17  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/git-merge-changelog.c: Include c-strstr.h.
43189         (main): Support the "git pull --rebase" situation.
43190         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43191         Reported by Eric Blake.
43192
43193 2008-02-16  Eric Blake  <ebb9@byu.net>
43194
43195         Avoid doubling \ in common case of "c-maybe" quoting style.
43196         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43197         eliding outer quotes.
43198         * lib/quotearg.h: Document this.
43199         * tests/test-quotearg.c (result_strings, inputs, results_g)
43200         (flag_results, locale_results): Test it by adding a new string to
43201         each test group.
43202         (compare_strings): Test new string.
43203
43204 2008-02-13  Eric Blake  <ebb9@byu.net>
43205
43206         Avoid trigraph quoting in default output.
43207         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43208         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43209         unless explicitly requested.
43210         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43211
43212 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43213
43214         Don't rely on signed integer overflowing to negative value.
43215         * lib/getugroups.c (getugroups): Include <limits.h>.
43216         Instead, compare against INT_MAX, and increment only if the test passes.
43217
43218 2008-02-13  Jim Meyering  <meyering@redhat.com>
43219         and Eric Blake  <ebb9@byu.net>
43220
43221         Avoid shadowing warning and compile errors on Linux.
43222         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43223         forwarding macros on Linux.
43224         (dcgettext): Define a stub, for Linux.
43225         (results_g, main): Avoid warnings.
43226
43227 2008-02-12  Eric Blake  <ebb9@byu.net>
43228
43229         Silence warning in last patch.
43230         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43231
43232         Quotearg part 4: add tests, fix c-maybe colon quoting.
43233         * lib/quotearg.h: Improve documentation.
43234         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43235         escapes when adding outer quotes.  When quoting trigraphs, use
43236         valid C notation.  When quoting NUL, omit extra characters if next
43237         character is not digit.  Alter prototype.
43238         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43239         callers.
43240         * modules/quotearg-tests: New module.
43241         * tests/test-quotearg.c: New test.
43242
43243 2008-02-07  Eric Blake  <ebb9@byu.net>
43244
43245         Quotearg part 3: add flag to control outer quote elision.
43246         * lib/quotearg.h (c_maybe_quoting_style): New style.
43247         (enum quoting_flags): Better documentation of flags.
43248         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43249         c-maybe style.
43250         (quotearg_buffer_restyled): Handle new flag to elide outer
43251         quotes.
43252
43253         Quotearg part 2: add flag that can control NUL elision.
43254         * lib/quotearg.h (set_quoting_flags): New prototype.
43255         * lib/quotearg.c (struct quoting_options): Add flag field.
43256         (set_quoting_flags): New function.
43257         (quotearg_buffer_restyled): Add flags parameter.
43258         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43259         (quotearg_n_options): Set the flag, since length cannot be
43260         returned.
43261         (quoting_options_from_style): Default flags correctly.
43262
43263         Quotearg part 1: more wrappers, restore quotearg_char state.
43264         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43265         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43266         (quotearg_colon_mem): New wrappers.
43267         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43268         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43269         functions.
43270         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43271         (quotearg_colon_mem): New functions.
43272
43273 2008-02-11  Bruno Haible  <bruno@clisp.org>
43274
43275         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43276         library in the current directory: it does not work with parallel make.
43277         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43278
43279 2008-02-11  Bruno Haible  <bruno@clisp.org>
43280
43281         * .gitattributes: New file.
43282
43283 2008-02-11  Jim Meyering  <meyering@redhat.com>
43284
43285         useless-if-before-free: Fix reversed exit values.
43286         * build-aux/useless-if-before-free: Use correct values
43287         for EXIT_MATCH and EXIT_NO_MATCH.
43288
43289         * build-aux/useless-if-before-free: Close stdout carefully.
43290
43291 2008-02-10  Bruno Haible  <bruno@clisp.org>
43292
43293         New module 'git-merge-changelog'.
43294         * modules/git-merge-changelog: New file.
43295         * lib/git-merge-changelog.c: New file.
43296
43297 2008-02-10  Jim Meyering  <meyering@redhat.com>
43298
43299         useless-if-before-free: New option: --list (-l).
43300
43301         useless-if-before-free: Don't exit immediately upon open failure.
43302         * build-aux/useless-if-before-free: Exit 2 for errors.
43303         Upon failure to open a file, don't exit immediately.
43304         Rather, just warn and continue with any remaining files.
43305
43306 2008-02-10  Bruno Haible  <bruno@clisp.org>
43307
43308         New abstract list operation 'node_set_value'.
43309         * lib/gl_list.h (gl_list_node_set_value): New function.
43310         (struct gl_list_implementation): New field node_set_value.
43311         * lib/gl_list.c (gl_list_node_set_value): New function.
43312         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43313         (gl_array_list_implementation): Update.
43314         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43315         (gl_carray_list_implementation): Update.
43316         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43317         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43318         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43319         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43320         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43321         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43322         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43323         Update.
43324         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43325         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43326         (gl_sublist_list_implementation): Update.
43327
43328 2008-02-10  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43331         Needed when ELEMENT is #defined to 'some_type *'.
43332
43333 2008-02-10  Jim Meyering  <meyering@redhat.com>
43334
43335         New script and module: useless-if-before-free
43336         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43337         * build-aux/useless-if-before-free: New file.
43338         * modules/useless-if-before-free: New file.
43339
43340         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43341
43342         xstrtol_error: Fix typo.
43343         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43344         s/exit_failure/exit_status/.
43345
43346 2008-02-09  Jim Meyering  <meyering@redhat.com>
43347
43348         New script and module: gitlog-to-changelog
43349         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43350         * modules/gitlog-to-changelog: New file.
43351         * build-aux/gitlog-to-changelog: New file.
43352
43353 2008-02-08  Jim Meyering  <meyering@redhat.com>
43354
43355         Avoid two "parameter unused" warnings.
43356         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43357         Mark "st" as used.
43358
43359         Use "git COMMAND", not "git-COMMAND".
43360         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43361         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43362         * build-aux/git-version-gen: Use "git status", not "git-status".
43363
43364 2008-02-07  Bruno Haible  <bruno@clisp.org>
43365
43366         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43367         Avoids a crash on Windows Vista.
43368         Reported by Adam Strzelecki <ono@java.pl> via
43369         Simon Josefsson <simon@josefsson.org>.
43370
43371 2008-02-06  Bruno Haible  <bruno@clisp.org>
43372
43373         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43374         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43375         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43377         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43378         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43379         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43380         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43388         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43389         left-adjust flag.
43390         * tests/test-snprintf-posix.h (test_function): Likewise.
43391         * tests/test-sprintf-posix.h (test_function): Likewise.
43392         * tests/test-vasprintf-posix.c (test_function): Likewise.
43393         * doc/posix-functions/fprintf.texi: Update.
43394         * doc/posix-functions/printf.texi: Update.
43395         * doc/posix-functions/snprintf.texi: Update.
43396         * doc/posix-functions/sprintf.texi: Update.
43397         * doc/posix-functions/vfprintf.texi: Update.
43398         * doc/posix-functions/vprintf.texi: Update.
43399         * doc/posix-functions/vsnprintf.texi: Update.
43400         * doc/posix-functions/vsprintf.texi: Update.
43401         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43402
43403 2008-02-06  Bruno Haible  <bruno@clisp.org>
43404
43405         Fix bug introduced on 2008-01-26.
43406         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43407
43408 2008-02-06  Bruno Haible  <bruno@clisp.org>
43409
43410         Fix bug introduced on 2007-06-10.
43411         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43412         !NEED_PRINTF_FLAG_ZERO.
43413
43414 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43415
43416         getloadavg: use libperfstat on AIX5
43417         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43418
43419 2008-02-03  Bruno Haible  <bruno@clisp.org>
43420
43421         * lib/diffseq.h: Add comments about required #includes.
43422         Reported by Michael Biggs <gnulib@doubleplum.net>.
43423
43424 2008-02-01  Bruno Haible  <bruno@clisp.org>
43425
43426         * users.txt: Add gnuit.
43427
43428 2008-01-31  Bruno Haible  <bruno@clisp.org>
43429
43430         * lib/md4.c (set_uint32): Mark as inline.
43431         * lib/md5.c (set_uint32): Likewise.
43432         * lib/sha1.c (set_uint32): Likewise.
43433         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43434         * m4/md5.m4 (gl_MD5): Likewise.
43435         * m4/sha1.m4 (gl_SHA1): Likewise.
43436
43437 2008-01-31  Jim Meyering  <meyering@redhat.com>
43438
43439         Use "sizeof VAR", rather than a literal "4".
43440         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43441         * lib/md4.c (md4_read_ctx): Likewise.
43442         * lib/sha1.c (sha1_read_ctx): Likewise.
43443
43444 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43445
43446         * tests/test-sha1.c: New file, based on test-md5.c.
43447
43448         * modules/crypto/sha1-tests: New file.
43449
43450 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43451
43452         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43453
43454 2008-01-31  Jim Meyering  <meyering@redhat.com>
43455
43456         Prefer "sizeof v" over the equivalent "4".
43457         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43458         * lib/md5.c (set_uint32): Likewise.
43459         * lib/sha1.c (set_uint32): Likewise.
43460
43461 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43462
43463         * lib/sha1.c (set_uint32): Mark function as static.
43464
43465 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43466
43467         md2: clarify comments to say that alignment is not required.
43468         * lib/md2.h: Remove warning about alignment in comment.
43469         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43470         never been required.
43471
43472 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43473
43474         md4: adapt alignment constraint fix from sha1.
43475         * lib/md4.c (set_uint32): New function, from sha1.c
43476         (md4_read_ctx): Use it.
43477         (md4_finish_ctx): Doc fix.
43478         * lib/md4.h: Doc fix.
43479
43480 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43481
43482         md5: adapt alignment constraint fix from sha1.
43483         * lib/md5.c (set_uint32): New function, from sha1.c
43484         (md5_read_ctx): Use it.
43485         (md5_finish_ctx): Doc fix.
43486         * lib/md5.h: Doc fix.
43487
43488 2008-01-30  Peter Palfrader  <weasel@debian.org>
43489
43490         sha1: remove the result buffer alignment constraint
43491         * lib/sha1.c (set_uint32): New function.
43492         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43493         constraint.
43494         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43495         * lib/sha1.h: Likewise.
43496
43497 2008-01-30  Andreas Schwab  <schwab@suse.de>
43498             Bruno Haible  <bruno@clisp.org>
43499
43500         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43501         correct definition of LDBL_MIN_EXP.
43502
43503 2008-01-30  Karl Berry  <karl@gnu.org>
43504
43505         * config/srclist-update: try to preserve x bit on updates.
43506         * config/srclistvars.sh: update for karl.
43507
43508 2008-01-29  Jim Meyering  <meyering@redhat.com>
43509
43510         vasnprintf.c: Avoid warning about unused label
43511         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43512         "overflow" label definition and associated code with the
43513         same cpp condition that guards the sole use of that label.
43514
43515 2008-01-26  Bruno Haible  <bruno@clisp.org>
43516
43517         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43518         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43519         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43520         * lib/isnanl-nolibm.h (isnanl): Likewise.
43521         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43522
43523 2008-01-26  Bruno Haible  <bruno@clisp.org>
43524
43525         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43526         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43527
43528 2008-01-26  Bruno Haible  <bruno@clisp.org>
43529
43530         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43531         GCC >= 4.0 built-in.
43532         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43533
43534 2008-01-26  Bruno Haible  <bruno@clisp.org>
43535
43536         Rename isnan, applicable to 'double' only, to isnand.
43537         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43538         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43539         (configure.ac): Update.
43540         (Include): Replace "isnan.h" with "isnand.h".
43541         * m4/isnand.m4: Renamed from m4/isnan.m4.
43542         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43543         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43544         instead of isnan.c.
43545         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43546         instead of HAVE_ISNAN_IN_LIBC.
43547         (isnand): Renamed from isnan.
43548         * lib/isnand.c: New file.
43549         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43550         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43551         (Makefile.am): Update.
43552         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43553         Include isnand.h instead of isnan.h.
43554         (main): Test isnand instead of isnan.
43555         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43556         isnan-nolibm.
43557         * modules/frexp (Depends-on): Likewise.
43558         * modules/frexp-tests (Depends-on): Likewise.
43559         * modules/frexp-nolibm (Depends-on): Likewise.
43560         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43561         * modules/isfinite (Depends-on): Likewise.
43562         * modules/round-tests (Depends-on): Likewise.
43563         * modules/signbit (Depends-on): Likewise.
43564         * modules/signbit-tests (Depends-on): Likewise.
43565         * modules/snprintf-posix (Depends-on): Likewise.
43566         * modules/sprintf-posix (Depends-on): Likewise.
43567         * modules/trunc-tests (Depends-on): Likewise.
43568         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43569         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43570         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43571         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43572         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43573         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43574         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43575         * modules/vasnprintf-posix (Depends-on): Likewise.
43576         * modules/vasprintf-posix (Depends-on): Likewise.
43577         * modules/vfprintf-posix (Depends-on): Likewise.
43578         * modules/vsnprintf-posix (Depends-on): Likewise.
43579         * modules/vsprintf-posix (Depends-on): Likewise.
43580         * lib/frexp.c: Include isnand.h instead of isnan.h.
43581         (ISNAN): Set to isnand instead of isnan.
43582         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43583         (gl_isfinited): Use isnand instead of isnan.
43584         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43585         (gl_signbitd): Use isnand instead of isnan.
43586         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43587         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43588         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43589         (main): Use isnand instead of isnan.
43590         * tests/test-round1.c: Include isnand.h.
43591         (main): Use isnand instead of isnan.
43592         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43593         (ISNAN): Set to isnand instead of isnan.
43594         * tests/test-trunc1.c: Include isnand.h.
43595         (main): Use isnand instead of isnan.
43596         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43597         (equal): Use isnand instead of isnan.
43598         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43599         isnand-nolibm.
43600         * NEWS: Mention the change.
43601
43602 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43603             Bruno Haible  <bruno@clisp.org>
43604
43605         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43606         the GCC builtins for signbits are present and set
43607         REPLACE_SIGNBIT_USING_GCC if so.
43608         * lib/math.in.h (signbit): Define using GCC builtins if
43609         REPLACE_SIGNBIT_USING_GCC is set.
43610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43611         REPLACE_SIGNBIT_USING_GCC.
43612         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43613
43614 2008-01-25  Jim Meyering  <meyering@redhat.com>
43615
43616         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43617         * lib/poll.c: Include <config.h>, not "config.h".
43618         * tests/test-getaddrinfo.c: Likewise.
43619
43620 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43621
43622         * modules/sockets-tests: New file.
43623
43624 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43625
43626         * modules/sockets: New module, can be used to call WSA_Startup and
43627         WSA_Cleanup when needed.
43628
43629         * lib/sockets.h, lib/sockets.c: New files.
43630
43631         * m4/sockets.m4: New file.
43632
43633         * tests/test-sockets.c: New file.
43634
43635 2008-01-19  Bruno Haible  <bruno@clisp.org>
43636
43637         * doc/posix-headers: Renamed from doc/headers.
43638         * doc/posix-functions: Renamed from doc/functions.
43639         * doc/gnulib.texi: Update.
43640
43641 2008-01-19  Bruno Haible  <bruno@clisp.org>
43642
43643         * doc/glibc-functions/strcasestr.texi: Include contents of
43644         doc/functions/strcasestr.texi, fixing the list of platforms.
43645         * doc/functions/strcasestr.texi: Remove file.
43646
43647 2008-01-19  Bruno Haible  <bruno@clisp.org>
43648
43649         * doc/glibc-functions/memmem.texi: Include contents of
43650         doc/functions/memmem.texi.
43651         * doc/functions/memmem.texi: Remove file.
43652
43653 2008-01-18  Bruno Haible  <bruno@clisp.org>
43654
43655         * doc/glibc-functions/*.texi: New files.
43656         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43657         to use the new files.
43658
43659 2008-01-17  Bruno Haible  <bruno@clisp.org>
43660
43661         * tests/test-gethostname.c (main): Fix printf statement.
43662
43663 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43664
43665         * modules/gethostname-tests: New file.
43666
43667         * tests/test-gethostname.c: New file.
43668
43669 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43670
43671         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43672         used by the UNAME case.  Reported by Bruno Haible
43673         <bruno@clisp.org>.
43674
43675 2008-01-17  Eric Blake  <ebb9@byu.net>
43676
43677         Convert c-strcasestr to be more efficient.
43678         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43679         (Depends-on): Add c-strcase, remove malloca, strnlen.
43680         * tests/test-c-strcasestr.c (main): Enhance test.
43681         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43682
43683 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43684
43685         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43686         Use it in creating po/Makevars.
43687
43688 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43689
43690         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43691         Applications that requires it should initialize libgcrypt
43692         manually.
43693
43694 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43695
43696         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43697
43698 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43699
43700         Fix problem with getdate on mingw32 reported by Simon Josefsson
43701         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43702         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43703         tzname", when deciding whether to declare tzname.
43704         * lib/strftime.c (tzname): Likewise.
43705
43706 2008-01-15  Bruno Haible  <bruno@clisp.org>
43707
43708         Work around a MacOS X 10.5 bug in frexpl().
43709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43710         * doc/functions/frexpl.texi: Document the bug.
43711         Reported by Elias Pipping <pipping@gentoo.org>.
43712
43713 2008-01-14  Eric Blake  <ebb9@byu.net>
43714
43715         Touch up previous patch.
43716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43717         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43718
43719         Convert strcasestr module to use Two-Way algorithm.
43720         * modules/strcasestr-simple: New module, based on the old
43721         strcasestr, but with Two-Way rather than KMP.
43722         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43723         * lib/string.in.h (rpl_strcasestr): Declare.
43724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43725         performance.
43726         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43727         * modules/string (Makefile.am): Support strcasestr.
43728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43729         * modules/strcasestr-tests (Depends-on): Check for alarm.
43730         * tests/test-strcasestr.c: Augment test.
43731         * lib/str-two-way.h: Clean up stray macro.
43732         * NEWS: Document new module.
43733         * MODULES.html.sh (string handling): Likewise.
43734         * doc/functions/strcasestr.texi: New file.
43735         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43736         here, since it is not a POSIX function.
43737
43738 2008-01-14  Colin Watson  <cjwatson@debian.org>
43739             Bruno Haible  <bruno@clisp.org>
43740
43741         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43742         works fine; if not, set REPLACE_STRSIGNAL.
43743         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43745         REPLACE_STRSIGNAL.
43746         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43747         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43748         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43749
43750 2008-01-14  Bruno Haible  <bruno@clisp.org>
43751
43752         * modules/strsignal (Include): Change to <string.h>.
43753
43754 2008-01-14  Colin Watson  <cjwatson@debian.org>
43755
43756         * modules/argp (Notice): Add a notice recommending to change
43757         XGETTEXT_OPTIONS.
43758         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43759
43760 2008-01-13  Colin Watson  <cjwatson@debian.org>
43761
43762         * modules/strsignal-tests: New file.
43763         * tests/test-strsignal.c: New file.
43764
43765         * lib/strsignal.c: New file, from glibc with modifications.
43766         * lib/siglist.h: New file, from glibc with modifications.
43767         * lib/string.in.h (strsignal): New declaration.
43768         * m4/strsignal.m4: New file.
43769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43770         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43771         * modules/strsignal: New file.
43772         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43773         HAVE_DECL_STRSIGNAL.
43774
43775 2008-01-13  Bruno Haible  <bruno@clisp.org>
43776
43777         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43778         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43779         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43780         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43781
43782 2008-01-13  Bruno Haible  <bruno@clisp.org>
43783
43784         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43785         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43786         * lib/argp.h (__attribute__): Likewise.
43787         * lib/c-stack.c (__attribute__): Likewise.
43788         * lib/error.h (__attribute__): Likewise.
43789         * lib/fts.c (__attribute__): Likewise.
43790         * lib/openat.h (__attribute__): Likewise.
43791         * lib/stdio.in.h (__attribute__): Likewise.
43792         * lib/string.in.h (__attribute__): Likewise.
43793         * lib/utimens.c (__attribute__): Likewise.
43794         * lib/vasnprintf.h (__attribute__): Likewise.
43795         * lib/xalloc.h (__attribute__): Likewise.
43796         * lib/xprintf.h (__attribute__): Likewise.
43797         * lib/xstrtol.h (__attribute__): Likewise.
43798         * lib/xvasprintf.h (__attribute__): Likewise.
43799
43800 2008-01-12  Bruno Haible  <bruno@clisp.org>
43801
43802         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43803         * doc/glibc-headers/a.out.texi: New file.
43804         * doc/glibc-headers/aliases.texi: New file.
43805         * doc/glibc-headers/alloca.texi: New file.
43806         * doc/glibc-headers/ar.texi: New file.
43807         * doc/glibc-headers/argp.texi: New file.
43808         * doc/glibc-headers/argz.texi: New file.
43809         * doc/glibc-headers/byteswap.texi: New file.
43810         * doc/glibc-headers/crypt.texi: New file.
43811         * doc/glibc-headers/endian.texi: New file.
43812         * doc/glibc-headers/envz.texi: New file.
43813         * doc/glibc-headers/err.texi: New file.
43814         * doc/glibc-headers/error.texi: New file.
43815         * doc/glibc-headers/execinfo.texi: New file.
43816         * doc/glibc-headers/fpu_control.texi: New file.
43817         * doc/glibc-headers/fstab.texi: New file.
43818         * doc/glibc-headers/fts.texi: New file.
43819         * doc/glibc-headers/getopt.texi: New file.
43820         * doc/glibc-headers/ieee754.texi: New file.
43821         * doc/glibc-headers/ifaddrs.texi: New file.
43822         * doc/glibc-headers/libintl.texi: New file.
43823         * doc/glibc-headers/mcheck.texi: New file.
43824         * doc/glibc-headers/mntent.texi: New file.
43825         * doc/glibc-headers/obstack.texi: New file.
43826         * doc/glibc-headers/paths.texi: New file.
43827         * doc/glibc-headers/printf.texi: New file.
43828         * doc/glibc-headers/pty.texi: New file.
43829         * doc/glibc-headers/resolv.texi: New file.
43830         * doc/glibc-headers/shadow.texi: New file.
43831         * doc/glibc-headers/sysexits.texi: New file.
43832         * doc/glibc-headers/ttyent.texi: New file.
43833
43834 2008-01-12  Jim Meyering  <meyering@redhat.com>
43835
43836         announce-gen: emit Gnulib's git-based version string.
43837         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43838         New option --gnulib-version=V, where V is expected to be
43839         the output of running git describe in the gnulib directory.
43840         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43841         not useful, and plan to stop publishing an xdelta file with each
43842         coreutils release.
43843
43844         * build-aux/announce-gen: Also check for lzma-compressed files.
43845
43846 2008-01-11  Bruno Haible  <bruno@clisp.org>
43847
43848         * tests/test-memmem.c (main): Increase maximum allowed time.
43849         * tests/test-strstr.c (main): Likewise.
43850
43851 2008-01-11  Bruno Haible  <bruno@clisp.org>
43852
43853         * doc/functions/memmem.texi: Add more precisions about platforms.
43854         * doc/functions/strstr.texi: Likewise.
43855
43856 2008-01-10  Eric Blake  <ebb9@byu.net>
43857
43858         * m4/strstr.m4: Delete cruft from copy-n-paste.
43859         Reported by Bruno Haible.
43860
43861 2008-01-10  Bruno Haible  <bruno@clisp.org>
43862
43863         Make c-strstr rely on strstr.
43864         * lib/c-strstr.c: Don't include str-kmp.h.
43865         (c_strstr): Define in terms of strstr.
43866         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43867         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43868
43869 2008-01-10  Bruno Haible  <bruno@clisp.org>
43870
43871         * doc/gnulib.texi (String Functions in C Locale): New section.
43872         * doc/c-ctype.texi: New file.
43873         * doc/c-strcase.texi: New file.
43874         * doc/c-strcaseeq.texi: New file.
43875         * doc/c-strcasestr.texi: New file.
43876         * doc/c-strstr.texi: New file.
43877         * doc/c-strtod.texi: New file.
43878         * doc/c-strtold.texi: New file.
43879
43880 2008-01-10  Eric Blake  <ebb9@byu.net>
43881
43882         * lib/relocatable.h: Fix a comment.
43883
43884 2008-01-10  Eric Blake  <ebb9@byu.net>
43885
43886         Share two-way algorithm.
43887         * lib/str-two-way.h: New file, merged from...
43888         * lib/memmem.c: ...here...
43889         * lib/strstr.c: ...and here.
43890         * modules/memmem (Files): Use it.
43891         * modules/strstr (Files): Likewise.
43892
43893         Avoid quadratic strstr implementations.
43894         * lib/strstr.c: New file.
43895         * m4/strstr.m4: Likewise.
43896         * modules/strstr: Likewise.
43897         * modules/strstr-tests: Likewise.
43898         * tests/test-strstr.c: Likewise.
43899         * lib/string.in.h (rpl_strstr): Declare.
43900         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43902         * modules/string (Makefile.am): Likewise.
43903         * MODULES.html.sh (string handling): Mention new module.
43904         * doc/functions/strstr.texi (strstr): Document the bug.
43905
43906 2008-01-10  Bruno Haible  <bruno@clisp.org>
43907
43908         * lib/relocatable.h (relocate): State whether result is freshly
43909         allocated or not.
43910         * lib/relocatable.c (relocate): Return a freshly allocated string
43911         instead of a pointer to a privately held string.
43912         Reported by Sylvain Beucler <beuc@gnu.org>.
43913
43914 2008-01-10  Colin Watson  <cjwatson@debian.org>
43915
43916         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43917         s/S_ISNLK/S_ISLNK/.
43918
43919 2008-01-09  Bruno Haible  <bruno@clisp.org>
43920
43921         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43922         and other files.
43923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43924         if it's only a guess.
43925         * modules/memmem: Simplify by depending on memmem-simple.
43926
43927 2008-01-09  Bruno Haible  <bruno@clisp.org>
43928
43929         Work around OpenBSD 4.0 tdelete() bug.
43930         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43931         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43932         macros and don't redefine the enum values.
43933         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43934         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43935         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43936
43937 2008-01-09  Bruno Haible  <bruno@clisp.org>
43938
43939         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43940         (main): Don't perform the tests if setlocale did not install a UTF-8
43941         locale. Needed on OpenBSD 4.0.
43942         * modules/wcwidth-tests (Depends-on): Add localcharset.
43943
43944 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43945
43946         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43947         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43948         * NEWS: announce this.
43949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43950
43951 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43952         and Eric Blake  <ebb9@byu.net>
43953
43954         Add memmem-simple module.
43955         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43956         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43957         * modules/memmem-simple: New file.
43958         * modules/memmem (Description): Tweak.
43959         * MODULES.html.sh (string handling): Mention new module.
43960         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43961         addressed by memmem-simple.
43962         * NEWS: Document the difference.
43963
43964 2008-01-09  Eric Blake  <ebb9@byu.net>
43965
43966         Give gcc some memmem optimization hints.
43967         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43968         (strcasestr): Declare as pure.
43969         * modules/memmem (Maintainer): Claim my implementation.
43970
43971 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43972
43973         Support AIX 6.1 and higher.
43974         * build-aux/config.libpath: Likewise.
43975         * build-aux/config.rpath: Likewise.
43976
43977 2008-01-08  Jim Meyering  <meyering@redhat.com>
43978             Bruno Haible  <bruno@clisp.org>
43979
43980         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43981         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43982         Reported by Peter Fales in
43983         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43984
43985 2008-01-08  Bruno Haible  <bruno@clisp.org>
43986
43987         * modules/unictype/category-of (Depends-on): Add
43988         unictype/category-none.
43989         * modules/unictype/category-and-tests (Depends-on): Add
43990         unictype/category-{L,N,Lu,Nd}.
43991         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43992         * modules/unictype/category-or-tests (Depends-on): Add
43993         unictype/category-{L,N}.
43994         * modules/unictype/category-name-tests (Depends-on): Add
43995         unictype/category-{Z,Nl}.
43996         Reported by Simon Josefsson.
43997
43998 2008-01-08  Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44001         convention better.
44002         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44003         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44004         Reported by Peter Miller <millerp@canb.auug.org.au>.
44005
44006 2008-01-08  Eric Blake  <ebb9@byu.net>
44007
44008         Rewrite memmem to guarantee linear complexity without malloc.
44009         * lib/memmem.c (memmem): Use Two-Way rather than
44010         Knuth-Morris-Pratt, to allow O(1) space usage.
44011         (critical_factorization, two_way_short_needle)
44012         (two_way_long_needle): New functions.
44013         (knuth_morris_pratt): Delete.
44014         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44015         Add stdint.
44016         * tests/test-memmem.c (main): Add tests for periodic needle and
44017         sublinear performance.
44018         * doc/functions/memmem.texi (memmem): Document other deficiencies
44019         in cygwin and older glibc.
44020
44021 2008-01-08  Bruno Haible  <bruno@clisp.org>
44022
44023         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44024         augmentation.
44025
44026 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44027
44028         Add a configure time option: --disable-acl.
44029         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44030         AC_ARG_ENABLE(acl).
44031
44032 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44033
44034         * tests/test-localename.c: Don't include obsolete "setenv.h".
44035
44036         * modules/localename-tests (Depends-on): Need unsetenv.
44037
44038 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44039
44040         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44041
44042 2008-01-06  Colin Watson  <cjwatson@debian.org>
44043
44044         * users.txt: Add man-db.
44045
44046 2008-01-07  Bruno Haible  <bruno@clisp.org>
44047
44048         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44049         previous section name.
44050
44051 2008-01-07  Bruno Haible  <bruno@clisp.org>
44052
44053         * lib/progname.c (set_program_name): Don't strip off a leading
44054         "lt-" prefix outside a .libs directory.
44055         Suggested by Paul Eggert.
44056
44057 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44058             Bruno Haible  <bruno@clisp.org>
44059
44060         Improve memory cleanup in 'relocatable' module.
44061         * lib/relocatable.h (compute_curr_prefix): Change return type to
44062         'char *'.
44063         * lib/relocatable.c (compute_curr_prefix): Change return type to
44064         'char *'. Free curr_installdir after use.
44065         (relocate): Free curr_prefix_better after use.
44066         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44067
44068 2008-01-01  Bruno Haible  <bruno@clisp.org>
44069
44070         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44071         failure on older glibc systems.
44072         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44073
44074 2008-01-05  Eric Blake  <ebb9@byu.net>
44075
44076         Avoid quadratic system memmem.
44077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44078         Reported by Ralf Wildenhues.
44079
44080         Fix memmem test for mingw.
44081         * modules/memmem-tests (configure.ac): Check for alarm.
44082         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44083         it.
44084         * doc/functions/memmem.texi: New file.
44085         * doc/gnulib.texi (Function Substitutes): Add memmem.
44086         Reported by Bruno Haible.
44087
44088 2008-01-04  Bruno Haible  <bruno@clisp.org>
44089
44090         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44091         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44092         gl_HEADER_STRING_H_DEFAULTS.
44093
44094 2008-01-04  Eric Blake  <ebb9@byu.net>
44095
44096         Shorten duration of memmem test.
44097         * tests/test-memmem.c (main): Use alarm to declare failure if test
44098         is taking too long.
44099         Reported by Ralf Wildenhues.
44100
44101 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44102
44103         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44104         string, needed by strerror.
44105
44106 2008-01-03  Colin Watson  <cjwatson@debian.org>
44107             Bruno Haible  <bruno@clisp.org>
44108
44109         * doc/gnulib-tool.texi (Localization): New section.
44110
44111 2008-01-02  Bruno Haible  <bruno@clisp.org>
44112
44113         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44114         variables to 'unsigned char *' type.
44115         Reported by Paul Eggert.
44116
44117 2008-01-02  Jim Meyering  <jim@meyering.net>
44118
44119         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44120
44121 2007-12-31  Jim Meyering  <jim@meyering.net>
44122
44123         Avoid use of private FTS type name.
44124         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44125
44126 2007-12-30  Karl Berry  <karl@gnu.org>
44127
44128         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44129         work around defect in Texinfo and/or the standalone Info browser.
44130
44131 2007-12-30  Bruno Haible  <bruno@clisp.org>
44132
44133         Unify 5 copies of the KMP code.
44134         * lib/str-kmp.h: New file.
44135         * lib/c-strcasestr.c: Include str-kmp.h.
44136         (knuth_morris_pratt): Remove function.
44137         (c_strcasestr): Update.
44138         * lib/c-strstr.c: Include str-kmp.h.
44139         (knuth_morris_pratt): Remove function.
44140         (c_strcasestr): Update.
44141         * lib/mbscasestr.c: Include str-kmp.h.
44142         (knuth_morris_pratt_unibyte): Remove function.
44143         * lib/mbsstr.c: Include str-kmp.h.
44144         (knuth_morris_pratt_unibyte): Remove function.
44145         * lib/strcasestr.c: Include str-kmp.h.
44146         (knuth_morris_pratt): Remove function.
44147         (strcasestr): Update.
44148         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44149         * modules/c-strstr (Files): Likewise.
44150         * modules/mbscasestr (Files): Likewise.
44151         * modules/mbsstr (Files): Likewise.
44152         * modules/strcasestr (Files): Likewise.
44153         Suggested by Paul Eggert.
44154
44155 2007-12-30  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44158         defined.
44159
44160 2007-12-30  Bruno Haible  <bruno@clisp.org>
44161
44162         * lib/xmalloca.h: Include xalloc.h.
44163         (xnmalloca): New macro.
44164
44165 2007-12-30  Bruno Haible  <bruno@clisp.org>
44166
44167         * lib/malloca.h (nmalloca): New macro.
44168         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44169         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44170         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44171         knuth_morris_pratt_multibyte): Likewise.
44172         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44173         knuth_morris_pratt_multibyte): Likewise.
44174         * lib/memmem.c (knuth_morris_pratt): Likewise.
44175         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44176
44177 2007-12-25  Bruno Haible  <bruno@clisp.org>
44178
44179         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44180         * lib/glob.c: Don't include openat.h.
44181         (link_exists2_p): Add back the code that deals with the
44182         !GLOB_ALTDIRFUNC case.
44183         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44184         let it do the filename concatenation.
44185         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44186         * modules/glob (Depends-on): Remove openat.
44187
44188 2007-12-31  Bruno Haible  <bruno@clisp.org>
44189
44190         * modules/dirfd (License): Change to LGPLv2+.
44191         Approved by Jim Meyering.
44192
44193 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44194
44195         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44196         when multiplying M by sizeof (size_t).
44197
44198 2007-12-10  Martin Lambers  <marlam@marlam.de>
44199
44200         Override getpagesize on mingw.
44201         * lib/getpagesize.c: New file.
44202         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44203         * modules/getpagesize (Files): Add lib/getpagesize.c.
44204         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44206         REPLACE_GETPAGESIZE.
44207         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44208
44209 2007-12-25  Bruno Haible  <bruno@clisp.org>
44210
44211         * modules/localcharset (Notice): New field.
44212         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44213         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44214
44215 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44216             Bruno Haible  <bruno@clisp.org>
44217
44218         Avoid using the syntax symbol() in formatted documentation.
44219         * MODULES.html.sh (func_module): When replacing symbol() with a
44220         hyperlink, remove the parentheses. Show an error if some remain.
44221         Recognize and render the '...' syntax.
44222         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44223         Rework. Add paragraph about GCC's inlining.
44224         * doc/alloca.texi: Likewise.
44225         * doc/error.texi: Remove parentheses from symbol reference.
44226         * doc/gnulib-intro.texi: Likewise.
44227         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44228         * modules/fnmatch (Description): Reword to say "the ... function".
44229         * modules/full-read (Description): Likewise.
44230         * modules/full-write (Description): Likewise.
44231         * modules/safe-read (Description): Likewise.
44232         * modules/safe-write (Description): Likewise.
44233         * modules/strchrnul (Description): Likewise.
44234         * modules/trim (Description): Likewise.
44235         * modules/error (Description): Remove parentheses from symbol
44236         references.
44237         * modules/verror (Description): Likewise.
44238         Reported by Karl Berry.
44239
44240 2007-12-25  Bruno Haible  <bruno@clisp.org>
44241
44242         Fixup after 2007-10-16 commit.
44243         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44244
44245 2007-12-24  Bruno Haible  <bruno@clisp.org>
44246
44247         Make --enable-relocatable work with DESTDIR.
44248         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44249         to compute installdir from destprog.
44250         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44251         also set the RELOC_DESTDIR variable.
44252         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44253
44254 2007-12-24  Bruno Haible  <bruno@clisp.org>
44255
44256         Fix link error due to xalloc_die().
44257         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44258         of xreadlink.
44259         * lib/relocwrapper.c: Update comments.
44260         * build-aux/install-reloc: Remove xreadlink.c from file list.
44261         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44262         xreadlink.c.
44263         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44264
44265 2007-12-24  Bruno Haible  <bruno@clisp.org>
44266
44267         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44268         * lib/setenv.h: Remove file.
44269         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44270         lib/setenv.h.
44271         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44272         (Depends-on): Add stdlib.
44273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44274         gl_FUNC_UNSETENV.
44275         (Include): Replace setenv.h with <stdlib.h>.
44276         * modules/unsetenv: New file.
44277         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44278         * lib/unsetenv.c: Include <stdlib.h> first.
44279         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44280         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44281         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44282         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44283         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44284         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44286         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44287         * doc/functions/unsetenv.texi: Update.
44288         * modules/xsetenv (Depends-on): Add unsetenv.
44289         * modules/getdate (Depends-on): Likewise.
44290         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44291         * lib/xsetenv.c: Don't include setenv.h.
44292         * lib/getdate.y: Likewise.
44293         * lib/relocwrapper.c: Likewise.
44294         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44295         (Depends-on): Add stdlib.
44296         * NEWS: Mention the changes.
44297         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44298
44299 2007-12-23  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44302         indentation.
44303
44304 2007-12-23  Bruno Haible  <bruno@clisp.org>
44305
44306         * lib/c-strcasestr.c: Add more comments.
44307         * lib/c-strstr.c: Likewise.
44308         * lib/mbscasestr.c: Likewise.
44309         * lib/mbsstr.c: Likewise.
44310         * lib/strcasestr.c: Likewise.
44311         * lib/memmem.c: Likewise.
44312
44313 2007-12-23  Bruno Haible  <bruno@clisp.org>
44314
44315         * tests/test-memmem.c: Include <string.h> first.
44316
44317 2007-12-22  Bruno Haible  <bruno@clisp.org>
44318
44319         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44320         the contents of $testsbase.
44321         Reported by Ralf Wildenhues.
44322
44323 2007-12-22  Bruno Haible  <bruno@clisp.org>
44324
44325         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44326         two variables local_ldadd_before, local_ldadd_last.
44327
44328 2007-12-20  Eric Blake  <ebb9@byu.net>
44329
44330         Work around circular library issue when cross-compiling.
44331         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44332         that progname.o does not need to pull in rpl_memcmp.
44333
44334 2007-12-19  Eric Blake  <ebb9@byu.net>
44335
44336         Fix memmem to avoid O(n^2) worst-case complexity.
44337         * lib/memmem.c (knuth_morris_pratt): New function.
44338         (memmem): Use it if first few naive iterations fail.
44339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44340         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44341         * modules/memchr (License): Likewise.
44342         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44343         malloca.
44344         * tests/test-memmem.c: Rewrite, borrowing ideas from
44345         test-mbsstr1.c; the old version wouldn't even compile!
44346         * modules/memmem-tests: New file.
44347         * lib/string.in.h (rpl_memmem): Add declaration.
44348         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44350         REPLACE_MEMMEM.
44351
44352 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44353
44354         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44355         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44356         before any system include files, and undef after them all.  This
44357         should fix a problem on VMS reported by John E. Malmberg in
44358         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44359
44360 2007-12-17  Eric Blake  <ebb9@byu.net>
44361
44362         Revert addition of verify, for BSD/OS.
44363         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44364         can't handle large files, for the sake of obsolete platforms.
44365         * modules/fseeko (Depends-on): Remove verify.
44366         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44367         * doc/functions/ftello.texi (ftello): Likewise.
44368         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44369         Reported by Larry Jones.
44370
44371 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44372
44373         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44374         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44375
44376 2007-12-17  Jim Meyering  <meyering@redhat.com>
44377
44378         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44379         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44380         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44381         * modules/getcwd (Depends-on): Add openat.
44382         Reported by Petr Salinger.
44383
44384 2007-12-17  Bruno Haible  <bruno@clisp.org>
44385
44386         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44387         avoid a segmentation fault of the configure test on x86_64 systems.
44388
44389 2007-12-15  Jim Meyering  <meyering@redhat.com>
44390
44391         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44392
44393 2007-12-13  Eric Blake  <ebb9@byu.net>
44394
44395         Another fseek test.
44396         * tests/test-fseek.c (main): Also test ungetc handling.
44397         * tests/test-fseeko.c (main): Likewise.
44398         * modules/fseeko (Depends-on): Add verify.
44399         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44400         large.
44401         Reported by Larry Jones.
44402
44403         Fix fseeko on mingw.
44404         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44405         seek.
44406
44407         Beef up fseek tests.
44408         * tests/test-fseek.c (main): Also test eof handling.
44409         * tests/test-fseeko.c (main): Likewise.
44410         Reported by Larry Jones.
44411
44412 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44413
44414         Fix fseeko on BSD-based platforms.
44415         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44416         successful seek.
44417
44418 2007-12-12  Eric Blake  <ebb9@byu.net>
44419
44420         Allow circular dependency of separate libtests.a
44421         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44422         when use_libtests.
44423
44424 2007-12-11  Eric Blake  <ebb9@byu.net>
44425
44426         Fix bug with -0.0L in previous patch.
44427         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44428         * tests/test-isnan.c (main): Also test on zeroes.
44429         * tests/test-isnanf.c (main): Likewise.
44430         * tests/test-isnanl.h (main): Likewise.
44431
44432         Detect pseudo-denormals on x86 even when cross-compiling.
44433         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44434         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44435         invalid bit patterns that happen to satisfy ==.
44436
44437         Avoid link failures with separate libtests.a.
44438         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44439         last, to satisfy circular dependencies.
44440
44441 2007-12-11  Eric Blake  <ebb9@byu.net>
44442         and Bruno Haible  <bruno@clisp.org>
44443
44444         Fix OpenBSD 4.0 <float.h> handling of long double.
44445         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44446         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44447         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44448
44449 2007-12-11  Jim Meyering  <meyering@redhat.com>
44450
44451         * users.txt: Add libvirt.
44452
44453         Support versions of autoconf prior to 2.59c.
44454         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44455         if it is not already defined.
44456
44457 2007-12-09  Bruno Haible  <bruno@clisp.org>
44458
44459         Let 'gnulib-tool --import' collect sources needed for the tests in
44460         tests/ rather than in lib/.
44461         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44462         argument. If true, add rules to generate libtests.a, and put libtests.a
44463         into $(LDADD). Consider source files in subdirectories and set
44464         uses_subdirs.
44465         (func_emit_initmacro_start, func_emit_initmacro_end,
44466         func_emit_initmacro_done): Pass all arguments explicitly.
44467         (func_import): Determine two module lists main_modules,
44468         testsrelated_modules. Determine use_libtests. Determine two variables
44469         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44470         instead of just sed_transform_lib_file. Determine two variables
44471         main_files and testsrelated_files. Compute 'files' as the union of
44472         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44473         func_add_or_update. In the generated gnulib-comp.m4, collect the
44474         object files for tests/ in different variables than those for lib/.
44475         Substitute LIBTESTS_LIBDEPS.
44476         (func_create_testdir): Combine the uses_subdirs results from
44477         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44478
44479 2007-12-09  Bruno Haible  <bruno@clisp.org>
44480
44481         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44482         the build-aux directory.
44483
44484 2007-12-09  Bruno Haible  <bruno@clisp.org>
44485
44486         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44487         introduced on 2006-09-09.
44488
44489 2007-12-07  Jim Meyering  <meyering@redhat.com>
44490
44491         Let these macros work also with autoconf-2.59.
44492         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44493         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44494         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44495
44496 2007-12-06  Jim Meyering  <meyering@redhat.com>
44497
44498         Avoid a configure-time syntax error in gl_FUNC_ACL.
44499         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44500         function in each branch, before testing the cache variable.
44501
44502 2007-12-04  Eric Blake  <ebb9@byu.net>
44503
44504         Make scripts executable.
44505         * build-aux/config.guess: Add execute permissions.
44506         * build-aux/config.sub: Likewise.
44507         * build-aux/gendocs.sh: Likewise.
44508
44509         Fix frexp on mingw.
44510         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44511         cross-compiling.
44512         * doc/functions/frexp.texi (frexp): Document the bug.
44513
44514         Make cygwin fseeko check more reliable.
44515         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44516         version numbers, rather than unrelated feature check.
44517         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44518         * doc/functions/ftello.texi (ftello): Likewise.
44519         Reported by Bruno Haible.
44520
44521         * m4/strerror.m4: Bump version number.
44522
44523 2007-12-03  Bruno Haible  <bruno@clisp.org>
44524
44525         * doc/functions/mprotect.texi: Mention the mingw problem.
44526
44527 2007-12-03  Eric Blake  <ebb9@byu.net>
44528
44529         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44530         REPLACE_STRERROR is initialized before this macro.
44531
44532 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44535         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44536         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44537         put -lsec in even for programs other than 'ls'.  This fixes a problem
44538         for gettext reported by Bruno Haible in
44539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44540         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44541         Add support for Solaris 10.  This isn't efficient, but should get the
44542         job done for now.
44543
44544 2007-12-03  James Youngman  <jay@gnu.org>
44545
44546         * doc/regexprops-generic.texi: change "an close-group" to "a
44547         close-group" and "illegal" to "not allowed".
44548
44549 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44550
44551         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44552         pr_byname.h. Needed for the rare case when the maintainer has done
44553         "make maintainer-clean" in the source directory and then attempts a
44554         build outside the source directory.
44555         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44556         scripts_byname.h.
44557
44558 2007-12-02  Martin Lambers <marlam@marlam.de>
44559             Bruno Haible  <bruno@clisp.org>
44560
44561         * lib/getpagesize.h: Remove file.
44562         * lib/unistd.in.h: Include declaration of getpagesize here.
44563         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44564         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44565         HAVE_SYS_PARAM_H.
44566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44567         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44568         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44569         (Depends-on): Add unistd.
44570         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44571         (Include): Use <unistd.h> instead of getpagesize.h.
44572         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44573         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44574         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44575         gl_GETPAGESIZE invocation, already handled by module dependency.
44576         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44577
44578 2007-12-02  Bruno Haible  <bruno@clisp.org>
44579
44580         * modules/strings-tests: New file.
44581         * tests/test-strings.c: New file.
44582
44583         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44584         * lib/strings.in.h: New file.
44585         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44586         * m4/strings_h.m4: New file.
44587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44588         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44589         * modules/strings: New file.
44590         * modules/string (Makefile.am): Update.
44591         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44592         Reported by Karl Berry.
44593
44594 2007-12-01  Eric Blake  <ebb9@byu.net>
44595
44596         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44597         accomodate fix in cygwin 1.5.25.
44598
44599 2007-12-01  Jim Meyering  <meyering@redhat.com>
44600
44601         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44602         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44603         that would inhibit utf8-optimization of a regexp containing line-
44604         or buffer-anchors, e.g., `^', `$'.
44605
44606 2007-11-30  Bruno Haible  <bruno@clisp.org>
44607
44608         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44609         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44610         glthread_recursive_lock_init.
44611         * lib/lock.c (glthread_recursive_lock_init)
44612         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44613         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44614
44615 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44616
44617         New function qset_acl, like set_acl but with syscall semantics.
44618         * lib/acl.h (qset_acl): New decl.
44619         * lib/acl.c (qset_acl): New function.
44620         (set_acl): Use new function.  Use more-consistent diagnostics.
44621
44622 2007-11-28  Jim Meyering  <meyering@redhat.com>
44623
44624         * modules/physmem (License): Change from GPL to LGPLv2+.
44625
44626 2007-11-26  Bruno Haible  <bruno@clisp.org>
44627
44628         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44629         'long double' type has excess precision.
44630         Reported by Jim Meyering in
44631         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44632
44633 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44634
44635         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44636         Sync from <http://gnu.org/licenses>.
44637         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44638         with license text from same location.
44639         * doc/maintain.texi, doc/standards.texi:  Sync from
44640         <http://savannah.gnu.org/projects/gnustandards>.
44641
44642 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44643         and Jim Meyering  <meyering@redhat.com>
44644
44645         Adjust getdate' grammar to accept a slightly more regular language.
44646         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44647         Before, the former was rejected.
44648         * lib/getdate.y (digits_to_date_time): New function, factored
44649         out of ...
44650         (number): ...here.  Just call digits_to_date_time.
44651         (hybrid): New non-terminal to handle an <unsigned number,
44652         signed relative offset> sequence consistently.
44653
44654 2007-11-18  Jim Meyering  <meyering@redhat.com>
44655
44656         Pull my changes from coreutils:
44657         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44658         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44659         use of $gnulib_tool_option_extras, so that it's separated from the
44660         preceding argument.
44661
44662         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44663         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44664         parent destination directories before copying a file into place.
44665
44666 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44667
44668         bootstrap: work also with 4-argument variant of AC_INIT
44669         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44670
44671 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44672
44673         Port test-getaddrinfo to Solaris.
44674         Problem reported by Bruno Haible in
44675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44676         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44677         explanation of setting 'hints'.
44678         Don't reject an implementation merely because it returns EAI_SERVICE.
44679         (EAI_SERVICE): Define to 0 if not defined.
44680
44681 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44682
44683         The license of gnu-make and posix-shell is now "GPLed build tool".
44684         * modules/gnu-make (License): Likewise.
44685         * modules/posix-shell (License): Likewise.
44686
44687         New module posix-shell, for determining a POSIX shell
44688         or perhaps something that is close enough to a POSIX shell.
44689         * m4/posix-shell.m4: New file.
44690         * modules/posix-shell: New file.
44691
44692         * MODULES.html.sh: Mention new module.
44693
44694         New module gnu-make, for determining whether we're using GNU Make.
44695         * m4/gnu-make.m4: New file.
44696         * modules/gnu-make: New file.
44697         * MODULES.html.sh: Mention new module.
44698
44699 2007-11-14  Jim Meyering  <meyering@redhat.com>
44700
44701         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44702         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44703         use this macro to create a function _definition_.
44704         Remove useless "#undef ARGMATCH_DIE".
44705
44706 2007-11-14  Bruno Haible  <bruno@clisp.org>
44707
44708         * lib/config.charset: Update for OpenBSD 4.1.
44709         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44710
44711 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44712
44713         Document 64-bit #if problems in stdint.texi.
44714         * doc/headers/stdint.texi (stdint.h): Mention problems with
44715         64-bit-#if, and how to work around them.
44716
44717         Don't insist on 'long long int' support in the preprocessor.  It
44718         breaks too many things.  For example, PRIdMAX still uses a 'long
44719         long int' format with the latest Sun compiler, even though
44720         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44721         preprocessor problem.  This causes the latest coreutils to dump
44722         core on Solaris 10 sparc with the Sun C compiler.
44723         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44724         the troublesome expressions at configure-time, not at #if-time.
44725         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44726         preprocessor.
44727         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44728         compile-time C checks, done at 'configure'-time.
44729         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44730         * modules/inttypes (Makefile): Substitute the new symbols that
44731         gl_INTTYPES_H now generates.
44732         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44733
44734 2007-11-12  Bruno Haible  <bruno@clisp.org>
44735
44736         Tests for Unicode character classification functions.
44737
44738         * modules/unictype/bidicategory-byname-tests: New file.
44739         * modules/unictype/bidicategory-name-tests: New file.
44740         * modules/unictype/bidicategory-of-tests: New file.
44741         * modules/unictype/bidicategory-test-tests: New file.
44742         * modules/unictype/block-list-tests: New file.
44743         * modules/unictype/block-of-tests: New file.
44744         * modules/unictype/block-test-tests: New file.
44745         * modules/unictype/category-C-tests: New file.
44746         * modules/unictype/category-Cc-tests: New file.
44747         * modules/unictype/category-Cf-tests: New file.
44748         * modules/unictype/category-Cn-tests: New file.
44749         * modules/unictype/category-Co-tests: New file.
44750         * modules/unictype/category-Cs-tests: New file.
44751         * modules/unictype/category-L-tests: New file.
44752         * modules/unictype/category-Ll-tests: New file.
44753         * modules/unictype/category-Lm-tests: New file.
44754         * modules/unictype/category-Lo-tests: New file.
44755         * modules/unictype/category-Lt-tests: New file.
44756         * modules/unictype/category-Lu-tests: New file.
44757         * modules/unictype/category-M-tests: New file.
44758         * modules/unictype/category-Mc-tests: New file.
44759         * modules/unictype/category-Me-tests: New file.
44760         * modules/unictype/category-Mn-tests: New file.
44761         * modules/unictype/category-N-tests: New file.
44762         * modules/unictype/category-Nd-tests: New file.
44763         * modules/unictype/category-Nl-tests: New file.
44764         * modules/unictype/category-No-tests: New file.
44765         * modules/unictype/category-P-tests: New file.
44766         * modules/unictype/category-Pc-tests: New file.
44767         * modules/unictype/category-Pd-tests: New file.
44768         * modules/unictype/category-Pe-tests: New file.
44769         * modules/unictype/category-Pf-tests: New file.
44770         * modules/unictype/category-Pi-tests: New file.
44771         * modules/unictype/category-Po-tests: New file.
44772         * modules/unictype/category-Ps-tests: New file.
44773         * modules/unictype/category-S-tests: New file.
44774         * modules/unictype/category-Sc-tests: New file.
44775         * modules/unictype/category-Sk-tests: New file.
44776         * modules/unictype/category-Sm-tests: New file.
44777         * modules/unictype/category-So-tests: New file.
44778         * modules/unictype/category-Z-tests: New file.
44779         * modules/unictype/category-Zl-tests: New file.
44780         * modules/unictype/category-Zp-tests: New file.
44781         * modules/unictype/category-Zs-tests: New file.
44782         * modules/unictype/category-and-not-tests: New file.
44783         * modules/unictype/category-and-tests: New file.
44784         * modules/unictype/category-byname-tests: New file.
44785         * modules/unictype/category-name-tests: New file.
44786         * modules/unictype/category-none-tests: New file.
44787         * modules/unictype/category-of-tests: New file.
44788         * modules/unictype/category-or-tests: New file.
44789         * modules/unictype/category-test-withtable-tests: New file.
44790         * modules/unictype/combining-class-tests: New file.
44791         * modules/unictype/ctype-alnum-tests: New file.
44792         * modules/unictype/ctype-alpha-tests: New file.
44793         * modules/unictype/ctype-blank-tests: New file.
44794         * modules/unictype/ctype-cntrl-tests: New file.
44795         * modules/unictype/ctype-digit-tests: New file.
44796         * modules/unictype/ctype-graph-tests: New file.
44797         * modules/unictype/ctype-lower-tests: New file.
44798         * modules/unictype/ctype-print-tests: New file.
44799         * modules/unictype/ctype-punct-tests: New file.
44800         * modules/unictype/ctype-space-tests: New file.
44801         * modules/unictype/ctype-upper-tests: New file.
44802         * modules/unictype/ctype-xdigit-tests: New file.
44803         * modules/unictype/decimal-digit-tests: New file.
44804         * modules/unictype/digit-tests: New file.
44805         * modules/unictype/mirror-tests: New file.
44806         * modules/unictype/numeric-tests: New file.
44807         * modules/unictype/property-alphabetic-tests: New file.
44808         * modules/unictype/property-ascii-hex-digit-tests: New file.
44809         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44810         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44811         * modules/unictype/property-bidi-block-separator-tests: New file.
44812         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44813         * modules/unictype/property-bidi-common-separator-tests: New file.
44814         * modules/unictype/property-bidi-control-tests: New file.
44815         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44816         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44817         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44818         * modules/unictype/property-bidi-european-digit-tests: New file.
44819         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44820         * modules/unictype/property-bidi-left-to-right-tests: New file.
44821         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44822         * modules/unictype/property-bidi-other-neutral-tests: New file.
44823         * modules/unictype/property-bidi-pdf-tests: New file.
44824         * modules/unictype/property-bidi-segment-separator-tests: New file.
44825         * modules/unictype/property-bidi-whitespace-tests: New file.
44826         * modules/unictype/property-byname-tests: New file.
44827         * modules/unictype/property-combining-tests: New file.
44828         * modules/unictype/property-composite-tests: New file.
44829         * modules/unictype/property-currency-symbol-tests: New file.
44830         * modules/unictype/property-dash-tests: New file.
44831         * modules/unictype/property-decimal-digit-tests: New file.
44832         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44833         * modules/unictype/property-deprecated-tests: New file.
44834         * modules/unictype/property-diacritic-tests: New file.
44835         * modules/unictype/property-extender-tests: New file.
44836         * modules/unictype/property-format-control-tests: New file.
44837         * modules/unictype/property-grapheme-base-tests: New file.
44838         * modules/unictype/property-grapheme-extend-tests: New file.
44839         * modules/unictype/property-grapheme-link-tests: New file.
44840         * modules/unictype/property-hex-digit-tests: New file.
44841         * modules/unictype/property-hyphen-tests: New file.
44842         * modules/unictype/property-id-continue-tests: New file.
44843         * modules/unictype/property-id-start-tests: New file.
44844         * modules/unictype/property-ideographic-tests: New file.
44845         * modules/unictype/property-ids-binary-operator-tests: New file.
44846         * modules/unictype/property-ids-trinary-operator-tests: New file.
44847         * modules/unictype/property-ignorable-control-tests: New file.
44848         * modules/unictype/property-iso-control-tests: New file.
44849         * modules/unictype/property-join-control-tests: New file.
44850         * modules/unictype/property-left-of-pair-tests: New file.
44851         * modules/unictype/property-line-separator-tests: New file.
44852         * modules/unictype/property-logical-order-exception-tests: New file.
44853         * modules/unictype/property-lowercase-tests: New file.
44854         * modules/unictype/property-math-tests: New file.
44855         * modules/unictype/property-non-break-tests: New file.
44856         * modules/unictype/property-not-a-character-tests: New file.
44857         * modules/unictype/property-numeric-tests: New file.
44858         * modules/unictype/property-other-alphabetic-tests: New file.
44859         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44860         * modules/unictype/property-other-grapheme-extend-tests: New file.
44861         * modules/unictype/property-other-id-continue-tests: New file.
44862         * modules/unictype/property-other-id-start-tests: New file.
44863         * modules/unictype/property-other-lowercase-tests: New file.
44864         * modules/unictype/property-other-math-tests: New file.
44865         * modules/unictype/property-other-uppercase-tests: New file.
44866         * modules/unictype/property-paired-punctuation-tests: New file.
44867         * modules/unictype/property-paragraph-separator-tests: New file.
44868         * modules/unictype/property-pattern-syntax-tests: New file.
44869         * modules/unictype/property-pattern-white-space-tests: New file.
44870         * modules/unictype/property-private-use-tests: New file.
44871         * modules/unictype/property-punctuation-tests: New file.
44872         * modules/unictype/property-quotation-mark-tests: New file.
44873         * modules/unictype/property-radical-tests: New file.
44874         * modules/unictype/property-sentence-terminal-tests: New file.
44875         * modules/unictype/property-soft-dotted-tests: New file.
44876         * modules/unictype/property-space-tests: New file.
44877         * modules/unictype/property-terminal-punctuation-tests: New file.
44878         * modules/unictype/property-test-tests: New file.
44879         * modules/unictype/property-titlecase-tests: New file.
44880         * modules/unictype/property-unassigned-code-value-tests: New file.
44881         * modules/unictype/property-unified-ideograph-tests: New file.
44882         * modules/unictype/property-uppercase-tests: New file.
44883         * modules/unictype/property-variation-selector-tests: New file.
44884         * modules/unictype/property-white-space-tests: New file.
44885         * modules/unictype/property-xid-continue-tests: New file.
44886         * modules/unictype/property-xid-start-tests: New file.
44887         * modules/unictype/property-zero-width-tests: New file.
44888         * modules/unictype/scripts-tests: New file.
44889         * modules/unictype/syntax-c-ident-tests: New file.
44890         * modules/unictype/syntax-c-whitespace-tests: New file.
44891         * modules/unictype/syntax-java-ident-tests: New file.
44892         * modules/unictype/syntax-java-whitespace-tests: New file.
44893         * tests/unictype/test-bidi_byname.c: New file.
44894         * tests/unictype/test-bidi_name.c: New file.
44895         * tests/unictype/test-bidi_of.c: New file.
44896         * tests/unictype/test-bidi_test.c: New file.
44897         * tests/unictype/test-block_list.c: New file.
44898         * tests/unictype/test-block_of.c: New file.
44899         * tests/unictype/test-block_test.c: New file.
44900         * tests/unictype/test-categ_and.c: New file.
44901         * tests/unictype/test-categ_and_not.c: New file.
44902         * tests/unictype/test-categ_byname.c: New file.
44903         * tests/unictype/test-categ_name.c: New file.
44904         * tests/unictype/test-categ_none.c: New file.
44905         * tests/unictype/test-categ_of.c: New file.
44906         * tests/unictype/test-categ_or.c: New file.
44907         * tests/unictype/test-categ_test_withtable.c: New file.
44908         * tests/unictype/test-combining.c: New file.
44909         * tests/unictype/test-decdigit.c: New file.
44910         * tests/unictype/test-digit.c: New file.
44911         * tests/unictype/test-mirror.c: New file.
44912         * tests/unictype/test-numeric.c: New file.
44913         * tests/unictype/test-pr_byname.c: New file.
44914         * tests/unictype/test-pr_test.c: New file.
44915         * tests/unictype/test-predicate-part1.h: New file.
44916         * tests/unictype/test-predicate-part2.h: New file.
44917         * tests/unictype/test-scripts.c: New file.
44918         * tests/unictype/test-sy_c_ident.c: New file.
44919         * tests/unictype/test-sy_java_ident.c: New file.
44920
44921         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44922         for Unicode 5.0.0.
44923         * tests/unictype/test-categ_Cc.c: Likewise.
44924         * tests/unictype/test-categ_Cf.c: Likewise.
44925         * tests/unictype/test-categ_Cn.c: Likewise.
44926         * tests/unictype/test-categ_Co.c: Likewise.
44927         * tests/unictype/test-categ_Cs.c: Likewise.
44928         * tests/unictype/test-categ_L.c: Likewise.
44929         * tests/unictype/test-categ_Ll.c: Likewise.
44930         * tests/unictype/test-categ_Lm.c: Likewise.
44931         * tests/unictype/test-categ_Lo.c: Likewise.
44932         * tests/unictype/test-categ_Lt.c: Likewise.
44933         * tests/unictype/test-categ_Lu.c: Likewise.
44934         * tests/unictype/test-categ_M.c: Likewise.
44935         * tests/unictype/test-categ_Mc.c: Likewise.
44936         * tests/unictype/test-categ_Me.c: Likewise.
44937         * tests/unictype/test-categ_Mn.c: Likewise.
44938         * tests/unictype/test-categ_N.c: Likewise.
44939         * tests/unictype/test-categ_Nd.c: Likewise.
44940         * tests/unictype/test-categ_Nl.c: Likewise.
44941         * tests/unictype/test-categ_No.c: Likewise.
44942         * tests/unictype/test-categ_P.c: Likewise.
44943         * tests/unictype/test-categ_Pc.c: Likewise.
44944         * tests/unictype/test-categ_Pd.c: Likewise.
44945         * tests/unictype/test-categ_Pe.c: Likewise.
44946         * tests/unictype/test-categ_Pf.c: Likewise.
44947         * tests/unictype/test-categ_Pi.c: Likewise.
44948         * tests/unictype/test-categ_Po.c: Likewise.
44949         * tests/unictype/test-categ_Ps.c: Likewise.
44950         * tests/unictype/test-categ_S.c: Likewise.
44951         * tests/unictype/test-categ_Sc.c: Likewise.
44952         * tests/unictype/test-categ_Sk.c: Likewise.
44953         * tests/unictype/test-categ_Sm.c: Likewise.
44954         * tests/unictype/test-categ_So.c: Likewise.
44955         * tests/unictype/test-categ_Z.c: Likewise.
44956         * tests/unictype/test-categ_Zl.c: Likewise.
44957         * tests/unictype/test-categ_Zp.c: Likewise.
44958         * tests/unictype/test-categ_Zs.c: Likewise.
44959         * tests/unictype/test-ctype_alnum.c: Likewise.
44960         * tests/unictype/test-ctype_alpha.c: Likewise.
44961         * tests/unictype/test-ctype_blank.c: Likewise.
44962         * tests/unictype/test-ctype_cntrl.c: Likewise.
44963         * tests/unictype/test-ctype_digit.c: Likewise.
44964         * tests/unictype/test-ctype_graph.c: Likewise.
44965         * tests/unictype/test-ctype_lower.c: Likewise.
44966         * tests/unictype/test-ctype_print.c: Likewise.
44967         * tests/unictype/test-ctype_punct.c: Likewise.
44968         * tests/unictype/test-ctype_space.c: Likewise.
44969         * tests/unictype/test-ctype_upper.c: Likewise.
44970         * tests/unictype/test-ctype_xdigit.c: Likewise.
44971         * tests/unictype/test-decdigit.h: Likewise.
44972         * tests/unictype/test-digit.h: Likewise.
44973         * tests/unictype/test-numeric.h: Likewise.
44974         * tests/unictype/test-pr_alphabetic.c: Likewise.
44975         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44976         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44977         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44978         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44979         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44980         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44981         * tests/unictype/test-pr_bidi_control.c: Likewise.
44982         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44983         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44984         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44985         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44986         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44987         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44988         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44989         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44990         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44991         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44992         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44993         * tests/unictype/test-pr_combining.c: Likewise.
44994         * tests/unictype/test-pr_composite.c: Likewise.
44995         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44996         * tests/unictype/test-pr_dash.c: Likewise.
44997         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44998         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44999         * tests/unictype/test-pr_deprecated.c: Likewise.
45000         * tests/unictype/test-pr_diacritic.c: Likewise.
45001         * tests/unictype/test-pr_extender.c: Likewise.
45002         * tests/unictype/test-pr_format_control.c: Likewise.
45003         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45004         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45005         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45006         * tests/unictype/test-pr_hex_digit.c: Likewise.
45007         * tests/unictype/test-pr_hyphen.c: Likewise.
45008         * tests/unictype/test-pr_id_continue.c: Likewise.
45009         * tests/unictype/test-pr_id_start.c: Likewise.
45010         * tests/unictype/test-pr_ideographic.c: Likewise.
45011         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45012         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45013         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45014         * tests/unictype/test-pr_iso_control.c: Likewise.
45015         * tests/unictype/test-pr_join_control.c: Likewise.
45016         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45017         * tests/unictype/test-pr_line_separator.c: Likewise.
45018         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45019         * tests/unictype/test-pr_lowercase.c: Likewise.
45020         * tests/unictype/test-pr_math.c: Likewise.
45021         * tests/unictype/test-pr_non_break.c: Likewise.
45022         * tests/unictype/test-pr_not_a_character.c: Likewise.
45023         * tests/unictype/test-pr_numeric.c: Likewise.
45024         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45025         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45026         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45027         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45028         * tests/unictype/test-pr_other_id_start.c: Likewise.
45029         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45030         * tests/unictype/test-pr_other_math.c: Likewise.
45031         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45032         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45033         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45034         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45035         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45036         * tests/unictype/test-pr_private_use.c: Likewise.
45037         * tests/unictype/test-pr_punctuation.c: Likewise.
45038         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45039         * tests/unictype/test-pr_radical.c: Likewise.
45040         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45041         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45042         * tests/unictype/test-pr_space.c: Likewise.
45043         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45044         * tests/unictype/test-pr_titlecase.c: Likewise.
45045         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45046         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45047         * tests/unictype/test-pr_uppercase.c: Likewise.
45048         * tests/unictype/test-pr_variation_selector.c: Likewise.
45049         * tests/unictype/test-pr_white_space.c: Likewise.
45050         * tests/unictype/test-pr_xid_continue.c: Likewise.
45051         * tests/unictype/test-pr_xid_start.c: Likewise.
45052         * tests/unictype/test-pr_zero_width.c: Likewise.
45053         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45054         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45055
45056 2007-11-12  Bruno Haible  <bruno@clisp.org>
45057
45058         Unicode character classification functions.
45059         * lib/unictype.h: New file.
45060         * modules/unictype/base: New file.
45061         * modules/unictype/category-L: New file.
45062         * modules/unictype/category-Lu: New file.
45063         * modules/unictype/category-Ll: New file.
45064         * modules/unictype/category-Lt: New file.
45065         * modules/unictype/category-Lm: New file.
45066         * modules/unictype/category-Lo: New file.
45067         * modules/unictype/category-M: New file.
45068         * modules/unictype/category-Mn: New file.
45069         * modules/unictype/category-Mc: New file.
45070         * modules/unictype/category-Me: New file.
45071         * modules/unictype/category-N: New file.
45072         * modules/unictype/category-Nd: New file.
45073         * modules/unictype/category-Nl: New file.
45074         * modules/unictype/category-No: New file.
45075         * modules/unictype/category-P: New file.
45076         * modules/unictype/category-Pc: New file.
45077         * modules/unictype/category-Pd: New file.
45078         * modules/unictype/category-Ps: New file.
45079         * modules/unictype/category-Pe: New file.
45080         * modules/unictype/category-Pi: New file.
45081         * modules/unictype/category-Pf: New file.
45082         * modules/unictype/category-Po: New file.
45083         * modules/unictype/category-S: New file.
45084         * modules/unictype/category-Sm: New file.
45085         * modules/unictype/category-Sc: New file.
45086         * modules/unictype/category-Sk: New file.
45087         * modules/unictype/category-So: New file.
45088         * modules/unictype/category-Z: New file.
45089         * modules/unictype/category-Zs: New file.
45090         * modules/unictype/category-Zl: New file.
45091         * modules/unictype/category-Zp: New file.
45092         * modules/unictype/category-C: New file.
45093         * modules/unictype/category-Cc: New file.
45094         * modules/unictype/category-Cf: New file.
45095         * modules/unictype/category-Cs: New file.
45096         * modules/unictype/category-Co: New file.
45097         * modules/unictype/category-Cn: New file.
45098         * modules/unictype/category-or: New file.
45099         * modules/unictype/category-of: New file.
45100         * modules/unictype/category-test: New file.
45101         * modules/unictype/category-test-withtable: New file.
45102         * modules/unictype/category-byname: New file.
45103         * modules/unictype/category-none: New file.
45104         * modules/unictype/category-and: New file.
45105         * modules/unictype/category-and-not: New file.
45106         * modules/unictype/category-name: New file.
45107         * modules/unictype/combining-class: New file.
45108         * modules/unictype/category-all: New file.
45109         * modules/unictype/bidicategory-all: New file.
45110         * modules/unictype/bidicategory-byname: New file.
45111         * modules/unictype/bidicategory-name: New file.
45112         * modules/unictype/bidicategory-of: New file.
45113         * modules/unictype/bidicategory-test: New file.
45114         * modules/unictype/decimal-digit: New file.
45115         * modules/unictype/digit: New file.
45116         * modules/unictype/numeric: New file.
45117         * modules/unictype/mirror: New file.
45118         * modules/unictype/property-white-space: New file.
45119         * modules/unictype/property-alphabetic: New file.
45120         * modules/unictype/property-other-alphabetic: New file.
45121         * modules/unictype/property-not-a-character: New file.
45122         * modules/unictype/property-default-ignorable-code-point: New file.
45123         * modules/unictype/property-other-default-ignorable-code-point: New
45124         file.
45125         * modules/unictype/property-deprecated: New file.
45126         * modules/unictype/property-logical-order-exception: New file.
45127         * modules/unictype/property-variation-selector: New file.
45128         * modules/unictype/property-private-use: New file.
45129         * modules/unictype/property-unassigned-code-value: New file.
45130         * modules/unictype/property-uppercase: New file.
45131         * modules/unictype/property-other-uppercase: New file.
45132         * modules/unictype/property-lowercase: New file.
45133         * modules/unictype/property-other-lowercase: New file.
45134         * modules/unictype/property-titlecase: New file.
45135         * modules/unictype/property-soft-dotted: New file.
45136         * modules/unictype/property-id-start: New file.
45137         * modules/unictype/property-other-id-start: New file.
45138         * modules/unictype/property-id-continue: New file.
45139         * modules/unictype/property-other-id-continue: New file.
45140         * modules/unictype/property-xid-start: New file.
45141         * modules/unictype/property-xid-continue: New file.
45142         * modules/unictype/property-pattern-white-space: New file.
45143         * modules/unictype/property-pattern-syntax: New file.
45144         * modules/unictype/property-join-control: New file.
45145         * modules/unictype/property-grapheme-base: New file.
45146         * modules/unictype/property-grapheme-extend: New file.
45147         * modules/unictype/property-other-grapheme-extend: New file.
45148         * modules/unictype/property-grapheme-link: New file.
45149         * modules/unictype/property-bidi-control: New file.
45150         * modules/unictype/property-bidi-left-to-right: New file.
45151         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45152         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45153         * modules/unictype/property-bidi-european-digit: New file.
45154         * modules/unictype/property-bidi-eur-num-separator: New file.
45155         * modules/unictype/property-bidi-eur-num-terminator: New file.
45156         * modules/unictype/property-bidi-arabic-digit: New file.
45157         * modules/unictype/property-bidi-common-separator: New file.
45158         * modules/unictype/property-bidi-block-separator: New file.
45159         * modules/unictype/property-bidi-segment-separator: New file.
45160         * modules/unictype/property-bidi-whitespace: New file.
45161         * modules/unictype/property-bidi-non-spacing-mark: New file.
45162         * modules/unictype/property-bidi-boundary-neutral: New file.
45163         * modules/unictype/property-bidi-pdf: New file.
45164         * modules/unictype/property-bidi-embedding-or-override: New file.
45165         * modules/unictype/property-bidi-other-neutral: New file.
45166         * modules/unictype/property-hex-digit: New file.
45167         * modules/unictype/property-ascii-hex-digit: New file.
45168         * modules/unictype/property-ideographic: New file.
45169         * modules/unictype/property-unified-ideograph: New file.
45170         * modules/unictype/property-radical: New file.
45171         * modules/unictype/property-ids-binary-operator: New file.
45172         * modules/unictype/property-ids-trinary-operator: New file.
45173         * modules/unictype/property-zero-width: New file.
45174         * modules/unictype/property-space: New file.
45175         * modules/unictype/property-non-break: New file.
45176         * modules/unictype/property-iso-control: New file.
45177         * modules/unictype/property-format-control: New file.
45178         * modules/unictype/property-dash: New file.
45179         * modules/unictype/property-hyphen: New file.
45180         * modules/unictype/property-punctuation: New file.
45181         * modules/unictype/property-line-separator: New file.
45182         * modules/unictype/property-paragraph-separator: New file.
45183         * modules/unictype/property-quotation-mark: New file.
45184         * modules/unictype/property-sentence-terminal: New file.
45185         * modules/unictype/property-terminal-punctuation: New file.
45186         * modules/unictype/property-currency-symbol: New file.
45187         * modules/unictype/property-math: New file.
45188         * modules/unictype/property-other-math: New file.
45189         * modules/unictype/property-paired-punctuation: New file.
45190         * modules/unictype/property-left-of-pair: New file.
45191         * modules/unictype/property-combining: New file.
45192         * modules/unictype/property-composite: New file.
45193         * modules/unictype/property-decimal-digit: New file.
45194         * modules/unictype/property-numeric: New file.
45195         * modules/unictype/property-diacritic: New file.
45196         * modules/unictype/property-extender: New file.
45197         * modules/unictype/property-ignorable-control: New file.
45198         * modules/unictype/property-test: New file.
45199         * modules/unictype/property-byname: New file.
45200         * modules/unictype/property-all: New file.
45201         * modules/unictype/scripts: New file.
45202         * modules/unictype/scripts-all: New file.
45203         * modules/unictype/block-of: New file.
45204         * modules/unictype/block-test: New file.
45205         * modules/unictype/block-list: New file.
45206         * modules/unictype/block-all: New file.
45207         * modules/unictype/syntax-c-whitespace: New file.
45208         * modules/unictype/syntax-java-whitespace: New file.
45209         * modules/unictype/syntax-c-ident: New file.
45210         * modules/unictype/syntax-java-ident: New file.
45211         * modules/unictype/ctype-alnum: New file.
45212         * modules/unictype/ctype-alpha: New file.
45213         * modules/unictype/ctype-cntrl: New file.
45214         * modules/unictype/ctype-digit: New file.
45215         * modules/unictype/ctype-graph: New file.
45216         * modules/unictype/ctype-lower: New file.
45217         * modules/unictype/ctype-print: New file.
45218         * modules/unictype/ctype-punct: New file.
45219         * modules/unictype/ctype-space: New file.
45220         * modules/unictype/ctype-upper: New file.
45221         * modules/unictype/ctype-xdigit: New file.
45222         * modules/unictype/ctype-blank: New file.
45223         * lib/unictype/bidi_byname.c: New file.
45224         * lib/unictype/bidi_name.c: New file.
45225         * lib/unictype/bidi_of.c: New file.
45226         * lib/unictype/bidi_test.c: New file.
45227         * lib/unictype/bitmap.h: New file.
45228         * lib/unictype/block_test.c: New file.
45229         * lib/unictype/blocks.c: New file.
45230         * lib/unictype/categ_C.c: New file.
45231         * lib/unictype/categ_Cc.c: New file.
45232         * lib/unictype/categ_Cf.c: New file.
45233         * lib/unictype/categ_Cn.c: New file.
45234         * lib/unictype/categ_Co.c: New file.
45235         * lib/unictype/categ_Cs.c: New file.
45236         * lib/unictype/categ_L.c: New file.
45237         * lib/unictype/categ_Ll.c: New file.
45238         * lib/unictype/categ_Lm.c: New file.
45239         * lib/unictype/categ_Lo.c: New file.
45240         * lib/unictype/categ_Lt.c: New file.
45241         * lib/unictype/categ_Lu.c: New file.
45242         * lib/unictype/categ_M.c: New file.
45243         * lib/unictype/categ_Mc.c: New file.
45244         * lib/unictype/categ_Me.c: New file.
45245         * lib/unictype/categ_Mn.c: New file.
45246         * lib/unictype/categ_N.c: New file.
45247         * lib/unictype/categ_Nd.c: New file.
45248         * lib/unictype/categ_Nl.c: New file.
45249         * lib/unictype/categ_No.c: New file.
45250         * lib/unictype/categ_P.c: New file.
45251         * lib/unictype/categ_Pc.c: New file.
45252         * lib/unictype/categ_Pd.c: New file.
45253         * lib/unictype/categ_Pe.c: New file.
45254         * lib/unictype/categ_Pf.c: New file.
45255         * lib/unictype/categ_Pi.c: New file.
45256         * lib/unictype/categ_Po.c: New file.
45257         * lib/unictype/categ_Ps.c: New file.
45258         * lib/unictype/categ_S.c: New file.
45259         * lib/unictype/categ_Sc.c: New file.
45260         * lib/unictype/categ_Sk.c: New file.
45261         * lib/unictype/categ_Sm.c: New file.
45262         * lib/unictype/categ_So.c: New file.
45263         * lib/unictype/categ_Z.c: New file.
45264         * lib/unictype/categ_Zl.c: New file.
45265         * lib/unictype/categ_Zp.c: New file.
45266         * lib/unictype/categ_Zs.c: New file.
45267         * lib/unictype/categ_and.c: New file.
45268         * lib/unictype/categ_and_not.c: New file.
45269         * lib/unictype/categ_byname.c: New file.
45270         * lib/unictype/categ_name.c: New file.
45271         * lib/unictype/categ_none.c: New file.
45272         * lib/unictype/categ_of.c: New file.
45273         * lib/unictype/categ_or.c: New file.
45274         * lib/unictype/categ_test.c: New file.
45275         * lib/unictype/combining.c: New file.
45276         * lib/unictype/ctype_alnum.c: New file.
45277         * lib/unictype/ctype_alpha.c: New file.
45278         * lib/unictype/ctype_blank.c: New file.
45279         * lib/unictype/ctype_cntrl.c: New file.
45280         * lib/unictype/ctype_digit.c: New file.
45281         * lib/unictype/ctype_graph.c: New file.
45282         * lib/unictype/ctype_lower.c: New file.
45283         * lib/unictype/ctype_print.c: New file.
45284         * lib/unictype/ctype_punct.c: New file.
45285         * lib/unictype/ctype_space.c: New file.
45286         * lib/unictype/ctype_upper.c: New file.
45287         * lib/unictype/ctype_xdigit.c: New file.
45288         * lib/unictype/decdigit.c: New file.
45289         * lib/unictype/digit.c: New file.
45290         * lib/unictype/identsyntaxmap.h: New file.
45291         * lib/unictype/mirror.c: New file.
45292         * lib/unictype/numeric.c: New file.
45293         * lib/unictype/pr_alphabetic.c: New file.
45294         * lib/unictype/pr_ascii_hex_digit.c: New file.
45295         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45296         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45297         * lib/unictype/pr_bidi_block_separator.c: New file.
45298         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45299         * lib/unictype/pr_bidi_common_separator.c: New file.
45300         * lib/unictype/pr_bidi_control.c: New file.
45301         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45302         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45303         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45304         * lib/unictype/pr_bidi_european_digit.c: New file.
45305         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45306         * lib/unictype/pr_bidi_left_to_right.c: New file.
45307         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45308         * lib/unictype/pr_bidi_other_neutral.c: New file.
45309         * lib/unictype/pr_bidi_pdf.c: New file.
45310         * lib/unictype/pr_bidi_segment_separator.c: New file.
45311         * lib/unictype/pr_bidi_whitespace.c: New file.
45312         * lib/unictype/pr_byname.c: New file.
45313         * lib/unictype/pr_byname.gperf: New file.
45314         * lib/unictype/pr_combining.c: New file.
45315         * lib/unictype/pr_composite.c: New file.
45316         * lib/unictype/pr_currency_symbol.c: New file.
45317         * lib/unictype/pr_dash.c: New file.
45318         * lib/unictype/pr_decimal_digit.c: New file.
45319         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45320         * lib/unictype/pr_deprecated.c: New file.
45321         * lib/unictype/pr_diacritic.c: New file.
45322         * lib/unictype/pr_extender.c: New file.
45323         * lib/unictype/pr_format_control.c: New file.
45324         * lib/unictype/pr_grapheme_base.c: New file.
45325         * lib/unictype/pr_grapheme_extend.c: New file.
45326         * lib/unictype/pr_grapheme_link.c: New file.
45327         * lib/unictype/pr_hex_digit.c: New file.
45328         * lib/unictype/pr_hyphen.c: New file.
45329         * lib/unictype/pr_id_continue.c: New file.
45330         * lib/unictype/pr_id_start.c: New file.
45331         * lib/unictype/pr_ideographic.c: New file.
45332         * lib/unictype/pr_ids_binary_operator.c: New file.
45333         * lib/unictype/pr_ids_trinary_operator.c: New file.
45334         * lib/unictype/pr_ignorable_control.c: New file.
45335         * lib/unictype/pr_iso_control.c: New file.
45336         * lib/unictype/pr_join_control.c: New file.
45337         * lib/unictype/pr_left_of_pair.c: New file.
45338         * lib/unictype/pr_line_separator.c: New file.
45339         * lib/unictype/pr_logical_order_exception.c: New file.
45340         * lib/unictype/pr_lowercase.c: New file.
45341         * lib/unictype/pr_math.c: New file.
45342         * lib/unictype/pr_non_break.c: New file.
45343         * lib/unictype/pr_not_a_character.c: New file.
45344         * lib/unictype/pr_numeric.c: New file.
45345         * lib/unictype/pr_other_alphabetic.c: New file.
45346         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45347         * lib/unictype/pr_other_grapheme_extend.c: New file.
45348         * lib/unictype/pr_other_id_continue.c: New file.
45349         * lib/unictype/pr_other_id_start.c: New file.
45350         * lib/unictype/pr_other_lowercase.c: New file.
45351         * lib/unictype/pr_other_math.c: New file.
45352         * lib/unictype/pr_other_uppercase.c: New file.
45353         * lib/unictype/pr_paired_punctuation.c: New file.
45354         * lib/unictype/pr_paragraph_separator.c: New file.
45355         * lib/unictype/pr_pattern_syntax.c: New file.
45356         * lib/unictype/pr_pattern_white_space.c: New file.
45357         * lib/unictype/pr_private_use.c: New file.
45358         * lib/unictype/pr_punctuation.c: New file.
45359         * lib/unictype/pr_quotation_mark.c: New file.
45360         * lib/unictype/pr_radical.c: New file.
45361         * lib/unictype/pr_sentence_terminal.c: New file.
45362         * lib/unictype/pr_soft_dotted.c: New file.
45363         * lib/unictype/pr_space.c: New file.
45364         * lib/unictype/pr_terminal_punctuation.c: New file.
45365         * lib/unictype/pr_test.c: New file.
45366         * lib/unictype/pr_titlecase.c: New file.
45367         * lib/unictype/pr_unassigned_code_value.c: New file.
45368         * lib/unictype/pr_unified_ideograph.c: New file.
45369         * lib/unictype/pr_uppercase.c: New file.
45370         * lib/unictype/pr_variation_selector.c: New file.
45371         * lib/unictype/pr_white_space.c: New file.
45372         * lib/unictype/pr_xid_continue.c: New file.
45373         * lib/unictype/pr_xid_start.c: New file.
45374         * lib/unictype/pr_zero_width.c: New file.
45375         * lib/unictype/scripts.c: New file.
45376         * lib/unictype/sy_c_ident.c: New file.
45377         * lib/unictype/sy_c_whitespace.c: New file.
45378         * lib/unictype/sy_java_ident.c: New file.
45379         * lib/unictype/sy_java_whitespace.c: New file.
45380
45381         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45382         Unicode 5.0.0.
45383         * lib/unictype/blocks.h: Likewise.
45384         * lib/unictype/categ_C.h: Likewise.
45385         * lib/unictype/categ_Cc.h: Likewise.
45386         * lib/unictype/categ_Cf.h: Likewise.
45387         * lib/unictype/categ_Cn.h: Likewise.
45388         * lib/unictype/categ_Co.h: Likewise.
45389         * lib/unictype/categ_Cs.h: Likewise.
45390         * lib/unictype/categ_L.h: Likewise.
45391         * lib/unictype/categ_Ll.h: Likewise.
45392         * lib/unictype/categ_Lm.h: Likewise.
45393         * lib/unictype/categ_Lo.h: Likewise.
45394         * lib/unictype/categ_Lt.h: Likewise.
45395         * lib/unictype/categ_Lu.h: Likewise.
45396         * lib/unictype/categ_M.h: Likewise.
45397         * lib/unictype/categ_Mc.h: Likewise.
45398         * lib/unictype/categ_Me.h: Likewise.
45399         * lib/unictype/categ_Mn.h: Likewise.
45400         * lib/unictype/categ_N.h: Likewise.
45401         * lib/unictype/categ_Nd.h: Likewise.
45402         * lib/unictype/categ_Nl.h: Likewise.
45403         * lib/unictype/categ_No.h: Likewise.
45404         * lib/unictype/categ_P.h: Likewise.
45405         * lib/unictype/categ_Pc.h: Likewise.
45406         * lib/unictype/categ_Pd.h: Likewise.
45407         * lib/unictype/categ_Pe.h: Likewise.
45408         * lib/unictype/categ_Pf.h: Likewise.
45409         * lib/unictype/categ_Pi.h: Likewise.
45410         * lib/unictype/categ_Po.h: Likewise.
45411         * lib/unictype/categ_Ps.h: Likewise.
45412         * lib/unictype/categ_S.h: Likewise.
45413         * lib/unictype/categ_Sc.h: Likewise.
45414         * lib/unictype/categ_Sk.h: Likewise.
45415         * lib/unictype/categ_Sm.h: Likewise.
45416         * lib/unictype/categ_So.h: Likewise.
45417         * lib/unictype/categ_Z.h: Likewise.
45418         * lib/unictype/categ_Zl.h: Likewise.
45419         * lib/unictype/categ_Zp.h: Likewise.
45420         * lib/unictype/categ_Zs.h: Likewise.
45421         * lib/unictype/categ_of.h: Likewise.
45422         * lib/unictype/combining.h: Likewise.
45423         * lib/unictype/ctype_alnum.h: Likewise.
45424         * lib/unictype/ctype_alpha.h: Likewise.
45425         * lib/unictype/ctype_blank.h: Likewise.
45426         * lib/unictype/ctype_cntrl.h: Likewise.
45427         * lib/unictype/ctype_digit.h: Likewise.
45428         * lib/unictype/ctype_graph.h: Likewise.
45429         * lib/unictype/ctype_lower.h: Likewise.
45430         * lib/unictype/ctype_print.h: Likewise.
45431         * lib/unictype/ctype_punct.h: Likewise.
45432         * lib/unictype/ctype_space.h: Likewise.
45433         * lib/unictype/ctype_upper.h: Likewise.
45434         * lib/unictype/ctype_xdigit.h: Likewise.
45435         * lib/unictype/decdigit.h: Likewise.
45436         * lib/unictype/digit.h: Likewise.
45437         * lib/unictype/mirror.h: Likewise.
45438         * lib/unictype/numeric.h: Likewise.
45439         * lib/unictype/pr_alphabetic.h: Likewise.
45440         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45441         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45442         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45443         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45444         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45445         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45446         * lib/unictype/pr_bidi_control.h: Likewise.
45447         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45448         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45449         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45450         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45451         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45452         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45453         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45454         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45455         * lib/unictype/pr_bidi_pdf.h: Likewise.
45456         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45457         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45458         * lib/unictype/pr_combining.h: Likewise.
45459         * lib/unictype/pr_composite.h: Likewise.
45460         * lib/unictype/pr_currency_symbol.h: Likewise.
45461         * lib/unictype/pr_dash.h: Likewise.
45462         * lib/unictype/pr_decimal_digit.h: Likewise.
45463         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45464         * lib/unictype/pr_deprecated.h: Likewise.
45465         * lib/unictype/pr_diacritic.h: Likewise.
45466         * lib/unictype/pr_extender.h: Likewise.
45467         * lib/unictype/pr_format_control.h: Likewise.
45468         * lib/unictype/pr_grapheme_base.h: Likewise.
45469         * lib/unictype/pr_grapheme_extend.h: Likewise.
45470         * lib/unictype/pr_grapheme_link.h: Likewise.
45471         * lib/unictype/pr_hex_digit.h: Likewise.
45472         * lib/unictype/pr_hyphen.h: Likewise.
45473         * lib/unictype/pr_id_continue.h: Likewise.
45474         * lib/unictype/pr_id_start.h: Likewise.
45475         * lib/unictype/pr_ideographic.h: Likewise.
45476         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45477         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45478         * lib/unictype/pr_ignorable_control.h: Likewise.
45479         * lib/unictype/pr_iso_control.h: Likewise.
45480         * lib/unictype/pr_join_control.h: Likewise.
45481         * lib/unictype/pr_left_of_pair.h: Likewise.
45482         * lib/unictype/pr_line_separator.h: Likewise.
45483         * lib/unictype/pr_logical_order_exception.h: Likewise.
45484         * lib/unictype/pr_lowercase.h: Likewise.
45485         * lib/unictype/pr_math.h: Likewise.
45486         * lib/unictype/pr_non_break.h: Likewise.
45487         * lib/unictype/pr_not_a_character.h: Likewise.
45488         * lib/unictype/pr_numeric.h: Likewise.
45489         * lib/unictype/pr_other_alphabetic.h: Likewise.
45490         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45491         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45492         * lib/unictype/pr_other_id_continue.h: Likewise.
45493         * lib/unictype/pr_other_id_start.h: Likewise.
45494         * lib/unictype/pr_other_lowercase.h: Likewise.
45495         * lib/unictype/pr_other_math.h: Likewise.
45496         * lib/unictype/pr_other_uppercase.h: Likewise.
45497         * lib/unictype/pr_paired_punctuation.h: Likewise.
45498         * lib/unictype/pr_paragraph_separator.h: Likewise.
45499         * lib/unictype/pr_pattern_syntax.h: Likewise.
45500         * lib/unictype/pr_pattern_white_space.h: Likewise.
45501         * lib/unictype/pr_private_use.h: Likewise.
45502         * lib/unictype/pr_punctuation.h: Likewise.
45503         * lib/unictype/pr_quotation_mark.h: Likewise.
45504         * lib/unictype/pr_radical.h: Likewise.
45505         * lib/unictype/pr_sentence_terminal.h: Likewise.
45506         * lib/unictype/pr_soft_dotted.h: Likewise.
45507         * lib/unictype/pr_space.h: Likewise.
45508         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45509         * lib/unictype/pr_titlecase.h: Likewise.
45510         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45511         * lib/unictype/pr_unified_ideograph.h: Likewise.
45512         * lib/unictype/pr_uppercase.h: Likewise.
45513         * lib/unictype/pr_variation_selector.h: Likewise.
45514         * lib/unictype/pr_white_space.h: Likewise.
45515         * lib/unictype/pr_xid_continue.h: Likewise.
45516         * lib/unictype/pr_xid_start.h: Likewise.
45517         * lib/unictype/pr_zero_width.h: Likewise.
45518         * lib/unictype/scripts.h: Likewise.
45519         * lib/unictype/scripts_byname.gperf: Likewise.
45520         * lib/unictype/sy_c_ident.h: Likewise.
45521         * lib/unictype/sy_c_whitespace.h: Likewise.
45522         * lib/unictype/sy_java_ident.h: Likewise.
45523         * lib/unictype/sy_java_whitespace.h: Likewise.
45524
45525         * lib/unictype/Makefile: New file.
45526         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45527         glibc.
45528         * lib/unictype/3level.h: New file, copied from glibc.
45529         * lib/unictype/3levelbit.h: New file.
45530
45531 2007-11-11  Bruno Haible  <bruno@clisp.org>
45532
45533         * modules/gperf: New file.
45534         * modules/iconv_open (Depends-on): Add it.
45535         (Makefile.am): Remove the GPERF definition.
45536
45537 2007-11-11  Bruno Haible  <bruno@clisp.org>
45538
45539         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45540         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45541
45542 2007-11-11  Bruno Haible  <bruno@clisp.org>
45543
45544         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45545         (usage): Remove function.
45546
45547 2007-11-11  Bruno Haible  <bruno@clisp.org>
45548
45549         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45550         gl_FUNC_CEILF_LIBS.
45551         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45552         gl_FUNC_CEIL_LIBS.
45553         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45554         gl_FUNC_CEILL_LIBS.
45555         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45556         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45557         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45558
45559 2007-11-11  Bruno Haible  <bruno@clisp.org>
45560
45561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45562         roundf were declared but do not exist on functions.
45563         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45564         roundl were declared but do not exist on functions.
45565         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45566         HAVE_FLOORL_AND_CEILL, respectively.
45567         Needed for Sun C on Solaris 10.
45568
45569 2007-11-11  Bruno Haible  <bruno@clisp.org>
45570
45571         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45572         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45573         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45574         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45575         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45576         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45577         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45578         HAVE_DECL_ROUNDF.
45579         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45580         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45582         of HAVE_DECL_ROUND*.
45583         * modules/math (Makefile.am): Update.
45584
45585 2007-11-10  Bruno Haible  <bruno@clisp.org>
45586
45587         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45588         ptrdiff_t as m4/intl.m4.
45589
45590 2007-11-10  Jim Meyering  <meyering@redhat.com>
45591
45592         Avoid link failure for the argmatch test.
45593         * tests/test-argmatch.c (usage): Define function to avoid a link
45594         failure: argmatch_die requires a usage function.
45595
45596 2007-11-09  Bruno Haible  <bruno@clisp.org>
45597
45598         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45599         * doc/functions/vsnprintf.texi: Likewise.
45600         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45601         with a size argument < 2.
45602
45603 2007-11-09  Bruno Haible  <bruno@clisp.org>
45604
45605         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45606         buffer. Fixes an inefficiency introduced on 2007-11-03.
45607
45608 2007-11-09  Bruno Haible  <bruno@clisp.org>
45609
45610         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45611         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45612
45613 2007-11-08  Jim Meyering  <meyering@redhat.com>
45614
45615         Change cache variable name prefix "jm_" to "gl_" everywhere.
45616         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45617         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45618         * m4/uptime.m4: s/gl_/jm_/
45619
45620 2007-11-07  Bruno Haible  <bruno@clisp.org>
45621
45622         Update to GNU gettext 0.17.
45623         * m4/intl.m4: Update to GNU gettext 0.17.
45624         * m4/po.m4: Likewise.
45625         * modules/gettext (Files): Remove m4/ulonglong.m4.
45626         (configure.ac): Require gettext infrastructure from version 0.17.
45627
45628 2007-11-06  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45631         symbolic values are not defined in a public header.
45632         * lib/freadable.c (freadable) [QNX]: Likewise.
45633         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45634         * lib/freading.c (freading) [QNX]: Likewise.
45635         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45636         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45637         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45638         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45639         Reported by Alain Magloire.
45640
45641         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45642
45643 2007-11-05  Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45646         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45647         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45648         Reported by Eric Blake.
45649
45650 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45651             Bruno Haible  <bruno@clisp.org>
45652
45653         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45654         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45655         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45656         (malloc): Undefine also before including <stdlib.h>.
45657         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45658         Needed on OSF/1 4.0.
45659
45660 2007-11-05  Jim Meyering  <meyering@redhat.com>
45661
45662         git-version-gen: sync from coreutils.
45663         * build-aux/git-version-gen: Add comments.
45664         Change the first '-' to '.' in the snapshot version string,
45665         e.g., 6.9-377-08144 -> 6.9.377-08144
45666         Remove first parameter.
45667         Don't declare a version "-dirty" merely because a time
45668         stamp has changed.
45669
45670 2007-11-04  Bruno Haible  <bruno@clisp.org>
45671
45672         * lib/lock.h: Protect all macro definitions containing an 'if'
45673         statement through a "do { ... } while (0)".
45674         * lib/tls.h: Likewise.
45675
45676 2007-11-04  Bruno Haible  <bruno@clisp.org>
45677
45678         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45679
45680 2007-11-04  Bruno Haible  <bruno@clisp.org>
45681
45682         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45683         * modules/fprintf-posix (Depends-on): Add nocrash.
45684         * modules/snprintf-posix (Depends-on): Likewise.
45685         * modules/sprintf-posix (Depends-on): Likewise.
45686         * modules/vasnprintf-posix (Depends-on): Likewise.
45687         * modules/vasprintf-posix (Depends-on): Likewise.
45688         * modules/vfprintf-posix (Depends-on): Likewise.
45689         * modules/vsnprintf-posix (Depends-on): Likewise.
45690         * modules/vsprintf-posix (Depends-on): Likewise.
45691         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45692         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45693         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45694         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45695         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45696         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45697         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45698
45699 2007-11-04  Bruno Haible  <bruno@clisp.org>
45700
45701         * modules/nocrash: New file.
45702         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45703         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45704
45705 2007-11-04  Bruno Haible  <bruno@clisp.org>
45706
45707         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45708         precision handling.
45709         * tests/test-vasprintf-posix.c (test_function): Likewise.
45710         * tests/test-snprintf-posix.h (test_function): Likewise.
45711         * tests/test-sprintf-posix.h (test_function): Likewise.
45712
45713         Fix *printf behaviour for large precisions on mingw and BeOS.
45714         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45715         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45717         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45719         gl_PRINTF_PRECISION and test its result. Invoke
45720         gl_PREREQ_VASNPRINTF_PRECISION.
45721         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45722         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45723         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45724         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45725         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45726         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45727         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45728         * doc/functions/fprintf.texi: Update.
45729         * doc/functions/printf.texi: Update.
45730         * doc/functions/snprintf.texi: Update.
45731         * doc/functions/sprintf.texi: Update.
45732         * doc/functions/vfprintf.texi: Update.
45733         * doc/functions/vprintf.texi: Update.
45734         * doc/functions/vsnprintf.texi: Update.
45735         * doc/functions/vsprintf.texi: Update.
45736
45737 2007-11-04  Bruno Haible  <bruno@clisp.org>
45738
45739         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45740
45741 2007-11-04  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45744         Reported by Sylvain Beucler <beuc@gnu.org>.
45745
45746 2007-11-03  Bruno Haible  <bruno@clisp.org>
45747
45748         * tests/test-fprintf-posix2.sh: New file.
45749         * tests/test-fprintf-posix2.c: New file.
45750         * modules/fprintf-posix-tests (Files): Add them.
45751         (TESTS): Add test-fprintf-posix2.sh.
45752         (configure.ac): Check for getrlimit and setrlimit.
45753         (check_PROGRAMS): Add test-fprintf-posix2.
45754
45755         * tests/test-printf-posix2.sh: New file.
45756         * tests/test-printf-posix2.c: New file.
45757         * modules/printf-posix-tests (Files): Add them.
45758         (TESTS): Add test-printf-posix2.sh.
45759         (configure.ac): Check for getrlimit and setrlimit.
45760         (check_PROGRAMS): Add test-printf-posix2.
45761
45762         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45763         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45764         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45765         (decode_double): New function, copied from decode_long_double.
45766         (scale10_round_decimal_decoded): New function, extracted from
45767         scale10_round_decimal_long_double.
45768         (scale10_round_decimal_long_double): Use it.
45769         (scale10_round_decimal_double): New function.
45770         (floorlog10): New function.
45771         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45773         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45775         gl_PRINTF_ENOMEM and test its result. Invoke
45776         gl_PREREQ_VASNPRINTF_ENOMEM.
45777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45781         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45783         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45784         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45785         * modules/snprintf-posix (Depends-on): Likewise.
45786         * modules/sprintf-posix (Depends-on): Likewise.
45787         * modules/vasnprintf-posix (Depends-on): Likewise.
45788         * modules/vasprintf-posix (Depends-on): Likewise.
45789         * modules/vfprintf-posix (Depends-on): Likewise.
45790         * modules/vsnprintf-posix (Depends-on): Likewise.
45791         * modules/vsprintf-posix (Depends-on): Likewise.
45792         * doc/functions/fprintf.texi: Update.
45793         * doc/functions/printf.texi: Update.
45794         * doc/functions/snprintf.texi: Update.
45795         * doc/functions/sprintf.texi: Update.
45796         * doc/functions/vfprintf.texi: Update.
45797         * doc/functions/vprintf.texi: Update.
45798         * doc/functions/vsnprintf.texi: Update.
45799         * doc/functions/vsprintf.texi: Update.
45800
45801 2007-11-03  Bruno Haible  <bruno@clisp.org>
45802
45803         * modules/frexp-nolibm-tests: New file.
45804
45805         * modules/frexp-nolibm: New file.
45806         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45807
45808 2007-11-03  Bruno Haible  <bruno@clisp.org>
45809
45810         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45811         value is C99 compliant.
45812         Needed for OSF/1 5.1.
45813
45814 2007-11-03  Bruno Haible  <bruno@clisp.org>
45815
45816         Fix out-of-memory handling of vasnprintf.
45817         * lib/printf-parse.c: Include <errno.h>.
45818         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45819         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45820         is already set.
45821
45822 2007-11-02  Eric Blake  <ebb9@byu.net>
45823
45824         Fix tests on cygwin.
45825         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45826
45827 2007-11-01  Bruno Haible  <bruno@clisp.org>
45828
45829         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45830         warning.
45831         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45832         needed for POSIX compatibility.
45833
45834 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45835
45836         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45837         for compatibility with GNU.
45838
45839 2007-11-01  Bruno Haible  <bruno@clisp.org>
45840
45841         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45842         (putenv): Renamed from rpl_putenv. Change argument type from
45843         'const char *' to 'char *'.
45844         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45845         of defining putenv in config.h, just set REPLACE_PUTENV.
45846         * modules/putenv (Depends-on): Add stdlib.
45847         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45848         (Include): Use <stdlib.h>.
45849         * lib/stdlib.in.h (putenv): New declaration.
45850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45851         REPLACE_PUTENV.
45852         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45853         REPLACE_PUTENV.
45854         Needed for MacOS X 10.5.0.
45855         Reported by Peter O'Gorman <peter@pogma.com>.
45856
45857 2007-11-01  Jim Meyering  <meyering@redhat.com>
45858
45859         Treat an empty date string exactly like "0".
45860         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45861         if the remaining date string (to be parsed) is empty, use "0".
45862         Reported by Mischa Molhoek and discussed in this thread:
45863         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45864
45865 2007-10-31  Bruno Haible  <bruno@clisp.org>
45866
45867         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45868         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45869         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45870         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45871         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45872         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45873
45874 2007-10-31  Bruno Haible  <bruno@clisp.org>
45875
45876         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45877         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45878         (AC_TYPE_LONG_LONG_INT): Use it.
45879         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45880         it as well.
45881         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45882         to m4/longlong.m4.
45883         * modules/stdint (Files): Remove m4/ulonglong.m4.
45884         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45885         m4/ulonglong.m4.
45886         * modules/strtoumax (Files): Likewise.
45887
45888 2007-10-30  Bruno Haible  <bruno@clisp.org>
45889
45890         * modules/xvasprintf-posix: New file.
45891         Suggested by Eric Blake.
45892
45893 2007-10-30  Bruno Haible  <bruno@clisp.org>
45894
45895         * modules/xprintf-posix-tests: New file.
45896         * tests/test-xprintf-posix.sh: New file.
45897         * tests/test-xprintf-posix.c: New file.
45898         * tests/test-xfprintf-posix.c: New file.
45899
45900         * modules/xprintf-posix: New file.
45901
45902 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45903
45904         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45905         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45906         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45907
45908 2007-10-29  Bruno Haible  <bruno@clisp.org>
45909
45910         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45911         contain the special marker '_cv_'.
45912         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45913         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45914         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45915         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45916         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45917         Reported by Ralf Wildenhues.
45918
45919 2007-10-29  Bruno Haible  <bruno@clisp.org>
45920
45921         * gnulib-tool (func_import): When --lgpl is not specified, set
45922         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45923         GPLv3.
45924         Reported by Simon Josefsson.
45925
45926 2007-10-28  Bruno Haible  <bruno@clisp.org>
45927
45928         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45929         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45930         HAVE_DECL_ISFINITE.
45931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45932         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45933         HAVE_DECL_ISFINITE.
45934
45935 2007-10-28  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45938         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45939
45940 2007-10-28  Bruno Haible  <bruno@clisp.org>
45941
45942         Fix link errors with Sun C 5.0 on Solaris 10.
45943         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45944         function is declared but not present in the compiler's libm.
45945         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45946         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45947         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45948         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45949         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45950         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45951         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45953         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45954         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45955         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45956         HAVE_DECL_FLOORL.
45957
45958 2007-10-28  Bruno Haible  <bruno@clisp.org>
45959
45960         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45961         gl_FUNC_FLOORL. Cache the result.
45962         (gl_FUNC_FLOORL): Use it.
45963         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45964         gl_FUNC_CEILL. Cache the result.
45965         (gl_FUNC_CEILL): Use it.
45966
45967         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45968         gl_FUNC_FLOOR. Cache the result.
45969         (gl_FUNC_FLOOR): Use it.
45970         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45971         gl_FUNC_CEIL. Cache the result.
45972         (gl_FUNC_CEIL): Use it.
45973
45974         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45975         gl_FUNC_FLOORF. Cache the result.
45976         (gl_FUNC_FLOORF): Use it.
45977         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45978         gl_FUNC_CEILF. Cache the result.
45979         (gl_FUNC_CEILF): Use it.
45980
45981 2007-10-28  Bruno Haible  <bruno@clisp.org>
45982
45983         * gnulib-tool: Allow specifying the LGPL version number through
45984         --lgpl=2 or --lgpl=3.
45985         (func_usage): Document --lgpl with argument.
45986         Handle --lgpl=... arguments.
45987         (func_import): Recognize also gl_LGPL calls with an argument. When
45988         --lgpl=2 is used and the module's license is just LGPL, report an
45989         error. Set sed_transform_lib_file according to the lgpl variable. In
45990         the generated files, use --lgpl or gl_LGPL invocations with argument,
45991         if necessary.
45992         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45993         an LGPv2+ license.
45994         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45995         gl_LGPL macro.
45996
45997 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45998             Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46001         (u16_uctomb_aux): Likewise.
46002         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46003         !HAVE_INLINE.
46004         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46005
46006 2007-10-28  Bruno Haible  <bruno@clisp.org>
46007
46008         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46009         Invoke AM_GETTEXT_OPTION if it exists.
46010         * modules/vasprintf: Likewise.
46011         * modules/verror: Likewise.
46012         * modules/xprintf: Likewise.
46013         * modules/xvasprintf: Likewise.
46014
46015 2007-10-27  Ben Pfaff  <blp@gnu.org>
46016
46017         * lib/math.in.h: Define isfinite macro and prototypes for
46018         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46019         implementations.
46020         * m4/math_h.m4: New substitutions for isfinite module.
46021         * lib/isfinite.c: New file.
46022         * m4/isfinite.m4: New file.
46023         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46024         * modules/isfinite: New file.
46025         * modules/isfinite-tests: New file.
46026         * tests/tests-isfinite.c: New file.
46027         * doc/functions/isfinite.texi: Mention isfinite module.
46028         * MODULES.html.sh: Mention new module.
46029
46030 2007-10-27  Ben Pfaff  <blp@gnu.org>
46031
46032         Ralf Wildenhues reported that Tru64 4.0D declares the round
46033         functions but does not have definitions.
46034         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46035         cannot be found in any library, set the output variable to
46036         "missing" instead of "".
46037         * m4/round.m4: Also use our substitute if we cannot find round in
46038         any library, even if it is declared.
46039         * m4/roundf.m4: Likewise for roundf.
46040         * m4/roundl.m4: Likewise for roundl.
46041         * lib/math.in.h: Undefine roundf, round, roundl before defining
46042         their replacements, to allow for hypothetical systems where these
46043         may be defined as macros but not available in libraries.
46044
46045 2007-10-27  Bruno Haible  <bruno@clisp.org>
46046
46047         * doc/gnulib.texi: Invoke @firstparagraphindent.
46048         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46049         changes in gnulib.
46050         (Source changes): New section.
46051
46052 2007-10-26  Bruno Haible  <bruno@clisp.org>
46053
46054         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46055         borrowed from autoconf.
46056
46057 2007-10-26  Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46060         strerror returned the empty string. Needed on HP-UX 11.00.
46061
46062 2007-10-24  Micah Cowan  <micah@cowan.name>
46063
46064         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46065         * build-aux/bootstrap: Remove support for now-unnecessary option,
46066         --cvs-user, and envvars CVS_USER, CVS_RSH.
46067
46068 2007-10-24  Jim Meyering  <meyering@redhat.com>
46069
46070         Avoid diagnostics from sha1sum when there is no cached checksum.
46071         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46072         if the po.s1 file hasn't been created yet.
46073
46074         * build-aux/bootstrap: Sync from coreutils:
46075         2007-10-24  Jim Meyering  <meyering@redhat.com>
46076         Get gnulib from the git repository, not from an obsolete cvs one.
46077         * build-aux/bootstrap: Suggestion from Micah Cowan.
46078         2007-10-04  Jim Meyering  <jim@meyering.net>
46079         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46080         (update_po_files): Work also when there are no .po files in po/.
46081
46082 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46083
46084         * README: Append ".git" to git and cg examples.
46085         Problem reported by Benoit Sigoure.
46086
46087 2007-10-23  Micah Cowan  <micah@cowan.name>
46088
46089         * users.txt: Add wget.
46090
46091 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46092
46093         Fix linking of some unistdio tests on FreeBSD.
46094         * modules/unistdio/u16-vsnprintf-tests
46095         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46096         * modules/unistdio/u16-vsprintf-tests
46097         (test_u16_vsnprintf1_LDADD): Likewise.
46098         * modules/unistdio/u32-vsnprintf-tests
46099         (test_u32_vsnprintf1_LDADD): Likewise.
46100         * modules/unistdio/u32-vsprintf-tests
46101         (test_u32_vsprintf1_LDADD): Likewise.
46102         * modules/unistdio/u8-vsnprintf-tests
46103         (test_u8_vsnprintf1_LDADD): Likewise.
46104         * modules/unistdio/u8-vsprintf-tests
46105         (test_u8_vsprintf1_LDADD): Likewise.
46106         * modules/unistdio/ulc-vsnprintf-tests
46107         (test_ulc_vsnprintf1_LDADD): Likewise.
46108         * modules/unistdio/ulc-vsprintf-tests
46109         (test_ulc_vsprintf1_LDADD): Likewise.
46110
46111         Fix linking of some uniconv tests on FreeBSD.
46112         * modules/uniconv/u16-conv-from-enc-tests
46113         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46114         * modules/uniconv/u16-conv-to-enc-tests
46115         (test_u16_conv_to_enc_LDADD): Likewise.
46116         * modules/uniconv/u16-strconv-from-enc-tests
46117         (test_u16_strconv_from_enc_LDADD): Likewise.
46118         * modules/uniconv/u16-strconv-to-enc-tests
46119         (test_u16_strconv_to_enc_LDADD): Likewise.
46120         * modules/uniconv/u32-conv-from-enc-tests
46121         (test_u32_conv_from_enc_LDADD): Likewise.
46122         * modules/uniconv/u32-conv-to-enc-tests
46123         (test_u32_conv_to_enc_LDADD): Likewise.
46124         * modules/uniconv/u32-strconv-from-enc-tests
46125         (test_u32_strconv_from_enc_LDADD): Likewise.
46126         * modules/uniconv/u32-strconv-to-enc-tests
46127         (test_u32_strconv_to_enc_LDADD): Likewise.
46128         * modules/uniconv/u8-conv-from-enc-tests
46129         (test_u8_conv_from_enc_LDADD): Likewise.
46130         * modules/uniconv/u8-conv-to-enc-tests
46131         (test_u8_conv_to_enc_LDADD): Likewise.
46132         * modules/uniconv/u8-strconv-from-enc-tests
46133         (test_u8_strconv_from_enc_LDADD): Likewise.
46134         * modules/uniconv/u8-strconv-to-enc-tests
46135         (test_u8_strconv_to_enc_LDADD): Likewise.
46136
46137 2007-10-22  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46140         size.
46141
46142 2007-10-22  Eric Blake  <ebb9@byu.net>
46143
46144         Tweak x*printf documentation.
46145         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46146         variable name and comments.
46147         Suggested by Bruno Haible.
46148
46149 2007-10-22  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/acl.c (copy_acl): Fix file name in comment.
46152
46153 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46154
46155         Fix Tru64 problem with stdbool.h.
46156         * lib/stdbool.in.h (false, true):
46157         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46158         Don't declare as an enum in this situation; it runs afoul of Tru64.
46159         Problem reported by Steven M. Schweda in
46160         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46161
46162 2007-10-22  Eric Blake  <ebb9@byu.net>
46163
46164         Also wrap vf?printf.
46165         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46166         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46167         (xvprintf, xvfprintf): New functions.
46168
46169 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46170
46171         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46172         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46173
46174         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46175         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46176
46177 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46178
46179         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46180         by Bruno Haible.
46181
46182 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46183
46184         * lib/getloadavg.c
46185         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46186         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46187
46188         * tests/test-i-ring.c: Work for C89.
46189
46190 2007-10-22  Bruno Haible  <bruno@clisp.org>
46191
46192         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46193         -1u, in preprocessor expression, so that we don't test for the bug
46194         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46196
46197 2007-10-22  Eric Blake  <ebb9@byu.net>
46198
46199         * tests/test-yesno.sh: Silence stderr during test.
46200
46201 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46202
46203         * modules/crypto/gc-camellia: New file.
46204
46205         * m4/gc-camellia.m4: New file.
46206
46207         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46208
46209         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46210
46211 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46212
46213         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46214         --help to stdout.  Reported by sms@antinode.org (Steven
46215         M. Schweda).
46216
46217 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46218
46219         * users.txt: Fix link to libksba.
46220
46221 2007-10-21  Ben Pfaff  <blp@gnu.org>
46222
46223         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46224         round.c roundf implementation that depends on floorf and ceilf to
46225         be tested unconditionally.
46226
46227 2007-10-21  Ben Pfaff  <blp@gnu.org>
46228
46229         * m4/check-libm-func.m4: Removed.
46230         * m4/check-math-lib.m4: New file.
46231         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46232         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46233         definition and lack of AC_LIBOBJ([roundf]).
46234         * m4/roundl.m4: Ditto, and similarly for roundl.
46235         * modules/round: Reference new m4 file.
46236         * modules/roundf: Ditto.
46237         * modules/roundl: Ditto.
46238         * tests/test-round2.c (main): Use ROUND instead of round.
46239         Bug report from Bruno Haible.
46240
46241 2007-10-21  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46244         context.
46245
46246 2007-10-21  Bruno Haible  <bruno@clisp.org>
46247
46248         * tests/test-wcwidth.c (main): Allow negative result for some control
46249         characters.
46250
46251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46252         Needed on OSF/1 5.1.
46253
46254 2007-10-21  Bruno Haible  <bruno@clisp.org>
46255
46256         * tests/test-floorf1.c: Include isnanf.h.
46257         (main): Use isnanf() instead of isnan().
46258         * tests/test-ceilf1.c: Include isnanf.h.
46259         (main): Use isnanf() instead of isnan().
46260         * tests/test-truncf1.c: Include isnanf.h.
46261         (main): Use isnanf() instead of isnan().
46262         * tests/test-roundf1.c: Include isnanf.h.
46263         (main): Use isnanf() instead of isnan().
46264
46265 2007-10-21  Eric Blake  <ebb9@byu.net>
46266
46267         * users.txt: Update URL for m4.
46268
46269 2007-10-21  Bruno Haible  <bruno@clisp.org>
46270
46271         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46272
46273 2007-10-21  Bruno Haible  <bruno@clisp.org>
46274
46275         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46276         Git's management files if the CVS files are not present.
46277
46278 2007-10-20  Bruno Haible  <bruno@clisp.org>
46279
46280         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46281         gcc-3.4.x.
46282
46283 2007-10-20  Ben Pfaff  <blp@gnu.org>
46284
46285         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46286         implementations.
46287         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46288         * lib/round.c: New file.
46289         * lib/roundf.c: New file.
46290         * lib/roundl.c: New file.
46291         * m4/round.m4: New file.
46292         * m4/roundf.m4: New file.
46293         * m4/roundl.m4: New file.
46294         * m4/check-libm-func-m4: New file.
46295         * modules/math: Replace round, roundf, roundl related @VARS@ in
46296         math.in.h.
46297         * modules/round: New file.
46298         * modules/round-tests: New file.
46299         * modules/roundf: New file.
46300         * modules/roundf-tests: New file.
46301         * modules/roundl: New file.
46302         * modules/roundl-tests: New file.
46303         * tests/test-round1.c: New file.
46304         * tests/test-round2.c: New file.
46305         * tests/test-roundf1.c: New file.
46306         * tests/test-roundf2.c: New file.
46307         * tests/test-roundl.c: New file.
46308         * doc/functions/round.texi: Mention round module.
46309         * doc/functions/roundf.texi: Mention roundf module.
46310         * doc/functions/roundl.texi: Mention roundl module.
46311         * MODULES.html.sh: Mention new modules.
46312         Thanks to Bruno Haible for suggestions.
46313
46314 2007-10-20  Jim Meyering  <meyering@redhat.com>
46315
46316         * lib/xprintf.c: Include <config.h> unconditionally.
46317
46318         Change xprintf's license to GPL.
46319         * modules/xprintf (License): s/LGPL/GPL/, since this module
46320         depends on modules (exit and exitfail) which are GPL.
46321         Suggestion from Bruno Haible.
46322
46323         xprintf fixes.
46324         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46325         Use a clearer diagnostic.
46326         Patch from Bruno Haible.
46327
46328 2007-10-20  Bruno Haible  <bruno@clisp.org>
46329
46330         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46331         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46333
46334 2007-10-20  Bruno Haible  <bruno@clisp.org>
46335
46336         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46337         precision in the comparison result > x - 1 or similar.
46338         * tests/test-ceilf2.c (correct_result_p): Likewise.
46339         * tests/test-truncf2.c (correct_result_p): Likewise.
46340         * tests/test-trunc2.c (correct_result_p): Likewise.
46341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46342
46343 2007-10-20  Bruno Haible  <bruno@clisp.org>
46344
46345         * modules/ceil: New file.
46346         * m4/ceil.m4: New file.
46347         * doc/functions/ceil.texi: Mention the 'ceil' module.
46348
46349 2007-10-20  Bruno Haible  <bruno@clisp.org>
46350
46351         * modules/floor: New file.
46352         * m4/floor.m4: New file.
46353         * doc/functions/floor.texi: Mention the 'floor' module.
46354
46355 2007-10-20  Bruno Haible  <bruno@clisp.org>
46356
46357         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46358         of %a.
46359         * modules/floorf-tests (Depends-on): Likewise.
46360         * modules/truncf-tests (Depends-on): Likewise.
46361         * modules/trunc-tests (Depends-on): Likewise.
46362         Reported by Ben Pfaff.
46363
46364 2007-10-19  Jim Meyering  <meyering@redhat.com>
46365
46366         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46367         Don't bother testing specific errno values.  Just test ferror.
46368
46369         New module: xprintf
46370         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46371
46372 2007-10-19  Bruno Haible  <bruno@clisp.org>
46373
46374         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46375         syntax.
46376         * modules/javaexec (Makefile.am): Likewise.
46377         * modules/relocatable-prog (Makefile.am): Likewise.
46378         Suggested by Jim Meyering.
46379
46380 2007-10-18  Bruno Haible  <bruno@clisp.org>
46381
46382         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46383         Reported by Jim Meyering.
46384
46385 2007-10-18  Eric Blake  <ebb9@byu.net>
46386
46387         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46388
46389 2007-10-18  Bruno Haible  <bruno@clisp.org>
46390
46391         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46392         the format string into writable memory. Needed in Fortify conditions.
46393
46394 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46395             Bruno Haible  <bruno@clisp.org>
46396
46397         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46398         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46399         * modules/trim (Depends-on): Add mbchar.
46400         (configure.ac): Add gl_FUNC_MBRTOWC.
46401         (Makefile.am): Augment lib_SOURCES.
46402
46403 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46404
46405         Modify glob.c to use fstatat and dirfd, to simplify it.
46406         Suggested by Eric Blake.
46407         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46408         Don't include <stdbool.h>; not used.
46409         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46410         (link_exists_p): Simplify implementation, since we can now assume
46411         dirfd and fstatat.
46412         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46413
46414 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46415
46416         * gnulib-tool (func_get_dependencies): Fix sed script to
46417         match only tests.
46418
46419 2007-10-17  Bruno Haible  <bruno@clisp.org>
46420
46421         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46422         allow locale names without encoding suffix.
46423         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46424         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46425
46426 2007-10-16  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46429         * lib/getgroups.c (getgroups): Likewise.
46430         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46431
46432 2007-10-16  Bruno Haible  <bruno@clisp.org>
46433
46434         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46435         * modules/malloc-posix (License): Likewise.
46436         * modules/realloc-posix (License): Likewise.
46437         * modules/calloc-posix (License): Likewise.
46438         * modules/intprops (License): Change from GPL to LGPL, with
46439         Paul Eggert's approval.
46440
46441 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46442
46443         Merge glibc changes into lib/glob.c.
46444
46445         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46446         2007-10-15 04:59:03 UTC.  Here are the changes:
46447
46448         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46449
46450         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46451
46452         * lib/glob.c: Add some branch prediction throughout.
46453
46454         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46455
46456         [BZ #5103]
46457         * lib/glob.c (glob): Recognize patterns starting \/.
46458
46459         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46460
46461         [BZ #3996]
46462         * lib/glob.c (attribute_hidden): Define if not defined.
46463         (glob): Unescape dirname, filename or username when needed and not
46464         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46465         is NULL.  Handle unescaped [ in pattern without closing ].
46466         Don't pass GLOB_CHECK down to recursive glob for directories.
46467         (__glob_pattern_type): New function.
46468         (__glob_pattern_p): Implement using __glob_pattern_type.
46469         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46470         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46471         Remove unreachable code.
46472
46473         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46474
46475         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46476         explain why there are no leaks.
46477
46478         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46479
46480         [BZ #3253]
46481         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46482         time, rather allocate increasingly bigger arrays of pointers, if
46483         possible with alloca, if too large with malloc.
46484
46485 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46486
46487         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46488         Problem reported by H.Merijn Brand in
46489         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46490         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46491         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46492
46493 2007-10-15  Bruno Haible  <bruno@clisp.org>
46494
46495         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46496         with explicit rpl_ prefix.
46497         * lib/fopen.c (fopen): Likewise.
46498         * lib/freopen.c (freopen): Likewise.
46499         * lib/iconv.c (iconv): Likewise.
46500         * lib/iconv_close.c (iconv_close): Likewise.
46501
46502 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46503
46504         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46505
46506 2007-10-15  Bruno Haible  <bruno@clisp.org>
46507
46508         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46509         <stddef.h> instead of <stdlib.h> since we only need NULL.
46510         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46511
46512 2007-10-15  Bruno Haible  <bruno@clisp.org>
46513
46514         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46515         Replace paragraph talking about LIBOBJS.
46516         Reported by Colin Watson <cjwatson@debian.org>.
46517
46518 2007-10-15  Bruno Haible  <bruno@clisp.org>
46519
46520         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46521         <stdlib.h> before using NULL.
46522
46523 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46524
46525         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46526         Reported by Albert Chin <china@thewrittenword.com>.
46527
46528 2007-10-14  Bruno Haible  <bruno@clisp.org>
46529
46530         * modules/iconv_open-utf-tests: New file.
46531         * tests/test-iconv-utf.c: New file.
46532
46533         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46534         * modules/iconv_open-utf: New file.
46535         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46536         (iconv, iconv_close): New declarations.
46537         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46538         be defined.
46539         (iconv_open): Add special handling of conversion between UTF-8 and
46540         UTF-{16,32}{BE,LE}.
46541         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46542         * lib/iconv_close.c: New file.
46543         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46544         gl_FUNC_ICONV_OPEN.
46545         (gl_FUNC_ICONV_OPEN): Use it.
46546         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46547         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46548         and REPLACE_ICONV_UTF.
46549         * modules/iconv_open (Depends-on): Add c-strcase.
46550         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46551         ICONV_CONST.
46552         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46553
46554 2007-10-13  Albert Chin  <china@thewrittenword.com>
46555             Bruno Haible  <bruno@clisp.org>
46556
46557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46558         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46559
46560 2007-10-13  Bruno Haible  <bruno@clisp.org>
46561
46562         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46563         defined, use the ISO C99 inline semantics.
46564         * lib/argp.h (ARGP_EI): Likewise.
46565
46566 2007-10-13  Bruno Haible  <bruno@clisp.org>
46567
46568         Handle 'inline' change in gcc 4.3.0.
46569         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46570         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46571         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46572         argp_fmtstream_point): Disable 'extern' declaration if the function
46573         definition is going to be provided inline.
46574         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46575         semantics, not the ISO C99 inline semantics.
46576         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46577         'extern' declaration if the function definition is going to be provided
46578         inline.
46579         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46580         the GNU C inline semantics, not the ISO C99 inline semantics. With
46581         GCC 4.2, avoid a warning.
46582
46583 2007-10-13  Bruno Haible  <bruno@clisp.org>
46584
46585         * lib/freading.h (freading): Enable the use of __freading for
46586         glibc >= 2.7.
46587         * lib/freading.c (freading): Likewise.
46588
46589 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46590
46591         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46592         "warning: C99 inline functions are not supported; using GNU89".
46593
46594 2007-10-12  Bruno Haible  <bruno@clisp.org>
46595
46596         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46597         of 2.
46598         * tests/test-ceilf2.c: New file.
46599         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46600
46601         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46602         * modules/ceilf-tests: Update.
46603
46604 2007-10-12  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46607         of 2.
46608         * tests/test-floorf2.c: New file.
46609         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46610
46611         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46612         * modules/floorf-tests: Update.
46613
46614 2007-10-12  Bruno Haible  <bruno@clisp.org>
46615
46616         * tests/test-trunc2.c: New file.
46617         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46618
46619         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46620         * modules/trunc-tests: Update.
46621
46622 2007-10-12  Bruno Haible  <bruno@clisp.org>
46623
46624         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46625         of 2.
46626         * tests/test-truncf2.c: New file.
46627         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46628
46629         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46630         * modules/truncf-tests: Update.
46631
46632 2007-10-11  Eric Blake  <ebb9@byu.net>
46633
46634         Don't claim strerror is broken on Interix.
46635         * doc/functions/strerror.texi (strerror): Known broken systems are
46636         now Solaris 8, and not Interix.
46637         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46638         Interix on cross-compile.
46639         Reported by Martin Koeppe in
46640         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46641
46642 2007-10-11  Bruno Haible  <bruno@clisp.org>
46643
46644         * modules/i-ring-tests: New file.
46645         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46646         instead of assert.
46647
46648 2007-10-11  Bruno Haible  <bruno@clisp.org>
46649
46650         * modules/filenamecat-tests: New file.
46651         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46652         * lib/filenamecat.c: Remove test code.
46653
46654 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46655
46656         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46657
46658         * lib/strerror.c: Include <string.h> always, to test interface,
46659         and to remove the need for the dummy.
46660         Include intprops.h to compute width instead of doing it ourselves
46661         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46662         (strerror): Define it to return NULL if there's no system strerror.
46663         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46664         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46665         ancient pre-strerror Unix systems well any more.  Saying "unknown
46666         system error" is enough.
46667         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46668         simpler strerror.c implementation.
46669         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46670         Simplify the tests to reflect the simpler strerror implementation.
46671         * modules/strerror (Depends-on): Add intprops.
46672
46673 2007-10-09  Eric Blake  <ebb9@byu.net>
46674
46675         Silence test-fpending.
46676         * modules/fpending-tests (Files): Add wrapper script.
46677         * tests/test-fpending.sh: New file.
46678
46679 2007-10-09  Bruno Haible  <bruno@clisp.org>
46680
46681         * MODULES.html.sh (func_module): Don't create a hyperlink for
46682         function names like 'printf_frexp'.
46683         (Misc): Add crc, memxor.
46684         (Characteristics of floating types): New section.
46685         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46686         isnanf-nolibm, signbit, trunc, truncf, truncl.
46687         (Enhancements for ISO C 99 functions): New subsection Input/output.
46688         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46689         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46690         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46691         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46692         (Enhancements for POSIX:2001 functions): Add chdir-long.
46693         (File system functions): Add areadlink, chdir-safer, read-file.
46694         Remove cycle-check.
46695         (File system as inode set): New section.
46696         (Date and time): Add gethrxtime.
46697         (Multithreading): Add openmp.
46698         (Internationalization functions): Add localename.
46699         (Unicode string functions): Add unistr/u*-mbsnlen.
46700         (Support for maintaining and releasing projects): Add git-version-gen.
46701         (Lone files): Remove directories.
46702
46703 2007-10-08  Ben Pfaff  <blp@gnu.org>
46704
46705         * lib/xmalloca.h: Fix typo in comment.
46706
46707 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46708
46709         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46710         when avoiding problems with integer overflow.  Use a portable test
46711         instead.
46712
46713 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46714
46715         * modules/dummy (License): Change to LGPLv2+.
46716         * modules/float (License): Likewise
46717         * modules/realloc (License): Likewise
46718         * modules/stdlib (License): Likewise
46719
46720 2007-10-07  Bruno Haible  <bruno@clisp.org>
46721
46722         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46723         * floor.c (TWO_MANT_DIG): Likewise.
46724         * ceil.c (TWO_MANT_DIG): Likewise.
46725         Reported by Ben Pfaff.
46726
46727 2007-10-07  Bruno Haible  <bruno@clisp.org>
46728
46729         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46730         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46731         * lib/frexp.c (FUNC): Likewise.
46732         * lib/printf-frexp.h (printf_frexp): Likewise.
46733         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46734         * lib/printf-frexp.c (FUNC): Likewise.
46735         Suggested by Jim Meyering.
46736
46737 2007-10-07  Jim Meyering  <meyering@redhat.com>
46738
46739         Make xnanosleep's integer overflow test more robust.
46740         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46741         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46742
46743 2007-10-07  Bruno Haible  <bruno@clisp.org>
46744
46745         * NEWS: Mention the license change.
46746
46747         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46748         abbreviations in the modules files.
46749
46750         Change copyright notice from GPLv2+ to GPLv3+.
46751         * README: Change copyright notice.
46752         * MODULES.html.sh: Likewise.
46753         * build-aux/bootstrap.conf: Likewise.
46754         * build-aux/config.libpath: Likewise.
46755         * build-aux/csharpcomp.sh.in: Likewise.
46756         * build-aux/csharpexec.sh.in: Likewise.
46757         * build-aux/install-reloc: Likewise.
46758         * build-aux/javacomp.sh.in: Likewise.
46759         * build-aux/javaexec.sh.in: Likewise.
46760         * build-aux/ldd.sh.in: Likewise.
46761         * build-aux/reloc-ldflags: Likewise.
46762         * build-aux/relocatable.sh.in: Likewise.
46763         * build-aux/x-to-1.in: Likewise.
46764         * check-module: Likewise.
46765         * config/srclistvars.sh: Likewise.
46766         * gnulib-tool: Likewise.
46767         * lib/acl-internal.h: Likewise.
46768         * lib/acl.c: Likewise.
46769         * lib/acl.h: Likewise.
46770         * lib/acl_entries.c: Likewise.
46771         * lib/areadlink-with-size.c: Likewise.
46772         * lib/areadlink.c: Likewise.
46773         * lib/areadlink.h: Likewise.
46774         * lib/argmatch.c: Likewise.
46775         * lib/argmatch.h: Likewise.
46776         * lib/argp-ba.c: Likewise.
46777         * lib/argp-eexst.c: Likewise.
46778         * lib/argp-fmtstream.c: Likewise.
46779         * lib/argp-fmtstream.h: Likewise.
46780         * lib/argp-fs-xinl.c: Likewise.
46781         * lib/argp-help.c: Likewise.
46782         * lib/argp-namefrob.h: Likewise.
46783         * lib/argp-parse.c: Likewise.
46784         * lib/argp-pin.c: Likewise.
46785         * lib/argp-pv.c: Likewise.
46786         * lib/argp-pvh.c: Likewise.
46787         * lib/argp-xinl.c: Likewise.
46788         * lib/argp.h: Likewise.
46789         * lib/at-func.c: Likewise.
46790         * lib/atanl.c: Likewise.
46791         * lib/backupfile.c: Likewise.
46792         * lib/backupfile.h: Likewise.
46793         * lib/basename.c: Likewise.
46794         * lib/binary-io.h: Likewise.
46795         * lib/byteswap.in.h: Likewise.
46796         * lib/c-stack.c: Likewise.
46797         * lib/c-stack.h: Likewise.
46798         * lib/c-strcasestr.c: Likewise.
46799         * lib/c-strcasestr.h: Likewise.
46800         * lib/c-strstr.c: Likewise.
46801         * lib/c-strstr.h: Likewise.
46802         * lib/c-strtod.c: Likewise.
46803         * lib/calloc.c: Likewise.
46804         * lib/canon-host.c: Likewise.
46805         * lib/canon-host.h: Likewise.
46806         * lib/canonicalize-lgpl.c: Likewise.
46807         * lib/canonicalize.c: Likewise.
46808         * lib/canonicalize.h: Likewise.
46809         * lib/ceil.c: Likewise.
46810         * lib/ceilf.c: Likewise.
46811         * lib/ceill.c: Likewise.
46812         * lib/chdir-long.c: Likewise.
46813         * lib/chdir-long.h: Likewise.
46814         * lib/chdir-safer.c: Likewise.
46815         * lib/chdir-safer.h: Likewise.
46816         * lib/chown.c: Likewise.
46817         * lib/classpath.c: Likewise.
46818         * lib/classpath.h: Likewise.
46819         * lib/clean-temp.c: Likewise.
46820         * lib/clean-temp.h: Likewise.
46821         * lib/cloexec.c: Likewise.
46822         * lib/close-stream.c: Likewise.
46823         * lib/closein.c: Likewise.
46824         * lib/closein.h: Likewise.
46825         * lib/closeout.c: Likewise.
46826         * lib/closeout.h: Likewise.
46827         * lib/concat-filename.c: Likewise.
46828         * lib/copy-file.c: Likewise.
46829         * lib/copy-file.h: Likewise.
46830         * lib/count-one-bits.h: Likewise.
46831         * lib/crc.c: Likewise.
46832         * lib/crc.h: Likewise.
46833         * lib/creat-safer.c: Likewise.
46834         * lib/csharpcomp.c: Likewise.
46835         * lib/csharpcomp.h: Likewise.
46836         * lib/csharpexec.c: Likewise.
46837         * lib/csharpexec.h: Likewise.
46838         * lib/cycle-check.c: Likewise.
46839         * lib/cycle-check.h: Likewise.
46840         * lib/diacrit.c: Likewise.
46841         * lib/diacrit.h: Likewise.
46842         * lib/diffseq.h: Likewise.
46843         * lib/dirchownmod.c: Likewise.
46844         * lib/dirent.in.h: Likewise.
46845         * lib/dirfd.c: Likewise.
46846         * lib/dirfd.h: Likewise.
46847         * lib/dirname.c: Likewise.
46848         * lib/dirname.h: Likewise.
46849         * lib/dummy.c: Likewise.
46850         * lib/dup-safer.c: Likewise.
46851         * lib/dup2.c: Likewise.
46852         * lib/eealloc.h: Likewise.
46853         * lib/error.c: Likewise.
46854         * lib/error.h: Likewise.
46855         * lib/euidaccess.c: Likewise.
46856         * lib/exclude.c: Likewise.
46857         * lib/exclude.h: Likewise.
46858         * lib/execute.c: Likewise.
46859         * lib/execute.h: Likewise.
46860         * lib/exitfail.c: Likewise.
46861         * lib/exitfail.h: Likewise.
46862         * lib/expl.c: Likewise.
46863         * lib/fatal-signal.c: Likewise.
46864         * lib/fatal-signal.h: Likewise.
46865         * lib/fbufmode.c: Likewise.
46866         * lib/fbufmode.h: Likewise.
46867         * lib/fchdir.c: Likewise.
46868         * lib/fchmodat.c: Likewise.
46869         * lib/fchownat.c: Likewise.
46870         * lib/fcntl--.h: Likewise.
46871         * lib/fcntl-safer.h: Likewise.
46872         * lib/fcntl.in.h: Likewise.
46873         * lib/fd-safer.c: Likewise.
46874         * lib/fflush.c: Likewise.
46875         * lib/file-has-acl.c: Likewise.
46876         * lib/file-set.c: Likewise.
46877         * lib/file-type.c: Likewise.
46878         * lib/file-type.h: Likewise.
46879         * lib/fileblocks.c: Likewise.
46880         * lib/filemode.c: Likewise.
46881         * lib/filemode.h: Likewise.
46882         * lib/filename.h: Likewise.
46883         * lib/filenamecat.c: Likewise.
46884         * lib/filenamecat.h: Likewise.
46885         * lib/findprog.c: Likewise.
46886         * lib/findprog.h: Likewise.
46887         * lib/float.in.h: Likewise.
46888         * lib/floor.c: Likewise.
46889         * lib/floorf.c: Likewise.
46890         * lib/floorl.c: Likewise.
46891         * lib/fopen-safer.c: Likewise.
46892         * lib/fopen.c: Likewise.
46893         * lib/fpending.c: Likewise.
46894         * lib/fpending.h: Likewise.
46895         * lib/fprintf.c: Likewise.
46896         * lib/fprintftime.h: Likewise.
46897         * lib/fpucw.h: Likewise.
46898         * lib/fpurge.c: Likewise.
46899         * lib/fpurge.h: Likewise.
46900         * lib/freadable.c: Likewise.
46901         * lib/freadable.h: Likewise.
46902         * lib/freadahead.c: Likewise.
46903         * lib/freadahead.h: Likewise.
46904         * lib/freading.c: Likewise.
46905         * lib/freading.h: Likewise.
46906         * lib/free.c: Likewise.
46907         * lib/freopen.c: Likewise.
46908         * lib/frexp.c: Likewise.
46909         * lib/frexpl.c: Likewise.
46910         * lib/fseek.c: Likewise.
46911         * lib/fseterr.c: Likewise.
46912         * lib/fseterr.h: Likewise.
46913         * lib/fstatat.c: Likewise.
46914         * lib/fstrcmp.c: Likewise.
46915         * lib/fstrcmp.h: Likewise.
46916         * lib/fsusage.c: Likewise.
46917         * lib/fsusage.h: Likewise.
46918         * lib/ftell.c: Likewise.
46919         * lib/ftello.c: Likewise.
46920         * lib/fts-cycle.c: Likewise.
46921         * lib/fts.c: Likewise.
46922         * lib/fts_.h: Likewise.
46923         * lib/full-read.c: Likewise.
46924         * lib/full-read.h: Likewise.
46925         * lib/full-write.c: Likewise.
46926         * lib/full-write.h: Likewise.
46927         * lib/fwritable.c: Likewise.
46928         * lib/fwritable.h: Likewise.
46929         * lib/fwriteerror.c: Likewise.
46930         * lib/fwriteerror.h: Likewise.
46931         * lib/fwriting.c: Likewise.
46932         * lib/fwriting.h: Likewise.
46933         * lib/gcd.c: Likewise.
46934         * lib/gcd.h: Likewise.
46935         * lib/getcwd.c: Likewise.
46936         * lib/getdate.h: Likewise.
46937         * lib/getdate.y: Likewise.
46938         * lib/getdomainname.c: Likewise.
46939         * lib/getdomainname.h: Likewise.
46940         * lib/getgroups.c: Likewise.
46941         * lib/gethostname.c: Likewise.
46942         * lib/gethrxtime.c: Likewise.
46943         * lib/gethrxtime.h: Likewise.
46944         * lib/getloadavg.c: Likewise.
46945         * lib/getndelim2.c: Likewise.
46946         * lib/getndelim2.h: Likewise.
46947         * lib/getnline.c: Likewise.
46948         * lib/getnline.h: Likewise.
46949         * lib/getopt.c: Likewise.
46950         * lib/getopt.in.h: Likewise.
46951         * lib/getopt1.c: Likewise.
46952         * lib/getopt_int.h: Likewise.
46953         * lib/getpagesize.h: Likewise.
46954         * lib/getsubopt.c: Likewise.
46955         * lib/gettime.c: Likewise.
46956         * lib/getugroups.c: Likewise.
46957         * lib/getugroups.h: Likewise.
46958         * lib/getusershell.c: Likewise.
46959         * lib/gl_anyavltree_list1.h: Likewise.
46960         * lib/gl_anyavltree_list2.h: Likewise.
46961         * lib/gl_anyhash_list1.h: Likewise.
46962         * lib/gl_anyhash_list2.h: Likewise.
46963         * lib/gl_anylinked_list1.h: Likewise.
46964         * lib/gl_anylinked_list2.h: Likewise.
46965         * lib/gl_anyrbtree_list1.h: Likewise.
46966         * lib/gl_anyrbtree_list2.h: Likewise.
46967         * lib/gl_anytree_list1.h: Likewise.
46968         * lib/gl_anytree_list2.h: Likewise.
46969         * lib/gl_anytree_oset.h: Likewise.
46970         * lib/gl_anytreehash_list1.h: Likewise.
46971         * lib/gl_anytreehash_list2.h: Likewise.
46972         * lib/gl_array_list.c: Likewise.
46973         * lib/gl_array_list.h: Likewise.
46974         * lib/gl_array_oset.c: Likewise.
46975         * lib/gl_array_oset.h: Likewise.
46976         * lib/gl_avltree_list.c: Likewise.
46977         * lib/gl_avltree_list.h: Likewise.
46978         * lib/gl_avltree_oset.c: Likewise.
46979         * lib/gl_avltree_oset.h: Likewise.
46980         * lib/gl_avltreehash_list.c: Likewise.
46981         * lib/gl_avltreehash_list.h: Likewise.
46982         * lib/gl_carray_list.c: Likewise.
46983         * lib/gl_carray_list.h: Likewise.
46984         * lib/gl_linked_list.c: Likewise.
46985         * lib/gl_linked_list.h: Likewise.
46986         * lib/gl_linkedhash_list.c: Likewise.
46987         * lib/gl_linkedhash_list.h: Likewise.
46988         * lib/gl_list.c: Likewise.
46989         * lib/gl_list.h: Likewise.
46990         * lib/gl_oset.c: Likewise.
46991         * lib/gl_oset.h: Likewise.
46992         * lib/gl_rbtree_list.c: Likewise.
46993         * lib/gl_rbtree_list.h: Likewise.
46994         * lib/gl_rbtree_oset.c: Likewise.
46995         * lib/gl_rbtree_oset.h: Likewise.
46996         * lib/gl_rbtreehash_list.c: Likewise.
46997         * lib/gl_rbtreehash_list.h: Likewise.
46998         * lib/gl_sublist.c: Likewise.
46999         * lib/gl_sublist.h: Likewise.
47000         * lib/group-member.c: Likewise.
47001         * lib/group-member.h: Likewise.
47002         * lib/hard-locale.c: Likewise.
47003         * lib/hard-locale.h: Likewise.
47004         * lib/hash-pjw.c: Likewise.
47005         * lib/hash-pjw.h: Likewise.
47006         * lib/hash-triple.c: Likewise.
47007         * lib/hash.c: Likewise.
47008         * lib/hash.h: Likewise.
47009         * lib/human.c: Likewise.
47010         * lib/human.h: Likewise.
47011         * lib/i-ring.c: Likewise.
47012         * lib/i-ring.h: Likewise.
47013         * lib/idcache.c: Likewise.
47014         * lib/imaxabs.c: Likewise.
47015         * lib/imaxdiv.c: Likewise.
47016         * lib/inet_pton.c: Likewise.
47017         * lib/inet_pton.h: Likewise.
47018         * lib/intprops.h: Likewise.
47019         * lib/inttostr.c: Likewise.
47020         * lib/inttostr.h: Likewise.
47021         * lib/inttypes.in.h: Likewise.
47022         * lib/isapipe.c: Likewise.
47023         * lib/isdir.c: Likewise.
47024         * lib/isnan.c: Likewise.
47025         * lib/isnan.h: Likewise.
47026         * lib/isnanf.c: Likewise.
47027         * lib/isnanf.h: Likewise.
47028         * lib/isnanl-nolibm.h: Likewise.
47029         * lib/isnanl.c: Likewise.
47030         * lib/isnanl.h: Likewise.
47031         * lib/javacomp.c: Likewise.
47032         * lib/javacomp.h: Likewise.
47033         * lib/javaexec.c: Likewise.
47034         * lib/javaexec.h: Likewise.
47035         * lib/javaversion.c: Likewise.
47036         * lib/javaversion.h: Likewise.
47037         * lib/javaversion.java: Likewise.
47038         * lib/lbrkprop.h: Likewise.
47039         * lib/lchmod.h: Likewise.
47040         * lib/lchown.c: Likewise.
47041         * lib/ldexpl.c: Likewise.
47042         * lib/linebreak.c: Likewise.
47043         * lib/linebreak.h: Likewise.
47044         * lib/linebuffer.c: Likewise.
47045         * lib/linebuffer.h: Likewise.
47046         * lib/locale.in.h: Likewise.
47047         * lib/logl.c: Likewise.
47048         * lib/long-options.c: Likewise.
47049         * lib/long-options.h: Likewise.
47050         * lib/lstat.c: Likewise.
47051         * lib/lstat.h: Likewise.
47052         * lib/math.in.h: Likewise.
47053         * lib/mbchar.c: Likewise.
47054         * lib/mbchar.h: Likewise.
47055         * lib/mbfile.h: Likewise.
47056         * lib/mbiter.h: Likewise.
47057         * lib/mbscasecmp.c: Likewise.
47058         * lib/mbscasestr.c: Likewise.
47059         * lib/mbschr.c: Likewise.
47060         * lib/mbscspn.c: Likewise.
47061         * lib/mbslen.c: Likewise.
47062         * lib/mbsncasecmp.c: Likewise.
47063         * lib/mbsnlen.c: Likewise.
47064         * lib/mbspbrk.c: Likewise.
47065         * lib/mbspcasecmp.c: Likewise.
47066         * lib/mbsrchr.c: Likewise.
47067         * lib/mbssep.c: Likewise.
47068         * lib/mbsspn.c: Likewise.
47069         * lib/mbsstr.c: Likewise.
47070         * lib/mbstok_r.c: Likewise.
47071         * lib/mbswidth.c: Likewise.
47072         * lib/mbswidth.h: Likewise.
47073         * lib/mbuiter.h: Likewise.
47074         * lib/memcasecmp.c: Likewise.
47075         * lib/memcasecmp.h: Likewise.
47076         * lib/memchr.c: Likewise.
47077         * lib/memcmp.c: Likewise.
47078         * lib/memcoll.c: Likewise.
47079         * lib/memcoll.h: Likewise.
47080         * lib/memcpy.c: Likewise.
47081         * lib/memrchr.c: Likewise.
47082         * lib/mkancesdirs.c: Likewise.
47083         * lib/mkdir-p.c: Likewise.
47084         * lib/mkdir-p.h: Likewise.
47085         * lib/mkdir.c: Likewise.
47086         * lib/mkdirat.c: Likewise.
47087         * lib/mkdtemp.c: Likewise.
47088         * lib/mkstemp-safer.c: Likewise.
47089         * lib/mkstemp.c: Likewise.
47090         * lib/modechange.c: Likewise.
47091         * lib/modechange.h: Likewise.
47092         * lib/mountlist.c: Likewise.
47093         * lib/mountlist.h: Likewise.
47094         * lib/mpsort.c: Likewise.
47095         * lib/nanosleep.c: Likewise.
47096         * lib/obstack.c: Likewise.
47097         * lib/obstack.h: Likewise.
47098         * lib/open-safer.c: Likewise.
47099         * lib/open.c: Likewise.
47100         * lib/openat-die.c: Likewise.
47101         * lib/openat-priv.h: Likewise.
47102         * lib/openat-proc.c: Likewise.
47103         * lib/openat.c: Likewise.
47104         * lib/openat.h: Likewise.
47105         * lib/pagealign_alloc.c: Likewise.
47106         * lib/pagealign_alloc.h: Likewise.
47107         * lib/physmem.c: Likewise.
47108         * lib/physmem.h: Likewise.
47109         * lib/pipe-safer.c: Likewise.
47110         * lib/pipe.c: Likewise.
47111         * lib/pipe.h: Likewise.
47112         * lib/posixtm.c: Likewise.
47113         * lib/posixtm.h: Likewise.
47114         * lib/posixver.c: Likewise.
47115         * lib/printf-frexp.c: Likewise.
47116         * lib/printf-frexp.h: Likewise.
47117         * lib/printf-frexpl.c: Likewise.
47118         * lib/printf-frexpl.h: Likewise.
47119         * lib/printf.c: Likewise.
47120         * lib/progname.c: Likewise.
47121         * lib/progname.h: Likewise.
47122         * lib/progreloc.c: Likewise.
47123         * lib/putenv.c: Likewise.
47124         * lib/quote.c: Likewise.
47125         * lib/quote.h: Likewise.
47126         * lib/quotearg.c: Likewise.
47127         * lib/quotearg.h: Likewise.
47128         * lib/raise.c: Likewise.
47129         * lib/readline.c: Likewise.
47130         * lib/readline.h: Likewise.
47131         * lib/readlink.c: Likewise.
47132         * lib/readtokens.c: Likewise.
47133         * lib/readtokens.h: Likewise.
47134         * lib/readtokens0.c: Likewise.
47135         * lib/readtokens0.h: Likewise.
47136         * lib/readutmp.c: Likewise.
47137         * lib/readutmp.h: Likewise.
47138         * lib/realloc.c: Likewise.
47139         * lib/relocwrapper.c: Likewise.
47140         * lib/rename-dest-slash.c: Likewise.
47141         * lib/rename.c: Likewise.
47142         * lib/rmdir.c: Likewise.
47143         * lib/rpmatch.c: Likewise.
47144         * lib/safe-read.c: Likewise.
47145         * lib/safe-read.h: Likewise.
47146         * lib/safe-write.c: Likewise.
47147         * lib/safe-write.h: Likewise.
47148         * lib/same-inode.h: Likewise.
47149         * lib/same.c: Likewise.
47150         * lib/same.h: Likewise.
47151         * lib/save-cwd.c: Likewise.
47152         * lib/save-cwd.h: Likewise.
47153         * lib/savedir.c: Likewise.
47154         * lib/savedir.h: Likewise.
47155         * lib/savewd.c: Likewise.
47156         * lib/savewd.h: Likewise.
47157         * lib/search.in.h: Likewise.
47158         * lib/setenv.c: Likewise.
47159         * lib/setenv.h: Likewise.
47160         * lib/settime.c: Likewise.
47161         * lib/sh-quote.c: Likewise.
47162         * lib/sh-quote.h: Likewise.
47163         * lib/sig2str.c: Likewise.
47164         * lib/sig2str.h: Likewise.
47165         * lib/signal.in.h: Likewise.
47166         * lib/signbitd.c: Likewise.
47167         * lib/signbitf.c: Likewise.
47168         * lib/signbitl.c: Likewise.
47169         * lib/sigprocmask.c: Likewise.
47170         * lib/sincosl.c: Likewise.
47171         * lib/sleep.c: Likewise.
47172         * lib/sprintf.c: Likewise.
47173         * lib/sqrtl.c: Likewise.
47174         * lib/stat-time.h: Likewise.
47175         * lib/stdio--.h: Likewise.
47176         * lib/stdio-safer.h: Likewise.
47177         * lib/stdlib--.h: Likewise.
47178         * lib/stdlib-safer.h: Likewise.
47179         * lib/stdlib.in.h: Likewise.
47180         * lib/stpcpy.c: Likewise.
47181         * lib/stpncpy.c: Likewise.
47182         * lib/strchrnul.c: Likewise.
47183         * lib/strcspn.c: Likewise.
47184         * lib/strerror.c: Likewise.
47185         * lib/strftime.c: Likewise.
47186         * lib/strftime.h: Likewise.
47187         * lib/striconveh.c: Likewise.
47188         * lib/striconveh.h: Likewise.
47189         * lib/striconveha.c: Likewise.
47190         * lib/striconveha.h: Likewise.
47191         * lib/stripslash.c: Likewise.
47192         * lib/strnlen1.c: Likewise.
47193         * lib/strnlen1.h: Likewise.
47194         * lib/strtod.c: Likewise.
47195         * lib/strtoimax.c: Likewise.
47196         * lib/strtok_r.c: Likewise.
47197         * lib/strtol.c: Likewise.
47198         * lib/strtoll.c: Likewise.
47199         * lib/strtoul.c: Likewise.
47200         * lib/strtoull.c: Likewise.
47201         * lib/sysexits.in.h: Likewise.
47202         * lib/tempname.c: Likewise.
47203         * lib/tempname.h: Likewise.
47204         * lib/timespec.h: Likewise.
47205         * lib/tls.c: Likewise.
47206         * lib/tls.h: Likewise.
47207         * lib/tmpdir.c: Likewise.
47208         * lib/tmpdir.h: Likewise.
47209         * lib/tmpfile-safer.c: Likewise.
47210         * lib/tmpfile.c: Likewise.
47211         * lib/trigl.c: Likewise.
47212         * lib/trigl.h: Likewise.
47213         * lib/trim.c: Likewise.
47214         * lib/trim.h: Likewise.
47215         * lib/trunc.c: Likewise.
47216         * lib/truncf.c: Likewise.
47217         * lib/truncl.c: Likewise.
47218         * lib/tsearch.c: Likewise.
47219         * lib/unicodeio.c: Likewise.
47220         * lib/unicodeio.h: Likewise.
47221         * lib/unistd--.h: Likewise.
47222         * lib/unistd-safer.h: Likewise.
47223         * lib/unistdio/ulc-fprintf.c: Likewise.
47224         * lib/unistdio/ulc-vfprintf.c: Likewise.
47225         * lib/unlinkdir.c: Likewise.
47226         * lib/unlinkdir.h: Likewise.
47227         * lib/unlocked-io.h: Likewise.
47228         * lib/unsetenv.c: Likewise.
47229         * lib/userspec.c: Likewise.
47230         * lib/utime.c: Likewise.
47231         * lib/utimecmp.c: Likewise.
47232         * lib/utimecmp.h: Likewise.
47233         * lib/utimens.c: Likewise.
47234         * lib/verify.h: Likewise.
47235         * lib/verror.c: Likewise.
47236         * lib/verror.h: Likewise.
47237         * lib/version-etc-fsf.c: Likewise.
47238         * lib/version-etc.c: Likewise.
47239         * lib/version-etc.h: Likewise.
47240         * lib/vfprintf.c: Likewise.
47241         * lib/vprintf.c: Likewise.
47242         * lib/vsprintf.c: Likewise.
47243         * lib/w32spawn.h: Likewise.
47244         * lib/wait-process.c: Likewise.
47245         * lib/wait-process.h: Likewise.
47246         * lib/wcwidth.c: Likewise.
47247         * lib/write-any-file.c: Likewise.
47248         * lib/xalloc-die.c: Likewise.
47249         * lib/xalloc.h: Likewise.
47250         * lib/xasprintf.c: Likewise.
47251         * lib/xgetcwd.c: Likewise.
47252         * lib/xgetcwd.h: Likewise.
47253         * lib/xgetdomainname.c: Likewise.
47254         * lib/xgetdomainname.h: Likewise.
47255         * lib/xgethostname.c: Likewise.
47256         * lib/xmalloc.c: Likewise.
47257         * lib/xmalloca.c: Likewise.
47258         * lib/xmalloca.h: Likewise.
47259         * lib/xmemcoll.c: Likewise.
47260         * lib/xnanosleep.c: Likewise.
47261         * lib/xreadlink.c: Likewise.
47262         * lib/xreadlink.h: Likewise.
47263         * lib/xsetenv.c: Likewise.
47264         * lib/xsetenv.h: Likewise.
47265         * lib/xstriconv.c: Likewise.
47266         * lib/xstriconv.h: Likewise.
47267         * lib/xstrndup.c: Likewise.
47268         * lib/xstrndup.h: Likewise.
47269         * lib/xstrtod.c: Likewise.
47270         * lib/xstrtod.h: Likewise.
47271         * lib/xstrtol-error.c: Likewise.
47272         * lib/xstrtol.c: Likewise.
47273         * lib/xstrtol.h: Likewise.
47274         * lib/xtime.h: Likewise.
47275         * lib/xvasprintf.c: Likewise.
47276         * lib/xvasprintf.h: Likewise.
47277         * lib/yesno.c: Likewise.
47278         * lib/yesno.h: Likewise.
47279         * posix-modules: Likewise.
47280         * tests/test-alloca-opt.c: Likewise.
47281         * tests/test-arcfour.c: Likewise.
47282         * tests/test-arctwo.c: Likewise.
47283         * tests/test-argmatch.c: Likewise.
47284         * tests/test-argp-2.sh: Likewise.
47285         * tests/test-argp.c: Likewise.
47286         * tests/test-arpa_inet.c: Likewise.
47287         * tests/test-array_list.c: Likewise.
47288         * tests/test-array_oset.c: Likewise.
47289         * tests/test-atexit.c: Likewise.
47290         * tests/test-avltree_list.c: Likewise.
47291         * tests/test-avltree_oset.c: Likewise.
47292         * tests/test-avltreehash_list.c: Likewise.
47293         * tests/test-base64.c: Likewise.
47294         * tests/test-binary-io.c: Likewise.
47295         * tests/test-byteswap.c: Likewise.
47296         * tests/test-c-ctype.c: Likewise.
47297         * tests/test-c-strcasecmp.c: Likewise.
47298         * tests/test-c-strcasestr.c: Likewise.
47299         * tests/test-c-strncasecmp.c: Likewise.
47300         * tests/test-c-strstr.c: Likewise.
47301         * tests/test-canonicalize-lgpl.c: Likewise.
47302         * tests/test-canonicalize.c: Likewise.
47303         * tests/test-carray_list.c: Likewise.
47304         * tests/test-ceilf.c: Likewise.
47305         * tests/test-ceill.c: Likewise.
47306         * tests/test-count-one-bits.c: Likewise.
47307         * tests/test-crc.c: Likewise.
47308         * tests/test-dirname.c: Likewise.
47309         * tests/test-fbufmode.c: Likewise.
47310         * tests/test-fcntl.c: Likewise.
47311         * tests/test-fflush.c: Likewise.
47312         * tests/test-floorf.c: Likewise.
47313         * tests/test-floorl.c: Likewise.
47314         * tests/test-fopen.c: Likewise.
47315         * tests/test-fprintf-posix.c: Likewise.
47316         * tests/test-fprintf-posix.h: Likewise.
47317         * tests/test-fpurge.c: Likewise.
47318         * tests/test-freadable.c: Likewise.
47319         * tests/test-freadahead.c: Likewise.
47320         * tests/test-freading.c: Likewise.
47321         * tests/test-freopen.c: Likewise.
47322         * tests/test-frexp.c: Likewise.
47323         * tests/test-frexpl.c: Likewise.
47324         * tests/test-fseek.c: Likewise.
47325         * tests/test-fseeko.c: Likewise.
47326         * tests/test-fseterr.c: Likewise.
47327         * tests/test-fstrcmp.c: Likewise.
47328         * tests/test-ftell.c: Likewise.
47329         * tests/test-ftello.c: Likewise.
47330         * tests/test-fwritable.c: Likewise.
47331         * tests/test-fwriting.c: Likewise.
47332         * tests/test-getaddrinfo.c: Likewise.
47333         * tests/test-getpass.c: Likewise.
47334         * tests/test-gettimeofday.c: Likewise.
47335         * tests/test-hmac-md5.c: Likewise.
47336         * tests/test-hmac-sha1.c: Likewise.
47337         * tests/test-iconv.c: Likewise.
47338         * tests/test-iconvme.c: Likewise.
47339         * tests/test-inttypes.c: Likewise.
47340         * tests/test-isnan.c: Likewise.
47341         * tests/test-isnanf.c: Likewise.
47342         * tests/test-isnanl-nolibm.c: Likewise.
47343         * tests/test-isnanl.c: Likewise.
47344         * tests/test-isnanl.h: Likewise.
47345         * tests/test-ldexpl.c: Likewise.
47346         * tests/test-linked_list.c: Likewise.
47347         * tests/test-linkedhash_list.c: Likewise.
47348         * tests/test-locale.c: Likewise.
47349         * tests/test-localename.c: Likewise.
47350         * tests/test-lock.c: Likewise.
47351         * tests/test-lseek.c: Likewise.
47352         * tests/test-malloca.c: Likewise.
47353         * tests/test-math.c: Likewise.
47354         * tests/test-mbscasecmp.c: Likewise.
47355         * tests/test-mbscasestr1.c: Likewise.
47356         * tests/test-mbscasestr2.c: Likewise.
47357         * tests/test-mbscasestr3.c: Likewise.
47358         * tests/test-mbscasestr4.c: Likewise.
47359         * tests/test-mbschr.c: Likewise.
47360         * tests/test-mbscspn.c: Likewise.
47361         * tests/test-mbsncasecmp.c: Likewise.
47362         * tests/test-mbspbrk.c: Likewise.
47363         * tests/test-mbspcasecmp.c: Likewise.
47364         * tests/test-mbsrchr.c: Likewise.
47365         * tests/test-mbsspn.c: Likewise.
47366         * tests/test-mbsstr1.c: Likewise.
47367         * tests/test-mbsstr2.c: Likewise.
47368         * tests/test-mbsstr3.c: Likewise.
47369         * tests/test-md5.c: Likewise.
47370         * tests/test-memmem.c: Likewise.
47371         * tests/test-netinet_in.c: Likewise.
47372         * tests/test-open.c: Likewise.
47373         * tests/test-printf-frexp.c: Likewise.
47374         * tests/test-printf-frexpl.c: Likewise.
47375         * tests/test-printf-posix.c: Likewise.
47376         * tests/test-printf-posix.h: Likewise.
47377         * tests/test-rbtree_list.c: Likewise.
47378         * tests/test-rbtree_oset.c: Likewise.
47379         * tests/test-rbtreehash_list.c: Likewise.
47380         * tests/test-read-file.c: Likewise.
47381         * tests/test-rijndael.c: Likewise.
47382         * tests/test-search.c: Likewise.
47383         * tests/test-signbit.c: Likewise.
47384         * tests/test-sleep.c: Likewise.
47385         * tests/test-snprintf-posix.c: Likewise.
47386         * tests/test-snprintf-posix.h: Likewise.
47387         * tests/test-snprintf.c: Likewise.
47388         * tests/test-sprintf-posix.c: Likewise.
47389         * tests/test-sprintf-posix.h: Likewise.
47390         * tests/test-stat-time.c: Likewise.
47391         * tests/test-stdbool.c: Likewise.
47392         * tests/test-stdint.c: Likewise.
47393         * tests/test-stdio.c: Likewise.
47394         * tests/test-stdlib.c: Likewise.
47395         * tests/test-stpncpy.c: Likewise.
47396         * tests/test-strcasestr.c: Likewise.
47397         * tests/test-striconv.c: Likewise.
47398         * tests/test-striconveh.c: Likewise.
47399         * tests/test-striconveha.c: Likewise.
47400         * tests/test-string.c: Likewise.
47401         * tests/test-sys_select.c: Likewise.
47402         * tests/test-sys_socket.c: Likewise.
47403         * tests/test-sys_stat.c: Likewise.
47404         * tests/test-sys_time.c: Likewise.
47405         * tests/test-sysexits.c: Likewise.
47406         * tests/test-time.c: Likewise.
47407         * tests/test-tls.c: Likewise.
47408         * tests/test-trunc.c: Likewise.
47409         * tests/test-truncf.c: Likewise.
47410         * tests/test-truncl.c: Likewise.
47411         * tests/test-unistd.c: Likewise.
47412         * tests/test-vasnprintf-posix.c: Likewise.
47413         * tests/test-vasnprintf-posix2.c: Likewise.
47414         * tests/test-vasnprintf.c: Likewise.
47415         * tests/test-vasprintf-posix.c: Likewise.
47416         * tests/test-vasprintf.c: Likewise.
47417         * tests/test-verify.c: Likewise.
47418         * tests/test-vfprintf-posix.c: Likewise.
47419         * tests/test-vprintf-posix.c: Likewise.
47420         * tests/test-vsnprintf-posix.c: Likewise.
47421         * tests/test-vsnprintf.c: Likewise.
47422         * tests/test-vsprintf-posix.c: Likewise.
47423         * tests/test-wchar.c: Likewise.
47424         * tests/test-wctype.c: Likewise.
47425         * tests/test-wcwidth.c: Likewise.
47426         * tests/test-xstrtol.c: Likewise.
47427         * tests/test-xvasprintf.c: Likewise.
47428         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47429         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47430         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47431         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47432         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47433         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47434         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47435         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47436         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47437         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47438         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47439         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47440         * tests/uniname/test-uninames.c: Likewise.
47441         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47442         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47443         * tests/unistdio/test-u16-printf1.h: Likewise.
47444         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47445         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47446         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47447         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47448         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47449         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47450         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47451         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47452         * tests/unistdio/test-u32-printf1.h: Likewise.
47453         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47454         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47455         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47456         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47457         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47458         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47459         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47460         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47461         * tests/unistdio/test-u8-printf1.h: Likewise.
47462         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47463         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47464         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47465         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47466         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47467         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47468         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47469         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47470         * tests/unistdio/test-ulc-printf1.h: Likewise.
47471         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47472         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47473         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47474         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47475         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47476         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47477         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47478         * tests/uniwidth/test-u16-width.c: Likewise.
47479         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47480         * tests/uniwidth/test-u32-width.c: Likewise.
47481         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47482         * tests/uniwidth/test-u8-width.c: Likewise.
47483         * tests/uniwidth/test-uc_width.c: Likewise.
47484         * config/srclist-update: Likewise.
47485         (fixlicense): Update to GPLv3+.
47486
47487         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47488         * tests/test-tsearch.c: Change copyright notice.
47489
47490         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47491         * lib/c-strcaseeq.h: Change copyright notice.
47492         * lib/streq.h: Likewise.
47493         * lib/uniconv.h: Likewise.
47494         * lib/uniconv/u-conv-from-enc.h: Likewise.
47495         * lib/uniconv/u-conv-to-enc.h: Likewise.
47496         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47497         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47498         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47499         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47500         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47501         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47502         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47503         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47504         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47505         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47506         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47507         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47508         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47509         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47510         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47511         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47512         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47513         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47514         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47515         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47516         * lib/uniname.h: Likewise.
47517         * lib/uniname/uniname.c: Likewise.
47518         * lib/unistdio.h: Likewise.
47519         * lib/unistdio/u-asnprintf.h: Likewise.
47520         * lib/unistdio/u-asprintf.h: Likewise.
47521         * lib/unistdio/u-printf-args.c: Likewise.
47522         * lib/unistdio/u-printf-args.h: Likewise.
47523         * lib/unistdio/u-printf-parse.h: Likewise.
47524         * lib/unistdio/u-snprintf.h: Likewise.
47525         * lib/unistdio/u-sprintf.h: Likewise.
47526         * lib/unistdio/u-vasprintf.h: Likewise.
47527         * lib/unistdio/u-vsnprintf.h: Likewise.
47528         * lib/unistdio/u-vsprintf.h: Likewise.
47529         * lib/unistdio/u16-asnprintf.c: Likewise.
47530         * lib/unistdio/u16-asprintf.c: Likewise.
47531         * lib/unistdio/u16-printf-parse.c: Likewise.
47532         * lib/unistdio/u16-snprintf.c: Likewise.
47533         * lib/unistdio/u16-sprintf.c: Likewise.
47534         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47535         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47536         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47537         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47538         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47539         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47540         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47541         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47542         * lib/unistdio/u16-vasnprintf.c: Likewise.
47543         * lib/unistdio/u16-vasprintf.c: Likewise.
47544         * lib/unistdio/u16-vsnprintf.c: Likewise.
47545         * lib/unistdio/u16-vsprintf.c: Likewise.
47546         * lib/unistdio/u32-asnprintf.c: Likewise.
47547         * lib/unistdio/u32-asprintf.c: Likewise.
47548         * lib/unistdio/u32-printf-parse.c: Likewise.
47549         * lib/unistdio/u32-snprintf.c: Likewise.
47550         * lib/unistdio/u32-sprintf.c: Likewise.
47551         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47552         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47553         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47554         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47555         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47556         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47557         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47558         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47559         * lib/unistdio/u32-vasnprintf.c: Likewise.
47560         * lib/unistdio/u32-vasprintf.c: Likewise.
47561         * lib/unistdio/u32-vsnprintf.c: Likewise.
47562         * lib/unistdio/u32-vsprintf.c: Likewise.
47563         * lib/unistdio/u8-asnprintf.c: Likewise.
47564         * lib/unistdio/u8-asprintf.c: Likewise.
47565         * lib/unistdio/u8-printf-parse.c: Likewise.
47566         * lib/unistdio/u8-snprintf.c: Likewise.
47567         * lib/unistdio/u8-sprintf.c: Likewise.
47568         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47569         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47570         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47571         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47572         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47573         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47574         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47575         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47576         * lib/unistdio/u8-vasnprintf.c: Likewise.
47577         * lib/unistdio/u8-vasprintf.c: Likewise.
47578         * lib/unistdio/u8-vsnprintf.c: Likewise.
47579         * lib/unistdio/u8-vsprintf.c: Likewise.
47580         * lib/unistdio/ulc-asnprintf.c: Likewise.
47581         * lib/unistdio/ulc-asprintf.c: Likewise.
47582         * lib/unistdio/ulc-printf-parse.c: Likewise.
47583         * lib/unistdio/ulc-snprintf.c: Likewise.
47584         * lib/unistdio/ulc-sprintf.c: Likewise.
47585         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47586         * lib/unistdio/ulc-vasprintf.c: Likewise.
47587         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47588         * lib/unistdio/ulc-vsprintf.c: Likewise.
47589         * lib/unistr.h: Likewise.
47590         * lib/unistr/u-cpy-alloc.h: Likewise.
47591         * lib/unistr/u-cpy.h: Likewise.
47592         * lib/unistr/u-endswith.h: Likewise.
47593         * lib/unistr/u-move.h: Likewise.
47594         * lib/unistr/u-set.h: Likewise.
47595         * lib/unistr/u-startswith.h: Likewise.
47596         * lib/unistr/u-stpcpy.h: Likewise.
47597         * lib/unistr/u-stpncpy.h: Likewise.
47598         * lib/unistr/u-strcat.h: Likewise.
47599         * lib/unistr/u-strcpy.h: Likewise.
47600         * lib/unistr/u-strcspn.h: Likewise.
47601         * lib/unistr/u-strdup.h: Likewise.
47602         * lib/unistr/u-strlen.h: Likewise.
47603         * lib/unistr/u-strncat.h: Likewise.
47604         * lib/unistr/u-strncpy.h: Likewise.
47605         * lib/unistr/u-strnlen.h: Likewise.
47606         * lib/unistr/u-strpbrk.h: Likewise.
47607         * lib/unistr/u-strspn.h: Likewise.
47608         * lib/unistr/u-strstr.h: Likewise.
47609         * lib/unistr/u-strtok.h: Likewise.
47610         * lib/unistr/u16-check.c: Likewise.
47611         * lib/unistr/u16-chr.c: Likewise.
47612         * lib/unistr/u16-cmp.c: Likewise.
47613         * lib/unistr/u16-cpy-alloc.c: Likewise.
47614         * lib/unistr/u16-cpy.c: Likewise.
47615         * lib/unistr/u16-endswith.c: Likewise.
47616         * lib/unistr/u16-mblen.c: Likewise.
47617         * lib/unistr/u16-mbsnlen.c: Likewise.
47618         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47619         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47620         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47621         * lib/unistr/u16-mbtouc.c: Likewise.
47622         * lib/unistr/u16-mbtoucr.c: Likewise.
47623         * lib/unistr/u16-move.c: Likewise.
47624         * lib/unistr/u16-next.c: Likewise.
47625         * lib/unistr/u16-prev.c: Likewise.
47626         * lib/unistr/u16-set.c: Likewise.
47627         * lib/unistr/u16-startswith.c: Likewise.
47628         * lib/unistr/u16-stpcpy.c: Likewise.
47629         * lib/unistr/u16-stpncpy.c: Likewise.
47630         * lib/unistr/u16-strcat.c: Likewise.
47631         * lib/unistr/u16-strchr.c: Likewise.
47632         * lib/unistr/u16-strcmp.c: Likewise.
47633         * lib/unistr/u16-strcpy.c: Likewise.
47634         * lib/unistr/u16-strcspn.c: Likewise.
47635         * lib/unistr/u16-strdup.c: Likewise.
47636         * lib/unistr/u16-strlen.c: Likewise.
47637         * lib/unistr/u16-strmblen.c: Likewise.
47638         * lib/unistr/u16-strmbtouc.c: Likewise.
47639         * lib/unistr/u16-strncat.c: Likewise.
47640         * lib/unistr/u16-strncmp.c: Likewise.
47641         * lib/unistr/u16-strncpy.c: Likewise.
47642         * lib/unistr/u16-strnlen.c: Likewise.
47643         * lib/unistr/u16-strpbrk.c: Likewise.
47644         * lib/unistr/u16-strrchr.c: Likewise.
47645         * lib/unistr/u16-strspn.c: Likewise.
47646         * lib/unistr/u16-strstr.c: Likewise.
47647         * lib/unistr/u16-strtok.c: Likewise.
47648         * lib/unistr/u16-to-u32.c: Likewise.
47649         * lib/unistr/u16-to-u8.c: Likewise.
47650         * lib/unistr/u16-uctomb-aux.c: Likewise.
47651         * lib/unistr/u16-uctomb.c: Likewise.
47652         * lib/unistr/u32-check.c: Likewise.
47653         * lib/unistr/u32-chr.c: Likewise.
47654         * lib/unistr/u32-cmp.c: Likewise.
47655         * lib/unistr/u32-cpy-alloc.c: Likewise.
47656         * lib/unistr/u32-cpy.c: Likewise.
47657         * lib/unistr/u32-endswith.c: Likewise.
47658         * lib/unistr/u32-mblen.c: Likewise.
47659         * lib/unistr/u32-mbsnlen.c: Likewise.
47660         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47661         * lib/unistr/u32-mbtouc.c: Likewise.
47662         * lib/unistr/u32-mbtoucr.c: Likewise.
47663         * lib/unistr/u32-move.c: Likewise.
47664         * lib/unistr/u32-next.c: Likewise.
47665         * lib/unistr/u32-prev.c: Likewise.
47666         * lib/unistr/u32-set.c: Likewise.
47667         * lib/unistr/u32-startswith.c: Likewise.
47668         * lib/unistr/u32-stpcpy.c: Likewise.
47669         * lib/unistr/u32-stpncpy.c: Likewise.
47670         * lib/unistr/u32-strcat.c: Likewise.
47671         * lib/unistr/u32-strchr.c: Likewise.
47672         * lib/unistr/u32-strcmp.c: Likewise.
47673         * lib/unistr/u32-strcpy.c: Likewise.
47674         * lib/unistr/u32-strcspn.c: Likewise.
47675         * lib/unistr/u32-strdup.c: Likewise.
47676         * lib/unistr/u32-strlen.c: Likewise.
47677         * lib/unistr/u32-strmblen.c: Likewise.
47678         * lib/unistr/u32-strmbtouc.c: Likewise.
47679         * lib/unistr/u32-strncat.c: Likewise.
47680         * lib/unistr/u32-strncmp.c: Likewise.
47681         * lib/unistr/u32-strncpy.c: Likewise.
47682         * lib/unistr/u32-strnlen.c: Likewise.
47683         * lib/unistr/u32-strpbrk.c: Likewise.
47684         * lib/unistr/u32-strrchr.c: Likewise.
47685         * lib/unistr/u32-strspn.c: Likewise.
47686         * lib/unistr/u32-strstr.c: Likewise.
47687         * lib/unistr/u32-strtok.c: Likewise.
47688         * lib/unistr/u32-to-u16.c: Likewise.
47689         * lib/unistr/u32-to-u8.c: Likewise.
47690         * lib/unistr/u32-uctomb.c: Likewise.
47691         * lib/unistr/u8-check.c: Likewise.
47692         * lib/unistr/u8-chr.c: Likewise.
47693         * lib/unistr/u8-cmp.c: Likewise.
47694         * lib/unistr/u8-cpy-alloc.c: Likewise.
47695         * lib/unistr/u8-cpy.c: Likewise.
47696         * lib/unistr/u8-endswith.c: Likewise.
47697         * lib/unistr/u8-mblen.c: Likewise.
47698         * lib/unistr/u8-mbsnlen.c: Likewise.
47699         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47700         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47701         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47702         * lib/unistr/u8-mbtouc.c: Likewise.
47703         * lib/unistr/u8-mbtoucr.c: Likewise.
47704         * lib/unistr/u8-move.c: Likewise.
47705         * lib/unistr/u8-next.c: Likewise.
47706         * lib/unistr/u8-prev.c: Likewise.
47707         * lib/unistr/u8-set.c: Likewise.
47708         * lib/unistr/u8-startswith.c: Likewise.
47709         * lib/unistr/u8-stpcpy.c: Likewise.
47710         * lib/unistr/u8-stpncpy.c: Likewise.
47711         * lib/unistr/u8-strcat.c: Likewise.
47712         * lib/unistr/u8-strchr.c: Likewise.
47713         * lib/unistr/u8-strcmp.c: Likewise.
47714         * lib/unistr/u8-strcpy.c: Likewise.
47715         * lib/unistr/u8-strcspn.c: Likewise.
47716         * lib/unistr/u8-strdup.c: Likewise.
47717         * lib/unistr/u8-strlen.c: Likewise.
47718         * lib/unistr/u8-strmblen.c: Likewise.
47719         * lib/unistr/u8-strmbtouc.c: Likewise.
47720         * lib/unistr/u8-strncat.c: Likewise.
47721         * lib/unistr/u8-strncmp.c: Likewise.
47722         * lib/unistr/u8-strncpy.c: Likewise.
47723         * lib/unistr/u8-strnlen.c: Likewise.
47724         * lib/unistr/u8-strpbrk.c: Likewise.
47725         * lib/unistr/u8-strrchr.c: Likewise.
47726         * lib/unistr/u8-strspn.c: Likewise.
47727         * lib/unistr/u8-strstr.c: Likewise.
47728         * lib/unistr/u8-strtok.c: Likewise.
47729         * lib/unistr/u8-to-u16.c: Likewise.
47730         * lib/unistr/u8-to-u32.c: Likewise.
47731         * lib/unistr/u8-uctomb-aux.c: Likewise.
47732         * lib/unistr/u8-uctomb.c: Likewise.
47733         * lib/unitypes.h: Likewise.
47734         * lib/uniwidth.h: Likewise.
47735         * lib/uniwidth/cjk.h: Likewise.
47736         * lib/uniwidth/u16-strwidth.c: Likewise.
47737         * lib/uniwidth/u16-width.c: Likewise.
47738         * lib/uniwidth/u32-strwidth.c: Likewise.
47739         * lib/uniwidth/u32-width.c: Likewise.
47740         * lib/uniwidth/u8-strwidth.c: Likewise.
47741         * lib/uniwidth/u8-width.c: Likewise.
47742         * lib/uniwidth/width.c: Likewise.
47743
47744 2007-10-07  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47747         The file is still under LGPL (see modules/inttypes).
47748
47749 2007-10-06  Bruno Haible  <bruno@clisp.org>
47750
47751         * modules/trunc (Dependencies): Add 'extensions'.
47752         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47753         Reported by Ben Pfaff <blp@gnu.org>.
47754
47755 2007-10-06  Bruno Haible  <bruno@clisp.org>
47756
47757         * modules/freopen-tests: New file.
47758         * tests/test-freopen.c: New file.
47759
47760         * modules/fopen-tests: New file.
47761         * tests/test-fopen.c: New file.
47762
47763         * modules/fopen: New file.
47764         * lib/fopen.c: New file.
47765         * m4/fopen.m4: New file.
47766         * modules/freopen: New file.
47767         * lib/freopen.c: New file.
47768         * m4/freopen.m4: New file.
47769         * lib/stdio.in.h (fopen, freopen): New declarations.
47770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47771         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47772         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47773         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47774         * doc/functions/fopen.texi: Mention the 'fopen' module.
47775         * doc/functions/freopen.texi: Mention the 'freopen' module.
47776
47777 2007-10-06  Bruno Haible  <bruno@clisp.org>
47778
47779         * modules/open-tests: New file.
47780         * tests/test-open.c: New file.
47781
47782         * modules/open: New file.
47783         * lib/open.c: New file.
47784         * m4/open.m4: New file.
47785         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47786         lib/open.c does.
47787         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47788         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47789         macros.
47790         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47791         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47792         REPLACE_OPEN.
47793         * doc/functions/open.texi: Mention the 'open' module.
47794
47795 2007-10-04  Bruno Haible  <bruno@clisp.org>
47796
47797         * modules/ceill-tests: New file.
47798         * tests/test-ceill.c: New file.
47799
47800         * modules/ceill: New file.
47801         * lib/ceill.c: Replace entire file.
47802         * m4/ceill.m4: New file.
47803         * lib/math.in.h (ceill): Replace declaration.
47804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47805         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47806         * doc/functions/ceill.texi: Mention the 'ceill' module.
47807         * modules/mathl (Files): Remove lib/ceill.c.
47808         (Depends-on): Add ceill.
47809
47810 2007-10-04  Bruno Haible  <bruno@clisp.org>
47811
47812         * modules/ceilf-tests: New file.
47813         * tests/test-ceilf.c: New file.
47814
47815         * modules/ceilf: New file.
47816         * lib/ceil.c: New file.
47817         * lib/ceilf.c: New file.
47818         * m4/ceilf.m4: New file.
47819         * lib/math.in.h (ceilf): New declaration.
47820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47821         HAVE_DECL_CEILF.
47822         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47823         HAVE_DECL_CEILF.
47824         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47825
47826 2007-10-04  Bruno Haible  <bruno@clisp.org>
47827
47828         * modules/floorl-tests: New file.
47829         * tests/test-floorl.c: New file.
47830
47831         * modules/floorl: New file.
47832         * lib/floorl.c: Replace entire file.
47833         * m4/floorl.m4: New file.
47834         * lib/math.in.h (floorl): Replace declaration.
47835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47836         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47837         * doc/functions/floorl.texi: Mention the 'floorl' module.
47838         * modules/mathl (Files): Remove lib/floorl.c.
47839         (Depends-on): Add floorl.
47840
47841 2007-10-04  Bruno Haible  <bruno@clisp.org>
47842
47843         * modules/floorf-tests: New file.
47844         * tests/test-floorf.c: New file.
47845
47846         * modules/floorf: New file.
47847         * lib/floor.c: New file.
47848         * lib/floorf.c: New file.
47849         * m4/floorf.m4: New file.
47850         * lib/math.in.h (floorf): New declaration.
47851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47852         HAVE_DECL_FLOORF.
47853         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47854         HAVE_DECL_FLOORF.
47855         * doc/functions/floorf.texi: Mention the 'floorf' module.
47856
47857 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47858             Bruno Haible  <bruno@clisp.org>
47859
47860         Advertise for the Git server instead of the CVS server.
47861         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47862         repository instead of the CVS one.
47863         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47864         about all VCS systems generically.
47865         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47866
47867 2007-10-04  Bruno Haible  <bruno@clisp.org>
47868
47869         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47870         means.
47871         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47872
47873 2007-10-04  Bruno Haible  <bruno@clisp.org>
47874
47875         * modules/truncl-tests: New file.
47876         * tests/test-truncl.c: New file.
47877
47878         * modules/truncl: New file.
47879         * lib/truncl.c: New file.
47880         * m4/truncl.m4: New file.
47881         * lib/math.in.h (truncl): New declaration.
47882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47883         HAVE_DECL_TRUNCL.
47884         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47885         HAVE_DECL_TRUNCL.
47886         * doc/functions/truncl.texi: Mention the 'truncl' module.
47887
47888 2007-10-04  Bruno Haible  <bruno@clisp.org>
47889
47890         * modules/truncf-tests: New file.
47891         * tests/test-truncf.c: New file.
47892
47893         * modules/truncf: New file.
47894         * lib/trunc.c: Make paramerizable through USE_* macros.
47895         * lib/truncf.c: New file.
47896         * m4/truncf.m4: New file.
47897         * lib/math.in.h (truncf): New declaration.
47898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47899         HAVE_DECL_TRUNCF.
47900         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47901         HAVE_DECL_TRUNCF.
47902         * doc/functions/truncf.texi: Mention the 'truncf' module.
47903
47904 2007-10-03  Bruno Haible  <bruno@clisp.org>
47905
47906         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47907         augmentation also for tests modules.
47908         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47909         * modules/atexit-tests (Makefile.am): Likewise.
47910         * modules/binary-io-tests (Makefile.am): Likewise.
47911         * modules/c-strcase-tests (Makefile.am): Likewise.
47912         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47913         * modules/canonicalize-tests (Makefile.am): Likewise.
47914         * modules/closein-tests (Makefile.am): Likewise.
47915         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47916         * modules/freadahead-tests (Makefile.am): Likewise.
47917         * modules/fseek-tests (Makefile.am): Likewise.
47918         * modules/fseeko-tests (Makefile.am): Likewise.
47919         * modules/ftell-tests (Makefile.am): Likewise.
47920         * modules/ftello-tests (Makefile.am): Likewise.
47921         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47922         * modules/isnanl-tests (Makefile.am): Likewise.
47923         * modules/lseek-tests (Makefile.am): Likewise.
47924         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47925         * modules/mbscasestr-tests (Makefile.am): Likewise.
47926         * modules/mbschr-tests (Makefile.am): Likewise.
47927         * modules/mbscspn-tests (Makefile.am): Likewise.
47928         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47929         * modules/mbspbrk-tests (Makefile.am): Likewise.
47930         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47931         * modules/mbsrchr-tests (Makefile.am): Likewise.
47932         * modules/mbsspn-tests (Makefile.am): Likewise.
47933         * modules/mbsstr-tests (Makefile.am): Likewise.
47934         * modules/printf-posix-tests (Makefile.am): Likewise.
47935         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47936         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47937         * modules/tsearch-tests (Makefile.am): Likewise.
47938         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47939         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47940         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47941         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47942         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47943         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47944         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47945         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47946         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47947         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47948         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47949         * modules/xstrtol-tests (Makefile.am): Likewise.
47950         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47951         * modules/yesno-tests (Makefile.am): Likewise.
47952
47953 2007-10-03  Bruno Haible  <bruno@clisp.org>
47954
47955         * modules/trunc-tests: New file.
47956         * tests/test-trunc.c: New file.
47957
47958         * modules/trunc: New file.
47959         * lib/trunc.c: New file.
47960         * m4/trunc.m4: New file.
47961         * lib/math.in.h (trunc): New declaration.
47962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47963         HAVE_DECL_TRUNC.
47964         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47965         HAVE_DECL_TRUNC.
47966         * doc/functions/trunc.texi: Mention the 'trunc' module.
47967
47968 2007-10-03  Bruno Haible  <bruno@clisp.org>
47969
47970         * tests/test-fpending.c: New file, mostly copied
47971         from coreutils/lib/t-fpending.c.
47972         * modules/fpending-tests: New file.
47973
47974 2007-10-03  Bruno Haible  <bruno@clisp.org>
47975
47976         Port the stdio extensions to QNX (untested).
47977         * lib/fseterr.c (fseterr): Add support for QNX.
47978         * lib/fbufmode.c (fbufmode): Likewise.
47979         * lib/freadable.c (freadable): Likewise.
47980         * lib/fwritable.c (fwritable): Likewise.
47981         * lib/freading.c (freading): Likewise.
47982         * lib/fwriting.c (fwriting): Likewise.
47983         * lib/freadahead.c (freadahed): Likewise.
47984         * lib/fpurge.c (fpurge): Likewise.
47985         * lib/fseeko.c (rpl_fseeko): Likewise.
47986
47987 2007-10-03  Bruno Haible  <bruno@clisp.org>
47988             Jim Meyering  <jim@meyering.net>
47989             Eric Blake  <ebb9@byu.net>
47990
47991         * doc/relocatable.texi: Use @command instead of @program.
47992
47993 2007-10-02  Jim Meyering  <jim@meyering.net>
47994
47995         Perform one more "_.h" -> ".in.h" substitution.
47996         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47997         instead of unistd_.h here, too.
47998
47999 2007-10-01  Bruno Haible  <bruno@clisp.org>
48000
48001         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48002         Needed for the alloca-opt module.
48003
48004 2007-09-30  Bruno Haible  <bruno@clisp.org>
48005
48006         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48007         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48008         alloca_.h.
48009         * lib/argz.in.h: Renamed from lib/argz_.h.
48010         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48011         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48012         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48013         byteswap_.h.
48014         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48015         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48016         dirent_.h.
48017         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48018         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48019         fcntl_.h.
48020         * lib/float.in.h: Renamed from lib/float_.h.
48021         * modules/float (Files, Makefile.am): Use float.in.h instead of
48022         float_.h.
48023         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48024         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48025         fnmatch_.h.
48026         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48027         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48028         getopt_.h.
48029         * lib/glob.in.h: Renamed from lib/glob_.h.
48030         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48031         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48032         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48033         iconv_.h.
48034         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48035         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48036         inttypes_.h.
48037         * lib/locale.in.h: Renamed from lib/locale_.h.
48038         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48039         locale_.h.
48040         * lib/math.in.h: Renamed from lib/math_.h.
48041         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48042         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48043         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48044         of netinet_in_.h. Add dependency.
48045         * lib/poll.in.h: Renamed from lib/poll_.h.
48046         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48047         * lib/search.in.h: Renamed from lib/search_.h.
48048         * modules/search (Files, Makefile.am): Use search.in.h instead of
48049         search_.h.
48050         * lib/signal.in.h: Renamed from lib/signal_.h.
48051         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48052         _signal.h.
48053         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48054         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48055         stdbool_.h.
48056         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48057         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48058         stdint_.h.
48059         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48060         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48061         stdio_.h.
48062         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48063         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48064         stdlib_.h.
48065         * lib/string.in.h: Renamed from lib/string_.h.
48066         * modules/string (Files, Makefile.am): Use string.in.h instead of
48067         string_.h.
48068         * doc/gnulib-tool.texi (Initial import): Update.
48069         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48070         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48071         of sys_select_.h. Add dependency.
48072         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48073         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48074         of sys_socket_.h.
48075         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48076         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48077         sys_stat_.h.
48078         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48079         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48080         sys_time_.h.
48081         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48082         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48083         sysexits_.h.
48084         * lib/time.in.h: Renamed from lib/time_.h.
48085         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48086         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48087         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48088         unistd_.h.
48089         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48090         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48091         wchar_.h.
48092         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48093         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48094         wctype_.h.
48095         * build-aux/bootstrap (slurp): Update.
48096         * lib/.cppi-disable: Update.
48097
48098 2007-09-30  Bruno Haible  <bruno@clisp.org>
48099
48100         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48101         Needed on BeOS.
48102
48103 2007-09-30  Bruno Haible  <bruno@clisp.org>
48104
48105         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48106
48107 2007-09-29  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48110
48111 2007-09-29  Bruno Haible  <bruno@clisp.org>
48112
48113         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48114         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48115         * build-aux/install-reloc: Compile also areadlink.c.
48116         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48117
48118 2007-09-29  Bruno Haible  <bruno@clisp.org>
48119
48120         * gnulib-tool (func_emit_initmacro_done): Indentation.
48121
48122 2007-09-29  Bruno Haible  <bruno@clisp.org>
48123
48124         * README: Add CVS checkout update instructions.
48125         Info from Bob Proulx <bob@proulx.com>.
48126
48127 2007-09-28  Eric Blake  <ebb9@byu.net>
48128
48129         Provide move-if-change.
48130         * build-aux/move-if-change: New file, based on best practice
48131         rather than any canonical upstream location.
48132
48133 2007-09-28  Jim Meyering  <jim@meyering.net>
48134
48135         Fix canonicalize loop-detection corner case.
48136         Do not attempt to stat the symlink values stored via seen_triple.
48137         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48138         on linux-2.6.18, (but not 2.6.22).
48139         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48140         triple_compare.  The former compares dev,ino,filename, while the latter
48141         would actually stat dirname(filename) when dev and ino were equal.
48142         * lib/hash-triple.c: Install <string.h>.
48143         (STREQ): Define.
48144         (triple_compare_ino_str): New function.
48145         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48146
48147 2007-09-28  Eric Blake  <ebb9@byu.net>
48148
48149         Enforce that AC_REPLACE_FUNCS files exist.
48150         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48151         override check for typos.
48152
48153         Fix test-closein on Solaris 10.
48154         * tests/test-closein.c (main): Don't assume stdin can be inherited
48155         closed on all systems.
48156         * tests/test-closein.sh: Likewise.
48157         Reported by Piotr Tarnowski.
48158
48159 2007-09-28  Jim Meyering  <jim@meyering.net>
48160
48161         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48162
48163 2007-09-27  Jim Meyering  <jim@meyering.net>
48164
48165         canonicalize: Avoid a false-positive cycle failure.
48166         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48167         Sort.  Remove cycle-check.
48168         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48169         not cycle-check.h.
48170         (seen_triple): New function.
48171         (canonicalize_filename_mode): Use it instead of cycle-check.
48172         * tests/test-canonicalize.c: Add a test for this bug.
48173         * tests/test-canonicalize.sh: Set up and run the test.
48174
48175         New module, file-set, from coreutils.
48176         * modules/file-set: Define it.
48177         * lib/file-set.c, lib/file-set.h: Implement.
48178
48179         New module, hash-triple, from coreutils.
48180         * modules/hash-triple: Define it.
48181         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48182
48183 2007-09-25  Eric Blake  <ebb9@byu.net>
48184
48185         Fix strerror on Interix.
48186         * lib/string_.h (strerror): Declare replacement.
48187         * doc/functions/strerror.texi (strerror): Document the Interix
48188         shortcoming.
48189         * modules/string (Makefile.am): Support new hooks.
48190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48191         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48192         gl_FUNC_STRERROR_SEPARATE.
48193         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48194         * lib/strerror.c (rpl_strerror): Provide replacement.
48195         * modules/strerror (Depends-on): Add string.
48196         (configure.ac): Detect use of module.
48197         * tests/test-strerror.c: New file.
48198         * modules/strerror-tests: New test module.
48199         * modules/argp (Depends-on): Add strerror.
48200         * modules/error (Depends-on): Likewise.
48201         Reported by Martin Koeppe.
48202
48203 2007-09-24  Bruno Haible  <bruno@clisp.org>
48204
48205         * README: Update git instructions.
48206
48207 2007-09-24  Eric Blake  <ebb9@byu.net>
48208
48209         Revert fpending breakage from 2007-09-08.
48210         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48211         __fpending.c.
48212
48213 2007-09-24  Jim Meyering  <jim@meyering.net>
48214
48215         filenamecat.c: Add a test.
48216         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48217         showing how the function works when DIR is the empty string.
48218
48219 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48220
48221         * tests/test-canonicalize.sh: Turn on executable bit.
48222
48223 2007-09-19  Eric Blake  <ebb9@byu.net>
48224
48225         * README: Update CVS instructions.
48226
48227 2007-09-18  Bruno Haible  <bruno@clisp.org>
48228
48229         * modules/areadlink: New file.
48230         * lib/areadlink.h (areadlink): New declaration.
48231         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48232
48233 2007-09-17  Jim Meyering  <jim@meyering.net>
48234
48235         * lib/savewd.c (ESTALE) [!defined]: Define.
48236         Reported to be required on Interix by Martin Koeppe.
48237
48238 2007-09-17  Bruno Haible  <bruno@clisp.org>
48239
48240         * gnulib-tool (func_version): Use $version.
48241
48242 2007-09-16  Bruno Haible  <bruno@clisp.org>
48243
48244         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48245         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48246         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48247         Reported by Greg Schafer <gschafer@zip.com.au>.
48248
48249 2007-09-15  Bruno Haible  <bruno@clisp.org>
48250
48251         * gnulib-tool (sed): Try a little harder to make bash understand the
48252         alias.
48253         Reported by Bruce Korb <bruce.korb@gmail.com>.
48254
48255 2007-09-13  Eric Blake  <ebb9@byu.net>
48256
48257         * ChangeLog: Remove conflict markers.
48258
48259 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48260
48261         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48262         Reported by Bruno Haible <bruno@clisp.org>.
48263
48264 2007-09-12  Bruno Haible  <bruno@clisp.org>
48265
48266         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48267         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48268         is not defined.
48269
48270 2007-09-12  Eric Blake  <ebb9@byu.net>
48271
48272         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48273         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48274         Autoconf definition.
48275         * modules/euidaccess (Depends-on): Add extensions, for
48276         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48277         * modules/fnmatch (Depends-on): Likewise.
48278         * modules/getaddrinfo (Depends-on): Likewise.
48279         * modules/getdelim (Depends-on): Likewise.
48280         * modules/getline (Depends-on): Likewise.
48281         * modules/getsubopt (Depends-on): Likewise.
48282         * modules/gettext (Depends-on): Likewise.
48283         * modules/group-member (Depends-on): Likewise.
48284         * modules/mbchar (Depends-on): Likewise.
48285         * modules/memmem (Depends-on): Likewise.
48286         * modules/mempcpy (Depends-on): Likewise.
48287         * modules/memrchr (Depends-on): Likewise.
48288         * modules/pagealign_alloc (Depends-on): Likewise.
48289         * modules/readutmp (Depends-on): Likewise.
48290         * modules/stpcpy (Depends-on): Likewise.
48291         * modules/stpncpy (Depends-on): Likewise.
48292         * modules/strchrnul (Depends-on): Likewise.
48293         * modules/strndup (Depends-on): Likewise.
48294         * modules/strsep (Depends-on): Likewise.
48295         * modules/strverscmp (Depends-on): Likewise.
48296         * modules/vasprintf (Depends-on): Likewise.
48297         * modules/wcwidth (Depends-on): Likewise.
48298         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48299         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48300         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48302         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48303         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48304         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48305         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48306         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48307         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48308         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48309         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48310         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48311         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48312         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48313         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48314         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48315         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48316         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48317         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48320         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48321         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48322         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48324         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48325         so that lock.m4 can be used in gettext without extensions module.
48326
48327 2007-09-11  Bruno Haible  <bruno@clisp.org>
48328
48329         * m4/isc-posix.m4: Remove file.
48330         Suggested by Eric Blake.
48331
48332 2007-09-11  Eric Blake  <ebb9@byu.net>
48333
48334         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48335
48336 2007-09-10  Bruno Haible  <bruno@clisp.org>
48337
48338         * posix-modules: Fix typo in error message.
48339         Reported by Matt <mkraai@beckman.com>.
48340
48341 2007-09-09  Bruno Haible  <bruno@clisp.org>
48342
48343         * doc/functions/getdelim.texi: Update list of platforms lacking the
48344         function.
48345         * doc/functions/getline.texi: Likewise.
48346
48347 2007-09-09  Jim Meyering  <jim@meyering.net>
48348
48349         * lib/hash.c (hash_initialize): Detect calloc failure.
48350         Reported by Bruno Haible.
48351
48352 2007-09-09  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48355         malloc or realloc fails.
48356
48357 2007-09-09  Bruno Haible  <bruno@clisp.org>
48358
48359         * modules/getcwd (Depends-on): Add malloc-posix.
48360         * modules/glob (Depends-on): Likewise.
48361         * modules/putenv (Depends-on): Likewise.
48362         * modules/strdup (Depends-on): Likewise.
48363         * modules/getdelim (Depends-on): Add realloc-posix.
48364         * modules/read-file (Depends-on): Likewise.
48365
48366 2007-09-09  Bruno Haible  <bruno@clisp.org>
48367
48368         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48369         (gl_FUNC_MALLOC_POSIX): Require it.
48370         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48371         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48372         * modules/realloc (Files): Add m4/malloc.m4.
48373         * modules/calloc (Files): Likewise.
48374
48375 2007-09-09  Bruno Haible  <bruno@clisp.org>
48376
48377         * modules/malloc-posix: New file.
48378         * modules/malloc (Depends-on): Add malloc-posix.
48379         * lib/malloc.c: Include errno.h.
48380         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48381         and a POSIX-compatible malloc into a single function. Set ENOMEM
48382         when returning NULL.
48383         * m4/malloc.m4: New file.
48384         * doc/functions/malloc.texi: Mention the malloc-posix module.
48385         * lib/stdlib_.h (malloc): New declaration.
48386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48387         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48388         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48389         and HAVE_MALLOC_POSIX.
48390
48391 2007-09-09  Bruno Haible  <bruno@clisp.org>
48392
48393         * modules/realloc-posix: New file.
48394         * modules/realloc (Depends-on): Add realloc-posix.
48395         * lib/realloc.c: Include errno.h.
48396         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48397         and a POSIX-compatible realloc into a single function. Set ENOMEM
48398         when returning NULL.
48399         * m4/realloc.m4: New file.
48400         * doc/functions/realloc.texi: Mention the realloc-posix module.
48401         * lib/stdlib_.h (realloc): New declaration.
48402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48403         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48404         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48405         and HAVE_REALLOC_POSIX.
48406
48407 2007-09-09  Bruno Haible  <bruno@clisp.org>
48408
48409         * modules/calloc-posix: New file.
48410         * modules/calloc (Depends-on): Add calloc-posix.
48411         * lib/calloc.c: Include errno.h.
48412         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48413         and a POSIX-compatible calloc into a single function. Set ENOMEM
48414         when returning NULL.
48415         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48416         * doc/functions/calloc.texi: Mention the calloc-posix module.
48417         * lib/stdlib_.h (calloc): New declaration.
48418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48419         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48420         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48421         and HAVE_CALLOC_POSIX.
48422
48423 2007-09-09  Bruno Haible  <bruno@clisp.org>
48424
48425         Allow for modules to show an arbitrary notice.
48426         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48427         * gnulib-tool: New option --extract-notice.
48428         (func_usage): Document it.
48429         (sed_extract_prog): Update.
48430         (func_get_notice): New function.
48431         (func_modules_notice): New function.
48432         (func_import, func_create_testdir): Invoke it.
48433         Suggested by Jim Meyering.
48434
48435 2007-09-09  Bruno Haible  <bruno@clisp.org>
48436
48437         * gnulib-tool: New options --verbose, --quiet.
48438         (func_usage): Document them.
48439         (verbose): New variable.
48440         (func_execute_command): New function.
48441         (func_import): Don't show the module list and the file list if
48442         $verbose < 0.
48443         (func_create_testdir): Likewise. Use func_execute_command.
48444         (func_create_megatestdir): Use func_execute_command.
48445
48446 2007-09-08  Bruno Haible  <bruno@clisp.org>
48447
48448         * gnulib-tool (func_import): Prefer rsync over wget when available,
48449         for fetching the PO files.
48450
48451 2007-09-08  Bruno Haible  <bruno@clisp.org>
48452
48453         * posix-modules: New file. Portions copied from gnulib-tool.
48454         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48455
48456 2007-09-08  Jim Meyering  <jim@meyering.net>
48457
48458         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48459         * lib/fpending.h: Rename from __fpending.h.
48460         * lib/fpending.c: Rename from __fpending.c.
48461         Include "fpending.h", not "__fpending.h".
48462         * lib/__fpending.h, lib/__fpending.c: Remove files.
48463         * modules/fpending (Files): Reflect new file names.
48464         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48465
48466 2007-09-08  Bruno Haible  <bruno@clisp.org>
48467
48468         * m4/inttypes-h.m4: Remove stub file.
48469
48470 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48471
48472         * doc/headers/stdint.texi: Discuss #include_next issue.
48473
48474 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48475
48476         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48477
48478 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48479
48480         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48481         in variable name.
48482
48483 2007-09-03  Jim Meyering  <jim@meyering.net>
48484
48485         New module: git-version-gen.
48486         * modules/git-version-gen: New file.
48487
48488         Import changes from coreutils for bootstrap script.
48489
48490         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48491
48492         bootstrap: uses rsync to download the .po files
48493         * build-aux/bootstrap (po_download_command_format): New global.
48494         (download_po_files): Use rsync.
48495         (update_po_files): Don't remove .po files after download,
48496         so future rsync runs can take advantage of the copies.
48497
48498         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48499
48500         Solve the unnecessary-.po-file-regeneration problem once and for all.
48501         * build-aux/bootstrap (download_po_files): New function, renamed from
48502         get_translations.  Now, downloads, but doesn't update LINGUAS.
48503         (update_po_files): New function.
48504
48505         bootstrap: Ignore more.
48506         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48507         uniwidth to e.g., lib/.gitignore.
48508         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48509
48510         * build-aux/bootstrap: New setting: vc_ignore.
48511         (insert_sorted_if_absent): Create $file if absent.
48512         Adapt to new, possibly empty, list: $vc_ignore.
48513
48514         bootstrap: generate more ignorable names
48515         * build-aux/bootstrap (slurp): When generating ignorable names,
48516         also map .sin to .sed, .gperf to .c, and .y to .c.
48517
48518 2007-09-03  Jim Meyering  <jim@meyering.net>
48519
48520         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48521         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48522
48523 2007-09-02  Bruno Haible  <bruno@clisp.org>
48524
48525         Fix mis-recognition of 'mcs' on QNX 6.
48526         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48527         output contains the string "Mono".
48528         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48529         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48530
48531 2007-09-01  Bruno Haible  <bruno@clisp.org>
48532
48533         Fix collision between uniwidth/* and linebreak modules.
48534         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48535         u32_width): Remove declarations.
48536         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48537         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48538         streq3, streq2, streq1, streq0): Remove functions.
48539         (STREQ): Remove macro.
48540         (is_cjk_encoding): Remove function.
48541         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48542         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48543         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48544         * NEWS: Document the change.
48545
48546 2007-09-01  Bruno Haible  <bruno@clisp.org>
48547
48548         * lib/streq.h: Add double-inclusion guard.
48549
48550 2007-09-01  Karl Berry  <karl@gnu.org>
48551
48552         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48553
48554 2007-08-28  Jim Meyering  <jim@meyering.net>
48555
48556         Rename mreadlink_with_size to areadlink_with_size.
48557         * NEWS: Document the change.
48558         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48559         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48560         * lib/mreadlink.h: Rename this to...
48561         * lib/areadlink.h: ...this.
48562         * modules/mreadlink-with-size: Rename this to...
48563         * modules/areadlink-with-size: ...this.
48564         * lib/canonicalize.c: Reflect the renaming.
48565         * modules/canonicalize: Likewise.
48566
48567 2007-08-26  Bruno Haible  <bruno@clisp.org>
48568
48569         * gnulib-tool (func_import): When deciding which files to remove,
48570         consider also dangling symbolic links.
48571         Reported by Eric Blake.
48572
48573 2007-08-26  Bruno Haible  <bruno@clisp.org>
48574
48575         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48576
48577 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48578
48579         * lib/readline.c: Don't include getline.h, the prototype is now
48580         found in stdio.h.
48581
48582 2007-08-23  Jim Meyering  <jim@meyering.net>
48583
48584         Getdelim touchup.
48585         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48586         around the funlockfile call, since funlockfile never sets errno.
48587         Don't set errno upon failed realloc.
48588
48589 2007-08-22  Eric Blake  <ebb9@byu.net>
48590
48591         Getline touchups.
48592         * lib/getdelim.c (getdelim): Revert regression that required *n to
48593         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48594         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48595         getdelim, rather than whether implementation is missing.
48596         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48597         * lib/stdio_.h (getline): Also declare if replacement is
48598         required.
48599         * doc/functions/getdelim.texi: New file.
48600         * doc/functions/getline.texi: Likewise.
48601         * doc/gnulib.texi (Function Substitutes): Add new files.
48602         Reported by Bruno Haible.
48603
48604 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48605
48606         * users.txt: Add Guile.
48607
48608 2007-08-22  Eric Blake  <ebb9@byu.net>
48609
48610         * tests/test-getdelim.c (main): Use remove, not unlink.
48611         * tests/test-getline.c (main): Likewise.
48612
48613         Move getline and getdelim into stdio.h, per POSIX 200x.
48614         * modules/getline (Files): Remove getline.h.
48615         (Depends-on): Add stdio.
48616         (configure.ac): Add module indicator.
48617         * modules/getdelim (Files): Remove getdelim.h.
48618         (Depends-on): Add stdio.
48619         (configure.ac): Add module indicator.
48620         * modules/stdio (Makefile.am): Work with new indicators.
48621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48622         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48623         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48624         * lib/getdelim.h: Delete.
48625         * lib/getline.h: Delete.
48626         * lib/stdio_.h (getdelim, getline): Declare.
48627         * modules/getdelim-tests: New module.
48628         * modules/getline-tests: Likewise.
48629         * tests/test-getdelim.c: New file.
48630         * tests/test-getline.c: Likewise.
48631         * NEWS: Document the change.
48632         * lib/getline.c: Update choice of header.
48633         * lib/csharpcomp.c: Likewise.
48634         * lib/getpass.c: Likewise.
48635         * lib/javacomp.c: Likewise.
48636         * lib/javaversion.c: Likewise.
48637         * lib/yesno.c: Likewise.
48638         * lib/getdelim.c: Likewise.
48639         (getdelim): Set errno on failure, and avoid memory leak.
48640
48641 2007-08-19  Bruno Haible  <bruno@clisp.org>
48642
48643         * modules/closein (Depends-on): Add freadahead.
48644         * lib/closein.c: Include freadahead.h.
48645         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48646         is zero.
48647
48648 2007-08-19  Bruno Haible  <bruno@clisp.org>
48649
48650         * modules/freadahead-tests: New file.
48651         * tests/test-freadahead.sh: New file.
48652         * tests/test-freadahead.c: New file.
48653
48654         * modules/freadahead: New file.
48655         * lib/freadahead.h: New file.
48656         * lib/freadahead.c: New file.
48657         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48658         fbufmode, fpurge, freadable, fwritable.
48659
48660 2007-08-19  Eric Blake  <ebb9@byu.net>
48661
48662         Test yesno in combination with closein.
48663         * lib/yesno.c (yesno): Document use of stdin.
48664         * modules/yesno-tests (Files): New module.
48665         * tests/test-yesno.c (main): New file.
48666         * tests/test-yesno.sh: Likewise.
48667
48668 2007-08-19  Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48671         * lib/fseeko.c (rpl_fseeko): Likewise.
48672         * lib/fseterr.c (fseterr): Likewise.
48673
48674 2007-08-19  Bruno Haible  <bruno@clisp.org>
48675
48676         * tests/test-lseek.c (main): Disable a test for BeOS.
48677         * doc/functions/lseek.texi: Document the BeOS bug.
48678
48679 2007-08-19  Bruno Haible  <bruno@clisp.org>
48680             Eric Blake  <ebb9@byu.net>
48681
48682         * lib/lseek.c: Include <sys/stat.h>.
48683         (rpl_lseek): Add workaround code also for Unix platforms.
48684         Needed for BeOS.
48685         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48686         * doc/functions/lseek.texi: Document BeOS definiency.
48687
48688 2007-08-18  Bruno Haible  <bruno@clisp.org>
48689
48690         * modules/fstrcmp-tests: New file.
48691         * tests/test-fstrcmp.c: New file.
48692
48693 2007-08-18  Bruno Haible  <bruno@clisp.org>
48694
48695         * modules/fstrcmp: New file, from GNU gettext with modifications.
48696         * lib/fstrcmp.h: New file, from GNU gettext.
48697         * lib/fstrcmp.c: New file, from GNU gettext.
48698         * MODULES.html.sh (String handling): Add fstrcmp.
48699
48700 2007-08-18  Bruno Haible  <bruno@clisp.org>
48701
48702         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48703         'bool'.
48704         (diag, compareseq): Remove const from the ctxt argument.
48705         (USE_HEURISTIC): Undefine at the end.
48706
48707 2007-08-18  Jim Meyering  <jim@meyering.net>
48708
48709         New file: lib/idcache.h
48710         * NEWS: Mention the addition.
48711         * modules/idcache (Files): Add lib/idcache.h
48712         * lib/idcache.c: Include "idcache.h".
48713         Don't include <sys/types.h>.
48714         Add a FIXME comment.
48715         Move file-scoped "static" declarations to the top.
48716         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48717
48718 2007-08-17  Bruno Haible  <bruno@clisp.org>
48719         and Paul Eggert  <eggert@cs.ucla.edu>
48720
48721         * MODULES.html.sh: Add diffseq.
48722         * modules/diffseq: New file.
48723         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48724         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48725
48726 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48727
48728         Import changes from coreutils for bootstrap script.
48729
48730         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * build-aux/bootstrap (slurp): Work even in environments where
48733         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48734         current code does not slurp files whose names start with ".", and
48735         this looks like it might be a troublesome area.
48736
48737         2007-07-11  Jim Meyering  <jim@meyering.net>
48738
48739         If there's a GPL vN copyright comment, require that N == 3.
48740
48741         2007-07-08  Jim Meyering  <jim@meyering.net>
48742
48743         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48744         * build-aux/bootstrap (mam_template): Move definition out of loop.
48745
48746         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48747
48748         * build-aux/bootstrap (symlink_to_dir): Rename function from
48749         symlink_to_gnulib.  Add a directory parameter.  Update all
48750         callers.
48751         (cp_mark_as_generated): Also check for -- and link to -- files in
48752         gl/.
48753
48754         2007-07-08  Jim Meyering  <jim@meyering.net>
48755
48756         Adapt to deeper hierarchy in gnulib.
48757         * build-aux/bootstrap (symlink_to_dir): If the destination
48758         directory doesn't exist, create it. This is required at least for
48759         "lib/uniwidth/cjk.h".
48760
48761         2007-05-15  Jim Meyering  <jim@meyering.net>
48762
48763         * build-aux/bootstrap: Now that generated Makefile.am files
48764         are no longer under version control, they must be created at
48765         bootstrap time.
48766
48767 2007-08-14  Ben Pfaff  <blp@gnu.org>
48768
48769         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48770
48771 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48772
48773         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48774         given the changes below.
48775         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48776         even on hosts that have padding bits beyond the supported 64.
48777
48778 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48779
48780         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48781         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48782         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48783         depends on it.
48784         (xstrtol_error): Remove.
48785         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48786         but with a different signature.
48787         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48788         * lib/xstrtol-error.c: Include exitfail.h.
48789         (xstrtol_fatal): New function, with a different signature from the
48790         old xstrtol_error, so that the caller need not worry about passing
48791         in an exit status, or about storage management of the option argument.
48792         (xstrtol_error): Now a static function.  Redo signature to
48793         implement xstrtol_fatal.  Output the correct number of hyphens in
48794         front of the option so that the caller need not worry about
48795         storage management.
48796         (N_): New macro.
48797         (_): Remove; not used now.
48798         * modules/xstrtol: Depend on getopt.
48799         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48800         of old STRTOL_FATAL_ERROR macro.
48801         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48802         of test program.
48803         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48804         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48805
48806 2007-08-08  Eric Blake  <ebb9@byu.net>
48807
48808         * lib/xstrtol-error.c: Add missing include.
48809
48810         Move xstrtol messages into gnulib domain, when --pobase is used.
48811         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48812         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48813         * modules/xstrtol (Files): Distribute new file.
48814         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48815         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48816         * tests/test-xstrtol.c: ...into new file.
48817         * tests/test-xstrtoul.c: Also test xstrtoul.
48818         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48819         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48820         * tests/test-xstrtol.sh: Drive the tests.
48821         * tests/test-xstrtoimax.sh: Likewise.
48822         * tests/test-xstrtoumax.sh: Likewise.
48823         * modules/xstrtol-tests: New module.
48824         * modules/xstrtoimax-tests: Likewise.
48825         * modules/xstrtoumax-tests: Likewise.
48826
48827 2007-08-08  Jim Meyering  <jim@meyering.net>
48828
48829         New function: mfile_name_concat.
48830         * lib/filenamecat.c (mfile_name_concat): New function, just like
48831         file_name_concat, but return NULL upon failure rather than exiting
48832         with a diagnostic.
48833         * lib/filenamecat.h: Declare it.
48834
48835 2007-08-07  Bruno Haible  <bruno@clisp.org>
48836
48837         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48838         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48839         warning from gcc.
48840         Reported by Eric Blake.
48841
48842 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48843
48844         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48845         * modules/crypto/arcfour (License): Likewise.
48846         * modules/crypto/des-tests (License): Likewise.
48847         * modules/crypto/gc-arctwo-tests (License): Likewise.
48848         * modules/crypto/gc-des-tests (License): Likewise.
48849         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48850         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48851         * modules/crypto/gc-md2-tests (License): Likewise.
48852         * modules/crypto/gc-md4-tests (License): Likewise.
48853         * modules/crypto/gc-md5-tests (License): Likewise.
48854         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48855         * modules/crypto/gc-rijndael-tests (License): Likewise.
48856         * modules/crypto/gc-sha1-tests (License): Likewise.
48857         * modules/crypto/gc-tests (License): Likewise.
48858         * modules/crypto/hmac-md5 (License): Likewise.
48859         * modules/crypto/hmac-sha1 (License): Likewise.
48860         * modules/crypto/md2-tests (License): Likewise.
48861         * modules/crypto/md4-tests (License): Likewise.
48862         * modules/crypto/md5 (License): Likewise.
48863         * modules/crypto/rijndael (License): Likewise.
48864         * modules/crypto/sha1 (License): Likewise.
48865         * modules/memxor (License): Likewise.
48866
48867 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48868         and Bruno Haible  <bruno@clisp.org>
48869
48870         * NEWS: Describe interface changes to human, xstrtol.
48871         * lib/human.h: Include <xstrtol.h>.
48872         (human_options): Return enum strtol_error, not int.  Remove
48873         bool arg; take int * instead.
48874         * lib/human.c: Don't include "gettext.h".
48875         (_): Remove; no longer used.
48876         Don't include <xstrtol.h>, since human.h does it.
48877         (human_options): Adjust to abovementioned interface changes.
48878         Do not report error to stderr; that's now the caller's
48879         responsibility.
48880         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48881         interface change.
48882         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48883         Str, Argument_type_string.  All uses changed.  Put " argument"
48884         in diagnostics to make them clearer.  Change wording of suffix
48885         message for clarity.
48886         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48887         Argument_type_string.
48888         (STRTOL_FATAL_WARN): Remove; no longer used.
48889         * modules/human (Depends-on): Remove gettext-h.
48890
48891 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48892
48893         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48894
48895 2007-07-31  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48898         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48899         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48900
48901 2007-07-31  Bruno Haible  <bruno@clisp.org>
48902
48903         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48904         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48905
48906 2007-07-30  Bruno Haible  <bruno@clisp.org>
48907
48908         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48909         * modules/c-ctype (License): Likewise.
48910         * modules/c-strcase (License): Likewise.
48911         * modules/check-version (License): Likewise.
48912         * modules/iconv (License): Likewise.
48913         * modules/iconv_open (License): Likewise.
48914         * modules/read-file (License): Likewise.
48915         * modules/striconv (License): Likewise.
48916         * modules/strverscmp (License): Likewise.
48917         * modules/vasprintf (License): Likewise.
48918         * modules/crypto/des (License): Likewise.
48919         * modules/crypto/gc (License): Likewise.
48920         * modules/crypto/gc-arcfour (License): Likewise.
48921         * modules/crypto/gc-arctwo (License): Likewise.
48922         * modules/crypto/gc-des (License): Likewise.
48923         * modules/crypto/gc-hmac-md5 (License): Likewise.
48924         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48925         * modules/crypto/gc-md2 (License): Likewise.
48926         * modules/crypto/gc-md4 (License): Likewise.
48927         * modules/crypto/gc-md5 (License): Likewise.
48928         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48929         * modules/crypto/gc-random (License): Likewise.
48930         * modules/crypto/gc-rijndael (License): Likewise.
48931         * modules/crypto/gc-sha1 (License): Likewise.
48932         * modules/crypto/md2 (License): Likewise.
48933         * modules/crypto/md4 (License): Likewise.
48934
48935 2007-07-30  Jim Meyering  <jim@meyering.net>
48936
48937         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48938         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48939         it has valid stat data.  This bug would cause du not to count the
48940         sizes of inaccessible directories.
48941         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48942         in <http://bugzilla.redhat.com/250077>.
48943
48944 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48945             Bruno Haible  <bruno@clisp.org>
48946
48947         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48948         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48949         #include_next, gives a diagnostic about it, but reports no error in
48950         the exit code.
48951         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48952
48953 2007-07-24  Ben Pfaff  <blp@gnu.org>
48954
48955         Improve name: "count-one-bits" is better than "popcount".
48956         * MODULES.html.sh: Update name.
48957         * lib/popcount.h: Renamed lib/count-one-bits.h.
48958         (popcount): Renamed count_one_bits.
48959         (popcountl): Renamed count_one_bits_l.
48960         (popcountll): Renamed count_one_bits_ll.
48961         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48962         * modules/popcount: Renamed module/count-one-bits.
48963         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48964         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48965
48966 2007-07-23  Ben Pfaff  <blp@gnu.org>
48967
48968         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48969         better code generation, and add U to large constants to avoid
48970         warnings, in non-GCC case.
48971         Suggested by Bruno Haible.
48972
48973 2007-07-23  Ben Pfaff  <blp@gnu.org>
48974
48975         * lib/popcount.h: Use verify_true instead of if...abort.
48976         * modules/popcount: Depend on verify module.
48977         Suggested by Jim Meyering.
48978
48979 2007-07-23  Bruno Haible  <bruno@clisp.org>
48980
48981         * gnulib-tool (func_import): Create a .cvsignore file also when the
48982         directory is not yet in CVS but the toplevel directory is. When
48983         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48984         Reported by Karl Berry.
48985
48986 2007-07-22  Ben Pfaff  <blp@gnu.org>
48987
48988         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48989         case.
48990         Suggested by Eric Blake.
48991
48992 2007-07-22  Ben Pfaff  <blp@gnu.org>
48993
48994         New module: popcount.
48995         * MODULES.html.sh: Add popcount.
48996         * modules/popcount: New file.
48997         * modules/popcount-tests: New file.
48998         * tests/test-popcount.c: New file.
48999         * lib/popcount.h: New file.
49000         * m4/popcount.m4: New file.
49001
49002 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49003
49004         * build-aux/announce-gen: Update to GPLv3.
49005
49006         * build-aux/config.guess: Update from config.
49007
49008 2007-07-21  Bruno Haible  <bruno@clisp.org>
49009
49010         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49011         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49012
49013 2007-07-20  Jim Meyering  <jim@meyering.net>
49014
49015         * check-module: Diagnose a self-dependency.
49016
49017 2007-07-19  Bruno Haible  <bruno@clisp.org>
49018
49019         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49020         empty.
49021         Reported by Eric Blake.
49022
49023 2007-07-18  Bruno Haible  <bruno@clisp.org>
49024
49025         * gnulib-tool: New options --po-base, --po-domain.
49026         (func_usage): Document them.
49027         (pobase, po_domain): New variables.
49028         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49029         DEFAULT_TEXT_DOMAIN.
49030         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49031         (func_import): Consider pobase and po_domain. Create a po/ directory.
49032         (func_create_testdir): Set pobase and po_domain to empty.
49033         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49034         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49035
49036 2007-07-18  Bruno Haible  <bruno@clisp.org>
49037
49038         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49039         EXTRA_DIST augmentation for files in build-aux/.
49040
49041 2007-07-16  Bruno Haible  <bruno@clisp.org>
49042
49043         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49044         * modules/getdelim (License): Likewise.
49045
49046 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49047
49048         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49049         * modules/d-type (License): Likewise.
49050         * modules/extensions (License): Likewise.
49051         * modules/fnmatch (License): Likewise.
49052         * modules/fseeko (License): Likewise.
49053         * modules/getaddrinfo (License): Likewise.
49054         * modules/getline (License): Likewise.
49055         * modules/getlogin_r (License): Likewise.
49056         * modules/getpass (License): Likewise.
49057         * modules/gettimeofday (License): Likewise.
49058         * modules/glob (License): Likewise.
49059         * modules/inet_ntop (License): Likewise.
49060         * modules/malloc (License): Likewise.
49061         * modules/malloca (License): Likewise.
49062         * modules/memmem (License): Likewise.
49063         * modules/mempcpy (License): Likewise.
49064         * modules/memset (License): Likewise.
49065         * modules/minmax (License): Likewise.
49066         * modules/mktime (License): Likewise.
49067         * modules/netinet_in (License): Likewise.
49068         * modules/pathmax (License): Likewise.
49069         * modules/poll (License): Likewise.
49070         * modules/regex (License): Likewise.
49071         * modules/snprintf (License): Likewise.
49072         * modules/stdbool (License): Likewise.
49073         * modules/stdint (License): Likewise.
49074         * modules/stdio (License): Likewise.
49075         * modules/strcase (License): Likewise.
49076         * modules/strcasestr (License): Likewise.
49077         * modules/strdup (License): Likewise.
49078         * modules/string (License): Likewise.
49079         * modules/strndup (License): Likewise.
49080         * modules/strnlen (License): Likewise.
49081         * modules/strpbrk (License): Likewise.
49082         * modules/strptime (License): Likewise.
49083         * modules/strsep (License): Likewise.
49084         * modules/sys_select (License): Likewise.
49085         * modules/sys_socket (License): Likewise.
49086         * modules/sys_stat (License): Likewise.
49087         * modules/sys_time (License): Likewise.
49088         * modules/time (License): Likewise.
49089         * modules/time_r (License): Likewise.
49090         * modules/timegm (License): Likewise.
49091         * modules/unistd (License): Likewise.
49092         * modules/vsnprintf (License): Likewise.
49093         * modules/wctype (License): Likewise.
49094
49095 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49096
49097         * modules/argz (License): LGPLv2+.
49098
49099 2007-07-15  Karl Berry  <karl@gnu.org>
49100
49101         * doc/gnulib.texi: revise node structure per new fdl.texi.
49102
49103 2007-07-14  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49106         the output file.
49107         * lib/uniname/uninames.h: Regenerated.
49108
49109 2007-07-14  Karl Berry  <karl@gnu.org>
49110
49111         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49112         omitting sectioning and index commands.
49113
49114 2007-07-13  Bruno Haible  <bruno@clisp.org>
49115
49116         New gnulib-tool option --more-symlinks.
49117         * gnulib-tool (func_usage): Document --more-symlinks.
49118         (do_copyrights): New variable.
49119         Recognize option --more-symlinks.
49120         (func_import): Don't add a copyright notice transform to
49121         sed_transform_lib_file if do_copyrights is empty.
49122
49123 2007-07-13  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/vasnprintf.c (decimal_point_char): Define also if
49126         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49127         && !NEED_PRINTF_DIRECTIVE_A.
49128         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49129         Gary V. Vaughan <gary@gnu.org>.
49130
49131 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49132
49133         * lib/inttypes_.h: Undo previous change, since it was fixed
49134         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49135
49136 2007-07-13  Bruno Haible  <bruno@clisp.org>
49137
49138         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49139         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49140
49141 2007-07-13  Jim Meyering  <jim@meyering.net>
49142
49143         df: Don't fail for Tru64's "file-on-file mount".
49144         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49145         so we fall through and use statfs instead.  Details here:
49146         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49147         Reported by Albert Chin.
49148
49149 2007-07-13  Bruno Haible  <bruno@clisp.org>
49150
49151         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49152         * modules/configmake (License): Likewise.
49153         * modules/gettext (License): Likewise.
49154         * modules/gettext-h (License): Likewise.
49155         * modules/include_next (License): Likewise.
49156         * modules/link-warning (License): Likewise.
49157         * modules/localcharset (License): Likewise.
49158         * modules/localename (License): Likewise.
49159         * modules/lock (License): Likewise.
49160         * modules/relocatable-lib-lgpl (License): Likewise.
49161         * modules/size_max (License): Likewise.
49162         * modules/vasnprintf (License): Likewise.
49163         * modules/wchar (License): Likewise.
49164         * modules/xsize (License): Likewise.
49165
49166 2007-07-13  Bruno Haible  <bruno@clisp.org>
49167
49168         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49169         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49170
49171 2007-07-12  Bruno Haible  <bruno@clisp.org>
49172
49173         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49174         in the modules files.
49175
49176 2007-07-11  Karl Berry  <karl@gnu.org>
49177
49178         * MODULES.html.sh (func_module): use
49179          sed -e '\|^'"${includefile}"'$|d'
49180          instead of /.../d, to avoid errors on $includefile's containing /.
49181
49182 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49183
49184         * gnulib-tool (func_import): Avoid duplication of --avoid
49185         statements
49186         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49187         names to `_' in variable names.
49188
49189 2007-07-10  Eric Blake  <ebb9@byu.net>
49190
49191         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49192         * NEWS: Document this change.
49193
49194 2007-07-08  Bruno Haible  <bruno@clisp.org>
49195
49196         Update to Unicode 5.0.
49197         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49198         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49199         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49200         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49201         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49202         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49203         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49204         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49205         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49206         U+10A3F, U+1D242..U+1D244.
49207         (nonspacing_table_ind): Update.
49208         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49209         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49210
49211 2007-07-08  Bruno Haible  <bruno@clisp.org>
49212
49213         Update to Unicode 5.0.
49214         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49215         code transform. Extend the name index field of unicode_name_to_code and
49216         unicode_code_to_name from 16 to 24 bits.
49217         * lib/uniname/uniname.c (unicode_character_name,
49218         unicode_name_character): Add the range 0x12xxx to the code transform.
49219         * lib/uniname/uninames.h: Regenerated.
49220         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49221
49222 2007-07-07  Bruno Haible  <bruno@clisp.org>
49223
49224         * modules/wcwidth-tests: New file.
49225         * tests/test-wcwidth.c: New file.
49226
49227         Work around MacOS X wcwidth() bug.
49228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49229         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49230         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49231         original wcwidth in non-UTF-8 locales.
49232         * modules/wcwidth (Depends-on): Add localcharset, streq,
49233         uniwidth/width.
49234         * doc/functions/wcwidth.texi: Update.
49235
49236 2007-07-07  Bruno Haible  <bruno@clisp.org>
49237
49238         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49239         (wcwidth): New declaration.
49240         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49241         macros.
49242         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49243         here. Prepare for creating <wchar.h> unconditionally.
49244         * modules/wchar (Depends-on): Add link-warning.
49245         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49246         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49247         * lib/wcwidth.h: Remove file.
49248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49249         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49250         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49251         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49252         (Include): Replace wcwidth.h with <wchar.h>.
49253         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49254         * lib/mbchar.h: Don't include wcwidth.h.
49255         * lib/mbswidth.c: Likewise.
49256         * NEWS: Mention the change.
49257
49258 2007-07-07  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49261         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49262         definition with an external declaration.
49263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49264         defined as a function. Remove AC_C_INLINE requirement.
49265         * modules/wcwidth (Files): Add lib/wcwidth.c.
49266         (Makefile.am): Remove redundant statement.
49267
49268 2007-07-07  Bruno Haible  <bruno@clisp.org>
49269
49270         * MODULES.html.sh (Unicode string functions): Add the new modules.
49271
49272         * tests/uniwidth/test-u32-strwidth.c: New file.
49273         * modules/uniwidth/u32-strwidth-tests: New file.
49274
49275         * lib/uniwidth/u32-strwidth.c: New file.
49276         * modules/uniwidth/u32-strwidth: New file.
49277
49278         * tests/uniwidth/test-u16-strwidth.c: New file.
49279         * modules/uniwidth/u16-strwidth-tests: New file.
49280
49281         * lib/uniwidth/u16-strwidth.c: New file.
49282         * modules/uniwidth/u16-strwidth: New file.
49283
49284         * tests/uniwidth/test-u8-strwidth.c: New file.
49285         * modules/uniwidth/u8-strwidth-tests: New file.
49286
49287         * lib/uniwidth/u8-strwidth.c: New file.
49288         * modules/uniwidth/u8-strwidth: New file.
49289
49290         * tests/uniwidth/test-u32-width.c: New file.
49291         * modules/uniwidth/u32-width-tests: New file.
49292
49293         * lib/uniwidth/u32-width.c: New file.
49294         * modules/uniwidth/u32-width: New file.
49295
49296         * tests/uniwidth/test-u16-width.c: New file.
49297         * modules/uniwidth/u16-width-tests: New file.
49298
49299         * lib/uniwidth/u16-width.c: New file.
49300         * modules/uniwidth/u16-width: New file.
49301
49302         * tests/uniwidth/test-u8-width.c: New file.
49303         * modules/uniwidth/u8-width-tests: New file.
49304
49305         * lib/uniwidth/u8-width.c: New file.
49306         * modules/uniwidth/u8-width: New file.
49307
49308         * tests/uniwidth/test-uc_width.c: New file.
49309         * modules/uniwidth/width-tests: New file.
49310
49311         * lib/uniwidth/width.c: New file, from GNU libiconv.
49312         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49313         * modules/uniwidth/width: New file.
49314
49315         * lib/uniwidth.h: New file, from GNU libiconv.
49316         * modules/uniwidth/base: New file.
49317
49318 2007-07-07  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/uniname.h: New file, from GNU gettext.
49321         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49322         * lib/uniname/uninames.h: New file, from GNU gettext.
49323         * lib/uniname/uniname.c: New file, from GNU gettext.
49324         * tests/uniname/test-uninames.sh: New file.
49325         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49326         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49327         * modules/uniname/base: New file.
49328         * modules/uniname/uniname: New file.
49329         * modules/uniname/uniname-tests: New file.
49330         * MODULES.html.sh (Unicode string functions): Add the new modules.
49331
49332 2007-07-06  Bruno Haible  <bruno@clisp.org>
49333
49334         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49335
49336 2007-07-06  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49339         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49340         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49341         include <sys/time.h>.
49342         Reported by Eric Blake.
49343
49344 2007-07-06  Eric Blake  <ebb9@byu.net>
49345
49346         Fix testing canonicalize on cygwin.
49347         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49348         Revert patch from 2007-06-19.
49349         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49350         canonicalize module is also in use.
49351         * tests/test-canonicalize.c: New file.
49352         * tests/test-canonicalize.sh: Likewise.
49353         * modules/canonicalize-tests: Likewise.
49354
49355 2007-07-06  Jim Meyering  <jim@meyering.net>
49356
49357         * lib/getugroups.c (getugroups): Detect getgrent failure.
49358         Adjust comment to reflect reality: this function may return -1.
49359
49360 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49361
49362         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49363         the new TP address.
49364         (usage): Fix typo
49365         (gnulib_mk): New variable.
49366
49367 2007-07-05  Jim Meyering  <jim@meyering.net>
49368
49369         Don't let endgrent clobber errno, no matter how improbable.
49370         * lib/getugroups.c (getugroups): Save and restore errno around
49371         endgrent call.
49372
49373         Close the group DB even when failing with 2^31 or more members.
49374         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49375
49376 2007-07-04  Jim Meyering  <jim@meyering.net>
49377
49378         * lib/getugroups.h: New file.
49379         * lib/getugroups.c: Include "getugroups.h".
49380         Remove uses of "register" keyword.
49381         Move local variable, "cp", down into scope where used.
49382         Give "username" parameter the "const" attribute.
49383         * modules/getugroups (Files): Add lib/getugroups.h
49384
49385 2007-07-04  Karl Berry  <karl@gnu.org>
49386
49387         * MODULES.html.sh (func_all_modules): Complete rename of
49388         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49389
49390 2007-07-02  Bruno Haible  <bruno@clisp.org>
49391
49392         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49393         mode, when inttypes.h comes from gnulib.
49394         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49395
49396 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49397
49398         * NEWS: Mention lgpl module name change.
49399
49400         * modules/lgpl-2.1: Renamed from lgpl.
49401
49402         * NEWS: Mention gpl module name change.
49403
49404         * modules/gpl-3.0: New file, based on gpl-2.0.
49405
49406         * modules/gpl-2.0: Renamed from gpl.
49407
49408         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49409         doc/gpl-2.0.texi.
49410
49411 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49412
49413         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49414         #define __STDC_LIMIT_MACROS temporarily while including
49415         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49416         Problem reported by Joel E. Denny in
49417         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49418
49419 2007-07-01  Bruno Haible  <bruno@clisp.org>
49420
49421         * lib/unistdio.h: New file.
49422         * lib/unistdio/u-asnprintf.h: New file.
49423         * lib/unistdio/u-asprintf.h: New file.
49424         * lib/unistdio/u-printf-args.c: New file.
49425         * lib/unistdio/u-printf-args.h: New file.
49426         * lib/unistdio/u-printf-parse.h: New file.
49427         * lib/unistdio/u-snprintf.h: New file.
49428         * lib/unistdio/u-sprintf.h: New file.
49429         * lib/unistdio/u-vasprintf.h: New file.
49430         * lib/unistdio/u-vsnprintf.h: New file.
49431         * lib/unistdio/u-vsprintf.h: New file.
49432         * lib/unistdio/ulc-asnprintf.c: New file.
49433         * lib/unistdio/ulc-asprintf.c: New file.
49434         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49435         * lib/unistdio/ulc-printf-parse.c: New file.
49436         * lib/unistdio/ulc-snprintf.c: New file.
49437         * lib/unistdio/ulc-sprintf.c: New file.
49438         * lib/unistdio/ulc-vasnprintf.c: New file.
49439         * lib/unistdio/ulc-vasprintf.c: New file.
49440         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49441         * lib/unistdio/ulc-vsnprintf.c: New file.
49442         * lib/unistdio/ulc-vsprintf.c: New file.
49443         * lib/unistdio/u8-asnprintf.c: New file.
49444         * lib/unistdio/u8-asprintf.c: New file.
49445         * lib/unistdio/u8-printf-parse.c: New file.
49446         * lib/unistdio/u8-snprintf.c: New file.
49447         * lib/unistdio/u8-sprintf.c: New file.
49448         * lib/unistdio/u8-vasnprintf.c: New file.
49449         * lib/unistdio/u8-vasprintf.c: New file.
49450         * lib/unistdio/u8-vsnprintf.c: New file.
49451         * lib/unistdio/u8-vsprintf.c: New file.
49452         * lib/unistdio/u8-u8-asnprintf.c: New file.
49453         * lib/unistdio/u8-u8-asprintf.c: New file.
49454         * lib/unistdio/u8-u8-snprintf.c: New file.
49455         * lib/unistdio/u8-u8-sprintf.c: New file.
49456         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49457         * lib/unistdio/u8-u8-vasprintf.c: New file.
49458         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49459         * lib/unistdio/u8-u8-vsprintf.c: New file.
49460         * lib/unistdio/u16-asnprintf.c: New file.
49461         * lib/unistdio/u16-asprintf.c: New file.
49462         * lib/unistdio/u16-printf-parse.c: New file.
49463         * lib/unistdio/u16-snprintf.c: New file.
49464         * lib/unistdio/u16-sprintf.c: New file.
49465         * lib/unistdio/u16-vasnprintf.c: New file.
49466         * lib/unistdio/u16-vasprintf.c: New file.
49467         * lib/unistdio/u16-vsnprintf.c: New file.
49468         * lib/unistdio/u16-vsprintf.c: New file.
49469         * lib/unistdio/u16-u16-asnprintf.c: New file.
49470         * lib/unistdio/u16-u16-asprintf.c: New file.
49471         * lib/unistdio/u16-u16-snprintf.c: New file.
49472         * lib/unistdio/u16-u16-sprintf.c: New file.
49473         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49474         * lib/unistdio/u16-u16-vasprintf.c: New file.
49475         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49476         * lib/unistdio/u16-u16-vsprintf.c: New file.
49477         * lib/unistdio/u32-asnprintf.c: New file.
49478         * lib/unistdio/u32-asprintf.c: New file.
49479         * lib/unistdio/u32-printf-parse.c: New file.
49480         * lib/unistdio/u32-snprintf.c: New file.
49481         * lib/unistdio/u32-sprintf.c: New file.
49482         * lib/unistdio/u32-vasnprintf.c: New file.
49483         * lib/unistdio/u32-vasprintf.c: New file.
49484         * lib/unistdio/u32-vsnprintf.c: New file.
49485         * lib/unistdio/u32-vsprintf.c: New file.
49486         * lib/unistdio/u32-u32-asnprintf.c: New file.
49487         * lib/unistdio/u32-u32-asprintf.c: New file.
49488         * lib/unistdio/u32-u32-snprintf.c: New file.
49489         * lib/unistdio/u32-u32-sprintf.c: New file.
49490         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49491         * lib/unistdio/u32-u32-vasprintf.c: New file.
49492         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49493         * lib/unistdio/u32-u32-vsprintf.c: New file.
49494         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49495         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49496         * tests/unistdio/test-ulc-printf1.h: New file.
49497         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49498         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49499         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49500         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49501         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49502         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49503         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49504         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49505         * tests/unistdio/test-u8-asnprintf1.c: New file.
49506         * tests/unistdio/test-u8-asnprintf1.h: New file.
49507         * tests/unistdio/test-u8-printf1.h: New file.
49508         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49509         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49510         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49511         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49512         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49513         * tests/unistdio/test-u8-vasprintf1.c: New file.
49514         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49515         * tests/unistdio/test-u8-vsprintf1.c: New file.
49516         * tests/unistdio/test-u16-asnprintf1.c: New file.
49517         * tests/unistdio/test-u16-asnprintf1.h: New file.
49518         * tests/unistdio/test-u16-printf1.h: New file.
49519         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49520         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49521         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49522         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49523         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49524         * tests/unistdio/test-u16-vasprintf1.c: New file.
49525         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49526         * tests/unistdio/test-u16-vsprintf1.c: New file.
49527         * tests/unistdio/test-u32-asnprintf1.c: New file.
49528         * tests/unistdio/test-u32-asnprintf1.h: New file.
49529         * tests/unistdio/test-u32-printf1.h: New file.
49530         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49531         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49532         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49533         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49534         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49535         * tests/unistdio/test-u32-vasprintf1.c: New file.
49536         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49537         * tests/unistdio/test-u32-vsprintf1.c: New file.
49538         * modules/unistdio/base: New file.
49539         * modules/unistdio/u-printf-args: New file.
49540         * modules/unistdio/ulc-asnprintf: New file.
49541         * modules/unistdio/ulc-asprintf: New file.
49542         * modules/unistdio/ulc-fprintf: New file.
49543         * modules/unistdio/ulc-printf-parse: New file.
49544         * modules/unistdio/ulc-snprintf: New file.
49545         * modules/unistdio/ulc-sprintf: New file.
49546         * modules/unistdio/ulc-vasnprintf: New file.
49547         * modules/unistdio/ulc-vasprintf: New file.
49548         * modules/unistdio/ulc-vfprintf: New file.
49549         * modules/unistdio/ulc-vsnprintf: New file.
49550         * modules/unistdio/ulc-vsprintf: New file.
49551         * modules/unistdio/u8-asnprintf: New file.
49552         * modules/unistdio/u8-asprintf: New file.
49553         * modules/unistdio/u8-printf-parse: New file.
49554         * modules/unistdio/u8-snprintf: New file.
49555         * modules/unistdio/u8-sprintf: New file.
49556         * modules/unistdio/u8-vasnprintf: New file.
49557         * modules/unistdio/u8-vasprintf: New file.
49558         * modules/unistdio/u8-vsnprintf: New file.
49559         * modules/unistdio/u8-vsprintf: New file.
49560         * modules/unistdio/u8-u8-asnprintf: New file.
49561         * modules/unistdio/u8-u8-asprintf: New file.
49562         * modules/unistdio/u8-u8-snprintf: New file.
49563         * modules/unistdio/u8-u8-sprintf: New file.
49564         * modules/unistdio/u8-u8-vasnprintf: New file.
49565         * modules/unistdio/u8-u8-vasprintf: New file.
49566         * modules/unistdio/u8-u8-vsnprintf: New file.
49567         * modules/unistdio/u8-u8-vsprintf: New file.
49568         * modules/unistdio/u16-asnprintf: New file.
49569         * modules/unistdio/u16-asprintf: New file.
49570         * modules/unistdio/u16-printf-parse: New file.
49571         * modules/unistdio/u16-snprintf: New file.
49572         * modules/unistdio/u16-sprintf: New file.
49573         * modules/unistdio/u16-vasnprintf: New file.
49574         * modules/unistdio/u16-vasprintf: New file.
49575         * modules/unistdio/u16-vsnprintf: New file.
49576         * modules/unistdio/u16-vsprintf: New file.
49577         * modules/unistdio/u16-u16-asnprintf: New file.
49578         * modules/unistdio/u16-u16-asprintf: New file.
49579         * modules/unistdio/u16-u16-snprintf: New file.
49580         * modules/unistdio/u16-u16-sprintf: New file.
49581         * modules/unistdio/u16-u16-vasnprintf: New file.
49582         * modules/unistdio/u16-u16-vasprintf: New file.
49583         * modules/unistdio/u16-u16-vsnprintf: New file.
49584         * modules/unistdio/u16-u16-vsprintf: New file.
49585         * modules/unistdio/u32-asnprintf: New file.
49586         * modules/unistdio/u32-asprintf: New file.
49587         * modules/unistdio/u32-printf-parse: New file.
49588         * modules/unistdio/u32-snprintf: New file.
49589         * modules/unistdio/u32-sprintf: New file.
49590         * modules/unistdio/u32-vasnprintf: New file.
49591         * modules/unistdio/u32-vasprintf: New file.
49592         * modules/unistdio/u32-vsnprintf: New file.
49593         * modules/unistdio/u32-vsprintf: New file.
49594         * modules/unistdio/u32-u32-asnprintf: New file.
49595         * modules/unistdio/u32-u32-asprintf: New file.
49596         * modules/unistdio/u32-u32-snprintf: New file.
49597         * modules/unistdio/u32-u32-sprintf: New file.
49598         * modules/unistdio/u32-u32-vasnprintf: New file.
49599         * modules/unistdio/u32-u32-vasprintf: New file.
49600         * modules/unistdio/u32-u32-vsnprintf: New file.
49601         * modules/unistdio/u32-u32-vsprintf: New file.
49602         * modules/unistdio/ulc-asnprintf-tests: New file.
49603         * modules/unistdio/ulc-vasnprintf-tests: New file.
49604         * modules/unistdio/ulc-vasprintf-tests: New file.
49605         * modules/unistdio/ulc-vsnprintf-tests: New file.
49606         * modules/unistdio/ulc-vsprintf-tests: New file.
49607         * modules/unistdio/u8-asnprintf-tests: New file.
49608         * modules/unistdio/u8-vasnprintf-tests: New file.
49609         * modules/unistdio/u8-vasprintf-tests: New file.
49610         * modules/unistdio/u8-vsnprintf-tests: New file.
49611         * modules/unistdio/u8-vsprintf-tests: New file.
49612         * modules/unistdio/u16-asnprintf-tests: New file.
49613         * modules/unistdio/u16-vasnprintf-tests: New file.
49614         * modules/unistdio/u16-vasprintf-tests: New file.
49615         * modules/unistdio/u16-vsnprintf-tests: New file.
49616         * modules/unistdio/u16-vsprintf-tests: New file.
49617         * modules/unistdio/u32-asnprintf-tests: New file.
49618         * modules/unistdio/u32-vasnprintf-tests: New file.
49619         * modules/unistdio/u32-vasprintf-tests: New file.
49620         * modules/unistdio/u32-vsnprintf-tests: New file.
49621         * modules/unistdio/u32-vsprintf-tests: New file.
49622         * MODULES.html.sh (Unicode string functions): Add the new modules.
49623
49624 2007-07-01  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/sprintf.c (sprintf): Limit the available length estimation,
49627         to avoid address wraparound.
49628         * lib/vsprintf.c (vsprintf): Likewise.
49629         * modules/sprintf-posix (Dependencies): Add stdint.
49630         * modules/vsprintf-posix (Dependencies): Likewise.
49631
49632 2007-07-01  Bruno Haible  <bruno@clisp.org>
49633
49634         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49635         Windows PATH as well. Conservative double-quoting. Comments.
49636
49637 2007-07-01  Bruno Haible  <bruno@clisp.org>
49638             Eric Blake  <ebb9@byu.net>
49639             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49640
49641         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49642         empty components in $PATH, denoting '.'.
49643
49644 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49645
49646         * gnulib-tool: Fix indentation.
49647         (func_create_megatestdir): Likewise.
49648         Report by Bruno Haible.
49649
49650 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49651
49652         Sync from Automake.
49653         * build-aux/gnupload: Fix shell portability issues with for loops.
49654         Report by Karl Berry.
49655
49656 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49657
49658         * build-aux/maint.mk (POURL): Use translationproject.org.
49659
49660 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49661             Bruno Haible  <bruno@clisp.org>
49662
49663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49664         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49665         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49666         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49667         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49668
49669 2007-06-27  Bruno Haible  <bruno@clisp.org>
49670
49671         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49672         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49673
49674 2007-06-26  Karl Berry  <karl@gnu.org>
49675
49676         * MODULES.html.sh: remove xreadlink-with-size.
49677
49678 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49679
49680         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49681         method that I hope also handles the double-include problem noted
49682         by Bruno Haible in
49683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49684
49685 2007-06-23  Bruno Haible  <bruno@clisp.org>
49686
49687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49688         Don't let the 'mostlyclean' target fail if the last subdirectory could
49689         not be removed.
49690         Reported by Karl Berry.
49691
49692 2007-06-23  Bruno Haible  <bruno@clisp.org>
49693
49694         * gnulib-tool (echo): Add a speedier workaround for ksh.
49695         * tests/test-echo.sh: Likewise.
49696
49697 2007-06-23  Bruno Haible  <bruno@clisp.org>
49698
49699         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49700         * tests/test-echo.sh: Likewise.
49701
49702 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49703
49704         * gnulib-tool (IFS): Initialize early, so we don't set it to
49705         empty later.
49706         (self_abspathname): Rewrite algorithm to set it, reindent.
49707         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49708         (func_create_megatestdir): Merge some sed scripts.
49709
49710 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49711
49712         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49713         exposed by Sun Studio 11 cc on Solaris 8.
49714
49715 2007-06-22  Bruno Haible  <bruno@clisp.org>
49716
49717         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49718         backslashes.
49719         * tests/test-echo.sh: New file.
49720
49721 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49722
49723         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49724         simplify `sed_replace_build_aux' scripts, they are portable but
49725         echoing them with `echo' is not.
49726         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49727
49728 2007-06-21  Karl Berry  <karl@gnu.org>
49729
49730         * config/srclist.txt: guess we can't handle the licenses via
49731         srclist at the moment.
49732
49733 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49734
49735         * MODULES.html.sh: Add include_next.
49736         * modules/include_next: New file.
49737
49738 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49739
49740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49741         INCLUDE_NEXT.
49742         (gl_CHECK_NEXT_HEADERS): New macro.
49743         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49744         the obsolescent gl_ABSOLUTE_HEADER.
49745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49746         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49747         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49748         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49749         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49750         * m4/math_h.m4 (gl_MATH_H): Likewise.
49751         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49752         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49753         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49754         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49755         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49756         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49757         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49759         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49762         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49763         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49764         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49765         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49766         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49767         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49768         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49769         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49770         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49771         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49772         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49773         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49774         * lib/float_.h: Likewise.
49775         * lib/inttypes_.h: Likewise.
49776         * lib/math_.h: Likewise.
49777         * lib/search_.h: Likewise.
49778         * lib/signal_.h: Likewise.
49779         * lib/stdint_.h: Likewise.
49780         * lib/stdio_.h: Likewise.
49781         * lib/stdlib_.h: Likewise.
49782         * lib/string_.h: Likewise.
49783         * lib/sys_stat_.h: Likewise.
49784         * lib/sys_time_.h: Likewise.
49785         * lib/time_.h: Likewise.
49786         * lib/unistd_.h: Likewise.
49787         * lib/wchar_.h: Likewise.
49788         * lib/wctype_.h: Likewise.
49789         * lib/dirent_.h: Likewise.
49790         * lib/iconv_.h: Likewise.
49791         * lib/locale_.h: Likewise.
49792         * lib/netinet_in_.h: Likewise.
49793         * lib/sys_select_.h: Likewise.
49794         * lib/sys_socket_.h: Likewise.
49795         * lib/sysexits_.h: Likewise.
49796         * modules/fcntl (Depends-on): Depend on include_next, not
49797         absolute_header.
49798         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49799         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49800         * modules/fchdir: Likewise.
49801         * modules/float: Likewise.
49802         * modules/iconv_open: Likewise.
49803         * modules/inttypes: Likewise.
49804         * modules/locale: Likewise.
49805         * modules/math: Likewise.
49806         * modules/netinet_in: Likewise.
49807         * modules/search: Likewise.
49808         * modules/signal: Likewise.
49809         * modules/stdint: Likewise.
49810         * modules/stdio: Likewise.
49811         * modules/stdlib: Likewise.
49812         * modules/string: Likewise.
49813         * modules/sys_select: Likewise.
49814         * modules/sys_socket: Likewise.
49815         * modules/sys_stat: Likewise.
49816         * modules/sys_time: Likewise.
49817         * modules/sysexits: Likewise.
49818         * modules/time: Likewise.
49819         * modules/unistd: Likewise.
49820         * modules/wchar: Likewise.
49821         * modules/wctype: Likewise.
49822         * modules/sys_stat: Change maintainer to "all".
49823         * modules/unistd: Likewise.
49824
49825 2007-06-20  Karl Berry  <karl@gnu.org>
49826
49827         * config/srclist.txt: track www changes in license files.
49828
49829 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49830
49831         * build-aux/bootstrap: Remove stray dot.
49832         Make sure build_aux settings are honored when linking
49833         gnulib_extra_files.
49834
49835 2007-06-19  Eric Blake  <ebb9@byu.net>
49836
49837         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49838         Allow compilation on cygwin.
49839
49840 2007-06-19  Jim Meyering  <jim@meyering.net>
49841
49842         xreadlink-with-size: Remove module.  No longer used.
49843         Ex-callers now use xreadlink or mreadlink-with-size.
49844         * modules/xreadlink-with-size: Remove module.
49845         * lib/xreadlink-with-size.c: Remove file.
49846         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49847         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49848         just before the function definition *is* accurate.
49849
49850         Eliminate one way canonicalize_filename_mode could exit.
49851         * lib/canonicalize.c (canonicalize_filename_mode):
49852         Use mreadlink_with_size, not xreadlink_with_size.
49853
49854 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49855
49856         Detect porting problems to FreeBSD/arm, which has time_t wider than
49857         long int.  Original problem reported for GNU diff by Xin Li in
49858         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49859         * modules/getdate (Depends-on): Add intprops, verify.
49860         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49861         is an integer type no wider than long int.
49862
49863 2007-06-18  Jim Meyering  <jim@meyering.net>
49864
49865         New module: mreadlink-with-size.
49866         * MODULES.html.sh: Add mreadlink-with-size.
49867         * modules/mreadlink-with-size: New module
49868         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49869         not xreadlink-with-size.
49870         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49871
49872 2007-06-16  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49875         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49876         Reported by Gary V. Vaughan <gary@gnu.org>.
49877
49878 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49879
49880         Revamp lchown so that it lives in unistd.h where it belongs.
49881         * lib/lchown.h: Remove.
49882         * lib/dirchownmod.c: Don't include lib/lchown.h.
49883         * lib/fchownat.c: Likewise.
49884         * lib/openat.c: Likewise.
49885         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49886         does not follow symlinks.
49887         (EOPNOTSUPP): Define if not defined.
49888         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49889         is defined to 0.
49890         (lchown): New decl.
49891         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49892         Do not check for lchown decl.
49893         Set REPLACE_LCHOWN.
49894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49895         REPLACE_LCHOWN.
49896         * modules/chown: Make it clear it follows symlinks.
49897         * modules/lchown: Make it clear it doesn't follow symlinks.
49898         (Files): Remove lib/lchown.h
49899         (Depends-on): Add unistd.
49900         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49901         (Include): Include <unistd.h>, not "lchown.h".
49902         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49903         REPLACE_LCHOWN.
49904
49905 2007-06-15  Jim Meyering  <jim@meyering.net>
49906
49907         Change license (GPL to LGPL) of fsusage and dependents.
49908         * modules/fsusage (License): Change to LGPL.
49909         * modules/full-read (License): Likewise.
49910         * modules/full-write (License): Likewise.
49911         * modules/safe-read (License): Likewise.
49912         * modules/safe-write (License): Likewise.
49913
49914 2007-06-14  Ben Pfaff  <blp@gnu.org>
49915
49916         Missing part of allocsa -> malloca transition.
49917         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49918         gl_MALLOCA.
49919
49920 2007-06-12  Bruno Haible  <bruno@clisp.org>
49921
49922         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49923         to ia64, x86_64, i386.
49924         Reported by Eric Blake.
49925
49926 2007-06-12  Bruno Haible  <bruno@clisp.org>
49927
49928         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49929         cross-compiling to x86_64.
49930
49931 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49932
49933         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49934         glitch reported by Ralf Wildenhues in
49935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49936
49937         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49938         Vin Shelton.
49939
49940 2007-06-11  Bruno Haible  <bruno@clisp.org>
49941
49942         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49943         replacement string.
49944         Reported by Eric Blake.
49945
49946 2007-06-10  Bruno Haible  <bruno@clisp.org>
49947
49948         Prepare vasnprintf code for use with Unicode strings.
49949         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49950         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49951         TYPE_U32_STRING.
49952         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49953         a_u32_string variants.
49954         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49955         * lib/printf-args.c: Don't include config.h and the specification
49956         header if PRINTF_FETCHARGS is already defined.
49957         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49958         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49959         TYPE_U16_STRING, TYPE_U32_STRING.
49960         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49961         u16_directive, u16_directives, u32_directive, u32_directives): New
49962         types.
49963         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49964         New declarations.
49965         * lib/printf-parse.c: Don't include config.h and the specification
49966         header if PRINTF_PARSE is already defined. Eliminate the set of
49967         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49968         them now. Include c-ctype.h.
49969         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49970         directive and CHAR_T_ONLY_ASCII.
49971         * lib/vasnprintf.c: Don't include config.h and the specification header
49972         if VASNPRINTF is already defined.
49973         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49974         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49975         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49976         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49977         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49978         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49979         code accordingly.
49980         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49981         pad_ourselves also in this case, with the 'c' and 's' directives, and
49982         with a different notion of "width".
49983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49984
49985 2007-06-10  Bruno Haible  <bruno@clisp.org>
49986
49987         * modules/unistr/u32-mbsnlen: New file.
49988         * lib/unistr/u32-mbsnlen.c: New file.
49989
49990         * modules/unistr/u16-mbsnlen: New file.
49991         * lib/unistr/u16-mbsnlen.c: New file.
49992
49993         * modules/unistr/u8-mbsnlen: New file.
49994         * lib/unistr/u8-mbsnlen.c: New file.
49995
49996         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49997         declarations.
49998
49999 2007-06-10  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/string_.h (mbsnlen): New declaration.
50002         * lib/mbsnlen.c: New file.
50003         * m4/mbsnlen.m4: New file.
50004         * modules/mbsnlen: New file.
50005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50006         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50007         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50008
50009 2007-06-10  Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50012
50013 2007-06-10  Bruno Haible  <bruno@clisp.org>
50014
50015         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50016         * lib/mbuiter.h: Likewise.
50017
50018 2007-06-10  Bruno Haible  <bruno@clisp.org>
50019
50020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50021         declaration.
50022
50023 2007-06-10  Karl Berry  <karl@gnu.org>
50024
50025         * config/srclist.txt: remove gettext entries, Bruno prefers
50026         to update individually.
50027
50028 2007-06-10  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50031         'maxlen'. Ensure only length + width bytes are allocated, not
50032         length + 1 + width.
50033
50034 2007-06-09  Bruno Haible  <bruno@clisp.org>
50035
50036         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50037         (CHAR_T): Remove macro.
50038         (VASNPRINTF): Update.
50039
50040 2007-06-09  Bruno Haible  <bruno@clisp.org>
50041
50042         * MODULES.html.sh (Unicode string functions): Add the new modules.
50043
50044         * modules/uniconv/u32-conv-to-enc: New file.
50045         * lib/uniconv/u32-conv-to-enc.c: New file.
50046         * modules/uniconv/u32-conv-to-enc-tests: New file.
50047         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50048
50049         * modules/uniconv/u16-conv-to-enc: New file.
50050         * lib/uniconv/u16-conv-to-enc.c: New file.
50051         * lib/uniconv/u-conv-to-enc.h: New file.
50052         * modules/uniconv/u16-conv-to-enc-tests: New file.
50053         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50054
50055         * modules/uniconv/u8-conv-to-enc: New file.
50056         * lib/uniconv/u8-conv-to-enc.c: New file.
50057         * modules/uniconv/u8-conv-to-enc-tests: New file.
50058         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50059
50060         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50061         u32_conv_to_encoding): New declarations.
50062
50063 2007-06-09  Bruno Haible  <bruno@clisp.org>
50064
50065         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50066
50067 2007-06-09  Bruno Haible  <bruno@clisp.org>
50068
50069         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50070         * modules/malloca: Renamed from modules/allocsa, updated.
50071         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50072         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50073         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50074         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50075         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50076         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50077         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50078         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50079         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50080         * modules/c-strcasestr (Depends-on): Update.
50081         * lib/c-strcasestr.c: Update.
50082         * modules/c-strstr (Depends-on): Update.
50083         * lib/c-strstr.c: Update.
50084         * modules/canonicalize-lgpl (Depends-on): Update.
50085         * lib/canonicalize-lgpl.c: Update.
50086         * modules/clean-temp (Depends-on): Update.
50087         * lib/clean-temp.c: Update.
50088         * modules/csharpcomp (Depends-on): Update.
50089         * lib/csharpcomp.c: Update.
50090         * modules/csharpexec (Depends-on): Update.
50091         * lib/csharpexec.c: Update.
50092         * modules/javacomp (Depends-on): Update.
50093         * lib/javacomp.c: Update.
50094         * modules/javaexec (Depends-on): Update.
50095         * lib/javaexec.c: Update.
50096         * modules/mbscasestr (Depends-on): Update.
50097         * lib/mbscasestr.c: Update.
50098         * modules/mbsstr (Depends-on): Update.
50099         * lib/mbsstr.c: Update.
50100         * modules/setenv (Depends-on): Update.
50101         * lib/setenv.c: Update.
50102         * modules/strcasestr (Depends-on): Update.
50103         * lib/strcasestr.c: Update.
50104         * modules/striconveha (Depends-on): Update.
50105         * lib/striconveha.c: Update.
50106         * modules/relocatable-prog-wrapper (Files): Update.
50107         * lib/relocwrapper.c: Update.
50108         * build-aux/install-reloc: Update.
50109         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50110
50111 2007-06-08  Bruno Haible  <bruno@clisp.org>
50112
50113         Port to uClibc.
50114         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50115         * lib/fpurge.c (fpurge): Likewise.
50116         * lib/freading.c (freading): Likewise.
50117         * lib/fseeko.c (rpl_fseeko): Likewise.
50118         * lib/fseterr.c (fseterr): Likewise.
50119         * lib/fwriting.c (fwriting): Likewise.
50120         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50121
50122 2007-06-08  Bruno Haible  <bruno@clisp.org>
50123
50124         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50125         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50126         * modules/gettext (Files): Add m4/intlmacosx.m4.
50127
50128 2007-06-07  Bruno Haible  <bruno@clisp.org>
50129
50130         * modules/localename-tests: New file.
50131         * tests/test-localename.c: New file.
50132
50133         New module 'localename'.
50134         * lib/localename.h: New file.
50135         * lib/localename.c: New file, from GNU gettext.
50136         * m4/localename.m4: New file.
50137         * modules/localename: New file.
50138
50139 2007-06-07  Bruno Haible  <bruno@clisp.org>
50140
50141         Work around the lack of <wchar.h> on some builds of uClibc.
50142         * doc/headers/wchar.texi: Update.
50143         * lib/wchar_.h: Include <wchar.h> only if it exists.
50144         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50145         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50146         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50147         doesn't exist.
50148         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50149         * modules/mbfile (Depends-on): Add wchar.
50150         * modules/mbiter (Depends-on): Likewise.
50151         * modules/mbuiter (Depends-on): Likewise.
50152         Reported by Simon Josefsson.
50153
50154 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50155
50156         Work around problem reported by Steven M. Schweda in
50157         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50158         Tru64 5.1B with the Compaq compiler environment installed declares
50159         an 'isblank' function but does not define it in the C library.
50160         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50161         * lib/regex_internal.h (isblank): Likewise.
50162         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50163         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50164
50165 2007-06-05  Bruno Haible  <bruno@clisp.org>
50166
50167         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50168         ia64.
50169         * modules/printf-safe: New file.
50170         * modules/fprintf-posix (Depends-on): Add printf-safe.
50171         * modules/printf-posix (Depends-on): Likewise.
50172         * modules/snprintf-posix (Depends-on): Likewise.
50173         * modules/sprintf-posix (Depends-on): Likewise.
50174         * modules/vasnprintf-posix (Depends-on): Likewise.
50175         * modules/vasprintf-posix (Depends-on): Likewise.
50176         * modules/vfprintf-posix (Depends-on): Likewise.
50177         * modules/vprintf-posix (Depends-on): Likewise.
50178         * modules/vsnprintf-posix (Depends-on): Likewise.
50179         * modules/vsprintf-posix (Depends-on): Likewise.
50180         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50181         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50182         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50183         "no" on i386, x86_64, ia64.
50184         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50185         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50186         on i386, x86_64, ia64.
50187         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50188         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50189         on i386, x86_64, ia64.
50190         * tests/test-vasnprintf-posix.c: Include float.h.
50191         (LDBL80_WORDS): New macro.
50192         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50193         on i386, x86_64, ia64.
50194         * tests/test-vasprintf-posix.c: Include float.h.
50195         (LDBL80_WORDS): New macro.
50196         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50197         on i386, x86_64, ia64.
50198         * tests/test-snprintf-posix.c: Include float.h.
50199         * tests/test-sprintf-posix.c: Likewise.
50200         * tests/test-vsnprintf-posix.c: Likewise.
50201         * tests/test-vsprintf-posix.c: Likewise.
50202
50203 2007-06-05  Bruno Haible  <bruno@clisp.org>
50204
50205         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50206         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50207         non-IEEE numbers on i386, x86_64, ia64.
50208         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50209         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50210         * tests/test-isnanl.h: Include float.h.
50211         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50212
50213 2007-06-05  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50216         also the %a / %A. Handle the %a / %A code before this extra handling.
50217
50218 2007-06-05  Bruno Haible  <bruno@clisp.org>
50219
50220         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50221         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50222
50223 2007-06-05  Bruno Haible  <bruno@clisp.org>
50224
50225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50226         typo in variable name.
50227
50228 2007-06-05  Eric Blake  <ebb9@byu.net>
50229
50230         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50231         Reported by Simon Josefsson.
50232
50233 2007-06-04  Bruno Haible  <bruno@clisp.org>
50234
50235         Avoid test failures on some PowerPC platforms.
50236         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50237         Define differently for PowerPC.
50238         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50239         Reported by Gary V. Vaughan <gary@gnu.org>.
50240
50241 2007-06-02  Bruno Haible  <bruno@clisp.org>
50242
50243         Fix test-stdint failure on FreeBSD/ia64.
50244         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50245         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50246         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50247         * doc/headers/stdint.texi: Update.
50248
50249 2007-06-01  Bruno Haible  <bruno@clisp.org>
50250
50251         * tests/test-binary-io.c (main): Pass a third argument to open().
50252         Reported by Gary V. Vaughan <gary@gnu.org>.
50253
50254 2007-06-01  Bruno Haible  <bruno@clisp.org>
50255
50256         * doc/functions/frexpl.texi: Update for mingw.
50257
50258 2007-06-01  Bruno Haible  <bruno@clisp.org>
50259
50260         * tests/test-lseek.c (main): Disable test of errno for invalid third
50261         argument.
50262         * doc/functions/lseek.texi: Update.
50263         Reported by Gary V. Vaughan <gary@gnu.org>.
50264
50265 2007-05-28  Bruno Haible  <bruno@clisp.org>
50266
50267         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50268
50269 2007-05-31  Eric Blake  <ebb9@byu.net>
50270
50271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50272         cross compiling.
50273
50274 2007-05-30  Eric Blake  <ebb9@byu.net>
50275         and Bruno Haible  <bruno@clisp.org>
50276
50277         Work around mingw test failures exposed by m4-1.4.9b.
50278         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50279         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50280         moment.
50281
50282 2007-05-30  Bruno Haible  <bruno@clisp.org>
50283
50284         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50285         assuming that they are closed. Needed on HP-UX 11.
50286
50287 2007-05-29  Bruno Haible  <bruno@clisp.org>
50288
50289         Fix a problem with #include_next.
50290         * lib/dirent_.h: Split the double-inclusion guard.
50291         * lib/fcntl_.h: Likewise.
50292         * lib/float_.h: Likewise.
50293         * lib/iconv_.h: Likewise.
50294         * lib/inttypes_.h: Likewise.
50295         * lib/locale_.h: Likewise.
50296         * lib/math_.h: Likewise.
50297         * lib/netinet_in_.h: Likewise.
50298         * lib/search_.h: Likewise.
50299         * lib/signal_.h: Likewise.
50300         * lib/stdint_.h: Likewise.
50301         * lib/stdio_.h: Likewise.
50302         * lib/stdlib_.h: Likewise.
50303         * lib/string_.h: Likewise.
50304         * lib/sys_select_.h: Likewise.
50305         * lib/sys_socket_.h: Likewise.
50306         * lib/sys_stat_.h: Likewise.
50307         * lib/sys_time_.h: Likewise.
50308         * lib/sysexits_.h: Likewise.
50309         * lib/time_.h: Likewise.
50310         * lib/unistd_.h: Likewise.
50311         * lib/wchar_.h: Likewise.
50312         * lib/wctype_.h: Likewise.
50313
50314 2007-05-29  Bruno Haible  <bruno@clisp.org>
50315
50316         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50317         for the moment.
50318
50319 2007-05-29  Bruno Haible  <bruno@clisp.org>
50320
50321         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50322         invocation.
50323         Reported by Eric Blake.
50324
50325 2007-05-29  Bruno Haible  <bruno@clisp.org>
50326
50327         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50328         compiling case.
50329
50330 2007-05-29  Eric Blake  <ebb9@byu.net>
50331             Bruno Haible  <bruno@clisp.org>
50332
50333         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50334         cross compiles.
50335
50336 2007-05-28  Eric Blake  <ebb9@byu.net>
50337
50338         * modules/closein-tests (test_closein_LDADD): Support test on
50339         cygwin with libtool.
50340
50341 2007-05-28  Bruno Haible  <bruno@clisp.org>
50342
50343         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50344         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50345         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50346         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50347         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50348         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50349         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50350         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50351         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50352
50353 2007-05-28  Eric Blake  <ebb9@byu.net>
50354
50355         Unconditionally include <config.h> in unit tests.
50356         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50357         * tests/test-allocsa.c, tests/test-arcfour.c,
50358         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50359         tests/test-array_list.c, tests/test-array_oset.c,
50360         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50361         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50362         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50363         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50364         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50365         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50366         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50367         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50368         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50369         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50370         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50371         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50372         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50373         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50374         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50375         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50376         test-md5.c, test-memmem.c, test-printf-posix.c,
50377         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50378         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50379         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50380         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50381         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50382         test-vasnprintf-posix2.c, test-vasnprintf.c,
50383         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50384         test-vfprintf-posix.c, test-vprintf-posix.c,
50385         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50386         test-xvasprintf.c: Likewise.
50387
50388 2007-05-28  Bruno Haible  <bruno@clisp.org>
50389
50390         * gnulib-tool (func_import): Remember the --with-tests command-line
50391         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50392         Reported by Eric Blake.
50393
50394 2007-05-28  Bruno Haible  <bruno@clisp.org>
50395
50396         * modules/ftell-tests: New file.
50397         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50398         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50399
50400         * lib/ftell.c: New file.
50401         * modules/ftell: New file.
50402         * m4/ftell.m4: New file.
50403         * doc/functions/ftell.texi: Update.
50404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50405         REPLACE_FTELL.
50406         * lib/stdio_.h (rpl_ftell): New declaration.
50407         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50408         REPLACE_FTELL.
50409
50410 2007-05-28  Eric Blake  <ebb9@byu.net>
50411
50412         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50413
50414 2007-05-28  Bruno Haible  <bruno@clisp.org>
50415
50416         * modules/fseek-tests: New file.
50417         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50418         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50419
50420         * lib/fseek.c: New file.
50421         * modules/fseek: New file.
50422         * m4/fseek.m4: New file.
50423         * doc/functions/fseek.texi: Update.
50424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50425         REPLACE_FSEEK.
50426         * lib/stdio_.h (rpl_fseek): New declaration.
50427         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50428         REPLACE_FSEEK.
50429
50430 2007-05-28  Bruno Haible  <bruno@clisp.org>
50431
50432         * lib/stdio_.h (fflush): More comments.
50433
50434 2007-05-28  Bruno Haible  <bruno@clisp.org>
50435
50436         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50437         runtime test.
50438
50439 2007-05-28  Eric Blake  <ebb9@byu.net>
50440
50441         Improve lseek module.
50442         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50443         * lib/unistd_.h (lseek): Scale back link warning message.
50444         * tests/test-lseek.c: Beef up test.
50445         * tests/test-lseek.sh: Exercise more facets of lseek.
50446         Reported by Bruno Haible.
50447
50448 2007-05-28  Bruno Haible  <bruno@clisp.org>
50449
50450         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50451         to define.
50452
50453 2007-05-27  Bruno Haible  <bruno@clisp.org>
50454
50455         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50456
50457 2007-05-27  Bruno Haible  <bruno@clisp.org>
50458
50459         * modules/openmp: New file.
50460         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50461         Noah Misch.
50462
50463 2007-05-26  Bruno Haible  <bruno@clisp.org>
50464
50465         * modules/chdir-long (Depends-on): Add fchdir.
50466         * modules/chdir-safer (Depends-on): Likewise.
50467         * modules/fts (Depends-on): Likewise.
50468         * modules/fts-lgpl (Depends-on): Likewise.
50469         * modules/openat (Depends-on): Likewise.
50470         * modules/savewd (Depends-on): Likewise.
50471
50472 2007-05-24  Eric Blake  <ebb9@byu.net>
50473
50474         Fix lseek on mingw.
50475         * modules/lseek: New module.
50476         * m4/lseek.m4: New file.
50477         * lib/lseek.c: New file.
50478         * modules/lseek-tests: New file.
50479         * tests/test-lseek.c: New file.
50480         * tests/test-lseek.sh: New file.
50481         * MODULES.html.sh: Document lseek module.
50482         * modules/fflush (Depends-on): Add lseek, fseeko.
50483         * modules/fseeko (Depends-on): Likewise.
50484         * modules/ftello (Depends-on): Likewise.
50485         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50486         broken.
50487         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50488         broken.
50489         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50490         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50491         * lib/ftello.c (rpl_ftello): Likewise.
50492         * tests/test-fseeko.c (main): Test this.
50493         * tests/test-fseeko.sh: Likewise.
50494         * tests/test-ftello.c (main): Likewise.
50495         * tests/test-ftello.sh: Likewise.
50496         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50497         implies replacing fseek.
50498         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50499         HAVE_FTELLO.
50500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50501         * modules/unistd (Makefile.am): Likewise.
50502         * lib/unistd_.h (lseek): Declare a replacement.
50503         * doc/functions/lseek.texi (lseek): Document this fix.
50504         * doc/functions/fseek.texi (fseek): Likewise.
50505         * doc/functions/ftell.texi (ftell): Likewise.
50506
50507 2007-05-24  Bruno Haible  <bruno@clisp.org>
50508
50509         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50510         in the printed representation of a NaN.
50511         * tests/test-vasprintf-posix.c (test_function): Likewise.
50512         * tests/test-snprintf-posix.h (test_function): Likewise.
50513         * tests/test-sprintf-posix.h (test_function): Likewise.
50514         Reported by Eric Blake.
50515
50516 2007-05-23  Eric Blake  <ebb9@byu.net>
50517
50518         Fix fseeko/ftello on cygwin 1.5.24.
50519         * doc/functions/fseeko.texi (fseeko): Document the fix.
50520         * doc/functions/ftello.texi (ftello): Document the fix.
50521         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50522         * doc/functions/stdout.text (stdout): New file.
50523         * doc/functions/stderr.text (stderr): New file.
50524         * doc/gnulib.texi (Function Substitutes): Use new files.
50525         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50526         prior to 1.7.0.
50527         * tests/test-ftello.c (main): Likewise for ftello.
50528         * tests/test-fseeko.sh: New file.
50529         * tests/test-ftello.sh: New file.
50530         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50531         with seekable stdin.
50532         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50533         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50534         (gl_REPLACE_FSEEKO): New macro.
50535         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50536         * modules/fseeko (Files): Distribute fseeko.c.
50537         * modules/ftello (Files): Distribute ftello.c.
50538         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50539         mode.
50540         * lib/ftello.c (rpl_ftello): New file.
50541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50542         fseeko, ftello.
50543         (gl_STDIN_LARGE_OFFSET): New macro.
50544         * modules/stdio (Makefile.am): Perform the replacement.
50545         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50546
50547 2007-05-23  Bruno Haible  <bruno@clisp.org>
50548
50549         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50550         GNULIB_POSIXCHECK is defined.
50551
50552 2007-05-21  Bruno Haible  <bruno@clisp.org>
50553
50554         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50555         Check also the output for NaN arguments. When cross-compiling, guess
50556         no on IRIX.
50557         * lib/vasnprintf.c: Update comments.
50558         * tests/test-vasnprintf-posix.c (strisnan): New function.
50559         (test_function): Use it.
50560         * tests/test-vasprintf-posix.c (strisnan): New function.
50561         (test_function): Use it.
50562         * tests/test-snprintf-posix.h (strisnan): New function.
50563         (test_function): Use it.
50564         * tests/test-sprintf-posix.h (strisnan): New function.
50565         (test_function): Use it.
50566         Reported by Eric Blake.
50567
50568 2007-05-20  Bruno Haible  <bruno@clisp.org>
50569
50570         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50571         numbers that fails on BeOS.
50572         * doc/functions/frexpl.texi: Update.
50573
50574 2007-05-20  Jim Meyering  <jim@meyering.net>
50575
50576         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50577         forced upon us by glibc-2.6.
50578
50579 2007-05-20  Bruno Haible  <bruno@clisp.org>
50580
50581         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50582         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50583         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50584         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50585         NEED_PRINTF_INFINITE.
50586         (is_infinitel): New function.
50587         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50589         gl_PREREQ_VASNPRINTF_INFINITE.
50590         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50592         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50593         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50594         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50595         gl_PREREQ_VASNPRINTF_INFINITE.
50596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50597         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50599         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50600         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50601         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50602         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50603         * doc/functions/fprintf.texi: Update.
50604         * doc/functions/printf.texi: Update.
50605         * doc/functions/snprintf.texi: Update.
50606         * doc/functions/sprintf.texi: Update.
50607         * doc/functions/vfprintf.texi: Update.
50608         * doc/functions/vprintf.texi: Update.
50609         * doc/functions/vsnprintf.texi: Update.
50610         * doc/functions/vsprintf.texi: Update.
50611
50612 2007-05-20  Bruno Haible  <bruno@clisp.org>
50613
50614         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50615         was not found in libc.
50616         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50617
50618 2007-05-20  Bruno Haible  <bruno@clisp.org>
50619
50620         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50621         printed as "-nan" instead of "nan".
50622         * tests/test-vasprintf-posix.c (test_function): Likewise.
50623         * tests/test-snprintf-posix.h (test_function): Likewise.
50624         * tests/test-sprintf-posix.h (test_function): Likewise.
50625         Needed for HP-UX 11.
50626
50627 2007-05-20  Jim Meyering  <jim@meyering.net>
50628
50629         Fix buggy test for the fchownat-deref bug.
50630         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50631         symlink required for the run-test.  Without it, this test would
50632         always declare that fchownat doesn't work, and client code would
50633         unnecessarily use the replacement function with fixed libc.
50634         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50635         Reported by Greg Schafer.
50636
50637 2007-05-19  Bruno Haible  <bruno@clisp.org>
50638
50639         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50640         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50641         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50642         Needed for IRIX 6.5 and Solaris 2.5.1.
50643
50644 2007-05-19  Bruno Haible  <bruno@clisp.org>
50645
50646         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50647         (test_function): Skip tests involving -0.0 on platforms where
50648         -0.0 = 0.0.
50649         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50650         (test_function): Skip tests involving -0.0 on platforms where
50651         -0.0 = 0.0.
50652         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50653         (test_function): Skip tests involving -0.0 on platforms where
50654         -0.0 = 0.0.
50655         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50656         (test_function): Skip tests involving -0.0 on platforms where
50657         -0.0 = 0.0.
50658         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50659         tests.
50660         * tests/test-printf-posix.h (test_function): Likewise.
50661         * tests/test-printf-posix.output: Remove all -0.0 related results.
50662         Needed for IRIX 6.5.
50663
50664 2007-05-19  Bruno Haible  <bruno@clisp.org>
50665
50666         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50667         printed as "nan0x7fffffff" instead of "nan".
50668         * tests/test-vasprintf-posix.c (test_function): Likewise.
50669         * tests/test-snprintf-posix.h (test_function): Likewise.
50670         * tests/test-sprintf-posix.h (test_function): Likewise.
50671         * tests/test-fprintf-posix.h (NaN): Remove macro.
50672         (test_function): Remove all NaN related tests.
50673         * tests/test-printf-posix.h (NaN): Remove macro.
50674         (test_function): Remove all NaN related tests.
50675         * tests/test-printf-posix.output: Remove all NaN related results.
50676         Needed for IRIX 6.5.
50677
50678 2007-05-19  Bruno Haible  <bruno@clisp.org>
50679
50680         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50681         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50682
50683 2007-05-19  Bruno Haible  <bruno@clisp.org>
50684
50685         * lib/float_.h: New file.
50686         * m4/float_h.m4: New file.
50687         * modules/float: New file.
50688         * modules/isnanl (Dependencies): Add float.
50689         * modules/isnanl-nolibm (Dependencies): Likewise.
50690         * modules/mathl (Dependencies): Likewise.
50691         * modules/printf-frexpl (Dependencies): Likewise.
50692         * modules/signbit (Dependencies): Likewise.
50693         * modules/vasnprintf (Dependencies): Likewise.
50694         * doc/headers/float.texi: Update.
50695
50696 2007-05-19  Jim Meyering  <jim@meyering.net>
50697
50698         * lib/utimens.c (gl_futimens): Rename from futimens,
50699         now that glibc-2.6 declares futimens.
50700         * lib/utimens.h: Likewise.
50701
50702 2007-05-19  Bruno Haible  <bruno@clisp.org>
50703
50704         Avoid test failures on mingw.
50705         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50706         * tests/test-printf-posix.sh: Likewise.
50707         * tests/test-vfprintf-posix.sh: Likewise.
50708         * tests/test-vprintf-posix.sh: Likewise.
50709
50710 2007-05-19  Bruno Haible  <bruno@clisp.org>
50711
50712         Fix *printf result for NaN, Inf, -0.0 on mingw.
50713         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50714         * lib/vasnprintf.c: Include math.h and isnan.h.
50715         (is_infinite_or_zero): New function.
50716         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50717         values in the %f, %F, %e, %E, %g, %G directives.
50718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50719         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50720         gl_PRINTF_INFINITE and test its result. Invoke
50721         gl_PREREQ_VASNPRINTF_INFINITE.
50722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50724         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50726         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50729         * doc/functions/fprintf.texi: Update.
50730         * doc/functions/printf.texi: Update.
50731         * doc/functions/snprintf.texi: Update.
50732         * doc/functions/sprintf.texi: Update.
50733         * doc/functions/vfprintf.texi: Update.
50734         * doc/functions/vprintf.texi: Update.
50735         * doc/functions/vsnprintf.texi: Update.
50736         * doc/functions/vsprintf.texi: Update.
50737
50738 2007-05-19  Bruno Haible  <bruno@clisp.org>
50739
50740         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50741         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50742         Instead of multiplying with 10^k, set extra_zeroes to k.
50743         (scale10_round_long_double): Remove function.
50744
50745 2007-05-18  Bruno Haible  <bruno@clisp.org>
50746
50747         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50748         introduced on 2007-05-06.
50749
50750 2007-05-18  Bruno Haible  <bruno@clisp.org>
50751
50752         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50753         %g directives.
50754         * tests/test-vasprintf-posix.c (test_function): Likewise.
50755         * tests/test-snprintf-posix.h (test_function): Likewise.
50756         * tests/test-sprintf-posix.h (test_function): Likewise.
50757
50758 2007-05-18  Bruno Haible  <bruno@clisp.org>
50759
50760         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50761         (strmatch): New function.
50762         (test_function): Test the %f directive on numbers of various exponents.
50763         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50764         (strmatch): New function.
50765         (test_function): Test the %f directive on numbers of various exponents.
50766         * tests/test-snprintf-posix.h (strmatch): New function.
50767         (test_function): Test the %f directive on numbers of various exponents.
50768         * tests/test-sprintf-posix.h (strmatch): New function.
50769         (test_function): Test the %f directive on numbers of various exponents.
50770         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50771         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50772         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50773         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50774
50775 2007-05-18  Bruno Haible  <bruno@clisp.org>
50776
50777         Add support for 'long double' number output.
50778         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50779         * lib/vasnprintf.c: Include math.h and float+.h.
50780         (mp_limb_t): New type.
50781         (GMP_LIMB_BITS): New macro.
50782         (mp_twolimb_t): New type.
50783         (GMP_TWOLIMB_BITS): New macro.
50784         (mpn_t): New type.
50785         (multiply, divide, convert_to_decimal, decode_long_double,
50786         scale10_round_long_double, scale10_round_decimal_long_double,
50787         floorlog10l): New functions.
50788         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50789         for the %f, %F, %e, %E, %g, %G directives.
50790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50791         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50792         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50793         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50794         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50795         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50796         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50797         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50798         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50799         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50800         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50801         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50802         * modules/snprintf-posix (Depends-on): Likewise.
50803         * modules/sprintf-posix (Depends-on): Likewise.
50804         * modules/vasnprintf-posix (Depends-on): Likewise.
50805         * modules/vasprintf-posix (Depends-on): Likewise.
50806         * modules/vfprintf-posix (Depends-on): Likewise.
50807         * modules/vsnprintf-posix (Depends-on): Likewise.
50808         * modules/vsprintf-posix (Depends-on): Likewise.
50809         * modules/vasnprintf (Files): Add lib/float+.h.
50810         * doc/functions/fprintf.texi: Update.
50811         * doc/functions/printf.texi: Update.
50812         * doc/functions/snprintf.texi: Update.
50813         * doc/functions/sprintf.texi: Update.
50814         * doc/functions/vfprintf.texi: Update.
50815         * doc/functions/vprintf.texi: Update.
50816         * doc/functions/vsnprintf.texi: Update.
50817         * doc/functions/vsprintf.texi: Update.
50818
50819 2007-05-18  Bruno Haible  <bruno@clisp.org>
50820
50821         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50822
50823 2007-05-18  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50826         for printing 64-bit integers. Needed for mingw.
50827
50828 2007-05-18  Bruno Haible  <bruno@clisp.org>
50829
50830         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50831         gl_FUNC_FREXPL_WORKS.
50832         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50833
50834 2007-05-18  Bruno Haible  <bruno@clisp.org>
50835
50836         * modules/frexpl-nolibm-tests: New file.
50837
50838         * modules/frexpl-nolibm: New file.
50839         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50840
50841 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50842
50843         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50844         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50845         GCC 4.2, which otherwise issues a lot of warnings.
50846         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50847         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50848         Likewise.
50849         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50850         * modules/iconv_open (iconv.h): Likewise.
50851         * modules/locale (locale.h): Likewise.
50852         * modules/netinet_in (netinet/in.h): Likewise.
50853         * modules/sys_select (sys_select.h): Likewise.
50854         * modules/sys_socket (sys/socket.h): Likewise.
50855         * modules/sys_stat (sys/stat.h): Likewise.
50856         * modules/sysexits (sysexits.h): Likewise.
50857         * modules/unistd (unistd.h): Likewise.
50858
50859 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50860
50861         * modules/closein-tests (Makefile.am): Distribute
50862         `test-closein.sh'.
50863
50864 2007-05-17  Bruno Haible  <bruno@clisp.org>
50865
50866         * tests/test-printf-posix.output: Renamed from
50867         tests/test-fprintf-posix.out.
50868         * modules/fprintf-posix-tests: Update.
50869         * modules/printf-posix-tests: Update.
50870         * modules/vfprintf-posix-tests: Update.
50871         * modules/vprintf-posix-tests: Update.
50872         * tests/test-fprintf-posix.sh: Update.
50873         * tests/test-printf-posix.sh: Update.
50874         * tests/test-vfprintf-posix.sh: Update.
50875         * tests/test-vprintf-posix.sh: Update.
50876         Reported by Ralf Wildenhues.
50877
50878 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50881         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50882         GCC 4.2, which otherwise issues a lot of warnings.
50883         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50884         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50885         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50886         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50887         it should no longer be needed.
50888         * lib/string_.h: Likewise.
50889         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50890         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50891         * modules/inttypes (inttypes.h): Likewise.
50892         * modules/math (math.h): Likewise.
50893         * modules/search (search.h): Likewise.
50894         * modules/signal (signal.h): Likewise.
50895         * modules/stdint (stdint.h): Likewise.
50896         * modules/stdio (stdio.h): Likewise.
50897         * modules/stdlib (stdlib.h): Likewise.
50898         * modules/string (string.h): Likewise.
50899         * modules/sys_time (sys/time.h): Likewise.
50900         * modules/time (time.h): Likewise.
50901         * modules/wchar (wchar.h): Likewise.
50902         * modules/wctype (wtype.h): Likewise.
50903
50904 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50905
50906         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50907
50908 2007-05-13  Bruno Haible  <bruno@clisp.org>
50909
50910         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50911         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50912         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50913         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50914         (gl_PREREQ_STRTOK_R): Don't require it here.
50915
50916 2007-05-13  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50919         when used in C++ mode.
50920
50921 2007-05-12  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/linebuffer.h: Tweak doc.
50924         * lib/linebuffer.c: Likewise.
50925
50926 2007-05-12  James Youngman  <jay@gnu.org>
50927
50928         * lib/linebuffer.c (readlinebuffer_delim): New function,
50929         like readlinebuffer, but use a caller-specified delimiter.
50930         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50931         as the delimiter.
50932         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50933
50934 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50935
50936         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50937         * modules/openat (Files): Remove openat-die.c.
50938         (Depends-on): Add openat-die.
50939         * modules/openat-die: New module.
50940
50941 2007-05-06  Bruno Haible  <bruno@clisp.org>
50942
50943         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50944         Update with info about Cygwin.
50945         * doc/functions/fprintf.texi: Update.
50946         * doc/functions/printf.texi: Update.
50947         * doc/functions/snprintf.texi: Update.
50948         * doc/functions/sprintf.texi: Update.
50949         * doc/functions/vfprintf.texi: Update.
50950         * doc/functions/vprintf.texi: Update.
50951         * doc/functions/vsnprintf.texi: Update.
50952         * doc/functions/vsprintf.texi: Update.
50953         Reported by Eric Blake.
50954
50955 2007-05-06  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50958         padding ourselves for the floating-point directives.
50959         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50962         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50963         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50968         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50971         * tests/test-snprintf-posix.h (test_function): Also check the width
50972         and some flags in the %f directive.
50973         * tests/test-sprintf-posix.h (test_function): Likewise.
50974         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50975         * tests/test-vasprintf-posix.c (test_function): Likewise.
50976         * doc/functions/fprintf.texi: Update.
50977         * doc/functions/printf.texi: Update.
50978         * doc/functions/snprintf.texi: Update.
50979         * doc/functions/sprintf.texi: Update.
50980         * doc/functions/vfprintf.texi: Update.
50981         * doc/functions/vprintf.texi: Update.
50982         * doc/functions/vsnprintf.texi: Update.
50983         * doc/functions/vsprintf.texi: Update.
50984
50985 2007-05-06  Bruno Haible  <bruno@clisp.org>
50986
50987         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50988         pass the ' flag character to sprintf or snprintf.
50989         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50992         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50993         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50998         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51001         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51002         flag.
51003         * tests/test-sprintf-posix.h (test_function): Likewise.
51004         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51005         * tests/test-vasprintf-posix.c (test_function): Likewise.
51006         * doc/functions/fprintf.texi: Update.
51007         * doc/functions/printf.texi: Update.
51008         * doc/functions/snprintf.texi: Update.
51009         * doc/functions/sprintf.texi: Update.
51010         * doc/functions/vfprintf.texi: Update.
51011         * doc/functions/vprintf.texi: Update.
51012         * doc/functions/vsnprintf.texi: Update.
51013         * doc/functions/vsprintf.texi: Update.
51014
51015 2007-05-01  Bruno Haible  <bruno@clisp.org>
51016
51017         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51018
51019 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51020
51021         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51022         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51023
51024 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51025
51026         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51027         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51029
51030 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51031
51032         * lib/argp-help.c (struct hol_entry): New member `ord'.
51033         (HOL_ENTRY_PTRCMP): Use ord for comparison
51034         (hol_sort): Initialize ord.
51035
51036 2007-05-01  Bruno Haible  <bruno@clisp.org>
51037
51038         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51039         Reported by Eric Blake.
51040         * doc/gnulib.texi (Function Substitutes): Update.
51041
51042 2007-05-01  Bruno Haible  <bruno@clisp.org>
51043
51044         * doc/functions.texi: Remove file, now redundant through
51045         doc/functions/*.texi.
51046
51047 2007-05-01  Bruno Haible  <bruno@clisp.org>
51048
51049         * modules/argp (Depends-on): Add sleep.
51050
51051 2007-05-01  Bruno Haible  <bruno@clisp.org>
51052
51053         * modules/sleep-tests: New file.
51054         * tests/test-sleep.c: New file.
51055
51056         * modules/sleep: New file.
51057         * lib/sleep.c: New file.
51058         * m4/sleep.m4: New file.
51059         * lib/unistd_.h (sleep): New declaration.
51060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51061         HAVE_SLEEP.
51062         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51063         * doc/functions/sleep.texi: Document the sleep module.
51064
51065 2007-05-01  Bruno Haible  <bruno@clisp.org>
51066
51067         * lib/sigprocmask.h: Remove file.
51068         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51069         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51070         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51071         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51072         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51073         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51074         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51075         HAVE_SIGSET_T as a shell variable.
51076         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51077         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51078         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51079         (Depends-on): Add signal. Remove verify.
51080         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51081         (Include): Mention <signal.h> instead of sigprocmask.h.
51082         * NEWS: Mention the change.
51083         * lib/fatal-signal.c: Don't include sigprocmask.h.
51084
51085 2007-05-01  Bruno Haible  <bruno@clisp.org>
51086
51087         * modules/signal: New file.
51088         * lib/signal_.h: New file.
51089         * m4/signal_h.m4: New file.
51090
51091 2007-05-01  Bruno Haible  <bruno@clisp.org>
51092
51093         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51094         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51095         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51096         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51097
51098 2007-05-01  Bruno Haible  <bruno@clisp.org>
51099
51100         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51101         configure time.
51102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51103         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51104         * modules/sys_stat (Makefile.am): Substitute their values into
51105         sys/stat.h.
51106
51107 2007-05-01  Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51110         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51111         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51112
51113 2007-05-01  Bruno Haible  <bruno@clisp.org>
51114
51115         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51116         'assert' module here.
51117
51118 2007-05-01  Bruno Haible  <bruno@clisp.org>
51119
51120         * doc/functions/*.texi: New files.
51121         * doc/functions/google-ranking.txt: New file.
51122         * doc/gnulib.texi (Function Substitutes): New chapter.
51123         (ctime, inet_ntoa): Remove sections.
51124         * doc/ctime.texi: Remove file.
51125         * doc/inet_ntoa.texi: Remove file.
51126         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51127         dependencies.
51128         (%.info): New rule, specifying a --reference-limit.
51129
51130 2007-05-01  Bruno Haible  <bruno@clisp.org>
51131
51132         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51133
51134 2007-05-01  Bruno Haible  <bruno@clisp.org>
51135
51136         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51137         the portability of 'mkdir' to mingw systems.
51138
51139 2007-05-01  Bruno Haible  <bruno@clisp.org>
51140
51141         * doc/headers/google-ranking.txt: New file.
51142
51143 2007-04-30  Eric Blake  <ebb9@byu.net>
51144
51145         Prefer fseeko to fseek.
51146         * modules/getpass (Depends-on): Add fseeko.
51147         * lib/getpass.c (getpass): Use fseeko, not fseek.
51148
51149 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51150
51151         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51152         assumes the sorting is stable, while most qsort implementations
51153         are not.  Use argument addresses to ensure they never compare as
51154         equal.
51155
51156         * tests/test-argp-2.sh (usage-indent test): Fix output
51157         (func_compare): Restore diff options
51158         * tests/test-argp.c: Restore #include "progname.h"
51159
51160 2007-04-29  Bruno Haible  <bruno@clisp.org>
51161
51162         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51164         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51166         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51167         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51168         (TESTS, check_PROGRAMS): Add test-snprintf.
51169         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51170         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51171         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51172         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51173         assertions that fail on HP-UX, OSF/1, or IRIX.
51174         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51175
51176 2007-04-29  Bruno Haible  <bruno@clisp.org>
51177
51178         * MODULES.html.sh (posix_functions): Remove 'contents'.
51179
51180 2007-04-29  Karl Berry  <karl@gnu.org>
51181
51182         * config/srclist.txt (gendocs_template_min): new entry.
51183
51184 2007-04-29  Bruno Haible  <bruno@clisp.org>
51185
51186         Work around fpurge bug on BSD systems.
51187         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51188         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51189         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51190         fpurge to rpl_fpurge if the system already has this function.
51191         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51192         the case where the system already has this function. Correct invariants
51193         on BSD systems.
51194         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51195         BSD systems.
51196
51197 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51198
51199         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51200         proposed by Sven Verdoolaege.
51201
51202         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51203         options.
51204         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51205         (usage and help tests): Update
51206
51207 2007-04-29  Bruno Haible  <bruno@clisp.org>
51208
51209         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51210         Print more information in case of failure. Disable a test on BeOS.
51211
51212 2007-04-29  Bruno Haible  <bruno@clisp.org>
51213
51214         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51215         This helps debugging on systems on which no gdb is available.
51216
51217 2007-04-29  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/freading.h: Improve comments.
51220         * lib/fwriting.h: Likewise.
51221         * tests/test-freading.c (main): Don't check freading immediately after
51222         repositioning. Needed for glibc.
51223
51224 2007-04-29  Bruno Haible  <bruno@clisp.org>
51225
51226         * lib/freading.c (freading): Trivial simplification.
51227
51228 2007-04-28  Bruno Haible  <bruno@clisp.org>
51229
51230         * tests/test-fwriting.c (main): Also test the interaction between
51231         fflush and fwriting.
51232         * modules/fwriting-tests (Depends-on): Add fflush.
51233
51234         * tests/test-freading.c (main): Also test the interaction between
51235         fflush and freading.
51236         * modules/freading-tests (Depends-on): Add fflush.
51237
51238 2007-04-28  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51241         fseeko and ftello.
51242         Suggested by Eric Blake.
51243
51244 2007-04-28  Jim Meyering  <jim@meyering.net>
51245
51246         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51247         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51248         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51249
51250 2007-04-27  Eric Blake  <ebb9@byu.net>
51251
51252         * doc/headers/assert.texi (assert.h): Document assert module use.
51253
51254 2007-04-27  Bruno Haible  <bruno@clisp.org>
51255
51256         * doc/headers/*.texi: New files.
51257         * doc/gnulib.texi (Header File Substitutes): New chapter.
51258         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51259         dependencies.
51260         (standards.info ,standards.html, standards.dvi): Update dependencies.
51261         (mostlyclean, clean): New targets.
51262
51263 2007-04-27  Bruno Haible  <bruno@clisp.org>
51264
51265         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51266         * modules/sysexits (Files, Makefile.am): Update.
51267
51268         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51269         * modules/sys_socket (Files, Makefile.am): Update.
51270
51271         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51272         * modules/sys_stat (Files, Makefile.am): Update.
51273
51274 2007-04-27  Eric Blake  <ebb9@byu.net>
51275
51276         * lib/freading.h: Improve comments.
51277         * lib/fwriting.h: Likewise.
51278         * lib/fflush.c: Likewise.
51279
51280         Fix closein for mingw.
51281         * modules/closein-tests: Add tests for closein.
51282         * tests/test-closein.c: New file.
51283         * tests/test-closein.sh: Likewise.
51284         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51285         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51286
51287 2007-04-27  Bruno Haible  <bruno@clisp.org>
51288
51289         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51290         version is < 6.
51291         * lib/math_.h [__DECC]: Likewise.
51292         * lib/stdio_.h [__DECC]: Likewise.
51293         * lib/stdlib_.h [__DECC]: Likewise.
51294         * lib/string_.h [__DECC]: Likewise.
51295         * lib/time_.h [__DECC]: Likewise.
51296         * lib/wchar_.h [__DECC]: Likewise.
51297         * lib/wctype_.h [__DECC]: Likewise.
51298
51299 2007-04-27  Bruno Haible  <bruno@clisp.org>
51300
51301         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51302
51303 2007-04-27  Bruno Haible  <bruno@clisp.org>
51304
51305         * lib/fflush.c: Add comments.
51306         * modules/fpurge-tests (Depends-on): Add fflush.
51307         * modules/freadable-tests (Depends-on): Likewise.
51308         * modules/fwritable-tests (Depends-on): Likewise.
51309
51310 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51311
51312         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51313         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51314         Report by Bruno Haible <bruno@clisp.org>.
51315
51316 2007-04-26  Eric Blake  <ebb9@byu.net>
51317
51318         Fix fflush on mingw.
51319         * modules/fflush (Depends-on): Add freading.
51320         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51321         but unread data.
51322
51323 2007-04-26  Eric Blake  <ebb9@byu.net>
51324         and Bruno Haible  <bruno@clisp.org>
51325
51326         Implement freading and fwriting.
51327         * lib/freading.c: New file.
51328         * lib/freading.h: Likewise.
51329         * m4/freading.m4: Likewise.
51330         * modules/freading: Likewise.
51331         * modules/freading-tests: Likewise.
51332         * tests/test-freading.c: Likewise.
51333         * lib/fwriting.c: New file.
51334         * lib/fwriting.h: Likewise.
51335         * m4/fwriting.m4: Likewise.
51336         * modules/fwriting: Likewise.
51337         * modules/fwriting-tests: Likewise.
51338         * tests/test-fwriting.c: Likewise.
51339         * MODULES.html.sh (File stream based Input/Output): Mention them.
51340
51341 2007-04-26  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51344         'long' when we assume it.
51345         Suggested by Eric Blake.
51346
51347 2007-04-26  Bruno Haible  <bruno@clisp.org>
51348
51349         Ensure fseeko, ftello are declared on glibc systems.
51350         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51351         * modules/fseeko (configure.ac-early): Likewise.
51352         * modules/ftello (configure.ac-early): Likewise.
51353         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51354         AC_FUNC_FSEEKO for this.
51355         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51356         (gl_CHECK_FSEEKO): Remove macro.
51357
51358 2007-04-26  Bruno Haible  <bruno@clisp.org>
51359
51360         * tests/test-fflush.c (main): Also check the ftell result after
51361         fflush and fseek/fseeko.
51362         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51363         file descriptor position cache in the stream.
51364         * lib/fseeko.c (rpl_fseeko): Likewise.
51365
51366 2007-04-26  Bruno Haible  <bruno@clisp.org>
51367
51368         * modules/fflush-tests (Depends-on): Add fseeko.
51369
51370 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51371             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51372
51373         * lib/argz_.h: ensure error_t definition is obtained in same
51374         mechanism system argz.h would have.
51375         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51376         argz facilities are known bad.  Err on the side of caution if
51377         cross-compiling.
51378
51379 2007-04-25  Eric Blake  <ebb9@byu.net>
51380
51381         * lib/fpurge.c (includes): Use stdlib.h for free.
51382         * tests/test-fflush.c (main): Also test fflush-fseeko.
51383
51384 2007-04-25  Bruno Haible  <bruno@clisp.org>
51385
51386         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51387         * lib/fseeko.c: New file.
51388         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51389         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51390         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51391         gl_FUNC_FSEEKO.
51392         (gl_FUNC_FSEEKO): Invoke it.
51393         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51394         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51395         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51396
51397 2007-04-25  Bruno Haible  <bruno@clisp.org>
51398
51399         * modules/fflush (Depends-on): Add ftello.
51400
51401 2007-04-25  Bruno Haible  <bruno@clisp.org>
51402
51403         * modules/ftello-tests: New file.
51404         * tests/test-ftello.c: New file.
51405
51406         * modules/ftello: New file.
51407         * m4/ftello.m4: New file.
51408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51409         HAVE_FTELLO.
51410         * lib/stdio_.h (ftello): New declaration.
51411         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51412         HAVE_FTELLO.
51413
51414 2007-04-25  Bruno Haible  <bruno@clisp.org>
51415
51416         * modules/fseeko-tests: New file.
51417         * tests/test-fseeko.c: New file.
51418
51419         * modules/fseeko: New file.
51420         * m4/fseeko.m4: New file.
51421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51422         HAVE_FSEEKO.
51423         * lib/stdio_.h (fseeko): New declaration.
51424         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51425         HAVE_FSEEKO.
51426
51427 2007-04-25  Bruno Haible  <bruno@clisp.org>
51428
51429         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51430
51431 2007-04-25  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51434         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51435         * tests/test-unistd.c: Likewise.
51436         * tests/test-fcntl.c: Likewise.
51437
51438 2007-04-23  Eric Blake  <ebb9@byu.net>
51439
51440         * lib/fflush.c: Fix missing include.
51441         Reported by Bruno Haible.
51442
51443 2007-04-23  Bruno Haible  <bruno@clisp.org>
51444
51445         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51446         Reported by Eric Blake.
51447
51448 2007-04-23  Bruno Haible  <bruno@clisp.org>
51449
51450         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51451
51452 2007-04-23  Bruno Haible  <bruno@clisp.org>
51453
51454         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51455
51456 2007-04-23  Bruno Haible  <bruno@clisp.org>
51457
51458         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51459         Needed on HP-UX 11.
51460
51461 2007-04-16  Eric Blake  <ebb9@byu.net>
51462
51463         Make fflush rely on fpurge.
51464         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51465         open coding all variants.
51466         * modules/fflush (Depends-on): Add fpurge and unistd.
51467         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51468         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51469
51470         Fix --with-tests compilation on cygwin.
51471         * modules/argmatch-tests (Makefile.am): List gnulib library first
51472         in LDADD.
51473         * modules/argp-tests (Makefile.am): Likewise.
51474         * modules/array-list-tests (Makefile.am): Likewise.
51475         * modules/array-oset-tests (Makefile.am): Likewise.
51476         * modules/avltree-list-tests (Makefile.am): Likewise.
51477         * modules/avltree-oset-tests (Makefile.am): Likewise.
51478         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51479         * modules/carray-list-tests (Makefile.am): Likewise.
51480         * modules/dirname-tests (Makefile.am): Likewise.
51481         * modules/frexp-tests (Makefile.am): Likewise.
51482         * modules/isnanl-tests (Makefile.am): Likewise.
51483         * modules/linked-list-tests (Makefile.am): Likewise.
51484         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51485         * modules/lock-tests (Makefile.am): Likewise.
51486         * modules/rbtree-list-tests (Makefile.am): Likewise.
51487         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51488         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51489         * modules/tls-tests (Makefile.am): Likewise.
51490         * modules/tsearch-tests (Makefile.am): Likewise.
51491         * modules/xvasprintf-tests (Makefile.am): Likewise.
51492
51493         Fix fpurge for cygwin.
51494         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51495         value.
51496         * modules/fpurge-tests (Depends-on): Clean up trash.
51497
51498 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51499
51500         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51501
51502         * m4/autobuild.m4: Re-indent.
51503
51504 2007-04-13  Bruno Haible  <bruno@clisp.org>
51505
51506         * modules/fpurge-tests: New file.
51507         * tests/test-fpurge.c: New file.
51508
51509         * modules/fpurge: New file.
51510         * lib/fpurge.h: New file.
51511         * lib/fpurge.c: New file.
51512         * m4/fpurge.m4: New file.
51513
51514 2007-04-13  Bruno Haible  <bruno@clisp.org>
51515
51516         * modules/fbufmode-tests: New file.
51517         * tests/test-fbufmode.c: New file.
51518
51519         * modules/fbufmode: New file.
51520         * lib/fbufmode.h: New file.
51521         * lib/fbufmode.c: New file.
51522         * m4/fbufmode.m4: New file.
51523
51524 2007-04-13  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/fwritable-tests: New file.
51527         * tests/test-fwritable.c: New file.
51528
51529         * modules/fwritable: New file.
51530         * lib/fwritable.h: New file.
51531         * lib/fwritable.c: New file.
51532         * m4/fwritable.m4: New file.
51533
51534 2007-04-13  Bruno Haible  <bruno@clisp.org>
51535
51536         * modules/freadable-tests: New file.
51537         * tests/test-freadable.c: New file.
51538
51539         * modules/freadable: New file.
51540         * lib/freadable.h: New file.
51541         * lib/freadable.c: New file.
51542         * m4/freadable.m4: New file.
51543
51544 2007-04-13  Bruno Haible  <bruno@clisp.org>
51545
51546         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51547         MOSTLYCLEANFILES.
51548
51549 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51550
51551         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51552         gzip bootstrap.conf to avoid dragging in i18n machinery.
51553         (gnulib_tool_option): Use it.
51554
51555 2007-04-13  Bruno Haible  <bruno@clisp.org>
51556
51557         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51558         %F directives.
51559         * tests/test-vasprintf-posix.c (test_function): Likewise.
51560         * tests/test-snprintf-posix.h (test_function): Likewise.
51561         * tests/test-sprintf-posix.h (test_function): Likewise.
51562         * tests/test-fprintf-posix.h (test_function): Likewise.
51563         * tests/test-printf-posix.h (test_function): Likewise.
51564         * tests/test-fprintf-posix.out: Likewise.
51565
51566 2007-04-13  Bruno Haible  <bruno@clisp.org>
51567
51568         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51569         * modules/tls-tests (configure.ac): Likewise.
51570         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51571
51572 2007-04-13  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/tls.c (glthread_tls_get): Fix return type.
51575         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51576
51577 2007-04-12  Eric Blake  <ebb9@byu.net>
51578
51579         * modules/gettime (Depends-on): Remove gettime.
51580         Reported by Dmitry V. Levin.
51581
51582 2007-04-12  Bruno Haible  <bruno@clisp.org>
51583
51584         * modules/fflush (Include): Mention <stdio.h>.
51585         * modules/strtoimax (Include): Mention <inttypes.h>.
51586         * modules/strtoumax (Include): Likewise.
51587
51588 2007-04-12  Eric Blake  <ebb9@byu.net>
51589
51590         * .cvsignore: New file.
51591         * .gitignore: Likewise.
51592
51593 2007-04-12  Bruno Haible  <bruno@clisp.org>
51594
51595         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51596         not before, since $(LDADD) often contains libgnu.a.
51597         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51598         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51599         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51600         Needed on Cygwin.
51601
51602 2007-04-12  Eric Blake  <ebb9@byu.net>
51603
51604         Work around glibc's failure to flush stdin on fclose.
51605         * lib/closein.c (close_stdin): Flush stdin before closing.
51606
51607         Work around glibc's failure to reset seekable stdin on exit.
51608         * modules/closein: New module.
51609         * lib/closein.c: New file.
51610         * lib/closein.h: Likewise.
51611         * m4/closein.m4: Likewise.
51612         * MODULES.html.sh (File stream based Input/Output): Document it.
51613
51614 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51615
51616         * gnulib-tool: Rename generated 'autobuild' script to
51617         'do-autobuild' in --create-megatestdir output.
51618
51619         * doc/gnulib.texi (Build robot for gnulib): Fix.
51620
51621 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51622
51623         * modules/sysexits (Depends-on): Add absolute-header.
51624
51625 2007-04-12  Eric Blake  <ebb9@byu.net>
51626
51627         No need to preserve errno on success.
51628         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51629         Reported by Bruno Haible.
51630
51631 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51632
51633         * MODULES.html.sh (Support for maintaining and releasing
51634         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51635
51636 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51637
51638         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51639
51640 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51641
51642         * modules/autobuild: New module.
51643
51644         * m4/autobuild.m4: New file.
51645
51646 2007-04-11  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51649         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51650         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51651         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51653         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51654         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51656         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51657         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51658         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51659         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51660         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51662         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51663         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51665         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51666         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51667         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51668         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51669         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51671         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51672         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51674         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51675         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51676         Reported by Eric Blake.
51677
51678 2007-04-11  Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51681
51682 2007-04-10  Bruno Haible  <bruno@clisp.org>
51683
51684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51685         for NaN and Infinity. Needed on FreeBSD 6.1.
51686         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51687         regarding results for "%010a" of Infinity and NaN.
51688         * tests/test-vasprintf-posix.c (test_function): Likewise.
51689         * tests/test-snprintf-posix.h (test_function): Likewise.
51690         * tests/test-sprintf-posix.h (test_function): Likewise.
51691         * tests/test-fprintf-posix.h (test_function): Likewise.
51692         * tests/test-printf-posix.h (test_function): Likewise.
51693         * tests/test-fprintf-posix.out: Likewise.
51694
51695 2007-04-10  Bruno Haible  <bruno@clisp.org>
51696
51697         * modules/locale-tests: New file.
51698         * tests/test-locale.c: New file.
51699
51700         * modules/locale: New file.
51701         * lib/locale_.h: New file.
51702         * m4/locale_h.m4: New file.
51703
51704 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51705             Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51708         be determined, test for availability of the copysignf, copysign,
51709         copysignl functions.
51710         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51711         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51712         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51713
51714 2007-04-09  Eric Blake  <ebb9@byu.net>
51715
51716         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51717         * modules/stdio (Makefile.am): Support fflush.
51718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51719         * modules/fflush: New file.
51720         * lib/fflush.c: Likewise.
51721         * m4/fflush.m4: Likewise.
51722         * modules/fflush-tests: New test.
51723         * tests/test-fflush.c: Likewise.
51724         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51725
51726 2007-04-06  Bruno Haible  <bruno@clisp.org>
51727
51728         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51729         (VASNPRINTF): Use signbit for faster determination whether to print a
51730         minus sign.
51731         * modules/vasnprintf (Files): Remove lib/float+.h.
51732         * modules/fprintf-posix (Depends-on): Add signbit.
51733         * modules/snprintf-posix (Depends-on): Likewise.
51734         * modules/sprintf-posix (Depends-on): Likewise.
51735         * modules/vasnprintf-posix (Depends-on): Likewise.
51736         * modules/vasprintf-posix (Depends-on): Likewise.
51737         * modules/vfprintf-posix (Depends-on): Likewise.
51738         * modules/vsnprintf-posix (Depends-on): Likewise.
51739         * modules/vsprintf-posix (Depends-on): Likewise.
51740
51741 2007-04-06  Bruno Haible  <bruno@clisp.org>
51742
51743         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51744         * tests/test-frexpl.c (main): Likewise.
51745         * tests/test-ldexpl.c (main): Likewise.
51746         * modules/frexp-tests (Depends-on): Add signbit.
51747         * modules/frexpl-tests (Depdends-on): Likewise.
51748         * modules/ldexpl-tests (Depdends-on): Likewise.
51749
51750 2007-04-06  Bruno Haible  <bruno@clisp.org>
51751
51752         * modules/signbit-tests: New file.
51753         * tests/test-signbit.c: New file.
51754
51755         * modules/signbit: New file.
51756         * lib/signbitf.c: New file.
51757         * lib/signbitd.c: New file.
51758         * lib/signbitl.c: New file.
51759         * m4/signbit.m4: New file.
51760         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51761         (signbit): New macro.
51762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51763         REPLACE_SIGNBIT.
51764         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51765         REPLACE_FREXPL into math.h.
51766
51767 2007-04-06  Bruno Haible  <bruno@clisp.org>
51768
51769         * modules/isnanf-nolibm-tests: New file.
51770         * tests/test-isnanf.c: New file.
51771
51772         * modules/isnanf-nolibm: New file.
51773         * lib/isnanf.h: New file.
51774         * lib/isnanf.c: New file.
51775         * lib/isnan.c: Consider the USE_FLOAT macro.
51776         * m4/isnanf.m4: New file.
51777
51778 2007-04-06  Bruno Haible  <bruno@clisp.org>
51779
51780         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51781         (Link): New section.
51782
51783         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51784
51785 2007-04-06  Bruno Haible  <bruno@clisp.org>
51786
51787         Assume the 'long double' type.
51788         * m4/longdouble.m4: Remove file.
51789         * config/srclist.txt: Don't mention longdouble.m4.
51790         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51791         * lib/float+.h: Likewise.
51792         * lib/frexp.c: Likewise.
51793         * lib/printf-args.h: Likewise.
51794         * lib/printf-args.c: Likewise.
51795         * lib/printf-frexp.c: Likewise.
51796         * lib/printf-parse.c: Likewise.
51797         * lib/vasnprintf.c: Likewise.
51798         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51799         * m4/intl.m4: Likewise.
51800         * m4/isnanl.m4: Likewise.
51801         * m4/printf.m4: Likewise.
51802         * m4/printf-frexpl.m4: Likewise.
51803         * m4/vasnprintf.m4: Likewise.
51804         * modules/allocsa (Files): Remove m4/longdouble.m4.
51805         * modules/gettext (Files): Likewise.
51806         * modules/relocatable-prog-wrapper (Files): Likewise.
51807         * modules/vasnprintf (Files): Likewise.
51808         * modules/isnanl (Files): Likewise.
51809         (Include): Simplify.
51810         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51811         (Include): Simplify.
51812         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51813         (Include): Simplify.
51814         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51815         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51816         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51817         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51818         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51819         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51820         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51821         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51822         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51823         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51824         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51825         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51826         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51827         * tests/test-isnanl.c: Likewise.
51828         * tests/test-snprintf-posix.h: Likewise.
51829         * tests/test-sprintf-posix.h: Likewise.
51830         * tests/test-vasnprintf-posix.c: Likewise.
51831         * tests/test-vasnprintf-posix2.c: Likewise.
51832         * tests/test-vasprintf-posix.c: Likewise.
51833
51834 2007-04-06  Bruno Haible  <bruno@clisp.org>
51835
51836         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51837         * lib/math_.h [__DECC]: Include the overridden include file through
51838         #include_next, outside the double-inclusion guard.
51839         * lib/stdio_.h [__DECC]: Likewise.
51840         * lib/stdlib_.h [__DECC]: Likewise.
51841         * lib/string_.h [__DECC]: Likewise.
51842         * lib/time_.h [__DECC]: Likewise.
51843         * lib/wchar_.h [__DECC]: Likewise.
51844         * lib/wctype_.h [__DECC]: Likewise.
51845         * lib/inttypes_.h [__DECC]: Likewise.
51846         Reported by Albert Chin <china@thewrittenword.com> in
51847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51848
51849 2007-04-04  Eric Blake  <ebb9@byu.net>
51850
51851         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51852         1.5.x.
51853
51854 2007-04-04  Bruno Haible  <bruno@clisp.org>
51855
51856         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51857         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51858
51859 2007-04-04  Bruno Haible  <bruno@clisp.org>
51860
51861         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51862         results for "%010a" of Infinity and NaN.
51863         * tests/test-vasprintf-posix.c (test_function): Likewise.
51864         * tests/test-snprintf-posix.h (test_function): Likewise.
51865         * tests/test-sprintf-posix.h (test_function): Likewise.
51866         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51867         * tests/test-printf-posix.h (test_function): Likewise.
51868         * tests/test-fprintf-posix.out: Update.
51869         Needed for FreeBSD 6.1.
51870
51871 2007-04-04  Bruno Haible  <bruno@clisp.org>
51872
51873         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51874         directly used by the gnulib modules nor by gnulib-tool.
51875
51876 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51877
51878         * DEPENDENCIES: Give overall description of version dependency
51879         desirability.  Use more-typical names for apps.
51880         Add shell, coreutils, diffutils, grep, tar, gzip.
51881
51882 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51883
51884         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51885
51886 2007-04-04  Karl Berry  <karl@gnu.org>
51887
51888         * MODULES.html.sh (func_module): missing '.
51889
51890 2007-04-03  Bruno Haible  <bruno@clisp.org>
51891
51892         * modules/argmatch-tests (Makefile.am): New variable
51893         test_argmatch_LDADD.
51894         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51895         * modules/array-list-tests (Makefile.am): New variable
51896         test_array_list_LDADD.
51897         * modules/array-oset-tests (Makefile.am): New variable
51898         test_array_oset_LDADD.
51899         * modules/avltree-list-tests (Makefile.am): New variable
51900         test_avltree_list_LDADD.
51901         * modules/avltree-oset-tests (Makefile.am): New variable
51902         test_avltree_oset_LDADD.
51903         * modules/avltreehash-list-tests (Makefile.am): New variable
51904         test_avltreehash_list_LDADD.
51905         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51906         test_canonicalize_lgpl_LDADD.
51907         * modules/carray-list-tests (Makefile.am): New variable
51908         test_carray_list_LDADD.
51909         * modules/dirname-tests (Makefile.am): New variable
51910         test_dirname_LDADD.
51911         * modules/linked-list-tests (Makefile.am): New variable
51912         test_linked_list_LDADD.
51913         * modules/linkedhash-list-tests (Makefile.am): New variable
51914         test_linkedhash_list_LDADD.
51915         * modules/rbtree-list-tests (Makefile.am): New variable
51916         test_rbtree_list_LDADD.
51917         * modules/rbtree-oset-tests (Makefile.am): New variable
51918         test_rbtree_oset_LDADD.
51919         * modules/rbtreehash-list-tests (Makefile.am): New variable
51920         test_rbtreehash_list_LDADD.
51921         * modules/xvasprintf-tests (Makefile.am): New variable
51922         test_xvasprintf_LDADD.
51923         Reported by Eric Blake.
51924
51925 2007-04-03  Eric Blake  <ebb9@byu.net>
51926
51927         * DEPENDENCIES: Weaken m4 requirements.
51928
51929 2007-04-03  Bruno Haible  <bruno@clisp.org>
51930
51931         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51932         * modules/isnanl-tests (configure.ac): Likewise.
51933
51934 2007-04-03  Ben Pfaff  <blp@gnu.org>
51935
51936         * modules/iconv_open: Add $(srcdir)/ to source directory
51937         references in Makefile fragments that call gperf, to fix VPATH
51938         builds.
51939
51940 2007-04-03  Bruno Haible  <bruno@clisp.org>
51941
51942         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51943         * lib/ldexpl.c: Undo last change.
51944
51945 2007-04-03  Bruno Haible  <bruno@clisp.org>
51946
51947         * modules/printf-frexpl (Depends-on): Undo last change.
51948         (Files): Add m4/ldexpl.m4.
51949
51950 2007-04-03  Bruno Haible  <bruno@clisp.org>
51951
51952         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51953         * modules/isnanl (Link): New section.
51954
51955         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51956         * modules/frexp (Link): New section.
51957
51958         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51959         * modules/frexpl (Link): New section.
51960
51961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51962         * modules/ldexpl (Link): New section.
51963
51964 2007-04-03  Bruno Haible  <bruno@clisp.org>
51965
51966         * modules/TEMPLATE-EXTENDED: New file.
51967         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51968
51969 2007-04-03  Bruno Haible  <bruno@clisp.org>
51970
51971         * DEPENDENCIES: New file.
51972         Suggested by Simon Josefsson.
51973
51974 2007-04-03  Bruno Haible  <bruno@clisp.org>
51975
51976         * doc/gnulib.texi: Escape @.
51977
51978 2007-04-03  James Youngman  <jay@gnu.org>
51979         and Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51982         birthtime on all systems that have birthtime, not just those which
51983         use st_birthtimensec rather than st_birthtim.  Putting zero in
51984         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51985         that the birth time is not available for files on an NFS mount.
51986
51987 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51988
51989         * modules/memxor: Move back from crypto/, suggested by Bruno.
51990         * modules/crypto/hmac-sha1: Fix memxor dependency.
51991
51992         * modules/crypto/gc: Moved from ../.
51993
51994 2007-04-02  Eric Blake  <ebb9@byu.net>
51995
51996         * lib/ldexpl.c (includes): Avoid libm.
51997
51998         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51999
52000 2007-04-02  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52003         on IRIX.
52004
52005 2007-04-02  Bruno Haible  <bruno@clisp.org>
52006
52007         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52008         x86 or x86_64 platforms running MacOS X.
52009         Reported by Ryan Schmidt <@ryandesign.com>.
52010
52011 2007-04-02  Bruno Haible  <bruno@clisp.org>
52012
52013         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52014         i386.
52015
52016 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52017
52018         * modules/crypto/arcfour: Moved from ../.
52019         * modules/crypto/arcfour-tests: Moved from ../.
52020         * modules/crypto/arctwo: Moved from ../.
52021         * modules/crypto/arctwo-tests: Moved from ../.
52022         * modules/crypto/des: Moved from ../.
52023         * modules/crypto/des-tests: Moved from ../.
52024         * modules/crypto/gc-arcfour: Moved from ../.
52025         * modules/crypto/gc-arcfour-tests: Moved from ../.
52026         * modules/crypto/gc-arctwo: Moved from ../.
52027         * modules/crypto/gc-arctwo-tests: Moved from ../.
52028         * modules/crypto/gc-des: Moved from ../.
52029         * modules/crypto/gc-des-tests: Moved from ../.
52030         * modules/crypto/gc-hmac-md5: Moved from ../.
52031         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52032         * modules/crypto/gc-hmac-sha1: Moved from ../.
52033         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52034         * modules/crypto/gc-md2: Moved from ../.
52035         * modules/crypto/gc-md2-tests: Moved from ../.
52036         * modules/crypto/gc-md4: Moved from ../.
52037         * modules/crypto/gc-md4-tests: Moved from ../.
52038         * modules/crypto/gc-md5: Moved from ../.
52039         * modules/crypto/gc-md5-tests: Moved from ../.
52040         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52041         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52042         * modules/crypto/gc-random: Moved from ../.
52043         * modules/crypto/gc-rijndael: Moved from ../.
52044         * modules/crypto/gc-rijndael-tests: Moved from ../.
52045         * modules/crypto/gc-sha1: Moved from ../.
52046         * modules/crypto/gc-sha1-tests: Moved from ../.
52047         * modules/crypto/gc-tests: Moved from ../.
52048         * modules/crypto/hmac-md5: Moved from ../.
52049         * modules/crypto/hmac-md5-tests: Moved from ../.
52050         * modules/crypto/hmac-sha1: Moved from ../.
52051         * modules/crypto/hmac-sha1-tests: Moved from ../.
52052         * modules/crypto/md2: Moved from ../.
52053         * modules/crypto/md2-tests: Moved from ../.
52054         * modules/crypto/md4: Moved from ../.
52055         * modules/crypto/md4-tests: Moved from ../.
52056         * modules/crypto/md5: Moved from ../.
52057         * modules/crypto/md5-tests: Moved from ../.
52058         * modules/crypto/memxor: Moved from ../.
52059         * modules/crypto/rijndael: Moved from ../.
52060         * modules/crypto/rijndael-tests: Moved from ../.
52061         * modules/crypto/sha1: Moved from ../.
52062
52063 2007-03-30  James Youngman  <jay@gnu.org>
52064
52065         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52066         rename() to change the ctime of a file (because ctime is unaffected
52067         by rename on jfs2 on AIX 5.1).
52068         (main): Start by doing cleanup, in case a previous run failed leaving
52069         test files behind.
52070
52071 2007-03-31  Bruno Haible  <bruno@clisp.org>
52072
52073         Support old proprietary implementations of iconv.
52074         * modules/iconv_open: New file.
52075         * lib/iconv_.h: New file.
52076         * m4/iconv_h.m4: New file.
52077         * lib/iconv_open.c: New file.
52078         * lib/iconv_open-aix.gperf: New file.
52079         * lib/iconv_open-hpux.gperf: New file.
52080         * lib/iconv_open-irix.gperf: New file.
52081         * lib/iconv_open-osf.gperf: New file.
52082         * m4/iconv_open.m4: New file.
52083         * modules/linebreak (Depends-on): Add iconv_open.
52084         * modules/striconv (Depends-on): Likewise.
52085         * modules/striconveh (Depends-on): Likewise.
52086         * modules/unicodeio (Depends-on): Likewise.
52087         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52088         (iconv_t)(-1).
52089         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52090         conversion if cd is (iconv_t)(-1).
52091         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52092         is not possible.
52093
52094 2007-03-31  Bruno Haible  <bruno@clisp.org>
52095
52096         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52097         work on Solaris either. Protect also second use of "autodetect_jp".
52098
52099 2007-03-31  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52102         the function is not present.
52103
52104 2007-03-31  Bruno Haible  <bruno@clisp.org>
52105
52106         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52107         the function is not present.
52108
52109 2007-03-31  Bruno Haible  <bruno@clisp.org>
52110
52111         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52112         a bug in HP-UX iconv_open().
52113
52114 2007-03-31  Bruno Haible  <bruno@clisp.org>
52115
52116         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52117         (Mathematics <math.h>): New section, add fpieee.
52118         (Input/output <stdio.h>): Add fseterr.
52119         (Mathematics <math.h>): New section, add printf-frexp.
52120         (Container data structures): Add sublist.
52121         (Core language properties): Add fpucw, inline.
52122         (Functions for greatest-width integer types <inttypes.h>): Add
52123         imaxabs, imaxdiv, inttypes.
52124         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52125         isnanl-nolibm, ldexp.
52126         (Mathematics <math.h>): New section, add printf-frexpl.
52127         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52128         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52129         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52130         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52131         (Unicode string functions): Add unistr/u*-mbtoucr.
52132         (Java): Add javacomp-script, javaexec-script.
52133         (C#): Add csharpcomp-script, csharpexec-script.
52134         (Support for building libraries and executables): Add havelib,
52135         relocatable-*.
52136         (Support for maintaining and releasing projects): Renamed from
52137         'Support for maintaining and release projects'. Add announce-gen.
52138
52139 2007-03-31  Bruno Haible  <bruno@clisp.org>
52140
52141         * README: Talk primarily about git.
52142         (git and CVS): Renamed from CVS.
52143         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52144         gnulib is available through git.
52145         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52146
52147 2007-03-30  Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52150         * lib/poll_.h: Likewise.
52151         * lib/stat_.h: Likewise.
52152         * lib/sys_time_.h: Likewise.
52153         * lib/sysexit_.h: Likewise.
52154         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52155         * lib/stdbool_.h: Likewise.
52156         * lib/byteswap_.h: Add double-inclusion guard.
52157
52158 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52159
52160         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52161
52162 2007-03-30  Karl Berry  <karl@gnu.org>
52163
52164         * config/srclist-update: double space after USA in the license
52165         substitution, since that's how it's usually (?) written.
52166
52167 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52170         reported by Bruno Haible.
52171
52172 2007-03-29  Bruno Haible  <bruno@clisp.org>
52173
52174         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52175         a bug in AIX iconv().
52176
52177 2007-03-29  Bruno Haible  <bruno@clisp.org>
52178
52179         * modules/ldexpl-tests: New file.
52180         * tests/test-ldexpl.c: New file.
52181
52182 2007-03-29  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/ldexpl.c: Include fpucw.h.
52185         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52186         multiplication.
52187         * modules/ldexpl (Depends-on): Add fpucw.
52188
52189 2007-03-29  Bruno Haible  <bruno@clisp.org>
52190
52191         * modules/ldexpl: New file.
52192         * m4/ldexpl.m4: New file.
52193         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52194         set.
52195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52196         REPLACE_LDEXPL.
52197         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52198         REPLACE_LDEXPL.
52199         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52200         gl_FUNC_LDEXPL_WORKS.
52201         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52202         * modules/mathl (Files): Remove lib/ldexpl.c.
52203         (Depends-on): Add ldexpl.
52204
52205 2007-03-29  Bruno Haible  <bruno@clisp.org>
52206
52207         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52208
52209 2007-03-29  Bruno Haible  <bruno@clisp.org>
52210
52211         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52212         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52213         and possibly also HP-UX.
52214         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52215         work on AIX, IRIX, HP-UX, OSF/1.
52216         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52217         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52218         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52219         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52220         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52221         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52222
52223 2007-03-29  Bruno Haible  <bruno@clisp.org>
52224
52225         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52226
52227 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52228
52229         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52230         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52231
52232 2007-03-29  Eric Blake  <ebb9@byu.net>
52233
52234         * lib/acl-internal.h: Remove redundant include.
52235         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52236         Cygwin when a file is locked.
52237
52238 2007-03-29  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52241         file.
52242         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52243
52244 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52245
52246         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52247         try to remove a parent directory if the child couldn't be removed
52248         (except for the first rmdir, which could fail because the child
52249         doesn't exist).  Problem reported by Jeff Blaine in
52250         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52251
52252 2007-03-28  Bruno Haible  <bruno@clisp.org>
52253
52254         * lib/striconveh.c (utf8conv_carefully): New function.
52255         (mem_cd_iconveh_internal): Invoke it.
52256
52257 2007-03-28  Bruno Haible  <bruno@clisp.org>
52258
52259         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52260         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52261         input.
52262         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52263         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52264         unistr/u8-uctomb.
52265
52266 2007-03-28  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/unistr/u8-mbtoucr: New file.
52269         * lib/unistr/u8-mbtoucr.c: New file.
52270         * modules/unistr/u16-mbtoucr: New file.
52271         * lib/unistr/u16-mbtoucr.c: New file.
52272         * modules/unistr/u16-mbtoucr: New file.
52273         * lib/unistr/u16-mbtoucr.c: New file.
52274         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52275
52276 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52277             Bruno Haible  <bruno@clisp.org>
52278
52279         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52280         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52281         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52282
52283         * m4/stdio_h.m4: Add stubs for vasprintf too.
52284
52285         * modules/stdio: Support vasprintf in sed command.
52286
52287         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52288         vasprintf.h.  Add stdio module indicator.
52289
52290         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52291         vasprintf.h.
52292
52293         * lib/vasprintf.h: File removed.
52294
52295         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52296         * lib/vasprintf.c: Ditto.
52297         * lib/xvasprintf.c: Ditto.
52298         * tests/test-vasprintf-posix.c: Ditto.
52299         * tests/test-vasprintf.c: Ditto.
52300
52301 2007-03-27  Bruno Haible  <bruno@clisp.org>
52302
52303         Make vasnprintf multithread-safe.
52304         * lib/vasnprintf.c (decimal_point_char): New function.
52305         (VASNPRINTF): Use it.
52306         Suggested by Simon Josefsson.
52307
52308 2007-03-27  Eric Blake  <ebb9@byu.net>
52309
52310         Support sub-second birthtime on cygwin.
52311         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52312         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52313         (get_stat_birthtime): Also work with st_birthtim.
52314
52315 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52316
52317         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52318         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52319         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52320         (get_stat_birthtime_ns): Simplify compile-time tests.
52321         (get_stat_birthtime): Change the API to look like
52322         get_stat_mtime etc., except return a negative tv_nsec on error.
52323         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52324         Don't check for "spare" fields.
52325         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52326         or for struct stat.st_birthtime, as these tests aren't used.
52327         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52328
52329 2007-03-27  Bruno Haible  <bruno@clisp.org>
52330
52331         * lib/stat-time.h: Include <sys/stat.h>.
52332
52333 2007-03-27  James Youngman  <jay@gnu.org>
52334
52335         * lib/stat-time.h (get_stat_birthtime): New function for
52336           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52337         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52338           and its variants.
52339         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52340         * modules/stat-time-test: New file.
52341         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52342
52343 2007-03-26  Bruno Haible  <bruno@clisp.org>
52344
52345         Better support of signalling NaNs.
52346         * lib/atanl.c: Include isnanl.h.
52347         (atanl): Perform test for NaN at the beginning of the function and
52348         through a call to isnanl.
52349         * lib/cosl.c: Include isnanl.h.
52350         (cosl): Perform test for NaN at the beginning of the function and
52351         through a call to isnanl.
52352         * lib/ldexpl.c: Include isnanl.h.
52353         (ldexpl): Perform test for NaN through a call to isnanl.
52354         * lib/logl.c: Include isnanl.h.
52355         (logl): Perform test for NaN at the beginning of the function and
52356         through a call to isnanl.
52357         * lib/sinl.c: Include isnanl.h.
52358         (sinl): Perform test for NaN at the beginning of the function and
52359         through a call to isnanl.
52360         * lib/sqrtl.c: Include isnanl.h.
52361         (sqrtl): Perform test for NaN at the beginning of the function and
52362         through a call to isnanl.
52363         * lib/tanl.c: Include isnanl.h.
52364         (tanl): Perform test for NaN at the beginning of the function and
52365         through a call to isnanl.
52366         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52367         * modules/mathl (Depends-on): Add isnanl.
52368
52369 2007-03-26  Eric Blake  <ebb9@byu.net>
52370
52371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52372         regression in logic sense of previous patch.
52373
52374 2007-03-26  Bruno Haible  <bruno@clisp.org>
52375
52376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52377         unportable shell command "if ! ...".
52378         Reported by Ralf Wildenhues.
52379
52380 2007-03-25  Bruno Haible  <bruno@clisp.org>
52381
52382         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52383         <sysexits.h> file, and only add EX_CONFIG.
52384         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52385         absolute file name and whether it is sufficient. Substitute also
52386         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52387         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52388         ABSOLUTE_SYSEXITS_H into sysexits.h.
52389
52390 2007-03-25  Bruno Haible  <bruno@clisp.org>
52391
52392         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52393         hints is NULL.
52394
52395 2007-03-25  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52398         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52399
52400 2007-03-25  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/vasnprintf.c: Include langinfo.h.
52403         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52404         multithread-safe.
52405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52408         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52409         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52410         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52411         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52412         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52413         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52414         Reported by Simon Josefsson.
52415
52416 2007-03-25  Bruno Haible  <bruno@clisp.org>
52417
52418         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52419         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52420         * modules/vasnprintf (Depends-on): Add stdint.
52421
52422 2007-03-25  Bruno Haible  <bruno@clisp.org>
52423
52424         * modules/fpieee: New file.
52425         * m4/fpieee.m4: New file.
52426         * modules/isnan-nolibm (Depends-on): Add fpieee.
52427         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52428         * modules/isnanl (Depends-on): Add fpieee.
52429
52430 2007-03-25  Bruno Haible  <bruno@clisp.org>
52431
52432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52433
52434 2007-03-25  Bruno Haible  <bruno@clisp.org>
52435
52436         Avoid test failures on IRIX 6.5.
52437         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52438         (main): Use it.
52439         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52440         macros.
52441         (main): Use them.
52442
52443 2007-03-25  Bruno Haible  <bruno@clisp.org>
52444
52445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52446         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52447         exists but doesn't work.
52448         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52449         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52451         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52452         math.h.
52453
52454 2007-03-25  Bruno Haible  <bruno@clisp.org>
52455
52456         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52457         returns inf. Needed on IRIX 6.5.
52458
52459 2007-03-25  Bruno Haible  <bruno@clisp.org>
52460
52461         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52462         (main): Use isnanl instead of x != x idiom.
52463         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52464
52465         * tests/test-frexp.c: Include isnan.h.
52466         (main): Use isnan instead of x != x idiom.
52467         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52468
52469 2007-03-25  Bruno Haible  <bruno@clisp.org>
52470
52471         * tests/test-frexp.c (NaN): New function/macro.
52472         (main): Use it instead of 0.0 / 0.0.
52473         * tests/test-isnan.c (NaN): New function/macro.
52474         (main): Use it instead of 0.0 / 0.0.
52475         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52476         (test_function): Use it instead of 0.0 / 0.0.
52477         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52478         (test_function): Use it instead of 0.0 / 0.0.
52479         * tests/test-snprintf-posix.h (NaN): New function/macro.
52480         (test_function): Use it instead of 0.0 / 0.0.
52481         * tests/test-sprintf-posix.h (NaN): New function/macro.
52482         (test_function): Use it instead of 0.0 / 0.0.
52483         * tests/test-fprintf-posix.h (NaN): New function/macro.
52484         (test_function): Use it instead of 0.0 / 0.0.
52485         * tests/test-printf-posix.h (NaN): New function/macro.
52486         (test_function): Use it instead of 0.0 / 0.0.
52487
52488         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52489
52490 2007-03-25  Bruno Haible  <bruno@clisp.org>
52491
52492         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52493
52494 2007-03-25  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/regexec.c (merge_state_with_log): Make static.
52497
52498 2007-03-25  Bruno Haible  <bruno@clisp.org>
52499
52500         * lib/trigl.c (kernel_rem_pio2): Make static.
52501
52502 2007-03-25  Bruno Haible  <bruno@clisp.org>
52503
52504         * lib/sincosl.c (sincosl_table): Make static.
52505
52506 2007-03-25  Bruno Haible  <bruno@clisp.org>
52507
52508         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52509         if the compiler does not support C99.
52510
52511 2007-03-25  Bruno Haible  <bruno@clisp.org>
52512
52513         * modules/time (Makefile.am): Ensure all rule action lines start with a
52514         tab.
52515
52516 2007-03-24  Bruno Haible  <bruno@clisp.org>
52517
52518         * modules/tsearch-tests: New file.
52519         * tests/test-tsearch.sh: New file.
52520         * tests/test-tsearch.c: New file, mostly copied from glibc.
52521
52522         * modules/search-tests: New file.
52523         * tests/test-search.c: New file.
52524
52525         * modules/search: New file.
52526         * lib/search_.h: New file, incorporating lib/tsearch.h.
52527         * m4/search_h.m4: New file.
52528         * lib/tsearch.h: Remove file.
52529         * lib/tsearch.c: Include search.h instead of tsearch.h.
52530         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52531         HAVE_TSEARCH.
52532         * modules/tsearch (Files): Remove lib/tsearch.h.
52533         (Depends-on): Add search.
52534         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52535         (Include): Change tsearch.h into search.h.
52536
52537 2007-03-24  Bruno Haible  <bruno@clisp.org>
52538
52539         * modules/fpucw: New file.
52540         * lib/fpucw.h: New file.
52541         * lib/frexp.c: Include fpucw.h.
52542         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52543         (FUNC): Use them.
52544         * lib/printf-frexp.c: Include fpucw.h.
52545         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52546         (FUNC): Use them.
52547         * lib/vasnprintf.c: Include fpucw.h.
52548         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52549         'long double' calculations.
52550         * tests/test-frexpl.c: Include fpucw.h.
52551         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52552         * tests/test-printf-frexpl.c: Include fpucw.h.
52553         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52554         * modules/frexpl (Depends-on): Add fpucw.
52555         * modules/printf-frexpl (Depends-on): Likewise.
52556         * modules/fprintf-posix (Depends-on): Likewise.
52557         * modules/snprintf-posix (Depends-on): Likewise.
52558         * modules/sprintf-posix (Depends-on): Likewise.
52559         * modules/vasnprintf-posix (Depends-on): Likewise.
52560         * modules/vasprintf-posix (Depends-on): Likewise.
52561         * modules/vfprintf-posix (Depends-on): Likewise.
52562         * modules/vsnprintf-posix (Depends-on): Likewise.
52563         * modules/vsprintf-posix (Depends-on): Likewise.
52564         * modules/frexpl-tests (Depends-on): Likewise.
52565         * modules/printf-frexpl-tests (Depends-on): Likewise.
52566
52567 2007-03-24  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/float+.h: New file.
52570         * lib/isnan.c: Include float+.h.
52571         (SIZE): New macro.
52572         (FUNC): Compare only SIZE bytes of the value.
52573         * lib/vasnprintf.c: Include float+.h.
52574         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52575         SIZEOF_LDBL or SIZEOF_DBL bytes.
52576         * modules/isnan-nolibm (Files): Add lib/float+.h.
52577         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52578         * modules/isnanl (Files): Add lib/float+.h.
52579         * modules/vasnprintf (Files): Add lib/float+.h.
52580
52581 2007-03-24  Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52584         include isnanl-nolibm.h.
52585
52586 2007-03-24  Bruno Haible  <bruno@clisp.org>
52587
52588         * tests/test-read-file.c (main): Don't produce spurious output for
52589         expected situations. Make the test fail if it encountered unexpected
52590         results.
52591
52592 2007-03-24  Bruno Haible  <bruno@clisp.org>
52593
52594         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52595         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52596
52597 2007-03-24  Bruno Haible  <bruno@clisp.org>
52598
52599         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52600
52601 2007-03-24  Bruno Haible  <bruno@clisp.org>
52602
52603         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52604         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52605
52606         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52607         * modules/utf8-ucs4: Turn into a symbolic link to module
52608         unistr/u8-mbtouc.
52609
52610         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52611         utf8-ucs4-unsafe.
52612         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52613         unistr/u8-mbtouc-unsafe.
52614
52615         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52616         * modules/utf16-ucs4: Turn into a symbolic link to module
52617         unistr/u16-mbtouc.
52618
52619         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52620         utf16-ucs4-unsafe.
52621         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52622         unistr/u16-mbtouc-unsafe.
52623
52624         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52625         * modules/ucs4-utf8: Turn into a symbolic link to module
52626         unistr/u8-ubtomb.
52627
52628         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52629         * modules/ucs4-utf16: Turn into a symbolic link to module
52630         unistr/u16-ubtomb.
52631
52632 2007-03-24  Bruno Haible  <bruno@clisp.org>
52633
52634         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52635         Enable the function only if HAVE_INLINE.
52636         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52637         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52638         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52639         Enable the function only if HAVE_INLINE.
52640         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52641         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52642         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52643         Enable the function only if HAVE_INLINE.
52644         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52645         Enable the function only if HAVE_INLINE.
52646         * modules/utf8-ucs4: Update.
52647         * modules/utf8-ucs4-unsafe: Update.
52648         * modules/utf16-ucs4: Update.
52649         * modules/utf16-ucs4-unsafe: Update.
52650         * modules/ucs4-utf8: Update.
52651         * modules/ucs4-utf16: Update.
52652
52653 2007-03-24  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/utf8-ucs4.h: Remove file.
52656         * lib/utf8-ucs4-unsafe.h: Remove file.
52657         * lib/utf16-ucs4.h: Remove file.
52658         * lib/utf16-ucs4-unsafe.h: Remove file.
52659         * lib/ucs4-utf8.h: Remove file.
52660         * lib/ucs4-utf16.h: Remove file.
52661         * lib/unistr.h: Include their previous contents.
52662         * m4/utf-ucs4.m4: Remove file.
52663         * m4/ucs4-utf.m4: Remove file.
52664         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52665         (Depends-on): Add unistr/base.
52666         (configure.ac): Remove gl_UTF_UCS4.
52667         (Makefile.am): Update.
52668         (Include): Change to unistr.h.
52669         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52670         (Depends-on): Add unistr/base.
52671         (configure.ac): Remove gl_UTF_UCS4.
52672         (Makefile.am): Update.
52673         (Include): Change to unistr.h.
52674         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52675         (Depends-on): Add unistr/base.
52676         (configure.ac): Remove gl_UTF_UCS4.
52677         (Makefile.am): Update.
52678         (Include): Change to unistr.h.
52679         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52680         (Depends-on): Add unistr/base.
52681         (configure.ac): Remove gl_UTF_UCS4.
52682         (Makefile.am): Update.
52683         (Include): Change to unistr.h.
52684         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52685         (Depends-on): Add unistr/base.
52686         (configure.ac): Remove gl_UCS4_UTF.
52687         (Makefile.am): Update.
52688         (Include): Change to unistr.h.
52689         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52690         (Depends-on): Add unistr/base.
52691         (configure.ac): Remove gl_UCS4_UTF.
52692         (Makefile.am): Update.
52693         (Include): Change to unistr.h.
52694         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52695         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52696         utf8-ucs4-unsafe.h.
52697         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52698         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52699         utf16-ucs4-unsafe.h.
52700         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52701         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52702         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52703         * lib/unistr/u8-strchr.c: Likewise.
52704         * lib/unistr/u8-strrchr.c: Likewise.
52705         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52706         * lib/unistr/u16-strchr.c: Likewise.
52707         * lib/unistr/u16-strrchr.c: Likewise.
52708         * lib/striconveh.c: Update.
52709         * lib/linebreak.c: Update.
52710
52711 2007-03-24  Bruno Haible  <bruno@clisp.org>
52712
52713         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52714         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52715
52716 2007-03-22  Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52719
52720 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * MODULES.html.sh (File system functions): New module write-any-file.
52723         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52724         * m4/write-any-file.m4: New files.
52725
52726 2007-03-23  Eric Blake  <ebb9@byu.net>
52727
52728         * gnulib-tool: Rearrange space-tab sequences, since some editors
52729         like to eat them.
52730
52731 2007-03-23  Eric Blake  <ebb9@byu.net>
52732
52733         * lib/version-etc.c (version_etc_va): Update license wording to
52734         be more concise.  Recommended by Richard Stallman.
52735
52736 2007-03-22  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/poll.c (MSG_PEEK): New fallback definition.
52739
52740 2007-03-22  Bruno Haible  <bruno@clisp.org>
52741
52742         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52743         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52744         (main): Update.
52745         Fixes a compilation error on BeOS.
52746
52747 2007-03-22  Bruno Haible  <bruno@clisp.org>
52748
52749         * modules/frexpl-tests: New file.
52750         * tests/test-frexpl.c: New file.
52751
52752         * modules/frexpl: New file.
52753         * m4/frexpl.m4: New file.
52754         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52755         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52757         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52758         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52759         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52760
52761 2007-03-22  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/frexpl.c: Share code with lib/frexp.c.
52764         * modules/mathl (Files): Add lib/frexp.c.
52765         (Depends-on): Add isnanl-nolibm.
52766
52767 2007-03-22  Bruno Haible  <bruno@clisp.org>
52768
52769         * modules/printf-frexp (Files): Add m4/frexp.m4.
52770         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52771         only if the found frexp function actually works.
52772
52773 2007-03-22  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/frexp.c: Remove older implementation that uses divisions.
52776
52777 2007-03-21  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/frexp-tests: New file.
52780         * tests/test-frexp.c: New file.
52781
52782         * modules/frexp: New file.
52783         * lib/frexp.c: New file.
52784         * m4/frexp.m4: New file.
52785         * lib/math_.h (frexp): New declaration.
52786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52787         REPLACE_FREXP.
52788         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52789
52790 2007-03-21  Bruno Haible  <bruno@clisp.org>
52791
52792         * modules/isnanl-tests: New file.
52793         * tests/test-isnanl.c: New file.
52794
52795         * modules/isnanl: New file.
52796         * lib/isnanl.h: New file.
52797         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52798         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52799         gl_FUNC_ISNANL_WORKS.
52800         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52801         New macros.
52802
52803 2007-03-21  Bruno Haible  <bruno@clisp.org>
52804
52805         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52806         lib/isnanl.h.
52807         (Include): Update.
52808         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52809         * lib/vasnprintf.c: Update.
52810         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52811         tests/test-isnanl.h, remove tests/test-isnanl.c.
52812         (Makefile.am): Update.
52813         * tests/test-isnanl-nolibm.c: New file.
52814         * tests/test-isnanl.h: New file.
52815         * tests/test-isnanl.c: Remove file.
52816
52817 2007-03-21  Jim Meyering  <jim@meyering.net>
52818
52819         When trying to open ".", treat ESTALE like EACCES.
52820         * lib/savewd.c (savewd_save): Resort to forking not just upon
52821         failure with EACCES, but also when errno is ESTALE.
52822
52823 2007-03-20  Bruno Haible  <bruno@clisp.org>
52824
52825         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52826         Needed on AIX 5.1. Reported by Matthew Woehlke.
52827
52828 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52829
52830         Suggestions by Bruno Haible:
52831         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52832         our own.
52833         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52834         * modules/acl (Depends-on): Add gettext.
52835
52836 2007-03-19  Bruno Haible  <bruno@clisp.org>
52837
52838         * modules/iconvme: Remove file.
52839         * lib/iconvme.h: Remove file.
52840         * lib/iconvme.c: Remove file.
52841         * m4/iconvme.m4: Remove file.
52842
52843 2007-03-19  Bruno Haible  <bruno@clisp.org>
52844
52845         * doc/relocatable-maint.texi: Break long shell script line.
52846         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52847
52848 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52849
52850         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52851         handle file_has_acl.
52852         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52853         * lib/acl.c: Move header inclusions and related macro defns into
52854         lib/acl-internal.h.
52855         (S_ISLNK): Remove defn, since that's now done for us.
52856         (file_has_acl): Move to lib/file-has-acl.c.
52857         Call acl_trivial if available.  This is the crucial part of the fix.
52858         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52859         shared within the library.  Rewrite a bit, partly to make it compatible
52860         with the GNU coding style.
52861         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52862         Remove unnecessary double-quotes.
52863         Don't test for acl_to_text; the build will catch that.
52864         Replace acl_entries if it doesn't exist and it is needed.
52865         Check for -lsec and acl_trivial (as used on Solaris 10).
52866         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52867         lib/file-has-acl.c.
52868         (Depends-on): Add sys_stat, for S_ISLNK.
52869
52870 2007-03-19  Ben Pfaff  <blp@gnu.org>
52871
52872         * doc/gnulib.texi: Fix typos.
52873         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52874
52875 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52876
52877         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52878         If size is zero here, buf must be zero.
52879
52880 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52881
52882         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52883         <bruno@clisp.org>.
52884
52885 2007-03-18  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52888         Suggested by Eric Blake.
52889
52890 2007-03-18  Ben Pfaff  <blp@gnu.org>
52891
52892         * doc/relocatable.texi: Recommend using as prefix a directory
52893         that does not exist and will never be created.  Based on
52894         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52895         and others.
52896
52897 2007-03-17  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/fchownat.c: Include lchown.h.
52900
52901 2007-03-17  Bruno Haible  <bruno@clisp.org>
52902
52903         Fix endless loop when the given allocated size was > INT_MAX.
52904         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52905         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52906         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52907         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52908         * lib/sprintf.c (sprintf): Likewise.
52909
52910 2007-03-17  Bruno Haible  <bruno@clisp.org>
52911
52912         * tests/test-argp-2.sh (func_compare): Output a context diff.
52913
52914 2007-03-17  Bruno Haible  <bruno@clisp.org>
52915
52916         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52917         locale's decimal-point character.
52918
52919 2007-03-17  Bruno Haible  <bruno@clisp.org>
52920
52921         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52922         before comparing it. Needed because on some platforms (e.g. x86) a
52923         'long double' occupies less bytes than sizeof (long double).
52924
52925 2007-03-17  Bruno Haible  <bruno@clisp.org>
52926
52927         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52928         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52929         * tests/test-getaddrinfo.c (simple): Likewise.
52930         * tests/test-read-file.c (main): Likewise.
52931
52932 2007-03-17  Bruno Haible  <bruno@clisp.org>
52933
52934         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52935
52936 2007-03-17  Bruno Haible  <bruno@clisp.org>
52937
52938         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52939         unused variable.
52940
52941 2007-03-17  Bruno Haible  <bruno@clisp.org>
52942
52943         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52944         * tests/test-c-strncasecmp.c: Likewise.
52945
52946 2007-03-17  Bruno Haible  <bruno@clisp.org>
52947
52948         * modules/stdlib (Depends-on): Add unistd.
52949         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52950         Needed for MacOS X 10.3.
52951
52952 2007-03-17  Bruno Haible  <bruno@clisp.org>
52953
52954         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52955
52956 2007-03-17  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52959
52960 2007-03-17  Bruno Haible  <bruno@clisp.org>
52961
52962         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52963         to reflect files copied from gnulib (with or without modifications).
52964         Suggested by Jim Meyering.
52965
52966 2007-03-17  Eric Blake  <ebb9@byu.net>
52967
52968         * NEWS: Document stdlib change from 2007-02-18.
52969
52970 2007-03-17  Jim Meyering  <jim@meyering.net>
52971
52972         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52973         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52974         someone uses a name containing shell meta-characters.
52975         Reported by Alfred M. Szmidt.
52976
52977         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52978
52979 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52980
52981         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52982         and copy gettext configuration files only if configure.ac contains
52983         a use of AM_GNU_GETTEXT_VERSION.
52984
52985 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52986
52987         * build-aux/bootstrap (gnulib_name): New variable.
52988         (gnulib_tool_options): Use it.
52989
52990 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52991
52992         * tests/test-des.c: Use new namespace.
52993
52994 2007-03-15  Bruno Haible  <bruno@clisp.org>
52995
52996         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52997         Reported by James Youngman <jay@gnu.org>.
52998
52999 2007-03-15  Bruno Haible  <bruno@clisp.org>
53000
53001         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53002         declared prototype. Needed with cc on OSF/1 5.1.
53003
53004 2007-03-15  Bruno Haible  <bruno@clisp.org>
53005
53006         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53007         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53008         (struct gl_list_implementation): Add dispose_fn argument to the
53009         'create_empty', 'create' methods.
53010         (struct gl_list_impl_base): Add field 'dispose_fn'.
53011         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53012         argument.
53013         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53014         dispose_fn argument.
53015         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53016         dispose_fn on the dropped values.
53017         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53018         dispose_fn argument.
53019         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53020         dropped values.
53021         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53022         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53023         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53024         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53025         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53026         argument.
53027         (gl_tree_list_free): Call dispose_fn on the dropped values.
53028         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53029         the dropped values.
53030         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53031         Add dispose_fn argument.
53032         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53033         Call dispose_fn on the dropped values.
53034         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53035         Add dispose_fn argument.
53036         (gl_sublist_create): Initialize the 'dispose_fn' field.
53037         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53038         * tests/test-array_list.c (main): Update.
53039         * tests/test-carray_list.c (main): Update.
53040         * tests/test-avltree_list.c (main): Update.
53041         * tests/test-rbtree_list.c (main): Update.
53042         * tests/test-avltreehash_list.c (main): Update.
53043         * tests/test-rbtreehash_list.c (main): Update.
53044         * tests/test-linked_list.c (main): Update.
53045         * tests/test-linkedhash_list.c (main): Update.
53046         * tests/test-array_oset.c (main): Update.
53047
53048 2007-03-15  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53051         (gl_oset_create_empty): Add dispose_fn argument.
53052         (struct gl_oset_implementation): Add dispose_fn argument to
53053         'create_empty' method.
53054         (struct gl_oset_impl_base): Add dispose_fn field.
53055         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53056         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53057         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53058         values.
53059         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53060         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53061         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53062         dropped value.
53063         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53064         dropped value.
53065         * tests/test-array_oset.c (main): Update.
53066         * tests/test-avltree_oset.c (main): Update.
53067         * tests/test-rbtree_oset.c (main): Update.
53068         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53069
53070 2007-03-13  Bruno Haible  <bruno@clisp.org>
53071
53072         * tests/test-stdbool.c (i): Update after last patch.
53073
53074 2007-03-12  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53077         the iswprint macro. Needed on Solaris 2.5.1.
53078
53079 2007-03-12  Bruno Haible  <bruno@clisp.org>
53080
53081         * tests/test-printf-frexp.c (main): Declare x as volatile.
53082
53083 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53084
53085         * doc/gnulib.texi (Build robot for gnulib): New section.
53086
53087 2007-03-12  Jim Meyering  <jim@meyering.net>
53088
53089         * build-aux/bootstrap: New file.
53090         * build-aux/bootstrap.conf: New file, from coreutils.
53091
53092 2007-03-11  Bruno Haible  <bruno@clisp.org>
53093
53094         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53095
53096 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53097
53098         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53099         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53100         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53101
53102 2007-03-11  Bruno Haible  <bruno@clisp.org>
53103
53104         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53105         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53106
53107 2007-03-11  Bruno Haible  <bruno@clisp.org>
53108
53109         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53110         formula. Needed for SunPRO C 5.0.
53111
53112 2007-03-11  Bruno Haible  <bruno@clisp.org>
53113
53114         * modules/long-options (Depends-on): Add getopt.
53115
53116 2007-03-11  Bruno Haible  <bruno@clisp.org>
53117
53118         * modules/modechange (Depends-on): Add stdbool.
53119
53120 2007-03-11  Bruno Haible  <bruno@clisp.org>
53121
53122         * modules/i-ring (Depends-on): Add stdbool.
53123
53124 2007-03-11  Bruno Haible  <bruno@clisp.org>
53125
53126         * modules/gc-des (Depends-on): Add stdbool.
53127
53128 2007-03-11  Bruno Haible  <bruno@clisp.org>
53129
53130         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53131
53132 2007-03-11  Bruno Haible  <bruno@clisp.org>
53133
53134         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53135
53136 2007-03-11  Bruno Haible  <bruno@clisp.org>
53137
53138         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53139
53140 2007-03-11  Bruno Haible  <bruno@clisp.org>
53141
53142         * lib/vasnprintf.c (sprintf): Undefine.
53143
53144 2007-03-11  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53147         initializers in SunPRO C and Compaq C compilers.
53148
53149 2007-03-11  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53152         decrementing code ANSI C compliant.
53153
53154 2007-03-11  Bruno Haible  <bruno@clisp.org>
53155
53156         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53157         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53158
53159 2007-03-11  Bruno Haible  <bruno@clisp.org>
53160
53161         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53162         <stdbool.h> substitute doesn't pass.
53163
53164 2007-03-11  Bruno Haible  <bruno@clisp.org>
53165
53166         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53167
53168 2007-03-11  Bruno Haible  <bruno@clisp.org>
53169
53170         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53171         script, for submission to autobuild.josefsson.org.
53172
53173 2007-03-10  Bruno Haible  <bruno@clisp.org>
53174
53175         * modules/canonicalize-lgpl-tests: New file.
53176         * tests/test-canonicalize-lgpl.sh: New file.
53177         * tests/test-canonicalize-lgpl.c: New file.
53178
53179         * modules/c-strcase-tests: New file.
53180         * tests/test-c-strcase.sh: New file.
53181         * tests/test-c-strcasecmp.c: New file.
53182         * tests/test-c-strncasecmp.c: New file.
53183
53184         * modules/atexit-tests: New file.
53185         * tests/test-atexit.sh: New file.
53186         * tests/test-atexit.c: New file.
53187
53188 2007-03-10  Bruno Haible  <bruno@clisp.org>
53189
53190         * tests/test-binary-io.sh: Use temporary filenames that are not so
53191         likely to clash with those of other tests (in a parallel make).
53192         * tests/test-binary-io.c: Likewise.
53193
53194 2007-03-10  Bruno Haible  <bruno@clisp.org>
53195
53196         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53197         fallback; use #error instead.
53198         Suggested by Simon Josefsson.
53199
53200 2007-03-10  Bruno Haible  <bruno@clisp.org>
53201
53202         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53203         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53204         first and the last.
53205
53206 2007-03-10  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53209
53210 2007-03-10  Bruno Haible  <bruno@clisp.org>
53211
53212         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53213         "make distcheck".
53214         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53215         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53216         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53217
53218 2007-03-10  Bruno Haible  <bruno@clisp.org>
53219
53220         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53221         variable.
53222         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53223         variable.
53224
53225 2007-03-09  Eric Blake  <ebb9@byu.net>
53226         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53227
53228         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53229         types are not being provided by gnulib.
53230         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53231         types are supported.
53232
53233 2007-03-10  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/stdio_.h (__attribute__): New macro.
53236         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53237         vsprintf): Specify __attribute__ __format__ for GCC.
53238         Suggested by Eric Blake.
53239
53240 2007-03-09  Bruno Haible  <bruno@clisp.org>
53241
53242         * modules/printf-posix-tests: New file.
53243         * tests/test-printf-posix.sh: New file.
53244         * tests/test-printf-posix.c: New file.
53245
53246         * modules/printf-posix: New file.
53247         * lib/printf.c: New file.
53248         * m4/printf-posix-rpl.m4: New file.
53249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53250         REPLACE_PRINTF.
53251         * lib/stdio_.h (printf): New declaration.
53252         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53253         ____strfmon____): New macros.
53254         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53255         REPLACE_PRINTF.
53256
53257 2007-03-09  Bruno Haible  <bruno@clisp.org>
53258
53259         * tests/test-vasnprintf-posix2.sh: New file.
53260         * tests/test-vasnprintf-posix2.c: New file.
53261         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53262         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53263         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53264
53265         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53266         a locale dependent decimal point, rather than always '.'.
53267
53268 2007-03-09  Eric Blake  <ebb9@byu.net>
53269
53270         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53271         spite of platforms like Tandem/NSK that define it to -1.
53272
53273 2007-03-08  Bruno Haible  <bruno@clisp.org>
53274
53275         * modules/vprintf-posix-tests: New file.
53276         * tests/test-vprintf-posix.sh: New file.
53277         * tests/test-vprintf-posix.c: New file.
53278         * tests/test-printf-posix.h: New file.
53279
53280         * modules/vprintf-posix: New file.
53281         * lib/vprintf.c: New file.
53282         * m4/vprintf-posix.m4: New file.
53283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53284         REPLACE_VPRINTF.
53285         * lib/stdio_.h (vprintf): New declaration.
53286         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53287         REPLACE_VPRINTF.
53288
53289 2007-03-08  Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/fprintf-posix-tests: New file.
53292         * tests/test-fprintf-posix.sh: New file.
53293         * tests/test-fprintf-posix.c: New file.
53294
53295         * modules/fprintf-posix: New file.
53296         * lib/fprintf.c: New file.
53297         * m4/fprintf-posix.m4: New file.
53298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53299         REPLACE_FPRINTF.
53300         * lib/stdio_.h (fprintf): New declaration.
53301         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53302         REPLACE_FPRINTF.
53303
53304 2007-03-08  Bruno Haible  <bruno@clisp.org>
53305
53306         * modules/vfprintf-posix-tests: New file.
53307         * tests/test-vfprintf-posix.sh: New file.
53308         * tests/test-vfprintf-posix.c: New file.
53309         * tests/test-fprintf-posix.h: New file.
53310         * tests/test-fprintf-posix.out: New file.
53311
53312         * modules/vfprintf-posix: New file.
53313         * lib/vfprintf.c: New file.
53314         * m4/vfprintf-posix.m4: New file.
53315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53316         REPLACE_VFPRINTF.
53317         * lib/stdio_.h (vfprintf): New declaration.
53318         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53319         REPLACE_VFPRINTF.
53320
53321 2007-03-08  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53324
53325 2007-03-08  Bruno Haible  <bruno@clisp.org>
53326
53327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53328         instead of 'expr' invocations.
53329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53333         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53334         Suggested by Paul Eggert.
53335
53336 2007-03-08  Bruno Haible  <bruno@clisp.org>
53337
53338         * modules/fseterr-tests: New file.
53339         * tests/test-fseterr.c: New file.
53340
53341         * modules/fseterr: New file.
53342         * lib/fseterr.h: New file.
53343         * lib/fseterr.c: New file.
53344
53345 2007-03-08  Bruno Haible  <bruno@clisp.org>
53346
53347         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53348         * lib/getopt_.h: Likewise.
53349         * lib/mbswidth.h: Likewise.
53350         * lib/setenv.h: Likewise.
53351         * lib/vasnprintf.h: Likewise.
53352         * lib/vasprintf.h: Likewise.
53353         * lib/verror.h: Likewise.
53354         * lib/xsetenv.h: Likewise.
53355         * lib/xvasprintf.h: Likewise.
53356
53357 2007-03-08  Jim Meyering  <jim@meyering.net>
53358
53359         * users.txt: Add parted.
53360
53361         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53362
53363 2007-03-07  Bruno Haible  <bruno@clisp.org>
53364
53365         * m4/printf.m4: Make the shell script snippets copy&pastable.
53366
53367 2007-03-02  Bruno Haible  <bruno@clisp.org>
53368
53369         * lib/netinet_in_.h: New file.
53370         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53371         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53372         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53373         (Depends-on): Add absolute-header.
53374         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53375         into netinet/in.h.
53376
53377 2007-03-03  Bruno Haible  <bruno@clisp.org>
53378
53379         * lib/sys_select_.h: New file.
53380         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53381         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53382         * modules/sys_select (Files): Add lib/sys_select_.h.
53383         (Depends-on): Add absolute-header.
53384         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53385         into sys/select.h.
53386
53387 2007-03-02  Bruno Haible  <bruno@clisp.org>
53388
53389         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53390         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53391         values.
53392         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53393         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53394         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53395         * modules/sys_socket (Depends-on): Add absolute-header.
53396         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53397         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53398         (Include): Remove requirement of inclusion of <sys/types.h>.
53399
53400 2007-03-02  Bruno Haible  <bruno@clisp.org>
53401
53402         * lib/byteswap_.h (bswap_32): Fix formula.
53403
53404 2007-03-06  Bruno Haible  <bruno@clisp.org>
53405
53406         * modules/sprintf-posix-tests: New file.
53407         * tests/test-sprintf-posix.c: New file.
53408
53409         * modules/sprintf-posix: New file.
53410         * lib/sprintf.c: New file.
53411         * m4/sprintf-posix.m4: New file.
53412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53413         REPLACE_SPRINTF.
53414         * lib/stdio_.h (sprintf): New declaration.
53415         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53416         REPLACE_SPRINTF.
53417
53418 2007-03-06  Bruno Haible  <bruno@clisp.org>
53419
53420         * modules/vsprintf-posix-tests: New file.
53421         * tests/test-vsprintf-posix.c: New file.
53422         * tests/test-sprintf-posix.h: New file.
53423
53424         * modules/vsprintf-posix: New file.
53425         * lib/vsprintf.c: New file.
53426         * m4/vsprintf-posix.m4: New file.
53427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53428         REPLACE_VSPRINTF.
53429         * lib/stdio_.h (vsprintf): New declaration.
53430         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53431         REPLACE_VSPRINTF.
53432
53433 2007-03-06  Bruno Haible  <bruno@clisp.org>
53434
53435         * modules/vsnprintf (Depend-on): Remove minmax.
53436
53437 2007-03-06  Bruno Haible  <bruno@clisp.org>
53438
53439         * modules/snprintf-posix-tests: New file.
53440         * tests/test-snprintf-posix.c: New file.
53441
53442         * modules/snprintf-posix: New file.
53443         * m4/snprintf-posix.m4: New file.
53444         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53445         gl_FUNC_SNPRINTF.
53446         (gl_FUNC_SNPRINTF): Invoke it.
53447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53448         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53449         is set.
53450         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53451
53452 2007-03-06  Bruno Haible  <bruno@clisp.org>
53453
53454         * modules/vsnprintf-posix-tests: New file.
53455         * tests/test-vsnprintf-posix.c: New file.
53456         * tests/test-snprintf-posix.h: New file.
53457
53458         * modules/vsnprintf-posix: New file.
53459         * m4/vsnprintf-posix.m4: New file.
53460         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53461         gl_FUNC_VSNPRINTF.
53462         (gl_FUNC_VSNPRINTF): Invoke it.
53463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53464         * lib/stdio_.h (vsnprintf): Define as a replacement if
53465         REPLACE_VSNPRINTF is set.
53466         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53467
53468 2007-03-06  Bruno Haible  <bruno@clisp.org>
53469
53470         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53471         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53472
53473 2007-03-06  Bruno Haible  <bruno@clisp.org>
53474
53475         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53476         (asinl): Declare also if HAVE_DECL_ASINL is set.
53477         (atanl): Declare also if HAVE_DECL_ATANL is set.
53478         (ceill): Declare also if HAVE_DECL_CEILL is set.
53479         (cosl): Declare also if HAVE_DECL_COSL is set.
53480         (expl): Declare also if HAVE_DECL_EXPL is set.
53481         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53482         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53483         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53484         (logl): Declare also if HAVE_DECL_LOGL is set.
53485         (sinl): Declare also if HAVE_DECL_SINL is set.
53486         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53487         (tanl): Declare also if HAVE_DECL_TANL is set.
53488         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53491         declaration of frexpl, ldexpl.
53492         * modules/printf-frexpl (Depends-on): Add math.
53493         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53494
53495 2007-03-05  Bruno Haible  <bruno@clisp.org>
53496
53497         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53498         frexpl and ldexpl are declared.
53499         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53500
53501 2007-03-05  Bruno Haible  <bruno@clisp.org>
53502
53503         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53504         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53505
53506 2007-03-05  Bruno Haible  <bruno@clisp.org>
53507
53508         * lib/stdio_.h: Include <stddef.h>.
53509
53510 2007-03-05  Bruno Haible  <bruno@clisp.org>
53511
53512         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53513
53514 2007-03-05  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53517         NetBSD 4, from Ralf Wildenhues.
53518
53519 2007-03-04  Bruno Haible  <bruno@clisp.org>
53520
53521         * lib/vasprintf.h: Update #if logic for the case when the functions
53522         exist but are overridden.
53523
53524 2007-03-04  Bruno Haible  <bruno@clisp.org>
53525
53526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53527         implementations: glibc-2.4 and MacOS X 10.3.
53528         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53529         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53530         * tests/test-vasprintf-posix.c (test_function): Likewise.
53531
53532 2007-03-04  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/vasprintf-posix-tests: New file.
53535         * tests/test-vasprintf-posix.c: New file.
53536
53537         * modules/vasprintf-posix: New file.
53538         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53539         defined.
53540         * m4/vasprintf-posix.m4: New file.
53541         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53542         gl_FUNC_VASPRINTF.
53543         (gl_FUNC_VASPRINTF): Invoke it.
53544         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53545         here.
53546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53547
53548 2007-03-04  Bruno Haible  <bruno@clisp.org>
53549
53550         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53551         REPLACE_GETTIMEOFDAY.
53552         * modules/sys_time (Makefile.am): Likewise.
53553         * m4/sys_time_h.m4: Likewise.
53554         * m4/gettimeofday.m4: Likewise.
53555
53556 2007-03-04  Bruno Haible  <bruno@clisp.org>
53557
53558         * modules/vasnprintf-posix-tests: New file.
53559         * tests/test-vasnprintf-posix.c: New file.
53560
53561         * modules/vasnprintf-posix: New file.
53562         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53563         printf-frexpl.h.
53564         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53565         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53566         REPLACE_VASNPRINTF is defined.
53567         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53568         gl_FUNC_VASNPRINTF.
53569         (gl_FUNC_VASNPRINTF): Invoke it.
53570         * m4/vasnprintf-posix.m4: New file.
53571         * m4/printf.m4: New file.
53572
53573 2007-03-04  Bruno Haible  <bruno@clisp.org>
53574
53575         Compile progreloc.c only if --enable-relocatable is specified.
53576         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53577         if --enable-relocatable was specified.
53578         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53579         lib_SOURCES.
53580
53581 2007-03-04  Jim Meyering  <jim@meyering.net>
53582
53583         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53584         Use it consistently, rather than enumerating errno constants.
53585
53586 2007-03-04  Bruno Haible  <bruno@clisp.org>
53587
53588         * modules/xvasprintf-tests: New file.
53589         * tests/test-xvasprintf.c: New file.
53590
53591         * modules/vasprintf-tests: New file.
53592         * tests/test-vasprintf.c: New file.
53593
53594         * modules/vasnprintf-tests: New file.
53595         * tests/test-vasnprintf.c: New file.
53596
53597         * modules/vsnprintf-tests: New file.
53598         * tests/test-vsnprintf.c: New file.
53599
53600         * modules/snprintf-tests: New file.
53601         * tests/test-snprintf.c: New file.
53602
53603 2007-03-04  Bruno Haible  <bruno@clisp.org>
53604
53605         Compile relocatable.c only if --enable-relocatable is specified.
53606         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53607         gl_RELOCATABLE_LIBRARY.
53608         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53609         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53610         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53611         gl_RELOCATABLE_LIBRARY.
53612         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53613         (Makefile.am): Remove lib_SOURCES.
53614         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53615         gl_RELOCATABLE_LIBRARY.
53616         (Makefile.am): Remove lib_SOURCES.
53617         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53618         always.
53619         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53620         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53621
53622 2007-03-04  Bruno Haible  <bruno@clisp.org>
53623
53624         * modules/argmatch-tests: New file.
53625         * tests/test-argmatch.c: New file.
53626
53627         * tests/test-allocsa.c (main): Halve the number of loop runs.
53628
53629         * modules/alloca-opt-tests: New file.
53630         * tests/test-alloca-opt.c: New file.
53631
53632 2007-03-04  Jim Meyering  <jim@meyering.net>
53633
53634         Work around difference between Linux ACLs and Solaris 10 ZFS.
53635         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53636         for EINVAL.
53637
53638 2007-03-03  Bruno Haible  <bruno@clisp.org>
53639
53640         * modules/relocatable-prog (Depends-on): Add back progreloc's
53641         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53642
53643 2007-03-03  Bruno Haible  <bruno@clisp.org>
53644
53645         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53646         * modules/relocatable-lib: New file.
53647
53648 2007-03-03  Bruno Haible  <bruno@clisp.org>
53649
53650         * modules/relocatable-prog: Renamed from modules/relocatable.
53651         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53652
53653 2007-03-03  Bruno Haible  <bruno@clisp.org>
53654
53655         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53656         m4/relocatable-lib.m4.
53657         (Depends-on): Remove 'relocatable'.
53658         (configure.ac): Add gl_RELOCATABLE_NOP.
53659
53660 2007-03-03  Bruno Haible  <bruno@clisp.org>
53661
53662         * modules/relocatable-prog-wrapper: New file.
53663         * modules/relocatable (Depends-on): Add it. Remove all other
53664         dependencies except progname.
53665         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53666
53667         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53668         (gl_FUNC_STRERROR): Nop.
53669         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53670
53671         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53672         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53673
53674         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53675         (gl_FUNC_READLINK): Update.
53676
53677         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53678
53679 2007-03-03  Bruno Haible  <bruno@clisp.org>
53680
53681         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53682         * modules/xreadlink (Depends-on): Add unistd.
53683         * modules/xreadlink-with-size (Depends-on): Likewise.
53684
53685 2007-03-03  Bruno Haible  <bruno@clisp.org>
53686
53687         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53688         extracted from gt_FUNC_SETENV.
53689         (gt_FUNC_SETENV): Remove macro.
53690         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53691         remove gt_FUNC_SETENV.
53692
53693 2007-03-03  Bruno Haible  <bruno@clisp.org>
53694
53695         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53696         ENABLE_RELOCATABLE here.
53697         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53698
53699 2007-03-03  Bruno Haible  <bruno@clisp.org>
53700
53701         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53702         * tests/test-rbtreehash_list.c: Include progname.h.
53703         (main): Call set_program_name.
53704
53705         * modules/rbtree-oset-tests (Depends-on): Add progname.
53706         * tests/test-rbtree_oset.c: Include progname.h.
53707         (main): Call set_program_name.
53708
53709         * modules/rbtree-list-tests (Depends-on): Add progname.
53710         * tests/test-rbtree_list.c: Include progname.h.
53711         (main): Call set_program_name.
53712
53713         * modules/linked-list-tests (Depends-on): Add progname.
53714         * tests/test-linked_list.c: Include progname.h.
53715         (main): Call set_program_name.
53716
53717 2007-03-03  Bruno Haible  <bruno@clisp.org>
53718
53719         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53720         All uses of __restrict changed to _Restrict_.
53721         * lib/glob_.h (__restrict): Remove macro.
53722
53723 2007-03-02  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/gettext (configure.ac): Require gettext infrastructure
53726         from version 0.16.1.
53727
53728 2007-03-02  Bruno Haible  <bruno@clisp.org>
53729
53730         * modules/linkedhash-list-tests (Depends-on): Add progname.
53731         * tests/test-linkedhash_list.c: Include progname.h.
53732         (main): Call set_program_name.
53733
53734         * modules/carray-list-tests (Depends-on): Add progname.
53735         * tests/test-carray_list.c: Include progname.h.
53736         (main): Call set_program_name.
53737
53738         * modules/avltreehash-list-tests (Depends-on): Add progname.
53739         * tests/test-avltreehash_list.c: Include progname.h.
53740         (main): Call set_program_name.
53741
53742         * modules/avltree-oset-tests (Depends-on): Add progname.
53743         * tests/test-avltree_oset.c: Include progname.h.
53744         (main): Call set_program_name.
53745
53746         * modules/avltree-list-tests (Depends-on): Add progname.
53747         * tests/test-avltree_list.c: Include progname.h.
53748         (main): Call set_program_name.
53749
53750         * modules/array-oset-tests (Depends-on): Add progname.
53751         * tests/test-array_oset.c: Include progname.h.
53752         (main): Call set_program_name.
53753
53754         * modules/array-list-tests (Depends-on): Add progname.
53755         * tests/test-array_list.c: Include progname.h.
53756         (main): Call set_program_name.
53757
53758         * modules/argp-tests (Depends-on): Add progname.
53759         * tests/test-argp.c: Include argp.h first. Include progname.h.
53760         (main): Call set_program_name.
53761
53762 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53763
53764         * doc/gnulib-tool.texi (Initial import): Reword description of
53765         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53766         limited effect even if defined after the first system include.
53767
53768 2007-03-01  Bruno Haible  <bruno@clisp.org>
53769
53770         * build-aux/config.libpath: Update to libtool-1.5.22.
53771         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53772
53773 2007-03-01  Bruno Haible  <bruno@clisp.org>
53774
53775         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53776         foo_CFLAGS.
53777         Reported by Ralf Wildenhues.
53778
53779 2007-03-01  Bruno Haible  <bruno@clisp.org>
53780
53781         * build-aux/install-reloc: Remove object files left over by some
53782         compilers.
53783         Reported by Ralf Wildenhues.
53784
53785 2007-03-01  Bruno Haible  <bruno@clisp.org>
53786
53787         * build-aux/install-reloc: Break long lines.
53788
53789 2007-03-01  Bruno Haible  <bruno@clisp.org>
53790
53791         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53792         Reported by Ralf Wildenhues.
53793
53794 2007-03-01  Bruno Haible  <bruno@clisp.org>
53795
53796         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53797         include ordering constraints.
53798
53799 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53800
53801         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53803         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53804         as another example.
53805         * lib/time_.h: Fix misspelling.
53806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53807         Require gl_HEADER_TIME_H_DEFAULTS.
53808         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53809         * m4/time_r.m4 (gl_TIME_R): Likewise.
53810         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53811
53812 2007-03-01  Bruno Haible  <bruno@clisp.org>
53813
53814         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53815         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53816
53817 2007-03-01  Jim Meyering  <jim@meyering.net>
53818
53819         * modules/xreadlink (Maintainer): Add my name.
53820         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53821
53822 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53823             Bruno Haible  <bruno@clisp.org>
53824
53825         * build-aux/install-reloc: Compile also c-ctype.c.
53826         * build-aux/relocatable.sh.in: New file.
53827         * doc/relocatable.texi: New file.
53828         * doc/relocatable-maint.texi: New file.
53829         * doc/gnulib.texi: Include relocatable-maint.texi.
53830         * lib/progreloc.c: Include unistd.h unconditionally.
53831         * lib/relocwrapper.c: Include unistd.h unconditionally.
53832         Include c-ctype.h.
53833         (add_dotbin): Use c_tolower.
53834         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53835         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53836         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53837         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53838         to m4/relocatable-lib.m4.
53839         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53840         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53841         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53842         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53843         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53844         * modules/relocatable: New file.
53845         * modules/relocatable-lib: New file.
53846         * modules/relocatable-script: New file.
53847
53848 2007-02-28  Bruno Haible  <bruno@clisp.org>
53849
53850         Import --enable-relocatable infrastructure.
53851         * build-aux/config.libpath: New file, from GNU gettext.
53852         * build-aux/install-reloc: New file, from GNU gettext.
53853         * build-aux/reloc-ldflags: New file, from GNU gettext.
53854         * lib/relocatable.h: New file, from GNU gettext.
53855         * lib/relocatable.c: New file, from GNU gettext.
53856         * lib/relocwrapper.c: New file, from GNU gettext.
53857         * m4/relocatable.m4: New file, from GNU gettext.
53858
53859 2007-02-28  Bruno Haible  <bruno@clisp.org>
53860
53861         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53862
53863         * modules/xreadlink: New file, from GNU gettext with modifications.
53864         * lib/xreadlink.c: New file, from GNU gettext.
53865         * lib/xreadlink.h: Add comments.
53866         (xreadlink): New declaration.
53867
53868         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53869         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53870         lib/xreadlink-with-size.c.
53871         (configure.ac): Remove gl_XREADLINK invocation.
53872         (Makefile.am): Augment lib_SOURCES.
53873         * m4/xreadlink.m4: Remove file.
53874         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53875         (xreadlink_with_size): Renamed from xreadink.
53876         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53877         * modules/canonicalize (Depends-on): Replace xreadlink with
53878         xreadlink-with-size.
53879         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53880
53881 2007-02-25  Jim Meyering  <jim@meyering.net>
53882
53883         * build-aux/announce-gen: When complaining about excess arguments,
53884         list them.
53885
53886 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53887
53888         * README: Document signed integer overflow situation more
53889         accurately.
53890
53891 2007-02-25  Bruno Haible  <bruno@clisp.org>
53892
53893         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53894         'a' or 'A' conversion.
53895
53896 2007-02-25  Bruno Haible  <bruno@clisp.org>
53897
53898         * modules/filename: Renamed from modules/pathname.
53899         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53900         lib/concatpath.c with lib/concat-filename.c.
53901         (Makefile.am): Update.
53902         (Include): Replace pathname.h with filename.h.
53903         * lib/filename.h: Renamed from lib/pathname.h.
53904         (concatenated_filename): Renamed from concatenated_pathname.
53905         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53906         (concatenated_filename): Renamed from concatenated_pathname.
53907         * lib/findprog.c: Include filename.h instead of pathname.h.
53908         (find_in_path): Update.
53909         * lib/javacomp.c: Include filename.h instead of pathname.h.
53910         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53911         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53912         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53913         is_oldgcj_14_13_usable, is_javac_usable): Update.
53914         * lib/javaexec.c: Include filename.h instead of pathname.h.
53915         (execute_java_class): Update.
53916         * modules/findprog: Update.
53917         * modules/javacomp: Update.
53918         * modules/javaexec: Update.
53919         * MODULES.html.sh (File system functions): Add 'filename', remove
53920         'pathname'.
53921
53922 2007-02-25  Bruno Haible  <bruno@clisp.org>
53923
53924         * modules/printf-frexpl-tests: New file.
53925         * tests/test-printf-frexpl.c: New file.
53926
53927         * modules/printf-frexpl: New file.
53928         * lib/printf-frexpl.h: New file.
53929         * lib/printf-frexpl.c: New file.
53930         * m4/printf-frexpl.m4: New file.
53931
53932 2007-02-25  Bruno Haible  <bruno@clisp.org>
53933
53934         * modules/printf-frexp-tests: New file.
53935         * tests/test-printf-frexp.c: New file.
53936
53937         * modules/printf-frexp: New file.
53938         * lib/printf-frexp.h: New file.
53939         * lib/printf-frexp.c: New file.
53940         * m4/printf-frexp.m4: New file.
53941
53942 2007-02-25  Bruno Haible  <bruno@clisp.org>
53943
53944         Assume automake >= 1.10 for the tests.
53945         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53946         * modules/arctwo-tests: Likewise.
53947         * modules/argp-tests: Likewise.
53948         * modules/avltree-list-tests: Likewise.
53949         * modules/avltree-oset-tests: Likewise.
53950         * modules/avltreehash-list-tests: Likewise.
53951         * modules/carray-list-tests: Likewise.
53952         * modules/crc-tests: Likewise.
53953         * modules/des-tests: Likewise.
53954         * modules/gc-arcfour-tests: Likewise.
53955         * modules/gc-arctwo-tests: Likewise.
53956         * modules/gc-des-tests: Likewise.
53957         * modules/gc-hmac-md5-tests: Likewise.
53958         * modules/gc-hmac-sha1-tests: Likewise.
53959         * modules/gc-md2-tests: Likewise.
53960         * modules/gc-md4-tests: Likewise.
53961         * modules/gc-md5-tests: Likewise.
53962         * modules/gc-pbkdf2-sha1-tests: Likewise.
53963         * modules/gc-rijndael-tests: Likewise.
53964         * modules/gc-sha1-tests: Likewise.
53965         * modules/gc-tests: Likewise.
53966         * modules/getaddrinfo-tests: Likewise.
53967         * modules/hmac-md5-tests: Likewise.
53968         * modules/hmac-sha1-tests: Likewise.
53969         * modules/linked-list-tests: Likewise.
53970         * modules/linkedhash-list-tests: Likewise.
53971         * modules/lock-tests: Likewise.
53972         * modules/md2-tests: Likewise.
53973         * modules/md4-tests: Likewise.
53974         * modules/md5-tests: Likewise.
53975         * modules/rbtree-list-tests: Likewise.
53976         * modules/rbtree-oset-tests: Likewise.
53977         * modules/rbtreehash-list-tests: Likewise.
53978         * modules/read-file-tests: Likewise.
53979         * modules/rijndael-tests: Likewise.
53980         * modules/stdint-tests: Likewise.
53981         * modules/tls-tests: Likewise.
53982
53983 2007-02-24  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53986         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53987         function; instead check whether isnan with a double argument links.
53988         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53989         function; instead check whether isnan with a 'long double' argument
53990         links.
53991         Reported by Eric Blake <ebb9@byu.net>.
53992
53993 2007-02-24  Bruno Haible  <bruno@clisp.org>
53994
53995         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53996         defined.
53997         * lib/isnanl.c: Remove all code. Just include isnan.c.
53998         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53999
54000 2007-02-25  Jim Meyering  <jim@meyering.net>
54001
54002         Avoid conflicting types for 'unsetenv' on FreeBSD.
54003         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54004         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54005         in stdlib.h.
54006
54007 2007-02-24  Bruno Haible  <bruno@clisp.org>
54008
54009         * modules/isnanl-nolibm-tests: New file.
54010         * tests/test-isnanl.c: New file.
54011
54012         * modules/isnanl-nolibm: New file.
54013         * lib/isnanl.h: New file.
54014         * lib/isnanl.c: New file.
54015         * m4/isnanl.m4: New file.
54016
54017 2007-02-24  Bruno Haible  <bruno@clisp.org>
54018
54019         * modules/isnan-nolibm-tests: New file.
54020         * tests/test-isnan.c: New file.
54021
54022         * modules/isnan-nolibm: New file.
54023         * lib/isnan.h: New file.
54024         * lib/isnan.c: New file.
54025         * m4/isnan.m4: New file.
54026
54027 2007-02-24  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54030         assume that an exponent fits in 20 bits.
54031
54032 2007-02-24  Jim Meyering  <jim@meyering.net>
54033
54034         * m4/regex.m4: Update the description of the configure-time option,
54035         --without-included-regex, to state accurately what the defaults are,
54036         and perhaps to give people an idea why using this option is risky.
54037
54038 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54041         loops on small arguments.  This attempts to avoid the problem
54042         Bruno Haible reported for AIX 4.3.2 in
54043         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54044
54045 2007-02-23  Bruno Haible  <bruno@clisp.org>
54046
54047         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54048         Needed for help2man.
54049
54050 2007-02-23  Karl Berry  <karl@gnu.org>
54051
54052         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54053         exists, foo.h should be cvs-ignored, not committed.
54054
54055 2007-02-23  Eric Blake  <ebb9@byu.net>
54056
54057         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54058         * lib/stat-time.h (includes): Likewise.
54059         * lib/utimecmp.c (includes): Likewise.
54060         * lib/utimens.h (includes): Likewise.
54061         * lib/getdate.y (includes): Also include "timespec.h" for use
54062         internal to the module.
54063         * modules/utimens (Depends-on): Revert yesterday's patch.
54064         * modules/nanosleep (Depends-on): Add missing dependency.
54065
54066 2007-02-22  Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/glob.c: Don't include getlogin_r.h.
54069
54070 2007-02-22  Jim Meyering  <jim@meyering.net>
54071
54072         * modules/utimens (Depends-on): Add timespec, required for
54073         utimens.h's inclusion of timespec.h.
54074
54075 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54078         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54079         Schwab in
54080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54081         I'll try to think of a better way to fix the Solaris problem.
54082
54083         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54084         like glibc; on Solaris 10, it fails with errno == EINVAL.
54085         POSIX says the behavior is unspecified if the first argument is NULL,
54086         so play it safe and never pass NULL to the system getcwd.
54087
54088 2007-02-21  Jim Meyering  <jim@meyering.net>
54089
54090         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54091         of gettimeofday.  It would conflict with the one now always
54092         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54093         an IRIX 6.5 build failure.
54094
54095 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54096
54097         Minor fixups to port to Solaris 10 with Sun C 5.8.
54098         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54099         * modules/getcwd (Depends-on): Add dirfd.
54100         * lib/putenv.c (putenv): #undef it.
54101         (rpl_putenv): New decl.
54102         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54103
54104 2007-02-20  Bruno Haible  <bruno@clisp.org>
54105
54106         * modules/stdio-tests: New file.
54107         * tests/test-stdio.c: New file.
54108
54109         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54110         (Depends-on): Add stdio.
54111         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54112         (Include): Use <stdio.h> instead of vsnprintf.h.
54113         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54114         HAVE_DECL_VSNPRINTF.
54115         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54116
54117         * modules/snprintf (Files): Remove lib/snprintf.h.
54118         (Depends-on): Add stdio.
54119         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54120         (Include): Use <stdio.h> instead of snprintf.h.
54121         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54122         HAVE_DECL_SNPRINTF.
54123         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54124         * lib/getaddrinfo.c: Likewise.
54125
54126         * modules/stdio: New file.
54127         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54128         * lib/snprintf.h: Remove file.
54129         * lib/vsnprintf.h: Remove file.
54130         * lib/.cppi-disable: Remove snprintf.h.
54131         * m4/stdio_h.m4: New file.
54132         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54133
54134 2007-02-20  Jim Meyering  <jim@meyering.net>
54135
54136         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54137         used by e.g., mingw.  From Bruno Haible.
54138
54139 2007-02-19  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54142         warnings.
54143         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54144
54145 2007-02-19  Bruno Haible  <bruno@clisp.org>
54146
54147         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54148         from mingw users.
54149
54150 2007-02-19  Bruno Haible  <bruno@clisp.org>
54151
54152         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54153         warnings.
54154         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54155
54156 2007-02-19  Jim Meyering  <jim@meyering.net>
54157
54158         Don't use FD after a successful "fdopendir (fd)".
54159         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54160         Reset it by calling dirfd on the just-obtained DIR*.
54161
54162         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54163         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54164
54165 2007-02-18  Bruno Haible  <bruno@clisp.org>
54166
54167         * lib/readlink.c: Include <unistd.h>.
54168         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54169         HAVE_READLINK.
54170         * modules/readlink (Depends-on): Add unistd.
54171         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54172         (Include): Add <unistd.h>.
54173
54174         * lib/getlogin_r.h: Remove file.
54175         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54176         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54177         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54178         HAVE_DECL_GETLOGIN_R.
54179         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54180         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54181         (Include): Use <unistd.h> instead of getlogin_r.h.
54182
54183         * lib/getcwd.h: Remove file.
54184         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54185         * lib/xgetcwd.c: Likewise.
54186         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54187         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54188         * modules/getcwd (Files): Remove lib/getcwd.h.
54189         (Depends-on): Add unistd.
54190         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54191         (Include): Use <unistd.h> instad of getcwd.h.
54192
54193         * lib/ftruncate.c: Include <unistd.h> first.
54194         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54195         Set HAVE_FTRUNCATE.
54196         * modules/ftruncate (Depends-on): Add unistd.
54197         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54198
54199         * lib/fchdir.c: Include <unistd.h> first.
54200         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54202         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54203         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54204         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54205
54206         * lib/dup2.c: Include <unistd.h> first.
54207         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54208         HAVE_DUP2.
54209         * modules/dup2 (Depends-on): Add unistd.
54210         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54211
54212         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54213         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54214         REPLACE_CHOWN. Don't define chown as a macro here.
54215         * modules/chown (Depends-on): Add unistd.
54216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54217
54218         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54219         Add definition for GL_LINK_WARNING.
54220         (chown, dup2): New declarations.
54221         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54222         link warning.
54223         (ftruncate): New declaration.
54224         (getcwd): New declaration, taken from old getcwd.h.
54225         (getlogin_r): New declaration, taken from old getlogin_r.h.
54226         (readlink): New declaration.
54227         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54228         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54229         (gl_PREREQ_UNISTD): Remove macro.
54230         (gl_UNISTD_MODULE_INDICATOR): New macro.
54231         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54232         many new variables. Don't set UNISTD_H.
54233         * modules/unistd (Description): Change.
54234         (Depends-on): Add link-warning.
54235         (configure.ac): Update.
54236         (Makefile.am): Create unistd.h always. Substitute many new variables
54237         into it.
54238
54239 2007-02-18  Bruno Haible  <bruno@clisp.org>
54240
54241         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54242         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54243         HAVE_GETSUBOPT.
54244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54245         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54246         * lib/getsubopt.h: Remove file.
54247         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54248         (Depends-on): Add stdlib.
54249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54250         (Includes): Use <stdlib.h> instead of getsubopt.h.
54251         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54252         Set HAVE_GETSUBOPT.
54253         * lib/getsubopt.c: Don't include getsubopt.h.
54254
54255 2007-02-18  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/fchdir (Depends-on): Add dup2.
54258
54259 2007-02-18  Bruno Haible  <bruno@clisp.org>
54260
54261         * lib/stdlib_.h: Handle glibc's special invocation convention
54262         specially.
54263
54264 2007-02-18  Bruno Haible  <bruno@clisp.org>
54265
54266         * modules/stdlib-tests: New file.
54267         * tests/test-stdlib.c: New file.
54268
54269         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54270         (Depends-on): Add stdlib.
54271         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54272         (Includes): Use <stdlib.h> instead of mkstemp.h.
54273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54274         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54275         * lib/mkstemp.c: Don't include mkstemp.h.
54276         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54277         * lib/stdlib--.h: Don't include mkstemp.h.
54278
54279         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54280         (Depends-on): Add stdlib.
54281         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54282         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54283         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54284         HAVE_MKDTEMP.
54285         * lib/mkdtemp.c: Don't include mkdtemp.h.
54286         * lib/clean-temp.c: Don't include mkdtemp.h.
54287
54288         * modules/exit (Files): Remove lib/exit.h.
54289         (Depends-on): Add stdlib.
54290         (Makefile.am): Remove lib_SOURCES.
54291         (Include): Use <stdlib.h> instead of exit.h.
54292         * lib/argmatch.c: Don't include exit.h.
54293         * lib/execute.c: Likewise.
54294         * lib/pagealign_alloc.c: Likewise.
54295         * lib/pipe.c: Likewise.
54296         * lib/wait-process.c: Likewise.
54297         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54298         * lib/exitfail.c: Likewise.
54299         * lib/savewd.c: Likewise.
54300         * lib/xsetenv.c: Likewise.
54301
54302         * modules/stdlib: New file.
54303         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54304         and extra comments about mkstemp().
54305         * lib/exit.h: Remove file.
54306         * lib/mkdtemp.h: Remove file.
54307         * lib/mkstemp.h: Remove file.
54308         * m4/stdlib_h.m4: New file.
54309         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54310
54311 2007-02-18  Bruno Haible  <bruno@clisp.org>
54312
54313         * modules/math-tests: New file.
54314         * tests/test-math.c: New file.
54315
54316         * modules/math: New file.
54317         * modules/mathl (Files): Remove lib/mathl.h.
54318         (Depends-on): Add math.
54319         (Makefile.am): Don't mention mathl.h.
54320         (Include): Use <math.h> instead of mathl.h.
54321         * lib/math_.h: New file.
54322         * lib/mathl.h: Remove file.
54323         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54324         mathl.h.
54325         * lib/asinl.c: Likewise.
54326         * lib/atanl.c: Likewise.
54327         * lib/ceill.c: Likewise.
54328         * lib/cosl.c: Likewise.
54329         * lib/expl.c: Likewise.
54330         * lib/floorl.c: Likewise.
54331         * lib/frexpl.c: Likewise.
54332         * lib/ldexpl.c: Likewise.
54333         * lib/logl.c: Likewise.
54334         * lib/sincosl.c: Likewise.
54335         * lib/sinl.c: Likewise.
54336         * lib/sqrtl.c: Likewise.
54337         * lib/tanl.c: Likewise.
54338         * lib/trigl.c: Likewise.
54339         * m4/math_h.m4: New file.
54340         * MODULES.html.sh (Mathematics): Add math.
54341
54342 2007-02-17  Bruno Haible  <bruno@clisp.org>
54343
54344         * modules/wctype-tests: New file.
54345         * tests/test-wctype.c: New file.
54346
54347         * modules/wchar-tests: New file.
54348         * tests/test-wchar.c: New file.
54349
54350         * modules/unistd-tests: New file.
54351         * tests/test-unistd.c: New file.
54352
54353         * modules/time-tests: New file.
54354         * tests/test-time.c: New file.
54355
54356         * modules/sysexits-tests: New file.
54357         * tests/test-sysexits.c: New file.
54358
54359         * modules/sys_time-tests: New file.
54360         * tests/test-sys_time.c: New file.
54361
54362         * modules/sys_stat-tests: New file.
54363         * tests/test-sys_stat.c: New file.
54364
54365         * modules/sys_socket-tests: New file.
54366         * tests/test-sys_socket.c: New file.
54367
54368         * modules/sys_select-tests: New file.
54369         * tests/test-sys_select.c: New file.
54370
54371         * modules/string-tests: New file.
54372         * tests/test-string.c: New file.
54373
54374         * modules/stdbool-tests: New file.
54375         * tests/test-stdbool.c: New file.
54376
54377         * modules/netinet_in-tests: New file.
54378         * tests/test-netinet_in.c: New file.
54379
54380         * modules/inttypes-tests: New file.
54381         * tests/test-inttypes.c: New file.
54382
54383         * modules/fcntl-tests: New file.
54384         * tests/test-fcntl.c: New file.
54385
54386         * modules/byteswap-tests: New file.
54387         * tests/test-byteswap.c: New file.
54388
54389         * modules/arpa_inet-tests: New file.
54390         * tests/test-arpa_inet.c: New file.
54391
54392 2007-02-17  Bruno Haible  <bruno@clisp.org>
54393
54394         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54395         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54396         if the corresponding module is not enabled. Emit link warnings if
54397         the function is used nevertheless.
54398         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54399         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54400         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54401         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54402         * modules/inttypes (Depends-on): Add link-warning.
54403         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54404         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54405         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54406         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54407         * modules/imaxdiv (configure.ac): Likewise.
54408         * modules/strtoimax (configure.ac): Likewise.
54409         * modules/strtoumax (configure.ac): Likewise.
54410
54411 2007-02-17  Bruno Haible  <bruno@clisp.org>
54412
54413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54414         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54415         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54416         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54417
54418 2007-02-17  Bruno Haible  <bruno@clisp.org>
54419
54420         * modules/link-warning: New file.
54421         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54422         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54423         * modules/string (Depends-on): Add link-warning.
54424         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54425         string.h.
54426         * MODULES.html.sh (Support for building libraries and executables): Add
54427         link-warning.
54428
54429 2007-02-17  Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54432         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54433         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54434         long lines.
54435
54436 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54437             Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/tmpfile: New file.
54440         * lib/tmpfile.c: New file.
54441         * m4/tmpfile.m4: New file.
54442         * MODULES.html.sh (func_all_modules): New section "Input/output".
54443
54444 2007-02-15  Bruno Haible  <bruno@clisp.org>
54445
54446         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54447         (supports_delete_on_close): New function.
54448         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54449
54450 2007-02-14  Bruno Haible  <bruno@clisp.org>
54451
54452         * modules/mbspcasecmp-tests: New file.
54453         * tests/test-mbspcasecmp.sh: New file.
54454         * tests/test-mbspcasecmp.c: New file.
54455
54456         New module mbspcasecmp.
54457         * modules/mbspcasecmp: New file.
54458         * lib/mbspcasecmp.c: New file.
54459         * lib/string_.h (strncasecmp): Change warning message.
54460         (mbspcasecmp): New declaration.
54461         * m4/mbspcasecmp.m4: New file.
54462         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54463         GNULIB_MBSPCASECMP.
54464         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54465         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54466
54467 2007-02-14  Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/mbsncasecmp-tests: New file.
54470         * tests/test-mbsncasecmp.sh: New file.
54471         * tests/test-mbsncasecmp.c: New file.
54472
54473         New module mbsncasecmp.
54474         * modules/mbsncasecmp: New file.
54475         * lib/mbsncasecmp.c: New file.
54476         * lib/string_.h (mbsncasecmp): New declaration.
54477         * m4/mbsncasecmp.m4: New file.
54478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54479         GNULIB_MBSNCASECMP.
54480         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54481         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54482
54483 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54486         Verify that it doesn't overlap with our flags.
54487         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54488         do not have the desired effect in multibyte locales; instead, use
54489         mbscasecmp.
54490         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54491         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54492         we don't require GNU fnmatch ourselves (if our users require it, they
54493         should do so explicitly).
54494
54495         Fix regex code so it doesn't rely on strcasecmp.
54496         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54497         Otherwise, include gnulib's langinfo.h.
54498         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54499         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54500         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54501         * modules/regex (FILES): Remove m4/codeset.m4.
54502         (Depends-on): Add localcharset.  Remove strcase.
54503
54504 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54505
54506         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54507         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54508
54509 2007-02-13  Bruno Haible  <bruno@clisp.org>
54510
54511         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54512         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54513
54514 2007-02-12  Bruno Haible  <bruno@clisp.org>
54515
54516         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54517         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54518         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54519         time warning rather than a link error.
54520
54521 2007-02-12  Bruno Haible  <bruno@clisp.org>
54522
54523         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54524         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54526
54527 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54530         args, not 2.
54531
54532 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         New module 'time', so that apps can include <time.h> as per
54535         POSIX and GNU instead of separate include files like time_r.h
54536         and timegm.h.  This implementation tries out a simpler approach
54537         for replacing decls in standard include files (as compared to
54538         the string module), somewhat as an experiment.
54539
54540         * config/srclist.txt: Comment out mktime.c for now.
54541         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54542         since it doesn't apply any more.  Use generic wording instead.
54543         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54544         'time'.
54545         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54546         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54547         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54548         Don't include <sys/types.h>; no longer needed since we assume C89.
54549         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54550         * lib/strftime.c: Likewise.
54551         * lib/time_r.c: Likewise.
54552         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54553         * lib/nanosleep.c: Include <time.h> first, to check interface.
54554         * lib/strptime.c: Likewise.
54555         * lib/time_r.c: Likewise.
54556         * lib/timegm.c: Likewise.
54557         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54558         needed.
54559         * lib/timegm.c: Don't include timegm.h; no longer needed.
54560         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54561         time.h now handles any problems in that area.
54562         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54563         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54564         that time.h defines struct timespec.
54565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54566         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54567         handles that.
54568         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54569         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54570         needed.  Set REPLACE_LOCALTIME.
54571         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54572         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54573         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54574         nanosleep; time_h.m4 now does that.  Don't require
54575         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54576         module handles this now.
54577         * modules/getdate (Depends-on): Remove timespec.  Add time.
54578         * modules/nanosleep (Depends-on): Likewise.
54579         * modules/stat-time (Depends-on): Likewise.
54580         * modules/nanosleep (Include): Include time.h, not timespec.h.
54581         * modules/strptime (Files): Remove lib/strptime.h.
54582         (Depends-on): Add extensions, time.
54583         (Include): Include time.h, not strptime.h.
54584         * modules/time_r (Files): Remove lib/time_r.h.
54585         (Depends-on): Add time.
54586         (Include): Include time.h, not time_r.h.
54587         * modules/timegm: Likewise.
54588         * modules/timespec (Description): Now does timespec-related decls
54589         of our own, instead of struct timespec itself.
54590         (Depends-on): Add time; remove extensions.
54591         (Maintainer): Add self.
54592         * modules/utimecmp (Depends-on): Add time; remove timespec.
54593         * modules/utimens (Depends-on): Likewise.
54594         * modules/xnanosleep (Depends-on): Likewise.
54595
54596 2007-02-11  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/c-strstr.c: Include allocsa.h.
54599         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54600         * lib/c-strcasestr.c: Include allocsa.h.
54601         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54602         * lib/strcasestr.c: Include allocsa.h.
54603         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54604         * lib/mbsstr.c: Include allocsa.h.
54605         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54606         allocsa/freesa instead of malloc/free.
54607         * lib/mbscasestr.c: Include allocsa.h.
54608         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54609         allocsa/freesa instead of malloc/free.
54610         * modules/c-strstr (Depends-on): Add allocsa.
54611         * modules/c-strcasestr (Depends-on): Likewise.
54612         * modules/strcasestr (Depends-on): Likewise.
54613         * modules/mbsstr (Depends-on): Likewise.
54614         * modules/mbscasestr (Depends-on): Likewise.
54615
54616 2007-02-11  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54619
54620         * modules/mbsspn-tests: New file.
54621         * tests/test-mbsspn.sh: New file.
54622         * tests/test-mbsspn.c: New file.
54623
54624 2007-02-11  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54627
54628         * modules/mbspbrk-tests: New file.
54629         * tests/test-mbspbrk.sh: New file.
54630         * tests/test-mbspbrk.c: New file.
54631
54632 2007-02-11  Bruno Haible  <bruno@clisp.org>
54633
54634         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54635         unneeded cast.
54636
54637         * modules/mbscspn-tests: New file.
54638         * tests/test-mbscspn.sh: New file.
54639         * tests/test-mbscspn.c: New file.
54640
54641 2007-02-11  Bruno Haible  <bruno@clisp.org>
54642
54643         * modules/mbscasecmp-tests: New file.
54644         * tests/test-mbscasecmp.sh: New file.
54645         * tests/test-mbscasecmp.c: New file.
54646
54647 2007-02-11  Bruno Haible  <bruno@clisp.org>
54648
54649         Ensure O(n) worst-case complexity of mbscasestr.
54650         * lib/mbscasestr.c: Include stdbool.h.
54651         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54652         functions.
54653         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54654         the bookkeeping indicates that it's worth it.
54655         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54656
54657         * modules/mbscasestr-tests: New file.
54658         * tests/test-mbscasestr1.c: New file.
54659         * tests/test-mbscasestr2.sh: New file.
54660         * tests/test-mbscasestr2.c: New file.
54661         * tests/test-mbscasestr3.sh: New file.
54662         * tests/test-mbscasestr3.c: New file.
54663         * tests/test-mbscasestr4.sh: New file.
54664         * tests/test-mbscasestr4.c: New file.
54665         * m4/locale-tr.m4: New file.
54666
54667 2007-02-11  Bruno Haible  <bruno@clisp.org>
54668
54669         Ensure O(n) worst-case complexity of mbsstr.
54670         * lib/mbsstr.c: Include stdbool.h.
54671         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54672         functions.
54673         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54674         bookkeeping indicates that it's worth it.
54675         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54676
54677         * modules/mbsstr-tests: New file.
54678         * tests/test-mbsstr1.c: New file.
54679         * tests/test-mbsstr2.sh: New file.
54680         * tests/test-mbsstr2.c: New file.
54681         * tests/test-mbsstr3.sh: New file.
54682         * tests/test-mbsstr3.c: New file.
54683         * m4/locale-fr.m4: New file.
54684
54685 2007-02-11  Bruno Haible  <bruno@clisp.org>
54686
54687         * lib/mbsrchr.c (mbsrchr): Fix bug.
54688
54689         * modules/mbsrchr-tests: New file.
54690         * tests/test-mbsrchr.sh: New file.
54691         * tests/test-mbsrchr.c: New file.
54692
54693 2007-02-11  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/mbschr.c (mbschr): Fix bug.
54696
54697         * modules/mbschr-tests: New file.
54698         * tests/test-mbschr.sh: New file.
54699         * tests/test-mbschr.c: New file.
54700         * m4/locale-zh.m4: New file.
54701
54702 2007-02-11  Bruno Haible  <bruno@clisp.org>
54703
54704         Support for copying multibyte string iterators.
54705         * lib/mbiter.h: Include <string.h>.
54706         (mbiter_multi_copy): New function.
54707         (mbi_copy): New macro.
54708         * lib/mbuiter.h: Include <string.h>.
54709         (mbuiter_multi_copy): New function.
54710         (mbui_copy): New macro.
54711
54712 2007-02-11  Bruno Haible  <bruno@clisp.org>
54713
54714         New module mbslen.
54715         * modules/mbslen: New file.
54716         * lib/mbslen.c: New file.
54717         * lib/string_.h (mbslen): New declaration.
54718         * m4/mbslen.m4: New file.
54719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54720         GNULIB_MBSLEN.
54721         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54722         * MODULES.html.sh (Internationalization functions): Add mbslen.
54723
54724 2007-02-11  Bruno Haible  <bruno@clisp.org>
54725
54726         Ensure O(n) worst-case complexity of strcasestr substitute.
54727         * lib/strcasestr.c: Include stdbool.h.
54728         (knuth_morris_pratt): New function.
54729         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54730         bookkeeping indicates that it's worth it.
54731         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54732
54733         * modules/strcasestr-tests: New file.
54734         * tests/test-strcasestr.c: New file.
54735
54736 2007-02-11  Bruno Haible  <bruno@clisp.org>
54737
54738         Ensure O(n) worst-case complexity of c_strcasestr.
54739         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54740         (knuth_morris_pratt): New function.
54741         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54742         the bookkeeping indicates that it's worth it.
54743         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54744
54745         * modules/c-strcasestr-tests: New file.
54746         * tests/test-c-strcasestr.c: New file.
54747
54748 2007-02-11  Bruno Haible  <bruno@clisp.org>
54749
54750         Ensure O(n) worst-case complexity of c_strstr.
54751         * lib/c-strstr.c: Include stdbool.h, string.h.
54752         (knuth_morris_pratt): New function.
54753         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54754         bookkeeping indicates that it's worth it.
54755         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54756
54757         * lib/c-strstr.c: Complete rewrite for maintainability.
54758
54759         * modules/c-strstr-tests: New file.
54760         * tests/test-c-strstr.c: New file.
54761
54762 2007-02-11  Bruno Haible  <bruno@clisp.org>
54763
54764         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54765         5.2.1 and earlier, whereby \055 was treated just like the range
54766         delimiter '-'.
54767         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54768
54769 2007-02-08  Bruno Haible  <bruno@clisp.org>
54770
54771         * modules/regex (Depends-on): Add stdbool.
54772         Reported by Dalibor Topic <robilad@kaffe.org>.
54773
54774 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54777         Prefer returning from main to exiting from it.
54778         Remove unnecessary parens after sizeof.
54779
54780 2007-02-05  Bruno Haible  <bruno@clisp.org>
54781
54782         New module mbssep.
54783         * modules/mbssep: New file.
54784         * lib/mbssep.c: New file.
54785         * lib/string_.h (strsep): Add a conditional link warning.
54786         (mbssep): New declaration.
54787         * m4/mbssep.m4: New file.
54788         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54789         GNULIB_MBSSEP.
54790         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54791         * MODULES.html.sh (Internationalization functions): Add mbssep.
54792
54793 2007-02-05  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54796         Optimize search in case of 1 delimiter.
54797
54798 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54799
54800         * lib/acl.h: Include sys/types.h before sys/acl.h.
54801
54802 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54803
54804         Merge upstream fix for glibc bugzilla #3957:
54805
54806         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54807
54808         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54809         bit for RE_HAT_LISTS_NOT_NEWLINE.
54810         (build_charclass_op): Remove bogus comment.
54811
54812 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54813
54814         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54815
54816 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54817
54818         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54819         * lib/memmem.c [!defined _LIBC]: Include config.h.
54820
54821 2007-02-04  Bruno Haible  <bruno@clisp.org>
54822
54823         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54824         warning message.
54825
54826 2007-02-04  Bruno Haible  <bruno@clisp.org>
54827
54828         New module mbstok_r.
54829         * modules/mbstok_r: New file.
54830         * lib/mbstok_r.c: New file.
54831         * lib/string_.h (strtok_r): Change argument names to match the
54832         comments. Add a conditional link warning.
54833         (mbstok_r): New declaration.
54834         * m4/mbstok_r.m4: New file.
54835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54836         GNULIB_MBSTOK_R.
54837         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54838         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54839
54840 2007-02-04  Bruno Haible  <bruno@clisp.org>
54841
54842         New module mbsspn.
54843         * modules/mbsspn: New file.
54844         * lib/mbsspn.c: New file.
54845         * lib/string_.h (strspn): Add a conditional link warning.
54846         (mbsspn): New declaration.
54847         * m4/mbsspn.m4: New file.
54848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54849         GNULIB_MBSSPN.
54850         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54851         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54852
54853 2007-02-04  Bruno Haible  <bruno@clisp.org>
54854
54855         New module mbspbrk.
54856         * modules/mbspbrk: New file.
54857         * lib/mbspbrk.c: New file.
54858         * lib/string_.h (strpbrk): Add a conditional link warning.
54859         (mbspbrk): New declaration.
54860         * m4/mbspbrk.m4: New file.
54861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54862         GNULIB_MBSPBRK.
54863         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54864         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54865
54866 2007-02-04  Bruno Haible  <bruno@clisp.org>
54867
54868         New module mbscspn.
54869         * modules/mbscspn: New file.
54870         * lib/mbscspn.c: New file.
54871         * lib/string_.h (strcspn): Add a conditional link warning.
54872         (mbscspn): New declaration.
54873         * m4/mbscspn.m4: New file.
54874         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54875         GNULIB_MBSCSPN.
54876         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54877         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54878
54879 2007-02-04  Bruno Haible  <bruno@clisp.org>
54880
54881         New module mbscasestr, reduced goal of strcasestr.
54882         * modules/mbscasestr: New file.
54883         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54884         (mbscasestr): Renamed from strcasestr.
54885         * lib/strcasestr.c: Don't include mbuiter.h.
54886         (strcasestr): Remove support for multibyte locales.
54887         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54888         Change the conditional link warning.
54889         (mbscasestr): New declaration.
54890         * m4/mbscasestr.m4: New file.
54891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54892         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54893         REPLACE_STRCASESTR.
54894         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54896         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54897         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54898         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54899         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54900         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54901         (Depends-on): Remove mbuiter.
54902         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54903
54904 2007-02-04  Bruno Haible  <bruno@clisp.org>
54905
54906         Simplify handling of strncasecmp.
54907         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54908         the conditional link warning.
54909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54910         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54911         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54912         * modules/strcase (configure.ac): Don't invoke
54913         gl_STRING_MODULE_INDICATOR.
54914         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54915
54916 2007-02-04  Bruno Haible  <bruno@clisp.org>
54917
54918         New module mbscasecmp, reduced goal of strcasecmp.
54919         * modules/mbscasecmp: New file.
54920         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54921         (mbscasecmp): Renamed from strcasecmp.
54922         * lib/strcasecmp.c: Don't include mbuiter.h.
54923         (strcasecmp): Remove support for multibyte locales.
54924         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54925         Change the conditional link warning.
54926         (mbscasecmp): New declaration.
54927         * m4/mbscasecmp.m4: New file.
54928         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54929         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54930         REPLACE_STRCASECMP.
54931         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54932         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54933         GNULIB_MBSCASECMP.
54934         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54935         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54936         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54937         (Depends-on): Remove mbuiter.
54938         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54939
54940 2007-02-04  Bruno Haible  <bruno@clisp.org>
54941
54942         New module mbsstr. Remove module strstr.
54943         * modules/mbsstr: New file.
54944         * modules/strstr: Remove file.
54945         * lib/mbsstr.c: Renamed from lib/strstr.c.
54946         (mbsstr): Renamed from strstr.
54947         * lib/string_.h (strstr): Remove declaration. Change the conditional
54948         link warning.
54949         (mbsstr): New declaration.
54950         * m4/mbsstr.m4: New file.
54951         * m4/strstr.m4: Remove file.
54952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54953         REPLACE_STRSTR.
54954         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54955         Don't initialize GNULIB_STRSTR.
54956         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54957         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54958         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54959         (Support for systems lacking ANSI C 89): Remove strstr.
54960
54961 2007-02-04  Bruno Haible  <bruno@clisp.org>
54962
54963         New module mbsrchr.
54964         * modules/mbsrchr: New file.
54965         * lib/mbsrchr.c: New file.
54966         * lib/string_.h (strrchr): Add a conditional link warning.
54967         (mbsrchr): New declaration.
54968         * m4/mbsrchr.m4: New file.
54969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54970         GNULIB_MBSRCHR.
54971         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54972         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54973
54974 2007-02-04  Bruno Haible  <bruno@clisp.org>
54975
54976         New module mbschr.
54977         * modules/mbschr: New file.
54978         * lib/mbschr.c: New file.
54979         * lib/string_.h (strchr): Add a conditional link warning.
54980         (mbschr): New declaration.
54981         * m4/mbschr.m4: New file.
54982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54983         GNULIB_MBSCHR.
54984         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54985         * MODULES.html.sh (Internationalization functions): Add mbschr.
54986
54987 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54990
54991         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54992
54993 2007-02-04  Bruno Haible  <bruno@clisp.org>
54994
54995         New module description section 'configure.ac-early'.
54996         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54997         (func_get_autoconf_early_snippet): New function.
54998         (func_import, func_create_testdir): Use it. Remove special cases for
54999         modules 'extensions' and 'lock'.
55000         * modules/extensions (configure.ac-early): Require
55001         gl_USE_SYSTEM_EXTENSIONS.
55002         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55003
55004 2007-02-04  Bruno Haible  <bruno@clisp.org>
55005
55006         Make use of gcj-4.3's -fsource and -ftarget option.
55007         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55008         and if so try the options -fsource and -ftarget.
55009         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55010         source_version, ftarget_option, target_version arguments.
55011         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55012         (is_envjavac_oldgcj_14_14_usable): Renamed from
55013         is_envjavac_gcj_14_14_usable.
55014         (is_envjavac_oldgcj_14_13_usable): Renamed from
55015         is_envjavac_gcj_14_13_usable.
55016         (is_gcj_present): Update.
55017         (is_gcj_43, is_gcj43_usable): New functions.
55018         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55019         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55020         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55021         try the options -fsource and -ftarget.
55022
55023 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55026         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55027         larger value.
55028
55029 2007-02-03  Jim Meyering  <jim@meyering.net>
55030
55031         Give tools a better chance to allocate space for very large buffers.
55032         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55033
55034         Make pwd and readlink work also when run with an unreadable parent dir
55035         on systems with openat support.
55036         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55037         provided getcwd function, even when we have openat support.
55038         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55039
55040 2007-02-02  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55043         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55044         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55045         portability problems if one of these functions is only used on specific
55046         platforms.
55047         Reported by Paul Eggert.
55048
55049 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55052         is causing more trouble than it's curing.
55053         * lib/regex_internal.h (__mempcpy): Remove.
55054         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55055         (and make the code a tad smaller to boot).
55056         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55057
55058 2007-02-02  Jim Meyering  <jim@meyering.net>
55059
55060         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55061         section, not in the Makefile.am: one.
55062
55063 2007-02-02  Eric Blake  <ebb9@byu.net>
55064
55065         * lib/strchrnul.c: Always include config.h first.
55066
55067         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55068         gnulib strstr is not necessary here.
55069
55070 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55071
55072         * m4/socklen.m4: Fix typo.
55073
55074 2007-02-02  Eric Blake  <ebb9@byu.net>
55075
55076         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55077         * modules/netinet_in (Makefile.am): Likewise.
55078
55079 2007-02-01  Bruno Haible  <bruno@clisp.org>
55080
55081         * lib/string_.h (GL_LINK_WARNING): New macro.
55082         (strcasecmp, strstr, strcasestr): If provided by the system,
55083         conditionally define as a macro that leads to a warning instead of to
55084         an error.
55085         (strncasecmp): Conditionally define as a macro that leads to a warning.
55086
55087 2007-02-01  Karl Berry  <karl@gnu.org>
55088
55089         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55090
55091 2007-02-01  Bruno Haible  <bruno@clisp.org>
55092
55093         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55094         renamings.
55095
55096 2007-02-01  Eric Blake  <ebb9@byu.net>
55097
55098         * modules/regex (Depends-on): Revert dependence on mempcpy.
55099         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55100         module's definition of mempcpy.
55101         Reported by Paul Eggert.
55102
55103 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55104
55105         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55106         the symbol XYZ before redefining it.  This fixes a problem with
55107         programs that don't use XYZ, when compiled on systems that define
55108         XYZ to something else.
55109
55110 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55111
55112         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55113         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55114         writeable to group or other and (2) is intended to have a special
55115         mode bit that is set or cleared.  In such a case, the directory
55116         should be neither group- nor other-writeable until the special
55117         mode bits are right.
55118
55119 2007-01-31  Eric Blake  <ebb9@byu.net>
55120
55121         * modules/mountlist (Depends-on): Add strstr.
55122
55123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55124         bug.
55125         * modules/string (Makefile.am): Remove redundant replacement.
55126         * modules/regex (Depends-on): Add mempcpy.
55127
55128 2007-01-31  Bruno Haible  <bruno@clisp.org>
55129
55130         New module description field 'Link'.
55131         * gnulib-tool (func_usage): Document --extract-link-directive.
55132         (sed_extract_prog): Recognize 'Link' directive.
55133         (func_get_link_directive): New function.
55134         (func_import): Show summary of link directives.
55135         Handle --extract-link-directive option.
55136         * modules/acl (Link): New section.
55137         * modules/clock-time (Link): New section.
55138         * modules/euidaccess (Link): New section.
55139         * modules/gettext (Link): New section.
55140         * modules/iconv (Link): New section.
55141         * modules/lock (Link): New section.
55142         * modules/nanosleep (Link): New section.
55143         * modules/readline (Link): New section.
55144
55145 2007-01-27  Bruno Haible  <bruno@clisp.org>
55146
55147         Enforce the use of gnulib modules for unportable <string.h> functions.
55148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55149         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55150         (gl_HEADER_STRING_H_BODY): Require it.
55151         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55152         the symbol XYZ to one that gives a link error.
55153         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55154         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55155         * modules/mempcpy (configure.ac): Likewise.
55156         * modules/memrchr (configure.ac): Likewise.
55157         * modules/stpcpy (configure.ac): Likewise.
55158         * modules/stpncpy (configure.ac): Likewise.
55159         * modules/strcase (configure.ac): Likewise.
55160         * modules/strcasestr (configure.ac): Likewise.
55161         * modules/strchrnul (configure.ac): Likewise.
55162         * modules/strdup (configure.ac): Likewise.
55163         * modules/strndup (configure.ac): Likewise.
55164         * modules/strnlen (configure.ac): Likewise.
55165         * modules/strpbrk (configure.ac): Likewise.
55166         * modules/strsep (configure.ac): Likewise.
55167         * modules/strstr (configure.ac): Likewise.
55168         * modules/strtok_r (configure.ac): Likewise.
55169
55170 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55171
55172         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55173
55174 2007-01-30  Jim Meyering  <jim@meyering.net>
55175
55176         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55177
55178 2007-01-29  Bruno Haible  <bruno@clisp.org>
55179
55180         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55181         * lib/execute.c: Likewise.
55182         * lib/pipe.c: Likewise.
55183         * lib/printf-args.h: Likewise.
55184         * lib/printf-args.c: Likewise.
55185         * lib/printf-parse.c: Likewise.
55186         * lib/vasnprintf.c: Likewise.
55187
55188 2007-01-29  Eric Blake  <ebb9@byu.net>
55189
55190         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55191         declaration.
55192
55193 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55194
55195         * lib/strptime.h (strptime): Use 'restrict' for args where
55196         POSIX requires this.
55197         * lib/strptime.c (strptime): Likewise.
55198         Change license notice from LGPL to GPL, since gnulib-tool will
55199         change this as needed.
55200         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55201         defined.
55202         Include "strptime.h" first, to check interface.
55203         Do not #undef _LIBC and _NL_CURRENT.
55204         Do not include <stdlib.h>; no longer needed.
55205         Include "time_r.h" and declare ptime_locale_status
55206         only if _LIBC is not defined.
55207         (__P): Remove unused macro.
55208         (match_string): Bring back glibc version, but use it only if _LIBC
55209         is defined.
55210         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55211         Remove unnecessary assertion and abort() call.
55212         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55213         * m4/strptime.m4: Fix serial number comment.
55214         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55215         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55216         (Depends-on): Add time_r.
55217
55218 2007-01-29  Bruno Haible  <bruno@clisp.org>
55219
55220         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55221         strptime.
55222         * modules/strptime (Depends-on): Add stdbool.
55223         * lib/strptime.h: Include <time.h> always. Add comments.
55224
55225 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55226
55227         * modules/strptime: New file.
55228         * lib/strptime.h: New file.
55229         * lib/strptime.c: New file.
55230         * m4/strptime.m4: New file.
55231
55232 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55233
55234         * MODULES.html.sh: New module mpsort.
55235         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55236
55237         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55238         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55240         All uses changed.
55241         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55242         All uses changed.
55243         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55244         to _Restrict_.
55245         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55246         the parameter matches the prototype.
55247
55248 2007-01-28  Jim Meyering  <jim@meyering.net>
55249
55250         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55251         sys/time.h here, reverting that part of the previous patch:
55252         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55253
55254 2007-01-28  Bruno Haible  <bruno@clisp.org>
55255
55256         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55257         value of $(SYS_TIME_H).
55258         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55259         remove it conditionally, too. [added by Jim Meyering]
55260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55261         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55262         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55263         GETTIMEOFDAY_REPLACEMENT to 1.
55264
55265 2007-01-28  Bruno Haible  <bruno@clisp.org>
55266
55267         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55268         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55270         Set UNISTD_H instead of UNISTD_H2.
55271         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55272
55273 2007-01-28  Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55276         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55277
55278 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55279
55280         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55281         (func_create_testdir): Ensure C locale for `grep' and `tr'
55282         character ranges.
55283         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55284         ACLOCAL_AMFLAGS parsing state machine.
55285
55286 2007-01-27  Bruno Haible  <bruno@clisp.org>
55287
55288         * modules/unistr/base: Update.
55289
55290 2007-01-27  Bruno Haible  <bruno@clisp.org>
55291
55292         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55293         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55294         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55295         modules/unistr/u32-mbtouc.
55296         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55297         * lib/unistr.h: Update.
55298         * lib/linebreak.c: Update.
55299         * modules/unistr/u32-mbtouc: Renamed from
55300         modules/unistr/u32-mbtouc-safe.
55301         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55302         * lib/unistr.h: Update.
55303         * lib/unistr/u32-to-u8.c: Update.
55304         * lib/unistr/u32-to-u16.c: Update.
55305
55306 2007-01-27  Bruno Haible  <bruno@clisp.org>
55307
55308         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55309         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55310         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55311         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55312         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55313         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55314         modules/unistr/u16-mbtouc.
55315         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55316         * lib/unistr.h: Update.
55317         * lib/linebreak.c: Update.
55318         * modules/linebreak: Update.
55319         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55320         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55321         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55322         * modules/unistr/u16-mbtouc: Renamed from
55323         modules/unistr/u16-mbtouc-safe.
55324         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55325         * lib/unistr.h: Update.
55326         * lib/unistr/u16-to-u8.c: Update.
55327         * modules/unistr/u16-to-u8: Update.
55328         * lib/unistr/u16-to-u32.c: Update.
55329         * modules/unistr/u16-to-u32: Update.
55330
55331 2007-01-27  Bruno Haible  <bruno@clisp.org>
55332
55333         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55334         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55335         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55336         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55337         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55338         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55339         modules/unistr/u8-mbtouc.
55340         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55341         * lib/unistr.h: Update.
55342         * lib/striconveh.c: Update.
55343         * modules/striconveh: Update.
55344         * lib/linebreak.c: Update.
55345         * modules/linebreak: Update.
55346         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55347         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55348         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55349         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55350         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55351         * lib/unistr.h: Update.
55352         * lib/striconveh.c: Update.
55353         * modules/striconveh: Update.
55354         * lib/unistr/u8-to-u16.c: Update.
55355         * modules/unistr/u8-to-u16: Update.
55356         * lib/unistr/u8-to-u32.c: Update.
55357         * modules/unistr/u8-to-u32: Update.
55358
55359 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55360
55361         Sync from Libtool.
55362         * lib/argz.c: Do not include strings.h nor memory.h, include
55363         string.h unconditionally.  Patch by Simon Josefsson.
55364
55365 2007-01-27  Bruno Haible  <bruno@clisp.org>
55366
55367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55368         from gl_HEADER_STRING_H_BODY.
55369         (gl_HEADER_STRING_H_BODY): Require it.
55370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55371         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55372         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55373         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55375         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55377         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55378         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55379         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55380         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55381         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55382         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55383         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55384         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55385
55386 2007-01-27  Bruno Haible  <bruno@clisp.org>
55387
55388         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55389         check_PROGRAMS into noinst_PROGRAMS.
55390         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55391         check_PROGRAMS in this case.
55392         (func_import): Set for_test to false.
55393         (func_create_testdir): Set for_test to true.
55394
55395 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55396             Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55399         (Depends-on): Add string.
55400         (Includes): Use <string.h> instead of strcasestr.h.
55401         * modules/string (Makefile.am): Also substitute the value of
55402         REPLACE_STRCASESTR.
55403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55404         assume strcasestr is declared in <string.h> not <strings.h>. Also
55405         set REPLACE_STRCASESTR.
55406         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55407         REPLACE_STRCASESTR.
55408         * lib/strcasestr.h: Remove file.
55409         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55410         * lib/string_.h (strcasestr): New declaration.
55411
55412 2007-01-27  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/string_.h: Use 'extern'.
55415
55416 2007-01-27  Jim Meyering  <jim@meyering.net>
55417
55418         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55419         of set-but-not-used local, "q".
55420
55421         * lib/mempcpy.c: Include <config.h> before <string.h>.
55422         This fixes a compilation error on HP-UX, due to the system's
55423         "restrict"-using mempcpy prototype.
55424
55425 2007-01-26  Bruno Haible  <bruno@clisp.org>
55426
55427         Small optimization.
55428         * lib/javacomp.c: Include c-strstr.h.
55429          (is_envjavac_gcj): Use c_strstr instead of strstr.
55430         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55431
55432 2007-01-26  Bruno Haible  <bruno@clisp.org>
55433
55434         * MODULES.html.sh (Unicode string functions): Add the new modules.
55435
55436         * modules/uniconv/u32-strconv-to-locale: New file.
55437         * lib/uniconv/u32-strconv-to-locale.c: New file.
55438
55439         * modules/uniconv/u16-strconv-to-locale: New file.
55440         * lib/uniconv/u16-strconv-to-locale.c: New file.
55441
55442         * modules/uniconv/u8-strconv-to-locale: New file.
55443         * lib/uniconv/u8-strconv-to-locale.c: New file.
55444
55445         * modules/uniconv/u32-strconv-from-locale: New file.
55446         * lib/uniconv/u32-strconv-from-locale.c: New file.
55447
55448         * modules/uniconv/u16-strconv-from-locale: New file.
55449         * lib/uniconv/u16-strconv-from-locale.c: New file.
55450
55451         * modules/uniconv/u8-strconv-from-locale: New file.
55452         * lib/uniconv/u8-strconv-from-locale.c: New file.
55453
55454         * modules/uniconv/u32-strconv-to-enc: New file.
55455         * lib/uniconv/u32-strconv-to-enc.c: New file.
55456         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55457         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55458
55459         * modules/uniconv/u16-strconv-to-enc: New file.
55460         * lib/uniconv/u16-strconv-to-enc.c: New file.
55461         * lib/uniconv/u-strconv-to-enc.h: New file.
55462         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55463         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55464
55465         * modules/uniconv/u8-strconv-to-enc: New file.
55466         * lib/uniconv/u8-strconv-to-enc.c: New file.
55467         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55468         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55469
55470         * modules/uniconv/u32-strconv-from-enc: New file.
55471         * lib/uniconv/u32-strconv-from-enc.c: New file.
55472         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55473         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55474
55475         * modules/uniconv/u16-strconv-from-enc: New file.
55476         * lib/uniconv/u16-strconv-from-enc.c: New file.
55477         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55478         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55479
55480         * modules/uniconv/u8-strconv-from-enc: New file.
55481         * lib/uniconv/u8-strconv-from-enc.c: New file.
55482         * lib/uniconv/u-strconv-from-enc.h: New file.
55483         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55484         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55485
55486         * modules/uniconv/u32-conv-from-enc: New file.
55487         * lib/uniconv/u32-conv-from-enc.c: New file.
55488         * modules/uniconv/u32-conv-from-enc-tests: New file.
55489         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55490
55491         * modules/uniconv/u16-conv-from-enc: New file.
55492         * lib/uniconv/u16-conv-from-enc.c: New file.
55493         * lib/uniconv/u-conv-from-enc.h: New file.
55494         * modules/uniconv/u16-conv-from-enc-tests: New file.
55495         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55496
55497         * modules/uniconv/u8-conv-from-enc: New file.
55498         * lib/uniconv/u8-conv-from-enc.c: New file.
55499         * modules/uniconv/u8-conv-from-enc-tests: New file.
55500         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55501
55502         * modules/uniconv/base: New file.
55503         * lib/uniconv.h: New file.
55504
55505 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55506
55507         * doc/gnulib-tool.texi (Initial import): Update to match current
55508         behavior with strdup module.
55509         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55510         * lib/memmem.h: Remove; all uses removed.  This is now done
55511         by <string.h>.
55512         * lib/mempcpy.h: Likewise.
55513         * lib/memrchr.h: Likewise.
55514         * lib/stpcpy.h: Likewise.
55515         * lib/stpncpy.h: Likewise.
55516         * lib/strcase.h: Likewise.
55517         * lib/strchrnul.h: Likewise.
55518         * lib/strdup.h: Likewise.
55519         * lib/strndup.h: Likewise.
55520         * lib/strnlen.h: Likewise.
55521         * lib/strpbrk.h: Likewise.
55522         * lib/strsep.h: Likewise.
55523         * lib/strstr.h: Likewise.
55524         * lib/strtok_r.h: Likewise.
55525         * lib/string_.h: New file.
55526         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55527         Rely on <string.h> instead.
55528         * lib/canon-host.c: Likewise.
55529         * lib/chdir-long.c: Likewise.
55530         * lib/concatpath.c: Likewise.
55531         * lib/exclude.c: Likewise.
55532         * lib/fchdir.c: Likewise.
55533         * lib/getaddrinfo.c: Likewise.
55534         * lib/getcwd.c: Likewise.
55535         * lib/getsubopt.c: Likewise.
55536         * lib/glob.c: Likewise.
55537         * lib/hard-locale.c: Likewise.
55538         * lib/iconvme.c: Likewise.
55539         * lib/javacomp.c: Likewise.
55540         * lib/mempcpy.c: Likewise.
55541         * lib/memrchr.c: Likewise.
55542         * lib/regex_internal.h: Likewise.
55543         * lib/stpncpy.c: Likewise.
55544         * lib/strcasecmp.c: Likewise.
55545         * lib/strchrnul.c: Likewise.
55546         * lib/strdup.c: Likewise.
55547         * lib/striconv.c: Likewise.
55548         * lib/striconveh.c: Likewise.
55549         * lib/striconveha.c: Likewise.
55550         * lib/strncasecmp.c: Likewise.
55551         * lib/strndup.c: Likewise.
55552         * lib/strnlen.c: Likewise.
55553         * lib/strsep.c: Likewise.
55554         * lib/strstr.c: Likewise.
55555         * lib/strtok_r.c: Likewise.
55556         * lib/userspec.c: Likewise.
55557         * lib/w32spawn.h: Likewise.
55558         * lib/xstrndup.c: Likewise.
55559         * lib/mountlist.c (strstr): Remove decl.
55560         * m4/string_h.m4: New file.
55561         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55562         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55563         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55564         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55565         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55566         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55567         Set REPLACE_STRCASECMP if necessary.
55568         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55569         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55570         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55571         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55572         HAVE_DECL_STRDUP if necessary.
55573         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55574         since gl_FUNC_STRNDUP does that now.
55575         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55576         Check for decl here...
55577         (gl_PREREQ_STRNLEN): ... not here.
55578         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55579         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55580         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55581         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55582         necessary.
55583         * modules/string: New file.
55584         * modules/memmem (Files): Remove special-purpose include file.
55585         (Depends-on): Add string.
55586         (Include): Include <string.h>, not the removed file.
55587         * modules/mempcpy: Likewise.
55588         * modules/memrchr: Likewise.
55589         * modules/stpcpy: Likewise.
55590         * modules/stpncpy: Likewise.
55591         * modules/strcase: Likewise.
55592         * modules/strchrnul: Likewise.
55593         * modules/strdup: Likewise.
55594         * modules/strndup: Likewise.
55595         * modules/strnlen: Likewise.
55596         * modules/strpbrk: Likewise.
55597         * modules/strsep: Likewise.
55598         * modules/strstr: Likewise.
55599         * modules/strtok_r: Likewise.
55600         * tests/test-dirname.c: Don't include "strdup.h", since
55601         <string.h> now suffices.
55602         * tests/test-memmem.c: Don't include "memmem.h", since
55603         <string.h> now suffices.
55604
55605 2007-01-25  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55608         *resultp is 0.
55609
55610         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55611         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55612         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55613         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55614
55615         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55616         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55617         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55618         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55619         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55620         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55621
55622 2007-01-24  Bruno Haible  <bruno@clisp.org>
55623
55624         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55625         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55626         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55627         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55628         gl_FUNC_FTS_CORE.
55629         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55630         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55631         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55632         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55633         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55634         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55635         gl_FUNC_FCHOWNAT.
55636         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55637         gl_FUNC_STRFTIME.
55638         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55639         Reported by Ralf Wildenhues.
55640
55641 2007-01-24  Bruno Haible  <bruno@clisp.org>
55642
55643         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55644         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55645         gl_GETADDRINFO.
55646         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55647         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55648         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55649
55650 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55651
55652         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55653         Don't use 'exit'; just return from 'main'.
55654         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55655
55656         * lib/fnmatch_.h: Readjust white space and comments to match
55657         glibc, to avoid spurious diffs.
55658
55659 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55662         2004-12-01 change by Jakub Jelinek, since this code won't compile
55663         if !LIBC.  Problem reported by Bob Proulx.
55664
55665 2007-01-23  Bruno Haible  <bruno@clisp.org>
55666
55667         * lib/striconveh.c: Include c-strcaseeq.h.
55668         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55669         * modules/striconveh (Depends-on): Add c-strcaseeq.
55670
55671 2007-01-23  Bruno Haible  <bruno@clisp.org>
55672
55673         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55674
55675         * modules/c-strcaseeq: New file.
55676         * lib/c-strcaseeq.h: New file.
55677
55678         * modules/streq: New file.
55679         * lib/streq.h: New file.
55680
55681 2007-01-23  Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/striconveha-tests: New file.
55684         * tests/test-striconveha.c: New file.
55685
55686         * lib/striconveha.h: Include <stdbool.h>.
55687         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55688         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55689         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55690         (mem_iconveha): New function.
55691         (str_iconveha_notranslit): Renamed from str_iconveha.
55692         (str_iconveha): New function.
55693         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55694         c-strcase.
55695
55696 2007-01-23  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55699         encodings without forgiving before trying any encoding with handler.
55700         (str_iconveha): Try all encodings without forgiving before trying any
55701         encoding with handler.
55702
55703 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55704
55705         Import the following changes from libc.
55706
55707         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55708
55709         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55710
55711         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55712
55713         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55714         normal_bracket label.
55715
55716         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55717
55718         [BZ #361]
55719         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55720         to normal_bracket after fetching the next character.
55721
55722 2007-01-22  Bruno Haible  <bruno@clisp.org>
55723
55724         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55725         argument.
55726         * lib/striconveh.c (iconv_carefully_1): New function.
55727         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55728         argument.
55729         (str_cd_iconveh): Update.
55730         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55731         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55732         * tests/test-striconveh.c (MAGIC): New macro.
55733         (new_offsets): New function.
55734         (main): Test call with and without offsets.
55735
55736 2007-01-22  Bruno Haible  <bruno@clisp.org>
55737
55738         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55739         * modules/sys_select (Makefile.am): Likewise.
55740         * modules/sys_socket (Makefile.am): Likewise.
55741         * modules/sys_time (Makefile.am): Likewise.
55742
55743 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55744
55745         * modules/gettimeofday (License): Change from GPL to LGPL, since
55746         gettimeofday is a library function.
55747
55748 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55749
55750         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55751
55752 2007-01-21  Bruno Haible  <bruno@clisp.org>
55753
55754         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55755
55756 2007-01-21  Bruno Haible  <bruno@clisp.org>
55757
55758         * modules/striconveha: New file.
55759         * lib/striconveha.h: New file.
55760         * lib/striconveha.c: New file.
55761         * MODULES.html.sh (Internationalization functions): Add striconveha.
55762         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55763         string.
55764         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55765
55766 2007-01-21  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55769         * lib/striconveh.c (str_iconveh): Likewise.
55770
55771 2007-01-21  Bruno Haible  <bruno@clisp.org>
55772
55773         * lib/striconveh.h (mem_iconveh): New declaration.
55774         * lib/striconveh.c (mem_iconveh): New function.
55775         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55776
55777 2007-01-21  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55780
55781         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55782         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55783         original result buffer.
55784         (str_cd_iconveh): Update.
55785         * tests/test-striconveh.c (main): Update.
55786
55787         * lib/striconv.h (mem_cd_iconv): Change specification.
55788         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55789         result buffer.
55790         (str_cd_iconv): Update.
55791         * tests/test-striconv.c (main): Update.
55792
55793 2007-01-21  Bruno Haible  <bruno@clisp.org>
55794
55795         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55796
55797 2007-01-20  Jim Meyering  <jim@meyering.net>
55798
55799         * lib/userspec.c (parse_with_separator): If a user or group string
55800         starts with "+", skip the corresponding name-to-ID look-up, since
55801         such a look-up must fail: user and group names may not include "+".
55802
55803 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55804
55805         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55806         since we now assume the sys_time module.
55807         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55808         check for sys/time.h; no longer needed.
55809         * modules/poll (Depends-on): Depend on sys_time.
55810
55811 2007-01-18  Bruno Haible  <bruno@clisp.org>
55812
55813         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55814         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55815
55816         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55817         gettimeofday.
55818
55819         * tests/test-gettimeofday.c: Include <time.h>.
55820         (dummy): Remove variable.
55821
55822         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55823         gl_HEADER_SYS_TIME_H.
55824         (gl_HEADER_SYS_TIME_H): New macro.
55825
55826         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55827         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55829         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55830         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55831         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55832         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55833         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55834         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55835         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55836         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55837
55838         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55839         last change; it caused a compilation error when cross-compiling to
55840         Cygwin.
55841
55842 2007-01-18  Jim Meyering  <jim@meyering.net>
55843
55844         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55845         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55846         than the race-prone "test -d sys || mkdir sys".
55847         (configure.ac): Use AC_PROG_MKDIR_P.
55848         * modules/sys_select: Likewise.
55849         * modules/sys_socket: Likewise.
55850         * modules/sys_time: Likewise.
55851
55852 2007-01-18  Eric Blake  <ebb9@byu.net>
55853
55854         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55855         replace gettimeofday.
55856         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55857         name, to avoid infinite recursion.
55858
55859 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55862         module sys_time.
55863         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55864         assume timespec.h defines struct timeval.
55865         * lib/settime.c: Likewise.
55866         * lib/utimens.c: Likewise.
55867         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55868         since we now assume the gettimeofday module.
55869         * lib/tempname.c (__gen_tempname): Likewise.
55870         * lib/gettimeofday.h: Remove.
55871         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55872         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55873         Include <time.h>, for 'time()'.
55874         (localtime_buffer_addr): Also use this workaround if
55875         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55876         to simplify the uses.  All uses changed.
55877         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55878         that #undef is inside {}, and 'const' follows type name consistently.
55879         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55880         (gettimeofday): Do not use the maximum possible value for
55881         tv->tv_usec, since that might break usages other than ls.c.
55882         Instead, we'll leave ls.c alone.  This undoes today's patch
55883         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55884         we've never observed the problem but might as well keep the
55885         canary.
55886         * lib/nanosleep.c: Include timespec.h first, for interface check.
55887         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55888         now assume the sys_time module.
55889         * lib/tempname.c: Likewise.
55890         * lib/timespec.h: Likewise.
55891         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55892         needed.
55893         * lib/strftime.c: Likewise.
55894         * lib/timespec.h: Likewise.
55895         * lib/posixtm.c: Include posixtm.h first, for interface check.
55896         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55897         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55898         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55899         * lib/sys_time_.h: New file.
55900         * lib/timespec.h (struct timespec): Use long int, not long.
55901         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55902         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55903         Remove obsolescent call to AC_HEADER_TIME.
55904         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55905         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55906         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55907         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55908         Likewise.
55909         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55910         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55911         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55912         into the sys_time module.  Check for gettimeofday just once.
55913         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55914         for gettimeofday signature to just check the signature.  Merely
55915         compile it, since linking doesn't test signature.  Improve test for
55916         whether gettimeofday.o is actually needed.
55917         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55918         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55919         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55920         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55921         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55922         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55923         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55924         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55925         than worrying about sys/time.h.
55926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55927         Don't bother worrying about TIME_WITH_SYS_TIME.
55928         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55929         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55930         * m4/sys_time_h.m4: New file.
55931         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55932         Don't include sys/time.h.  Return from main rather than exiting.
55933         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55934         all uses changed.
55935         * modules/gethrxtime (Depends-on): Add sys_time.
55936         * modules/gettime (Depends-on): Likewise.
55937         * modules/gettimeofday (Depends-on): Likewise.
55938         * modules/nanosleep (Depends-on): Likewise.
55939         * modules/settime (Depends-on): Likewise.
55940         * modules/tempname (Depends-on): Likewise.
55941         * modules/utimens (Depends-on): Likewise.
55942         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55943         (Include): Change back to <sys/time.h>.
55944         (Maintainer): Add self.
55945         * modules/sys_time: New file.
55946         * modules/tempname (Depends-on): Add gettimeofday.
55947         * tests/test-gettimeofday.c: Include <sys/time.h>
55948         rather than gettimeofday.h.
55949
55950 2007-01-17  Bruno Haible  <bruno@clisp.org>
55951
55952         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55953         the license default to GPL.
55954         (func_create_testdir): Don't complain if a module is LGPL and its
55955         tests module depends on GPLed modules.
55956
55957 2007-01-17  Bruno Haible  <bruno@clisp.org>
55958
55959         * lib/gettimeofday.c (gettimeofday): Add code for the case
55960         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55961         maximum possible value for tv->tv_usec, rather than the minimum one.
55962
55963 2005-10-08  Martin Lambers  <marlam@marlam.de>
55964 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55965 2007-01-16  Bruno Haible  <bruno@clisp.org>
55966
55967         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55968         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55969         gl_FUNC_GETTIMEOFDAY.
55970         (Include): Add gettimeofday.h.
55971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55972         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55973         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55974         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55975         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55976         * lib/gettimeofday.h: New file.
55977         * lib/gettimeofday.c: Include <sys/timeb.h>.
55978         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55979         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55980         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55981         fall back on time().
55982
55983         * tests/test-gettimeofday.c: New file.
55984         * modules/gettimeofday-tests: New file.
55985
55986 2007-01-16  Eric Blake  <ebb9@byu.net>
55987
55988         * modules/fnmatch (Depends-on): Depend on wchar.
55989         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55990         * m4/fnmatch.m4: Likewise.
55991         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55992         * m4/mbchar.m4: Likewise.
55993         * modules/mbswidth (Depends-on): Depend on wchar.
55994         * lib/mbswidth.c: Assume <wchar.h>.
55995         * m4/mbswidth.m4: Likewise.
55996         * modules/quotearg (Depends-on): Depend on wchar.
55997         * lib/quotearg.c: Assume <wchar.h>.
55998         * m4/quotearg.m4: Likewise.
55999         * modules/regex (Depends-on): Depend on wchar.
56000         * lib/regex_internal.h: Assume <wchar.h>.
56001         * m4/regex.m4: Likewise.
56002         * modules/stdint (Depends-on): Depend on wchar.
56003         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56004         * m4/stdint.m4: Likewise.
56005         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56006         * modules/strftime (Depends-on): Depend on wchar.
56007         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56008         * modules/strtol (Depends-on): Depend on wchar.
56009         * lib/strtol.c: Assume <wchar.h>.
56010         * modules/wcwidth (Depends-on): Depend on wchar.
56011         * lib/wcwidth.h: Assume <wchar.h>.
56012         * m4/wcwidth.m4: Likewise.
56013
56014 2007-01-16  Bruno Haible  <bruno@clisp.org>
56015
56016         * modules/csharpexec-script: New, created from...
56017         * modules/csharpexec: ... this.
56018
56019 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56020
56021         * modules/javaexec-script: New, created from...
56022         * modules/javaexec: ... this.
56023
56024 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56025
56026         * modules/poll (Dependencies): Add sys_select.
56027
56028 2007-01-15  Jim Meyering  <jim@meyering.net>
56029
56030         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56031         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56032         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56033         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56034
56035 2007-01-15  Bruno Haible  <bruno@clisp.org>
56036
56037         * modules/striconveh: New file.
56038         * lib/striconveh.h: New file.
56039         * lib/striconveh.c: New file.
56040         * MODULES.html.sh (Internationalization functions): Add striconveh.
56041
56042         * modules/striconveh-tests: New file.
56043         * tests/test-striconveh.c: New file.
56044
56045 2007-01-15  Bruno Haible  <bruno@clisp.org>
56046
56047         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56048         not from GNU libiconv or GNU libc.
56049
56050 2007-01-15  Bruno Haible  <bruno@clisp.org>
56051
56052         * doc/gnulib-intro.texi (Copyright): Explain the different license
56053         terms for module descriptions, autoconf macros, tests, documentation.
56054
56055 2007-01-14  Bruno Haible  <bruno@clisp.org>
56056
56057         * modules/striconv-tests: New file.
56058         * tests/test-striconv.c: New file.
56059
56060 2007-01-14  Bruno Haible  <bruno@clisp.org>
56061
56062         * modules/iconv-tests: New file.
56063         * tests/test-iconv.c: New file.
56064
56065 2007-01-14  Bruno Haible  <bruno@clisp.org>
56066
56067         * gnulib-tool (func_get_license): For test modules, use the license of
56068         the main module.
56069
56070 2007-01-14  Bruno Haible  <bruno@clisp.org>
56071
56072         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56073         if iconv is found to exist.
56074
56075 2007-01-14  Bruno Haible  <bruno@clisp.org>
56076
56077         * modules/c-ctype-tests: New file.
56078         * tests/test-c-ctype.c: New file.
56079
56080 2007-01-14  Bruno Haible  <bruno@clisp.org>
56081
56082         * modules/binary-io-tests: New file.
56083         * tests/test-binary-io.sh: New file.
56084         * tests/test-binary-io.c: New file.
56085
56086 2007-01-14  Bruno Haible  <bruno@clisp.org>
56087
56088         * modules/array-oset-tests: New file.
56089         * tests/test-array_oset.c: New file.
56090
56091 2007-01-14  Bruno Haible  <bruno@clisp.org>
56092
56093         * modules/array-list-tests: New file.
56094         * tests/test-array_list.c: New file.
56095
56096 2007-01-14  Bruno Haible  <bruno@clisp.org>
56097
56098         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56099         and make.
56100         Reported by Simon Josefsson in
56101         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56102
56103 2007-01-14  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/allocsa-tests: New file.
56106         * tests/test-allocsa.c: New file.
56107
56108 2007-01-14  Bruno Haible  <bruno@clisp.org>
56109
56110         * modules/fchdir (Depends-on): Add absolute-header.
56111         * modules/unistd (Depends-on): Likewise.
56112
56113 2006-12-30  Bruno Haible  <bruno@clisp.org>
56114
56115         * modules/fchdir: New file.
56116         * modules/unistd (Files): Add lib/unistd_.h.
56117         (Makefile.am): Generate unistd.h from unistd_.h.
56118         * lib/fchdir.c: New file.
56119         * lib/dirent_.h: New file.
56120         * lib/unistd_.h: New file.
56121         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56122         * m4/fchdir.m4: New file.
56123         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56124         (gl_HEADER_UNISTD): Invoke it.
56125         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56126         function.
56127         * lib/backupfile.c (opendir, closedir): Undefine.
56128         * lib/chown.c (open, close): Undefine.
56129         * lib/clean-temp.c (open, close): Undefine.
56130         * lib/copy-file.c (open, close): Undefine.
56131         * lib/execute.c (open, close): Undefine.
56132         * lib/fsusage.c (open, close): Undefine.
56133         * lib/gc-gnulib.c (open, close): Undefine.
56134         * lib/getcwd.c (opendir, closedir): Undefine.
56135         * lib/glob.c (opendir, closedir): Undefine.
56136         * lib/javacomp.c (open, close): Undefine.
56137         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56138         * lib/openat-proc.c (open, close): Undefine.
56139         * lib/pagealign_alloc.c (open, close): Undefine.
56140         * lib/pipe.c (open, close): Undefine.
56141         * lib/progreloc.c (open, close): Undefine.
56142         * lib/savedir.c (opendir, closedir): Undefine.
56143         * lib/utime.c (open, close): Undefine.
56144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56145
56146 2007-01-10  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56149
56150 2007-01-12  Eric Blake  <ebb9@byu.net>
56151
56152         Provide a robust <wchar.h>.  Further simplifications are now
56153         possible in other modules, but not included here.
56154         * modules/wchar: New module.
56155         * m4/wchar.m4: New file.
56156         * lib/wchar_.h: Likewise.
56157         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56158         of the new module.
56159         * MODULES.html.sh (Extended multibyte and wide character utilities):
56160         New section.
56161
56162 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56163
56164         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56165         to a reasonable default for memory allocation.
56166         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56167         file system that reports garbage st_size values for symlinks.
56168         Problem reported by Liyang Hu.
56169
56170 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56171
56172         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56173         Emacs .#* auto-save files).
56174
56175 2007-01-11  Bruno Haible  <bruno@clisp.org>
56176
56177         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56178         directory.
56179
56180 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56181
56182         Use @...@ consistently in lib/wctype_.h.
56183         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56184         on it being set to 1 or 0.
56185         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56186         go back to AC_SUBSTing it.
56187         * modules/wctype (Makefile.am): Undo previous change.
56188
56189 2007-01-10  Eric Blake  <ebb9@byu.net>
56190
56191         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56192         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56193         * modules/wctype (Makefile.am): Likewise.
56194         Reported by Chris McGuire.
56195
56196 2007-01-10  Jim Meyering  <jim@meyering.net>
56197
56198         fts.c: a small readability/maintainability improvement
56199         * lib/fts.c (fts_read): Make this code slightly more readable and
56200         maintainable by hoisting the "sp->fts_cur = p" assignments to
56201         immediately follow the statements that set P.  Derived from
56202         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56203
56204 2007-01-10  Eric Blake  <ebb9@byu.net>
56205
56206         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56207         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56208         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56209         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56210         Reported by Chris McGuire.
56211
56212 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56213
56214         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56215         in sed script.
56216
56217 2007-01-09  Bruno Haible  <bruno@clisp.org>
56218
56219         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56220         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56221         variables.
56222         (func_module): Use them.
56223
56224 2007-01-09  Bruno Haible  <bruno@clisp.org>
56225
56226         * modules/unistr/base: New file.
56227         * lib/unistr.h: New file.
56228
56229         * modules/unistr/u8-to-u16: New file.
56230         * lib/unistr/u8-to-u16.c: New file.
56231
56232         * modules/unistr/u8-to-u32: New file.
56233         * lib/unistr/u8-to-u32.c: New file.
56234
56235         * modules/unistr/u16-to-u8: New file.
56236         * lib/unistr/u16-to-u8.c: New file.
56237
56238         * modules/unistr/u16-to-u32: New file.
56239         * lib/unistr/u16-to-u32.c: New file.
56240
56241         * modules/unistr/u32-to-u8: New file.
56242         * lib/unistr/u32-to-u8.c: New file.
56243
56244         * modules/unistr/u32-to-u16: New file.
56245         * lib/unistr/u32-to-u16.c: New file.
56246
56247         * modules/unistr/u8-check: New file.
56248         * modules/unistr/u16-check: New file.
56249         * modules/unistr/u32-check: New file.
56250         * lib/unistr/u8-check.c: New file.
56251         * lib/unistr/u16-check.c: New file.
56252         * lib/unistr/u32-check.c: New file.
56253
56254         * modules/unistr/u8-chr: New file.
56255         * modules/unistr/u16-chr: New file.
56256         * modules/unistr/u32-chr: New file.
56257         * lib/unistr/u8-chr.c: New file.
56258         * lib/unistr/u16-chr.c: New file.
56259         * lib/unistr/u32-chr.c: New file.
56260
56261         * modules/unistr/u8-cmp: New file.
56262         * modules/unistr/u16-cmp: New file.
56263         * modules/unistr/u32-cmp: New file.
56264         * lib/unistr/u8-cmp.c: New file.
56265         * lib/unistr/u16-cmp.c: New file.
56266         * lib/unistr/u32-cmp.c: New file.
56267
56268         * modules/unistr/u8-cpy: New file.
56269         * modules/unistr/u16-cpy: New file.
56270         * modules/unistr/u32-cpy: New file.
56271         * lib/unistr/u8-cpy.c: New file.
56272         * lib/unistr/u16-cpy.c: New file.
56273         * lib/unistr/u32-cpy.c: New file.
56274         * lib/unistr/u-cpy.h: New file.
56275
56276         * modules/unistr/u8-cpy-alloc: New file.
56277         * modules/unistr/u16-cpy-alloc: New file.
56278         * modules/unistr/u32-cpy-alloc: New file.
56279         * lib/unistr/u8-cpy-alloc.c: New file.
56280         * lib/unistr/u16-cpy-alloc.c: New file.
56281         * lib/unistr/u32-cpy-alloc.c: New file.
56282         * lib/unistr/u-cpy-alloc.h: New file.
56283
56284         * modules/unistr/u8-endswith: New file.
56285         * modules/unistr/u16-endswith: New file.
56286         * modules/unistr/u32-endswith: New file.
56287         * lib/unistr/u8-endswith.c: New file.
56288         * lib/unistr/u16-endswith.c: New file.
56289         * lib/unistr/u32-endswith.c: New file.
56290         * lib/unistr/u-endswith.h: New file.
56291
56292         * modules/unistr/u8-mblen: New file.
56293         * modules/unistr/u16-mblen: New file.
56294         * modules/unistr/u32-mblen: New file.
56295         * lib/unistr/u8-mblen.c: New file.
56296         * lib/unistr/u16-mblen.c: New file.
56297         * lib/unistr/u32-mblen.c: New file.
56298
56299         * modules/unistr/u8-mbtouc: New file.
56300         * modules/unistr/u16-mbtouc: New file.
56301         * modules/unistr/u32-mbtouc: New file.
56302         * lib/unistr/u8-mbtouc.c: New file.
56303         * lib/unistr/u16-mbtouc.c: New file.
56304         * lib/unistr/u32-mbtouc.c: New file.
56305
56306         * modules/unistr/u8-mbtouc-safe: New file.
56307         * modules/unistr/u16-mbtouc-safe: New file.
56308         * modules/unistr/u32-mbtouc-safe: New file.
56309         * lib/unistr/u8-mbtouc-safe.c: New file.
56310         * lib/unistr/u16-mbtouc-safe.c: New file.
56311         * lib/unistr/u32-mbtouc-safe.c: New file.
56312
56313         * modules/unistr/u8-move: New file.
56314         * modules/unistr/u16-move: New file.
56315         * modules/unistr/u32-move: New file.
56316         * lib/unistr/u8-move.c: New file.
56317         * lib/unistr/u16-move.c: New file.
56318         * lib/unistr/u32-move.c: New file.
56319         * lib/unistr/u-move.h: New file.
56320
56321         * modules/unistr/u8-next: New file.
56322         * modules/unistr/u16-next: New file.
56323         * modules/unistr/u32-next: New file.
56324         * lib/unistr/u8-next.c: New file.
56325         * lib/unistr/u16-next.c: New file.
56326         * lib/unistr/u32-next.c: New file.
56327
56328         * modules/unistr/u8-prev: New file.
56329         * modules/unistr/u16-prev: New file.
56330         * modules/unistr/u32-prev: New file.
56331         * lib/unistr/u8-prev.c: New file.
56332         * lib/unistr/u16-prev.c: New file.
56333         * lib/unistr/u32-prev.c: New file.
56334
56335         * modules/unistr/u8-set: New file.
56336         * modules/unistr/u16-set: New file.
56337         * modules/unistr/u32-set: New file.
56338         * lib/unistr/u8-set.c: New file.
56339         * lib/unistr/u16-set.c: New file.
56340         * lib/unistr/u32-set.c: New file.
56341         * lib/unistr/u-set.h: New file.
56342
56343         * modules/unistr/u8-startswith: New file.
56344         * modules/unistr/u16-startswith: New file.
56345         * modules/unistr/u32-startswith: New file.
56346         * lib/unistr/u8-startswith.c: New file.
56347         * lib/unistr/u16-startswith.c: New file.
56348         * lib/unistr/u32-startswith.c: New file.
56349         * lib/unistr/u-startswith.h: New file.
56350
56351         * modules/unistr/u8-stpcpy: New file.
56352         * modules/unistr/u16-stpcpy: New file.
56353         * modules/unistr/u32-stpcpy: New file.
56354         * lib/unistr/u8-stpcpy.c: New file.
56355         * lib/unistr/u16-stpcpy.c: New file.
56356         * lib/unistr/u32-stpcpy.c: New file.
56357         * lib/unistr/u-stpcpy.h: New file.
56358
56359         * modules/unistr/u8-stpncpy: New file.
56360         * modules/unistr/u16-stpncpy: New file.
56361         * modules/unistr/u32-stpncpy: New file.
56362         * lib/unistr/u8-stpncpy.c: New file.
56363         * lib/unistr/u16-stpncpy.c: New file.
56364         * lib/unistr/u32-stpncpy.c: New file.
56365         * lib/unistr/u-stpncpy.h: New file.
56366
56367         * modules/unistr/u8-strcat: New file.
56368         * modules/unistr/u16-strcat: New file.
56369         * modules/unistr/u32-strcat: New file.
56370         * lib/unistr/u8-strcat.c: New file.
56371         * lib/unistr/u16-strcat.c: New file.
56372         * lib/unistr/u32-strcat.c: New file.
56373         * lib/unistr/u-strcat.h: New file.
56374
56375         * modules/unistr/u8-strchr: New file.
56376         * modules/unistr/u16-strchr: New file.
56377         * modules/unistr/u32-strchr: New file.
56378         * lib/unistr/u8-strchr.c: New file.
56379         * lib/unistr/u16-strchr.c: New file.
56380         * lib/unistr/u32-strchr.c: New file.
56381
56382         * modules/unistr/u8-strcmp: New file.
56383         * modules/unistr/u16-strcmp: New file.
56384         * modules/unistr/u32-strcmp: New file.
56385         * lib/unistr/u8-strcmp.c: New file.
56386         * lib/unistr/u16-strcmp.c: New file.
56387         * lib/unistr/u32-strcmp.c: New file.
56388
56389         * modules/unistr/u8-strcpy: New file.
56390         * modules/unistr/u16-strcpy: New file.
56391         * modules/unistr/u32-strcpy: New file.
56392         * lib/unistr/u8-strcpy.c: New file.
56393         * lib/unistr/u16-strcpy.c: New file.
56394         * lib/unistr/u32-strcpy.c: New file.
56395         * lib/unistr/u-strcpy.h: New file.
56396
56397         * modules/unistr/u8-strcspn: New file.
56398         * modules/unistr/u16-strcspn: New file.
56399         * modules/unistr/u32-strcspn: New file.
56400         * lib/unistr/u8-strcspn.c: New file.
56401         * lib/unistr/u16-strcspn.c: New file.
56402         * lib/unistr/u32-strcspn.c: New file.
56403         * lib/unistr/u-strcspn.h: New file.
56404
56405         * modules/unistr/u8-strdup: New file.
56406         * modules/unistr/u16-strdup: New file.
56407         * modules/unistr/u32-strdup: New file.
56408         * lib/unistr/u8-strdup.c: New file.
56409         * lib/unistr/u16-strdup.c: New file.
56410         * lib/unistr/u32-strdup.c: New file.
56411         * lib/unistr/u-strdup.h: New file.
56412
56413         * modules/unistr/u8-strlen: New file.
56414         * modules/unistr/u16-strlen: New file.
56415         * modules/unistr/u32-strlen: New file.
56416         * lib/unistr/u8-strlen.c: New file.
56417         * lib/unistr/u16-strlen.c: New file.
56418         * lib/unistr/u32-strlen.c: New file.
56419         * lib/unistr/u-strlen.h: New file.
56420
56421         * modules/unistr/u8-strmblen: New file.
56422         * modules/unistr/u16-strmblen: New file.
56423         * modules/unistr/u32-strmblen: New file.
56424         * lib/unistr/u8-strmblen.c: New file.
56425         * lib/unistr/u16-strmblen.c: New file.
56426         * lib/unistr/u32-strmblen.c: New file.
56427
56428         * modules/unistr/u8-strmbtouc: New file.
56429         * modules/unistr/u16-strmbtouc: New file.
56430         * modules/unistr/u32-strmbtouc: New file.
56431         * lib/unistr/u8-strmbtouc.c: New file.
56432         * lib/unistr/u16-strmbtouc.c: New file.
56433         * lib/unistr/u32-strmbtouc.c: New file.
56434
56435         * modules/unistr/u8-strncat: New file.
56436         * modules/unistr/u16-strncat: New file.
56437         * modules/unistr/u32-strncat: New file.
56438         * lib/unistr/u8-strncat.c: New file.
56439         * lib/unistr/u16-strncat.c: New file.
56440         * lib/unistr/u32-strncat.c: New file.
56441         * lib/unistr/u-strncat.h: New file.
56442
56443         * modules/unistr/u8-strncmp: New file.
56444         * modules/unistr/u16-strncmp: New file.
56445         * modules/unistr/u32-strncmp: New file.
56446         * lib/unistr/u8-strncmp.c: New file.
56447         * lib/unistr/u16-strncmp.c: New file.
56448         * lib/unistr/u32-strncmp.c: New file.
56449
56450         * modules/unistr/u8-strncpy: New file.
56451         * modules/unistr/u16-strncpy: New file.
56452         * modules/unistr/u32-strncpy: New file.
56453         * lib/unistr/u8-strncpy.c: New file.
56454         * lib/unistr/u16-strncpy.c: New file.
56455         * lib/unistr/u32-strncpy.c: New file.
56456         * lib/unistr/u-strncpy.h: New file.
56457
56458         * modules/unistr/u8-strnlen: New file.
56459         * modules/unistr/u16-strnlen: New file.
56460         * modules/unistr/u32-strnlen: New file.
56461         * lib/unistr/u8-strnlen.c: New file.
56462         * lib/unistr/u16-strnlen.c: New file.
56463         * lib/unistr/u32-strnlen.c: New file.
56464         * lib/unistr/u-strnlen.h: New file.
56465
56466         * modules/unistr/u8-strpbrk: New file.
56467         * modules/unistr/u16-strpbrk: New file.
56468         * modules/unistr/u32-strpbrk: New file.
56469         * lib/unistr/u8-strpbrk.c: New file.
56470         * lib/unistr/u16-strpbrk.c: New file.
56471         * lib/unistr/u32-strpbrk.c: New file.
56472         * lib/unistr/u-strpbrk.h: New file.
56473
56474         * modules/unistr/u8-strrchr: New file.
56475         * modules/unistr/u16-strrchr: New file.
56476         * modules/unistr/u32-strrchr: New file.
56477         * lib/unistr/u8-strrchr.c: New file.
56478         * lib/unistr/u16-strrchr.c: New file.
56479         * lib/unistr/u32-strrchr.c: New file.
56480
56481         * modules/unistr/u8-strspn: New file.
56482         * modules/unistr/u16-strspn: New file.
56483         * modules/unistr/u32-strspn: New file.
56484         * lib/unistr/u8-strspn.c: New file.
56485         * lib/unistr/u16-strspn.c: New file.
56486         * lib/unistr/u32-strspn.c: New file.
56487         * lib/unistr/u-strspn.h: New file.
56488
56489         * modules/unistr/u8-strstr: New file.
56490         * modules/unistr/u16-strstr: New file.
56491         * modules/unistr/u32-strstr: New file.
56492         * lib/unistr/u8-strstr.c: New file.
56493         * lib/unistr/u16-strstr.c: New file.
56494         * lib/unistr/u32-strstr.c: New file.
56495         * lib/unistr/u-strstr.h: New file.
56496
56497         * modules/unistr/u8-strtok: New file.
56498         * modules/unistr/u16-strtok: New file.
56499         * modules/unistr/u32-strtok: New file.
56500         * lib/unistr/u8-strtok.c: New file.
56501         * lib/unistr/u16-strtok.c: New file.
56502         * lib/unistr/u32-strtok.c: New file.
56503         * lib/unistr/u-strtok.h: New file.
56504
56505         * modules/unistr/u8-uctomb: New file.
56506         * modules/unistr/u16-uctomb: New file.
56507         * modules/unistr/u32-uctomb: New file.
56508         * lib/unistr/u8-uctomb.c: New file.
56509         * lib/unistr/u16-uctomb.c: New file.
56510         * lib/unistr/u32-uctomb.c: New file.
56511
56512         * MODULES.html.sh (Unicode string functions): Add the new modules.
56513
56514 2007-01-08  Bruno Haible  <bruno@clisp.org>
56515
56516         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56517         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56518         subdirectories.
56519
56520 2007-01-08  Karl Berry  <karl@gnu.org>
56521
56522         * doc/error.texi: mention that main() fns must set program_name
56523         when progname is used.
56524
56525 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56526
56527         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56528         WCTYPE_H is empty, for the benefit of builds from non-distclean
56529         directories.  Problem reported by Eric Blake in
56530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56531
56532 2007-01-08  Bruno Haible  <bruno@clisp.org>
56533
56534         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56535         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56536         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56537         PROVIDE_CANONICALIZE_FILENAME_MODE.
56538         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56539
56540 2007-01-08  Bruno Haible  <bruno@clisp.org>
56541
56542         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56543         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56544         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56545         * lib/fts.c: Likewise.
56546         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56547
56548 2006-12-25  Bruno Haible  <bruno@clisp.org>
56549
56550         * modules/utf8-ucs4-safe: New file.
56551         * lib/utf8-ucs4-safe.h: New file.
56552         * lib/unistr/utf8-ucs4-safe.c: New file.
56553
56554         * modules/utf16-ucs4-safe: New file.
56555         * lib/utf16-ucs4-safe.h: New file.
56556         * lib/unistr/utf16-ucs4-safe.c: New file.
56557
56558         * MODULES.html.sh (Unicode string functions): Add the new modules.
56559
56560 2007-01-08  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56563         (Depends-on): Add unitypes.
56564         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56565         (u8_mbtouc_aux): Move out to separate file.
56566         (u8_mbtouc): Use ucs4_t, uint8_t types.
56567         * lib/unistr/utf8-ucs4.c: New file.
56568
56569         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56570         (Depends-on): Add unitypes.
56571         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56572         (u16_mbtouc_aux): Move out to separate file.
56573         (u16_mbtouc): Use ucs4_t, uint16_t types.
56574         * lib/unistr/utf16-ucs4.c: New file.
56575
56576         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56577         (Depends-on): Add unitypes.
56578         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56579         (u8_uctomb_aux): Move out to separate file.
56580         (u8_uctomb): Use ucs4_t, uint8_t types.
56581         * lib/unistr/ucs4-utf8.c: New file.
56582
56583         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56584         (Depends-on): Add unitypes.
56585         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56586         (u16_uctomb_aux): Move out to separate file.
56587         (u16_uctomb): Use ucs4_t, uint16_t types.
56588         * lib/unistr/ucs4-utf16.c: New file.
56589
56590 2006-12-25  Bruno Haible  <bruno@clisp.org>
56591
56592         * modules/unitypes: New file.
56593         * lib/unitypes.h: New file.
56594         * MODULES.html.sh (func_all_modules): New section "Unicode string
56595         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56596         this section. Add unitypes.
56597
56598 2007-01-08  Bruno Haible  <bruno@clisp.org>
56599
56600         Avoid variable names that conflict with those from libtool.
56601         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56602         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56603         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56604         library_names_spec to acl_library_names_spec, hardcode_* to
56605         acl_hardcode_*.
56606         Reported by Ralf Wildenhues.
56607
56608 2007-01-08  Bruno Haible  <bruno@clisp.org>
56609
56610         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56611         definition.
56612         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56613         definition.
56614         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56615         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56616         definition.
56617         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56618         definition.
56619         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56620         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56621         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56622         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56623         definition.
56624         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56625         definition.
56626         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56627         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56628         GC_USE_<algorithm>.
56629         * lib/gc-libgcrypt.c: Likewise.
56630         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56631         * modules/gc-arctwo (configure.ac): Likewise.
56632         * modules/gc-des (configure.ac): Likewise.
56633         * modules/gc-hmac-md5 (configure.ac): Likewise.
56634         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56635         * modules/gc-md2 (configure.ac): Likewise.
56636         * modules/gc-md4 (configure.ac): Likewise.
56637         * modules/gc-md5 (configure.ac): Likewise.
56638         * modules/gc-random (configure.ac): Likewise.
56639         * modules/gc-rijndael (configure.ac): Likewise.
56640         * modules/gc-sha1 (configure.ac): Likewise.
56641
56642 2007-01-08  Bruno Haible  <bruno@clisp.org>
56643
56644         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56645         macro definition.
56646         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56647         definition.
56648         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56649         definition.
56650         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56651         * modules/fcntl-safer (configure.ac): Likewise.
56652         * modules/fopen-safer (configure.ac): Likewise.
56653         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56654         GNULIB_FWRITEERROR macro definition.
56655
56656 2007-01-08  Bruno Haible  <bruno@clisp.org>
56657
56658         * m4/gnulib-common.m4: New file.
56659         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56660         (func_get_filelist): Add m4/gnulib-common.m4.
56661
56662 2007-01-08  Bruno Haible  <bruno@clisp.org>
56663
56664         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56665         command.
56666
56667 2007-01-08  Jim Meyering  <jim@meyering.net>
56668
56669         Use a more robust test for a "can't happen" condition.
56670         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56671         narrowed the st_size value.  Presuming the "can't happen" condition
56672         is true, that narrowing could conceivably convert an invalid st_size
56673         value into a valid one.  Instead, use a change based on Matthew
56674         Woehlke's original patch.
56675
56676         Slight readability improvement: use an assert-like macro
56677         in place of literal "abort ()" uses.
56678         * lib/fts.c (fts_assert): Define.
56679         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56680         Use this macro instead of a bare 'abort'.
56681
56682 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56683
56684         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56685         simply work around them.
56686         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56687         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56688         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56689         declaring.
56690         Don't bother to define as macros, since the standard doesn't require it.
56691         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56692         longer worry about IRIX 5.3.
56693         (HAVE_WCTYPE_CTMP_BUG): Remove.
56694
56695 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56696
56697         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56698         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56699         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56700         Problems reported by Georg Schwarz for IRIX 5.3.
56701
56702         * gnulib-tool (autoconf_minversion): Take the maximum version number
56703         found, not the minimum.  Problem reported by James Youngman.
56704
56705 2007-01-03  Karl Berry  <karl@gnu.org>
56706
56707         * doc/error.texi: new file, explaining interaction with progname.
56708         * doc/gnulib.texi: include it.  Update copyright.
56709
56710 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56711
56712         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56713         AC_CANONICAL_HOST, to improve autobuild outputs.
56714
56715 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56716             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56717
56718         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56719         sockets, server sockets, and other file descriptors.  Count errors
56720         to compute the return value.  Reorder the code a bit to be easier
56721         to follow.  Don't set event bits that were not requested (except
56722         POLLERR and POLLHUP).
56723
56724 2007-01-01  Bruno Haible  <bruno@clisp.org>
56725
56726         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56727
56728 2007-01-03  Jim Meyering  <jim@meyering.net>
56729
56730         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56731
56732 2007-01-02  Bruno Haible  <bruno@clisp.org>
56733
56734         * modules/settime (Include): Require timespec.h.
56735         * modules/nanosleep (Include): Likewise.
56736
56737 2007-01-01  Bruno Haible  <bruno@clisp.org>
56738
56739         * gnulib-tool (func_emit_copyright_notice): Bump year.
56740         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56741
56742 2007-01-01  Bruno Haible  <bruno@clisp.org>
56743
56744         Improve support for OpenBSD.
56745         * build-aux/config.rpath (libname_spec): Export.
56746         (library_names_spec): New variable. Export.
56747         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56748         library_names_spec from the config.rpath output. Locate shared library
56749         through the name pattern in library_names_spec.
56750
56751 2007-01-01  Eric Blake  <ebb9@byu.net>
56752
56753         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56754
56755 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56756
56757         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56758         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56759         assume the C locale, and avoid an "eval" that could cause trouble.
56760         Problem with SORT reported by Bob Proulx.
56761
56762         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56763         Define.  Trivial patch from Henning Nielsen Lund, originally
56764         sent to bug-grep@gnu.org today.
56765
56766 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56767
56768         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56769         struct stat.  Problem reported by Henning Nielsen Lund.
56770         * lib/acl.c: Include acl.h first, to check interface.  Don't
56771         bother to include sys/types.h and sys/stat.h again.
56772
56773 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56774
56775         Import the following change from libc; problem reported by
56776         Sven Verdoolaege.
56777
56778         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56779
56780         [BZ #1373]
56781         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56782
56783 2006-12-28  Jim Meyering  <jim@meyering.net>
56784
56785         * build-aux/announce-gen: Do not assume that the package
56786         builds any of tar.gz, tar.bz2, and .xdelta files.
56787         Suggestion from Simon Josefsson.
56788
56789 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56790
56791         * modules/announce-gen: New file.
56792
56793 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56794
56795         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56796         handles its gotchas now.
56797         * lib/mbswidth.c: Likewise.
56798         * lib/wcwidth.h: Likewise.
56799         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56800         and iswcntrl; the wctype module does this stuff now.
56801         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56803         * modules/mbchar (Depends-on): Add wctype.
56804         * modules/mbswidth (Depends-on): Likewise.
56805         * modules/wcwidth (Depends-on): Likewise.
56806
56807 2006-12-27  Eric Blake  <ebb9@byu.net>
56808
56809         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56810         module uses more than what <wctype.h> is required to provide.
56811
56812 2006-12-26  Eric Blake  <ebb9@byu.net>
56813
56814         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56815
56816 2006-12-26  Eric Blake  <ebb9@byu.net>
56817
56818         * modules/absolute-header: New module.
56819         * modules/fcntl (Depends-on): Depend on it.
56820         * modules/inttypes (Depends-on): Likewise.
56821         * modules/stdint (Depends-on): Likewise.
56822         * modules/sys_stat (Depends-on): Likewise.
56823         * modules/wctype (Depends-on): Likewise.
56824         * MODULES.html.sh (Support for building libraries and
56825         executables): Document it.
56826
56827 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56828
56829         * gnulib-tool (SED): Remove, undoing previous change.
56830         The problem was that it broke coreutils on Solaris, because
56831         "sed --posix" leaked into a makefile.
56832         (sed): New alias, if 'alias' and GNU sed.
56833
56834 2006-12-24  Jim Meyering  <jim@meyering.net>
56835
56836         Work around an fchownat bug in glibc-2.4:
56837         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56838         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56839         in spite of the -P option.
56840         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56841         New macros.
56842         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56843         * modules/openat (Files): Add lib/fchownat.c.
56844         * lib/openat.c (fchownat): Don't define here.  Move to...
56845         * lib/fchownat.c: ...this new file.
56846
56847 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56848
56849         Fix bug reported by Bruno Haible in
56850         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56851         where quotearg.c didn't compile on Mac OS X 10.2 because it
56852         lacks <wchar.h> and wint_t.
56853         * lib/wctype_.h (__wctype_wint_t): New type.
56854         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56855         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56856         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56857         Arg is now of type __wctype_wint_t, not wint_t.
56858         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56859         substitute HAVE_WINT_T.
56860         * modules/wctype (Files): Add m4/wint_t.m4.
56861         (wctype.h): Substitute HAVE_WINT_T.
56862
56863 2006-12-23  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56866
56867 2006-12-23  Bruno Haible  <bruno@clisp.org>
56868
56869         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56870         S_ISLNK.
56871         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56872         mingw.
56873
56874 2006-12-22  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/copy-file.c: Include acl.h.
56877         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56878         Close the file descriptors only after being done with copy_acl.
56879         * modules/copy-file (Depends-on): Add acl.
56880
56881 2006-12-22  Bruno Haible  <bruno@clisp.org>
56882
56883         * gnulib-tool (SED): New variable.
56884         Use $SED instead of sed everywhere.
56885
56886 2006-12-22  Bruno Haible  <bruno@clisp.org>
56887
56888         * modules/no-c++: New file.
56889         * m4/no-c++.m4: New file.
56890         * MODULES.html.sh (Support for building libraries and executables):
56891         Add no-c++.
56892
56893 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56894
56895         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56896         Include <limits.h>, and use its INT_MAX to rewrite the
56897         j loop so that it does not overflow 'int'.  Problem reported by
56898         Ralf Wildenhues in
56899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56900         Play it safe by shifting left by 1 rather than multiplying by 2,
56901         as GCC is less likely to optimize this away when the value
56902         is signed (when it assumes overflow leads to undefined behavior).
56903         Also, don't assume time_t uses two's complement.
56904
56905 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         * MODULES.html.sh: New module wctype.
56908         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56909         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56910         <wctype.h>, since the new wctype module should fix this.
56911         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56912         the wctype module should arrange for it.
56913         * lib/regex_internal.h: Likewise.
56914         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56915         since the wctype module should handle this now.
56916         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56917         * modules/fnmatch (Depends-on): Add wctype.
56918         * modules/quotearg (Depends-on): Likewise.
56919         * modules/regex (Depends-on): Likewise.
56920
56921 2006-12-19  Bruno Haible  <bruno@clisp.org>
56922
56923         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56924         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56925
56926 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56927
56928         * modules/savewd (Depends-on): Fix dependency on fcntl.
56929
56930 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56933         conforms to C99, rather than relying on the user's environment
56934         setting of STDINT_H.
56935
56936 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56937         and Eric Blake  <ebb9@byu.net>
56938
56939         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56940         This is more consistent with the other defines here.
56941         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56942         Port to z/OS.  Problem reported by Paul Gilmartin.
56943         Change local vars to use gl_ prefix rather than ac_.
56944         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56945         with other defines.
56946         * modules/double-slash-root: New module.
56947         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56948         (Depends-on): Add double-slash-root.
56949         * MODULES.html.sh (File system functions): Mention new module.
56950
56951 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56952
56953         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56954         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56955         This is for the benefit of gzip, which doesn't do i18n.
56956
56957 2006-12-12  Jim Meyering  <jim@meyering.net>
56958
56959         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56960         Reported by Andreas Schwab <schwab@suse.de>.
56961
56962 2006-12-12  Bruno Haible  <bruno@clisp.org>
56963
56964         Merge these changes.
56965         2006-09-05  Bruno Haible  <bruno@clisp.org>
56966         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56967         iconv_alloc succeeded.
56968         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56969         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56970         test for " && dest " at the end - dest is always != NULL there. Call
56971         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56972         with 2xNULL arguments, also to flush the state storage. Handle the
56973         IRIX iconv behaviour. Realloc the final result, to throw away unused
56974         memory.
56975
56976 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56977
56978         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56979         and fchmodat unconditionally, since glibc 2.4 has them.
56980         Problem reported by Arkadiusz Miskiewicz.
56981
56982 2006-12-10  Bruno Haible  <bruno@clisp.org>
56983
56984         * gnulib-tool (func_import): Show the include files only for those
56985         modules that are copied and specified.
56986         Reported by Karl Berry.
56987
56988 2006-12-08  Jim Meyering  <jim@meyering.net>
56989
56990         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56991         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56992
56993         * build-aux/announce-gen: Add two new options, both optional:
56994         --bootstrap-tools=TOOL_LIST
56995               a comma-separated list of tools, e.g.,
56996               autoconf,automake,bison,gnulib
56997         --gnulib-snapshot-date=DATE
56998               if gnulib is in the bootstrap tool list,
56999               then report this as the snapshot date.
57000               If not specified, use the current date/time.
57001               If you specify a date here, be sure it's UTC.
57002
57003 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57004
57005         * tests/test-argp-2.sh: Fix test to match actual output.
57006         (func_compare): Fix sed script to be portable.
57007
57008 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57009
57010         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57011         workaround for this case.  It is not autoconfigured now; offhand
57012         it's hard to see how to autoconfigure it.
57013
57014 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57015
57016         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57017         a directory that is about to be chowned.  Such a directory's
57018         initial file permissions should permit the owner only and this
57019         should not be changed until after the chown, since the group and
57020         other bits would be incorrect if they granted permission before
57021         the chown.
57022
57023         Fix porting problem for iswctype reported by Georg Schwarz in:
57024         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57025         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57026         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57027         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57028         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57029
57030 2006-12-03  Jim Meyering  <jim@meyering.net>
57031
57032         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57033         p->fts_statp may not yet be defined.
57034         (fts_read): Instead, set it in the caller, once p->fts_statp is
57035         sure to be defined, and corresponds to a top-level directory.
57036         This bug made du -x fail.  Here's the coreutils test case:
57037         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57038         Reported by Mike Frysinger.
57039
57040 2006-12-01  Jim Meyering  <jim@meyering.net>
57041
57042         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57043         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57044         Reported by Simon Josefsson.
57045
57046 2006-11-30  Jim Meyering  <jim@meyering.net>
57047
57048         * m4/warning.m4: Use the all-permissive copyright notice
57049         recommended by RMS (rather than LGPL).
57050         * m4/vararrays.m4: Likewise.
57051         * m4/flexmember.m4: Likewise.
57052
57053 2006-11-29  Bruno Haible  <bruno@clisp.org>
57054
57055         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57056         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57057         using +=.
57058         Reported by Simon Josefsson <simon@josefsson.org>.
57059
57060 2006-11-28  James Youngman <jay@gnu.org>
57061
57062         * README: Advise users that they might find the bug-gnulib@gnu.org
57063         and autotools-announce@gnu.org mailing lists useful.
57064
57065 2006-11-28  Bruno Haible  <bruno@clisp.org>
57066
57067         * m4/ptrdiff_max.m4: Remove file.
57068
57069 2006-11-21  Bruno Haible  <bruno@clisp.org>
57070
57071         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57072         _AC_COMPUTE_INT.
57073         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57074         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57075         _AC_COMPUTE_INT.
57076         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57077         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57078         _AC_COMPUTE_INT.
57079         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57080
57081 2006-11-28  Jim Meyering  <jim@meyering.net>
57082
57083         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57084         warning from "gcc -Wshadow" about shadowing the builtin.
57085
57086 2006-11-27  Bruno Haible  <bruno@clisp.org>
57087
57088         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57089         _AC_COMPUTE_INT.
57090         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57091
57092 2006-11-27  Bruno Haible  <bruno@clisp.org>
57093             Paul Eggert  <eggert@cs.ucla.edu>
57094
57095         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57096
57097 2006-11-26  Bruno Haible  <bruno@clisp.org>
57098
57099         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57100         noinst_LTLIBRARIES.
57101
57102 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57103             Bruno Haible  <bruno@clisp.org>
57104
57105         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57106         if compiling with "gcc -ansi".
57107
57108 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         Fix some incompatibilities with gcc -ansi -pedantic.
57111         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57112         if compiling pedantically with GCC, unless it's C99 or later.
57113         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57114         it mishandles gcc -ansi -pedantic as well.
57115         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57116         if gcc -pedantic.
57117         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57118         initializers for struct if -pedantic, unless it's C99 or later.
57119
57120 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57121
57122         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57123         Don't close an fd more than once. Identical atimes indicate
57124         success, not failure.
57125
57126 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57127
57128         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57129
57130 2006-11-23  Jim Meyering  <jim@meyering.net>
57131
57132         * build-aux/announce-gen: New file.  From coreutils.
57133
57134 2006-11-22  Jim Meyering  <jim@meyering.net>
57135
57136         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57137         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57138         (fts_read): Use a temporary to narrow the overused st_size member
57139         before using it in a switch statement.  Reported by Matthew Woehlke.
57140
57141         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57142         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57143
57144 2006-11-20  Bruno Haible  <bruno@clisp.org>
57145
57146         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57147         changequote instead of pairs of brackets.
57148         Reported by Andreas Schwab <schwab@suse.de>.
57149
57150 2006-11-21  Jim Meyering  <jim@meyering.net>
57151
57152         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57153         so as to remain compatible with older compilers.
57154         Patch from Michael Deutschmann.
57155
57156 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57157
57158         * MODULES.html.sh (File system functions): Add openat.
57159
57160         * lib/openat.h (rpl_fstatat): New macro, if
57161         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57162         (fstatat): Define to rpl_fstatat under the same conditions,
57163         unless COMPILING_FSTATAT.
57164         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57165         seems to have the bug.
57166         * lib/fstatat.c: New file.
57167         * modules/openat (Files): Add it.
57168
57169 2006-11-20  Bruno Haible  <bruno@clisp.org>
57170
57171         * Makefile: New file.
57172
57173 2006-11-20  Jim Meyering  <jim@meyering.net>
57174
57175         The beginnings of syntax-related checks for gnulib.
57176         * lib/Makefile: New file.
57177         * lib/t-idcache: New script.  Ensure that the two halves of
57178         idcache.c stay in sync.
57179
57180         * lib/idcache.c: Adjust comments in user- and group- portions to
57181         be more accurate, and to be consistent with one another.
57182
57183 2006-11-20  Jim Meyering  <jim@meyering.net>
57184
57185         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57186         continue using the flexible array member (thus, this module performs
57187         half as many malloc calls), with the addition that...
57188         (getgroup, getuser): Consistently record a non-match via an empty
57189         "name" string, and map an empty string match to a NULL return value.
57190         * modules/idcache (Depends-on): Re-add flexmember.
57191
57192         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57193         (getuidbyname, getgroup, getgidbyname): Likewise.
57194
57195         Use cleaner syntax: NULL rather than 0.
57196         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57197
57198 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57199
57200         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57201         It mishandled the case where the group was missing.
57202         Problem reported by Greg Schafer.
57203         * modules/idcache: Likewise.
57204
57205 2006-11-18  Jim Meyering  <jim@meyering.net>
57206
57207         * check-module (%exempt_header): Add exception for some
57208         conditionally-included headers.
57209
57210         * modules/i-ring (Depends-on): Add verify.
57211         (License): Change to LGPL.
57212
57213 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57214
57215         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57216         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57217         and inttostr.h.  Use snprintf rather than uinttostr, so that
57218         LGPLed code doesn't depend on GPLed.
57219
57220 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57221
57222         * modules/inline (License): Change from GPL to LGPL.
57223
57224 2006-11-17  Jim Meyering  <jim@meyering.net>
57225
57226         * modules/d-type (License): Switch to LGPL.
57227
57228 2006-11-15  Bruno Haible  <bruno@clisp.org>
57229
57230         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57231
57232 2006-11-15  Eric Blake  <ebb9@byu.net>
57233
57234         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57235         the module dependency.
57236
57237 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57238             Bruno Haible  <bruno@clisp.org>
57239
57240         * gnulib-tool (func_create_testdir): Add license consistency check.
57241
57242 2006-11-15  Eric Blake  <ebb9@byu.net>
57243
57244         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57245         random "(cached)" in configure output.
57246
57247 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57248
57249         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57250         test for conforming inttypes.h is both announced and cached.
57251
57252         * MODULES.html.sh (seen_modules, seen_files): New variables.
57253         (func_module): Rewrite to use a few less gnulib-tool and sed
57254         invocations.  Avoid a couple of quadratic algorithms for ...
57255         (missed_modules, missed_files): ... these, with ...
57256         (func_append, func_tmpdir): ... these new functions, from
57257         gnulib-tool.  Analogously, install traps for cleanup.
57258
57259         * tests/test-gc.c (main): Remove unused variables.
57260         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57261
57262 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         * modules/inttostr (License): Change to LGPL.
57265
57266 2006-11-14  Eric Blake  <ebb9@byu.net>
57267
57268         * modules/tempname (License): Change to LGPL.
57269
57270 2006-11-14  Eric Blake  <ebb9@byu.net>
57271
57272         * doc/functions.texi (Function Portability): *printf functions on
57273         Cygwin now understand all POSIX size specifiers.
57274
57275 2006-11-14  Bruno Haible  <bruno@clisp.org>
57276
57277         * modules/c-ctype (License): Change to LGPL.
57278
57279 2006-11-12  Bruno Haible  <bruno@clisp.org>
57280
57281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57282         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57283         for GNOME libraries, for which the include files are installed in
57284         subdirectories of $prefix/include.
57285
57286 2006-11-12  Bruno Haible  <bruno@clisp.org>
57287
57288         * m4/lib-link.m4: Require at least autoconf-2.54.
57289         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57290         name to underscores for the --with option.
57291
57292 2006-11-13  Bruno Haible  <bruno@clisp.org>
57293
57294         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57295         the tests directory.
57296         Reported by Ralf Wildenhues.
57297
57298 2006-11-13  Bruno Haible  <bruno@clisp.org>
57299
57300         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57301         (func_emit_initmacro_end): Undo the override here.
57302         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57303         Works around the famous automake error in coreutils.
57304
57305 2006-11-13  Eric Blake  <ebb9@byu.net>
57306
57307         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57308         element, not its node.
57309
57310 2006-11-12  Bruno Haible  <bruno@clisp.org>
57311
57312         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57313         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57314
57315 2006-11-12  Bruno Haible  <bruno@clisp.org>
57316
57317         * gnulib-tool: New option --local-symlink.
57318         (func_usage): Document it.
57319         (lsymbolic): New variable.
57320         (func_import, func_create_testdir): If --symlink was not specified,
57321         test whether --local-symlink was specified and the file comes from
57322         the local_gnulib_dir.
57323
57324 2006-11-12  Bruno Haible  <bruno@clisp.org>
57325
57326         * gnulib-tool (func_ln): New function.
57327         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57328
57329 2006-11-12  Bruno Haible  <bruno@clisp.org>
57330
57331         Finish support for source files in subdirectories.
57332         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57333         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57334         AUTOMAKE_OPTIONS.
57335         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57336
57337 2006-11-12  Bruno Haible  <bruno@clisp.org>
57338
57339         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57340         EXTRA_lib_SOURCES augmentation.
57341         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57342
57343 2006-11-12  Jim Meyering  <jim@meyering.net>
57344
57345         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57346         file descriptors.  This also averts a failure on systems with
57347         native openat support when a traversed directory lacks "x" access.
57348         * lib/fts_.h: Include "i-ring.h"
57349         (struct FTS) [fts_fd_ring]: New member.
57350         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57351         (FCHDIR): Add parentheses.
57352         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57353         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57354         When descending, rather than simply closing the previous
57355         fts_cwd_fd value, push that file descriptor onto the ring.
57356         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57357         (fts_open): Initialize the new fd_ring member.
57358         (fts_close): Clear the ring.
57359         (fts_safe_changedir): When possible, use our new fd_ring to skip
57360         the diropen and fstat and dev/ino comparison that would normally
57361         accompany a virtual `chdir ("..")'.
57362
57363         * modules/fts (Depends-on): Add i-ring.
57364         * modules/i-ring: New module.
57365         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57366         * m4/i-ring.m4: New file.
57367
57368 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57369
57370         * gnulib-tool (func_create_testdir): Fix replacement of
57371         `build-aux' in configure.ac.  Run autotools in gltests
57372         subdirectory.
57373         (func_create_testdir, func_create_megatestdir, test): There is
57374         no need for '--force' in most autotool invocations in a new
57375         tree.  Actually fail the whole test if any of the tools, or the
57376         configure or make stages fail.
57377
57378         Sync from Automake.
57379         * build-aux/gnupload: Revert last change.  Add pointer to upload
57380         instructions of the GNU Maintenance Instructions.
57381         Suggestion by Karl Berry.
57382
57383 2006-11-10  Jim Meyering  <jim@meyering.net>
57384
57385         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57386
57387 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57388
57389         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57390         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57391         (bind_textdomain_codeset) [! ENABLE_NLS]:
57392         Evaluate all the arguments.  That way, callers get compatible behavior
57393         if the arguments have side effects.  Also, it avoids some GCC
57394         diagnostics in some cases; Joel E. Denny reported problems when Bison
57395         was configured with --enable-gcc-warnigs.
57396
57397 2006-11-10  Jim Meyering  <jim@meyering.net>
57398
57399         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57400         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57401         account.
57402
57403 2006-11-10  Jim Meyering  <jim@meyering.net>
57404
57405         * modules/inline: New file/module.
57406         * modules/xalloc (Files): Remove m4/inline.m4.
57407         (Depends-on): Add inline, instead.
57408         * modules/oset: Likewise.
57409         * modules/list: Likewise.
57410
57411 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57412
57413         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57414         Problem reported by Matthew Woehlke.
57415
57416 2006-11-09  Bruno Haible  <bruno@clisp.org>
57417
57418         * lib/tempname.c (gen_tempname): Remove variant that invokes
57419         __gen_tempname.
57420         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57421         __gen_tempname.
57422
57423 2006-11-08  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57426         to 'yes' instead of 'cross-compiling'.
57427
57428 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * lib/quotearg.h (quotearg_free): New decl.
57431         * lib/quotearg.c (quotearg_free): New function.
57432         (slot0, nslots, slotvec0, slotvec):
57433         Now file-scope so that quotearg_free can get at them.
57434
57435 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57436
57437         Sync from Automake.
57438         * build-aux/gnupload: Add missing 'gnu' to example URL.
57439         Report by Karl Berry.
57440
57441 2006-11-08  Bruno Haible  <bruno@clisp.org>
57442
57443         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57444         Suggested by Paul Eggert.
57445
57446 2006-11-08  Jim Meyering  <jim@meyering.net>
57447
57448         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57449         It's already included if !_LIBC.
57450         (fts_safe_changedir): Add a comment.
57451
57452 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57453
57454         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57455         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57456         Matthew Woehlke.
57457
57458         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57459         definitions up, to avoid colliding with change below.
57460         (static_inline) [HAVE_INLINE]: New macro.
57461         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57462         Provide extern decls when !HAVE_INLINE.  Do not define unless
57463         static_inline is defined, either by us or by xmalloc.c.  Use
57464         static_inline rather than static inline.
57465         (XCALLOC): Optimize sizeof(T) = 1 case.
57466         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57467
57468 2006-11-07  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57471         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57472         AC_C_INLINE.
57473         * modules/xalloc (Files): Add m4/inline.m4.
57474
57475 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57476
57477         * README: Fix typo.
57478         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57479         (Miscellanous Notes): ...from this.
57480
57481 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57482
57483         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57484         Mention that offsetof should be used instead of sizeof.
57485         From Bruno Haible.
57486
57487 2006-11-07  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57490
57491 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57492
57493         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57494         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57495         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57496         (gl_tree_add_before, gl_tree_add_after):
57497         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57498         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57499         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57500         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57501         (gl_linked_add_after, gl_linked_add_at): Likewise.
57502         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57503         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57504         (gl_tree_add_before, gl_tree_add_after): Likewise.
57505         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57506         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57507         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57508
57509 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57510
57511         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57512
57513 2006-11-06  Bruno Haible  <bruno@clisp.org>
57514
57515         * m4/inline.m4: New file.
57516         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57517         * modules/list (Files): Add m4/inline.m4.
57518         * modules/oset (Files): Likewise.
57519
57520 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57521
57522         * lib/idcache.c: Include <stddef.h>, for offsetof.
57523         (struct userid.name): Change from char * to a flexible array member.
57524         All uses changed.
57525         * modules/idcache (Depends-on): Add flexmember.
57526
57527         * MODULES.html.sh (Core language properties): New module flexmember.
57528         * modules/flexmember, m4/flexmember.m4: New files.
57529
57530         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57531         inline functions that are identical with the old xnmalloc_inline,
57532         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57533         that we can avoid some unnecessary integer multiplications and
57534         divisions in the common case where the element size is known at
57535         compile time.
57536         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57537         needed.
57538         (xnboundedmalloc): Remove.
57539         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57540         arguments, for consistency with rest of this header.
57541         (xcharalloc): Rewrite using XNMALLOC.
57542         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57543         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57544         versions have been moved to lib/xalloc.h and renamed to be the
57545         non-*_inline versions.
57546         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57547         and xnrealloc functions, since those functions are now inline and
57548         now call us.
57549         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57550         renaming described above.
57551         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57552         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57553         captures the dependency in AC_C_INLINE.
57554
57555         New module canonicalize-lgpl, proposed by Charles Wilson in
57556         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57557         with a few small changes afterwards.
57558         * MODULES.html.sh (File system functions): New module
57559         canonicalize-lgpl.
57560         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57561         and canonicalize_file_name.
57562         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57563         * modules/canonicalize-lgpl: New files.
57564
57565 2006-11-05  Bruno Haible  <bruno@clisp.org>
57566
57567         * gnulib-tool (func_import, func_create_testdir): Create directories
57568         also for files in subdirectories of lib/.
57569
57570 2006-11-05  Bruno Haible  <bruno@clisp.org>
57571
57572         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57573         ANSI C compliant.
57574
57575 2006-11-03  Bruno Haible  <bruno@clisp.org>
57576
57577         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57578         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57579         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57580         (xnboundedmalloc): New inline function.
57581         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57582         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57583         xmalloc.
57584         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57585         xmalloc.
57586         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57587         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57588         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57589         xmalloc.
57590         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57591         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57592         xmalloc.
57593         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57594         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57595         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57596         xmalloc.
57597         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57598         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57599         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57600         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57601         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57602         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57603         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57604
57605 2006-11-03  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/c-ctype.h [C++]: Define functions without name mangling.
57608         * lib/fwriteerror.h [C++]: Likewise.
57609         * lib/gcd.h [C++]: Likewise.
57610         * lib/linebreak.h [C++]: Likewise.
57611
57612 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57615         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57616         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57617         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57618         Check for functions and headers just once.
57619         Check for declaration of canonicalize_file_name.
57620         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57621
57622 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57623
57624         * gnulib-tool (func_import): Fix typo in actioncmd.
57625
57626 2006-11-02  Bruno Haible  <bruno@clisp.org>
57627
57628         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57629         newline sequence in the Makefile.am snippet as a space, like "make"
57630         does.
57631         Reported by Roger Persson <perrog@gmail.com>.
57632
57633 2006-11-01  Bruno Haible  <bruno@clisp.org>
57634
57635         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57636         already declared in <string.h>.
57637         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57638
57639 2006-11-01  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57642         * lib/strcase.h: Include <string.h>.
57643         (strcasecmp): Define to rpl_strcasecmp here.
57644
57645 2006-11-01  Bruno Haible  <bruno@clisp.org>
57646
57647         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57648
57649 2006-11-01  Eric Blake  <ebb9@byu.net>
57650
57651         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57652
57653         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57654
57655 2006-10-29  Bruno Haible  <bruno@clisp.org>
57656
57657         Make it compile in C++ mode.
57658         * lib/full-write.c (full_rw): Add a cast.
57659
57660 2006-11-01  Bruno Haible  <bruno@clisp.org>
57661
57662         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57663         be POSIX compliant.
57664         Reported by Roger Persson <perrog@gmail.com>.
57665
57666 2006-11-01  Eric Blake  <ebb9@byu.net>
57667
57668         * lib/getopt_.h: Fix comments.
57669
57670 2006-10-31  Eric Blake  <ebb9@byu.net>
57671
57672         * modules/tmpdir (Depends-on): Add sys_stat.
57673         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57674         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57675         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57676         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57677         tempname.
57678
57679 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         Avoid some C++ diagnostics reported by Bruno Haible.
57682         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57683         xmalloc.
57684         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57685         (struct slotvec): Move to top level.
57686         (quotearg_n_options): Rewrite to avoid xmalloc.
57687         * lib/xalloc.h (xcharalloc): New function.
57688         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57689         [defined __cplusplus]: Add function template that provides result
57690         type propagation.  This part of the change is from Bruno Haible.
57691
57692 2006-10-29  Bruno Haible  <bruno@clisp.org>
57693
57694         Make it compile in C++ mode.
57695         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57696         * lib/strnlen1.c (strnlen1): Cast memchr result.
57697         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57698         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57699         (create_temp_dir): Rename local variable 'template'.
57700         (compile_csharp_using_sscli): Add cast.
57701         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57702         * lib/findprog.c (find_in_path): Likewise.
57703         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57704         * lib/wait-process.c (register_slave_subprocess): Likewise.
57705
57706 2006-10-22  Bruno Haible  <bruno@clisp.org>
57707
57708         * modules/tsearch: New file.
57709         * lib/tsearch.h: New file.
57710         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57711         * m4/tsearch.m4: New file.
57712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57713
57714 2006-10-29  Eric Blake  <ebb9@byu.net>
57715
57716         * lib/arcfour.c: Assume config.h.
57717         * lib/arctwo.c: Likewise.
57718         * lib/base64.c: Likewise.
57719         * lib/check-version.c: Likewise.
57720         * lib/crc.c: Likewise.
57721         * lib/des.c: Likewise.
57722         * lib/gc-gnulib.c: Likewise.
57723         * lib/gc-libgcrypt.c: Likewise.
57724         * lib/gc-pbkdf2-sha1.c: Likewise.
57725         * lib/getaddrinfo.c: Likewise.
57726         * lib/getdelim.c: Likewise.
57727         * lib/getline.c: Likewise.
57728         * lib/hmac-md5.c: Likewise.
57729         * lib/hmac-sha1.c: Likewise.
57730         * lib/iconvme.c: Likewise.
57731         * lib/md2.c: Likewise.
57732         * lib/md4.c: Likewise.
57733         * lib/memxor.c: Likewise.
57734         * lib/read-file.c: Likewise.
57735         * lib/readline.c: Likewise.
57736         * lib/rijndael-alg-fst.c: Likewise.
57737         * lib/rijndael-api-fst.c: Likewise.
57738         * lib/xgetdomainname.c: Likewise.
57739
57740 2006-10-28  Eric Blake  <ebb9@byu.net>
57741
57742         * lib/xstrndup.c: Assume config.h.
57743
57744 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57747         stat-macros.h is now for our own macros, whereas stat_h is for
57748         macros in the <sys/stat.h> name space.
57749         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57750         (STAT_MACROS_H): Remove.
57751         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57752         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57753         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57754         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57755         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57756         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57757         Move these macros to ...
57758         * lib/stat_.h: here.  Don't include stat-macros.h.
57759         * lib/canonicalize.c: Don't include stat-macros.h.
57760         * lib/chown.c: Likewise.
57761         * lib/euidaccess.c: Likewise.
57762         * lib/file-type.c: Likewise.
57763         * lib/filemode.c: Likewise.
57764         * lib/glob.c: Likewise.
57765         * lib/isapipe.c: Likewise.
57766         * lib/lchown.c: Likewise.
57767         * lib/lstat.c: Likewise.
57768         * lib/mkdir-p.c: Likewise.
57769         * lib/rmdir.c: Likewise.
57770         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57771         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57772         unless mkdir isn't declared, to speed up 'configure'.
57773         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57774         would define all the S_* symbols.
57775         * modules/canonicalize (Depends-on):
57776         Depend on sys_stat, not stat-macros.
57777         * modules/chown: Likewise.
57778         * modules/euidaccess: Likewise.
57779         * modules/filemode: Likewise.
57780         * modules/file-type: Likewise.
57781         * modules/glob: Likewise.
57782         * modules/isapipe: Likewise.
57783         * modules/lchown: Likewise.
57784         * modules/lstat: Likewise.
57785         * modules/mkancesdirs: Likewise.
57786         * modules/rmdir: Likewise.
57787         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57788         * modules/modechange: Likewise.
57789         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57790         (configure.ac): Remove gl_STAT_MACROS.
57791         * modules/sys_stat (Depends-on): Remove stat-macros.
57792
57793 2006-10-27  Bruno Haible  <bruno@clisp.org>
57794
57795         * m4/signed.m4: Remove file.
57796         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57797         invocation.
57798         * modules/vasnprintf (Files): Remove m4/signed.m4.
57799
57800 2006-10-27  Bruno Haible  <bruno@clisp.org>
57801
57802         Update to GNU gettext 0.16.
57803         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57804         m4/inttypes-h.m4, m4/signed.m4.
57805         * m4/gettext.m4: Update to GNU gettext 0.16.
57806         * m4/intl.m4: New file, from GNU gettext.
57807         * m4/intldir.m4: New file, from GNU gettext.
57808         * config/srclist.txt: Update
57809
57810 2006-10-27  Eric Blake  <ebb9@byu.net>
57811
57812         * MODULES.html.sh: Document tempname.
57813         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57814         dependencies.
57815         (Files): Move lib/tempname.c...
57816         * modules/tempname: ...to this new module.
57817         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57818         (gl_PREREQ_TEMPNAME): Move...
57819         * m4/tempname.m4: ...to this new file.
57820         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57821         * modules/sys_stat (Depends-on): Add stat-macros.
57822         * lib/stat_.h (includes): Pick up stat macros.
57823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57824         if stat macros are broken.
57825         * lib/tempname.c (includes): No need to include "stat-macros.h".
57826         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57827         (direxists, __path_search) [!_LIBC]: Don't compile these in
57828         gnulib; the tmpdir module covers that.
57829         * lib/tempname.h: New file.
57830
57831 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57832
57833         * COPYING: Explain how gnulib-tool converts licence headers.
57834         Almost all wording by Eric Blake.
57835
57836 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * lib/mbchar.h (is_basic_table): Make read-only.
57839         * lib/mbchar.c (is_basic_table): Likewise.
57840         Reported by John Darrington.
57841
57842 2006-10-25  Bruno Haible  <bruno@clisp.org>
57843
57844         * lib/progname.h (set_program_name): Undefine before defining.
57845
57846 2006-10-25  Bruno Haible  <bruno@clisp.org>
57847
57848         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57849         false for non-gcc C++ compilers.
57850         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57851
57852 2006-10-24  Bruno Haible  <bruno@clisp.org>
57853
57854         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57855         iconv implementations like Irix iconv.
57856
57857 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         * modules/vararrays: New file.
57860         * m4/vararrays.m4: New file, taken from diffutils.
57861         * MODULES.html.sh: New module vararrays.
57862
57863 2006-10-24  Karl Berry  <karl@gnu.org>
57864
57865         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57866         Don't call GNU Unix.
57867
57868 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57869
57870         * users.txt: Add Libtool.
57871
57872         Sync from Libtool:
57873
57874         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57875
57876         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57877         to gnulib's policy of including config.h unconditionally.
57878
57879 2006-10-24  Bruno Haible  <bruno@clisp.org>
57880
57881         * modules/wcwidth (Files): Add m4/wint_t.m4.
57882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57883         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57884
57885 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57886
57887         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57888         to pacify GCC with some -W flags enabled.  Problem reported by
57889         Bruno Haible.
57890
57891 2006-10-24  Jim Meyering  <jim@meyering.net>
57892
57893         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57894         Reported by Karl Berry.
57895
57896 2006-10-23  Bruno Haible  <bruno@clisp.org>
57897
57898         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57899
57900 2006-10-24  Bruno Haible  <bruno@clisp.org>
57901
57902         * lib/gl_list.h: Use C comment style, not C++ comment style.
57903
57904 2006-10-23  Eric Blake  <ebb9@byu.net>
57905
57906         * lib/getaddrinfo.c (includes): Add missing include.
57907
57908 2006-10-23  Bruno Haible  <bruno@clisp.org>
57909             Paul Eggert  <eggert@cs.ucla.edu>
57910
57911         Ability to rename obstack_free.
57912         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57913         obstack_free.
57914         (obstack_free): Invoke the __obstack_free macro.
57915         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57916
57917 2006-10-23  Bruno Haible  <bruno@clisp.org>
57918             Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57921         __argc, __argv from the declaration. (They are defined as macros on
57922         mingw.)
57923
57924 2006-10-22  Bruno Haible  <bruno@clisp.org>
57925
57926         * doc/gnulib-intro.texi: New file.
57927         * doc/gnulib.texi: Include it.
57928
57929 2006-10-21  Bruno Haible  <bruno@clisp.org>
57930
57931         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57932         "Introduction", "Miscellanous Notes", "Particular Modules".
57933
57934 2006-10-21  Bruno Haible  <bruno@clisp.org>
57935
57936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57937         Change mostlyclean-local rule to avoid sh syntax error from bash
57938         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57939
57940 2006-10-23  Jim Meyering  <jim@meyering.net>
57941
57942         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57943         in place of snprintf.
57944
57945         * modules/inttostr (Files): Add lib/uinttostr.c.
57946         * lib/uinttostr.c (inttostr): New file/function.
57947         * lib/inttostr.h (uinttostr): Declare.
57948         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57949         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57950         Add uinttostr.
57951         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57952
57953 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57954
57955         * lib/canonicalize.c (ELOOP): Define if not already defined.
57956         Problem reported by Bruno Haible in
57957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57958
57959 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57960
57961         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57962         Problem reported by Perry Smith and Ville Laurikari.
57963
57964         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57965         uses.
57966
57967 2006-10-19  Bruno Haible  <bruno@clisp.org>
57968
57969         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57970         for mingw.
57971
57972 2006-10-19  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57975         Needed for mingw.
57976
57977 2006-10-19  Bruno Haible  <bruno@clisp.org>
57978
57979         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57980
57981 2006-10-19  Bruno Haible  <bruno@clisp.org>
57982
57983         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57984         it.
57985
57986 2006-10-19  Bruno Haible  <bruno@clisp.org>
57987
57988         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57989         invocation.
57990
57991 2006-10-19  Bruno Haible  <bruno@clisp.org>
57992
57993         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57994         mountlist by default.
57995
57996 2006-10-16  Bruno Haible  <bruno@clisp.org>
57997
57998         * lib/c-strstr.c: Include c-strstr.h.
57999
58000 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58001
58002         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58003         in a slash.
58004
58005 2006-10-18  Bruno Haible  <bruno@clisp.org>
58006
58007         * lib/lock.h [C++]: Wrap definitions in extern "C".
58008
58009 2006-10-18  Bruno Haible  <bruno@clisp.org>
58010
58011         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58012         gl_LIBOBJS list.
58013
58014 2006-10-18  Bruno Haible  <bruno@clisp.org>
58015
58016         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58017
58018 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         * lib/xstrtol.h: Include gettext.h.
58021         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58022         Problem reported by Eric Blake.
58023         * modules/xstrtol (Depends-on): Add gettext-h.
58024
58025 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58026
58027         * lib/strftime.c (advance): New macro.
58028         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58029         incomplete type, so you can't add 0 to it.  Problem and patch
58030         reported by Eelco Dolstra for dietlibc.
58031
58032 2006-10-18  Jim Meyering  <jim@meyering.net>
58033
58034         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58035         type for a local, and rename it: s/up/user_proc/.
58036
58037 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58038
58039         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58040         READ_UTMP_USER_PROCESS.
58041         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58042
58043 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58044
58045         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58046         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58047
58048 2006-10-17  Eric Blake  <ebb9@byu.net>
58049
58050         * lib/sigprocmask.c (sigprocmask): Fix typo.
58051
58052         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58053
58054         * modules/clean-temp (Makefile.am): Don't add to make output...
58055         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58056         config.h.
58057
58058 2006-10-17  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58061         differently if DEFAULT_TEXT_DOMAIN is set.
58062
58063 2006-10-16  Bruno Haible  <bruno@clisp.org>
58064
58065         * lib/clean-temp.c: Include fwriteerror.h.
58066
58067 2006-10-16  Bruno Haible  <bruno@clisp.org>
58068
58069         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58070
58071 2006-10-16  Bruno Haible  <bruno@clisp.org>
58072
58073         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58074         * lib/sigprocmask.h: Include <sys/types.h>.
58075         (sigset_t): Use the system's definition if present.
58076
58077 2006-10-17  Eric Blake  <ebb9@byu.net>
58078
58079         * lib/xvasprintf.c (includes): Assume config.h.
58080         * lib/xasprintf.c (includes): Likewise.
58081
58082 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58083
58084         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58085         at least as wide as intmax_t.
58086
58087 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58088
58089         (Imported from Automake.)
58090         * build-aux/gnupload: Update to version 1.1 of directive file.
58091
58092 2006-10-16  Eric Blake  <ebb9@byu.net>
58093
58094         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58095         match Automake 1.10a.
58096
58097 2006-10-14  Bruno Haible  <bruno@clisp.org>
58098
58099         * modules/sigprocmask: New file.
58100         * lib/sigprocmask.h: New file.
58101         * lib/sigprocmask.c: New file.
58102         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58103         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58104         request sigprocmask.o.
58105         (gl_PREREQ_SIGPROCMASK): New macro.
58106         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58107         (Depends-on): Add sigprocmask.
58108         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58109         gt_SIGNALBLOCKING. Test for 'raise' only once.
58110         * lib/fatal-signal.c: Include sigprocmask.h.
58111         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58112         unblock_fatal_signals): Define always.
58113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58114         sigprocmask.
58115
58116 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         Sync from Automake.
58119         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58120         which incorrectly sets the mode of an existing destination
58121         directory.  In some cases the unpatched install-sh could do the
58122         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58123         system.  We hope this is rare in practice, but it's clearly worth
58124         fixing.  Problem reported by Alex Unleashed in
58125         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58126         Also, don't bother to check for -m bugs unless we're using -m;
58127         suggested by Stepan Kasal.
58128
58129 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58130
58131         Sync from Automake.
58132         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58133         `-c' flag, so they appear at the same position as in %FASTDEP%
58134         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58135         which ignores unknown options only after the first non-option.
58136         Bug report against M4 by Nelson H. F. Beebe.
58137
58138 2006-10-13  Jim Meyering  <jim@meyering.net>
58139
58140         Fix a bug in yesterday's change.
58141         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58142         p->fts_statp->st_dev would be used uninitialized.
58143         Ensures that we always call fts_stat on the very first entry.
58144         Miklos Szeredi reported that find -xdev stopped working.
58145
58146 2006-10-12  Bruno Haible  <bruno@clisp.org>
58147
58148         * gnulib-tool (func_get_automake_snippet): Append an automatically
58149         computed EXTRA_DIST augmentation.
58150         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58151         * modules/alloca-opt (Makefile.am): Likewise.
58152         * modules/allocsa (Makefile.am): Likewise.
58153         * modules/arcfour (Makefile.am): Likewise.
58154         * modules/arctwo (Makefile.am): Likewise.
58155         * modules/argmatch (Makefile.am): Likewise.
58156         * modules/argz (Makefile.am): Likewise.
58157         * modules/atexit (Makefile.am): Likewise.
58158         * modules/backupfile (Makefile.am): Likewise.
58159         * modules/byteswap (Makefile.am): Likewise.
58160         * modules/c-strtod (Makefile.am): Likewise.
58161         * modules/c-strtold (Makefile.am): Likewise.
58162         * modules/calloc (Makefile.am): Likewise.
58163         * modules/canon-host (Makefile.am): Likewise.
58164         * modules/canonicalize (Makefile.am): Likewise.
58165         * modules/chdir-long (Makefile.am): Likewise.
58166         * modules/chdir-safer (Makefile.am): Likewise.
58167         * modules/check-version (Makefile.am): Likewise.
58168         * modules/chown (Makefile.am): Likewise.
58169         * modules/cloexec (Makefile.am): Likewise.
58170         * modules/close-stream (Makefile.am): Likewise.
58171         * modules/closeout (Makefile.am): Likewise.
58172         * modules/crc (Makefile.am): Likewise.
58173         * modules/csharpexec (Makefile.am): Likewise.
58174         * modules/cycle-check (Makefile.am): Likewise.
58175         * modules/des (Makefile.am): Likewise.
58176         * modules/dev-ino (Makefile.am): Likewise.
58177         * modules/dirfd (Makefile.am): Likewise.
58178         * modules/dirname (Makefile.am): Likewise.
58179         * modules/dup2 (Makefile.am): Likewise.
58180         * modules/eealloc (Makefile.am): Likewise.
58181         * modules/error (Makefile.am): Likewise.
58182         * modules/euidaccess (Makefile.am): Likewise.
58183         * modules/exclude (Makefile.am): Likewise.
58184         * modules/exitfail (Makefile.am): Likewise.
58185         * modules/fcntl-safer (Makefile.am): Likewise.
58186         * modules/fcntl (Makefile.am): Likewise.
58187         * modules/file-type (Makefile.am): Likewise.
58188         * modules/fileblocks (Makefile.am): Likewise.
58189         * modules/filemode (Makefile.am): Likewise.
58190         * modules/filenamecat (Makefile.am): Likewise.
58191         * modules/fnmatch (Makefile.am): Likewise.
58192         * modules/fopen-safer (Makefile.am): Likewise.
58193         * modules/fpending (Makefile.am): Likewise.
58194         * modules/fprintftime (Makefile.am): Likewise.
58195         * modules/free (Makefile.am): Likewise.
58196         * modules/fsusage (Makefile.am): Likewise.
58197         * modules/ftruncate (Makefile.am): Likewise.
58198         * modules/fts (Makefile.am): Likewise.
58199         * modules/gc-arcfour (Makefile.am): Likewise.
58200         * modules/gc-des (Makefile.am): Likewise.
58201         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58202         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58203         * modules/gc-md4 (Makefile.am): Likewise.
58204         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58205         * modules/gc-sha1 (Makefile.am): Likewise.
58206         * modules/gc (Makefile.am): Likewise.
58207         * modules/getaddrinfo (Makefile.am): Likewise.
58208         * modules/getcwd (Makefile.am): Likewise.
58209         * modules/getdelim (Makefile.am): Likewise.
58210         * modules/getdomainname (Makefile.am): Likewise.
58211         * modules/getgroups (Makefile.am): Likewise.
58212         * modules/gethostname (Makefile.am): Likewise.
58213         * modules/gethrxtime (Makefile.am): Likewise.
58214         * modules/getline (Makefile.am): Likewise.
58215         * modules/getloadavg (Makefile.am): Likewise.
58216         * modules/getlogin_r (Makefile.am): Likewise.
58217         * modules/getndelim2 (Makefile.am): Likewise.
58218         * modules/getopt (Makefile.am): Likewise.
58219         * modules/getpagesize (Makefile.am): Likewise.
58220         * modules/getpass-gnu (Makefile.am): Likewise.
58221         * modules/getpass (Makefile.am): Likewise.
58222         * modules/getsubopt (Makefile.am): Likewise.
58223         * modules/gettime (Makefile.am): Likewise.
58224         * modules/gettimeofday (Makefile.am): Likewise.
58225         * modules/getugroups (Makefile.am): Likewise.
58226         * modules/getusershell (Makefile.am): Likewise.
58227         * modules/glob (Makefile.am): Likewise.
58228         * modules/group-member (Makefile.am): Likewise.
58229         * modules/hard-locale (Makefile.am): Likewise.
58230         * modules/hash (Makefile.am): Likewise.
58231         * modules/hmac-md5 (Makefile.am): Likewise.
58232         * modules/hmac-sha1 (Makefile.am): Likewise.
58233         * modules/human (Makefile.am): Likewise.
58234         * modules/idcache (Makefile.am): Likewise.
58235         * modules/imaxabs (Makefile.am): Likewise.
58236         * modules/imaxdiv (Makefile.am): Likewise.
58237         * modules/inet_ntop (Makefile.am): Likewise.
58238         * modules/inet_pton (Makefile.am): Likewise.
58239         * modules/intprops (Makefile.am): Likewise.
58240         * modules/inttostr (Makefile.am): Likewise.
58241         * modules/inttypes (Makefile.am): Likewise.
58242         * modules/isapipe (Makefile.am): Likewise.
58243         * modules/javaversion (Makefile.am): Likewise.
58244         * modules/lchmod (Makefile.am): Likewise.
58245         * modules/lchown (Makefile.am): Likewise.
58246         * modules/localcharset (Makefile.am): Likewise.
58247         * modules/long-options (Makefile.am): Likewise.
58248         * modules/lstat (Makefile.am): Likewise.
58249         * modules/malloc (Makefile.am): Likewise.
58250         * modules/mathl (Makefile.am): Likewise.
58251         * modules/mbchar (Makefile.am): Likewise.
58252         * modules/md2 (Makefile.am): Likewise.
58253         * modules/md4 (Makefile.am): Likewise.
58254         * modules/md5 (Makefile.am): Likewise.
58255         * modules/memcasecmp (Makefile.am): Likewise.
58256         * modules/memchr (Makefile.am): Likewise.
58257         * modules/memcmp (Makefile.am): Likewise.
58258         * modules/memcoll (Makefile.am): Likewise.
58259         * modules/memcpy (Makefile.am): Likewise.
58260         * modules/memmem (Makefile.am): Likewise.
58261         * modules/memmove (Makefile.am): Likewise.
58262         * modules/mempcpy (Makefile.am): Likewise.
58263         * modules/memrchr (Makefile.am): Likewise.
58264         * modules/memset (Makefile.am): Likewise.
58265         * modules/memxor (Makefile.am): Likewise.
58266         * modules/mkancesdirs (Makefile.am): Likewise.
58267         * modules/mkdir-p (Makefile.am): Likewise.
58268         * modules/mkdir (Makefile.am): Likewise.
58269         * modules/mkdtemp (Makefile.am): Likewise.
58270         * modules/mkstemp (Makefile.am): Likewise.
58271         * modules/mktime (Makefile.am): Likewise.
58272         * modules/modechange (Makefile.am): Likewise.
58273         * modules/mountlist (Makefile.am): Likewise.
58274         * modules/nanosleep (Makefile.am): Likewise.
58275         * modules/obstack (Makefile.am): Likewise.
58276         * modules/openat (Makefile.am): Likewise.
58277         * modules/pagealign_alloc (Makefile.am): Likewise.
58278         * modules/pathmax (Makefile.am): Likewise.
58279         * modules/physmem (Makefile.am): Likewise.
58280         * modules/poll (Makefile.am): Likewise.
58281         * modules/posixtm (Makefile.am): Likewise.
58282         * modules/posixver (Makefile.am): Likewise.
58283         * modules/putenv (Makefile.am): Likewise.
58284         * modules/quote (Makefile.am): Likewise.
58285         * modules/quotearg (Makefile.am): Likewise.
58286         * modules/raise (Makefile.am): Likewise.
58287         * modules/read-file (Makefile.am): Likewise.
58288         * modules/readline (Makefile.am): Likewise.
58289         * modules/readlink (Makefile.am): Likewise.
58290         * modules/readtokens (Makefile.am): Likewise.
58291         * modules/readutmp (Makefile.am): Likewise.
58292         * modules/realloc (Makefile.am): Likewise.
58293         * modules/regex (Makefile.am): Likewise.
58294         * modules/rename-dest-slash (Makefile.am): Likewise.
58295         * modules/rename (Makefile.am): Likewise.
58296         * modules/rijndael (Makefile.am): Likewise.
58297         * modules/rmdir (Makefile.am): Likewise.
58298         * modules/rpmatch (Makefile.am): Likewise.
58299         * modules/safe-read (Makefile.am): Likewise.
58300         * modules/safe-write (Makefile.am): Likewise.
58301         * modules/same-inode (Makefile.am): Likewise.
58302         * modules/same (Makefile.am): Likewise.
58303         * modules/save-cwd (Makefile.am): Likewise.
58304         * modules/savedir (Makefile.am): Likewise.
58305         * modules/setenv (Makefile.am): Likewise.
58306         * modules/settime (Makefile.am): Likewise.
58307         * modules/sha1 (Makefile.am): Likewise.
58308         * modules/sig2str (Makefile.am): Likewise.
58309         * modules/snprintf (Makefile.am): Likewise.
58310         * modules/stat-macros (Makefile.am): Likewise.
58311         * modules/stat-time (Makefile.am): Likewise.
58312         * modules/stdbool (Makefile.am): Likewise.
58313         * modules/stdint (Makefile.am): Likewise.
58314         * modules/stdlib-safer (Makefile.am): Likewise.
58315         * modules/stpcpy (Makefile.am): Likewise.
58316         * modules/stpncpy (Makefile.am): Likewise.
58317         * modules/strcase (Makefile.am): Likewise.
58318         * modules/strcasestr (Makefile.am): Likewise.
58319         * modules/strchrnul (Makefile.am): Likewise.
58320         * modules/strcspn (Makefile.am): Likewise.
58321         * modules/strdup (Makefile.am): Likewise.
58322         * modules/strerror (Makefile.am): Likewise.
58323         * modules/strftime (Makefile.am): Likewise.
58324         * modules/strndup (Makefile.am): Likewise.
58325         * modules/strnlen (Makefile.am): Likewise.
58326         * modules/strpbrk (Makefile.am): Likewise.
58327         * modules/strsep (Makefile.am): Likewise.
58328         * modules/strstr (Makefile.am): Likewise.
58329         * modules/strtod (Makefile.am): Likewise.
58330         * modules/strtoimax (Makefile.am): Likewise.
58331         * modules/strtok_r (Makefile.am): Likewise.
58332         * modules/strtol (Makefile.am): Likewise.
58333         * modules/strtoll (Makefile.am): Likewise.
58334         * modules/strtoul (Makefile.am): Likewise.
58335         * modules/strtoull (Makefile.am): Likewise.
58336         * modules/strtoumax (Makefile.am): Likewise.
58337         * modules/strverscmp (Makefile.am): Likewise.
58338         * modules/sys_socket (Makefile.am): Likewise.
58339         * modules/sys_stat (Makefile.am): Likewise.
58340         * modules/sysexits (Makefile.am): Likewise.
58341         * modules/time_r (Makefile.am): Likewise.
58342         * modules/timegm (Makefile.am): Likewise.
58343         * modules/timespec (Makefile.am): Likewise.
58344         * modules/tmpfile-safer (Makefile.am): Likewise.
58345         * modules/trim (Makefile.am): Likewise.
58346         * modules/unistd-safer (Makefile.am): Likewise.
58347         * modules/unlinkdir (Makefile.am): Likewise.
58348         * modules/unlocked-io (Makefile.am): Likewise.
58349         * modules/userspec (Makefile.am): Likewise.
58350         * modules/utime (Makefile.am): Likewise.
58351         * modules/utimecmp (Makefile.am): Likewise.
58352         * modules/utimens (Makefile.am): Likewise.
58353         * modules/vasnprintf (Makefile.am): Likewise.
58354         * modules/vasprintf (Makefile.am): Likewise.
58355         * modules/vsnprintf (Makefile.am): Likewise.
58356         * modules/xalloc (Makefile.am): Likewise.
58357         * modules/xgetcwd (Makefile.am): Likewise.
58358         * modules/xnanosleep (Makefile.am): Likewise.
58359         * modules/xreadlink (Makefile.am): Likewise.
58360         * modules/xstrtod (Makefile.am): Likewise.
58361         * modules/xstrtol (Makefile.am): Likewise.
58362         * modules/xstrtold (Makefile.am): Likewise.
58363         * modules/yesno (Makefile.am): Likewise.
58364         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58365
58366 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58367
58368         * modules/error (Makefile.am): Distribute files through
58369         EXTRA_DIST, not lib_SOURCES.
58370
58371 2006-10-12  Eric Blake  <ebb9@byu.net>
58372
58373         * modules/error (Makefile.am): Distribute files in /lib.
58374         * modules/obstack (Makefile.am): Likewise.
58375
58376 2006-10-12  Bruno Haible  <bruno@clisp.org>
58377
58378         * modules/acl (Makefile.am): Distribute all files in lib/ through
58379         EXTRA_DIST.
58380         * modules/arcfour (Makefile.am): Likewise.
58381         * modules/arctwo (Makefile.am): Likewise.
58382         * modules/argmatch (Makefile.am): Likewise.
58383         * modules/argz (Makefile.am): Likewise.
58384         * modules/atexit (Makefile.am): Likewise.
58385         * modules/backupfile (Makefile.am): Likewise.
58386         * modules/c-strtod (Makefile.am): Likewise.
58387         * modules/c-strtold (Makefile.am): Likewise.
58388         * modules/calloc (Makefile.am): Likewise.
58389         * modules/canon-host (Makefile.am): Likewise.
58390         * modules/canonicalize (Makefile.am): Likewise.
58391         * modules/chdir-long (Makefile.am): Likewise.
58392         * modules/chdir-safer (Makefile.am): Likewise.
58393         * modules/check-version (Makefile.am): Likewise.
58394         * modules/chown (Makefile.am): Likewise.
58395         * modules/cloexec (Makefile.am): Likewise.
58396         * modules/close-stream (Makefile.am): Likewise.
58397         * modules/closeout (Makefile.am): Likewise.
58398         * modules/crc (Makefile.am): Likewise.
58399         * modules/cycle-check (Makefile.am): Likewise.
58400         * modules/des (Makefile.am): Likewise.
58401         * modules/dirfd (Makefile.am): Likewise.
58402         * modules/dirname (Makefile.am): Likewise.
58403         * modules/dup2 (Makefile.am): Likewise.
58404         * modules/euidaccess (Makefile.am): Likewise.
58405         * modules/exclude (Makefile.am): Likewise.
58406         * modules/exitfail (Makefile.am): Likewise.
58407         * modules/fcntl-safer (Makefile.am): Likewise.
58408         * modules/file-type (Makefile.am): Likewise.
58409         * modules/fileblocks (Makefile.am): Likewise.
58410         * modules/filemode (Makefile.am): Likewise.
58411         * modules/filenamecat (Makefile.am): Likewise.
58412         * modules/fnmatch (Makefile.am): Likewise.
58413         * modules/fopen-safer (Makefile.am): Likewise.
58414         * modules/fpending (Makefile.am): Likewise.
58415         * modules/fprintftime (Makefile.am): Likewise.
58416         * modules/free (Makefile.am): Likewise.
58417         * modules/fsusage (Makefile.am): Likewise.
58418         * modules/ftruncate (Makefile.am): Likewise.
58419         * modules/fts (Makefile.am): Likewise.
58420         * modules/gc (Makefile.am): Likewise.
58421         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58422         * modules/getaddrinfo (Makefile.am): Likewise.
58423         * modules/getcwd (Makefile.am): Likewise.
58424         * modules/getdelim (Makefile.am): Likewise.
58425         * modules/getdomainname (Makefile.am): Likewise.
58426         * modules/getgroups (Makefile.am): Likewise.
58427         * modules/gethostname (Makefile.am): Likewise.
58428         * modules/gethrxtime (Makefile.am): Likewise.
58429         * modules/getline (Makefile.am): Likewise.
58430         * modules/getloadavg (Makefile.am): Likewise.
58431         * modules/getlogin_r (Makefile.am): Likewise.
58432         * modules/getopt (Makefile.am): Likewise.
58433         * modules/getpass (Makefile.am): Likewise.
58434         * modules/getpass-gnu (Makefile.am): Likewise.
58435         * modules/getsubopt (Makefile.am): Likewise.
58436         * modules/gettime (Makefile.am): Likewise.
58437         * modules/gettimeofday (Makefile.am): Likewise.
58438         * modules/getugroups (Makefile.am): Likewise.
58439         * modules/getusershell (Makefile.am): Likewise.
58440         * modules/glob (Makefile.am): Likewise.
58441         * modules/group-member (Makefile.am): Likewise.
58442         * modules/hard-locale (Makefile.am): Likewise.
58443         * modules/hash (Makefile.am): Likewise.
58444         * modules/hmac-md5 (Makefile.am): Likewise.
58445         * modules/hmac-sha1 (Makefile.am): Likewise.
58446         * modules/human (Makefile.am): Likewise.
58447         * modules/idcache (Makefile.am): Likewise.
58448         * modules/imaxabs (Makefile.am): Likewise.
58449         * modules/imaxdiv (Makefile.am): Likewise.
58450         * modules/inet_ntop (Makefile.am): Likewise.
58451         * modules/inet_pton (Makefile.am): Likewise.
58452         * modules/inttostr (Makefile.am): Likewise.
58453         * modules/isapipe (Makefile.am): Likewise.
58454         * modules/lchown (Makefile.am): Likewise.
58455         * modules/long-options (Makefile.am): Likewise.
58456         * modules/lstat (Makefile.am): Likewise.
58457         * modules/malloc (Makefile.am): Likewise.
58458         * modules/mathl (Makefile.am): Likewise.
58459         * modules/mbchar (Makefile.am): Likewise.
58460         * modules/md2 (Makefile.am): Likewise.
58461         * modules/md4 (Makefile.am): Likewise.
58462         * modules/md5 (Makefile.am): Likewise.
58463         * modules/memcasecmp (Makefile.am): Likewise.
58464         * modules/memchr (Makefile.am): Likewise.
58465         * modules/memcmp (Makefile.am): Likewise.
58466         * modules/memcoll (Makefile.am): Likewise.
58467         * modules/memcpy (Makefile.am): Likewise.
58468         * modules/memmem (Makefile.am): Likewise.
58469         * modules/memmove (Makefile.am): Likewise.
58470         * modules/mempcpy (Makefile.am): Likewise.
58471         * modules/memrchr (Makefile.am): Likewise.
58472         * modules/memset (Makefile.am): Likewise.
58473         * modules/memxor (Makefile.am): Likewise.
58474         * modules/mkancesdirs (Makefile.am): Likewise.
58475         * modules/mkdir (Makefile.am): Likewise.
58476         * modules/mkdir-p (Makefile.am): Likewise.
58477         * modules/mkdtemp (Makefile.am): Likewise.
58478         * modules/mkstemp (Makefile.am): Likewise.
58479         * modules/mktime (Makefile.am): Likewise.
58480         * modules/modechange (Makefile.am): Likewise.
58481         * modules/mountlist (Makefile.am): Likewise.
58482         * modules/nanosleep (Makefile.am): Likewise.
58483         * modules/openat (Makefile.am): Likewise.
58484         * modules/pagealign_alloc (Makefile.am): Likewise.
58485         * modules/physmem (Makefile.am): Likewise.
58486         * modules/poll (Makefile.am): Likewise.
58487         * modules/posixtm (Makefile.am): Likewise.
58488         * modules/posixver (Makefile.am): Likewise.
58489         * modules/putenv (Makefile.am): Likewise.
58490         * modules/quote (Makefile.am): Likewise.
58491         * modules/quotearg (Makefile.am): Likewise.
58492         * modules/raise (Makefile.am): Likewise.
58493         * modules/read-file (Makefile.am): Likewise.
58494         * modules/readline (Makefile.am): Likewise.
58495         * modules/readlink (Makefile.am): Likewise.
58496         * modules/readtokens (Makefile.am): Likewise.
58497         * modules/readutmp (Makefile.am): Likewise.
58498         * modules/realloc (Makefile.am): Likewise.
58499         * modules/regex (Makefile.am): Likewise.
58500         * modules/rename (Makefile.am): Likewise.
58501         * modules/rename-dest-slash (Makefile.am): Likewise.
58502         * modules/rijndael (Makefile.am): Likewise.
58503         * modules/rmdir (Makefile.am): Likewise.
58504         * modules/rpmatch (Makefile.am): Likewise.
58505         * modules/safe-read (Makefile.am): Likewise.
58506         * modules/safe-write (Makefile.am): Likewise.
58507         * modules/same (Makefile.am): Likewise.
58508         * modules/save-cwd (Makefile.am): Likewise.
58509         * modules/savedir (Makefile.am): Likewise.
58510         * modules/setenv (Makefile.am): Likewise.
58511         * modules/settime (Makefile.am): Likewise.
58512         * modules/sha1 (Makefile.am): Likewise.
58513         * modules/sig2str (Makefile.am): Likewise.
58514         * modules/snprintf (Makefile.am): Likewise.
58515         * modules/stdlib-safer (Makefile.am): Likewise.
58516         * modules/stpcpy (Makefile.am): Likewise.
58517         * modules/stpncpy (Makefile.am): Likewise.
58518         * modules/strcase (Makefile.am): Likewise.
58519         * modules/strcasestr (Makefile.am): Likewise.
58520         * modules/strchrnul (Makefile.am): Likewise.
58521         * modules/strcspn (Makefile.am): Likewise.
58522         * modules/strdup (Makefile.am): Likewise.
58523         * modules/strerror (Makefile.am): Likewise.
58524         * modules/strftime (Makefile.am): Likewise.
58525         * modules/strndup (Makefile.am): Likewise.
58526         * modules/strnlen (Makefile.am): Likewise.
58527         * modules/strpbrk (Makefile.am): Likewise.
58528         * modules/strsep (Makefile.am): Likewise.
58529         * modules/strstr (Makefile.am): Likewise.
58530         * modules/strtod (Makefile.am): Likewise.
58531         * modules/strtoimax (Makefile.am): Likewise.
58532         * modules/strtok_r (Makefile.am): Likewise.
58533         * modules/strtol (Makefile.am): Likewise.
58534         * modules/strtoll (Makefile.am): Likewise.
58535         * modules/strtoul (Makefile.am): Likewise.
58536         * modules/strtoull (Makefile.am): Likewise.
58537         * modules/strtoumax (Makefile.am): Likewise.
58538         * modules/strverscmp (Makefile.am): Likewise.
58539         * modules/time_r (Makefile.am): Likewise.
58540         * modules/timegm (Makefile.am): Likewise.
58541         * modules/tmpfile-safer (Makefile.am): Likewise.
58542         * modules/unistd-safer (Makefile.am): Likewise.
58543         * modules/unlinkdir (Makefile.am): Likewise.
58544         * modules/userspec (Makefile.am): Likewise.
58545         * modules/utime (Makefile.am): Likewise.
58546         * modules/utimecmp (Makefile.am): Likewise.
58547         * modules/utimens (Makefile.am): Likewise.
58548         * modules/vasnprintf (Makefile.am): Likewise.
58549         * modules/vasprintf (Makefile.am): Likewise.
58550         * modules/vsnprintf (Makefile.am): Likewise.
58551         * modules/xalloc (Makefile.am): Likewise.
58552         * modules/xgetcwd (Makefile.am): Likewise.
58553         * modules/xnanosleep (Makefile.am): Likewise.
58554         * modules/xreadlink (Makefile.am): Likewise.
58555         * modules/xstrtod (Makefile.am): Likewise.
58556         * modules/xstrtol (Makefile.am): Likewise.
58557         * modules/xstrtold (Makefile.am): Likewise.
58558         * modules/yesno (Makefile.am): Likewise.
58559
58560 2006-10-12  Jim Meyering  <jim@meyering.net>
58561
58562         * m4/getloadavg.m4: Revert the change below.
58563
58564         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58565         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58566         fail with a symlink, which is what coreutils' ./bootstrap now
58567         creates by default.
58568
58569 2006-10-12  Bruno Haible  <bruno@clisp.org>
58570
58571         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58572         mingw.
58573         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58574         MSVC and mingw explicitly.
58575
58576 2006-10-11  Simon Josefsson  <jas@extundo.com>
58577             Bruno Haible  <bruno@clisp.org>
58578
58579         Add support for multiple gnulib-tool invocations in the scope of a
58580         single configure.ac file.
58581         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58582         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58583         with the same contents as the _LIBADD variable.
58584         (func_emit_initmacro_start, func_emit_initmacro_end,
58585         func_emit_initmacro_done): New functions.
58586         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58587         gl_LIBOBJS and gl_LTLIBOBJS.
58588
58589 2006-10-11  Bruno Haible  <bruno@clisp.org>
58590
58591         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58592         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58593         autoreconf. Instead, invoke autopoint explicitly but move back the
58594         *.m4 files from gnulib.
58595
58596 2006-10-11  Bruno Haible  <bruno@clisp.org>
58597
58598         * gnulib-tool (func_usage): Make module names after --create-testdir
58599         optional.
58600         (func_create_testdir): If no module was specified, use nearly all
58601         modules.
58602
58603 2006-10-12  Jim Meyering  <jim@meyering.net>
58604
58605         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58606         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58607         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58608         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58609         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58610         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58611         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58612         (fts_set_stat_required): New function.
58613         (fts_open): Defer the calls to fts_stat, if possible or requested.
58614         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58615         into fts_stat itself.
58616         (fts_read): Perform any required (deferred) fts_stat call.
58617         (fts_build): Likewise, for the directory we're about to open and read.
58618         In the readdir loop, carefully decide whether each entry will require
58619         an eventual call to fts_stat, using dirent.d_type info if available.
58620         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58621         a command line argument into this function.  Update all callers.
58622         Map a return value of FTS_DOT to FTS_D for a command line argument.
58623         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58624         Thanks to Miklos Szeredi for his tenacity and for the initial
58625         bug report about "find" failing on a FUSE-based file system.
58626
58627         * lib/fts.c (fts_open): Use consistent indentation.
58628
58629 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58630
58631         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58632         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58633         reported by Jim Meyering.  All uses of cache variables renamed
58634         to match Autoconf's.
58635         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58636         the other one.
58637
58638         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58639         Fix misspelling in diagnostic.
58640
58641 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58642
58643         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58644         defined.  Problem reported by Matthew Woehlke.
58645
58646         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58647         Add support for Tandem NonStop R series.
58648         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58649         Use new macro.
58650
58651         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58652         (has_trailing_slash): Omit size arg; all callers changed.
58653         Omit 'inline', since it doesn't help performance and we'd
58654         need to configure it.
58655         Don't count //, ///, etc. as having a trailing slash.
58656         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58657         (rpl_rename_dest_slash): On failure, use rename's errno rather
58658         than (in some cases) an incorrect or junk errno.
58659         Simplify code by removing need to compute length; this does
58660         cause it to make two passes instead of one over the file name,
58661         but it's worth it.
58662
58663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58664         change, since Autoconf's version may no longer be appropriate now
58665         that we are using CVS Autoconf's version.  Add support for Tandem.
58666
58667 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58668             Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58671         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58672         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58673         gl_AC_TYPE_LONG_LONG.
58674
58675         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58676         instead of HAVE_LONG_LONG.
58677         * lib/printf-args.c (printf_fetchargs): Likewise.
58678         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58679         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58680         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58681         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58682         gl_AC_TYPE_LONG_LONG.
58683
58684 2006-10-11  Bruno Haible  <bruno@clisp.org>
58685
58686         * m4/longlong.m4: Add comments.
58687         * m4/ulonglong.m4: Likewise.
58688
58689 2006-10-10  Bruno Haible  <bruno@clisp.org>
58690
58691         Make it possible to #define stpcpy, strdup to aliases.
58692         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58693         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58694
58695 2006-10-10  Bruno Haible  <bruno@clisp.org>
58696
58697         Make it possible to #define gcd to an alias.
58698         * lib/gcd.c: Include config.h.
58699
58700 2006-10-10  Bruno Haible  <bruno@clisp.org>
58701
58702         Make it possible to #define c_isascii to an alias.
58703         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58704         defined. Undefine the macros before defining them, to avoid gcc
58705         warnings.
58706         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58707         define NO_C_CTYPE_MACROS early.
58708
58709 2006-10-10  Bruno Haible  <bruno@clisp.org>
58710
58711         Make it possible to #define set_program_name to an alias.
58712         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58713         ENABLE_RELOCATABLE early.
58714
58715 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58718         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58719         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58720         More generally, don't assume that 64-bit signed int is available
58721         if unsigned int is, and vice versa.
58722         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58723         unsigned symbols, not on their signed counterparts.
58724         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58725         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58726         (UINT64_C, UINTMAX_C):
58727         Likewise.
58728         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58729         unsigned counterparts.
58730         (Have_long_long, Unsigned): New macros.
58731         (Int): Renamed from INT.
58732         (strtoimax): Use the new macros.
58733         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58734         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58735         * modules/inttypes (inttypes.h): Substitute
58736         HAVE_UNSIGNED_LONG_LONG_INT.
58737         * modules/stdint (stdint.h): Likewise.
58738         (Files): Add m4/ulonglong.m4.
58739
58740 2006-10-10  Bruno Haible  <bruno@clisp.org>
58741
58742         Fix a gcc -Wshadow warning.
58743         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58744         to 'bucket'.
58745         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58746         gl_linked_indexof_from_to): Likewise.
58747         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58748         Likewise.
58749         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58750         Likewise.
58751         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58752         Reported by Eric Blake.
58753
58754 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58755
58756         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58757         for NetBSD.  Problem reported by Bruno Haible.
58758
58759 2006-10-09  Jim Meyering  <jim@meyering.net>
58760
58761         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58762         Patch from Bruno Haible.
58763
58764 2006-10-09  Jim Meyering  <jim@meyering.net>
58765
58766         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58767         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58768         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58769
58770 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58771
58772         Don't include <config.h> twice; this doesn't work in some cases,
58773         e.g., when config.h has "#define intmax_t long long int" and
58774         we include <config.h>, <inttypes.h>, <config.h> in that order.
58775         Problem reported by Matthew Woehlke in:
58776         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58777         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58778         * lib/fts-cycle.c: Don't include config.h.
58779         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58780         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58781         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58782         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58783         inttypes.h.
58784         * lib/xstrtoumax.c: Likewise.
58785         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58786         __strtol and the like, so that this module is more like its siblings.
58787         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58788         Remove; no longer needed now that we assume gnulib inttypes.h.
58789
58790 2006-10-08  Bruno Haible  <bruno@clisp.org>
58791
58792         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58793         option.
58794
58795 2006-10-07  Jim Meyering  <jim@meyering.net>
58796
58797         * modules/inttypes (inttypes.h): Revert what seems to have been
58798         an inadvertent part of today's change: use "|", not "/" in the
58799         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58800
58801 2006-10-07  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/sublist: New file.
58804
58805 2006-10-07  Bruno Haible  <bruno@clisp.org>
58806
58807         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58808         * modules/argz (argz.h): Likewise.
58809         * modules/arpa_inet (arpa/inet.h): Likewise.
58810         * modules/byteswap (byteswap.h): Likewise.
58811         * modules/configmake (configmake.h): Likewise.
58812         * modules/fcntl (fcntl.h): Likewise.
58813         * modules/fnmatch (fnmatch.h): Likewise.
58814         * modules/getopt (getopt.h): Likewise.
58815         * modules/glob (glob.h): Likewise.
58816         * modules/inttypes (inttypes.h): Likewise.
58817         * modules/netinet_in (netinet/in.h): Likewise.
58818         * modules/poll (poll.h): Likewise.
58819         * modules/stdbool (stdbool.h): Likewise.
58820         * modules/stdint (stdint.h): Likewise.
58821         * modules/sys_select (sys/select.h): Likewise.
58822         * modules/sys_socket (sys/socket.h): Likewise.
58823         * modules/sys_stat (sys/stat.h): Likewise.
58824         * modules/sysexits (sysexits.h): Likewise.
58825         * modules/unistd (unistd.h): Likewise.
58826         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58827         Add a "DO NOT EDIT" comment to the generated file.
58828         (func_import): Likewise for gnulib-comp.m4.
58829
58830 2006-10-07  Bruno Haible  <bruno@clisp.org>
58831
58832         * lib/gl_sublist.h: New file.
58833         * lib/gl_sublist.c: New file.
58834
58835 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58838         name (relative to the original working directory) and the file
58839         name component (relative to the temporary working directory).  All
58840         callers changed.
58841         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58842         * lib/mkdir-p.c (make_dir_parents): Likewise.
58843         * lib/mkdir-p.h (make_dir_parents): Likewise.
58844
58845 2006-10-06  Eric Blake  <ebb9@byu.net>
58846
58847         Define several macros for use by the clean-temp module.
58848         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58849         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58850         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58851
58852         * lib/clean-temp.h (close_stream_temp): New declaration.
58853         * lib/clean-temp.c (includes): Pull in headers according to what
58854         other modules are in use.
58855         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58856
58857 2006-10-06  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58860         instead of fopen, fwriteerror.
58861
58862 2006-10-06  Bruno Haible  <bruno@clisp.org>
58863
58864         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58865         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58866         int.
58867         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58868         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58869         Return an error indicator.
58870         Suggested by Eric Blake.
58871
58872 2006-10-06  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58875         Reported by Eric Blake.
58876
58877 2006-10-06  Bruno Haible  <bruno@clisp.org>
58878
58879         * modules/closeout (Description): Mention stderr too.
58880
58881 2006-10-06  Bruno Haible  <bruno@clisp.org>
58882         and Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * lib/closeout.c (close_stdout): Also close stderr.
58885         * lib/closeout.h: Update comment.
58886
58887 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58888
58889         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58890         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58891         * lib/dirchownmod.c: Include lchown.h.
58892         * lib/lchown.c: Don't include files that lchown.h now includes.
58893         Don't declare chown, since lchown.h now does that.
58894         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58895         (lchown): Define to rpl_chown if lchown is declared but
58896         does not exist.  Declare using a prototype if lchown is not
58897         declared.  Add a copyright notice.
58898         * lib/mkstemp.h: Include <unistd.h>.
58899         * lib/openat.c: Include lchown.h.
58900
58901         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58902         we now test for that separately.
58903         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58904         rather than O_NOFOLLOW, when testing whether it's possible to
58905         avoid a race condition reliably.
58906         * lib/savewd.c (savewd_chdir): Likewise.
58907
58908         Remove macros that are no longer needed now that stdint.h is
58909         reliable.
58910         * lib/fsusage.c (UINTMAX_MAX): Remove.
58911         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58912         * lib/utimecmp.c (SIZE_MAX): Remove.
58913
58914         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58915
58916         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58917         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58918         O_NOATIME works.
58919
58920 2006-10-05  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/gl_list.h (gl_sortedlist_search_from_to,
58923         gl_sortedlist_indexof_from_to): New declarations.
58924         (gl_list_implementation): New fields sortedlist_search_from_to,
58925         sortedlist_indexof_from_to.
58926         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58927         inline functions.
58928         * lib/gl_list.c (gl_sortedlist_search_from_to,
58929         gl_sortedlist_indexof_from_to): New functions.
58930         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58931         function.
58932         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58933         (gl_array_sortedlist_search_from_to): New function.
58934         (gl_array_list_implementation): Update.
58935         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58936         function.
58937         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58938         (gl_carray_sortedlist_search_from_to): New function.
58939         (gl_carray_list_implementation): Update.
58940         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58941         gl_linked_sortedlist_indexof_from_to): New functions.
58942         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58943         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58944         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58945         gl_tree_sortedlist_indexof_from_to): New functions.
58946         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58947         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58948         Update.
58949         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58950         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58951         Update.
58952
58953 2006-10-05  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58956         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58957         (struct gl_list_implementation): Add fields search_from_to,
58958         indexof_from_to. Remove fields search, indexof.
58959         (gl_list_search): Use the search_from_to method.
58960         (gl_list_search_from, gl_list_search_from_to): New functions.
58961         (gl_list_indexof): Use the indexof_from_to method.
58962         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58963         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58964         (gl_list_search_from, gl_list_search_from_to): New functions.
58965         (gl_list_indexof): Use the indexof_from_to method.
58966         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58967         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58968         gl_array_indexof. Add start_index, end_index arguments.
58969         (gl_array_search_from_to): Renamed from gl_array_search. Add
58970         start_index, end_index arguments.
58971         (gl_array_remove, gl_array_list_implementation): Update.
58972         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58973         gl_carray_indexof. Add start_index, end_index arguments.
58974         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58975         start_index, end_index arguments.
58976         (gl_carray_remove, gl_carray_list_implementation): Update.
58977         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58978         gl_linked_search. Add start_index, end_index arguments.
58979         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58980         start_index, end_index arguments.
58981         (gl_linked_remove): Update.
58982         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58983         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58984         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58985         field to 'size_t'.
58986         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58987         gl_tree_search. Add start_index, end_index arguments.
58988         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58989         start_index, end_index arguments.
58990         (gl_tree_remove): Update.
58991         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58992         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58993         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58994         function.
58995         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58996         gl_tree_search. Add start_index, end_index arguments.
58997         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58998         start_index, end_index arguments.
58999         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59000         Update.
59001         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59002
59003 2006-10-05  Bruno Haible  <bruno@clisp.org>
59004
59005         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59006
59007         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59008         fwriteerror_temp): New declarations.
59009         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59010         (descriptors): New variable.
59011         (cleanup): First, close the descriptors.
59012         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59013         fclose_temp, fwriteerror_temp): New functions.
59014
59015 2006-10-04  Jim Meyering  <jim@meyering.net>
59016
59017         * lib/fts.c (fts_open): Tiny comment change.
59018
59019 2006-10-04  Bruno Haible  <bruno@clisp.org>
59020
59021         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59022         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59023         gl_LOCK_BODY.
59024         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59025         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59026         gl_LOCK_EARLY_BODY.
59027         (gl_LOCK): Require gl_LOCK_BODY.
59028
59029 2006-10-04  Bruno Haible  <bruno@clisp.org>
59030
59031         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59032         (gl_oset_search_atleast): New declaration.
59033         (struct gl_oset_implementation): Add field 'search_atleast'.
59034         (gl_oset_search_atleast): New inline function.
59035         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59036         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59037         (gl_array_oset_implementation): Update.
59038         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59039         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59040         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59041
59042 2006-10-04  Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59045
59046 2006-10-03  Bruno Haible  <bruno@clisp.org>
59047
59048         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59049         from gl_avltreehash_list_implementation.
59050
59051 2006-10-03  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/gl_oset.c (gl_oset_add): Fix return type.
59054
59055 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59056
59057         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59058
59059 2006-10-02  Eric Blake  <ebb9@byu.net>
59060
59061         * modules/strnlen (Depends-on): Add extensions.
59062
59063 2006-10-02  Eric Blake  <ebb9@byu.net>
59064
59065         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59066         definition in 2.60+.
59067
59068 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59069
59070         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59071         checks.
59072
59073 2006-10-02  Bruno Haible  <bruno@clisp.org>
59074
59075         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59076         to the AUTOMAKE_OPTIONS.
59077         Reported by Jim Meyering.
59078
59079 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         Work around bug in Solaris 10 /proc file system:
59082         /proc/self/fd/NNN/.. isn't the parent directory of
59083         the directory whose file descriptor is NNN.  This needs to
59084         be worked around at run time, not compile time, since a
59085         program might be built on Solaris 8, where things work, and
59086         run on Solaris 10.
59087         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59088         to use the following interface instead:
59089         (OPENAT_BUFFER_SIZE): New macro.
59090         (openat_proc_name): New function.
59091         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59092         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59093         Likewise.
59094         * lib/openat-proc.c: New file.
59095         * modules/openat (Files): Add lib/openat-proc.c.
59096         (Depends-on): Add same-inode, stdbool.
59097         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59098
59099 2006-09-29  Bruno Haible  <bruno@clisp.org>
59100
59101         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59102         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59103         argument. Set stdout_closed before testing for ferror, not after.
59104         (fwriteerror, fwriteerror_no_ebadf): New functions.
59105
59106 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59107
59108         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59109
59110 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59111
59112         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59113         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59114
59115 2006-09-28  Jim Meyering  <jim@meyering.net>
59116
59117         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59118         Include <unistd.h>.
59119
59120 2006-09-28  Bruno Haible  <bruno@clisp.org>
59121
59122         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59123         * modules/linkedhash-list (Depends-on): Likewise.
59124         * modules/rbtreehash-list (Depends-on): Likewise.
59125
59126 2006-09-28  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/strndup.h: Simplify the redefinition of strndup.
59129         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59130         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59131
59132 2006-09-28  Bruno Haible  <bruno@clisp.org>
59133
59134         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59135         * lib/gl_linkedhash_list.c: Likewise.
59136         * lib/gl_rbtreehash_list.c: Likewise.
59137
59138 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59141         getaddrinfo.
59142
59143         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59144         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59145         it causes <stdio_ext.h> to cause a compile-time error.
59146         Problem reported by Nelson H. F. Beebe.
59147         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59148         of HAVE_DECL___PENDING.
59149
59150         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59151         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59152         declaration.
59153
59154 2006-09-27  Jim Meyering  <jim@meyering.net>
59155
59156         This file could end up with a definition for a function
59157         named __strndup, rather than rpl_strndup on a system with
59158         incomplete weak_alias support.
59159         * lib/strndup.c (strndup): Rename from __strndup.
59160         Remove #defines that used to map __strndup to strndup.
59161         Don't use K&R prototypes.
59162         Remove LIBC-related code, since this file is not sync'd with glibc.
59163         * lib/strndup.h: Revamp, accordingly.
59164         * m4/strndup.m4: Modernize.
59165
59166 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59167
59168         * modules/savewd (Depends-on): Add 'raise'.
59169         * lib/savewd.c: Include <signal.h>, for 'raise'.
59170
59171 2006-09-26  Jim Meyering  <jim@meyering.net>
59172
59173         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59174         when we detect Darwin 8.7.0's acl_get_file bug.
59175         Rearrange to perform the new (below) run-test while $LIBS
59176         contains any acl-related library.  Set USE_ACL at the end.
59177         (gl_ACL_GET_FILE): New function.
59178
59179 2006-09-26  Eric Blake  <ebb9@byu.net>
59180
59181         * lib/verror.c: Include <config.h> unconditionally.
59182
59183 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59184
59185         * modules/clock-time (Maintainer): Add self.
59186         * modules/getlogin_r (Depends-on): Add extensions.
59187
59188 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59189
59190         * modules/clock-time: New module.
59191         * modules/nanosleep (Depends-on): Add clock-time.
59192         * modules/gethrxtime (Depends-on): Likewise.
59193         * modules/gettime (Depends-on): Likewise.
59194         * modules/settime (Depends-on): Likewise.
59195
59196         * modules/fts-lgpl: Depend on openat.
59197         * modules/mkancesdirs: Depend on savewd.
59198         * modules/mkdir-p: Likewise.
59199
59200 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59201
59202         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59203
59204         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59205         `gl_have_arbitrary_file_name_length_limit' to
59206         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59207         actually works between configure runs.
59208
59209 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59210             Bruno Haible  <bruno@clisp.org>
59211
59212         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59213
59214 2006-09-25  Jim Meyering  <jim@meyering.net>
59215
59216         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59217         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59218
59219 2006-09-25  Eric Blake  <ebb9@byu.net>
59220
59221         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59222         exec's in 2006-09-18 patch when shuffling fds.
59223
59224 2006-09-25  Bruno Haible  <bruno@clisp.org>
59225
59226         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59227         Reported by Jim Meyering.
59228
59229 2006-09-24  Jim Meyering  <jim@meyering.net>
59230
59231         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59232         compare a pointer against a literal "0".  That caused failures with
59233         at least HP-UX's hpcc.
59234
59235 2006-09-22  Simon Josefsson  <jas@extundo.com>
59236
59237         * modules/gc-sha1:
59238         * modules/gc-md4:
59239         * modules/gc-hmac-sha1:
59240         * modules/gc-hmac-md5:
59241         * modules/gc-des:
59242         * modules/gc-arcfour: Distribute more files.
59243
59244 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59245
59246         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59247         (gl_linked_iterator_from_to): Initialize struct completely.
59248         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59249         (gl_tree_iterator_from_to): Likewise
59250         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59251         * lib/gl_array_list.c [lint] (gl_array_iterator)
59252         (gl_array_iterator_from_to): Likewise.
59253         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59254         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59255         (gl_carray_iterator_from_to): Likewise.
59256
59257         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59258         * lib/md4.c (md4_process_block): Remove unused variable.
59259         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59260         parentheses for clarity.
59261
59262 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59263
59264         * modules/bison-i18n (Depends-on): Add gettext.
59265
59266 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59267
59268         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59269         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59270         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59271         also add missing comma that caused broken test.
59272         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59273         stdlib.h, for `abort'.
59274         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59275         variables.
59276         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59277         include unistd.h if present, for `rmdir'.
59278         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59279         variables.
59280         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59281         in the process include standard headers for prototypes.
59282         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59283         gets declared on GNU/Linux.
59284         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59285         unistd.h, for `rmdir'.
59286         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59287
59288         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59289         always true.
59290         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59291
59292         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59293
59294 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59295
59296         * gnulib-tool (func_version): Create output all at once.  This
59297         may help avoid triggering unnecessary SIGPIPEs, and at any
59298         rate it doesn't hurt.
59299
59300 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59301             Bruno Haible  <bruno@clisp.org>
59302
59303         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59304         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59305         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59306
59307         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59308         (gl_FUNC_VASPRINTF): Invoke it.
59309
59310 2006-09-22  Bruno Haible  <bruno@clisp.org>
59311
59312         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59313         getloadavg.c as first argument.
59314
59315 2006-09-22  Bruno Haible  <bruno@clisp.org>
59316
59317         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59318         at the beginning of the gl_INIT macro.
59319         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59320         gl_GETLOADAVG.
59321
59322 2006-09-22  Bruno Haible  <bruno@clisp.org>
59323
59324         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59325         module.
59326         Suggested by Ralf Wildenhues.
59327
59328 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         Import this patch from libc:
59331
59332         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59333
59334         * lib/regex_internal.c (re_string_reconstruct): Handle
59335         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59336         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59337         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59338         re_string_context_at.
59339
59340         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59341         now requires it.
59342         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59343         gl_REGEX now does it for us.
59344         (gl_REGEX): Add test taken from
59345         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59346
59347         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59348         Check that large offsets work.  Modernize Autoconf usages.
59349         Prefer "yes" to mean a good thing rather than a bad.
59350         Don't put "#define mkstemp" in config.h, as this might interfere
59351         with standard system headers that "#define mkstemp mkstemp64".
59352
59353         * modules/mkstemp (Depends-on): Add extensions, so that
59354         mkstemp is visible on some platforms.
59355         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59356         (Include): Change to "mkstemp.h" from <stdlib.h>.
59357         (Files): Add mkstemp.h.
59358
59359         * lib/mkstemp.h: New file, since some standard headers
59360         #define mkstemp.
59361         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59362         Include "mkstemp.h".
59363         Make the _LIBC code resemble glibc original more,
59364         e.g., use K&R style.
59365         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59366         (mkstemp): Remove, since mkstemp.h does this for us.
59367         * lib/stdlib--.h: Include mkstemp.h.
59368
59369         Import this patch from libc:
59370
59371         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59372
59373         * lib/tempname.c (__gen_tempname): Change attempts_min
59374         into a macro.  Use preprocessor to decide how to initialize
59375         attempts [Coverity CID 67].
59376
59377 2006-09-20  Bruno Haible  <bruno@clisp.org>
59378
59379         * lib/mkdtemp.c: Import from libc.
59380         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59381                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59382                 attempts_min into a macro.  Use preprocessor to decide how to
59383                 initialize attempts [Coverity CID 67].
59384         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59385                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59386                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59387
59388 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59389
59390         * gnulib-tool (func_exit): New function, to allow to pass the
59391         exit status portably through the trap.  Use everywhere.
59392         (--help, --version): Signal a write error.
59393         (trap): catch SIGPIPE, for write errors.
59394         Exit at the end of the trap, with the correct exit status.
59395
59396 2006-09-19  Karl Berry  <karl@gnu.org>
59397
59398         * doc/gnulib.texi: note about the license texinfo files.
59399
59400 2006-09-19  Eric Blake  <ebb9@byu.net>
59401
59402         * gnulib-tool: Avoid space-tab.
59403
59404 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59407         that prevented coreutils 6.1 from building.  Problem reported
59408         by Petter Reinholdtsen.
59409
59410 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59411
59412         * gnulib-tool (avoidlist): Fix typo that broke options like
59413         --avoid=lock that are used by coreutils bootstrap.
59414
59415 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59416
59417         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59418         more systematically.
59419
59420 2006-09-18  Jim Meyering  <jim@meyering.net>
59421
59422         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59423
59424 2006-09-18  Bruno Haible  <bruno@clisp.org>
59425
59426         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59427
59428 2006-09-18  Bruno Haible  <bruno@clisp.org>
59429
59430         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59431         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59432         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59433         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59434         * m4/gettext.m4: Require autoconf >= 2.52.
59435         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59436         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59437         of gl_cv_header_inttypes_h.
59438
59439 2006-09-18  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/javaversion.c: Include configmake.h.
59442
59443 2006-09-18  Bruno Haible  <bruno@clisp.org>
59444
59445         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59446         avoid that the while loops be executed in a subshell.
59447
59448 2006-09-18  Bruno Haible  <bruno@clisp.org>
59449
59450         * MODULES.html.sh (func_module): Break long lines.
59451         Suggested by Bruce Korb <bkorb@gnu.org>.
59452
59453 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59454
59455         Speed up by a factor of 1.12.
59456         * gnulib-tool (nl): New variable.
59457         (func_import): Rewrite include directive extraction to only read each
59458         directive once.
59459
59460 2006-09-17  Bruno Haible  <bruno@clisp.org>
59461
59462         * modules/javaversion (Makefile.am): Remove DEFS setting.
59463         (Depends-on): Add configmake, for PKGDATADIR definition.
59464
59465 2006-09-17  Bruno Haible  <bruno@clisp.org>
59466
59467         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59468
59469 2006-09-17  Bruno Haible  <bruno@clisp.org>
59470
59471         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59472         (func_modules_transitive_closure, func_modules_add_dummy,
59473         func_modules_to_filelist, func_import, func_create_testdir,
59474         func_create_megatestdir, ...): Use it wherever possible.
59475         Suggested by Ralf Wildenhues.
59476
59477 2006-09-16  Karl Berry  <karl@gnu.org>
59478
59479         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59480         to avoid sectioning errors.
59481         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59482         [ifinfo]: blank line after @center-ed titles.
59483         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59484         Spell FSF address consistently with others.
59485         (These changes approved by rms.)
59486
59487 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59488
59489         Speed up by a factor of 1.61.
59490         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59491         already checked module names again.
59492
59493 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59494
59495         Speed up by a factor of 1.13.
59496         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59497         for new_files, and the input to func_add_or_update.
59498
59499 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59500
59501         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59502         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59503
59504 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59505
59506         * modules/mkancesdirs (Depends-on): Add fcntl.
59507         * modules/savewd: New file.
59508         * MODULES.html.sh (File system functions): Add savewd.
59509
59510         * modules/configmake (Makefile.am): Add support for the
59511         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59512
59513 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59514
59515         * m4/savewd.m4: New file.
59516
59517 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59520         (dirchownmod): New arg FD.  All callers changed.
59521         Use FD rather than opening the directory ourself, as opening is
59522         now the caller's responsibility.
59523         * lib/dirchownmod.h: Likewise.
59524         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59525         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59526         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59527         (test_dir): Remove.
59528         (mkancesdirs): Return length of prefix of FILE that has already
59529         been made, or -2 if there is a child doing the work.  Redo
59530         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59531         ".", and treat ".." specially since it might stray back into
59532         already-created areas.  Use a subprocess if necessary.  New arg
59533         WD; all users changed.  MAKE_DIR function should now return 1
59534         if it creates a directory that is not readable.  Return -2 if
59535         a child process is spun off.
59536         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59537         Adjust signature to match code.
59538         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59539         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59540         all users changed.
59541         * lib/savewd.c, lib/savewd.h: New files.
59542
59543 2006-09-15  Jim Meyering  <jim@meyering.net>
59544
59545         * modules/rename-dest-slash: New module.
59546         * MODULES.html.sh (posix_compat): Add it here.
59547
59548         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59549
59550 2006-09-15  Jim Meyering  <jim@meyering.net>
59551
59552         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59553         file.
59554
59555         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59556
59557 2006-09-15  Jim Meyering  <jim@meyering.net>
59558
59559         * lib/rename-dest-slash.c (has_trailing_slash): Use
59560         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59561         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59562         test before testing whether SRC is a directory.
59563         Suggestions from Bruno Haible.
59564
59565         Avoid a warning about an unused variable.
59566         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59567         into the #ifdef block where it's used.
59568
59569         * lib/rename-dest-slash.c: New file.
59570
59571 2006-09-14  Bruno Haible  <bruno@clisp.org>
59572
59573         * lib/allocsa.c: Include <config.h> unconditionally.
59574         * lib/asnprintf.c: Likewise.
59575         * lib/asprintf.c: Likewise.
59576         * lib/c-strcasecmp.c: Likewise.
59577         * lib/c-strcasestr.c: Likewise.
59578         * lib/c-strncasecmp.c: Likewise.
59579         * lib/c-strstr.c: Likewise.
59580         * lib/classpath.c: Likewise.
59581         * lib/clean-temp.c: Likewise.
59582         * lib/concatpath.c: Likewise.
59583         * lib/copy-file.c: Likewise.
59584         * lib/csharpcomp.c: Likewise.
59585         * lib/csharpexec.c: Likewise.
59586         * lib/execute.c: Likewise.
59587         * lib/fatal-signal.c: Likewise.
59588         * lib/findprog.c: Likewise.
59589         * lib/fwriteerror.c: Likewise.
59590         * lib/gl_array_list.c: Likewise.
59591         * lib/gl_array_oset.c: Likewise.
59592         * lib/gl_avltree_list.c: Likewise.
59593         * lib/gl_avltree_oset.c: Likewise.
59594         * lib/gl_avltreehash_list.c: Likewise.
59595         * lib/gl_carray_list.c: Likewise.
59596         * lib/gl_linked_list.c: Likewise.
59597         * lib/gl_linkedhash_list.c: Likewise.
59598         * lib/gl_list.c: Likewise.
59599         * lib/gl_oset.c: Likewise.
59600         * lib/gl_rbtree_list.c: Likewise.
59601         * lib/gl_rbtree_oset.c: Likewise.
59602         * lib/gl_rbtreehash_list.c: Likewise.
59603         * lib/imaxabs.c: Likewise.
59604         * lib/imaxdiv.c: Likewise.
59605         * lib/javacomp.c: Likewise.
59606         * lib/javaexec.c: Likewise.
59607         * lib/javaversion.c: Likewise.
59608         * lib/linebreak.c: Likewise.
59609         * lib/localcharset.c: Likewise.
59610         * lib/lock.c: Likewise.
59611         * lib/mbchar.c: Likewise.
59612         * lib/mbswidth.c: Likewise.
59613         * lib/mkdtemp.c: Likewise.
59614         * lib/pipe.c: Likewise.
59615         * lib/printf-args.c: Likewise.
59616         * lib/printf-parse.c: Likewise.
59617         * lib/progname.c: Likewise.
59618         * lib/progreloc.c: Likewise.
59619         * lib/readlink.c: Likewise.
59620         * lib/sh-quote.c: Likewise.
59621         * lib/stpcpy.c: Likewise.
59622         * lib/stpncpy.c: Likewise.
59623         * lib/strcasecmp.c: Likewise.
59624         * lib/strcasestr.c: Likewise.
59625         * lib/strcspn.c: Likewise.
59626         * lib/striconv.c: Likewise.
59627         * lib/strncasecmp.c: Likewise.
59628         * lib/strnlen1.c: Likewise.
59629         * lib/strstr.c: Likewise.
59630         * lib/strtok_r.c: Likewise.
59631         * lib/tls.c: Likewise.
59632         * lib/tmpdir.c: Likewise.
59633         * lib/unicodeio.c: Likewise.
59634         * lib/unsetenv.c: Likewise.
59635         * lib/vasnprintf.c: Likewise.
59636         * lib/vasprintf.c: Likewise.
59637         * lib/wait-process.c: Likewise.
59638         * lib/xallocsa.c: Likewise.
59639         * lib/xsetenv.c: Likewise.
59640         * lib/xstriconv.c: Likewise.
59641
59642 2006-09-13  Simon Josefsson  <jas@extundo.com>
59643
59644         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59645         that internally, suggested by Ralf Wildenhues
59646         <Ralf.Wildenhues@gmx.de>.
59647
59648 2006-09-13  Simon Josefsson  <jas@extundo.com>
59649
59650         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59651         @LIBOBJS@.
59652         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59653
59654 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59657         longer worry about uses that don't define HAVE_CONFIG_H.
59658         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59659         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59660         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59661         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59662         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59663         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59664         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59665         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59666         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59667         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59668         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59669         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59670         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59671         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59672         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59673         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59674         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59675         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59676         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59677         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59678         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59679         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59680         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59681         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59682         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59683         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59684         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59685         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59686         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59687         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59688         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59689         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59690         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59691         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59692         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59693         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59694         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59695         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59696         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59697         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59698         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59699         Likewise.
59700
59701 2006-09-13  Eric Blake  <ebb9@byu.net>
59702
59703         * lib/getopt.c: Fix typo in last commit.
59704
59705 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59706
59707         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59708         dgettext.
59709
59710 2006-09-12  Jim Meyering  <jim@meyering.net>
59711
59712         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59713         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59714         Reported by Nelson H. F. Beebe.
59715
59716 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59717
59718         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59719         program_invocation_name and program_invocation_short_name are
59720         initialized.
59721         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59722         and program_invocation_short_name to argp.h, so they are visible
59723         to user programs.
59724         * lib/argp.h: Likewise
59725
59726 2006-09-10  Bruno Haible  <bruno@clisp.org>
59727
59728         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59729         m4/inttypes_h.m4, m4/uintmax_t.m4.
59730
59731 2006-09-10  Bruno Haible  <bruno@clisp.org>
59732
59733         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59734         gl_AC_TYPE_UINTMAX_T.
59735
59736 2006-09-10  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59739
59740 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59741
59742         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59743         convention.  Text proposed by Bruno Haible.
59744         (struct argp_option): Document the use of N_() wrappers.
59745
59746         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59747         '\v', and translate the two parts separately, instead of feeding
59748         the whole string to gettext.  This allows to exclude
59749         '\v' from the strings visible to the translator by writing doc
59750         strings as N_("..") "\v" N_("..").
59751
59752 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59753
59754         * config/srclist.txt: Undo latest change; the bug was fixed.
59755
59756 2006-09-09  Bruno Haible  <bruno@clisp.org>
59757
59758         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59759         assignments if building a library without libtool.
59760         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59761         in func_emit_lib_Makefile_am.
59762         (func_import): When building a static library libfoo.a, arrange to
59763         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59764         (func_create_testdir): Likewise.
59765         * modules/gc (configure.ac, Makefile.am): If building statically,
59766         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59767         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59768         * modules/striconv (configure.ac, Makefile.am): Likewise.
59769         Based on a suggestion by Ralf Wildenhues.
59770
59771 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59772
59773         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59774         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59775         Also:
59776
59777         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59778         Add year_2050_test to catch glibc bug 2821
59779         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59780
59781         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59782         Prefer #ifdef to #if.
59783
59784         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59785         Return from 'main' instead of calling 'exit'.
59786
59787 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59790         returned the maximum time_t value rather than (time_t) -1.
59791         Problem originally reported by William Bardwell
59792         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59793
59794         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59795         Moved to here ...
59796         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59797         ... from here.
59798
59799 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59802         2821 is fixed.
59803
59804 2006-09-08  Jim Meyering  <jim@meyering.net>
59805
59806         Don't make generated files read-only.  That would bother too many
59807         people.  However, do retain the ability to work when targets are
59808         read-only: remove the destination and temporary files before writing
59809         them (when generated via sed or echo), or by using the -f option for
59810         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59811         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59812         * modules/byteswap, modules/configmake, modules/fcntl:
59813         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59814         * modules/localcharset, modules/netinet_in, modules/poll:
59815         * modules/stdbool, modules/stdint, modules/sys_select:
59816         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59817
59818 2006-09-08  Jim Meyering  <jim@meyering.net>
59819
59820         Avoid new build failure on FreeBSD 6.0.
59821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59822         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59823         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59824
59825 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59826
59827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59828
59829 2006-09-07  Jim Meyering  <jim@meyering.net>
59830
59831         Fix global typo in last change: use chmod u-w, not chmod u-x.
59832         Spotted by Paul Eggert and Bruce Korb.
59833         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59834         * modules/byteswap, modules/configmake, modules/fcntl:
59835         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59836         * modules/localcharset, modules/netinet_in, modules/poll:
59837         * modules/stdbool, modules/stdint, modules/sys_select:
59838         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59839
59840 2006-09-06  Jim Meyering  <jim@meyering.net>
59841
59842         Make generated files be read-only.
59843         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59844         Ensure that each generated file is now read-only.
59845         * modules/argz: Likewise.
59846         * modules/arpa_inet: Likewise.
59847         * modules/byteswap: Likewise.
59848         * modules/configmake: Likewise.
59849         * modules/fcntl: Likewise.
59850         * modules/fnmatch: Likewise.
59851         * modules/getopt: Likewise.
59852         * modules/glob: Likewise.
59853         * modules/inttypes: Likewise.
59854         * modules/netinet_in: Likewise.
59855         * modules/poll: Likewise.
59856         * modules/stdbool: Likewise.
59857         * modules/stdint: Likewise.
59858         * modules/sys_select: Likewise.
59859         * modules/sys_socket: Likewise.
59860         * modules/sys_stat: Likewise.
59861         * modules/sysexits: Likewise.
59862         * modules/localcharset: Same as above, but continue using temporary
59863         file named "t-$@" (why different?) rather than the "$@-t" used
59864         everywhere else.
59865
59866         * modules/sysexits (Makefile.am): Replace literal occurrences
59867         of "sysexit.h" more readable, and more consistent, "$@".
59868
59869 2006-09-06  Bruno Haible  <bruno@clisp.org>
59870
59871         * modules/striconv: New file.
59872         * modules/xstriconv: New file.
59873         * MODULES.html.sh (Internationalization functions): Add striconv,
59874         xstriconv.
59875
59876 2006-09-06  Bruno Haible  <bruno@clisp.org>
59877
59878         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59879         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59880         not using libtool correctly.
59881
59882 2006-09-06  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/striconv.h: New file.
59885         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59886         iconvstring.c.
59887         * lib/xstriconv.h: New file.
59888         * lib/xstriconv.c: New file.
59889
59890 2006-09-06  Bruno Haible  <bruno@clisp.org>
59891
59892         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59893         lib_..._LDFLAGS.
59894
59895 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59896
59897         * lib/argz_.h: Sync from Libtool.
59898
59899         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59900                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59901
59902         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59903
59904 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59905
59906         * modules/trim: New file.
59907
59908 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59909
59910         * lib/trim.h: New file.
59911         * lib/trim.c: New file.
59912
59913 2006-09-05  Bruno Haible  <bruno@clisp.org>
59914
59915         * MODULES.html.sh (String handling): Add trim.
59916
59917 2006-09-04  Karl Berry  <karl@gnu.org>
59918
59919         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59920         until next release.
59921
59922 2006-09-03  Bruno Haible  <bruno@clisp.org>
59923
59924         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59925         correctly.
59926
59927 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59930         not gl_GETLOADAVG.  Omit unneeded semicolons.
59931         Problems reported by Ralf Wildenhues in
59932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59933         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59934         at the end, which is the usual gnulib style.
59935
59936         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59937         of doing all the work ourselves.
59938         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59939         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59940
59941 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59942
59943         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59944         Problem reported by Ralf Wildenhues in
59945         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59946
59947         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59948         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59949
59950 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59953         yesterday's patch by changing test -n to test -z.
59954
59955 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59956
59957         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59958         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59959         the former is now obsolescent.
59960
59961         * modules/chdir-long (Depends-on): Add fcntl.
59962
59963 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59964
59965         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59966         obsolescent, and programs should use gnulib instead.
59967         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59968         but with prefixes changed.
59969
59970 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59971
59972         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59973         or stdbool.h, because they might not exist while configuring.
59974
59975         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59976         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59977         does that for us.
59978         (O_DIRECTORY): Remove.
59979
59980 2006-08-31  Eric Blake  <ebb9@byu.net>
59981
59982         * gnulib-tool: Don't let emacs change spaces to TAB.
59983
59984 2006-08-31  Bruno Haible  <bruno@clisp.org>
59985
59986         * gnulib-tool: When calling func_import more than once, do it in a
59987         subshell.
59988         Reported by Eric Blake <ebb9@byu.net>.
59989
59990 2006-08-31  Bruno Haible  <bruno@clisp.org>
59991
59992         * gnulib-tool (nl): Remove variable.
59993         (sed_transform_lib_file): Use more robust test for config-h module.
59994         (func_import): Fix typo in 2006-08-25 patch.
59995
59996 2006-08-31  Bruno Haible  <bruno@clisp.org>
59997
59998         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59999         specified, augment Makefile.am variables instead of assigning them.
60000
60001 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         Work around a bug in both the Linux and SunOS 64-bit kernels:
60004         nanosleep mishandles sleeps for longer than 2**31 seconds.
60005         Problem reported by Frank v Waveren in
60006         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60008         Check for nanosleep bug.
60009         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60010
60011 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         Work around a bug in both the Linux and SunOS 64-bit kernels:
60014         nanosleep mishandles sleeps for longer than 2**31 seconds.
60015         Problem reported by Frank v Waveren in
60016         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60017         * lib/nanosleep.c (BILLION): New constant.
60018         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60019         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60020         implementation.
60021
60022 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60023
60024         * modules/nanosleep (Depends-on): Add gettime.
60025
60026 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60027         and Simon Josefsson  <jas@extundo.com>
60028         and Oskar Liljeblad  <oskar@osk.mine.nu>
60029
60030         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60031         * gnulib-tool (func_import): New license type 'unmodifiable license
60032         text'.
60033         * modules/fdl: Use it.  Longer description.
60034         * module/gpl, module/lgpl: New files.
60035
60036 2006-08-30  Jim Meyering  <jim@meyering.net>
60037
60038         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60039         shadowing the parameter.
60040
60041 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60042
60043         Sync from Libtool:
60044
60045         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60046
60047         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60048         sharing with gnulib.  Report by Eric Blake.
60049
60050 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60051
60052         * modules/isapipe: New file.
60053         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60054
60055 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * modules/configmake (Makefile.am): Add a comment, and omit
60058         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60059         by Bruno Haible.
60060
60061 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60062
60063         * m4/isapipe.m4: New file.
60064
60065 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60066
60067         * lib/isapipe.c, lib/isapipe.h: New files.
60068
60069 2006-08-29  Jim Meyering  <jim@meyering.net>
60070
60071         * modules/configmake (Makefile.am): Make configmake.h depend on
60072         Makefile.  Otherwise, a stale configmake.h could hang around.
60073
60074 2006-08-29  Eric Blake  <ebb9@byu.net>
60075
60076         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60077         resolution of upstream bug 3044.
60078
60079 2006-08-29  Bruno Haible  <bruno@clisp.org>
60080
60081         * modules/localcharset (Depends-on): Add configmake.
60082         (Makefile.am): Remove setting of LIBDIR through DEFS.
60083
60084 2006-08-29  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60087         defined.
60088
60089 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * modules/fcntl: New file.
60092         * modules/chdir-safer (Depends-on): Add fcntl.
60093         * modules/fts: Likewise.
60094         * modules/mkdir-p: Likewise.
60095
60096         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60097         This undoes the most recent change, since we're now addressing the
60098         problem in a different way.
60099
60100         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60101         into output, since the output might be called Makefile.am even
60102         if $makefile_name is something different.
60103         (func_import): Use $makefile_am rather than
60104         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60105         empty.
60106
60107         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60108
60109 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60110
60111         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60112         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60113         recent change to stdint.m4, since we're now addressing the problem in a
60114         different way.
60115
60116 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60117
60118         * m4/fcntl_h.m4: New file.
60119
60120 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         * lib/fcntl_.h: New file.
60123         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60124         the fcntl module.
60125         * lib/dirchownmod.c: Likewise.
60126         * lib/fts.c: Likewise.
60127
60128         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60129         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60130         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60131         just before including <inttypes.h>, to avoid circular inclusion.
60132
60133 2006-08-28  Jim Meyering  <jim@meyering.net>
60134
60135         * doc/visibility.texi: Actually read and correct the grammar of the
60136         sentence affected by yesterday's change.
60137
60138 2006-08-28  Eric Blake  <ebb9@byu.net>
60139
60140         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60141         needs wrapper.
60142
60143 2006-08-28  Eric Blake  <ebb9@byu.net>
60144
60145         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60146
60147 2006-08-28  Eric Blake  <ebb9@byu.net>
60148
60149         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60150
60151 2006-08-28  Bruno Haible  <bruno@clisp.org>
60152
60153         * modules/c-strstr: New file, from GNU gettext.
60154         * MODULES.html.sh (String handling): Add c-strstr.
60155
60156 2006-08-28  Bruno Haible  <bruno@clisp.org>
60157
60158         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60159         macros.
60160         Reported by Eric Blake.
60161
60162 2006-08-28  Bruno Haible  <bruno@clisp.org>
60163
60164         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60165         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60166         * lib/vasprintf.c: Include errno.h, limits.h.
60167         (EOVERFLOW): New fallback definition.
60168         (vasprintf): Test here whether the string length is > INT_MAX.
60169         * lib/vsnprintf.c: Include errno.h, limits.h.
60170         (EOVERFLOW): New fallback definition.
60171         (vsnprintf): Fix bug when generated string was too long for the buffer.
60172         Test here whether the string length is > INT_MAX.
60173
60174 2006-08-28  Bruno Haible  <bruno@clisp.org>
60175
60176         * lib/inttypes_.h (SCNX*): Remove definitions.
60177         Reported by Eric Blake.
60178
60179 2006-08-28  Bruno Haible  <bruno@clisp.org>
60180
60181         * lib/c-strstr.h: New file, from GNU gettext.
60182         * lib/c-strstr.c: New file, from GNU gettext.
60183
60184 2006-08-28  Bruno Haible  <bruno@clisp.org>
60185
60186         * gnulib-tool: Reorder some statements.
60187
60188 2006-08-28  Bruno Haible  <bruno@clisp.org>
60189
60190         * gnulib-tool: New option --makefile-name.
60191         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60192         $makefile_name.
60193         (func_import): Write $makefile_name to the cache file, and read it from
60194         there unless explicitly specified. Use $makefile_name as file name
60195         instead of Makefile.am. Adjust the recommendations accordingly.
60196
60197 2006-08-28  Bruno Haible  <bruno@clisp.org>
60198
60199         * gnulib-tool (func_verify_module): Check against misapplying patch.
60200
60201 2006-08-28  Bruno Haible  <bruno@clisp.org>
60202
60203         * gnulib-tool (func_relativize, func_relconcat): New functions.
60204         Give an error if --local-dir is given with --update.
60205         Remove trailing slashes from $local_gnulib_dir.
60206         (func_import): Store the relativized $local_gnulib_dir in
60207         gnulib-cache.m4, and read it from there if not specified explicitly.
60208
60209 2006-08-28  Bruno Haible  <bruno@clisp.org>
60210
60211         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60212         is the current directory. Respect also $local_gnulib_dir.
60213
60214 2006-08-28  Bruno Haible  <bruno@clisp.org>
60215             Simon Josefsson  <jas@extundo.com>
60216
60217         BeOS portability.
60218         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60219
60220 2006-08-27  Jim Meyering  <jim@meyering.net>
60221
60222         * doc/visibility.texi: Remove duplicate word: "pointer".
60223
60224 2006-08-26  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60227         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60228         (Makefile.am): Create inttypes.h from inttypes_.h.
60229         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60230
60231         * modules/imaxabs: New file.
60232
60233         * modules/imaxdiv: New file.
60234
60235 2006-08-26  Bruno Haible  <bruno@clisp.org>
60236
60237         * m4/inttypes.m4: New file.
60238         * m4/_inttypes_h.m4: Remove file.
60239         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60240         PRI_MACROS_BROKEN.
60241         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60242
60243         * m4/imaxabs.m4: New file.
60244
60245         * m4/imaxdiv.m4: New file.
60246
60247 2006-08-26  Bruno Haible  <bruno@clisp.org>
60248
60249         * lib/inttypes_.h: New file.
60250         * lib/inttypes.h: Remove file.
60251         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60252
60253         * lib/imaxabs.c: New file.
60254
60255         * lib/imaxdiv.c: New file.
60256
60257 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         New config-h module, so that "make" output needn't be cluttered
60260         by -DHAVE_CONFIG_H.
60261         * MODULES.html.sh (Support for building libraries and executables):
60262         Add config-h.
60263         * modules/config-h: New file.
60264         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60265         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60266         the config-h module is used.
60267
60268         New configmake module, so that "make" output needn't be cluttered
60269         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60270         * MODULES.html.sh (Support for building libraries and executables):
60271         Add configmake.
60272         * modules/configmake: New file.
60273
60274 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60275
60276         * m4/config-h.m4: New file.
60277
60278 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60279
60280         * config/srclist.txt: Add elisp-comp.
60281
60282 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60283
60284         * MODULES.html.sh (Support for building libraries and executables):
60285         Add elisp-comp.
60286         * build-aux/elisp-comp: New file.
60287         * modules/elisp-comp: New file.
60288
60289 2006-08-24  Bruno Haible  <bruno@clisp.org>
60290
60291         * gnulib-tool (func_create_testdir): Use non-default values of
60292         sourcebase and m4base.
60293
60294 2006-08-24  Bruno Haible  <bruno@clisp.org>
60295
60296         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60297         HTML structure.
60298
60299 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * modules/openat (Depends-on): Add lchown.
60302
60303 2006-08-23  Bruno Haible  <bruno@clisp.org>
60304
60305         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60306         of gl_LOCK_EARLY instead of gl_LOCK.
60307
60308 2006-08-23  Bruno Haible  <bruno@clisp.org>
60309
60310         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60311         on OSF/1 to no.
60312         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60313
60314 2006-08-23  Bruno Haible  <bruno@clisp.org>
60315
60316         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60317         as unusable.
60318
60319         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60320         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60321         (gl_LOCK): New macro.
60322
60323 2006-08-22  Simon Josefsson  <jas@extundo.com>
60324
60325         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60326         to md5 module.
60327
60328 2006-08-22  Simon Josefsson  <jas@extundo.com>
60329
60330         * MODULES.html.sh: Add "Support for maintaining and release
60331         projects".
60332
60333         * build-aux/gnupload: New file, from coreutils.
60334
60335 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60336
60337         Avoid the need for AC_LIBSOURCES in m4 macros.
60338         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60339         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60340         * modules/check-version (EXTRA_DIST): Add check-version.h.
60341         * modules/crc (EXTRA_DIST): Add crc.h.
60342         * modules/des (EXTRA_DIST): Add des.h.
60343         * modules/gc (EXTRA_DIST): Add gc.h.
60344         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60345         * modules/getline (EXTRA_DIST): Add getline.h.
60346         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60347         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60348         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60349         * modules/md2 (EXTRA_DIST): Add md2.h.
60350         * modules/md4 (EXTRA_DIST): Add md4.h.
60351         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60352         * modules/read-file (EXTRA_DIST): Add read-file.h.
60353         * modules/readline (EXTRA_DIST): Add readline.h.
60354         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60355         rijndael-api-fst.h.
60356
60357 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60358
60359         * m4/rijndael.m4 (gl_ARCFOUR):
60360         * m4/arctwo.m4 (gl_ARCTWO):
60361         * m4/check-version.m4 (gl_CHECK_VERSION):
60362         * m4/crc.m4 (gl_CRC):
60363         * m4/des.m4 (gl_DES):
60364         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60365         * m4/gc.m4 (gl_GC):
60366         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60367         * m4/getline.m4 (gl_FUNC_GETLINE):
60368         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60369         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60370         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60371         * m4/md2.m4 (gl_MD2):
60372         * m4/md4.m4 (gl_MD4):
60373         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60374         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60375         * m4/readline.m4 (gl_FUNC_READLINE):
60376         * m4/rijndael.m4 (gl_RIJNDAEL):
60377         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60378         to get the necessary .h files and whatnot.
60379
60380 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60383         gnulib rather than the other way around.
60384         * config/srclistvars.sh (COREUTILS): Remove.
60385
60386 2006-08-22  Jim Meyering  <jim@meyering.net>
60387
60388         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60389
60390         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60391
60392 2006-08-22  Eric Blake  <ebb9@byu.net>
60393
60394         * modules/regexprops-generic: New file.
60395         * MODULES.html.sh (Support for building documentation): List it.
60396
60397 2006-08-22  Eric Blake  <ebb9@byu.net>
60398
60399         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60400         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60401         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60402         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60403
60404 2006-08-22  Bruno Haible  <bruno@clisp.org>
60405
60406         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60407         and lib_LTLIBRARIES like the other lib_* variables.
60408
60409 2006-08-22  Bruno Haible  <bruno@clisp.org>
60410
60411         * build-aux/x-to-1.in: New file, from GNU gettext.
60412
60413 2006-08-22  Bruno Haible  <bruno@clisp.org>
60414
60415         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60416         <utmpx.h> exists.
60417
60418 2006-08-22  Bruno Haible  <bruno@clisp.org>
60419
60420         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60421         <utmpx.h> exists.
60422
60423 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60424
60425         BeOS portability.
60426         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60427         exist.
60428         Problem reported by Bruno Haible.
60429
60430 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         Avoid the need for AC_LIBSOURCES in m4 macros.
60433         * modules/acl (EXTRA_DIST): Add acl.h.
60434         * modules/argmatch (Files): Add m4/argmatch.m4.
60435         (configure.ac): Add gl_ARGMATCH.
60436         (EXTRA_DIST): Renamed from lib_SOURCES, for
60437         consistency with the other modules.  Remove argmatch.c.
60438         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60439         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60440         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60441         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60442         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60443         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60444         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60445         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60446         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60447         * modules/closeout (EXTRA_DIST): Add closeout.h.
60448         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60449         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60450         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60451         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60452         dirname.h; remove basename.c and stripslash.c.
60453         * modules/exclude (EXTRA_DIST): Add exclude.h.
60454         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60455         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60456         * modules/file-type (EXTRA_DIST): Add file-type.h.
60457         * modules/filemode (EXTRA_DIST): Add filemode.h.
60458         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60459         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60460         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60461         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60462         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60463         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60464         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60465         * modules/getdate (EXTRA_DIST): Add getdate.c.
60466         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60467         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60468         * modules/getpass (EXTRA_DIST): Add getpass.h.
60469         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60470         * modules/group-member (EXTRA_DIST): Add group-member.h.
60471         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60472         * modules/hash (EXTRA_DIST): Add hash.h.
60473         * modules/human (EXTRA_DIST): Add human.h.
60474         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60475         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60476         * modules/lchown (EXTRA_DIST): Add lchown.h.
60477         * modules/long-options (EXTRA_DIST): Add long-options.h.
60478         * modules/lstat (EXTRA_DIST): Add lstat.h.
60479         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60480         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60481         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60482         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60483         * modules/memxor (EXTRA_DIST): Add memxor.h.
60484         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60485         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60486         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60487         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60488         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60489         * modules/physmem (EXTRA_DIST): Add physmem.h.
60490         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60491         * modules/posixver (EXTRA_DIST): Add posixver.h.
60492         * modules/quote (EXTRA_DIST): Add quote.h.
60493         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60494         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60495         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60496         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60497         regex_internal.h regexec.c.
60498         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60499         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60500         * modules/same (EXTRA_DIST): Add same.h.
60501         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60502         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60503         * modules/savedir (EXTRA_DIST): Add savedir.h.
60504         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60505         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60506         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60507         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60508         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60509         * modules/strdup (EXTRA_DIST): Add strdup.h.
60510         * modules/strftime (EXTRA_DIST): Add strftime.h.
60511         * modules/strndup (EXTRA_DIST): Add strndup.h.
60512         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60513         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60514         * modules/time_r (EXTRA_DIST): Add time_r.h.
60515         * modules/timespec (EXTRA_DIST): Add timespec.h.
60516         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60517         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60518         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60519         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60520         * modules/userspec (EXTRA_DIST): Add userspec.h.
60521         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60522         * modules/utimens (EXTRA_DIST): Add utimens.h.
60523         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60524         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60525         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60526         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60527         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60528         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60529         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60530         * modules/yesno (EXTRA_DIST): Add yesno.h.
60531
60532 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60533
60534         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60535
60536         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60537         * m4/dev-ino.m4, same-inode.m4: Remove.
60538
60539         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60540         * m4/acl.m4 (AC_FUNC_ACL):
60541         * m4/backupfile.m4 (gl_BACKUPFILE):
60542         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60543         * m4/canon-host.m4 (gl_CANON_HOST):
60544         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60545         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60546         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60547         * m4/cloexec.m4 (gl_CLOEXEC):
60548         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60549         * m4/closeout.m4 (gl_CLOSEOUT):
60550         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60551         * m4/dirname.m4 (gl_DIRNAME):
60552         * m4/exclude.m4 (gl_EXCLUDE):
60553         * m4/exitfail.m4 (gl_EXITFAIL):
60554         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60555         * m4/file-type.m4 (gl_FILE_TYPE):
60556         * m4/filemode.m4 (gl_FILEMODE):
60557         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60558         * m4/fpending.m4 (gl_FUNC_FPENDING):
60559         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60560         * m4/fts.m4 (gl_FUNC_FTS):
60561         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60562         * m4/getdate.m4 (gl_GETDATE):
60563         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60564         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60565         * m4/getpass.m4 (gl_FUNC_GETPASS):
60566         * m4/gettime.m4 (gl_GETTIME):
60567         * m4/getugroups.m4 (gl_GETUGROUPS):
60568         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60569         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60570         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60571         * m4/hash.m4 (gl_HASH):
60572         * m4/idcache.m4 (gl_IDCACHE):
60573         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60574         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60575         * m4/long-options.m4 (gl_LONG_OPTIONS):
60576         * m4/lstat.m4 (gl_FUNC_LSTAT):
60577         * m4/md5.m4 (gl_MD5):
60578         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60579         * m4/memcoll.m4 (gl_MEMCOLL):
60580         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60581         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60582         * m4/memxor.m4 (gl_MEMXOR):
60583         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60584         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60585         * m4/modechange.m4 (gl_MODECHANGE):
60586         * m4/mountlist.m4 (gl_MOUNTLIST):
60587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60588         * m4/openat.m4 (gl_FUNC_OPENAT):
60589         * m4/pathmax.m4 (gl_PATHMAX):
60590         * m4/physmem.m4 (gl_PHYSMEM):
60591         * m4/posixtm.m4 (gl_POSIXTM):
60592         * m4/posixver.m4 (gl_POSIXVER):
60593         * m4/quote.m4 (gl_QUOTE):
60594         * m4/quotearg.m4 (gl_QUOTEARG):
60595         * m4/readtokens.m4 (gl_READTOKENS):
60596         * m4/readutmp.m4 (gl_READUTMP):
60597         * m4/regex.m4 (gl_REGEX):
60598         * m4/safe-read.m4 (gl_SAFE_READ):
60599         * m4/safe-write.m4 (gl_SAFE_WRITE):
60600         * m4/same.m4 (gl_SAME):
60601         * m4/save-cwd.m4 (gl_SAVE_CWD):
60602         * m4/savedir.m4 (gl_SAVEDIR):
60603         * m4/settime.m4 (gl_SETTIME):
60604         * m4/sha1.m4 (gl_SHA1):
60605         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60606         * m4/stat-macros.m4 (gl_STAT_MACROS):
60607         * m4/stat-time.m4 (gl_STAT_TIME):
60608         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60609         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60610         * m4/strdup.m4 (gl_FUNC_STRDUP):
60611         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60612         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60613         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60614         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60615         * m4/time_r.m4 (gl_TIME_R):
60616         * m4/timespec.m4 (gl_TIMESPEC):
60617         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60618         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60619         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60620         * m4/userspec.m4 (gl_USERSPEC):
60621         * m4/utimecmp.m4 (gl_UTIMECMP):
60622         * m4/utimens.m4 (gl_UTIMENS):
60623         * m4/xalloc.m4 (gl_XALLOC):
60624         * m4/xgetcwd.m4 (gl_XGETCWD):
60625         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60626         * m4/xreadlink.m4 (gl_XREADLINK):
60627         * m4/xstrtod.m4 (gl_XSTRTOD):
60628         * m4/yesno.m4 (gl_YESNO):
60629         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60630         to get the necessary .h files and whatnot.
60631
60632 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60633             Bruno Haible  <bruno@clisp.org>
60634
60635         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60636         /bin/sh understanding of '!' conditional negation.
60637
60638 2006-08-21  Jim Meyering  <jim@meyering.net>
60639
60640         * modules/openat (Depends-on): Really alphabetize.
60641
60642         * modules/acl (Depends-on): Add error and quote.
60643
60644         * check-module (find_included_lib_files): Add at-func.c to the
60645         ok-to-include-more-than-once white list.
60646
60647         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60648
60649 2006-08-21  Bruno Haible  <bruno@clisp.org>
60650
60651         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60652         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60653         Reported by Martin Lambers <marlam@marlam.de>.
60654
60655 2006-08-21  Bruno Haible  <bruno@clisp.org>
60656
60657         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60658         specify an installation location, don't emit a noinst_LIBRARIES or
60659         noinst_LTLIBRARIES assignment.
60660
60661 2006-08-21  Bruno Haible  <bruno@clisp.org>
60662
60663         BeOS portability.
60664         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60665         BeOS has mbrtowc() but no <wctype.h>.
60666
60667 2006-08-21  Bruno Haible  <bruno@clisp.org>
60668
60669         BeOS portability.
60670         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60671         exist.
60672
60673 2006-08-21  Bruno Haible  <bruno@clisp.org>
60674
60675         BeOS portability.
60676         * lib/mbchar.h: Include <wctype.h> only if it exists.
60677
60678 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60679
60680         Remove files that are no longer needed by their respective modules.
60681         * m4/obstack.m4: Remove.
60682         * m4/strerror_r.m4: Remove.
60683         * m4/uint32_t.m4: Remove.
60684         * m4/uintptr_t.m4: Remove.
60685         * m4/ullong_max.m4: Remove.
60686         * m4/xstrtoimax.m4: Remove.
60687         * m4/xstrtoumax.m4: Remove.
60688
60689         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60690         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60691         dependencies now capture this.
60692
60693         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60694         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60695         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60696         * m4/human.m4 (gl_HUMAN): Likewise.
60697         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60698         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60699
60700         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60701
60702         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60703         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60704         stdint.
60705         * m4/human.m4 (gl_HUMAN): Likewise.
60706         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60707         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60708         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60709         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60710         * m4/xstrtol (gl_XSTRTOL): Likewise.
60711
60712         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60713         AC_TYPE_LONG_LONG_INT.
60714         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60715         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60716         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60717         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60718
60719         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60720         on stdbool.
60721
60722         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60723         (gl_PREREQ_XSTRTOUL): Remove.
60724
60725         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60726
60727         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60728         mode.
60729
60730 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60731
60732         Add and change modules to make it easier for coreutils to use
60733         gnulib-tool.
60734         * modules/backupfile (Files): Remove m4/d-ino.m4.
60735         (Depends-on): Add d-ino.
60736         * modules/cycle-check (Depends-on): Add stdint.
60737         (lib_SOURCES): Add cycle-check.h.
60738         * modules/d-ino: New module.
60739         * modules/d-type: New module.
60740         * modules/error (Files): Remove m4/strerror_r.m4.
60741         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60742         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60743         m4/inttypes_h.m4, m4/uintmax_t.m4.
60744         (Depends-on): Add stdint.
60745         (lib_SOURCES): Add fsusage.h.
60746         * modules/getcwd (Files): Remove d-ino.m4.
60747         (Depends-on): Add d-ino.
60748         * modules/getndelim2 (Depends-on): Add stdint.
60749         * modules/glob (Files): Remove m4/d-type.m4.
60750         (Depends-on): Add d-type.
60751         * modules/host-os: New module.
60752         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60753         m4/inttypes_h.m4, m4/uintmax_t.m4.
60754         * Depends-on: Add stdint.
60755         (lib_SOURCES): Add human.h.
60756         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60757         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60758         m4/uintmax_t.m4, m4/ulonglong.m4.
60759         (Depends-on): Add stdint.
60760         (EXTRA_DIST): Add inttostr.h.
60761         * modules/lchmod: New module.
60762         * modules/link-follow: New module.
60763         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60764         (Depends-on): Add lchmod.
60765         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60766         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60767         (Depends-on): Add stdint.
60768         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60769         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60770         (Depends-on): Add stdint.
60771         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60772         * modules/perl: New module.
60773         * modules/regex (Depends-on): Add stdint.
60774         * modules/rmdir-errno: New module.
60775         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60776         m4/intmax_t.m4.
60777         (Depends-on): Add stdint.
60778         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60779         m4/uintmax_t.m4.
60780         (Depends-on): Add stdint.
60781         * modules/unlink-busy: New module.
60782         * modules/utimecmp (Depends-on): Add stdint.
60783         * modules/uptime: New module.
60784         * modules/winsz-ioctl: New module.
60785         * modules/winsz-termios: New module.
60786         * modules/xnanosleep (Depends-on): Add nanosleep.
60787         * modules/ullong_max: Remove.
60788         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60789         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60790         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60791         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60792         (Depends-on): Add inttypes.
60793         (lib_SOURCES): Add xstrtol.h.
60794         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60795         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60796         * MODULES.html.sh: Move 'assert' into the assert section.
60797         Move 'dummy' into the linking section.
60798         Remove ullong_max.
60799         Add section for compatibility checks for POSIX:2001 functions,
60800         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60801         winsz-ioctl, and winsz-termios into it.
60802         Add lchmod.
60803         Add top-level Misc section and put host-os, perl, and uptime
60804         into it.
60805
60806 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60807
60808         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60809         now assume the stdint module.  Do not include inttypes.h.
60810         * lib/fsusage.h: Likewise.
60811         * lib/getndelim2.c: Likewise.
60812         * lib/human.h: Likewise.
60813         * lib/inttostr.h: Likewise.
60814         * lib/obstack.c: Likewise.
60815         * lib/regex_internal.h: Likewise.
60816         * lib/tempname.c: Likewise.
60817         * lib/utimecmp.c: Likewise.
60818         * lib/xstrtol.h: Likewise.
60819
60820         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60821
60822         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60823         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60824         * lib/xtime.h: Likewise.
60825
60826 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         * modules/openat (Files): Add lib/fchmodat.c.
60829         Fixes problem reported by Jay Youngman.
60830
60831 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60834         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60835
60836 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60837             Bruno Haible  <bruno@clisp.org>
60838
60839         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60840         and is a script that invokes bison. Tighten the code. Add comments.
60841
60842 2006-08-18  Jim Meyering  <jim@meyering.net>
60843
60844         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60845         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60846         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60847         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60848
60849 2006-08-18  Bruno Haible  <bruno@clisp.org>
60850
60851         * modules/bison-i18n: New file.
60852         * MODULES.html.sh (Internationalization functions): Add it.
60853
60854 2006-08-18  Bruno Haible  <bruno@clisp.org>
60855
60856         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60857         sys/statvfs.h. When getmntinfo was found, check its declaration and
60858         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60859
60860 2006-08-18  Bruno Haible  <bruno@clisp.org>
60861
60862         * m4/bison-i18n.m4: New file, from bison.
60863
60864 2006-08-18  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60867         (ME_DUMMY): Treat "kernfs" as a dummy.
60868         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60869
60870 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         Update from coreutils.
60873
60874         2006-08-15  Jim Meyering  <jim@meyering.net>
60875
60876         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60877
60878         2006-01-17  Jim Meyering  <jim@meyering.net>
60879
60880         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60881
60882         2006-01-11  Jim Meyering  <jim@meyering.net>
60883
60884         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60885         Check for the lchmod function.
60886
60887 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         Update from coreutils.
60890
60891         * lib/__fpending.h: Add copyright notice.
60892         * lib/fprintftime.h: Likewise.
60893         * lib/savedir.c: Use (C) in copyright notice.
60894         * lib/savedir.h: Likewise.
60895
60896         2006-08-15  Jim Meyering  <jim@meyering.net>
60897
60898         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60899         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60900         in support of the EXPECTED_ERRNO macro.
60901         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60902         definitions.  Instead, define the appropriate symbols and include
60903         "at-func.c".
60904         * lib/mkdirat.c (mkdirat): Likewise.
60905         * lib/fchmodat.c (fchmodat): Likewise.
60906         (ENOSYS): Remove definition.
60907         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60908         it.  Don't include "unistd--.h" -- it wasn't ever used.
60909
60910         2006-01-17  Jim Meyering  <jim@meyering.net>
60911
60912         Rewrite fts.c not to change the current working directory,
60913         by using openat, fstatat, fdopendir, etc..
60914
60915         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60916         (HAVE_OPENAT_SUPPORT): Define.
60917         [_LIBC] (fchdir): Don't undef or define; no longer used.
60918         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60919         Now, this `function' always succeeds, and consumes its file descriptor
60920         parameter -- so callers must not close such FDs.  Update callers.
60921         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60922         (diropen): Add parameter, SP.  Adjust all callers.
60923         Implement using diropen_fd, rather than open.
60924         (fts_open): Initialize new member, fts_cwd_fd.
60925         Remove fts_rft-setting code.
60926         (fts_close): Close fts_cwd_fd, if necessary.
60927         (__opendir2): Define in terms of opendir or opendirat,
60928         depending on whether the FST_NOCHDIR flag is set.
60929         (fts_build): Since fts_safe_changedir consumes its FD, and since
60930         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60931         and close the dup'd file descriptor upon failure.
60932         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60933         (fts_safe_changedir): Tweak semantics to reflect that this function
60934         now calls cwd_advance_fd and hence consumes its FD argument.
60935         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60936         [struct FTS] (fts_rft): Remove now-unused member.
60937         [struct FTS] (fts_cycle.state): Improve comment.
60938
60939         * lib/openat.c (openat_needs_fchdir): New function.
60940         * lib/openat.h (openat_needs_fchdir): Declare it.
60941
60942 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60945         Problem and fix reported by Pádraig Brady in
60946         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60947
60948 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60951
60952 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60953
60954         * lib/memcoll.c (memcoll): Optimize for the common case where the
60955         arguments are bytewise equal.
60956
60957 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         * doc/regexprops-generic.texi: Add a copyright notice.
60960
60961 2006-08-15  Bruno Haible  <bruno@clisp.org>
60962
60963         * modules/tmpdir (License): Change to LGPL.
60964
60965 2006-08-15  Bruno Haible  <bruno@clisp.org>
60966
60967         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60968         module.
60969
60970 2006-08-14  Simon Josefsson  <jas@extundo.com>
60971
60972         * config/srclist.txt: Add gnupload.
60973
60974 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         Change copyright notice from LGPL 2 to GPL 2, since that's the
60977         standard form used in the gnulib repository.
60978         * tests/test-lock.c: Likewise.
60979         * tests/test-stdint.c: Likewise.
60980         * tests/test-tls.c: Likewise.
60981
60982         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60983         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60984         Add copyright notice.
60985
60986         * check-module: Add copyright notice.  Output a copyright
60987         notice if "--version" is specified.
60988         * modules/COPYING: New file.
60989         * tests/test-getaddrinfo.c: Add copyright notice.
60990         * tests/test-verify.c: Likewise.
60991
60992 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         Change copyright notice from LGPL 2 to GPL 2, since that's the
60995         standard form used in the gnulib repository.
60996         * lib/lock.c: LGPL -> GPL.
60997         * lib/lock.h: Likewise.
60998         * lib/strnlen1.c: Likewise.
60999         * lib/strnlen1.h: Likewise.
61000         * lib/tls.c: Likewise.
61001         * lib/tls.h: Likewise.
61002         * lib/tmpdir.c: Likewise.
61003
61004         * lib/TODO: Remove; this belongs only in coreutils.
61005
61006 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         Add copyright notices to long-enough files that lack them, since
61009         otherwise the files aren't clearly free.  Use the same notice that
61010         getdate.texi already uses.
61011         * doc/alloca-opt.texi: Add copyright notice.
61012         * doc/alloca.texi: Likewise.
61013         * doc/ctime.texi: Likewise.
61014         * doc/functions.texi: Likewise.
61015         * doc/gcd.texi: Likewise.
61016         * doc/gnulib-tool.texi: Likewise.
61017         * doc/inet_ntoa.texi: Likewise.
61018         * doc/visibility.texi: Likewise.
61019
61020         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61021         * doc/quote.texi: Add copyright notice.
61022
61023         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61024         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61025         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61026         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61027         is now obsolete, and give a pointer to the Sun list.
61028         Add copyright notice.
61029
61030 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         * config/srclistvars.sh: Add copyright notice.
61033
61034 2006-08-14  Eric Blake  <ebb9@byu.net>
61035
61036         Import the following change from libc:
61037
61038         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61039
61040         Upstream bug 2997.
61041         * lib/misc/error.c: Add space between program name and message if file
61042         name is missing.
61043
61044 2006-08-12  Karl Berry  <karl@gnu.org>
61045
61046         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61047         remove, these originate in gnulib now.
61048
61049 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61050
61051         * doc/Makefile (standards.info standards.html standards.dvi):
61052         Also depend on make-stds.texi.
61053
61054 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61055
61056         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61057         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61058
61059         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61060         in wchar_t.  Problem reported by Eric Blake.
61061
61062         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61063         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61064         Also, help the compiler to keep LEN in a register.
61065
61066 2006-08-11  Eric Blake  <ebb9@byu.net>
61067
61068         * users.txt: Sort.  Add tar.
61069
61070 2006-08-11  Bruno Haible  <bruno@clisp.org>
61071
61072         * users.txt: New file.
61073
61074 2006-08-11  Bruno Haible  <bruno@clisp.org>
61075
61076         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61077         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61078
61079 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * modules/snprintf (Depends-on): Remove minmax.
61082         (Maintainer): Add self and Bruno.
61083
61084 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61085
61086         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61087         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61088         (EOVERFLOW): Define if the system does not.
61089         Do not include "minmax.h"; it wasn't used.
61090         (snprintf): Don't assume size_t promotes to an unsigned type.
61091         Fix bug when generated string was too long for the buffer: the
61092         buffer's contents are supposed to be the initial prefix of the
61093         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61094         exceeds INT_MAX; do the check ourselves.
61095
61096         Import the following changes from libc:
61097
61098         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61099
61100         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61101         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61102         set wc to the byte which couldn't be converted.
61103         (re_string_reconstruct): Don't clear valid_raw_len before calling
61104         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61105         tip_context using re_string_context_at.
61106
61107         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61108
61109         * lib/posix/regex.h: g++ still cannot handled [restrict].
61110
61111         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61112
61113         * lib/posix/regex.h: Remove special handling for VMS.
61114
61115 2006-08-10  Jim Meyering  <jim@meyering.net>
61116
61117         * modules/same-inode: New module.
61118         * modules/dev-ino: New module.
61119         * modules/cycle-check: Depend on these modules, rather than simply
61120         including their .h files.
61121         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61122         required via m4/cycle-check.m4.
61123         * modules/same: Depend on new same-inode module, rather than
61124         including same-inode.h.
61125         * modules/chdir-safer: New file.
61126
61127         * modules/chown (Depends-on): Add stat-macros.
61128
61129 2006-08-10  Jim Meyering  <jim@meyering.net>
61130
61131         * m4/cycle-check.m4: New file.
61132         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61133         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61134
61135 2006-08-10  Eric Blake  <ebb9@byu.net>
61136
61137         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61138         in from original proposal.
61139
61140 2006-08-10  Eric Blake  <ebb9@byu.net>
61141         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61142
61143         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61144         namespace.
61145
61146 2006-08-10  Bruno Haible  <bruno@clisp.org>
61147
61148         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61149         as well.
61150
61151 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61152
61153         Sync from coreutils.
61154
61155         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61156
61157         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61158         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61159
61160 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * modules/restrict: Remove; no longer needed now that we assume
61163         Autoconf 2.59 or later.
61164         * MODULES.html.sh: Remove 'restrict'.
61165         * modules/argp (Depends-on): Remove 'restrict'.
61166         * modules/base64 (Depends-on): Likewise.
61167         * modules/gc (Depends-on): Likewise.
61168         * modules/getaddrinfo (Depends-on): Likewise.
61169         * modules/glob (Depends-on): Likewise.
61170         * modules/inet_ntop (Depends-on): Likewise.
61171         * modules/inet_pton (Depends-on): Likewise.
61172         * modules/memxor (Depends-on): Likewise.
61173         * modules/regex (Depends-on): Likewise.
61174         * modules/strtok_r (Depends-on): Likewise.
61175         * modules/time_r (Depends-on): Likewise.
61176
61177 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61180         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61181         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61182         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61183         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61184         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61185         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61186         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61187
61188         Merge from coreutils.
61189         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61190         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61191         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61192         * m4/time_r.m4 (gl_TIME_R): Likewise.
61193
61194 2006-08-09  Karl Berry  <karl@gnu.org>
61195
61196         * config/srclist.txt: no more gettext-tools, per Bruno.
61197
61198 2006-08-08  Eric Blake  <ebb9@byu.net>
61199
61200         * modules/verror: New module.
61201         * MODULES.html.sh: Document it.
61202
61203 2006-08-08  Eric Blake  <ebb9@byu.net>
61204
61205         * lib/verror.h, lib/verror.c: New files.
61206
61207 2006-08-08  Eric Blake  <ebb9@byu.net>
61208
61209         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61210         verror_at_line output complies with GNU Coding Standards even when
61211         file is NULL.
61212
61213 2006-08-07  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61216         versions of AIX.
61217         Reported by Ralf Wildenhues.
61218
61219 2006-08-07  Bruno Haible  <bruno@clisp.org>
61220
61221         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61222         in an AC_DEFUN. Needed so that the autoconf snippets can use
61223         AC_REQUIRE.
61224
61225 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61226
61227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61228         Initialize pkgdata_DATA.
61229         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61230         overriding it.
61231
61232 2006-08-06  Eric Blake  <ebb9@byu.net>
61233
61234         * lib/error.h: Fold in some upstream changes from glibc.
61235         * lib/error.c: Likewise.
61236
61237 2006-08-04  Bruno Haible  <bruno@clisp.org>
61238
61239         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61240         Make the mostlyclean-local rule depend on mostlyclean-generic.
61241         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61242
61243 2006-07-31  Bruno Haible  <bruno@clisp.org>
61244
61245         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61246         <stdlib.h>, <string.h>.
61247
61248 2006-07-30  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/readlink (License): Change to LGPL.
61251
61252 2006-07-30  Bruno Haible  <bruno@clisp.org>
61253
61254         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61255         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61256         set PKGDATADIR to point to it.
61257
61258 2006-07-30  Bruno Haible  <bruno@clisp.org>
61259
61260         * modules/csharpexec (configure.ac): Comment out macro invocation.
61261         * modules/javaexec (configure.ac): Likewise.
61262         * modules/javacomp-script (configure.ac): Likewise.
61263
61264         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61265
61266 2006-07-30  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61269         linked-list.
61270
61271 2006-07-30  Bruno Haible  <bruno@clisp.org>
61272
61273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61274
61275 2006-07-30  Bruno Haible  <bruno@clisp.org>
61276
61277         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61278         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61279         get removed.
61280
61281 2006-07-29  Bruno Haible  <bruno@clisp.org>
61282
61283         Make it possible for gnulib-tool to work with locally modified or
61284         augmented gnulib repositories.
61285         * gnulib-tool (func_usage): Document --local-dir option.
61286         (local_gnulib_dir): New variable.
61287         Handle --local-dir option.
61288         (func_lookup_file): New function.
61289         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61290         (func_get_description, func_get_filelist, func_get_description,
61291         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61292         func_get_automake_snippet, func_get_include_directive,
61293         func_get_license, func_get_maintainer): Use func_lookup_file.
61294         (func_import, func_create_testdir): Use func_lookup_file.
61295
61296 2006-07-29  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/setenv (Depends-on): Add unistd.
61299
61300 2006-07-29  Bruno Haible  <bruno@clisp.org>
61301
61302         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61303
61304 2006-07-29  Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61307
61308 2006-07-29  Bruno Haible  <bruno@clisp.org>
61309
61310         * gnulib-tool (import, update): If there is no Makefile.am, look at
61311         aclocal.m4, instead of bailing out.
61312
61313 2006-07-29  Bruno Haible  <bruno@clisp.org>
61314
61315         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61316         Categorize the options by when they are useful.
61317
61318 2006-07-29  Bruno Haible  <bruno@clisp.org>
61319
61320         * gnulib-tool (func_usage): Document option --no-libtool.
61321         Handle option --no-libtool.
61322         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61323         for changed semantics of $libtool variable.
61324         (func_import): Likewise. If libtool is not used, show this through
61325         an option --no-libtool.
61326         (func_create_testdir): Update.
61327
61328 2006-07-29  Bruno Haible  <bruno@clisp.org>
61329
61330         * gnulib-tool (func_import): Extend error message about missing
61331         --doc-base.
61332
61333 2006-07-29  Bruno Haible  <bruno@clisp.org>
61334
61335         * gnulib-tool (func_import): Don't create the $docbase directory if
61336         there is no file to store there.
61337
61338 2006-07-29  Bruno Haible  <bruno@clisp.org>
61339
61340         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61341         relevant, look for configure.ac there, not in the current directory.
61342         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61343
61344 2006-07-29  Bruno Haible  <bruno@clisp.org>
61345
61346         * gnulib-tool (SORT): New variable.
61347         (func_usage): Undocument --assume-autoconf option.
61348         Remove --assume-autoconf option handling.
61349         (autoconf_minversion): Determine from the contents of configure.ac.
61350         (func_import): Remove autoconf_minversion handling.
61351         Suggested by Eric Blake.
61352
61353 2006-07-29  Bruno Haible  <bruno@clisp.org>
61354
61355         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61356
61357 2006-07-29  Bruno Haible  <bruno@clisp.org>
61358
61359         * config/srclist.txt (*setenv.[ch]): Remove rules.
61360
61361 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61362
61363         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61364
61365 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61366
61367         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61368         arpa/inet.h.
61369
61370 2006-07-28  Simon Josefsson  <jas@extundo.com>
61371
61372         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61373         * modules/inet_pton (Depends-on): Likewise.
61374
61375 2006-07-28  Simon Josefsson  <jas@extundo.com>
61376
61377         * m4/netinet_in_h.m4: New file.
61378
61379 2006-07-28  Simon Josefsson  <jas@extundo.com>
61380
61381         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61382         #include's.
61383
61384 2006-07-28  Simon Josefsson  <jas@extundo.com>
61385
61386         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61387         #include's.
61388
61389 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61390
61391         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61392         setgid on directories only if they set these bits.
61393         * lib/modechange.h: Remove obsolete comment about masks.
61394
61395 2006-07-28  Eric Blake  <ebb9@byu.net>
61396
61397         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61398         macro expansion.
61399
61400 2006-07-28  Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61403
61404 2006-07-28  Bruno Haible  <bruno@clisp.org>
61405
61406         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61407
61408 2006-07-28  Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61411         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61412         Define fallbacks.
61413         Avoids link error on FreeBSD 4.x.
61414         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61415
61416         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61417         encoding.
61418         * lib/mbswidth.c (iswcntrl): Likewise.
61419
61420 2006-07-27  Bruno Haible  <bruno@clisp.org>
61421
61422         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61423         test.
61424
61425 2006-07-27  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61428         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61429         defined.
61430
61431 2006-07-26  Eric Blake  <ebb9@byu.net>
61432
61433         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61434
61435 2006-07-26  Eric Blake  <ebb9@byu.net>
61436
61437         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61438         like mingw that lack mkstemp.
61439         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61440         avoid compilation warning on mingw.
61441
61442 2006-07-26  Bruno Haible  <bruno@clisp.org>
61443
61444         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61445         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61446         INT_FAST*_MIN, INTPTR_MIN.
61447
61448 2006-07-25  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/version-etc (Depends-on): Add stdarg.
61451
61452 2006-07-25  Bruno Haible  <bruno@clisp.org>
61453
61454         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61455         complex commands.
61456
61457 2006-07-25  Bruno Haible  <bruno@clisp.org>
61458
61459         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61460         defined in <stdarg.h> or config.h.
61461
61462 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61465         (gl_STDIO_SAFER): Remove.
61466
61467 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * MODULES.html.sh (File stream based Input/Output):
61470         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61471         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61472         * modules/fopen-safer, modules/tmpfile-safer: New files.
61473         * modules/stdio-safer: Remove.
61474
61475 2006-07-24  Bruno Haible  <bruno@clisp.org>
61476
61477         * modules/tmpdir: New file.
61478         * MODULES.html.sh (File system functions): Add it.
61479
61480 2006-07-24  Bruno Haible  <bruno@clisp.org>
61481
61482         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61483         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61484
61485 2006-07-24  Bruno Haible  <bruno@clisp.org>
61486
61487         * modules/clean-temp: New file.
61488
61489 2006-07-24  Bruno Haible  <bruno@clisp.org>
61490
61491         * m4/tmpdir.m4: New file, from GNU gettext.
61492
61493 2006-07-24  Bruno Haible  <bruno@clisp.org>
61494
61495         * lib/tmpdir.h: New file, from GNU gettext.
61496         * lib/tmpdir.c: New file, from GNU gettext.
61497
61498 2006-07-24  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/clean-temp.h: New file, from GNU gettext.
61501         * lib/clean-temp.c: New file, from GNU gettext.
61502
61503 2006-07-23  Eric Blake  <ebb9@byu.net>
61504
61505         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61506         (Depends-on): Add binary-io.
61507
61508 2006-07-23  Eric Blake  <ebb9@byu.net>
61509
61510         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61511
61512 2006-07-23  Eric Blake  <ebb9@byu.net>
61513
61514         * lib/tmpfile-safer.c: New file.
61515         * lib/stdio-safer.h (fopen_safer): Add prototype.
61516         * lib/stdio--.h (tmpfile): Make safer.
61517
61518 2006-07-23  Bruno Haible  <bruno@clisp.org>
61519
61520         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61521         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61522         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61523         gl_linked_remove_at): Use it.
61524
61525 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61526         and Simon Josefsson <jas@extundo.com>
61527
61528         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61529
61530         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61531
61532 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61533
61534         * modules/close-stream: New file.
61535         * modules/closeout (Description): Make it clear that it exits
61536         with a diagnostic on error.
61537         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61538         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61539
61540 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61541
61542         * m4/close-stream.m4: New file.
61543
61544 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61545
61546         * lib/close-stream.c, lib/close-stream.h: New files.
61547
61548 2006-07-22  Bruno Haible  <bruno@clisp.org>
61549
61550         Merge from GNU gettext 0.15.
61551
61552         2006-05-01  Bruno Haible  <bruno@clisp.org>
61553
61554                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61555
61556         2006-07-22  Bruno Haible  <bruno@clisp.org>
61557
61558                 * modules/javaversion: New file.
61559                 * MODULES.html.sh (Java): Add javaversion.
61560
61561         2006-03-12  Bruno Haible  <bruno@clisp.org>
61562
61563                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61564
61565         2005-12-04  Bruno Haible  <bruno@clisp.org>
61566
61567                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61568                 (untested).
61569
61570         2006-06-21  Bruno Haible  <bruno@clisp.org>
61571
61572                 Avoid warnings from recent versions of mcs.
61573                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61574                 -o, -L, -r any more. Use options documented since mcs-1.0
61575                 instead. Similarly for -g.
61576
61577         2005-12-04  Bruno Haible  <bruno@clisp.org>
61578
61579                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61580                 .resources, not .resource.
61581
61582         2005-07-09  Bruno Haible  <bruno@clisp.org>
61583
61584                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61585                 add a .dll suffix.
61586                 Reported by Mark Junker <mjscod@gmx.de>.
61587
61588         2006-07-22  Bruno Haible  <bruno@clisp.org>
61589
61590                 * modules/gettext: Upgrade to gettext-0.15.
61591                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61592                 m4/visibility.m4.
61593                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61594
61595 2006-07-22  Bruno Haible  <bruno@clisp.org>
61596
61597         Merge from GNU gettext 0.15.
61598
61599         2006-03-25  Bruno Haible  <bruno@clisp.org>
61600
61601                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61602
61603         2006-07-21  Bruno Haible  <bruno@clisp.org>
61604
61605                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61606                 "1.1".
61607
61608         2006-05-09  Bruno Haible  <bruno@clisp.org>
61609
61610                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61611                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61612                 for the conftestver execution.
61613
61614         2006-05-01  Bruno Haible  <bruno@clisp.org>
61615
61616                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61617                 optional target-version argument. Verify that the compiler
61618                 groks source of the specified source-version, or add -source
61619                 option as necessary. Verify that the compiler produces
61620                 bytecode in the specified target-version, or add -target and
61621                 -source options as necessary. Make the result of the test
61622                 available as variable CONF_JAVAC. Also log error output in
61623                 config.log.
61624
61625         2006-03-11  Bruno Haible  <bruno@clisp.org>
61626
61627                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61628
61629         2006-05-09  Bruno Haible  <bruno@clisp.org>
61630
61631                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61632                 CLASSPATH_SEPARATOR to a semicolon.
61633
61634         2006-03-12  Bruno Haible  <bruno@clisp.org>
61635
61636                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61637                 available as variable CONF_JAVA, for subsequent autoconf
61638                 tests. Also log error output in config.log.
61639
61640         2006-07-19  Bruno Haible  <bruno@clisp.org>
61641
61642                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61643                 that getline works on glibc2 systems. Needed to avoid trouble
61644                 in relocatable.c.
61645                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61646
61647         2005-12-04  Bruno Haible  <bruno@clisp.org>
61648
61649                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61650                 launcher (untested).
61651
61652         2005-12-04  Bruno Haible  <bruno@clisp.org>
61653
61654                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61655
61656         2006-07-22  Bruno Haible  <bruno@clisp.org>
61657
61658                 * gettext.m4: Update from GNU gettext-0.15.
61659                 * nls.m4: Likewise.
61660                 * po.m4: Likewise.
61661                 * inttypes-pri.m4: Likewise.
61662                 * inttypes-h.m4: Renamed from inttypes.m4.
61663                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61664
61665 2006-07-22  Bruno Haible  <bruno@clisp.org>
61666
61667         Merge from GNU gettext 0.15.
61668
61669         2005-07-05  Bruno Haible  <bruno@clisp.org>
61670
61671                 * printf-args.c (printf_fetchargs): Work around broken
61672                 definition of wint_t on mingw.
61673
61674         2005-02-12  Bruno Haible  <bruno@clisp.org>
61675
61676                 * xallocsa.h: Add extern "C" for C++.
61677
61678         2006-05-17  Bruno Haible  <bruno@clisp.org>
61679
61680                 Cygwin portability.
61681                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61682
61683         2006-04-30  Bruno Haible  <bruno@clisp.org>
61684
61685                 * progreloc.c: Include <mach-o/dyld.h> if available.
61686                 (find_executable): Use _NSGetExecutablePath when possible.
61687
61688         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61689
61690                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61691                 function.
61692
61693         2005-12-29  Bruno Haible  <bruno@clisp.org>
61694
61695                 * progreloc.c (set_program_name_and_installdir): Fix
61696                 compilation error.
61697
61698         2005-12-04  Bruno Haible  <bruno@clisp.org>
61699
61700                 Cygwin portability.
61701                 * progreloc.c: Include <windows.h> also on Cygwin.
61702                 (find_executable): Add support for Cygwin.
61703                 (set_program_name_and_installdir): Handle also platforms with
61704                 nonempty EXEEXT.
61705
61706         2006-07-11  Bruno Haible  <bruno@clisp.org>
61707
61708                 * javacomp.c: Fix a comment.
61709                 Reported by Jim Meyering.
61710
61711         2006-04-30  Bruno Haible  <bruno@clisp.org>
61712
61713                 * javacomp.h (compile_java_class): Add source_version,
61714                 target_version arguments.
61715                 * javacomp.c: Rewritten to choose only a compiler that
61716                 respects the specified source_version and target_version.
61717
61718         2006-06-27  Bruno Haible  <bruno@clisp.org>
61719
61720                 Assume correct S_ISDIR macro.
61721                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61722
61723         2006-07-22  Bruno Haible  <bruno@clisp.org>
61724
61725                 * javaversion.h: New file, from GNU gettext.
61726                 * javaversion.c: New file, from GNU gettext.
61727                 * javaversion.java: New file, from GNU gettext.
61728                 * javaversion.class: New file, from GNU gettext.
61729
61730         2006-05-17  Bruno Haible  <bruno@clisp.org>
61731
61732                 Cygwin portability.
61733                 * javaexec.c (execute_java_class): Test for jview program
61734                 also on Cygwin.
61735
61736         2006-04-09  Bruno Haible  <bruno@clisp.org>
61737
61738                 * fatal-signal.c: Don't include string.h.
61739                 (at_fatal_signal): Use a copying loop instead of memcpy.
61740
61741         2005-12-04  Bruno Haible  <bruno@clisp.org>
61742
61743                 * csharpexec.c: Add support for 'clix' launcher (untested).
61744                 (execute_csharp_using_sscli): New function.
61745                 (execute_csharp_program): Call it.
61746
61747         2006-06-21  Bruno Haible  <bruno@clisp.org>
61748
61749                 Avoid warnings from recent versions of mcs.
61750                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61751                 -o, -L, -r any more. Use options documented since mcs-1.0
61752                 instead. Similarly for -g.
61753
61754         2005-07-09  Bruno Haible  <bruno@clisp.org>
61755
61756                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61757                 add a .dll suffix.
61758                 Reported by Mark Junker <mjscod@gmx.de>.
61759
61760         2006-06-17  Bruno Haible  <bruno@clisp.org>
61761
61762                 * config.charset: Update for NetBSD 3.0.
61763
61764         2006-05-17  Bruno Haible  <bruno@clisp.org>
61765
61766                 Cygwin portability.
61767                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61768
61769         2006-05-16  Bruno Haible  <bruno@clisp.org>
61770
61771                 * localcharset.c [CYGWIN]: Include <windows.h>.
61772                 (get_charset_aliases): For Cygwin, return the same CPxxx
61773                 aliases list as under WIN32.
61774                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61775                 the environment variables. Fall back to GetACP().
61776
61777         2006-04-05  Bruno Haible  <bruno@clisp.org>
61778
61779                 * config.charset: Update Juan Manuel Guerrero's address.
61780
61781         2005-02-12  Bruno Haible  <bruno@clisp.org>
61782
61783                 * allocsa.h: Add extern "C" for C++.
61784
61785         2005-02-10  Bruno Haible  <bruno@clisp.org>
61786
61787                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61788                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61789
61790         2006-07-22  Bruno Haible  <bruno@clisp.org>
61791
61792                 * gettext.h: Update to GNU gettext-0.15.
61793
61794 2006-07-22  Bruno Haible  <bruno@clisp.org>
61795
61796         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61797         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61798         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61799
61800 2006-07-21  Eric Blake  <ebb9@byu.net>
61801
61802         * modules/stdlib-safer: New file.
61803         * MODULES.html.sh (File stream based Input/Output): Add
61804         stdlib-safer.
61805
61806 2006-07-21  Eric Blake  <ebb9@byu.net>
61807
61808         * lib/stdlib-safer.h: New file from coreutils, required by
61809         stdlib--.h.
61810
61811 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61812
61813         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61814
61815 2006-07-20  Bruno Haible  <bruno@clisp.org>
61816
61817         * gnulib-tool: Recognize new option --assume-autoconf.
61818         (autoconf_minversion): New variable.
61819         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61820
61821 2006-07-20  Bruno Haible  <bruno@clisp.org>
61822
61823         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61824
61825 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61826
61827         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61828         Reindent and repaginate.
61829
61830 2006-07-19  Derek Price  <derek@ximbiot.com>
61831
61832         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61833         Correct grammar.
61834
61835 2006-07-17  Bruno Haible  <bruno@clisp.org>
61836
61837         * modules/list: New file.
61838         * modules/array-list: New file.
61839         * modules/carray-list, modules/carray-list-tests: New files.
61840         * modules/linked-list, modules/linked-list-tests: New files.
61841         * modules/avltree-list, modules/avltree-list-tests: New files.
61842         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61843         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61844         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61845         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61846         * modules/oset: New file.
61847         * modules/array-oset: New file.
61848         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61849         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61850         * tests/test-carray_list.c: New file.
61851         * tests/test-linked_list.c: New file.
61852         * tests/test-avltree_list.c: New file.
61853         * tests/test-rbtree_list.c: New file.
61854         * tests/test-linkedhash_list.c: New file.
61855         * tests/test-avltreehash_list.c: New file.
61856         * tests/test-rbtreehash_list.c: New file.
61857         * tests/test-avltree_oset.c: New file.
61858         * tests/test-rbtree_oset.c: New file.
61859         * MODULES.html.sh (Container data structures): New section.
61860
61861 2006-07-17  Bruno Haible  <bruno@clisp.org>
61862
61863         * m4/gl_list.m4: New file.
61864
61865 2006-07-17  Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/gl_list.h: New file.
61868         * lib/gl_list.c: New file.
61869         * lib/gl_array_list.h: New file.
61870         * lib/gl_array_list.c: New file.
61871         * lib/gl_carray_list.h: New file.
61872         * lib/gl_carray_list.c: New file.
61873         * lib/gl_linked_list.h: New file.
61874         * lib/gl_linked_list.c: New file.
61875         * lib/gl_anylinked_list1.h: New file.
61876         * lib/gl_anylinked_list2.h: New file.
61877         * lib/gl_avltree_list.h: New file.
61878         * lib/gl_avltree_list.c: New file.
61879         * lib/gl_anyavltree_list1.h: New file.
61880         * lib/gl_anyavltree_list2.h: New file.
61881         * lib/gl_rbtree_list.h: New file.
61882         * lib/gl_rbtree_list.c: New file.
61883         * lib/gl_anyrbtree_list1.h: New file.
61884         * lib/gl_anyrbtree_list2.h: New file.
61885         * lib/gl_anytree_list1.h: New file.
61886         * lib/gl_anytree_list2.h: New file.
61887         * lib/gl_linkedhash_list.h: New file.
61888         * lib/gl_linkedhash_list.c: New file.
61889         * lib/gl_anyhash_list1.h: New file.
61890         * lib/gl_anyhash_list2.h: New file.
61891         * lib/gl_avltreehash_list.h: New file.
61892         * lib/gl_avltreehash_list.c: New file.
61893         * lib/gl_rbtreehash_list.h: New file.
61894         * lib/gl_rbtreehash_list.c: New file.
61895         * lib/gl_anytreehash_list1.h: New file.
61896         * lib/gl_anytreehash_list2.h: New file.
61897
61898         * lib/gl_oset.h: New file.
61899         * lib/gl_oset.c: New file.
61900         * lib/gl_array_oset.h: New file.
61901         * lib/gl_array_oset.c: New file.
61902         * lib/gl_avltree_oset.h: New file.
61903         * lib/gl_avltree_oset.c: New file.
61904         * lib/gl_rbtree_oset.h: New file.
61905         * lib/gl_rbtree_oset.c: New file.
61906         * lib/gl_anytree_oset.h: New file.
61907
61908 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61909
61910         * m4/mkancesdirs.m4: New file.
61911         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61912         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61913         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61914         it.
61915
61916 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61919         * lib/mkancesdirs.h: New files.
61920         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61921         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61922         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61923         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61924         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61925         callers changed.  Revamp internals significantly, by not
61926         attempting to create directories that are temporarily more
61927         permissive than the final results.  Do not attempt to use
61928         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61929         This removes some race conditions, fixes some bugs, and simplifies
61930         things.  Use new dirchownmod function to do owner and mode changes.
61931         * lib/mkdir-p.h: Likewise.
61932         * lib/modechange.c (octal_to_mode): New function.
61933         (struct mode_change): New member mentioned.
61934         (make_node_op_equals): New arg mentioned.  All callers changed.
61935         (mode_compile): Keep track of which mode bits the user has explicitly
61936         mentioned.
61937         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61938         New arg PMODE_BITS, to keep track of which mode bits the user
61939         mentioned; it treats S_ISUID and S_ISGID speciall.
61940         All callers changed.
61941         * lib/modechange.h: Likewise.
61942
61943 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61944
61945         * MODULES.html.sh: Add mkancestors.
61946         * modules/mkancesdirs: New module.
61947         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61948         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61949         The chdir-safer and afs files are now orphans; I'll remove them
61950         unless someone speaks up.
61951         Add lib/dirchownmod.c, lib/dirchownmod.h.
61952         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61953         Add lchown, mkancesdirs.
61954         (Maintainer): Add self.
61955
61956 2006-07-15  Karl Berry  <karl@gnu.org>
61957
61958         * gnulib-tool: help message wording/arrangement.
61959
61960 2006-07-14  Simon Josefsson  <jas@extundo.com>
61961
61962         * doc/gnulib.texi (Libtool and Windows): New section.
61963
61964 2006-07-12  Simon Josefsson  <jas@extundo.com>
61965
61966         * modules/gendocs (License): Fix license, approved by Karl.
61967
61968 2006-07-12  Eric Blake  <ebb9@byu.net>
61969
61970         * MODULES.html.sh: Add gendocs.
61971
61972 2006-07-11  Eric Blake  <ebb9@byu.net>
61973
61974         * modules/fdl: New module, to install doc/fdl.texi.
61975         * MODULES.html.sh: Add new section for documentation modules.
61976         * gnulib-tool: Avoid space-tab.
61977         (--doc-base): New option, to manage files from doc.
61978
61979 2006-07-11  Eric Blake  <ebb9@byu.net>
61980
61981         * m4/absolute-header.m4: Fix comments to match recent change.
61982
61983 2006-07-11  Eric Blake  <ebb9@byu.net>
61984
61985         * gnulib-tool: List --doc-base before --tests-base.
61986
61987 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61988
61989         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61990
61991 2006-07-11  Bruno Haible  <bruno@clisp.org>
61992
61993         * README: Mention where to put documentation.
61994
61995 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61996
61997         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61998
61999 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62002         to stdint.m4.
62003
62004 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62007         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62008         "no/such/file/stdint.h" when there is no such file, so that
62009         the resulting C code can be parsed by dodgy compilers.
62010         Problems reported by Bob Proulx.
62011
62012 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62013
62014         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62015         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62016         macros into the GNU _D_EXACT_NAMLEN.
62017         * lib/savedir.c:  Likewise.
62018         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62019
62020 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62021         and Paul Eggert  <eggert@cs.ucla.edu>
62022
62023         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62024         * m4/savedir.m4:
62025         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62026         macros into the GNU _D_EXACT_NAMLEN.
62027
62028 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62029
62030         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62031         around the absolute name, to work around a problem with the HP-UX
62032         11.23 native C compiler, reported by Bob Proulx.
62033
62034 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62035
62036         * doc/maintain.texi, make-stds.texi: Sync from
62037         <http://savannah.gnu.org/projects/gnustandards>.
62038
62039 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62042
62043 2006-07-09  Jim Meyering  <jim@meyering.net>
62044
62045         * m4/glob.m4: Remove a doubled word in a comment.
62046
62047 2006-07-09  Jim Meyering  <jim@meyering.net>
62048
62049         * lib/argp-pv.c: Remove a doubled word in a comment.
62050         * lib/check-version.c (check_version): Likewise.
62051         * lib/javacomp.c (compile_java_class): Likewise.
62052
62053 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62056         for the benefit of people using Autoconf 2.60.  If you want to
62057         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62058         (or m4/onceonly.m4, if pre-2.57) manually.
62059
62060 2006-07-08  Jim Meyering  <jim@meyering.net>
62061
62062         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62063         comment.
62064         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62065         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62066         comment.
62067
62068 2006-07-08  Jim Meyering  <jim@meyering.net>
62069
62070         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62071
62072 2006-07-07  Simon Josefsson  <jas@extundo.com>
62073
62074         * tests/test-crc.c: Change expected crc value, the test vector
62075         were probably computed using the old broken crc.c?
62076
62077 2006-07-06  Simon Josefsson  <jas@extundo.com>
62078
62079         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62080         now the canonical place for the M4 file).
62081
62082         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62083         from the sys_socket dependency now.
62084
62085         * modules/inet_pton (Files): Ditto.
62086
62087         * modules/inet_ntop (Files): Ditto.
62088
62089 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62090
62091         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62092         not gl_PREREQ_GETUSERSHELL.
62093
62094 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62095
62096         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62097         with only one argument, for Autoconf 2.60.
62098         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62099         expand to nothing, so add a shell command to avoid syntax error.
62100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62101
62102 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62103
62104         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62105
62106 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62107
62108         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62109         no longer needed.  Check for isblank decl.
62110         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62111         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62112         of existence.
62113
62114 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62115
62116         * lib/getloadavg.c: Use __VMS, not VMS.
62117         * lib/getopt.c: Likewise.
62118         * lib/getpagesize.h: Likewise.
62119         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62120         and probably does not work.
62121
62122 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62123
62124         * lib/.cppi-disable: Add wcwidth.
62125         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62126         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62127         (ISGRAPH): Remove.  All uses changed to isgraph.
62128         (FOLD) [!defined _LIBC]: Remove special case.
62129         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62130         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62131         HAVE_ISBLANK.
62132         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62133         case.
62134
62135 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62136
62137         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62138         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62139         brackets.  Other minor changes to suppress some compiler
62140         warnings.
62141
62142 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62143         and Paul Eggert  <eggert@cs.ucla.edu>
62144
62145         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62146         of invoking obsolescent AC_HEADER_DIRENT macro.
62147         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62148         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62149         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62150         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62151         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62152         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62153         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62154         * m4/readdir.m4: Remove; no longer needed.
62155
62156 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62157         and Paul Eggert  <eggert@cs.ucla.edu>
62158
62159         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62160         Don't worry about this obsolete case any more.
62161         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62162         directories.
62163         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62164         worry about this obsolete case any more.
62165         * lib/fts.c: Likewise.
62166         * lib/getcwd.c: Likewise.
62167         * lib/glob.h: Likewise.
62168         * lib/savedir.c: Likewise.
62169
62170 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62171
62172         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62173         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62174         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62175         needed.
62176         All uses removed.
62177         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62178         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62179         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62180         needed.
62181         * m4/getdate.m4 (gl_GETDATE): Likewise.
62182         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62183         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62184         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62185         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62186         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62187         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62188         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62189         needed.
62190
62191 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * lib/memcasecmp.c: Include <limits.h>.
62194         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62195         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62196         Don't assume isdigit succeeds only on '0' through '9'.
62197
62198 2006-07-05  Eric Blake  <ebb9@byu.net>
62199
62200         * modules/getaddrinfo (Depends-on): Add snprintf.
62201
62202 2006-07-05  Eric Blake  <ebb9@byu.net>
62203
62204         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62205         to avoid 'header present but could not be compiled' on cygwin.
62206
62207 2006-07-05  Eric Blake  <ebb9@byu.net>
62208
62209         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62210         missing from netdb.h.
62211         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62212
62213 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62214
62215         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62216         no longer needed.
62217         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62218         * m4/getdate.m4 (gl_GETDATE): Likewise.
62219         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62220         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62221         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62222         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62223         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62224
62225 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62226
62227         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62228         All uses of is_space replaced by isspace.
62229         * lib/exit.h: Don't talk about STDC_HEADERS.
62230         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62231         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62232         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62233         replaced by isprint etc.
62234         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62235         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62236         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62237         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62238         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62239         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62240
62241 2006-07-05  Bruno Haible  <bruno@clisp.org>
62242
62243         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62244         the function exists, before testing against AIX.
62245         Reported by Martin Lambers <marlam@marlam.de>.
62246
62247 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62250         From Mark D. Baushke.
62251
62252 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62253
62254         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62255         to the absolute name, not just one, to bypass Sun C 5.8's
62256         "warning: #include of /usr/include/... may be non-portable".
62257
62258 2006-07-04  Eric Blake  <ebb9@byu.net>
62259
62260         * modules/dirname-tests: New test module.
62261         * tests/test-dirname.c: New file, replacing dirname.c
62262         TEST_DIRNAME section that was recently deleted.
62263
62264 2006-07-04  Bruno Haible  <bruno@clisp.org>
62265
62266         Assume ANSI C header files and <ctype.h> functions.
62267         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62268         (mbsnwidth): Use isprint, iscntrl instead.
62269
62270 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         Merge from coreutils.
62273         * MODULES.html.sh: Add xstrtold.
62274         * modules/xstrtold: New file.
62275         * modules/cycle-check (Files): Add lib/same-inode.h.
62276         * modules/dirname (Files): Add m4/double-slash-root.m4.
62277         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62278         * modules/mkdir-p (Files): Add lib/same-inode.h.
62279         * modules/same (Files): Add lib/same-inode.h.
62280
62281 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62284         This is to keep the terminology clean; POSIX talks about
62285         "absolute pathnames", not "full pathnames", but the GNU
62286         Coding Standards say to use "path" for something else;
62287         so use "absolute" to keep both sides happy.
62288         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62289         Set gl_absolute_header, not gl_full_header_path.
62290         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62291         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62292         All uses changed.
62293
62294         Merge from coreutils.
62295
62296         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62299         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62300         want to require the building of c-strtod.o.
62301         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62302         needs -lm directly.
62303         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62304
62305         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62306
62307         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62308         --as-needed option if available.  Problem reported by Albert Chin in
62309         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62310         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62311         cc merely issues a bunch of annoying warnings for --as-needed
62312         (this problem was reported by Bob Proulx).  Also, try linking with
62313         -lm to detect a bug in binutils 2.16 (this problem was reported
62314         by Ralf Wildenhues).
62315
62316         2006-06-18  Jim Meyering  <jim@meyering.net>
62317
62318         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62319         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62320         macro.
62321         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62322         also check for glibc-2.4's abort-inducing bug.
62323
62324         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62325         Low-probability clean-up should be to use rmdir to get rid of
62326         the just-created directory, not unlink.
62327
62328         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62329         configure fail, and request a bug report to inform us about it.
62330         Add a comment that, barring reports to the contrary, in 2007 we'll
62331         assume ftruncate is universally available.
62332
62333         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62334
62335         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62336
62337         2006-03-12  Jim Meyering  <jim@meyering.net>
62338
62339         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62340         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62341         * m4/same.m4 (gl_SAME): Likewise.
62342         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62343
62344         2006-03-11  Eric Blake  <ebb9@byu.net>
62345
62346         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62347         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62348         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62349         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62350
62351 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62354         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62355         reported by Mark D. Baushke, one in
62356         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62357
62358         Merge from coreutils.
62359
62360         * lib/.cppi-disable: Add stdint_.h.
62361         * lib/.cvsignore: Add stdint.h.
62362
62363         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62364
62365         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62366         both double and long double versions.
62367         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62368         * lib/xstrtold.c: New file.
62369         * lib/xstrtod.h (xstrtold): New decl.
62370
62371         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62372
62373         * lib/filemode.c (setst): Remove.
62374         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62375         (arguably) clearer, and the generated code is a bit smaller on my
62376         Debian GNU/Linux stable x86 host.
62377
62378         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62379
62380         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62381         Assume that filemode.h includes sys/types.h and sys/stat.h.
62382         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62383         (ftypelet): Reorder to put common cases first, for efficiency.
62384         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62385         to do 'M'.
62386         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62387         of 10, for compatibility with FreeBSD.  All callers changed.
62388         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62389         types that can't be deduced solely from st_mode.  First arg is now a
62390         const pointer.
62391         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62392         (strmode): Renamed from mode_string.
62393         (filemodestring): New decl.
62394         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62395         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62396         needed.
62397         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62398
62399         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62400
62401         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62402         fsusage.h now does that.  Include fsusage.h first, to test interface.
62403         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62404         at most one method (the old code could have generated decls that
62405         didn't conform to C89, not that this was ever exercised).
62406         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62407
62408         2006-03-19  Jim Meyering  <jim@meyering.net>
62409
62410         Work even in a chroot where d_ino values for entries in "/"
62411         don't match the stat.st_ino values for the same names.
62412         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62413         number, iterate through all entries again, using lstat instead.
62414         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62415         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62416
62417         * lib/getcwd.c (__getcwd): Clarify a comment.
62418         Use memcpy in place of a call to strcpy.
62419
62420         2006-03-12  Jim Meyering  <jim@meyering.net>
62421
62422         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62423         matches that of the current directory (which we're about to chdir ".."
62424         out of), then save the dev-ino of the parent, instead.
62425
62426         * lib/same-inode.h (SAME_INODE): New file/macro.
62427         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62428         Include "same-inode.h", instead.
62429         * lib/same.c: Likewise.
62430         * lib/cycle-check.h: Include "same-inode.h".
62431         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62432         * lib/cycle-check.c (SAME_INODE): Remove definition.
62433         * lib/root-dev-ino.h: Include "same-inode.h".
62434
62435         2006-03-11  Eric Blake  <ebb9@byu.net>
62436
62437         * lib/same.c (same_name): s/base_name/last_component/
62438         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62439         * lib/filenamecat.c (file_name_concat): Likewise.
62440
62441         2006-03-11  Eric Blake  <ebb9@byu.net>,
62442                     Paul Eggert  <eggert@cs.ucla.edu>
62443
62444         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62445         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62446         drive prefix.
62447         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62448         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62449         (last_component): New method.
62450         * lib/dirname.c (dir_len): Determine when drive letters need a
62451         subsequent slash.  Preserve // when it is special.
62452         (dir_name): Don't append dot when drive letter is absolute.
62453         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62454         * lib/basename.c (base_name): New semantics - malloc the result.
62455         Preserve // when it is special.  Preserve relative files that look
62456         like drive letters.
62457         (base_len): Preserve // when it is special.
62458         (last_component): New method, similar to old base_name semantics.
62459         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62460         base_name.  Strip redundant slashes from ///.
62461
62462 2006-07-03  Jim Meyering  <jim@meyering.net>
62463
62464         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62465         macro is used before the first cycle_check call.
62466
62467 2006-07-03  Eric Blake  <ebb9@byu.net>
62468
62469         * modules/dirname (Depends-on): Add xstrndup.
62470
62471 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62472
62473         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62474         test cases, so that config.log is a bit easier to follow.
62475
62476 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62477
62478         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62479         both are 64 bits, since this seems to be the tradition, and this
62480         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62481         we ever run into a host that prefers long long to long in this
62482         case, we'll need another configure-time test.  Problem reported by
62483         Jim Meyering.
62484
62485 2006-07-02  Eric Blake  <ebb9@byu.net>
62486
62487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62488
62489 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62490
62491         * modules/inttypes (Depends-on): No longer depends on stdint.
62492         * modules/stdint (Description): Say more about assumptions.
62493         Say that the fast types might differ.  Say macros are used.
62494         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62495         (Makefile.am): Revise list of substituted symbols to match
62496         new stdint.m4.
62497         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62498         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62499         * tests/test-stdint.c (verify_same_types)
62500         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62501         the code conforms to C99/C89.
62502         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62503         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62504
62505 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62508         but fix a bug, by requiring at least 64 bits.
62509         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62510         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62511         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62512         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62513
62514         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62515         changes.  Make 2.59 a prerequisite.  Check and substitute for
62516         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62517         inttypes.h.  Do not use special include files; just use the
62518         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62519         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62520         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62521         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62522         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62523         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62524         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62525         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62526         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62527         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62528         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62529         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62530         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62531         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62532         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62533         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62534         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62535         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62536         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62537         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62538         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62539         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62540         not check for things that C99 does not require, e.g., int8_t.  If
62541         a test isn't needed unless <stdint.h> isn't working, and is
62542         unlikely to be needed for any other reason, then don't do it
62543         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62544         size_t, since we assume C89 freestanding at least.  Do not check
62545         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62546         the right thing even if the types are not defined.  Instead use:
62547         (gl_STDINT_TYPE_PROPERTIES): New macro.
62548         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62549         testing whether <sys/types.h> clashes, as Autoconf does this for
62550         us now.  All uses removed.
62551         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62552         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62553         (gl_CHECK_TYPE_SAME):
62554         Remove; no longer needed.
62555         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62556         exists, since we'll return 0 anyway in that case.
62557         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62558
62559 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62560
62561         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62562         possible collision with system files.
62563         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62564         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62565         WCHAR_MIN and WCHAR_MAX in this case.
62566         (<stddef.h>): Do not include; no longer needed.
62567         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62568         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62569         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62570         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62571         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62572         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62573         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62574         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62575         !defined(__c99))]: Include in this case too, since it's harmless
62576         now.
62577         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62578         dangerous to do so.
62579         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62580         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62581         (_STDINT_MIN, _STDINT_MAX): New macros.
62582         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62583         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62584         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62585         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62586         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62587         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62588         macros, not typedefs; this simplifies things quite a bit.
62589         Use long int for all types narrower than int64_t.
62590         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62591         Define in terms of long long int or int64_t or long int,
62592         not int64_t or int32_t.  This saves some compile-time testing.
62593         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62594         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62595         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62596         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62597         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62598         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62599         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62600         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62601         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62602         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62603         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62604         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62605         undef any previous version and define our own version, for
62606         simplicity and consistency with the new macros for types.
62607         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62608         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62609         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62610         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62611         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62612         @WINT_T_SUFFIX@ to keep things simple here.
62613         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62614         Simplify by assuming typical 8/16/32/64 host, since we're
62615         already doing that elsewhere anyway.
62616         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62617         and assume long long int is 64 bits if available.  This
62618         speeds up 'configure'.
62619
62620 2006-07-01  Eric Blake  <ebb9@byu.net>
62621
62622         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62623         Reported by Andreas Buening.
62624
62625 2006-07-01  Eric Blake  <ebb9@byu.net>
62626
62627         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62628
62629 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62630
62631         * lib/getaddrinfo.c: fixed typo
62632
62633 2006-06-29  Jim Meyering  <jim@meyering.net>
62634
62635         * modules/strftime (Maintainer): Add my name, since with the
62636         FPRINTFTIME changes strftime.c has forked from glibc.
62637
62638 2006-06-29  Eric Blake  <ebb9@byu.net>
62639
62640         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62641
62642 2006-06-29  Eric Blake  <ebb9@byu.net>
62643
62644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62645
62646 2006-06-29  Eric Blake  <ebb9@byu.net>
62647
62648         * lib/stat_.h: New file.
62649
62650 2006-06-29  Eric Blake  <ebb9@byu.net>
62651
62652         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62653         unused static function.
62654
62655 2006-06-29  Eric Blake  <ebb9@byu.net>
62656
62657         * doc/functions.texi (Function Portability): Document missing lstat
62658         on mingw.
62659
62660 2006-06-29  Eric Blake  <ebb9@byu.net>
62661
62662         * MODULES.html.sh: Add sys_stat.
62663         * modules/sys_stat: New module.
62664         * modules/mkstemp (Depends-on): Add sys_stat.
62665
62666 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62667
62668         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62669
62670 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62671
62672         * m4/c-bs-a.m4: Removed.
62673
62674 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62675
62676         * lib/strftime.c: Assume strftime() exists.
62677
62678 2006-06-29  Derek Price  <derek@ximbiot.com>
62679
62680         * modules/c-bs-a: Removed - \a is C89.
62681         * MODULES.html.sh: Remove c-bs-a.
62682
62683 2006-06-29  Bruno Haible  <bruno@clisp.org>
62684
62685         * modules/wcwidth (License): Change to LGPL.
62686
62687 2006-06-28  Simon Josefsson  <jas@extundo.com>
62688
62689         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62690         on _WIN32.
62691
62692         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62693         getnameinfo.
62694
62695 2006-06-28  Simon Josefsson  <jas@extundo.com>
62696
62697         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62698
62699 2006-06-28  Simon Josefsson  <jas@extundo.com>
62700
62701         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62702         functions there.  It will succeed on Windows XP, but on Windows
62703         2000 and (presumably) earlier, it will fail, and use the internal
62704         re-implementation.
62705         (use_win32_p): New function.
62706         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62707         Support AI_NUMERICSERV to disable getservbyname.
62708         (getnameinfo): New function, only supports
62709         NI_NUMERICHOST|NI_NUMERICSERV for now.
62710
62711         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62712         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62713         getnameinfo.
62714
62715 2006-06-28  Eric Blake  <ebb9@byu.net>
62716
62717         * modules/wcwidth: New file.
62718         * modules/mbchar (Depends-on): Add wcwidth.
62719         * modules/mbswidth (Depends-on): Add wcwidth.
62720         * MODULES.html.sh: Add wcwidth.
62721
62722 2006-06-28  Eric Blake  <ebb9@byu.net>
62723
62724         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62726
62727 2006-06-28  Eric Blake  <ebb9@byu.net>
62728
62729         * lib/xvasprintf.h: Fix comments.
62730
62731 2006-06-28  Eric Blake  <ebb9@byu.net>
62732
62733         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62734         * lib/mbswidth.c (wcwidth): Move from here...
62735         * lib/wcwidth.h: ...to this new file.
62736
62737 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62738
62739         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62740
62741         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62742         it's obsolete.
62743         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62744
62745 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62746
62747         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62748         Autoconf 2.60 says this stuff was obsolete.
62749
62750 2006-06-28  Bruno Haible  <bruno@clisp.org>
62751
62752         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62753
62754 2006-06-28  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62757         gt_TYPE_WCHAR_T.
62758
62759 2006-06-28  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62762         declaration for wcwidth.
62763         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62764
62765 2006-06-28  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62768         (mkdir): Define using _mkdir.
62769
62770 2006-06-28  Bruno Haible  <bruno@clisp.org>
62771
62772         * lib/getaddrinfo.h: Fix POSIX URL.
62773         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62774         _WIN32.
62775         (use_win32_p): Make static.
62776         (getaddrinfo): Reject service name if it is empty or does not consist
62777         solely of decimal digits, or if its value is > 65535.
62778         (getnameinfo): Remove useless casts.
62779
62780 2006-06-27  Simon Josefsson  <jas@extundo.com>
62781
62782         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62783         Eggert and Martin Lambers.
62784
62785 2006-06-27  Simon Josefsson  <jas@extundo.com>
62786
62787         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62788         Eggert and Martin Lambers.
62789
62790 2006-06-27  Bruno Haible  <bruno@clisp.org>
62791
62792         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62793         result to 0, not to empty.
62794         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62795
62796 2006-06-27  Bruno Haible  <bruno@clisp.org>
62797
62798         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62799
62800 2006-06-26  Simon Josefsson  <jas@extundo.com>
62801
62802         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62803         present.
62804
62805 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62808         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62809         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62810
62811 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62812
62813         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62814
62815 2006-06-26  Bruno Haible  <bruno@clisp.org>
62816
62817         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62818
62819 2006-06-26  Bruno Haible  <bruno@clisp.org>
62820
62821         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62822
62823 2006-06-26  Bruno Haible  <bruno@clisp.org>
62824
62825         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62826         SGI C compiler in pre-C99 mode.
62827         Suggested by Mark D. Baushke and Larry Jones.
62828
62829 2006-06-26  Bruno Haible  <bruno@clisp.org>
62830
62831         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62832         WCHAR_MAX.
62833         Reported by Mark D. Baushke and Larry Jones.
62834
62835 2006-06-26  Bruno Haible  <bruno@clisp.org>
62836
62837         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62838         in pre-C99 mode.
62839         Suggested by Mark D. Baushke and Larry Jones.
62840
62841 2006-06-23  Simon Josefsson  <jas@extundo.com>
62842             Bruno Haible  <bruno@clisp.org>
62843
62844         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62845         Emit mostlyclean-local rule.
62846         (func_emit_tests_Makefile_am): Likewise.
62847         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62848
62849 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62850
62851         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62852
62853 2006-06-23  Bruno Haible  <bruno@clisp.org>
62854
62855         * tests/test-stdint.c: Update to match ISO C 99 Technical
62856         Corrigendum 1.
62857
62858 2006-06-23  Bruno Haible  <bruno@clisp.org>
62859
62860         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62861
62862 2006-06-23  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/stdint_.h: Treat IRIX like OpenBSD.
62865
62866 2006-06-23  Bruno Haible  <bruno@clisp.org>
62867
62868         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62869         ISO C 99 Technical Corrigendum 1.
62870
62871 2006-06-22  Simon Josefsson  <jas@extundo.com>
62872
62873         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62874         MinGW.
62875
62876 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62879         needed.  Some compiler complained about some of them.  Problem reported
62880         by Larry Jones in
62881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62882
62883 2006-06-21  Simon Josefsson  <jas@extundo.com>
62884
62885         * tests/test-getaddrinfo.c: New file.
62886
62887         * modules/getaddrinfo-tests: New file.
62888
62889         * MODULES.html.sh: Add inet_pton.
62890
62891         * modules/inet_pton: New file.
62892
62893 2006-06-21  Simon Josefsson  <jas@extundo.com>
62894
62895         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62896         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62897         of using the (limited) gnulib implementation on Windows XP.
62898
62899         * m4/inet_pton.m4: New file.
62900
62901 2006-06-21  Simon Josefsson  <jas@extundo.com>
62902
62903         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62904         variable.
62905
62906         * lib/socket_.h: Don't define WINVER.
62907
62908         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62909         slightly modified to work in gnulib.
62910
62911 2006-06-21  Simon Josefsson  <jas@extundo.com>
62912
62913         * doc/gnulib.texi (Windows sockets): Add.
62914
62915 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62916
62917         * lib/read-file.c (fread_file): Start with buffer allocation of
62918         0 bytes rather than 1 byte; this simplifies the code.
62919         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62920         code to free buffer and save/restore errno.
62921         (internal_read_file): Remove unused local.
62922
62923 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62924
62925         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62926         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62927         Problem reported by Denis Excoffier in
62928         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62929
62930 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62931
62932         * modules/sys_socket, modules/socklen: Include sys/types since
62933         FreeBSD 4.x's sys/socket.h needs it.
62934
62935 2006-06-19  Simon Josefsson  <jas@extundo.com>
62936
62937         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62938
62939 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62940
62941         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62942
62943 2006-06-19  Bruno Haible  <bruno@clisp.org>
62944
62945         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62946         and FULL_PATH_INTTYPES_H in angle brackets.
62947         Reported by Mark D. Baushke <mdb@gnu.org>.
62948
62949 2006-06-17  Eric Blake  <ebb9@byu.net>
62950
62951         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62952         errno.
62953
62954 2006-06-17  Bruno Haible  <bruno@clisp.org>
62955
62956         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62957         <sys/inttypes.h>.
62958
62959 2006-06-17  Bruno Haible  <bruno@clisp.org>
62960
62961         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62962         whether errno is declared. Assume <errno.h> declares errno.
62963
62964 2006-06-17  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62967
62968 2006-06-17  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62971         problem on Solaris 2.5.1.
62972
62973 2006-06-16  Eric Blake  <ebb9@byu.net>
62974
62975         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62976         * lib/unicodeio.c [!defined errno]: Likewise.
62977         * lib/strtol.c [!defined errno]: Likewise.
62978         * lib/strtod.c [!defined errno]: Likewise.
62979
62980 2006-06-15  Eric Blake  <ebb9@byu.net>
62981
62982         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62983
62984 2006-06-15  Eric Blake  <ebb9@byu.net>
62985
62986         * config/srclist.txt (ssize_t.m4): Lose sync.
62987
62988 2006-06-15  Bruno Haible  <bruno@clisp.org>
62989
62990         * modules/stdint (Files): Include m4/full-header-path.m4,
62991         m4/size_max.m4, m4/wchar_t.m4.
62992         (Makefile.am): Many more substitutions.
62993         * modules/stdint-tests: New file.
62994         * tests/test-stdint.c: New file.
62995
62996 2006-06-15  Bruno Haible  <bruno@clisp.org>
62997
62998         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62999         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63000         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63001         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63002         gl_CHECK_TYPE_SAME): New macros.
63003
63004 2006-06-15  Bruno Haible  <bruno@clisp.org>
63005
63006         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63007
63008 2006-06-15  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/stdint_.h: Rewritten to be fully auto-configured.
63011         Fixes bug on HP-UX/IA64.
63012
63013 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63014
63015         * lib/getdate.y (__attribute__): Don't define if already defined.
63016         Problem reported by Larry Jones.
63017         * lib/utimens.c (__attribute__): Likewise.
63018
63019 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63020
63021         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63022         reported by Andreas Schwab.
63023
63024 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63025             Bruno Haible  <bruno@clisp.org>
63026
63027         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63028         check for the declaration of strnlen and a run test that exposes the
63029         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63030         rpl_strndup.
63031
63032 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63033             Bruno Haible  <bruno@clisp.org>
63034
63035         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63036
63037 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63038
63039         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63040         compile test, for Tru64 4.0D.
63041
63042 2006-05-28  Karl Berry  <karl@gnu.org>
63043
63044         * config/srclist.txt (printf-args.c): lose sync.
63045
63046 2006-05-26  Martin Lambers  <marlam@marlam.de>
63047
63048         * lib/getpass.c: Updates the test for the native W32 API, and adds
63049         missing includes, thus fixing compilation warnings.
63050
63051 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63052
63053         * lib/exclude.c (exclude_fnmatch): New function.
63054         (excluded_file_name): Call exclude_fnmatch.
63055         * lib/exclude.h (excluded_file_name): New prototype
63056
63057 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         * lib/tempname.c (small_open, large_open): New macros.
63060         (__open, __open64) [!_LIBC]: Remove.
63061         (__gen_tempname): Use small_open and large_open instead of __open
63062         and __open64.  This fixes a portability bug on HP-UX 11.11i
63063         reported by Simon Wing-Tang in
63064         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63065
63066 2006-05-24  Bruno Haible  <bruno@clisp.org>
63067
63068         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63069         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63070         Reported by Thorsten Maerz <torte@netztorte.de> via
63071         Aaron Stone <aaron@serendipity.cx>.
63072
63073 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63074
63075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63076         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63077         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63078         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63079         not really conditional on the cache.
63080         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63081
63082 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63085         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63086         (my_usleep): Don't mishandle maximum value.
63087
63088 2006-05-19  Jim Meyering  <jim@meyering.net>
63089
63090         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63091
63092 2006-05-17  Bruno Haible  <bruno@clisp.org>
63093
63094         Cygwin portability.
63095         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63096
63097 2006-05-17  Bruno Haible  <bruno@clisp.org>
63098
63099         * lib/stdint_.h: Fix recognition of Cygwin.
63100
63101 2006-05-15  Bruno Haible  <bruno@clisp.org>
63102
63103         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63104         on libtool patch by Ralf Wildenhues.
63105
63106 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63109         test for C99 conformance; (bool) 0.5 is an integer constant
63110         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63111         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63112
63113 2006-05-11  Simon Josefsson  <jas@extundo.com>
63114
63115         * m4/xvasprintf.m4: Fix obvious typo.
63116
63117 2006-05-11  Jim Meyering  <jim@meyering.net>
63118
63119         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63120         James Lemley.
63121
63122 2006-05-10  Simon Josefsson  <jas@extundo.com>
63123
63124         * lib/md4.c: Typo fix, update copyright years.
63125         (K1, K2): Don't use L because it turn computations into 64-bit on
63126         64-bit platforms.
63127
63128 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63129
63130         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63131         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63132         unwanted sign propagation, e.g., on hosts with 64-bit int.
63133         There still are some problems with reeelly weird theoretical hosts
63134         (e.g., 33-bit int) but it's not worth worrying about now.
63135         * lib/sha1.c (rol): Likewise.
63136         (K1, K2, K3, K4): Remove unnecessary L suffix.
63137
63138 2006-05-10  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/des.c: Cast to avoid warnings.
63141
63142 2006-05-09  Bruno Haible  <bruno@clisp.org>
63143
63144         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63145         (Depends-on): Depend also on xsize, stdarg.
63146         (configure.ac): Add gl_XVASPRINTF.
63147
63148 2006-05-09  Bruno Haible  <bruno@clisp.org>
63149
63150         * m4/xvasprintf.m4: New file.
63151
63152 2006-05-09  Bruno Haible  <bruno@clisp.org>
63153
63154         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63155         (EOVERFLOW): Define fallback value.
63156         (xstrcat): New function.
63157         (xvasprintf): Recognize the special case of a string concatenation.
63158
63159 2006-05-08  Eric Blake  <ebb9@byu.net>
63160
63161         * gnulib-tool (func_version): Base copyright year on CVS date.
63162         (func_emit_copyright_notice): New function.
63163         (func_emit_lib_Makefile_am): Use it.
63164         (func_emit_tests_Makefile_am): Likewise.
63165         (func_import): Likewise.
63166
63167 2006-05-08  Bruno Haible  <bruno@clisp.org>
63168
63169         * modules/stdarg: New file.
63170         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63171
63172 2006-05-08  Bruno Haible  <bruno@clisp.org>
63173
63174         * m4/stdarg.m4: New file, from GNU gettext.
63175
63176 2006-05-08  Bruno Haible  <bruno@clisp.org>
63177
63178         * config/srclist.txt (build-aux/config.rpath): different from latest
63179         release.
63180
63181 2006-05-08  Bruno Haible  <bruno@clisp.org>
63182
63183         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63184
63185 2006-05-05  Jim Meyering  <jim@meyering.net>
63186
63187         * m4/warning.m4: New file, derived from bison's file by the same name.
63188
63189 2006-05-03  Bruno Haible  <bruno@clisp.org>
63190
63191         * lib/stdint_.h: Shorter URL.
63192         * lib/inttypes.h: Likewise.
63193
63194 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63197
63198 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         * lib/verify.h: Document the internals better.  Most of this change
63201         was written by Bruno Haible.
63202
63203 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63204
63205         * doc/verify.texi: New file, partly based on a proposal by
63206         Bruno Haible.
63207
63208 2006-05-02  Bruno Haible  <bruno@clisp.org>
63209
63210         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63211         test from here...
63212         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63213
63214 2006-04-29  Bruno Haible  <bruno@clisp.org>
63215
63216         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63217         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63218
63219 2006-04-29  Bruno Haible  <bruno@clisp.org>
63220
63221         * gnulib-tool: Make --update option actually work.
63222
63223 2006-04-29  Bruno Haible  <bruno@clisp.org>
63224
63225         * doc/gcd.texi: New file.
63226         * doc/gnulib.texi: Include it.
63227
63228 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * lib/getdate.y (get_date): When adding relative date, start with the
63231         initial time, not with the result of the first mktime call.
63232
63233 2006-04-25  Bruno Haible  <bruno@clisp.org>
63234
63235         * gnulib-tool (func_import): Output the include directives in three
63236         blocks, sorted separately.
63237         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63238
63239 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63240
63241         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63242         to define main with arguments, for C++.  Reported by Eric Blake.
63243         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63244         Prefer 'int main ()' to 'int main (void)', for C++.
63245         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63247         for 'main', for C99 and C++.
63248
63249 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63250
63251         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63252         Don't assume that exit status -1 is valid.
63253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63254         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63255         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63256         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63257         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63258         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63259         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63260         functions can be used without declaring them, or that you can
63261         exit with status -1.
63262         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63263
63264 2006-04-24  Karl Berry  <karl@gnu.org>
63265
63266         * config/srclist.txt (longdouble.m4): sync lost.
63267
63268 2006-04-24  Eric Blake  <ebb9@byu.net>
63269
63270         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63271
63272 2006-04-24  Bruno Haible  <bruno@clisp.org>
63273
63274         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63275         poll() implementation in AIX.
63276         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63277
63278 2006-04-24  Bruno Haible  <bruno@clisp.org>
63279
63280         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63281         assigned exactly once.
63282
63283 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63284             Bruno Haible  <bruno@clisp.org>
63285
63286         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63287         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63288         for AM_CPPFLAGS.
63289
63290 2006-04-23  Bruno Haible  <bruno@clisp.org>
63291
63292         * modules/copy-file: Depend on unistd.
63293         * modules/execute: Likewise.
63294         * modules/fatal-signal: Likewise.
63295         * modules/findprog: Likewise.
63296         * modules/mkdtemp : Likewise.
63297         * modules/pipe: Likewise.
63298         * modules/wait-process: Likewise.
63299
63300 2006-04-23  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63303         condition was already detected.
63304         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63305
63306 2006-04-23  Bruno Haible  <bruno@clisp.org>
63307
63308         * lib/copy-file.c: Include <unistd.h> unconditionally.
63309         * lib/execute.c: Likewise.
63310         * lib/fatal-signal.c: Likewise.
63311         * lib/findprog.c: Likewise.
63312         * lib/mkdtemp.c: Likewise.
63313         * lib/pipe.h: Likewise.
63314         * lib/pipe.c: Likewise.
63315         * lib/wait-process.h: Likewise.
63316
63317 2006-04-23  Bruno Haible  <bruno@clisp.org>
63318
63319         * gnulib-tool (func_usage): Fix --import description. Document
63320         --update.
63321         (func_import): Create temporary file in a temporary directory, if
63322         --dry-run is specified. Silence errors from 'grep' when there are no
63323         m4 files in $m4dir.
63324         (func_create_testdir): Silence errors from 'grep' when there are no
63325         m4 files in $m4dir.
63326         Reported by Karl Berry <karl@freefriends.org>.
63327
63328 2006-04-20  Bruno Haible  <bruno@clisp.org>
63329
63330         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63331         one argument, so that the code will be portable to Autoconf 2.60.
63332         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63333         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63334         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63335
63336 2006-04-19  Derek Price  <derek@ximbiot.com>
63337             Eric Blake  <ebb9@byu.net>
63338
63339         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63340         rather than "/full/path.h".  Update comment to match.  Shorten &
63341         generalize m4_translit call via AS_TR_CPP.
63342
63343 2006-04-19  Derek Price  <derek@ximbiot.com>
63344             Eric Blake  <ebb9@byu.net>
63345
63346         * lib/inttypes.h: Correct grammar in comment.
63347
63348 2006-04-18  Derek Price  <derek@ximbiot.com>
63349             Paul Eggert  <eggert@cs.ucla.edu>
63350
63351         * modules/inttypes: New file.
63352         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63353
63354 2006-04-18  Derek Price  <derek@ximbiot.com>
63355             Paul Eggert  <eggert@cs.ucla.edu>
63356
63357         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63358         New files.
63359
63360 2006-04-18  Derek Price  <derek@ximbiot.com>
63361             Paul Eggert  <eggert@cs.ucla.edu>
63362
63363         * lib/inttypes.h: New file.
63364         * lib/strtoimax.c: Assume <inttypes.h>.
63365
63366 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63367
63368         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63369         isn't mounted.  Problem reported by Kir Kolyshkin.
63370
63371 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63372
63373         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63374         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63375         Derek R. Price.
63376         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63377         implementation.
63378
63379 2006-04-12  Eric Blake  <ebb9@byu.net>
63380
63381         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63382         is now done automatically by the corresponding Autoconf macro.
63383
63384 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63387         time_r.h.
63388
63389 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         Merge regex changes from libc, removing some of our
63392         POSIX-conformance changes that were rejected and redoing them in a
63393         less-intrusive way.
63394
63395         * lib/regcomp.c (re_compile_internal, init_dfa):
63396         Length arg is now size_t, not Idx.  All uses changed.
63397         (peek_token): Forward decl now says internal_function.
63398         (__re_error_msgid, __re_error_msgid_idx):
63399         Now static rather than extern with attribute_hidden.
63400         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63401         For some reason libc prefers K&R style defns for external functions.
63402         (regerror) [!defined _LIBC]: Likewise.
63403         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63404         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63405         (build_range_exp, build_collating_symbol):
63406         Use K&R-style defn.
63407         (re_compile_fastmap): Use '\0' to memset, not 0.
63408         (utf8_sb_map): Make the calculations more obvious.
63409         (init_dfa, parse_bracket_exp, build_charclass_op):
63410         Call calloc and cast result, as glibc does.
63411         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63412         (build_range_exp, build_collating_symbol):
63413         Now internal functions.
63414
63415         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63416
63417         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63418         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63419         Don't depend on VMS; depend on __VMS instead, for POSIX
63420         namespace cleanness.
63421         (regoff_t): Define to ssize_t, not long int.
63422
63423         Remove the REG_ macros named below.  Instead, make the old names
63424         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63425         __USE_GNU_REGEX.
63426         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63427         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63428         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63429         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63430         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63431         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63432         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63433         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63434         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63435         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63436         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63437         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63438         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63439         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63440         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63441         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63442         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63443         (REG_NREGS):
63444         Remove.  All uses replaced by the old RE_* names.
63445         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63446         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63447         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63448         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63449         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63450         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63451         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63452         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63453         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63454         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63455         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63456         Don't bother having these macros be independent of each others'
63457         values, since they no longer exist in the POSIX name space.
63458
63459         Rename the following member names back to their old names,
63460         unless !__USE_GNU_REGEX.  All uses changed back.
63461         (buffer): Renamed from re_buffer.
63462         (allocated): Renamed from re_allocated.
63463         (used): Renamed from re_used.
63464         (syntax): Renamed from re_syntax.
63465         (fastmap): Renamed from re_fastmap.
63466         (translate): Renamed from re_translate.
63467         (can_be_null): Renamed from re_can_be_null.
63468         (regs_allocated): Renamed from re_regs_allocated.
63469         (fastmap_accurate): Renamed from re_fastmap_accurate.
63470         (no_sub): Renamed from re_no_sub.
63471         (not_bol): Renamed from re_not_bol.
63472         (not_eol): Renamed from re_not_eol.
63473         (newline_anchor): Renamed from re_newline_anchor.
63474         (num_regs): Renamed from rm_num_regs.
63475         (start): Renamed from rm_start.
63476         (end): Renamed from rm_end.
63477
63478         (free_state): Move up a bit.
63479
63480         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63481         #define to be empty.
63482         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63483         when that is what is intended.
63484         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63485         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63486         (MAX): New macro.
63487         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63488         All uses changed back to re_malloc, etc.  It's now the caller's
63489         responsibility to check for overflow; all callers changed.
63490         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63491         (re_x2nrealloc): Remove.
63492         (free_state): Remove decl.
63493
63494         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63495         (re_set_registers, re_exec):
63496         Use K&R-style defn.
63497
63498         2006-01-31  Roland McGrath  <roland@redhat.com>
63499
63500         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63501         Reported by Mike Frysinger <vapier@gentoo.org>.
63502
63503         2006-01-15  Andreas Jaeger  <aj@suse.de>
63504
63505         [BZ #1950]
63506         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63507         build_wcs_upper_buffer change.
63508         (build_wcs_upper_buffer): Change return type.
63509
63510         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63511
63512         * lib/regex_internal.h: Include <stdint.h> if available.
63513
63514         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63515
63516         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63517
63518         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63519
63520         * lib/regcomp.c: Adjust for changed secondary hash function.
63521
63522         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63523
63524         * lib/regex.h: Pretty printing.
63525         Clean up namespace a bit.
63526
63527         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63528
63529         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63530         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63531
63532         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63533                     Ulrich Drepper  <drepper@redhat.com>
63534
63535         [BZ #1302]
63536         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63537         changed.
63538         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63539
63540         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63541
63542         [BZ #281]
63543         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63544         * lib/regcomp.c: Remove unnecessary uses of
63545         unsigned RE_TRANSLATE_TYPE.
63546         * lib/regex_internal.h: Likewise.
63547         * lib/regex_internal.c: Likewise.
63548         * lib/regexec.c: Likewise.
63549         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63550
63551         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63552
63553         * lib/regexec.c (find_recover_state): Remove unnecessary
63554         initialization.
63555         (transit_state_bkref): Make DFA a const pointer.
63556         (get_subexp): Likewise.
63557         (check_arrival): Likewise.
63558         (update_cur_sifted_state): Likewise.
63559         (re_search_internal): Likewise.
63560         (prune_impossible_nodes): Likewise.
63561         (acquire_init_state_context): Likewise.
63562         (proceed_next_node): Likewise.
63563         (set_regs): Likewise.
63564         (free_fail_stack_return): Likewise.
63565         (check_arrival_expand_ecl): Mark DFA parameter as const.
63566         (check_arrival_expand_ecl_sub): Likewise.
63567         (check_subexp_limits): Likewise.
63568         (sub_epsilon_src_nodes):  Likewise.
63569         (add_epsilon_src_nodes):  Likewise.
63570         (merge_state_array): Likewise.
63571         (update_regs): Likewise.
63572         (build_trtable): Likewise.
63573         (sift_states_backward): Mark MCTX parameter as const.
63574         (build_sifted_states): Likewise.
63575         (update_cur_sifted_state): Likewise.
63576         (sift_states_mkref): Likewise.
63577         (check_arrival_expand_ecl): Mark eclosure as const.
63578         (check_dst_limits_calc_pos_1): Likewise.
63579         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63580         pointer.
63581
63582         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63583
63584         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63585         (transit_state_sb): Likewise.
63586         (transit_state_mb): Likewise.
63587         (sift_states_iter_mb): Likewise.
63588         (check_arrival_add_next_nodes): Likewise.
63589         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63590         [_LIBC] (re_search_2_stub): Use mempcpy.
63591
63592         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63593         mbrtowc for very simple UTF-8 case.
63594
63595         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63596         a pointer-to-const.
63597         (re_acquire_state_context): Likewise.
63598         * lib/regex_internal.h: Adjust prototypes.
63599
63600         * lib/regex.c: Prevent using C++ compilers.
63601
63602         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63603         (re_acquire_state_context): Likewise.
63604
63605 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * modules/regex (Depends-on): Add ssize_t.
63608
63609 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63612         translation table.
63613
63614 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63617
63618 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63619             Bruno Haible  <bruno@clisp.org>
63620
63621         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63622         <sys/types.h> and <inttypes.h>.
63623
63624 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63625
63626         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63627         `__error_t_defined', so argp.h will not typedef the former.
63628
63629 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63630
63631         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63632         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63633         glibc names.  Even if glibc is changed to conform to POSIX, the
63634         traditional names will be available anyway, since regex depends on
63635         the extensions module.  Also, fix a longstanding typo in the
63636         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63637         reported by Emanuele Giaquinta.  Also, change sense of cached
63638         variable, so that the message makes sense.
63639
63640 2006-03-24  Simon Josefsson  <jas@extundo.com>
63641
63642         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63643         including some doc fixes.
63644         (base64_encode_alloc): Fix +1 bug on allocation failures.
63645
63646 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63647
63648         * lib/base64.c (base64_encode): Do not read past end of array with
63649         unsanitized input on systems with CHAR_BIT > 8.
63650
63651 2006-03-24  Eric Blake  <ebb9@byu.net>
63652
63653         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63654
63655 2006-03-22  Karl Berry  <karl@gnu.org>
63656
63657         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63658         * config/srclistvars.sh (COREUTILS): new var.
63659
63660 2006-03-17  Jim Meyering  <jim@meyering.net>
63661
63662         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63663         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63664
63665 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63668         no longer needs it.  Instead, check that regoff_t is as least
63669         as wide as ptrdiff_t.
63670
63671         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63672         so that our regex.h stays compatible with the installed regex.
63673         This is helpful for installers who configure --without-included-regex.
63674         Problem reported by Emanuele Giaquinta.
63675
63676 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63679         Typedef to long int, not to off_, as POSIX will likely change
63680         in that direction.
63681
63682 2006-03-15  Eric Blake  <ebb9@byu.net>
63683
63684         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63685
63686 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63687
63688         * lib/argp-help.c (validate_uparams): Fix typo
63689         * lib/argp-parse.c (argp_default_options): Consistently begin help
63690         messages with a lowercase letter.
63691
63692 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63695         overrun buffers and shouldn't be used (much as gets shouldn't be
63696         used).
63697         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63698
63699 2006-03-08  Simon Josefsson  <jas@extundo.com>
63700
63701         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63702         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63703
63704 2006-03-08  Simon Josefsson  <jas@extundo.com>
63705
63706         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63707         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63708
63709 2006-03-08  Simon Josefsson  <jas@extundo.com>
63710
63711         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63712         signal that configure disabled the device.
63713
63714 2006-03-08  Simon Josefsson  <jas@extundo.com>
63715
63716         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63717         languages.
63718
63719 2006-03-07  Simon Josefsson  <jas@extundo.com>
63720
63721         * modules/getopt (Depends-on): Add unistd.
63722
63723         * modules/unistd: New file.
63724
63725 2006-03-07  Simon Josefsson  <jas@extundo.com>
63726
63727         * modules/gc-random: New file.
63728
63729 2006-03-07  Simon Josefsson  <jas@extundo.com>
63730
63731         * m4/unistd_h.m4: New file.
63732
63733 2006-03-07  Simon Josefsson  <jas@extundo.com>
63734
63735         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63736         test to be side-effect free by storing the result in the cache
63737         variable gl_cv_lib_readline, and moving the assignment of
63738         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63739         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63740
63741 2006-03-07  Simon Josefsson  <jas@extundo.com>
63742
63743         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63744         error on missing devices (the functions will return an error).
63745
63746         * m4/gc.m4: Move random stuff to gc-random.m4
63747
63748 2006-03-07  Simon Josefsson  <jas@extundo.com>
63749
63750         * lib/unistd_.h: New file.
63751
63752 2006-03-07  Simon Josefsson  <jas@extundo.com>
63753
63754         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63755
63756 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63759         Problem reported by Juan Manuel Guerrero.
63760
63761 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63762
63763         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63764         the unistd module.
63765         * lib/getlogin_r.c: Likewise.
63766         * lib/getlogin_r.h: Likewise.
63767         * lib/glob.c: Likewise.
63768         * lib/pagealign_alloc.c: Likewise.
63769         * lib/unistd_.h: Remove; no longer needed.
63770
63771 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63774         Add unistd.
63775         * modules/c-stack (Depends-on): Add unistd.
63776         * modules/getlogin_r: Likewise.
63777         * modules/glob: Likewise.
63778         * modules/pagealign_alloc: Likewise.
63779         * modules/unistd (Files): Remove lib/unistd_.h.
63780         (EXTRA_DIST): Remove.
63781         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63782         need unistd_.h.
63783         (MOSTLYCLEANFILES): Remove unistd.h-t.
63784
63785 2006-03-03  Simon Josefsson  <jas@extundo.com>
63786
63787         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63788
63789 2006-03-03  Simon Josefsson  <jas@extundo.com>
63790
63791         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63792         libidn and bison.
63793
63794 2006-03-03  Simon Josefsson  <jas@extundo.com>
63795
63796         * build-aux/maint.mk: Add indent target.
63797
63798 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63799
63800         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63801         our replacement poll.h in any case, to avoid a differing
63802         declaration from a system header.  Seen on AIX.
63803
63804 2006-03-01  Simon Josefsson  <jas@extundo.com>
63805
63806         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63807         <kasal@ucw.cz>.
63808
63809 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63810
63811         * modules/gettime (Depends-on): Add extensions module.
63812         * modules/nanosleep (Depends-on): Likewise.
63813         * modules/settime (Depends-on): Likewise.
63814
63815 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63818         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63819         pedantically.
63820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63821         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63822
63823         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63824         not "==".  Reported by Ralf Wildenhues.
63825
63826 2006-03-01  Karl Berry  <karl@gnu.org>
63827
63828         * doc/Copyright/request-*: new files, synced from gnuorg.
63829
63830 2006-03-01  Karl Berry  <karl@gnu.org>
63831
63832         * config/srclist.txt (Copyright/*): new entries.
63833
63834 2006-02-28  Simon Josefsson  <jas@extundo.com>
63835
63836         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63837
63838 2006-02-27  Simon Josefsson  <jas@extundo.com>
63839
63840         * lib/base64.h: Indent #define's.  From Jim Meyering
63841         <jim@meyering.net>.
63842
63843 2006-02-27  Jim Meyering  <jim@meyering.net>
63844
63845         Revert the change of 2006-02-24, so these files can continue
63846         to be sync'd from gettext.
63847         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63848         of `config.h'.
63849
63850 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * modules/intprops: New file.
63853         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63854         Add intprops.
63855         * modules/getloadavg (Files): Remove lib/intprops.h.
63856         (Depends-on): Add intprops.
63857         * modules/human: Likewise.
63858         * modules/inttostr: Likewise.
63859         * modules/openat: Likewise.
63860         * modules/sig2str: Likewise.
63861         * modules/userspec: Likewise.
63862         * modules/utimecmp: Likewise.
63863         * modules/xnanosleep: Likewise.
63864         * modules/xstrtol: Likewise.
63865
63866 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63867
63868         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63869         * modules/lock-tests (TESTS): Use $(EXEEXT).
63870         * modules/tls-tests: Likewise.
63871         * modules/argp-tests: Likewise.
63872         (check_PROGRAMS): New var, replacing...
63873         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63874
63875 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63876
63877         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63878         `config.h'.
63879
63880 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63883
63884 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63885
63886         Sync from coreutils.
63887         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63888         gl_CHDIR_SAFER.
63889
63890 2006-02-22  Jim Meyering  <jim@meyering.net>
63891
63892         Sync from coreutils.
63893         * m4/chdir-safer.m4: New file.
63894
63895 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63896
63897         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63898         AT_FDCWD exceeds INT_MAX.
63899         * lib/openat.h (AT_FDCWD): Likewise.
63900
63901 2006-02-17  Eric Blake  <address@hidden>
63902
63903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63904
63905 2006-02-16  Simon Josefsson  <jas@extundo.com>
63906
63907         * modules/getaddrinfo (Depends-on): Add sys_socket.
63908
63909 2006-02-15  Simon Josefsson  <jas@extundo.com>
63910
63911         * build-aux/maint.mk: Add dsyntax-check rule.
63912
63913 2006-02-15  Eric Blake  <ebb9@byu.net>
63914
63915         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63916         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63917         'present but cannot compile' warnings on cygwin.
63918         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63919         use ws2tcpip.h if sys/socket.h works.
63920         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63921         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63922
63923 2006-02-14  Simon Josefsson  <jas@extundo.com>
63924
63925         * modules/maintainer-makefile (Files): Rename.
63926
63927         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63928         and (the local) Makefile.cfg to maint-cfg.mk.
63929
63930         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63931         to the latter.
63932
63933         * modules/maintainer-makefile: New module.
63934
63935         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63936         severaly stripped to make it possible to build it up from scratch
63937         with reliable tests.
63938
63939         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63940         fixes to permit overriding the default actions when configure and
63941         makefile are not available.
63942
63943 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63944
63945         Sync from coreutils.
63946         * modules/lstat (Depends-on): Don't depend on xalloc.
63947         (License): Change from GPL to LGPL, since this is now simply a
63948         replacement for a libc function.
63949
63950 2006-02-14  Jim Meyering  <jim@meyering.net>
63951
63952         Sync from coreutils.
63953
63954         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63955         failure on deficient systems, and simplify gnulib lgpl dependencies.
63956         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63957         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63958
63959         * lib/xalloc-die.c: Remove unused definition of N_.
63960
63961 2006-02-14  Jim Meyering  <jim@meyering.net>
63962
63963         Sync from coreutils.
63964         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63965         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63966         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63967         double-quote uses of that variable, to accommodate the rare case in
63968         which getmntent is available in none of the libraries checked.  This
63969         happens at least on FreeBSD 5.0.
63970
63971 2006-02-13  Simon Josefsson  <jas@extundo.com>
63972
63973         * gnulib-tool (Usage): Fix --import, from
63974         karl@freefriends.org (Karl Berry).
63975
63976 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63977
63978         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63979
63980 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63981
63982         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63983         "autoupdate" on 2005-12-12.
63984
63985 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * modules/closeout (Depends-on): Remove atexit.
63988
63989 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63992         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63993
63994 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63995
63996         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63997         __EXTENSIONS__ if this causes compilation to fail.  Problem
63998         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63999         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64000
64001 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64002
64003         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64004         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64006         All uses changed.
64007
64008 2006-01-26  Simon Josefsson  <jas@extundo.com>
64009
64010         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64011         prototype is visible on mingw32.
64012
64013         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64014         for mingw32.
64015
64016         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64017         mingw32).
64018
64019 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64022         attempt to open for write; this always fails, at least on POSIX
64023         hosts.  This reinstates the 2006-01-09 change, which was
64024         inadvertently removed.
64025
64026 2006-01-26  Bruno Haible  <bruno@clisp.org>
64027
64028         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64029         Reported by Paul Eggert.
64030
64031 2006-01-26  Bruno Haible  <bruno@clisp.org>
64032             Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * lib/stdbool_.h (_Bool)
64035         [(! (defined __cplusplus || defined __BEOS__)
64036           && !defined __GNUC__
64037           && !(defined __HP_cc || defined __xlc__
64038                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64039                || defined __sgi))]:
64040         #define to signed char in these cases too; this simplifies
64041         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64042         etc., separately) and makes it more conservative.
64043
64044 2006-01-25  Simon Josefsson  <jas@extundo.com>
64045
64046         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64047         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64048         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64049
64050 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64051
64052         * lib/argp-namefrob.h: Bugfix. Remove stray #
64053
64054 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64057         so that we test the test.
64058         Check for yet another HP-UX cc bug involving *bool |= bool.
64059
64060 2006-01-25  Karl Berry  <karl@gnu.org>
64061
64062         * config/srclist.txt (vasnprintf.c): sync lost.
64063
64064 2006-01-25  Jim Meyering  <jim@meyering.net>
64065
64066         Sync from the stable (b5) branch of coreutils:
64067
64068         * lib/fts.c (fts_children): Don't let close() clobber errno from
64069         failed fchdir().
64070
64071         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64072         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64073         a dangling symlink.  That can also happen at least for ELOOP.
64074         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64075         FYI, this bug predates the inclusion of fts.c in coreutils.
64076
64077         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64078         in their own block, so pre-c99 compilers don't object.
64079
64080         Avoid the double-free (first in fts_read, second in fts_close) that
64081         would occur when an `active' directory is made inaccessible (e.g.,
64082         via chmod a-x) during a traversal.
64083         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64084         before returning.  Reproduce this failure by
64085         mkdir -p a/b; cd a; chmod a-x . b
64086         Reported by Stavros Passas.
64087
64088 2006-01-25  Jim Meyering  <jim@meyering.net>
64089
64090         * lib/fileblocks.c: Remove more useless parentheses.
64091         * lib/readutmp.h: Likewise.
64092
64093 2006-01-25  Bruno Haible  <bruno@clisp.org>
64094
64095         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64096         warnings.
64097         Reported by Paul Eggert.
64098
64099 2006-01-25  Bruno Haible  <bruno@clisp.org>
64100
64101         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64102         rid of a trap command. For Solaris sh.
64103         Reported by Mark D. Baushke <mdb@gnu.org>.
64104
64105 2006-01-24  Simon Josefsson  <jas@extundo.com>
64106
64107         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64108         Bruno.
64109
64110 2006-01-24  Karl Berry  <karl@gnu.org>
64111
64112         * config/srclist.txt (argp-namefrob.h): sync lost.
64113
64114 2006-01-24  Jim Meyering  <jim@meyering.net>
64115
64116         * modules/openat (Files): Add lib/intprops.h.
64117         From Mark D. Baushke.
64118
64119 2006-01-24  Jim Meyering  <jim@meyering.net>
64120
64121         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64122         Reported by Mark D. Baushke.
64123
64124 2006-01-24  Jim Meyering  <jim@meyering.net>
64125
64126         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64127
64128 2006-01-24  Bruno Haible  <bruno@clisp.org>
64129
64130         * modules/strnlen (Maintainer): Change from glibc to all.
64131
64132 2006-01-24  Bruno Haible  <bruno@clisp.org>
64133
64134         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64135         Patch by Paul Eggert.
64136
64137 2006-01-24  Bruno Haible  <bruno@clisp.org>
64138
64139         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64140         already has it.
64141         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64142         2005-11-26.
64143
64144         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64145         'signed char' to avoid problems with the built-in _Bool type.
64146         Reported by Paul Eggert on 2005-11-26.
64147
64148 2006-01-24  Bruno Haible  <bruno@clisp.org>
64149
64150         * gnulib-tool (func_import): Avoid constructing complicated sed
64151         expressions inside backquote.
64152         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64153
64154 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64155
64156         These changes imported from libc.
64157         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64158         test and two separate function calls.
64159         * lib/strndup.c (__strndup): Add libc_hidden_def.
64160
64161 2006-01-23  Simon Josefsson  <jas@extundo.com>
64162
64163         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64164         Remove the test_*_SOURCES variable: automake infers it by default.
64165         * modules/tls-tests: Likewise.
64166
64167 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         Work around porting bugs reported by Dieter in
64170         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64171         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64172         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64173         Include "getopt.h" first, to check interface.
64174         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64175         !HAVE_DECL_GETENV.
64176         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64177         (__strndup): Revert to K&R-style function dfns, the glibc style.
64178         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64179         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64180         Include strnlen.h first, to get prototype properly.
64181         (strnlen): Renamed from __strnlen.
64182         Remove weak alias.
64183
64184 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64185
64186         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64187
64188 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64189
64190         * config/srclist.txt: Adjust to reflect glibc reorganization.
64191         This affects only comments.
64192
64193 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64194
64195          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64196          Reported by Bruce Korb <bkorb@gnu.org>.
64197
64198 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64201         to pacify gcc -Wswitch-default.
64202
64203 2006-01-22  Bruno Haible  <bruno@clisp.org>
64204
64205         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64206         temporary buffer for sprintf, take into account the precision also
64207         for 'd', 'i', 'u', 'o', 'x', 'X'.
64208
64209 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64210
64211         * modules/argp-tests: New module
64212         * tests/test-argp.c: New file
64213         * tests/test-argp-2.sh: New file
64214
64215 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64216
64217         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64218         (__argp_base_name): Removed
64219         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64220         typo.
64221         (__argp_base_name): Provide macro definition or extern declaration
64222         depending on the configuration
64223
64224 2006-01-20  Simon Josefsson  <jas@extundo.com>
64225
64226         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64227
64228 2006-01-20  Simon Josefsson  <jas@extundo.com>
64229
64230         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64231
64232 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64233
64234         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64235         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64236         Suggested by Bruno Haible.
64237
64238 2006-01-20  Karl Berry  <karl@gnu.org>
64239
64240         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64241         until changes propagate, I guess.
64242
64243 2006-01-19  Simon Josefsson  <jas@extundo.com>
64244
64245         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64246
64247 2006-01-19  Simon Josefsson  <jas@extundo.com>
64248
64249         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64250
64251 2006-01-19  Simon Josefsson  <jas@extundo.com>
64252
64253         * gnulib-tool: Set check_PROGRAMS.
64254
64255         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64256         modules/des-tests, modules/gc-arcfour-tests,
64257         modules/gc-arctwo-tests, modules/gc-des-tests,
64258         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64259         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64260         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64261         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64262         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64263         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64264         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64265         test_*_SOURCES.
64266
64267 2006-01-18  Simon Josefsson  <jas@extundo.com>
64268
64269         * modules/socklen (Depends-on): Depend on sys_socket.
64270
64271 2006-01-18  Simon Josefsson  <jas@extundo.com>
64272
64273         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64274         modules/des-tests, modules/gc-arcfour-tests,
64275         modules/gc-arctwo-tests, modules/gc-des-tests,
64276         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64277         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64278         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64279         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64280         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64281         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64282         $(EXEEXT) to automake TESTS variable, for mingw32.
64283
64284 2006-01-17  Simon Josefsson  <jas@extundo.com>
64285
64286         * modules/socklen (Include): Need sys/socket.h.
64287
64288 2006-01-17  Bruno Haible  <bruno@clisp.org>
64289
64290         * modules/ssize_t (Include): Add <sys/types.h>.
64291
64292 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64295         it's not portable and it doesn't work with cross-compiles.
64296         Problem reported by Bruno Haible.  Fix missing-$ typo in
64297         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64298         -zignore from being used with Sun's C compiler.
64299
64300 2006-01-12  Simon Josefsson  <jas@extundo.com>
64301
64302         * lib/base64.c: Fix warning, reported by Bruno Haible
64303         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64304
64305 2006-01-12  Bruno Haible  <bruno@clisp.org>
64306
64307         * modules/ldd: New file.
64308         * build-aux/ldd.sh.in: New file.
64309         * MODULES.html.sh (Support for building libraries and executables): Add
64310         ldd.
64311
64312 2006-01-12  Bruno Haible  <bruno@clisp.org>
64313
64314         * m4/ldd.m4: New file.
64315
64316 2006-01-12  Bruno Haible  <bruno@clisp.org>
64317
64318         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64319         endless loop while replacing $auxdir with build-aux.
64320
64321 2006-01-11  Simon Josefsson  <jas@extundo.com>
64322
64323         * lib/stdint_.h (SIZE_MAX): Add missing (.
64324
64325 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         Sync from coreutils.
64328         * lib/md5.c: Fix commentary typos.
64329         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64330         * lib/md5.h (__attribute__): Remove; unused.
64331         * lib/sha1.c: Fix commentary to match md5 better.
64332         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64333         so that we don't need to worry about alignment.  All uses changed.
64334         This merges the 2005-10-28 md5 change into sha1.
64335
64336 2006-01-11  Jim Meyering  <jim@meyering.net>
64337
64338         Sync from coreutils.
64339         * lib/md5.c (OP): Fix spacing.
64340
64341 2006-01-11  Bruno Haible  <bruno@clisp.org>
64342
64343         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64344         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64345         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64346
64347 2006-01-11  Bruno Haible  <bruno@clisp.org>
64348
64349         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64350         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64351         the "early" section as well.
64352
64353 2006-01-11  Bruno Haible  <bruno@clisp.org>
64354
64355         Avoid "ar: no archive members specified" error on MacOS X.
64356         * gnulib-tool (func_modules_add_dummy): New function.
64357         (func_import, func_create_testdir): Invoke it.
64358
64359 2006-01-11  Bruno Haible  <bruno@clisp.org>
64360
64361         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64362         with $auxdir in AC_CONFIG_FILES statements.
64363
64364 2006-01-11  Bruno Haible  <bruno@clisp.org>
64365
64366         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64367         Initialize also noinst_HEADERS to empty.
64368
64369 2006-01-11  Bruno Haible  <bruno@clisp.org>
64370
64371         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64372         variables.
64373         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64374         autoreconf.
64375
64376 2006-01-11  Bruno Haible  <bruno@clisp.org>
64377
64378         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64379         overridable by the user.
64380         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64381
64382 2006-01-10  Simon Josefsson  <jas@extundo.com>
64383
64384         * modules/sys_socket: New file.
64385
64386 2006-01-10  Simon Josefsson  <jas@extundo.com>
64387
64388         * m4/sys_socket_h.m4: New file.
64389
64390 2006-01-10  Simon Josefsson  <jas@extundo.com>
64391
64392         * lib/socket_.h: New file.
64393
64394 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * modules/readutmp (Maintainer): Add myself.
64397
64398 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64399
64400         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64401         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64402         People who are still concerned with buggy memcmp implementations
64403         can invoke gl_FUNC_MEMCMP themselves.
64404
64405 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         * lib/regex_internal.h (BITSET_WORD_BITS):
64408         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64409         preprocessor mishandles large unsigned values as if they were signed.
64410         Problem reported by Claudio Fontana in
64411         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64412
64413 2006-01-10  Jim Meyering  <jim@meyering.net>
64414
64415         Avoid the double-free (first in fts_read, second in fts_close) that
64416         would occur when an `active' directory is made inaccessible (e.g.,
64417         via chmod a-x) during a traversal.
64418         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64419         before returning.  Reproduce this failure by
64420         mkdir -p a/b; cd a; chmod a-x . b
64421         Reported by Stavros Passas.
64422
64423         Sync from coreutils.
64424         * lib/sha1.c: Tweak grammar in a comment.
64425
64426 2006-01-10  Jim Meyering  <jim@meyering.net>
64427
64428         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64429         Patch by Joerg Sonnenberger.
64430
64431 2006-01-10  Bruno Haible  <bruno@clisp.org>
64432
64433         * modules/readutmp: Depend on module free.
64434         * modules/strtok_r: Depend on module restrict.
64435
64436 2006-01-10  Bruno Haible  <bruno@clisp.org>
64437
64438         * modules/gettext (configure.ac): Add an invocation of
64439         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64440
64441 2006-01-10  Bruno Haible  <bruno@clisp.org>
64442
64443         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64444         Reported by Werner Lemberg <wl@gnu.org>.
64445
64446 2006-01-10  Bruno Haible  <bruno@clisp.org>
64447
64448         * lib/localcharset.c: Update from GNU gettext.
64449
64450 2006-01-10  Bruno Haible  <bruno@clisp.org>
64451
64452         * lib/argp.h (__const): Remove macro. Use const instead.
64453         * lib/argp-fmtstream.h (__const): Likewise.
64454         * lib/glob_.h (__const): Remove macro.
64455         * lib/glob-libc.h: Use const instead of __const.
64456
64457 2006-01-10  Bruno Haible  <bruno@clisp.org>
64458
64459         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64460         variable.
64461         Needed to avoid an automake error regarding the 'gettext' module.
64462
64463 2006-01-09  Simon Josefsson  <jas@extundo.com>
64464
64465         * modules/inet_ntop (Depends-on): Add restrict.
64466
64467 2006-01-09  Simon Josefsson  <jas@extundo.com>
64468
64469         * modules/gc-rijndael-tests (License): Put under LGPL.
64470
64471         * modules/gc-des-tests (License): Likewise.
64472
64473         * modules/gc-arcfour-tests (License): Likewise.
64474
64475         * modules/gc-arctwo-tests (License): Likewise.
64476
64477         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64478
64479         * modules/gc-hmac-sha1-tests (Files): Likewise.
64480
64481         * modules/gc-hmac-md5-tests (License): Likewise.
64482
64483         * modules/gc-sha1-tests (License): Likewise.
64484
64485         * modules/gc-md5-tests (License): Likewise.
64486
64487         * modules/gc-md4-tests (License): Likewise.
64488
64489         * modules/gc-md2-tests (License): Likewise.
64490
64491         * modules/gc-tests (License): Likewise.
64492
64493         * modules/des-tests (License): Likewise.
64494
64495         * modules/md4-tests (License): Likewise.
64496
64497         * modules/md2-tests (License): Likewise.
64498
64499 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         Sync from coreutils:
64502
64503         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64504         * modules/lib-ignore: New file.
64505         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64506         chdir-safer.m4, lchmod.m4.
64507         * modules/openat: Add mkdirat.c, openat-priv.h.
64508
64509 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64510
64511         Sync from coreutils.
64512         * m4/lib-ignore.m4: New file.
64513         * m4/lchmod.m4: New file.
64514
64515 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         Sync from coreutils.
64518         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64519         for write access: POSIX says that must fail.
64520         * lib/fts.c (diropen): Likewise.
64521         * lib/save-cwd.c (save_cwd): Likewise.
64522         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64523         well, for minor improvements on hosts that lack O_DIRECTORY.
64524         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64525         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64526         Fall back on chown if open failed with EACCES.
64527
64528         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64529         Report an error at compile-time if only a 1-second nominal clock
64530         resolution is found.
64531
64532         * lib/lchmod.h: New file.
64533         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64534         (make_dir_parents): Use lchown rather than chown, and
64535         lchmod rather than chmod.
64536
64537         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64538         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64539         "proc" reported by n0dalus.
64540
64541         * lib/mountlist.c: Include <limits.h>.
64542         (dev_from_mount_options)
64543         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64544         New function.  It no longer assumes "dev=" has the System V meaning
64545         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64546         (read_file_system_list)
64547         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64548         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64549         dev= in that case.
64550
64551         * lib/posixtm.h (PDS_PRE_2000): New macro.
64552         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64553         allow_century.  All usages changed.  Reject dates outside the range
64554         1969-1999 if PDS_PRE_2000 is used.
64555
64556 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         Sync from coreutils.
64559         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64560         (Time of day items): Mention the possibility of leap seconds.
64561         Problem reported by Dr. David Alan Gilbert.
64562
64563 2006-01-09  Jim Meyering  <jim@meyering.net>
64564
64565         Sync from coreutils.
64566
64567         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64568
64569         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64570
64571         * lib/modechange.c (mode_compile): Reject an invalid mode string
64572         that starts with an octal digit.  From Andreas Gruenbacher.
64573
64574         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64575         and dup to open_safer and dup_safer, respectively.
64576         (openat_permissive): Fix typo in comment.
64577
64578         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64579         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64580         (_): Remove; no longer needed.
64581         (openat): Renamed from rpl_openat; no need for rpl_openat
64582         since openat.h renames openat for us.
64583         Replace most of the body with a call to openat_permissive,
64584         to avoid duplicate code.
64585         Port to (probably hypothetical) environments were mode_t is
64586         wider than int.
64587         (openat_permissive): Require mode arg, so that we can check
64588         types better.  Put it just after flags.  Change cwd failure
64589         indicator from pointer-to-bool to pointer-to-errno-value.
64590         All callers changed.
64591         Invoke openat_save_fail and/or openat_restore_fail if
64592         cwd_errno is null, so that openat can call us.
64593         (openat_permissive, fdopendir, fstatat, unlinkat):
64594         Simplify errno handling to avoid some duplicate code,
64595         as it's OK to set errno on success.
64596         * lib/openat.h: Revamp code so that function macros depend on
64597         __OPENAT_PREFIX only, not also on AT_FDCWD.
64598         (openat_ro): Remove.  Caller changed to use openat_permissive.
64599         (openat_permissive): Now a macro, if not a function.
64600         (openat_restore_fail, openat_save_fail): Now always functions,
64601         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64602
64603         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64604         and openat.c.
64605         * lib/mkdirat.c: Include openat-priv.h.
64606         Remove definitions of macros defined therein.
64607         * lib/openat.c: Likewise.
64608
64609         * lib/mkdirat.c (mkdirat): New file and function.
64610         * lib/openat.h (mkdirat): Declare.
64611
64612         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64613
64614         * lib/openat.h (openat_permissive): Declare.
64615         (openat_ro): Define.
64616
64617         * lib/openat.c (EXPECTED_ERRNO): New macro.
64618         (openat_permissive): New function -- used in remove.c rewrite.
64619         (all functions): Set errno just before returning, only if there
64620         was an actual failure.
64621         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64622
64623         Emulate openat-family functions using Linux's procfs, if possible.
64624         Idea and some code based on Ulrich Drepper's glibc changes.
64625
64626         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64627         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64628         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64629         before falling back on save_cwd and restore_cwd.
64630         (fdopendir, fstatat, unlinkat): Likewise.
64631
64632         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64633         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64634
64635         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64636         as second argument to va_arg.  Otherwise, some versions of gcc
64637         warn that `if this code is reached, the program will abort'.
64638
64639 2006-01-09  Jim Meyering  <jim@meyering.net>
64640
64641         Sync from coreutils.
64642         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64643         Require openat-priv.h.
64644
64645 2006-01-09  Bruno Haible  <bruno@clisp.org>
64646
64647         * modules/strnlen (Include): Use strnlen.h.
64648
64649 2006-01-09  Bruno Haible  <bruno@clisp.org>
64650
64651         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64652
64653 2006-01-09  Bruno Haible  <bruno@clisp.org>
64654
64655         * lib/sysexit_.h (EX_OK): New macro.
64656         Suggested by Martin Lambers <marlam@marlam.de>.
64657
64658 2006-01-09  Bruno Haible  <bruno@clisp.org>
64659
64660         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64661         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64662
64663 2006-01-09  Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64666         numbers.
64667
64668 2006-01-09  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64671         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64672         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64673         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64674
64675 2006-01-09  Bruno Haible  <bruno@clisp.org>
64676
64677         * build-aux/javacomp.sh.in: New file, moved from lib/.
64678         * modules/javacomp-script (Files): Update.
64679         (configure.ac): Add AC_CONFIG_FILES invocation.
64680         (EXTRA_DIST): Remove variable.
64681
64682         * build-aux/javaexec.sh.in: New file, moved from lib/.
64683         * modules/javaexec (Files): Update.
64684         (configure.ac): Add AC_CONFIG_FILES invocation.
64685         (EXTRA_DIST): Remove javaexec.sh.in.
64686
64687         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64688         * modules/csharpcomp-script (Files): Update.
64689         (configure.ac): Add AC_CONFIG_FILES invocation.
64690         (EXTRA_DIST): Remove variable.
64691
64692         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64693         * modules/csharpexec (Files): Update.
64694         (configure.ac): Add AC_CONFIG_FILES invocation.
64695         (EXTRA_DIST): Remove csharpexec.sh.in.
64696
64697 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64698
64699         Sync from coreutils.
64700
64701         Add POSIX ACL support
64702         * lib/acl.h (copy_acl, set_acl): Add declarations.
64703         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64704         systems other than Linux.
64705         (chmod_or_fchmod): New function: use fchmod when possible,
64706         and chmod otherwise.
64707         (file_has_acl): Add a POSIX ACL implementation, with a
64708         Linux-specific subcase.
64709         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64710         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64711         acls are unsupported.
64712         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64713         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64714         are unsupported.
64715
64716 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64717
64718         Sync from coreutils.
64719         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64720
64721 2006-01-07  Bruno Haible  <bruno@clisp.org>
64722
64723         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64724         gl_EARLY.
64725
64726 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64727
64728         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64729         Problem reported for Mingw by Mark Junker.
64730
64731 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         * README: Gnulib normally doesn't generate a tarball.
64734
64735 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64736
64737         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64738         long int, not int, for nanosecond counts, so that people who are
64739         used to POSIX struct timespec won't be surprised.  Reported by Jim
64740         Meyering.
64741
64742 2005-12-28  Bruno Haible  <bruno@clisp.org>
64743
64744         * build-aux/config.rpath: Update from GNU gettext.
64745
64746 2005-12-16  Jim Meyering  <jim@meyering.net>
64747
64748         * modules/fprintftime: New module.
64749         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64750
64751 2005-12-16  Jim Meyering  <jim@meyering.net>
64752
64753         * m4/fprintftime.m4: New file.
64754
64755 2005-12-16  Jim Meyering  <jim@meyering.net>
64756
64757         * lib/fprintftime.c, lib/fprintftime.h: New files.
64758
64759 2005-12-15  Simon Josefsson  <jas@extundo.com>
64760
64761         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64762         new m4/socklen.m4.
64763
64764 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64765
64766         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64767         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64768
64769 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64770
64771         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64772         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64773         struct uparams is valid. Fall back to the default values if it is
64774         not.
64775
64776 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64777
64778         * modules/argp (Files): Add argp-pin.c
64779         (Depends-on): dirname
64780         (lib_SOURCES): Add argp-pin.c
64781
64782 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64783
64784         * m4/argp.m4:  Check if program_invocation_name and
64785         program_invocation_short_name are declared and define appropriate
64786         macros if they are not.
64787
64788 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64789
64790         * lib/argp-help.c (__argp_base_name): New function
64791         (__argp_short_program_name): Rewrite using __argp_base_name
64792         * lib/argp-namefrob.h: Define program_invocation_name and
64793         program_invocation_short_name if requested
64794         (__argp_base_name): Add prototype
64795         * lib/argp-parse.c (argp_def): Use gettext wrappers
64796         (argp_default_parser): Use __argp_base_name
64797         * lib/argp-pin.c: New file. Defines program_invocation_name and
64798         program_invocation_short_name on systems that lack them.
64799
64800 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64801
64802         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64803         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64804         porting problem reported by Georg Schwarz in
64805         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64806
64807 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64810         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64811         porting problem reported by Georg Schwarz in
64812         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64813
64814 2005-12-05  Bruno Haible  <bruno@clisp.org>
64815
64816         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64817         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64818         Reported by Mark Junker <mjscod@gmx.de>.
64819
64820 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64821
64822         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64823         Use implementation from Albert Chin, with some
64824         comments/corrections by Stepan Kasal and myself.
64825
64826 2005-12-02  Bruno Haible  <bruno@clisp.org>
64827
64828         * gnulib-tool (func_import): Accept GPLed build tool modules when
64829         --lgpl is given.
64830         * modules/csharpcomp-script: New file.
64831         * modules/csharpcomp: Depend on it.
64832         * modules/javacomp-script: New file.
64833         * modules/javacomp: Depend on it.
64834         Suggested by Simon Josefsson.
64835
64836 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64839         statement, to work around an HP-UX 10.20 compiler bug reported by
64840         Peter O'Gorman.
64841
64842 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * modules/savedir (Depends-on): Add openat.
64845
64846 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64849         (uintmax_t) [defined uintmax_t]: Do not declare.
64850         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64851         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64852         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64853         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64854         sake of portability to weird hosts that C allows (though we don't
64855         know of any practical examples).
64856
64857         * lib/savedir.h (fdsavedir): New decl.
64858         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64859         contains most of the former guts of savedir.
64860         (savedir): Use savedirstream.
64861         Include "openat.h".
64862
64863 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * modules/obstack (Files): Add m4/ulonglong.m4.
64866         Problem reported by Davide Angelocola.
64867
64868 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64871         coreutils no longer futzes with rounding modes.
64872
64873 2005-11-14  Jim Meyering  <jim@meyering.net>
64874
64875         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64876         replacement of mkstemp.
64877
64878 2005-11-10  Simon Josefsson  <jas@extundo.com>
64879
64880         * lib/readline.c: Remove EOL.
64881
64882 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64883
64884         * modules/gethrxtime (Depends-on): Add gettime.
64885
64886 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64889         or gettimeofday; no longer needed.
64890
64891 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64892
64893         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64894         time business.
64895         (gethrxtime) [! (HAVE_NANOUPTIME
64896         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64897         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64898         our own approximation.
64899
64900 2005-11-08  Eric Blake  <ebb9@byu.net>
64901
64902         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64903
64904 2005-11-08  Eric Blake  <ebb9@byu.net>
64905
64906         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64907
64908 2005-11-04  Bruno Haible  <bruno@clisp.org>
64909
64910         * gnulib-tool: Implement --update mode.
64911
64912 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64913
64914         Fix porting problem reported by Theodoros V. Kalamatianos.
64915         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64916         Don't assume that futimes failing means we must fail.
64917
64918 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64919
64920         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64921         variables to suggest the intended function of the PATH_MAX check.
64922
64923 2005-10-30  Kean Johnston  <jkj@sco.com>
64924
64925         Trivial changes to support SCO systems.
64926         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64927         as PATH_MAX.
64928         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64929         where __ptr is null when no I/O is pending.
64930
64931 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64934         leave errno alone.  Problem reported by Dmitry V. Levin.
64935
64936 2005-10-28  Simon Josefsson  <jas@extundo.com>
64937
64938         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64939         Test more.
64940
64941         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64942
64943         * modules/md2, modules/md2-tests: New files.
64944
64945 2005-10-28  Simon Josefsson  <jas@extundo.com>
64946
64947         * m4/inet_ntop.m4: More tests.
64948
64949         * m4/gc-md2.m4, md2.m4: New file.
64950
64951 2005-10-28  Simon Josefsson  <jas@extundo.com>
64952
64953         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64954         "restrict" keywords, as per POSIX.  Protect the function
64955         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64956         Don't use K&R prototypes.  Check the sprintf return values.
64957         Re-define EAFNOSUPPORT if not present.  Indent.
64958
64959         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64960         suggested by Bruno Haible <bruno@clisp.org>.
64961
64962         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64963
64964         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64965
64966         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64967         libgcrypt).
64968
64969         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64970
64971         * lib/md2.h, lib/md2.c: New files.
64972
64973 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64976         errno alone.  Problem reported by Frederic Jolliton.
64977
64978 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * modules/verify (License): Change from GPL to LGPL.  This is a
64981         tiny module and there are apparently near-equivalents that are
64982         under the BSD license.
64983
64984 2005-10-24  Simon Josefsson  <jas@extundo.com>
64985
64986         * modules/sha1: Relicense to LGPL.
64987
64988 2005-10-24  Simon Josefsson  <jas@extundo.com>
64989
64990         * lib/md4.h: Shrink buffer size, now that we changed the type.
64991
64992 2005-10-23  Simon Josefsson  <jas@extundo.com>
64993
64994         * gnulib-tool (func_import): Fix --tests-base.
64995
64996 2005-10-22  Simon Josefsson  <jas@extundo.com>
64997
64998         * modules/arcfour (Depends-on): Need stdint.
64999
65000 2005-10-22  Simon Josefsson  <jas@extundo.com>
65001
65002         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65003         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65004
65005 2005-10-22  Simon Josefsson  <jas@extundo.com>
65006
65007         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65008         suggested by Bruno Haible <bruno@clisp.org>.
65009
65010 2005-10-22  Simon Josefsson  <jas@extundo.com>
65011
65012         * lib/crc.h: Include stddef.h, for size_t.
65013
65014 2005-10-22  Simon Josefsson  <jas@extundo.com>
65015
65016         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65017         arcfour_context struct (simplify test vector testing in GNU
65018         Shishi).
65019
65020 2005-10-21  Simon Josefsson  <jas@extundo.com>
65021
65022         * modules/des, modules/des-tests: New files.
65023
65024         * modules/gc-des, modules/gc-des-tests: New files.
65025
65026         * tests/test-des.c, tests/test-gc-des.c: New file.
65027
65028 2005-10-21  Simon Josefsson  <jas@extundo.com>
65029
65030         * modules/arctwo, modules/arctwo-tests: New files.
65031
65032         * tests/test-arctwo.c: New file.
65033
65034         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65035
65036         * tests/test-gc-arctwo.c: New file.
65037
65038 2005-10-21  Simon Josefsson  <jas@extundo.com>
65039
65040         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65041         Bruno Haible <bruno@clisp.org>.
65042
65043         * m4/gc-des.m4: New file.
65044
65045 2005-10-21  Simon Josefsson  <jas@extundo.com>
65046
65047         * m4/arctwo.m4: New file.
65048
65049         * m4/gc-arctwo.m4: New file.
65050
65051 2005-10-21  Simon Josefsson  <jas@extundo.com>
65052
65053         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65054         block.
65055
65056 2005-10-21  Simon Josefsson  <jas@extundo.com>
65057
65058         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65059         <bruno@clisp.org>.
65060
65061         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65062
65063         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65064         Bruno Haible <bruno@clisp.org>.
65065
65066         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65067         <bruno@clisp.org>.
65068
65069 2005-10-21  Simon Josefsson  <jas@extundo.com>
65070
65071         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65072
65073 2005-10-21  Simon Josefsson  <jas@extundo.com>
65074
65075         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65076
65077 2005-10-21  Simon Josefsson  <jas@extundo.com>
65078
65079         * lib/des.h, lib/des.c: New files.
65080
65081         * lib/gc-gnulib.c: Support DES.c
65082
65083 2005-10-21  Simon Josefsson  <jas@extundo.com>
65084
65085         * lib/arctwo.h, lib/arctwo.c: New files.
65086
65087         * lib/gc-gnulib.c: Support ARCTWO.
65088
65089 2005-10-21  Simon Josefsson  <jas@extundo.com>
65090
65091         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65092         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65093
65094 2005-10-21  Simon Josefsson  <jas@extundo.com>
65095
65096         * gnulib-tool (func_import, func_create_testdir): Define automake
65097         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65098         Makefile.am snippet),
65099         suggested by Bruno Haible <bruno@clisp.org>.
65100
65101         * modules/gc (Makefile.am): Use it.
65102
65103 2005-10-21  Bruno Haible  <bruno@clisp.org>
65104
65105         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65106         patch.
65107
65108 2005-10-19  Simon Josefsson  <jas@extundo.com>
65109
65110         * tests/test-gc-rijndael.c: New file.
65111
65112         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65113
65114 2005-10-19  Simon Josefsson  <jas@extundo.com>
65115
65116         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65117         interface too.
65118
65119 2005-10-19  Simon Josefsson  <jas@extundo.com>
65120
65121         * tests/test-gc-arcfour.c: New file.
65122
65123         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65124
65125 2005-10-19  Simon Josefsson  <jas@extundo.com>
65126
65127         * modules/gc-md4, modules/gc-md4-tests: New file.
65128
65129         * tests/test-gc-md4.c: New file.
65130
65131 2005-10-19  Simon Josefsson  <jas@extundo.com>
65132
65133         * m4/gc-md4.m4: New file.
65134
65135 2005-10-19  Simon Josefsson  <jas@extundo.com>
65136
65137         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65138         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65139         <kasal@ucw.cz>.
65140
65141 2005-10-19  Simon Josefsson  <jas@extundo.com>
65142
65143         * m4/gc-arcfour.m4: New file.
65144
65145         * m4/gc-rijndael.m4: New file.
65146
65147 2005-10-19  Simon Josefsson  <jas@extundo.com>
65148
65149         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65150
65151 2005-10-19  Simon Josefsson  <jas@extundo.com>
65152
65153         * lib/gc-gnulib.c: Support ARCFOUR.
65154
65155 2005-10-19  Simon Josefsson  <jas@extundo.com>
65156
65157         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65158         support.
65159
65160         * lib/gc.h: Add ECB enum type.
65161
65162         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65163
65164 2005-10-18  Simon Josefsson  <jas@extundo.com>
65165
65166         * tests/test-md5.c: New file.
65167
65168         * modules/md5-tests: New file.
65169
65170 2005-10-18  Simon Josefsson  <jas@extundo.com>
65171
65172         * tests/test-md4.c: New file.
65173
65174         * modules/md4, modules/md4-tests: New files.
65175
65176 2005-10-18  Simon Josefsson  <jas@extundo.com>
65177
65178         * m4/md4.m4: New file.
65179
65180 2005-10-18  Simon Josefsson  <jas@extundo.com>
65181
65182         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65183
65184 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65185
65186         * gnulib-tool (func_create_testdir): Omit the second check whether
65187         BUILT_SOURCES in nonempty.
65188
65189 2005-10-17  Simon Josefsson  <jas@extundo.com>
65190
65191         * tests/test-rijndael.c: New file.
65192
65193 2005-10-17  Simon Josefsson  <jas@extundo.com>
65194
65195         * modules/sha1: Depend on stdint instead of md5.
65196
65197         * modules/md5: Depend on stdint, remove uint32_t.
65198
65199 2005-10-17  Simon Josefsson  <jas@extundo.com>
65200
65201         * modules/gc-sha1-tests: New file.
65202
65203         * tests/test-gc-sha1.c: New file.
65204
65205 2005-10-17  Simon Josefsson  <jas@extundo.com>
65206
65207         * m4/md5.m4: Remove call to uint32_t.m4.
65208
65209 2005-10-17  Simon Josefsson  <jas@extundo.com>
65210
65211         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65212
65213         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65214         md5.h.
65215
65216         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65217
65218         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65219
65220 2005-10-17  Simon Josefsson  <jas@extundo.com>
65221
65222         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65223
65224 2005-10-17  Simon Josefsson  <jas@extundo.com>
65225
65226         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65227
65228 2005-10-17  Simon Josefsson  <jas@extundo.com>
65229
65230         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65231
65232         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65233
65234 2005-10-17  Bruno Haible  <bruno@clisp.org>
65235
65236         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65237         that it can also be used in a test.
65238
65239 2005-10-16  Bruno Haible  <bruno@clisp.org>
65240
65241         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65242         TESTS_ENVIRONMENT, so that individual tests can augment it.
65243
65244         * gnulib-tool (func_create_testdir): Use an intermediate target for
65245         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65246         macros, like $(ALLOCA_H), which cannot be passed through the command
65247         line.
65248
65249 2005-10-15  Simon Josefsson  <jas@extundo.com>
65250
65251         * modules/rijndael-tests: New file.
65252
65253         * modules/rijndael: New file.
65254
65255 2005-10-15  Simon Josefsson  <jas@extundo.com>
65256
65257         * m4/rijndael.m4: New file.
65258
65259 2005-10-15  Simon Josefsson  <jas@extundo.com>
65260
65261         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65262
65263         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65264
65265 2005-10-14  Simon Josefsson  <jas@extundo.com>
65266
65267         * tests/test-arcfour.c: New file.
65268
65269         * modules/arcfour, modules/arcfour-tests: New files.
65270
65271 2005-10-14  Simon Josefsson  <jas@extundo.com>
65272
65273         * m4/arcfour.m4: New file.
65274
65275 2005-10-14  Simon Josefsson  <jas@extundo.com>
65276
65277         * lib/arcfour.h, lib/arcfour.c: New files.
65278
65279 2005-10-14  Roland McGrath  <roland@redhat.com>
65280
65281         Import from libc.  [BZ #1331]
65282         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65283         macro argument.
65284         Reported by Matej Vela <vela@debian.org>.
65285
65286 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65287
65288         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65289         include <wchar.h>; no longer needed.
65290
65291 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65294
65295 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65296         and  Ulrich Drepper  <drepper@redhat.com>
65297
65298         Import from libc.
65299         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65300         instead of inline stream orientation test and two separate
65301         function calls.  Pay no attention to USE_IN_LIBIO.
65302
65303 2005-10-13  Simon Josefsson  <jas@extundo.com>
65304
65305         * modules/gc-hmac-md5-tests: New file.
65306
65307         * tests/test-gc-hmac-sha1.c: New file.
65308
65309         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65310
65311         * modules/gc-hmac-md5-tests: New file.
65312
65313         * tests/test-gc-md5.c: New file.
65314
65315         * modules/gc-md5-tests: New file.
65316
65317 2005-10-13  Simon Josefsson  <jas@extundo.com>
65318
65319         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65320         Move memory allocation outside of loop.
65321
65322 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65323
65324         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65325         intermediate directory is in a read-only file system.  Problem
65326         reported by Eric Blake.
65327
65328 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65329
65330         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65331
65332 2005-10-12  Simon Josefsson  <jas@extundo.com>
65333
65334         * tests/test-hmac-sha1.c: New file.
65335
65336         * modules/hmac-sha1-tests: New file.
65337
65338         * modules/hmac-sha1: New file.
65339
65340 2005-10-12  Simon Josefsson  <jas@extundo.com>
65341
65342         * modules/gc-sha1: New file.
65343
65344 2005-10-12  Simon Josefsson  <jas@extundo.com>
65345
65346         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65347
65348         * tests/test-gc-pbkdf2-sha1.c: New file.
65349
65350 2005-10-12  Simon Josefsson  <jas@extundo.com>
65351
65352         * modules/gc-md5, modules/gc-hmac-md5: New files.
65353
65354         * modules/gc (Files): Remove md5, memxor and hmac files.
65355
65356 2005-10-12  Simon Josefsson  <jas@extundo.com>
65357
65358         * m4/gc-pbkdf2-sha1.m4: New file.
65359
65360         * m4/gc-hmac-sha1.m4: New file.
65361
65362         * m4/gc-sha1: New file.
65363
65364         * m4/hmac-sha1.m4: New file.
65365
65366 2005-10-12  Simon Josefsson  <jas@extundo.com>
65367
65368         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65369
65370         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65371
65372 2005-10-12  Simon Josefsson  <jas@extundo.com>
65373
65374         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65375         suggested by Bruno Haible <bruno@clisp.org>.
65376
65377 2005-10-12  Simon Josefsson  <jas@extundo.com>
65378
65379         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65380
65381 2005-10-12  Simon Josefsson  <jas@extundo.com>
65382
65383         * lib/gc-pbkdf2-sha1.c: New file.
65384
65385         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65386
65387 2005-10-12  Simon Josefsson  <jas@extundo.com>
65388
65389         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65390
65391         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65392
65393 2005-10-12  Simon Josefsson  <jas@extundo.com>
65394
65395         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65396         GC_USE_HMAC_MD5, respectively.
65397
65398         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65399         (gc_md5): Fix typo.
65400
65401         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65402
65403         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65404
65405         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65406
65407 2005-10-12  Bruno Haible  <bruno@clisp.org>
65408
65409         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65410         Reported by Stepan Kasal <kasal@ucw.cz>.
65411
65412 2005-10-11  Simon Josefsson  <jas@extundo.com>
65413
65414         * tests/test-crc.c: New file.
65415
65416         * modules/crc, modules/crc-tests: New files.
65417
65418 2005-10-11  Simon Josefsson  <jas@extundo.com>
65419
65420         * m4/crc.m4: New file.
65421
65422 2005-10-11  Simon Josefsson  <jas@extundo.com>
65423
65424         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65425
65426         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65427
65428         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65429
65430 2005-10-11  Simon Josefsson  <jas@extundo.com>
65431
65432         * lib/crc.h, lib/crc.c: New files.
65433
65434         * lib/gc.h (gc_hash_buffer): Add doc.
65435
65436 2005-10-11  Bruno Haible  <bruno@clisp.org>
65437
65438         * modules/c-strcasestr: New file.
65439         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65440
65441 2005-10-11  Bruno Haible  <bruno@clisp.org>
65442
65443         * modules/c-strcase: New file.
65444         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65445
65446 2005-10-11  Bruno Haible  <bruno@clisp.org>
65447
65448         * lib/strcasecmp.c: Include limits.h.
65449         (strcasecmp): Avoid integer overflow on exotic platforms.
65450         * lib/strncasecmp.c: Include limits.h.
65451         (strncasecmp): Avoid integer overflow on exotic platforms.
65452         Reported by Paul Eggert.
65453
65454 2005-10-11  Bruno Haible  <bruno@clisp.org>
65455
65456         * lib/c-strcasestr.h: New file, from GNU gettext.
65457         * lib/c-strcasestr.c: New file, from GNU gettext.
65458
65459 2005-10-11  Bruno Haible  <bruno@clisp.org>
65460
65461         * lib/c-strcase.h: New file, from GNU gettext.
65462         * lib/c-strcasecmp.c: New file, from GNU gettext.
65463         * lib/c-strncasecmp.c: New file, from GNU gettext.
65464
65465 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65466
65467         * modules/mempcpy (License): GPL -> LGPL.
65468         * modules/strchrnul (License): Likewise.
65469         * modules/sysexits (License): Likewise.
65470
65471 2005-10-08  Simon Josefsson  <jas@extundo.com>
65472
65473         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65474
65475 2005-10-07  Simon Josefsson  <jas@extundo.com>
65476
65477         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65478
65479 2005-10-06  Simon Josefsson  <jas@extundo.com>
65480
65481         * tests/test-hmac-md5.c: New file.
65482
65483         * modules/hmac-md5-tests: New file.
65484
65485         * modules/hmac-md5: New file.
65486
65487 2005-10-06  Simon Josefsson  <jas@extundo.com>
65488
65489         * m4/hmac-md5.m4: New file.
65490
65491         * m4/memxor.m4: Require gl_C_RESTRICT.
65492
65493 2005-10-06  Simon Josefsson  <jas@extundo.com>
65494
65495         * lib/memxor.c (memxor): Avoid casts and warnings.
65496
65497 2005-10-06  Simon Josefsson  <jas@extundo.com>
65498
65499         * lib/hmac-md5.c: New file.
65500
65501         * lib/hmac.h: New file.
65502
65503 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65506         promotes to int, not unsigned int, to catch the AIX 5.3
65507         compiler bug.
65508
65509 2005-10-05  Simon Josefsson  <jas@extundo.com>
65510
65511         * modules/memxor: New file.
65512
65513         * modules/iconv (Files): Move config.rpath to havelib, it is used
65514         there.
65515
65516         * modules/havelib (Files): Add config.rpath.
65517
65518 2005-10-05  Simon Josefsson  <jas@extundo.com>
65519
65520         * m4/memxor.m4: New file.
65521
65522 2005-10-05  Simon Josefsson  <jas@extundo.com>
65523
65524         * lib/memxor.c (memxor): Fix compiler error.
65525
65526         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65527         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65528
65529         * lib/memxor.h, lib/memxor.c: New files.
65530
65531         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65532         we assume all systems have it, suggested by Jim Meyering
65533         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65534         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65535         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65536         same reasons.
65537
65538 2005-10-05  Simon Josefsson  <jas@extundo.com>
65539
65540         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65541
65542 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65543
65544         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65545         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65546         needed, since the source code now assumes these .h files.
65547
65548 2005-10-05  Derek Price  <derek@ximbiot.com>
65549
65550         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65551
65552 2005-10-05  Bruno Haible  <bruno@clisp.org>
65553
65554         * modules/stdint (License): Change to LGPL.
65555
65556 2005-10-04  Simon Josefsson  <jas@extundo.com>
65557
65558         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65559         D. Baushke" <mdb@gnu.org>.
65560
65561 2005-10-04  Bruno Haible  <bruno@clisp.org>
65562
65563         * lib/verify.h (verify_true): Provide alternative definition for C++.
65564
65565 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65566
65567         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65568         (SSIZE_MAX): New macro, if not already defined.
65569         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65570         than 2 GiB.
65571
65572 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         Sync from coreutils.
65575         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65576         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65577         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65578         ULLONG_MAX doesn't work with 2.7.2.1.
65579
65580 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65581
65582         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65583         From Ben Pfaff.
65584
65585         * modules/exclude (Depends-on): Depend on verify.
65586         * modules/strtoimax (Depends-on): Likewise.
65587         * modules/utimecmp (Depends-on): Likewise.
65588
65589 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * lib/exclude.c: Include verify.h.
65592         (verify): Remove.  All callers changed to use verify.h's version.
65593         * lib/strtoimax.c: Likewise.
65594         * lib/utimecmp.c: Likewis.e
65595
65596         Sync from coreutils.
65597         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65598         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65599         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65600         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65601         bother returning ENOSYS if settimeofday or stime fails; just let
65602         them return whatever errno they want to return.
65603         * lib/utimens.c: Include unistd.h, for dup2.
65604         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65605         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65606
65607 2005-10-02  Jim Meyering  <jim@meyering.net>
65608
65609         Sync from coreutils.
65610         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65611         from glibc-2.2.5 that fails for read-only files.
65612
65613 2005-10-02  Jim Meyering  <jim@meyering.net>
65614
65615         Sync from coreutils.
65616         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65617         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65618         `#if HAVE_CONFIG_H'.
65619         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65620         Remove AT_FDCWD test.
65621         Do not consume the fd unless successful.
65622         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65623         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65624         block, so that we don't even try to compile it if settimeofday is
65625         available.  This works around a compilation failure on OSF1 V5.1,
65626         due to stime requiring a `long int*' while tv_sec is `int'.
65627
65628 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65629
65630         Sync from coreutils.
65631         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65632         against `yes', rather than just testing for nonempty.
65633
65634 2005-10-01  Simon Josefsson  <jas@extundo.com>
65635
65636         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65637         and Darwin.
65638
65639         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65640         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65641         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65642         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65643         Check if struct addrinfo is declared.
65644
65645 2005-10-01  Simon Josefsson  <jas@extundo.com>
65646
65647         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65648         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65649         AI_* and EAI_* definitions.  Protect function declarations.
65650
65651 2005-10-01  Jim Meyering  <jim@meyering.net>
65652
65653         Sync from coreutils.
65654
65655         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65656         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65657         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65658         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65659         in the inet and nsl libraries.  Required on Solaris 5.7.
65660
65661 2005-10-01  Jim Meyering  <jim@meyering.net>
65662
65663         Sync from coreutils.
65664         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65665         in the inet and nsl libraries.  Required on Solaris 5.7.
65666
65667 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65668
65669         * lib/getdelim.c (getdelim): Remove unused variables.
65670
65671 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65674         so that the code works even with ancient cpp.  Portability problem
65675         with GCC 2.7.2.1 reported by Thomas M.Ott.
65676
65677 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         * modules/regex (Depends-on): Add strcase.
65680
65681         * modules/gethostname (Licence): Change from GPL to LGPL, since
65682         gethostname.c is a trivial implementation of a standard library
65683         function.
65684         * modules/poll (License): Change from GPL to LGPL, since it's
65685         derived from LGPL code.
65686
65687 2005-09-27  Jim Meyering  <jim@meyering.net>
65688
65689         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65690         HAVE_CONFIG_H.
65691
65692         * lib/intprops.h (signed_type_or_expr__): Define.
65693         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65694         for unsigned types.
65695
65696 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * lib/verify.h (verify_expr): Remove, replacing with:
65699         (verify_true): New macro that returns true instead of void.
65700         (verify_type__): Remove.
65701         (verify): Use verify_true rather than verify_type__.
65702
65703 2005-09-26  Bruno Haible  <bruno@clisp.org>
65704
65705         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65706         is necessary.
65707         (lib_SOURCES): Remove mbchar.c.
65708         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65709         (Files): Add m4/mbrtowc.m4.
65710         * modules/mbiter: Likewise.
65711         * modules/mbuiter: Likewise.
65712
65713 2005-09-26  Bruno Haible  <bruno@clisp.org>
65714
65715         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65716         compile mbchar.c if they are not both present.
65717         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65718         * m4/mbiter.m4 (gl_MBITER): Likewise.
65719         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65720         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65721         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65722
65723 2005-09-25  Jim Meyering  <jim@meyering.net>
65724
65725         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65726         also uses socklen_t.
65727
65728 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         * lib/utimens.c (ENOSYS): Define if not already defined.
65731         (futimens): Support having a null PATH if the file descriptor
65732         is nonnegative.
65733
65734         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65735         Remove.
65736         (__attribute): Define to empty unless GCC 3.1 or later.
65737         This works around a core dump on OpenBSD 3.4, which has GCC
65738         2.95.3, which dumps core when given __attribute__(()).  It also
65739         simplifies other tests, since we really don't want to bother with
65740         worrying about which ancient version of GCC supported what.
65741         Original problem reported by Yoann Vandoorselaere, with part of
65742         the fix suggested by Derek Price.
65743
65744 2005-09-24  Jim Meyering  <jim@meyering.net>
65745
65746         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65747         so we can once again use a positive bitfield width of 1 -- now we
65748         don't have to explain why we were using a bitfield width of 2.
65749
65750 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65753         and similarly for the other external symbols.  Problem reported
65754         by James Gallager.
65755
65756         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65757         bug reported by Jim Meyering.
65758
65759         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65761         not needed, since socklen is a prerequisite module.
65762
65763 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65764
65765         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65766         Problem reported by Eric Blake.
65767         (getaddrinfo): Initialize se so that it's not garbage.
65768         Redo internal storage allocation so that it doesn't make unportable
65769         assumptions about alignment.
65770         Fix a memory leak.
65771
65772         * lib/utimens.c (futimens): Use futimesat if available.
65773         Prefer it to futimes since it doesn't have the futimes bug.
65774
65775         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65776         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65777         Instead, declare a function that returns a pointer to an array,
65778         and use verify_type__ to declare the size of the array.
65779         Problem and germ of a solution reported by Bruno Haible.
65780         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65781         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65782
65783 2005-09-23  Jim Meyering  <jim@meyering.net>
65784
65785         Sync from coreutils.
65786         Correct build failure (socklen_t not defined) on at least
65787         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65788         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65789
65790 2005-09-23  Jim Meyering  <jim@meyering.net>
65791
65792         * modules/getaddrinfo (Depends-on): Add socklen.
65793
65794 2005-09-23  Bruno Haible  <bruno@clisp.org>
65795
65796         * tests/test-verify.c: New file.
65797
65798 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65799
65800         Sync from coreutils.
65801
65802         * modules/argmatch (Depends-on): Add verify.
65803         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65804         unistd-safer.
65805         * modules/save-cwd (Depends-on): Likewise.
65806
65807         * modules/openat (Files): Add lib/openat-die.c.
65808         (Depends-on): Remove error, exitfail.
65809         Add dirname.
65810
65811         * modules/verify: New file.
65812         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65813         with "verify" module.
65814
65815 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         Sync from coreutils.
65818
65819         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65820         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65821         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65822         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65823         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65824         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65825         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65826         Don't bother checking for string.h, stdlib.h, unistd.h.
65827         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65828         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65829         module's job.
65830         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65831         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65832
65833         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65834         (gl_GETDATE): Use it.
65835
65836         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65837
65838 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65839
65840         Sync from coreutils.
65841
65842         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65843         stat-time.h.
65844         * lib/argmatch.h: Include verify.h
65845         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65846         (ARGMATCH_ASSERT): Remove; unused.
65847         * lib/canonicalize.c: Assume STDC_HEADERS.
65848         * lib/exclude.c: Include "strcase.h".
65849         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65850         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65851         and stdio-safer.h.
65852         (getusershell): Call fopen, not fopen_safer.
65853         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65854         Do not include unistd-safer.h.
65855         (save_cwd): Don't call fd_safer; no longer needed
65856         now that we include fcntl--.h.
65857
65858         * lib/getdate.y (relative_time): New type.
65859         (RELATIVE_TIME_0): New constant.
65860         (parser_control): Use relative_time instead of doing it ourselves.
65861         (%union): Add new relative_time rel member.
65862         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65863         Now typeless.
65864         (relunit, relunit_snumber): Now of type rel.
65865         (zone, rel, relunit, get_date): Adjust to above changes.
65866
65867         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65868         Do not include unistd-safer.h.
65869         (getloadavg): Don't call fd_safer; no longer needed
65870         now that we include fcntl--.h.
65871
65872         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65873         (make_dir_parents): Treat ENOSYS like EEXIST.
65874
65875         Improve quality of diagnostics on restore_cwd failure.
65876         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65877         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65878         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65879         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65880         each time through the loop.  Do not diagnose restore_cwd failure;
65881         that is the caller's job (and perhaps the caller does not care).
65882
65883         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65884         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65885         If the file already exists but is not a directory, don't bother
65886         to try to make its parents.
65887         Close potential file descriptor leak if we can't chdir("/") (!).
65888         Don't always return true if chdir($PWD) fails; return true only
65889         if the requested action was done successfully (except for the
65890         chdir($PWD)).
65891         Don't log final directory unless we actually made it.
65892         Refactor to avoid duplicate code to fix up permissions.
65893         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65894
65895         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65896         to make it a bit faster and (I hope) clearer.
65897         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65898         Fix bug in formats like %2N.
65899
65900         * lib/verify.h: New file.
65901
65902 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65903
65904         Sync from coreutils.
65905         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65906
65907 2005-09-22  Jim Meyering  <jim@meyering.net>
65908
65909         Sync from coreutils.
65910
65911         * m4/lstat.m4 (gl_FUNC_LSTAT):
65912         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65913         Remove obsolete comment.
65914         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65915         * m4/xstrtod.m4: Likewise.
65916
65917         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65918
65919 2005-09-22  Jim Meyering  <jim@meyering.net>
65920
65921         Sync from coreutils.
65922
65923         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65924
65925         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65926         the .tm_year member, since otherwise gcc-4.0 would now warn about
65927         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65928
65929         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65930         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65931
65932         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65933         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65934         when run in a time zone for which daylight savings time is in effect
65935         for the starting date.
65936
65937         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65938         stop us from restricting permissions of just-created absolute-named
65939         directories.
65940         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65941         to restore initial working directory.
65942         * lib/mkdir-p.c (make_dir_parents): New parameter:
65943         different_working_dir, to tell caller if/when we change the working
65944         directory and are unable to return to the initial one.
65945         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65946         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65947         `return false'.  This fixes a bug introduced on 2004-07-30.
65948
65949         * lib/openat.c (fdopendir): Be sure to close the supplied
65950         file descriptor before returning.  This makes our replacement
65951         implementation a little closer to Solaris's, where fdopendir
65952         ties the file descriptor to the returned DIR* pointer.
65953         * lib/openat.c (unlinkat): New function.
65954         * lib/openat.h (unlinkat): Add prototype.
65955         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65956         (openat_restore_fail): Rename from openat_restore_die.
65957         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65958
65959         Provide an alternative to exiting immediately upon save_cwd or
65960         restore_cwd failure.  Now, an application can arrange e.g.,
65961         to perform a longjump in that case.
65962         * lib/openat.c: Include dirname.h.
65963         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65964         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65965         and openat_restore_die rather than calling error directly.
65966         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65967
65968         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65969         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65970         define.
65971
65972         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65973         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65974                             int utc, int nanoseconds);
65975         Background:
65976         date should not have to allocate a megabyte of virtual memory to
65977         handle a format argument like +%1048575T.  When implemented with
65978         strftime, it must allocate such a buffer, use strftime to fill it
65979         in, print it, then free it.
65980         With fprintftime, it simply prints everything and exits.
65981         With no need for memory allocation, that's one fewer way to fail.
65982         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65983         optional field width, not before, so we accept %9:z, not %:9z.
65984         (my_strftime): Be sure to use L_('x') for literals.
65985
65986         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65987         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65988         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65989         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65990         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65991         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65992         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65993         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65994         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65995         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65996         * lib/xgethostname.c, lib/xreadlink.c:
65997         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65998
65999         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66000         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66001         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66002         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66003         and don't include <sys/file.h>).
66004
66005 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66006
66007         Sync from coreutils.
66008
66009         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66010         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66011         [!LDAV_DONE]: Avoid unused variable warning.
66012
66013 2005-09-21  Bruno Haible  <bruno@clisp.org>
66014
66015         * lib/unicodeio.h (unicode_to_mb): New declaration.
66016
66017 2005-09-20  Derek Price  <derek@ximbiot.com>
66018
66019         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66020         getaddrinfo.h.
66021
66022 2005-09-20  Bruno Haible  <bruno@clisp.org>
66023
66024         * gnulib-tool: Remove trailing slashes from the values specified for
66025         --source-base, --m4-base, --tests-base, --aux-dir.
66026         Suggested by Simon Josefsson <jas@extundo.com>.
66027
66028 2005-09-20  Bruno Haible  <bruno@clisp.org>
66029
66030         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66031         func_modules_to_filelist, func_import, func_create_testdir): Make all
66032         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66033         change when gnulib-tool is invoked in a different locale.
66034
66035 2005-09-19  Simon Josefsson  <jas@extundo.com>
66036
66037         * m4/socklen.m4: Fix typo.
66038
66039 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66040
66041         Use a consistent style for including <config.h>.
66042         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66043         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66044         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66045         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66046         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66047         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66048         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66049         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66050         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66051         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66052         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66053         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66054         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66055         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66056         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66057         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66058         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66059         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66060         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66061         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66062         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66063         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66064         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66065         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66066         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66067         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66068         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66069         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66070         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66071         lib/xstrtoumax.c, lib/yesno.c:
66072         Standardize inclusion of config.h.
66073         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66074         lib/inttostr.h:  Removed inclusion of config.h from header files.
66075         * lib/inttostr.c:  Adjusted in-tree users.
66076         * lib/timespec.h: Remove superfluous warning to include config.h.
66077         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66078         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66079         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66080         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66081         config.h with HAVE_CONFIG_H.
66082
66083 2005-09-19  Jim Meyering  <jim@meyering.net>
66084
66085         * modules/pathmax (License): Change to LGPL.
66086
66087 2005-09-19  Derek Price  <derek@ximbiot.com>
66088
66089         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66090
66091 2005-09-19  Bruno Haible  <bruno@clisp.org>
66092
66093         * gnulib-tool (import): Provide default for --tests-base.
66094
66095 2005-09-19  Bruno Haible  <bruno@clisp.org>
66096
66097         * doc/quote.texi: New file, extracted from gnulib.texi.
66098         * doc/ctime.texi: New file, extracted from gnulib.texi.
66099         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66100         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66101         * doc/gnulib.texi: Include them.
66102
66103 2005-09-18  Bruno Haible  <bruno@clisp.org>
66104
66105         Portability fix.
66106         * gnulib-tool (func_readlink): New function.
66107         (func_ln_if_changed): Use it.
66108
66109 2005-09-18  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool: Support --with-tests also with --import.
66112         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66113         (func_import): Use variables $testsbase and $inctests. Emit a
66114         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66115         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66116         SUBDIRS += $testsdir.
66117         (func_create_testdir): Update.
66118
66119 2005-09-18  Bruno Haible  <bruno@clisp.org>
66120
66121         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66122         instead of $dry_run.
66123         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66124         (func_ln_if_changed): Don't handle dry-run here.
66125         (func_import): In dry-run mode, detect more precisely which actions
66126         would be performed, and don't use "...ing" verbs.
66127
66128 2005-09-18  Bruno Haible  <bruno@clisp.org>
66129
66130         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66131         (func_import): Use join on two temporary files instead of three nested
66132         loops, in order to determine which files are new or old.
66133
66134 2005-09-18  Bruno Haible  <bruno@clisp.org>
66135
66136         * gnulib-tool (func_import): Comment out code that spits out the
66137         new files with --dry-run.
66138
66139 2005-09-18  Bruno Haible  <bruno@clisp.org>
66140
66141         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66142
66143 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         * lib/stat-time.h: New file.
66146         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66147         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66148         in a different way.
66149         (timespec_cmp): New function.
66150         * lib/utimecmp.c: Include stat-time.h.
66151         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66152         members exist, not on the obsolescent ST_MTIM_NSEC.
66153         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66154
66155 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66158
66159 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         * MODULES.html.sh (File system functions): Add stat-time.
66162         * modules/stat-time: New file.
66163         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66164         is now done in a different way, by the stat-time module.
66165         * modules/utimecmp (Depends-on): Add stat-time.
66166
66167 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66168
66169         * m4/st_mtim.m4: Remove.  Superseded by...
66170         * m4/stat-time.m4: New file.
66171         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66172         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66173
66174 2005-09-15  Derek Price  <derek@ximbiot.com>
66175
66176         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66177
66178 2005-09-15  Derek Price  <derek@ximbiot.com>
66179
66180         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66181         * lib/regex_internal.c: Ditto, using this...
66182         (__GNUC_PREREQ): ...new macro.
66183         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66184         using...
66185         (__GNUC_PREREQ): ...this new macro.
66186
66187         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66188
66189 2005-09-15  Derek Price  <derek@ximbiot.com>
66190             Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66193         changes, consolidating in...
66194         * lib/regex_internal.h: ...this file.
66195
66196 2005-09-13  Jim Meyering  <jim@meyering.net>
66197
66198         * lib/canon-host.c: Filter through gnu indent and reword comments
66199         slightly.
66200         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66201
66202 2005-09-13  Derek Price  <derek@ximbiot.com>
66203
66204         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66205         failure.
66206         Reported by Jim Meyering  <jim@meyering.net>.
66207
66208 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66209
66210         * lib/base64.c: Typo.
66211         (base64_encode): Put b64str in initialized data section.
66212
66213 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66214
66215         Merge glibc and coreutils changes into gnulib, plus a few
66216         extra fixes.
66217         * lib/md5.c: Use #error rather than a string.
66218         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66219         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66220         (__attribute__): Define to empty for non recent-GCC.
66221         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66222         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66223         Renamed from their non-__ counterparts, with new macros replacing
66224         them if not _LIBC.  Add __THROW attribute.
66225         (rol): Remove.
66226         (struct md5_ctx): Align buffer if using GCC.
66227         * lib/sha1.h (struct sha1_ctx): Likewise.
66228         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66229         The old name was backwards.
66230         (NOTSWAP): Remove; not used.
66231         (rol): New macro, moved here from md5.h.
66232         (sha1_process_block): Remove a FIXME that doesn't make sense.
66233
66234 2005-09-12  Derek Price  <derek@ximbiot.com>
66235
66236         Return usable errors from canon-host.
66237         * lib/canon-host.h: New file.
66238         * lib/canon-host.c (canon_host): Wrap...
66239         (canon_host_r): ...this new function, which now relies exclusively on
66240         getaddrinfo.
66241         (ch_strerror): New function.
66242         (last_cherror): New global.
66243         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66244         interface.
66245         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66246         void *.
66247         (freeaddrinfo): Free ai->ai_canonname when set.
66248
66249 2005-09-12  Derek Price  <derek@ximbiot.com>
66250
66251         Make canon-host require getaddrinfo.
66252         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66253         AC_LIBSOURCE canon-host.h.  Call...
66254         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66255         gl_GETADDRINFO.
66256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66257
66258 2005-09-12  Derek Price  <derek@ximbiot.com>
66259
66260         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66261         LGPL.
66262         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66263
66264 2005-09-12  Derek Price  <derek@ximbiot.com>
66265
66266         * lib/gai_strerror.c: Include config.h when available.  Include
66267         getaddrinfo.h before other headers to test interface.
66268         Reported by Larry Jones <lawrence.jones@ugs.com>.
66269
66270 2005-09-12  Derek Price  <derek@ximbiot.com>
66271             Paul Eggert  <eggert@cs.ucla.edu>
66272
66273         * modules/glob (Files): Add glob-libc.h.
66274
66275 2005-09-12  Derek Price  <derek@ximbiot.com>
66276             Paul Eggert  <eggert@cs.ucla.edu>
66277
66278         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66279         glob_.h, glob-libc.h.
66280         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66281
66282 2005-09-12  Derek Price  <derek@ximbiot.com>
66283             Paul Eggert  <eggert@cs.ucla.edu>
66284
66285         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66286         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66287         protecting things that should be done only in gnulib contexts.
66288         * lib/glob_.h: New file, containing only the glob things needed for
66289         gnulib.
66290         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66291         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66292         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66293         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66294         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66295         and to respect the namespace rules better.
66296
66297 2005-09-08  Simon Josefsson  <jas@extundo.com>
66298
66299         * modules/socklen: New file.
66300
66301 2005-09-08  Simon Josefsson  <jas@extundo.com>
66302
66303         * m4/socklen.m4: New file.
66304
66305 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         * modules/utimens (Files): Add m4/utimbuf.m4, since
66308         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66309         Reported by Sergey Poznyakoff.
66310
66311 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66312
66313         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66314         definitions, since that's the preferred style in glibc.
66315         Fix a minor spacing issue, and update copyright notice to match
66316         glibc's.
66317
66318 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66321
66322 2005-09-06  Simon Josefsson  <jas@extundo.com>
66323
66324         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66325         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66326
66327 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66328
66329         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66330         warning.
66331
66332 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66333
66334         * config/srclist.txt: Add glibc bug 1302.
66335
66336 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         Change bitset word type from unsigned int to unsigned long int,
66339         as this has better performance on typical 64-bit hosts.
66340         Port bitset code to hosts with unusual word sizes.
66341         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66342         (build_collating_symbol):
66343         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66344         argument is a bitset.  This is merely a style issue, but it makes
66345         it clearer that an entire array is expected.
66346         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66347         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66348         Port to the case where bitset_word is not the same as unsigned int.
66349         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66350         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66351         Likewise.
66352         * lib/regexec.c (check_dst_limits_calc_pos_1,
66353         check_subexp_matching_top):
66354         (build_trtable, group_nodes_into_DFAstates):
66355         Likewise.
66356         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66357         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66358         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66359         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66360         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66361         * lib/regcomp.c (optimize_subexps, lower_subexp):
66362         Work even if bitset_word has holes in its bitwise representation.
66363         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66364         * lib/regexec.c (check_dst_limits_calc_pos_1,
66365         check_subexp_matching_top):
66366         Likewise.
66367         * lib/regex_internal.c (re_string_reconstruct):
66368         Don't assume UCHAR_MAX == 255.
66369         * lib/regex_internal.h (bitset_set_all): Likewise.
66370         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66371         All uses changed.
66372         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66373         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66374         All uses changed.
66375         (BITSET_WORD_MAX): New macro.
66376         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66377         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66378         (bitset_empty, bitset_copy):
66379         Prefer sizeof (bitset) to multiplying it out ourselves.
66380         (bitset_not_merge): Remove; unused.
66381         (bitset_contain): Return bool, not unsigned int with one bit on.
66382         All callers changed.
66383         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66384         alignment than re_node_set; do this by defining a new internal
66385         type struct dests_alloc and using it to allocate memory.
66386
66387 2005-09-05  Bruno Haible  <bruno@clisp.org>
66388
66389         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66390         links.
66391
66392 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66393
66394         * modules/size_max (Makefile.am): Add size_max.h
66395
66396 2005-09-04  Derek Price  <derek@ximbiot.com>
66397
66398         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66399
66400 2005-09-03  Simon Josefsson  <jas@extundo.com>
66401
66402         * gnulib-tool: Fix typo.
66403
66404 2005-09-03  Simon Josefsson  <jas@extundo.com>
66405
66406         * config/srclist.txt: Add glibc bug 1293.
66407
66408 2005-09-03  Derek Price  <derek@ximbiot.com>
66409
66410         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66411         From Larry Jones <lawrence.jones@ugs.com>.
66412
66413 2005-09-02  Simon Josefsson  <jas@extundo.com>
66414
66415         * modules/socklen: New file.
66416
66417 2005-09-02  Simon Josefsson  <jas@extundo.com>
66418
66419         * modules/havelib: New module.
66420
66421         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66422         Use havelib.
66423
66424 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66425
66426         Check for arithmetic overflow when calculating sizes, to prevent
66427         some buffer-overflow issues.  These patches are conservative, in the
66428         sense that when I couldn't determine whether an overflow was possible,
66429         I inserted a run-time check.
66430         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66431         macros.
66432         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66433         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66434         (re_xnrealloc, re_x2nrealloc): New inline functions.
66435         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66436         parse_bracket_exp):
66437         (build_equiv_class, build_charclass): Check for arithmetic overflow
66438         in size expression calculations.
66439         * lib/regex_internal.c (re_string_realloc_buffers):
66440         (build_wcs_upper_buffer, re_node_set_add_intersect):
66441         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66442         (re_dfa_add_node, register_state): Likewise.
66443         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66444         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66445         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66446         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66447
66448 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66451         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66452
66453 2005-09-02  Bruno Haible  <bruno@clisp.org>
66454
66455         Support for lib vs. lib64 distinction on biarch platforms.
66456         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66457         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66458         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66459
66460 2005-09-02  Bruno Haible  <bruno@clisp.org>
66461
66462         * gnulib-tool (import): In the other first-use case, provide defaults
66463         as well.
66464
66465 2005-09-02  Bruno Haible  <bruno@clisp.org>
66466
66467         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66468         patches not yet found in the latest gettext release.
66469
66470 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66471
66472         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66473         to avoid a collision with bits/local_lim.h in glibc.
66474         All uses changed.  Problem reported by Dmitry V. Levin in
66475         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66476
66477         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66478         bugs in int versus size_t comparisons.
66479         (re_string_context_at): Fix bug where the code assumed that
66480         Idx is signed.
66481
66482         Use bool where appropriate.
66483         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66484         All callers changed.
66485         (calc_eclosure_iter): Likewise, for ROOT arg.
66486         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66487         (build_charclass_op): Likewise, for NON_MATCH arg.
66488         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66489         (re_string_construct_common): Likewise, for ICASE arg.
66490         * lib/regexec.c (re_search_2_stub, re_search_stub):
66491         Likewise, for RET_LEN arg.
66492         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66493         (set_regs): Likewise, for FL_BACKTRACK arg.
66494         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66495         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66496         (calc_eclosure_iter, parse_bracket_exp):
66497         Use bool for internal variables that are booleans.
66498         * lib/regexec.c (re_search_internal, check_matching,
66499         proceed_next_node):
66500         (set_regs, build_sifted_states, sift_states_bkref):
66501         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66502         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66503         (find_collation_sequence_value):
66504         Likewise.
66505         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66506         (re_node_set_compare):
66507         Return bool, not int. All callers changed.
66508         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66509         (build_trtable, check_node_accept): Likewise.
66510         * lib/regex_internal.h: Include stdbool.h.
66511
66512         Fix bugs uncovered when converting to bool.
66513         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66514         failure instead of charging ahead blindly.
66515         * lib/regex_internal.c (register_state): Likewise.
66516         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66517         for freeing internal storage.
66518         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66519         bitset pieces used as boolean, to avoid undefined behavior
66520         on hosts that do int overflow checking.
66521
66522 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         * config/srclist.txt: Add glibc bugs 1285-1287.
66525
66526 2005-09-01  Jim Meyering  <jim@meyering.net>
66527
66528         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66529         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66530         Require gl_STAT_MACROS, too.
66531
66532 2005-09-01  Bruno Haible  <bruno@clisp.org>
66533
66534         * gnulib-tool (import): In the first-use case, provide defaults.
66535
66536 2005-09-01  Bruno Haible  <bruno@clisp.org>
66537
66538         * gnulib-tool (func_import): Remove the .tmp files.
66539
66540 2005-09-01  Bruno Haible  <bruno@clisp.org>
66541
66542         * gnulib-tool (func_import): Fix handling of symbolic links.
66543
66544 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66547         old glibc regex code mishandles strings longer than 2**31 bytes.
66548         This patch fixes this when the regex code is used in gnulib
66549         (i.e., outside glibc).
66550
66551         This patch should not affect the use of the regex code inside
66552         glibc.  No doubt this problem also needs to be handled for glibc
66553         as well, but the result will be an incompatible change to the
66554         glibc ABI, and the old ABI will have to be supported too.  That
66555         can be the the subject for another patch.
66556
66557         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66558         governing whether the rest of this patch is active.  By default,
66559         the macro is disabled and the patch has no effect.
66560         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66561         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66562         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66563         (re_match_2, re_set_registers): Use the new types.
66564         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66565         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66566         New macros.
66567         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66568         (re_string_context_at, bin_tree_t, re_dfastate_t):
66569         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66570         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66571         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66572         (re_string_char_size_at, re_string_wchar_at):
66573         (re_string_elem_size_at):
66574         Use the new types and macros to port to 64-bit hosts.
66575         Use unsigned types for internal values, so that the code
66576         mostly works even for arrays larger than SSIZE_MAX.
66577         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66578         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66579         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66580         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66581         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66582         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66583         (calc_inveclosure, parse_dup_op, build_range_exp):
66584         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66585         (fetch_number, create_token_tree, mark_opt_subexp):
66586         Likewise.
66587         * lib/regex_internal.c (re_string_construct_common,
66588         create_ci_newstate):
66589         (create_cd_newstate, re_string_allocate, re_string_construct):
66590         (re_string_realloc_buffers, build_wcs_upper_buffer):
66591         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66592         (re_string_reconstruct, re_string_peek_byte_case):
66593         (re_string_fetch_byte_case, re_string_context_at):
66594         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66595         (re_node_set_init_copy, re_node_set_add_intersect):
66596         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66597         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66598         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66599         (re_acquire_state, re_acquire_state_context, register_state):
66600         Likewise.
66601         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66602         search_cur_bkref_entry):
66603         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66604         (re_search_internal, re_search_2_stub, re_search_stub)
66605         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66606         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66607         (update_cur_sifted_state, check_dst_limits):
66608         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66609         (check_subexp_limits, sift_states_bkref, merge_state_array):
66610         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66611         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66612         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66613         (expand_bkref_cache, check_node_accept_bytes):
66614         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66615         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66616         (acquire_init_state_context, check_halt_node_context):
66617         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66618         (sift_states_backward, clean_state_log_if_needed):
66619         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66620         (find_recover_state, transit_state_sb, transit_state_mb):
66621         (transit_state_bkref, build_trtable, match_ctx_clean):
66622         Likewise.
66623         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66624         to work around an assumption that REG_MISSING is negative.
66625
66626         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66627         (seek_collating_symbol_entry) [defined _LIBC]:
66628         (lookup_collation_sequence_value) [defined _LIBC]:
66629         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66630         Use prototypes rather than old-style function definitions.
66631         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66632         (transit_state_sb) [0]:
66633         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66634
66635         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66636         rm_eo.
66637
66638         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66639         (optimize_subexps, lower_subexp):
66640         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66641         since the signed shift might overflow.  Use 1u<<31 instead.
66642         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66643         Likewise.
66644         * lib/regexec.c (check_dst_limits_calc_pos_1,
66645         check_subexp_matching_top): Likewise.
66646
66647         * lib/regcomp.c (optimize_subexps, lower_subexp):
66648         Use CHAR_BIT rather than 8, for clarity.
66649         * lib/regexec.c (check_dst_limits_calc_pos_1):
66650         (check_subexp_matching_top): Likewise.
66651         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66652         have to worry about portability issues when shifting it left.
66653         Remove no-longer-needed test for table_size > 0.
66654         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66655         in a word, as the resulting behavior is undefined.
66656         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66657         in one case, a <= should have been an <, and in another case the
66658         whole test was missing.
66659         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66660         the standard name CHAR_BIT.
66661         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66662         this is not true on one's complement and signed-magnitude hosts.
66663
66664         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66665         next_last_offset.
66666         (struct re_dfa_t): Remove unused member states_alloc.
66667         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66668
66669 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66672         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66673         and large-file glibc and in 32-bit large-file Solaris.
66674
66675 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66678         lengths fit in regoff_t; this isn't true if regoff_t is the same
66679         width as size_t.
66680         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66681         (= START + RANGE) instead of RANGE.  This avoids overflow
66682         problems when regoff_t is the same width as size_t.
66683         All callers changed.
66684         (re_search_2_stub): Check for overflow when adding the
66685         sizes of the two strings.
66686         (re_search_stub): Check for overflow when adding START
66687         to RANGE; if it occurs, substitute the extreme value.
66688
66689 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66690
66691         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66692
66693 2005-08-31  Jim Meyering  <jim@meyering.net>
66694
66695         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66696         a pointer-to-const.
66697         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66698         (register_state): Likewise.
66699         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66700         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66701         (group_nodes_into_DFAstates): Likewise.
66702
66703 2005-08-31  Jim Meyering  <jim@meyering.net>
66704
66705         * check-module: Add a FIXME comment.
66706
66707 2005-08-31  Eric Blake  <ebb9@byu.net>
66708
66709         * modules/unistd-safer (Files): Add unistd--.h.
66710         * modules/stdio-safer (Files): Add stdio--.h.
66711
66712 2005-08-31  Derek Price  <derek@ximbiot.com>
66713
66714         * lib/getdelim.c (getdelim): Return EOF on EOF.
66715         Reported by Larry Jones <lawrence.jones@ugs.com>.
66716
66717 2005-08-31  Bruno Haible  <bruno@clisp.org>
66718
66719         Avoid unnecessary diffs in the generated lib/Makefile.am.
66720         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66721         the generated files.
66722         (func_import): Don't set cmd.
66723
66724 2005-08-31  Bruno Haible  <bruno@clisp.org>
66725
66726         * lib/strstr.c: Include <stddef.h>, for NULL.
66727         * lib/strcasestr.c: Likewise.
66728         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66729
66730 2005-08-31  Bruno Haible  <bruno@clisp.org>
66731
66732         * gnulib-tool: New option --macro-prefix.
66733         (func_import): Use macro_prefix.
66734         (import): Handle option --macro-prefix.
66735
66736 2005-08-31  Bruno Haible  <bruno@clisp.org>
66737
66738         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66739         Also use new variables cached_lgpl, cached_libtool.
66740
66741 2005-08-31  Bruno Haible  <bruno@clisp.org>
66742
66743         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66744         always instantiating them.
66745
66746 2005-08-31  Bruno Haible  <bruno@clisp.org>
66747
66748         * gnulib-tool (func_import): Read the previous cached settings
66749         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66750         earlier added by gnulib but are now dropped. Warn when a gnulib file
66751         overwrites a non-gnulib file.
66752
66753 2005-08-31  Bruno Haible  <bruno@clisp.org>
66754
66755         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66756         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66757         projects that don't keep autogenerated files in CVS. Put into
66758         actioncmd only the specified modules, not the transitive closure.
66759
66760 2005-08-31  Bruno Haible  <bruno@clisp.org>
66761
66762         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66763         Create directories that shall be filled.
66764         (import): Don't look for gl_* macros in configure.ac. Recurse across
66765         all directories containing a gnulib-cache.m4 files, if meaningful.
66766
66767 2005-08-31  Bruno Haible  <bruno@clisp.org>
66768
66769         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66770         (import): Set seen_libtool when we see gl_LIBTOOL.
66771
66772 2005-08-31  Bruno Haible  <bruno@clisp.org>
66773
66774         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66775         declaration macro definitions from generated gnulib.m4.
66776
66777 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66778
66779         * lib/iconvme.h: Add prototype for iconv_alloc.
66780
66781 2005-08-29  Simon Josefsson  <jas@extundo.com>
66782
66783         * lib/iconvme.c: Fix errno.
66784
66785 2005-08-29  Bruno Haible  <bruno@clisp.org>
66786
66787         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66788         that it works when the directory contains spaces.
66789
66790 2005-08-29  Bruno Haible  <bruno@clisp.org>
66791
66792         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66793
66794 2005-08-29  Bruno Haible  <bruno@clisp.org>
66795
66796         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66797         Emit more advice.
66798
66799 2005-08-29  Bruno Haible  <bruno@clisp.org>
66800         and Stepan Kasal  <kasal@ucw.cz>
66801
66802         * check-module: If more parameters are given, check each of them
66803         separately; add more exceptions, as noted by Jim Meyering.
66804         (check_module): New procedure.
66805         (%exempt_header): Now contains all exceptions.
66806
66807 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66808
66809         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66810
66811 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66812
66813         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66814
66815 2005-08-28  Bruno Haible  <bruno@clisp.org>
66816
66817         * m4/gnulib-tool.m4: New file.
66818
66819 2005-08-27  Jim Meyering  <jim@meyering.net>
66820
66821         * modules/unistd-safer (Files): Add pipe-safer.c.
66822         * modules/fcntl-safer (Files): Add creat-safer.c.
66823
66824 2005-08-27  Jim Meyering  <jim@meyering.net>
66825
66826         * m4/stdlib-safer.m4: New file.  From coreutils.
66827         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66828         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66829         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66830         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66831         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66832
66833 2005-08-27  Jim Meyering  <jim@meyering.net>
66834
66835         * lib/fopen-safer.c: Merge minor changes from coreutils.
66836         * lib/dup-safer.c: Likewise.
66837         * lib/fd-safer.c: Likewise.
66838
66839         Merge from coreutils.
66840         * lib/stdio--.h: New file.
66841         * lib/stdlib--.h: New file.
66842         * lib/mkstemp-safer.c: New file.
66843
66844         GNU tar needs these.
66845         * lib/pipe-safer.c: New file.
66846         * lib/creat-safer.c: New file.
66847         * lib/fcntl--.h (creat): Define to creat_safer.
66848         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66849         * lib/unistd--.h (pipe): Define to pipe_safer.
66850         * lib/unistd-safer.h: Declare pipe_safer.
66851
66852 2005-08-26  Simon Josefsson  <jas@extundo.com>
66853
66854         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66855         Haible <bruno@clisp.org>.
66856
66857 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * lib/regex_internal.h: Remove all references to
66860         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66861         or better.
66862         (bitset_not, bitset_merge, bitset_not_merge):
66863         (bitset_mask, re_string_allocate, re_string_construct):
66864         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66865         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66866         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66867         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66868         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66869         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66870         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66871         (re_acquire_state_context):
66872         Remove unnecessary forward decls.
66873         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66874         Put __attribute at function definition,
66875         now that the function decl has been removed.
66876         * lib/regex_internal.c (re_string_peek_byte_case):
66877         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66878         Likewise.
66879
66880 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66881
66882         * m4/regex.m4: Add AC_PREREQ(2.50).
66883         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66884
66885 2005-08-25  Simon Josefsson  <jas@extundo.com>
66886
66887         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66888         __fsetlocking.
66889
66890 2005-08-25  Simon Josefsson  <jas@extundo.com>
66891
66892         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66893         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66894         GLIBC specific code.
66895
66896 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66897
66898         Make regex safe for g++.  This fixes one real bug (an "err"
66899         that should have been "*err").  g++ problem reported by
66900         Sam Steingold.
66901         * lib/regex_internal.h (re_calloc): New macro, consistent with
66902         re_malloc etc.  All callers of calloc changed to use re_calloc.
66903         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66904         not int.  All callers changed.
66905         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66906         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66907         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66908         (find_recover_state): Change "err" to "*err"; this fixes what
66909         appears to be a real bug.
66910         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66911         versus int.
66912
66913 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * modules/regex (Depends-on): Add malloc, since the code
66916         assumes that !malloc(0) means failure.
66917
66918 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66921
66922         alloca modernization/simplification for regex.
66923         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66924         needs to be at the start of the file, and can be moved into
66925         regex_internal.h and simplified.
66926         * lib/regex_internal.h: Include <alloca.h>.
66927         (__libc_use_alloca) [!defined _LIBC]: New macro.
66928         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66929         now works outside glibc.
66930
66931 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * config/srclist.txt: Add glibc bugs 1241, 1245.
66934
66935 2005-08-25  Jim Meyering  <jim@meyering.net>
66936
66937         * lib/open-safer.c: Include <config.h>.
66938         Otherwise, we'd lose LARGEFILE support in any file using
66939         e.g. "fcntl--.h"
66940
66941 2005-08-25  Bruno Haible  <bruno@clisp.org>
66942
66943         * m4/minmax.m4: Require autoconf 2.52.
66944         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66945         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66946         alternatives of translit over the alphabet.
66947         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66948
66949 2005-08-24  Simon Josefsson  <jas@extundo.com>
66950
66951         * tests/test-getpass.c: New file.
66952
66953 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66956         for GNU regex features.
66957
66958 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66959
66960         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66961         * lib/regex.h (regerror): Likewise.
66962
66963         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66964         requires this.  (The code never needed it.)
66965
66966         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66967         All uses of recently-renamed identifiers changed to use the new,
66968         POSIX-compliant names.  The code will build and run just fine
66969         without these changes, but it's better to eat our own dog food
66970         and use the standard-conforming names.
66971
66972         * lib/regex.h: Fix a multitude of POSIX name space violations.
66973         These changes have an effect only for programs that define
66974         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66975         do not change anything for programs compiled in the normal way.
66976         Also, there is no effect on the ABI.
66977
66978         (_REGEX_SOURCE): New macro.
66979         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66980         defined and _GNU_SOURCE is not; this fixes a name space violation.
66981
66982         Rename the following macros to obey POSIX requirements.
66983         The old names are still visible as macros if _REGEX_SOURCE is defined.
66984         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66985         RE_BACKSLASH_ESCAPE_IN_LISTS.
66986         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66987         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66988         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66989         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66990         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66991         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66992         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66993         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66994         (REG_INTERVALS): renamed from RE_INTERVALS.
66995         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66996         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66997         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66998         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66999         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67000         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67001         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67002         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67003         RE_UNMATCHED_RIGHT_PAREN_ORD.
67004         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67005         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67006         (REG_DEBUG): renamed from RE_DEBUG.
67007         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67008         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67009         unusual, since we can't clash with the POSIX REG_ICASE.
67010         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67011         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67012         (REG_NO_SUB): renamed from RE_NO_SUB.
67013         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67014         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67015         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67016         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67017         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67018         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67019         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67020         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67021         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67022         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67023         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67024         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67025         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67026         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67027         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67028         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67029         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67030         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67031         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67032         (REG_FIXED): Renamed from REGS_FIXED.
67033         (REG_NREGS): Renamed from RE_NREGS.
67034
67035         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67036         of other REG_* macros, since POSIX says the user is allowed to
67037         #undef these macros selectively.
67038
67039         (reg_errcode_t): Update comment stating what other tables need
67040         to be consistent.
67041
67042         Rename the following enum values to obey POSIX requirements.
67043         The old names are still visible as macros.
67044         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67045         is not defined, since GNU is supposed to be a superset of POSIX as
67046         much as possible, and since we want reg_errcode_t to be a signed
67047         type for implementation consistency.
67048         (_REG_NOERROR): Renamed from REG_NOERROR.
67049         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67050         (_REG_BADPAT): Renamed from REG_BADPAT.
67051         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67052         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67053         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67054         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67055         (_REG_EBRACK): Renamed from REG_EBRACK.
67056         (_REG_EPAREN): Renamed from REG_EPAREN.
67057         (_REG_EBRACE): Renamed from REG_EBRACE.
67058         (_REG_BADBR): Renamed from REG_BADBR.
67059         (_REG_ERANGE): Renamed from REG_ERANGE.
67060         (_REG_ESPACE): Renamed from REG_ESPACE.
67061         (_REG_BADRPT): Renamed from REG_BADRPT.
67062         (_REG_EEND): Renamed from REG_EEND.
67063         (_REG_ESIZE): Renamed from REG_ESIZE.
67064         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67065         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67066         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67067         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67068         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67069
67070         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67071         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67072         changed.  But support the old name if the new one is not defined
67073         and if _REGEX_SOURCE.
67074
67075         Change the following member names in struct re_pattern_buffer.
67076         The old names are still supported if !_REGEX_SOURCE.
67077         The new names are always supported, regardless of _REGEX_SOURCE.
67078         (re_buffer): Renamed from buffer.
67079         (re_allocated): Renamed from allocated.
67080         (re_used): Renamed from used.
67081         (re_syntax): Renamed from syntax.
67082         (re_fastmap): Renamed from fastmap.
67083         (re_translate): Renamed from translate.
67084         (re_can_be_null): Renamed from can_be_null.
67085         (re_regs_allocated): Renamed from regs_allocated.
67086         (re_fastmap_accurate): Renamed from fastmap_accurate.
67087         (re_no_sub): Renamed from no_sub.
67088         (re_not_bol): Renamed from not_bol.
67089         (re_not_eol): Renamed from not_eol.
67090         (re_newline_anchor): Renamed from newline_anchor.
67091
67092         Change the following member names in struct re_registers.
67093         The old names are still supported if !_REGEX_SOURCE.
67094         The new names are always supported, regardless of _REGEX_SOURCE.
67095         (rm_num_regs): Renamed from num_regs.
67096         (rm_start): Renamed from start.
67097         (rm_end): Renamed from end.
67098
67099         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67100         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67101         Prepend __ to parameter names.
67102
67103         Undo yesterday's changes.
67104
67105 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67106
67107         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67108         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67109         lib/regex.c.
67110
67111 2005-08-24  Jim Meyering  <jim@meyering.net>
67112
67113         Sync from coreutils.
67114         * m4/fcntl-safer.m4: New file.
67115
67116         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67117         and object files for this module.
67118
67119 2005-08-24  Jim Meyering  <jim@meyering.net>
67120
67121         Sync from coreutils.
67122         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67123
67124 2005-08-24  Jim Meyering  <jim@meyering.net>
67125
67126         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67127         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67128
67129 2005-08-24  Jim Meyering  <jim@meyering.net>
67130
67131         * modules/fcntl-safer: New module.
67132         * modules/fts (Depends-on): Add fcntl-safer.
67133         * MODULES.html.sh (File descriptor based Input/Output):
67134         Add fcntl-safer.
67135
67136 2005-08-24  Bruno Haible  <bruno@clisp.org>
67137
67138         Support for unit test modules.
67139         * modules/README: Mention tests modules.
67140         * modules/TEMPLATE-TESTS: New file.
67141         * gnulib-tool: New options --extract-tests-module, --with-tests and
67142         --tests-base (unused for the moment).
67143         (testsbase, inctests): New variables.
67144         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67145         (func_verify_module): Exclude TEMPLATE-TESTS.
67146         (func_verify_nontests_module, func_verify_tests_module): New functions.
67147         (func_get_dependencies): Add implicit dependency for tests modules.
67148         (func_get_tests_module): New function.
67149         (func_modules_transitive_closure): When --with-tests was specified,
67150         include the unit tests as well, unless explicitly avoided.
67151         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67152         (func_emit_tests_Makefile_am): New function.
67153         (func_create_testdir): When --with-tests was specified, emit a
67154         tests/ directory.
67155         * MODULES.html.sh (Future developments): Update.
67156
67157 2005-08-24  Bruno Haible  <bruno@clisp.org>
67158
67159         * modules/tls-tests: New file.
67160         * tests/test-tls.c: New file, from GNU gettext.
67161
67162 2005-08-24  Bruno Haible  <bruno@clisp.org>
67163
67164         * modules/lock-tests: New file.
67165         * tests/test-lock.c: New file, from GNU gettext.
67166
67167 2005-08-24  Bruno Haible  <bruno@clisp.org>
67168
67169         * lib/lock.h: Add multiple inclusion guard.
67170         * lib/tls.h: Add multiple inclusion guard.
67171
67172 2005-08-24  Bruno Haible  <bruno@clisp.org>
67173
67174         * gnulib-tool: Add support for the --aux-dir option to
67175         --create-testdir, --create-megatestdir, --test, --megatest.
67176         (func_create_testdir, func_create_megatestdir): Optionally emit a
67177         AC_CONFIG_AUX_DIR directive.
67178         (create-testdir, create-megatestdir, test, megatest): Provide a
67179         default value for $auxdir.
67180
67181 2005-08-24  Bruno Haible  <bruno@clisp.org>
67182
67183         * gnulib-tool (import): Use compound statement instead of subshell
67184         where possible.
67185
67186 2005-08-24  Bruno Haible  <bruno@clisp.org>
67187
67188         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67189
67190 2005-08-24  Bruno Haible  <bruno@clisp.org>
67191
67192         * gnulib-tool (func_version): Update.
67193
67194 2005-08-24  Bruno Haible  <bruno@clisp.org>
67195
67196         * gnulib-tool (func_import, func_create_testdir,
67197         func_create_megatestdir): Quote all autoconf macro arguments.
67198
67199 2005-08-24  Bruno Haible  <bruno@clisp.org>
67200
67201         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67202         option --force, because --force causes the aclocal.m4 of each
67203         subdirectory to be newer than the corresponding config.h.in.
67204
67205 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67208         All contents moved to gl_REGEX.
67209         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67210         assume that it does.
67211
67212 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * lib/regex.h (REG_NOSYS)
67215         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67216         Define, since POSIX requires it as of 2001.
67217         (_REG_ENOSYS)
67218         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67219         New private symbol, used to keep the enum signed in all cases.
67220         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67221         Youngman in
67222         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67223
67224         * lib/regex_internal.c (re_string_skip_chars, register_state):
67225         (calc_state_hash):
67226         Remove forward decls; no longer needed now that we use prototypes.
67227         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67228         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67229         (clean_state_log_if_needed): Likewise.
67230
67231 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         * config/srclist.txt: Add glibc bugs 1231-1233.
67234
67235 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         Fix problems reported by Sam Steingold in
67238         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67239         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67240         assumed that reg_errcode_t is a signed type, which is not
67241         necessarily true if _XOPEN_SOURCE is not defined.
67242         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67243         since some compilers warn about it otherwise.
67244
67245 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67246
67247         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67248         (init_word_char, create_initial_state, duplicate_node_closure):
67249         (fetch_token, peek_token_bracket, build_range_exp):
67250         (build_collating_symbol): Remove forward decls; no longer needed
67251         now that we use prototypes.
67252
67253         * lib/regcomp.c:
67254         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67255         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67256         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67257         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67258         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67259         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67260         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67261         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67262         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67263         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67264         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67265         (build_charclass, build_charclass_op, fetch_number, create_tree):
67266         (create_token_tree, mark_opt_subexp, duplicate_tree):
67267         Use prototypes rather than old-style definitions.
67268
67269         * lib/regex_internal.c:
67270         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67271         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67272         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67273         (re_string_reconstruct, re_string_peek_byte_case):
67274         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67275         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67276         (re_node_set_init_copy, re_node_set_add_intersect):
67277         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67278         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67279         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67280         (re_acquire_state, re_acquire_state_context, register_state):
67281         (create_ci_newstate, create_cd_newstate, free_state):
67282         Likewise.
67283         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67284         re_search_2):
67285         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67286         (re_search_internal, prune_impossible_nodes):
67287         (acquire_init_state_context, check_matching, static):
67288         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67289         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67290         (update_regs, sift_states_backward, build_sifted_states):
67291         (clean_state_log_if_needed, merge_state_array):
67292         (update_cur_sifted_state, add_epsilon_src_nodes):
67293         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67294         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67295         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67296         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67297         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67298         (check_arrival, check_arrival_add_next_nodes):
67299         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67300         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67301         (check_node_accept_bytes, check_node_accept, extend_buffers):
67302         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67303         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67304         (sift_ctx_init):
67305         Likewise.
67306
67307         * lib/regex_internal.h:
67308         (re_string_allocate, re_string_construct, re_string_reconstruct):
67309         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67310         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67311         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67312         (re_string_context_at, re_string_peek_byte_case):
67313         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67314         is defined, since we now use prototypes always.
67315
67316         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67317         C89 or better.  All uses removed.
67318
67319 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * config/srclist.txt: Add glibc bugs 1220-1227.
67322
67323 2005-08-20  Jim Meyering  <jim@meyering.net>
67324
67325         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67326         of unused local, dfa.
67327
67328 2005-08-20  Bruno Haible  <bruno@clisp.org>
67329
67330         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67331
67332 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67335         (re_node_set_insert_last, re_dfa_add_node):
67336         Rename local variables to avoid GCC shadowing warnings.
67337
67338 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67341         [defined lint]: Suppress bogus uninitialized-variable warnings.
67342
67343         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67344         and let the caller return REG_ESPACE if out of space.  This
67345         removes an uninitialied-variable warning with GCC 4.0.1, and also
67346         avoids taking the address of a local variable.  All callers
67347         changed.
67348
67349 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67350
67351         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67352         $LIBCSRC/posix/regexec.c.
67353         Add glibc bug 1217 for regcomp.c.
67354
67355 2005-08-19  Jim Meyering  <jim@meyering.net>
67356
67357         * lib/regexec.c (proceed_next_node): Redo local variables to
67358         avoid GCC shadowing warnings.
67359
67360 2005-08-18  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/strstr.c (strstr): Fix return value in multibyte case.
67363         * lib/strcasestr.c (strcasestr): Likewise.
67364
67365 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67368
67369 2005-08-17  Jim Meyering  <jim@meyering.net>
67370
67371         Make the %s format (seconds since the epoch) work for a negative
67372         number and when used with a zero-padded field width, e.g. %015s.
67373
67374         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67375         label so that it precedes the code to set `digits'.  Otherwise,
67376         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67377         print `00-22'.  Now, it prints `-0022', as it should.
67378
67379 2005-08-17  Bruno Haible  <bruno@clisp.org>
67380
67381         * modules/strstr (Files): Add m4/mbrtowc.m4.
67382         (Depends-on): Add mbuiter.
67383
67384 2005-08-17  Bruno Haible  <bruno@clisp.org>
67385
67386         * modules/strcasestr: New file.
67387         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67388         strcasestr.
67389
67390 2005-08-17  Bruno Haible  <bruno@clisp.org>
67391
67392         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67393
67394 2005-08-17  Bruno Haible  <bruno@clisp.org>
67395
67396         * modules/mbuiter: New file.
67397         * MODULES.html.sh (Extended multibyte and wide character utilities):
67398         Add mbuiter.
67399
67400 2005-08-17  Bruno Haible  <bruno@clisp.org>
67401
67402         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67403         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67404
67405 2005-08-17  Bruno Haible  <bruno@clisp.org>
67406
67407         * m4/strcasestr.m4: New file.
67408
67409 2005-08-17  Bruno Haible  <bruno@clisp.org>
67410
67411         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67412         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67413
67414 2005-08-17  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/strcasestr.h: New file.
67417         * lib/strcasestr.c: New file.
67418
67419 2005-08-17  Bruno Haible  <bruno@clisp.org>
67420
67421         * lib/strcasecmp.c: Use mbuiter.h.
67422
67423 2005-08-17  Bruno Haible  <bruno@clisp.org>
67424
67425         * lib/mbuiter.h: New file.
67426
67427 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67430         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67431         and gl_GETOPT are both invoked via different paths (as happens
67432         with GNU tar CVS because it uses both argp and getopt), the former
67433         wins.
67434
67435 2005-08-16  Bruno Haible  <bruno@clisp.org>
67436
67437         * modules/tls: New file.
67438         * MODULES.html.sh (Multithreading): Add tls.
67439
67440 2005-08-16  Bruno Haible  <bruno@clisp.org>
67441
67442         * modules/strnlen1: New file.
67443         * MODULES.html.sh (String handling): Add strnlen1.
67444
67445 2005-08-16  Bruno Haible  <bruno@clisp.org>
67446
67447         * modules/strcase (Files): Add m4/mbrtowc.m4.
67448         (Depends-on): Add strnlen1, mbchar.
67449
67450 2005-08-16  Bruno Haible  <bruno@clisp.org>
67451
67452         * modules/mbiter: New file.
67453         * MODULES.html.sh (Extended multibyte and wide character utilities):
67454         Add mbiter.
67455
67456 2005-08-16  Bruno Haible  <bruno@clisp.org>
67457
67458         * modules/mbfile: New file.
67459         * MODULES.html.sh (Extended multibyte and wide character utilities):
67460         Add mbfile.
67461
67462 2005-08-16  Bruno Haible  <bruno@clisp.org>
67463
67464         * modules/mbchar: New file.
67465         * MODULES.html.sh (Extended multibyte and wide character utilities):
67466         New section.
67467
67468 2005-08-16  Bruno Haible  <bruno@clisp.org>
67469
67470         * m4/tls.m4: New file, from GNU gettext.
67471
67472 2005-08-16  Bruno Haible  <bruno@clisp.org>
67473
67474         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67475         always.
67476         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67477
67478 2005-08-16  Bruno Haible  <bruno@clisp.org>
67479
67480         * m4/mbiter.m4: New file.
67481
67482 2005-08-16  Bruno Haible  <bruno@clisp.org>
67483
67484         * m4/mbfile.m4: New file.
67485
67486 2005-08-16  Bruno Haible  <bruno@clisp.org>
67487
67488         * m4/mbchar.m4: New file.
67489
67490 2005-08-16  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/tls.h: New file, from GNU gettext.
67493         * lib/tls.c: New file, from GNU gettext.
67494
67495 2005-08-16  Bruno Haible  <bruno@clisp.org>
67496
67497         * lib/strnlen1.h: New file.
67498         * lib/strnlen1.c: New file.
67499
67500 2005-08-16  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67503         (mbi_init): Update.
67504         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67505         NUL byte, not after it.
67506
67507 2005-08-16  Bruno Haible  <bruno@clisp.org>
67508
67509         * lib/strcase.h (strcasecmp): Add note in comments.
67510         * lib/strncasecmp.c: Use code from strcasecmp.c.
67511         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67512         (strcasecmp): Work correctly in multibyte locales.
67513
67514 2005-08-16  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/mbiter.h: New file.
67517
67518 2005-08-16  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/mbfile.h: New file.
67521
67522 2005-08-16  Bruno Haible  <bruno@clisp.org>
67523
67524         * lib/mbchar.h: New file.
67525         * lib/mbchar.c: New file.
67526
67527 2005-08-16  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67530         the valid ones. Makes the comparison operations transitive:
67531         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67532         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67533
67534 2005-08-15  Simon Josefsson  <jas@extundo.com>
67535
67536         * modules/ssize_t (License): Change to 'unlimited'.
67537
67538         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67539
67540 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67543         Add comments for each pending glibc patch.
67544
67545 2005-08-15  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67548         __cplusplus is defined.
67549
67550 2005-08-14  Jim Meyering  <jim@meyering.net>
67551
67552         Sync from coreutils.
67553
67554         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67555         Use the hash-table-based cycle-detection code not just when
67556         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67557         Reported by James Youngman in
67558         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67559         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67560         FTS_TIGHT_CYCLE_CHECK.
67561         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67562         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67563         once again.
67564         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67565         * lib/fts.c (fd_safer): Remove decl.
67566         Include fcntl--.h rather than unistd-safer.h
67567         (fts_safe_changedir): Don't call fd_safer; no longer needed
67568         now that we include fcntl--.h.
67569
67570 2005-08-12  Simon Josefsson  <jas@extundo.com>
67571
67572         * modules/getndelim2: Use ssize_t module.
67573         * modules/getnline: Likewise.
67574         * modules/safe-read: Likewise.
67575         * modules/xreadlink: Likewise.
67576
67577         * modules/ssize_t: New file.
67578
67579 2005-08-12  Simon Josefsson  <jas@extundo.com>
67580
67581         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67582
67583 2005-08-12  Simon Josefsson  <jas@extundo.com>
67584
67585         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67586         ssize_t.
67587
67588 2005-08-12  Simon Josefsson  <jas@extundo.com>
67589
67590         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67591         readline, getdelim and check_version.
67592         (Support for systems lacking ISO C 99: Sizes of integer types):
67593         Add size_max.
67594
67595 2005-08-12  Bruno Haible  <bruno@clisp.org>
67596
67597         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67598
67599 2005-08-11  Simon Josefsson  <jas@extundo.com>
67600
67601         * modules/readline: New file.
67602
67603         * modules/strnlen (Files): Add strnlen.h.
67604
67605 2005-08-11  Simon Josefsson  <jas@extundo.com>
67606
67607         * m4/readline.m4: New file.
67608
67609 2005-08-11  Simon Josefsson  <jas@extundo.com>
67610
67611         * lib/readline.h, readline.c: New file.
67612
67613 2005-08-11  Simon Josefsson  <jas@extundo.com>
67614
67615         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67616         gl_AVOID.
67617
67618 2005-08-11  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67621
67622 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67623
67624         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67625
67626 2005-08-10  Simon Josefsson  <jas@extundo.com>
67627
67628         * tests/test-iconvme.c: New file.
67629
67630 2005-08-10  Simon Josefsson  <jas@extundo.com>
67631
67632         * m4/strnlen.m4: New file.
67633
67634         * m4/strndup.m4: Don't check for strnlen declaration, done in
67635         strnlen.m4.
67636
67637 2005-08-10  Simon Josefsson  <jas@extundo.com>
67638
67639         * lib/strndup.c: Use strnlen.h.
67640
67641         * lib/strnlen.h: New file.
67642
67643 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67644
67645         * README: Typos.
67646
67647 2005-08-02  Simon Josefsson  <jas@extundo.com>
67648
67649         * modules/readline: New file.
67650
67651 2005-08-02  Simon Josefsson  <jas@extundo.com>
67652
67653         * modules/getdelim: New file.
67654
67655         * modules/getline: Rewrite, don't use getndelim2.
67656
67657 2005-08-02  Simon Josefsson  <jas@extundo.com>
67658
67659         * m4/getline.m4: Separate out getdelim stuff into separate module.
67660
67661         * m4/getdelim.m4: New file.
67662
67663 2005-08-02  Simon Josefsson  <jas@extundo.com>
67664
67665         * lib/getline.h, getline.c: Rewrite.
67666
67667         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67668
67669 2005-07-31  Bruno Haible  <bruno@clisp.org>
67670
67671         * lib/lock.h (gl_lock_initializer): New macro.
67672         (gl_lock_define_initialized): Use it.
67673         (gl_rwlock_initializer): New macro.
67674         (gl_rwlock_define_initialized): Use it.
67675         (gl_recursive_lock_initializer): New macro.
67676         (gl_recursive_lock_define_initialized): Use it.
67677
67678 2005-07-30  Karl Berry  <karl@gnu.org>
67679
67680         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67681         Report from Ben Pfaff, regarding getopt.
67682
67683 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67686         normal way.
67687         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67688         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67689         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67690         (gl_GETOPT): Use the new macros.  Most of the implementation
67691         is moved to the new macros.  This is for programs like Emacs
67692         that don't want all the functionality of gl_GETOPT.
67693
67694 2005-07-26  Bruno Haible  <bruno@clisp.org>
67695
67696         * m4/lock.m4: Update from GNU gettext.
67697
67698 2005-07-26  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/lock.h: Update from GNU gettext.
67701         * lib/lock.c: Update from GNU gettext.
67702
67703 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67704
67705         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67706         obsolescent AC_TRY_RUN.  Include the default includes files, for
67707         'exit'.
67708
67709 2005-07-24  Bruno Haible  <bruno@clisp.org>
67710
67711         * modules/visibility: New file.
67712         * MODULES.html.sh (Misc): Add visibility.
67713
67714 2005-07-24  Bruno Haible  <bruno@clisp.org>
67715
67716         * m4/visibility.m4: New file.
67717
67718 2005-07-24  Bruno Haible  <bruno@clisp.org>
67719
67720         * doc/visibility.texi: New file.
67721
67722 2005-07-22  Bruno Haible  <bruno@clisp.org>
67723
67724         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67725         $(ALLOCA_H), redundant through BUILT_SOURCES.
67726         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67727         redundant through BUILT_SOURCES.
67728         * modules/byteswap (Makefile.am): Remove explicit dependency on
67729         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67730         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67731         $(FNMATCH_H), redundant through BUILT_SOURCES.
67732         * modules/getopt (Makefile.am): Remove explicit dependency on
67733         $(GETOPT_H), redundant through BUILT_SOURCES.
67734         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67735         redundant through BUILT_SOURCES.
67736         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67737         redundant through BUILT_SOURCES.
67738         * modules/stdbool (Makefile.am): Remove explicit dependency on
67739         $(STDBOOL_H), redundant through BUILT_SOURCES.
67740         * modules/stdint (Makefile.am): Remove explicit dependency on
67741         $(STDINT_H), redundant through BUILT_SOURCES.
67742         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67743         Remove explicit dependency on $(SYSEXITS_H).
67744         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67745
67746 2005-07-18  Simon Josefsson  <jas@extundo.com>
67747
67748         * lib/check-version.c (check_version): Accept identical versions too.
67749
67750 2005-07-18  Bruno Haible  <bruno@clisp.org>
67751
67752         * modules/lock: New file.
67753         * MODULES.html.sh (Multithreading): New section.
67754
67755 2005-07-18  Bruno Haible  <bruno@clisp.org>
67756
67757         * m4/lock.m4: New file, from GNU gettext.
67758
67759 2005-07-18  Bruno Haible  <bruno@clisp.org>
67760
67761         * lib/lock.h: New file, from GNU gettext.
67762         * lib/lock.c: New file, from GNU gettext.
67763
67764 2005-07-18  Bruno Haible  <bruno@clisp.org>
67765
67766         * lib/lock.h (gl_once_t): New type.
67767         (gl_once_define, gl_once): New macros.
67768         * lib/lock.c (fresh_once): New variable.
67769         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67770         functions.
67771
67772 2005-07-16  Simon Josefsson  <jas@extundo.com>
67773
67774         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67775         workaround, suggested by Bruno.
67776
67777 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         * modules/xalloc (Depends-on): Add xalloc-die.
67780         * modules/xvasprintf (Depends-on): Add xalloc-die.
67781
67782 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67783
67784         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67785         with a minor change.
67786
67787 2005-07-15  Bruno Haible  <bruno@clisp.org>
67788
67789         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67790         When using lib/poll.c, define poll as rpl_poll.
67791
67792 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * modules/argp (Depends-on): Remove unlocked-io.
67795
67796 2005-07-14  Derek Price  <derek@ximbiot.com>
67797
67798         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67799         for glob symlink bug.
67800
67801 2005-07-14  Bruno Haible  <bruno@clisp.org>
67802
67803         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67804         Instead, test for *_unlocked function declarations directly.
67805
67806 2005-07-11  Simon Josefsson  <jas@extundo.com>
67807
67808         * modules/size_max: New file.
67809
67810         * modules/xsize: Depend on size_max module for size_max.m4.
67811
67812 2005-07-11  Simon Josefsson  <jas@extundo.com>
67813
67814         * lib/size_max.h: New file.
67815
67816 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67819         copyright symbol and the year.
67820         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67821         (version_etc_va): Use parameterized copyright notice.
67822         Reword to conform to the current GNU coding standards.
67823
67824 2005-07-11  Karl Berry  <karl@gnu.org>
67825
67826         * doc/gnulib.texi (Quoting): new node.
67827         (Initial import): more info, from Patrice.
67828
67829 2005-07-11  Bruno Haible  <bruno@clisp.org>
67830
67831         * gnulib-tool (func_usage): Document option --avoid.
67832         (Command line options): Handle --avoid.
67833         (func_acceptable): New function.
67834         (func_modules_transitive_closure): Use it.
67835
67836 2005-07-11  Bruno Haible  <bruno@clisp.org>
67837
67838         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67839         Reported by Jim Meyering.
67840
67841 2005-07-10  Bruno Haible  <bruno@clisp.org>
67842
67843         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67844         Needed when size_t is smaller than 'unsigned int'.
67845         Reported by Paul Eggert.
67846
67847 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67848
67849         * modules/argp (Depends-on): Add unlocked-io
67850
67851 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67852
67853         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67854         block of defines.
67855
67856 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67859         fix now.
67860
67861 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67862         and Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67865         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67866
67867 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * modules/regex (Files): Add lib/regex_internal.c,
67870         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67871         (Depends-on): Add extensions.
67872         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67873
67874 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67877         pathconf.
67878         * m4/same.m4 (gl_SAME): Likewise.
67879         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67880
67881         * m4/regex.m4: Adjust to new libc regex implementation.
67882         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67883         all the .c and .h parts of (the new) regex.
67884         Quote the m4 stuff better.
67885         Check for RE_ICASE bug of old gnulib.
67886         Check for REG_STARTEND of recent libc.
67887         Rename local variables from jm_* to gl_*.
67888         Quote operand of "test -f".
67889         Say "recent enough" version of libc, not "version 2".
67890         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67891         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67892         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67893         Remove check for btowc, isascii.
67894         Require AM_LANGINFO_CODESET.
67895
67896 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * lib/regex.c, regex.h: Sync from libc.
67899         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67900         * lib/regexec.c:
67901         New files, synced from libc, except that regex_internal.h
67902         currently has a small porting fix.
67903
67904 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67907         regex_internal.c, regexec.c.
67908         Add regex_internal.h too, but as a comment, since the libc version
67909         is currently broken in gnulib mode.
67910
67911 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         Support programs like Emacs that use gnulib but not gettext.
67914         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67915         * modules/gettext-h: New file.
67916         * modules/gettext (Files): Remove lib/gettext.h.
67917         (Depends-on): Add gettext-h.
67918         (Makefile.am): Remove lib_SOURCES.
67919         * modules/argmatch, modules/c-stack, modules/closeout:
67920         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67921         * modules/execute, modules/file-type, modules/getaddrinfo:
67922         * modules/getopt, modules/human, modules/javacomp:
67923         * modules/javaexec, modules/mkdir-p, modules/obstack:
67924         * modules/openat, modules/pagealign_alloc, modules/pipe:
67925         * modules/quotearg, modules/regex, modules/rpmatch:
67926         * modules/unicodeio, modules/userspec, modules/version-etc:
67927         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67928         * modules/xsetenv:
67929         Depend on gettext-h, not gettext.
67930
67931 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         * gnulib-tool (func_import): Add support for 'public domain' license.
67934         * modules/alloca, modules/atexit, modules/memmove:
67935         Now public domain, not GPL.
67936         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67937         * modules/realloc, modules/strerror, modules/strtod:
67938         Now LGPL, not GPL.
67939
67940 2005-07-05  Bruno Haible  <bruno@clisp.org>
67941
67942         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67943         autoconf CVS. Needed for mingw.
67944
67945 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67946
67947         Remove the dependency of the strftime module on the tzset module.
67948         * modules/strftime (Depends-on): Remove dependency on tzset.
67949
67950 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67951
67952         Remove the dependency of the strftime module on the tzset module.
67953         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67954         gl_FUNC_TZSET_CLOBBER.
67955
67956 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         Remove the dependency of the strftime module on the tzset module.
67959         * lib/strftime.c (my_strftime)
67960         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67961         Copy the input structure, to work around some of the bug with
67962         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67963         Solaris releases, you should also use the tzset module, but we won't
67964         require it as a dependency any more since we don't want LGPLed code
67965         to depend on GPLed code.
67966
67967 2005-07-02  Jim Meyering  <jim@meyering.net>
67968
67969         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67970         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67971         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67972         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67973
67974 2005-07-02  Jim Meyering  <jim@meyering.net>
67975
67976         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67977
67978 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67979
67980         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67981         declares only 'struct timespec;' (!).
67982
67983 2005-07-01  Jim Meyering  <jim@meyering.net>
67984
67985         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67986         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67987         * lib/save-cwd.c, tempname.c:
67988         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67989         and don't include <sys/file.h>).
67990
67991 2005-06-29  Jim Meyering  <jim@meyering.net>
67992
67993         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67994         type name.  Use the variable name instead.
67995         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67996         Likewise.
67997
67998 2005-06-28  Simon Josefsson  <jas@extundo.com>
67999
68000         * modules/check-version (Files): Add check-version.m4.
68001
68002 2005-06-28  Simon Josefsson  <jas@extundo.com>
68003
68004         * m4/check-version.m4: New file, suggested by Jim Meyering
68005         <jim@meyering.net>.
68006
68007 2005-06-28  Simon Josefsson  <jas@extundo.com>
68008
68009         * lib/check-version.h, lib/check-version.c: New files.
68010
68011 2005-06-28  Simon Josefsson  <jas@extundo.com>
68012
68013         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68014         collision with global variable.  Better indentation.  Don't
68015         increment buffer pointer beyond buffer end.  Based on comments
68016         from Paul Eggert <eggert@cs.ucla.edu>.
68017
68018         * lib/base64.h: Indent.
68019
68020 2005-06-28  Simon Josefsson  <jas@extundo.com>
68021
68022         * doc/gnulib.texi (Library version handling): New section.
68023
68024 2005-06-28  Jim Meyering  <jim@meyering.net>
68025
68026         * check-module (find_included_lib_files): Hard-code another
68027         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68028         but modules/fts-lgpl (correctly) does not list those files.
68029
68030         * modules/canonicalize (Files): Add lib/pathmax.h.
68031
68032 2005-06-25  Simon Josefsson  <jas@extundo.com>
68033
68034         * modules/check-version: New file.
68035
68036 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68037
68038         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68039         initializer of struct addrinfo, as an indication that we don't
68040         care how many members the structure has.
68041
68042 2005-06-24  Derek Price  <derek@ximbiot.com>
68043         and Bruno Haible  <bruno@clisp.org>
68044
68045         Remove stat module & update lstat.
68046         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68047         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68048         * m4/stat.m4: Remove this file.
68049
68050 2005-06-24  Derek Price  <derek@ximbiot.com>
68051         and Bruno Haible  <bruno@clisp.org>
68052
68053         Remove stat module & update lstat.
68054         * lib/stat.c: Remove this file...
68055         (slash_aware_lstat): ...moving this content and its support...
68056         * lib/lstat.c (rpl_lstat): ...into here.
68057         * lib/lstat.h: New file.
68058
68059 2005-06-24  Derek Price  <derek@ximbiot.com>
68060         and Bruno Haible  <bruno@clisp.org>
68061
68062         Remove stat module & update lstat.
68063         * config/srclist.txt (libc sources): Remove stat.
68064
68065 2005-06-24  Derek Price  <derek@ximbiot.com>
68066         and Bruno Haible  <bruno@clisp.org>
68067
68068         Remove stat module & update lstat.
68069         * MODULES.html.sh (stat): Remove.
68070         * MODULES.html: Regenerated.
68071         * modules/lstat (Description): Correct function name.
68072         (Files): Add "lstat.h".
68073         (Depends-on): Remove stat, add xalloc, stat-macros.
68074         * modules/stat: Remove this file.
68075         (Include): Add "lstat.h", remove <sys/stat.h>.
68076
68077 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68078
68079         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68080         (ranged_convert): Don't save conversion in a temporary struct.
68081         This causes a warning with GCC 4.0.0, and anyway in the typical
68082         case it's not worth the extra 100 bytes or so of code.
68083         (ranged_convert, __mktime_internal): When calling a function via a
68084         pointer P, use P () rather than (*P) (), as we now assume C89 or
68085         better.
68086
68087 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68090         "who -r" failed to give output.  Problem reported by Tim Waugh.
68091
68092         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68093         (xcalloc): Use it to avoid needless tests.
68094         Problem reported by Jim Meyering.
68095
68096 2005-06-20  Derek Price  <derek@ximbiot.com>
68097
68098         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68099         unnecessary for Autoconfs > 2.59c.
68100
68101 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68102
68103         * lib/argp.h (__option_is_short): Check upper limit of
68104         __key. Isprint() requires its argument to have the value
68105         of an unsigned char or EOF.
68106
68107 2005-06-16  Jim Meyering  <jim@meyering.net>
68108
68109         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68110         when either N or S is zero.
68111
68112 2005-06-16  Derek Price  <derek@ximbiot.com>
68113
68114         * m4/bison.m4: Declare YACC & YFLAGS precious.
68115
68116 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68117
68118         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68119         multibyte string or pattern, fall back on unibyte matching.
68120         Problem reported by James Youngman.
68121
68122 2005-06-08  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/csharpcomp: New file.
68125         * MODULES.html.sh (C#): Add csharpcomp.
68126
68127 2005-06-08  Bruno Haible  <bruno@clisp.org>
68128
68129         * m4/csharpcomp.m4: New file, from GNU gettext.
68130
68131 2005-06-08  Bruno Haible  <bruno@clisp.org>
68132
68133         * lib/csharpcomp.h: New file, from GNU gettext.
68134         * lib/csharpcomp.c: New file, from GNU gettext.
68135         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68136
68137 2005-06-08  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68140         warning on mingw.
68141
68142 2005-06-07  Derek Price  <derek@ximbiot.com>
68143
68144         Sync from CVS.
68145         * lib/glob_.h: Indent nested #ifdef.
68146
68147 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68148
68149         Sync from coreutils.
68150         Use "file name" when talking about file names, instead of "filename"
68151         or "path", as per the GNU coding standards.
68152         * lib/mkdir-p.c: Renamed from makepath.c.
68153         (make_dir_parents): Renamed from make_path.  All callers changed.
68154         * lib/mkdir-p.h: Likewise.  All includers changed.
68155         * lib/filenamecat.c: Renamed from path-concat.c.
68156         (file_name_concat): Renamed from path_concat.  All callers changed.
68157         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68158         * lib/filenamecat.h: Likewise.  All includers changed.
68159         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68160         in comments or local variable names.
68161         * lib/basename.c: Likewise.
68162         * lib/canonicalize.c, canonicalize.h: Likewise.
68163         * lib/dirname.c, dirname.h: Likewise.
68164         * lib/euidaccess.c: Likewise.
68165         * lib/exclude.c: Likewise
68166         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68167         * lib/fsusage.c, fsuage.h: Likewise.
68168         * lib/fts.c, fts_.h: Likewise.
68169         * lib/getcwd.c: Likewise.
68170         * lib/getloadavg.c: Likewise.
68171         * lib/mkstemp.c: Likewise.
68172         * lib/mountlist.c, mountlist.h: Likewise.
68173         * lib/openat.c, openat.h: Likewise.
68174         * lib/readlink-stub.c: Likewise.
68175         * lib/readutmp.c, readutmp.h: Likewise.
68176         * lib/rename.c: Likewise.
68177         * lib/rmdir.c: Likewise.
68178         * lib/same.c: Likewise.
68179         * lib/savedir.c: Likewise.
68180         * lib/stripslash.c: Likewise.
68181         * lib/tempname.c: Likewise.
68182         * lib/xreadlink.c: Likewise.
68183         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68184         All uses changed.
68185         * lib/exclude.h: Likewise.
68186
68187         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68188         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68189         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68190         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68191         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68192         files have been getting away with it for years (MORE/BSD 4.3
68193         is extinct now).
68194         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68195         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68196
68197         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68198         Define to 256, not 255, as per modern POSIX.
68199
68200 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         Sync from coreutils.
68203         Use "file name" when talking about file names, instead of "filename"
68204         or "path", as per the GNU coding standards.
68205         * MODULES.html.sh: mkdir-p renamed from makepath.
68206         filenamecat renamed from path-concat.
68207         * modules/filenamecat: Renamed from modules/path-concat.
68208         (Files): filenamecat.h and filenamecat.c renamed from
68209         path-concat.h and path-concat.c.
68210         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68211         (Include): filenamecat.h, not path-concat.h.
68212         * modules/mkdir-p: Renamed from modules/makepath.
68213         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68214         makepath.c.
68215         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68216         (Include): mkdir-p.h, not makepath.h.
68217
68218 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68219
68220         Sync from coreutils.
68221         * m4/mkdir-p.m4: Renamed from makepath.m4.
68222         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68223         Rename files from makepath.c to mkdir-p.c, and from
68224         makepath.h to mkdir-p.h.
68225         * m4/filenamecat.m4: Renamed from path-concat.m4.
68226         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68227         Rename files from path-concat.c to filenamecat.c,
68228         and from path-concat.h to filenamecat.h.
68229         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68230         "file name" in local variables or comments.
68231         * m4/rename.m4: Likewise.
68232
68233 2005-06-01  Bruno Haible  <bruno@clisp.org>
68234
68235         * modules/csharpexec: New file.
68236         * MODULES.html.sh (C#): New section.
68237
68238 2005-06-01  Bruno Haible  <bruno@clisp.org>
68239
68240         * m4/csharp.m4: New file, from GNU gettext.
68241         * m4/csharpexec.m4: New file, from GNU gettext.
68242
68243 2005-06-01  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/csharpexec.h: New file, from GNU gettext.
68246         * lib/csharpexec.c: New file, from GNU gettext.
68247         * lib/csharpexec.sh.in: New file, from GNU gettext.
68248
68249 2005-05-31  Derek Price  <derek@ximbiot.com>
68250             Paul Eggert  <eggert@cs.ucla.edu>
68251
68252         Sync from cvs.
68253         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68254
68255 2005-05-31  Derek Price  <derek@ximbiot.com>
68256             Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         Sync from cvs.
68259         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68260
68261 2005-05-29  Derek Price  <derek@ximbiot.com>
68262
68263         * config/srclist.txt (glob_.h, glob.c): Add these files.
68264
68265 2005-05-29  Derek Price  <derek@ximbiot.com>
68266
68267         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68268         * modules/glob: New file.
68269         * modules/getlogin_r: Add link to POSIX spec in description.
68270
68271 2005-05-29  Derek Price  <derek@ximbiot.com>
68272             Paul Eggert  <eggert@cs.ucla.edu>
68273
68274         * m4/glob.m4: New file.
68275
68276 2005-05-29  Derek Price  <derek@ximbiot.com>
68277             Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * lib/glob_.h, lib/glob.c: New files.
68280
68281 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68282
68283         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68284         * modules/fts-lgpl (Depends-on): Remove gettext.
68285
68286 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68287
68288         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68289         and don't require gt_INTTYPES_PRI.
68290
68291 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68292
68293         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68294
68295         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68296         the configuration hassle isn't worth it.
68297         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68298         (LONGEST_MODIFIER, PRIuMAX): Remove.
68299
68300 2005-05-27  Bruno Haible  <bruno@clisp.org>
68301
68302         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68303
68304 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68307         _POSIX_PTHREAD_SEMANTICS for Solaris.
68308
68309 2005-05-25  Derek Price  <derek@ximbiot.com>
68310
68311         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68312
68313 2005-05-25  Derek Price  <derek@ximbiot.com>
68314             Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68317         * lib/getlogin_r.c, getlogin_r.h: New files.
68318
68319 2005-05-25  Bruno Haible  <bruno@clisp.org>
68320             Derek Price  <derek@ximbiot.com>
68321
68322         * lib/getlogin_r.h: Simplify API documentation.
68323
68324 2005-05-23  Derek Price  <derek@ximbiot.com>
68325
68326         * modules/minmax (Files): Add m4/minmax.m4.
68327         (configure.ac): Add gl_MINMAX.
68328
68329 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68330
68331         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68332         so that unistd-safer.h (GPL'ed code) need not be included.
68333
68334 2005-05-22  Bruno Haible  <bruno@clisp.org>
68335
68336         * m4/minmax.m4: New file.
68337         Based on a patch by Derek Price <derek@ximbiot.com>.
68338
68339 2005-05-22  Bruno Haible  <bruno@clisp.org>
68340
68341         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68342         (INT64_MIN): Fix definition.
68343         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68344
68345         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68346         NEED_SIGNED_INT_TYPES.
68347
68348         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68349         HAVE_SYSTEM_INTTYPES.
68350
68351 2005-05-22  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68354         Also include <sys/param.h> if it defines MIN, MAX.
68355         Based on a patch by Derek Price <derek@ximbiot.com>.
68356
68357 2005-05-21  Jim Meyering  <jim@meyering.net>
68358
68359         * modules/fts (Files): Add m4/inttypes-pri.m4.
68360         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68361
68362 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         New fts module.
68365         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68366         (setup_dir, free_dir): New functions.
68367         (enter_dir, leave_dir): Define trivial
68368         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68369         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68370         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68371         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68372         Move to fts-cycle.c.
68373         (fts_open): Use setup_dir.
68374         (fts_close): Use free_dir.
68375         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68376         This adds a label and some gotos, but the alternatives were messier.
68377         Check for memory allocation failure when entering a dir.
68378         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68379         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68380         (FTS): New member fts_cycle, that is a union that contains the
68381         old active_dir_ht and cycle_state.  All uses changed to mention
68382         fts_cycle.ht and fts_cycle.state.
68383         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68384         fts.c, with the following changes:
68385         (setup_dir, free_dir): New functions.
68386         (enter_dir): Now returns bool.  Return true if successful, false
68387         if memory exhausted.  All callers changed.
68388         Do not bother partly cleaning up on
68389         memory allocation failure; that is free_dir's job.
68390         However, free ad if hash_insert fails, to avoid memory leak.
68391         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68392         fts->fts_options to see which union member to use.
68393
68394 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68395
68396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68397         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68398
68399 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68402
68403 2005-05-20  Jim Meyering  <jim@meyering.net>
68404
68405         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68406         Now a macro, to pacify GCC.
68407
68408 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68409
68410         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68411         of -1.
68412
68413 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68414
68415         * lib/chown.c (rpl_chown): Return -1 on failure.
68416
68417 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68420         Don't check for stddef.h.
68421         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68422         don't use its results.
68423         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68424         since we include them unconditionally.  Don't require
68425         AM_STDBOOL_H, since stdbool is a prerequisite.
68426         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68427         since we assume C89 or better.
68428         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68429         as we don't use their results.
68430         Don't check for fchdir, memmove, memset, strrchr, as we use
68431         them unconditionally.
68432         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68433         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68434
68435 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68436
68437         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68438         Include <stddef.h> unconditionally, since we assume C89 now.
68439         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68440         * lib/fts.c: Include fts_.h first, to check interface.
68441         Do not include intprops.h; no longer needed.
68442         Include cycle-check.h and hash.h, since fts_.h no longer does.
68443         Remove unnecessary casts of closedir to void.
68444         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68445         decide whether to decrement nlinks.
68446         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68447         (FTS): Use struct hash_table * instead of Hash_table, so that
68448         we no longer need to include hash.h here.
68449
68450 2005-05-18  Jim Meyering  <jim@meyering.net>
68451
68452         * modules/dirfd (License): Change to LGPL.  Most of the code
68453         is already in the public domain.
68454
68455 2005-05-18  Jim Meyering  <jim@meyering.net>
68456
68457         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68458         Reported by Yoann Vandoorselaere.
68459
68460 2005-05-17  Jim Meyering  <jim@meyering.net>
68461
68462         * m4/fts.m4: New file, from coreutils.
68463
68464 2005-05-17  Jim Meyering  <jim@meyering.net>
68465
68466         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68467
68468 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68469
68470         Sync from coreutils.
68471         * m4/unlinkdir.m4: New file.
68472
68473 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         Sync from coreutils.
68476         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68477         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68478         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68479         White space changes only.
68480         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68481         special.
68482         * lib/yesno.c: Include getline.h, not ctype.h.
68483         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68484         Use getline to remove arbitrary restriction on response length.
68485
68486 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68487
68488         * config/srclist-update: Spell out "Street" in FSF postal
68489         mail address; this is the style the FSF seems to prefer.
68490
68491         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68492         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68493         this updates FSF postal mail address.
68494
68495         Sync from coreutils.
68496         * modules/unlinkdir: New file.
68497         * modules/yesno (Depends-on): Add getline.
68498         * MODULES.html.sh (File system functions): Add unlinkdir.
68499
68500 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68503         lib/strsep.h:
68504         Change the initial comment to refer to GPL, not LGPL.
68505         gnulib-tool will change it to LGPL as needed.
68506
68507         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68508         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68509         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68510         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68511         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68512         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68513         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68514         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68515         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68516         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68517         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68518         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68519         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68520         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68521         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68522         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68523         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68524         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68525         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68526         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68527         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68528         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68529         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68530         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68531         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68532         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68533         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68534         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68535         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68536         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68537         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68538         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68539         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68540         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68541         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68542         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68543         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68544         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68545         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68546         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68547         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68548         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68549         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68550         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68551         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68552         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68553         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68554         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68555         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68556         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68557         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68558         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68559         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68560         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68561         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68562         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68563         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68564         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68565         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68566         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68567         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68568         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68569         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68570         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68571         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68572         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68573         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68574         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68575         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68576         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68577         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68578         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68579         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68580         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68581         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68582         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68583         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68584         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68585         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68586         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68587         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68588         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68589         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68590         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68591         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68592         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68593         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68594         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68595         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68596         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68597         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68598         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68599         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68600         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68601         lib/yesno.c, lib/yesno.h:
68602         Update FSF postal mail address.
68603
68604 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68605
68606         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68607         tests/test-memmem.c, tests/test-stpncpy.c:
68608         Update FSF postal mail address.
68609
68610 2005-05-13  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68613         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68614         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68615         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68616         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68617         Add support for 64-bit integers in the MSVC compiler.
68618
68619 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68620
68621         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68622
68623 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68624
68625         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68626
68627 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * doc/getdate.texi (General date syntax): Don't say that date
68630         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68631         Problem reported by Nic Ferrier.
68632
68633 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68634
68635         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68636         specified in ai_socktype. Fix invalid ai_protocol
68637         check. ai_protocol is usually set to 0 or depending on
68638         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68639         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68640         ai_socktype / ai_protocol in the returned addrinfo structure.
68641
68642 2005-05-10  Simon Josefsson  <jas@extundo.com>
68643
68644         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68645         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68646
68647 2005-05-10  Karl Berry  <karl@gnu.org>
68648
68649         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68650         (from http://www.gnu.org/licenses).
68651         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68652         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68653         fdl.texi suffices.
68654
68655 2005-05-10  Karl Berry  <karl@gnu.org>
68656
68657         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68658         (COPYING.DOC): remove.
68659
68660         * config/srclist-update: new FSF address.
68661
68662 2005-05-10  Derek Price  <derek@ximbiot.com>
68663
68664         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68665         possible.
68666
68667 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68668             Bruno Haible  <bruno@clisp.org>
68669
68670         * modules/inet_ntop: New file.
68671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68672         inet_ntop.
68673
68674 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68675             Bruno Haible  <bruno@clisp.org>
68676
68677         * m4/inet_ntop.m4: New file.
68678
68679 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68680             Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/inet_ntop.h: New file.
68683         * lib/inet_ntop.c: New file, from glibc with modifications.
68684
68685 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * modules/time_r (License): Change to LGPL.
68688         * modules/extensions (License): Change to LGPL.  Actually,
68689         the license is more permissive than that, but currently gnulib-tool
68690         doesn't know how to handle more-permissive licenses.
68691
68692         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68693         Problem reported by Dave Love.
68694
68695 2005-05-08  Jim Meyering  <jim@meyering.net>
68696
68697         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68698         blank.
68699
68700 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * modules/argmatch (Depends-on): Add stdbool.
68703         * modules/backupfile (Depends-on): Likewise.
68704         * modules/chdir-long (Depends-on): Likewise.
68705         * modules/closeout (Depends-on): Likewise.
68706         * modules/cycle-check (Depends-on): Likewise.
68707         * modules/dirname (Depends-on): Likewise.
68708         * modules/fnmatch (Depends-on): Likewise.
68709         * modules/fsusage (Depends-on): Likewise.
68710         * modules/fwriteerror (Depends-on): Likewise.
68711         * modules/getcwd (Depends-on): Likewise.
68712         * modules/getloadavg (Depends-on): Likewise.
68713         * modules/hard-locale (Depends-on): Likewise.
68714         * modules/makepath (Depends-on): Likewise.
68715         * modules/mountlist (Depends-on): Likewise.
68716         * modules/nanosleep (Depends-on): Likewise.
68717         * modules/posixtm (Depends-on): Likewise.
68718         * modules/quotearg (Depends-on): Likewise.
68719         * modules/readtokens (Depends-on): Likewise.
68720         * modules/readtokens0 (Depends-on): Likewise.
68721         * modules/readutmp (Depends-on): Likewise.
68722         * modules/save-cwd (Depends-on): Likewise.
68723         * modules/strftime (Depends-on): Likewise.
68724         * modules/userspec (Depends-on): Likewise.
68725         * modules/utimecmp (Depends-on): Likewise.
68726         * modules/xgetcwd (Depends-on): Likewise.
68727         * modules/xnanosleep (Depends-on): Likewise.
68728         * modules/xstrtod (Depends-on): Likewise.
68729         * modules/yesno (Depends-on): Likewise.
68730
68731 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68732
68733         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68734         needless checks.
68735
68736 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         Merge from coreutils.  Among other things,
68739         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68740         * lib/fd-safer.c: New file.
68741         * lib/fcntl-safer.h, open-safer.c: Remove.
68742         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68743         * lib/dup-safer.c: Include unistd-safer.h first.
68744         Don't include errno.h.
68745         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68746         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68747         * lib/file-type.c: Rely on file-type.h change.
68748         * lib/getloadavg.c: Include unistd-safer.h.
68749         (getloadavg): Use safer open.
68750         * lib/getusershell.c: Include "stdio-safer.h".
68751         (getusershell): Use safer fopen.
68752         * lib/long-options.c (long_options): Use NULL rather than 0.
68753         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68754         'free'.
68755         * lib/modechange.c: Likewise.
68756         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68757         (MODE_DONE): New constant.
68758         (struct mode_change): Remove 'next' member.
68759         (make_node_op_equals): New function; like the old one of the
68760         same name, except it allocates an array.
68761         (mode_compile, mode_create_from_ref): Use it.
68762         (mode_compile): Allocate result as an array, not a linked list.
68763         Parse octal string ourself, so that we catch mistakes like "+0".
68764         (mode_adjust): Arg is an array, not a linked list.
68765         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68766         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68767         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68768         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68769         Remove.  This is now stat-macros.h's job.
68770         (talloc): Remove.  All callers replaced by xalloc, so that
68771         our invokers don't have to worry about reporting memory failures.
68772         (make_node_op_equals): Remove.
68773         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68774         New constants.
68775         (struct mode_change): Moved here from modechange.h.
68776         (mode_append_entry): Remove.
68777         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68778         apps to have incorrect behavior.  Use simpler algorithm for head
68779         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68780         Detect more invalid usages rather than having somewhat-random behavior.
68781         Don't insert an "a=" action, as that leads to incorrect behavior.
68782         (mode_compile, mode_create_from_ref): Return NULL on error instead
68783         of an enum, since now there's only one way to have an error.  All
68784         callers changed.
68785         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68786         at the correct time.  Simplify calculation of "+u" and its ilk.
68787         Don't mishandle "+X".
68788         (mode_free): Remove "register" and localize decls.
68789         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68790         (struct mode_change): Move to modechange.c; callers don't
68791         need to see this stuff.
68792         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68793         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68794         (mode_change, mode_adjust): Reflect the new signatures noted above.
68795         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68796         that might redefine system include files.
68797         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68798         (my_usleep): Use NULL rather than (void *) 0.
68799         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68800         Use siginterrupt to specify that system calls should be interrupted.
68801         (rpl_nanosleep): Move initialization of suspended closer to call of
68802         my_usleep.
68803         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68804         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68805         (desirable_utmp_entry): New function.
68806         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68807         using x2nrealloc, to simplify logic.
68808         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68809         size calculation.  Do not assume utmp file is a regular file.
68810         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68811         (READ_UTMP_CHECK_PIDS): New constant.
68812         * lib/save-cwd.c: Include unistd-safer.h.
68813         (save_cwd): Use fd_safer.
68814         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68815         [!_LIBC] Include "stat-macros.h" instead.
68816         * lib/unistd-safer.h (fd_safer): New decl.
68817
68818 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * modules/getloadavg (Depends-on): Add unistd-safer.
68821         * modules/getusershell (Depends-on): Add stdio-safer.
68822         * modules/lstat (Depends-on): Remove xalloc.
68823         * modules/mkstemp (Depends-on): Add stat-macros.
68824         * modules/modechange (Depends-on): Remove xstrtol.
68825         Add stat-macros, xalloc.
68826         * modules/save-cwd (Depends-on): Add unistd-safer.
68827         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68828         * modules/unistd-safer (Files): Add lib/fd-safer.c
68829         (Makefile.am): Remove lib_SOURCES.
68830
68831         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68832         Remove fcntl-safer; unistd-safer supersedes it.
68833
68834 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68837         AC_HEADER_STAT.
68838         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68839         (gl_PREREQ_CHOWN): Remove.
68840         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68841         it.  Don't require AC_HEADER_STAT.
68842         (gl_PREREQ_LSTAT): Remove.
68843         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68844         Don't require AC_HEADER_STAT.
68845         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68846         (gl_PREREQ_RMDIR): Remove.
68847         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68848         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68849         the stat-macros module a prerequisite.
68850         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68851         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68852         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68853         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68854         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68855         variable names.
68856         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68857         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68858         variable prefixes.
68859         * m4/fcntl-safer.m4: Remove.
68860         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68861         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68862         Invoke gl_PREREQ_FD_SAFER.
68863         (gl_PREREQ_FD_SAFER): New macro.
68864         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68865         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68866         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68867         Remove duplicate call to AC_LIBOBJ(readutmp).
68868         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68869
68870         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68871         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68872
68873 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * MODULES.html.sh (Misc): Add byteswap.
68876
68877 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68878
68879         * modules/getcwd (Depends-on): Add extensions.
68880         * modules/openat (Depends-on): Likewise.
68881
68882 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68883
68884         * modules/byteswap: New file.
68885
68886 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68887
68888         * m4/byteswap.m4: New file.
68889
68890 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68891
68892         * lib/byteswap_.h: New file.
68893
68894 2005-04-25  Karl Berry  <karl@gnu.org>
68895
68896         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68897
68898 2005-04-25  Albert Chin  <china@thewrittenword.com>
68899
68900         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68901         Toolkit C bug.
68902
68903 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68904
68905         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68906         (func_ln_if_changed): Remove forcibly for no error message
68907         in case file does not exist.
68908
68909 2005-04-19  Simon Josefsson  <jas@extundo.com>
68910
68911         * gnulib-tool (Options): Make --symlink mean --symbolic.
68912
68913 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68914
68915         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68916
68917 2005-04-16  Simon Josefsson  <jas@extundo.com>
68918
68919         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68920
68921 2005-04-15  Simon Josefsson  <jas@extundo.com>
68922
68923         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68924
68925 2005-04-15  Simon Josefsson  <jas@extundo.com>
68926
68927         * gnulib-tool: Rename --symlink to --symbolic.
68928
68929 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68930
68931         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68932         symbolic links to files instead of copying/moving.  Add --aux-dir,
68933         specifying directory relative --dir where auxiliary build tools
68934         are placed.
68935
68936 2005-04-14  Bruno Haible  <bruno@clisp.org>
68937
68938         * modules/allocsa (License): Change to LGPL.
68939         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68940
68941 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68944         that "UTC +1 second" continues to work.  Problem reported
68945         by Dmitry V. Levin.
68946         (relunit_snumber): New rule.
68947         (relunit): Use it.
68948
68949 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * lib/getdate.y (universal_time_zone_table): New constant.
68952         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68953         universal_time_zone_table.
68954         (lookup_zone): Prefer universal_time_zone_table to
68955         local_time_zone_table, so that "GMT" time stamps are allowed in
68956         London during the summer.  Problem reported by Ian Abbott.
68957
68958 2005-04-12  Jim Meyering  <jim@meyering.net>
68959
68960         * lib/human.c (humblock): Set *options even when returning due to
68961         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68962         warning from gcc-4.
68963
68964 2005-04-09  Jim Meyering  <jim@meyering.net>
68965
68966         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68967         -Wuninitialized: initialize tm0.tm_year.
68968
68969 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68972         count, since there's no maximum.  All uses changed.
68973         Add member dsts_seen.
68974         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68975         not being INT_MAX.
68976         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68977         Use pc_rels_seen to decide whther a date is absolute.
68978
68979         * lib/getdate.y (number): Don't overwrite year.
68980         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68981         check.
68982
68983 2005-04-02  Simon Josefsson  <jas@extundo.com>
68984
68985         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68986         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68987
68988 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68989
68990         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68991         where no absolute path name can be longer than PATH_MAX.
68992
68993 2005-03-27  Jim Meyering  <jim@meyering.net>
68994
68995         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68996
68997 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69000         "one's complement" -> "ones' complement" in comment, as per Knuth.
69001         "value of type" -> "type or expression" in comment.
69002         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69003
69004 2005-03-26  Jim Meyering  <jim@meyering.net>
69005
69006         Comment nits.
69007         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69008         Correct typos: s/or/of/.
69009
69010 2005-03-26  Jim Meyering  <jim@meyering.net>
69011
69012         * modules/check-include-files: Move to ../ and rename to...
69013         * check-module: ...this.
69014
69015 2005-03-25  Jim Meyering  <jim@meyering.net>
69016
69017         * modules/xvasprintf (Files): Add xalloc.h.
69018
69019 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69020
69021         * modules/gettext (Files): config/config.rpath ->
69022         build-aux/config.rpath
69023         * modules/iconv (Files): Likewise.
69024         Problem reported by Oskar Liljeblad.
69025
69026 2005-03-23  Jim Meyering  <jim@meyering.net>
69027
69028         * modules/check-include-files: New script to check for
69029         missing dependencies, multiple includes, etc.
69030
69031         * modules/c-strtold (Depends-on): Add xalloc.
69032         * modules/c-strtod (Depends-on): Add xalloc.
69033         * modules/hash (Depends-on): Add xalloc.
69034         (Files): Remove lib/xalloc.h.
69035
69036         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69037         * modules/userspec (Files): Add lib/inttostr.h.
69038
69039 2005-03-23  Jim Meyering  <jim@meyering.net>
69040
69041         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69042
69043 2005-03-22  Jim Meyering  <jim@meyering.net>
69044
69045         * modules/stat-macros: New module.
69046         * modules/canonicalize, modules/euidaccess, modules/file-type,
69047         * modules/filemode, modules/lchown, modules/makepath,
69048         * modules/rmdir, modules/stat: Depend on new stat-macros module
69049         rather than listing lib/stat-macros.h manually.
69050         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69051
69052 2005-03-22  Jim Meyering  <jim@meyering.net>
69053
69054         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69055
69056 2005-03-22  Bruno Haible  <bruno@clisp.org>
69057
69058         * config/srclist.txt: Replace target directory 'config' with
69059         'build-aux'.
69060         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69061         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69062         ../build-aux/.
69063
69064 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * modules/chdir-long (Depends-on): Add mempcpy.
69067
69068         * modules/acl, modules/backupfile, modules/c-strtod,
69069         modules/c-strtold, modules/canon-host, modules/canonicalize,
69070         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69071         modules/exclude, modules/exitfail, modules/file-type,
69072         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69073         modules/getdate, modules/getline, modules/getpagesize,
69074         modules/getpass, modules/getugroups, modules/group-member,
69075         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69076         modules/inttostr, modules/long-options, modules/makepath,
69077         modules/md5, modules/memcasecmp, modules/memcoll,
69078         modules/modechange, modules/mountlist, modules/path-concat,
69079         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69080         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69081         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69082         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69083         modules/strftime, modules/strndup, modules/strverscmp,
69084         modules/timespec, modules/unlocked-io, modules/userspec,
69085         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69086         modules/yesno:
69087         Remove lib_SOURCES line from Makefile.am section, as this is now
69088         done automatically by the corresponding Autoconf macro.
69089
69090 2005-03-21  Jim Meyering  <jim@meyering.net>
69091
69092         Changes imported from coreutils.
69093
69094         * lib/cycle-check.c: Don't include xalloc.h.
69095
69096         * lib/path-concat.c: Don't include assert.h.
69097         (path_concat): Remove assertion that would have triggered
69098         for ABASE starting with more than one slash.
69099         Reported by Andreas Schwab.
69100
69101         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69102         properly when ABASE is an absolute file name.
69103         Correct the description of this function.
69104         Include <assert.h>.
69105         Add an assertion and a test driver.
69106         This fixes a bug introduced on 2004-07-02.
69107         Andreas Schwab reported the resulting failure of cp --parents:
69108         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69109
69110 2005-03-21  Jim Meyering  <jim@meyering.net>
69111
69112         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69113         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69114
69115 2005-03-21  Jim Meyering  <jim@meyering.net>
69116         and  Paul Eggert  <eggert@cs.ucla.edu>
69117
69118         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69119         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69120         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69121         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69122         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69123         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69124         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69125         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69126         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69127         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69128         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69129         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69130         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69131         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69132         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69133         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69134         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69135         for these modules.
69136
69137 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69138
69139         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69140         (which shouldn't happen), generate nothing instead of returning 0
69141         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69142
69143 2005-03-16  Bruno Haible  <bruno@clisp.org>
69144
69145         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69146         HAVE_LONGLONG_64BIT.
69147
69148 2005-03-16  Bruno Haible  <bruno@clisp.org>
69149
69150         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69151         HAVE_LONGLONG_64BIT.
69152
69153 2005-03-16  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69156         HAVE_LONGLONG_64BIT.
69157
69158 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69161         reliably distinguish strftime failure from empty output on POSIX
69162         hosts.
69163
69164 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69167         (iconv_string): Don't guess a size-zero buffer, as that might cause
69168         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69169         result would be 'too large', where 'too large' is (heuristically)
69170         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69171         overflow concerns.  This will prevent some unwanted malloc failures
69172         when the inputs are very large.
69173
69174 2005-03-15  Karl Berry  <karl@gnu.org>
69175
69176         * config/srclist.txt (config.rpath): from gettext.
69177         * config/config.rpath: update.
69178
69179 2005-03-15  Bruno Haible  <bruno@clisp.org>
69180
69181         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69182         to 'negate'.
69183
69184         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69185         variable.
69186
69187         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69188         results.
69189
69190 2005-03-14  Simon Josefsson  <jas@extundo.com>
69191
69192         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69193         <fx@gnu.org>.
69194
69195 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69198         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69199         intprops.h.
69200         * lib/strtol.c: Likewise.
69201
69202 2005-03-14  Jim Meyering  <jim@meyering.net>
69203
69204         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69205         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69206         to be nonzero so that we (and caller) can detect the difference
69207         between a valid zero-length expansion and an error return, even
69208         when the underlying strftime fails before writing anything into
69209         that location.
69210
69211 2005-03-14  Bruno Haible  <bruno@clisp.org>
69212
69213         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69214         Update from GNU gettext 0.14.3.
69215
69216 2005-03-10  Jim Meyering  <jim@meyering.net>
69217
69218         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69219
69220 2005-03-10  Jim Meyering  <jim@meyering.net>
69221
69222         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69223         so that this module works on systems without fchdir.
69224
69225 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69226
69227         Factor int-properties macros into a single file, except for
69228         glibc-related files.
69229         * lib/intprops.h: New file.
69230         * lib/getloadavg.c: Include it instead of limits.h.
69231         (INT_STRLEN_BOUND): Remove.
69232         * lib/human.c: Include intprops.h.
69233         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69234         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69235         302/1000.
69236         * lib/inttostr.h: Include intprops.h instead of limits.h.
69237         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69238         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69239         for consistency with intprops.h.
69240         (time_t_is_integer, twos_complement_arithmetic): Use them.
69241         * lib/sig2str.h: Include <signal.h>, intprops.h.
69242         (INT_STRLEN_BOUND): Remove.
69243         * lib/strftime.c (TYPE_SIGNED): Remove.
69244         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69245         * lib/strtol.c: Adjust comments to match intprops.h.
69246         * lib/userspec.c: Include intprops.h.
69247         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69248         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69249         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69250         instead of rolling our own expressions.
69251         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69252
69253         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69254         instead of int.
69255         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69256         the right thing even if adding 1900 would overflow.  Similarly
69257         for tm_mon + 1 and tm_yday + 1.
69258         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69259         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69260         (DO_SIGNED_NUMBER): New macro.
69261         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69262
69263 2005-03-07  Bruno Haible  <bruno@clisp.org>
69264
69265         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69266
69267 2005-03-07  Bruno Haible  <bruno@clisp.org>
69268
69269         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69270
69271 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69272
69273         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69274         (func_import): Only replace files via --import when they have actually
69275         changed.
69276
69277 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69278
69279         * m4/mmap-anon.m4: New file.
69280         * m4/pagealign_alloc.m4: New file.
69281
69282 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69283             Bruno Haible  <bruno@clisp.org>
69284
69285         * modules/pagealign_alloc: New file.
69286         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69287
69288 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69289             Bruno Haible  <bruno@clisp.org>
69290
69291         * lib/pagealign_alloc.h: New file.
69292         * lib/pagealign_alloc.c: New file.
69293
69294 2005-03-03  Bruno Haible  <bruno@clisp.org>
69295
69296         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69297         Use an all-permissive copyright notice, recommended by RMS.
69298
69299 2005-03-02  Bruno Haible  <bruno@clisp.org>
69300
69301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69302         of AIX, the replacement has to be done only after <string.h> is
69303         included, therefore not in config.h. stpncpy.h does the replacement,
69304         and stpncpy.c uses it.
69305
69306 2005-03-02  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69309         stpncpy.c uses it.
69310
69311 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69314         The workaround isn't strictly needed for POSIX conformance, and
69315         it's too much of a pain to configure and maintain.  We'll ask
69316         people to fix their kernels instead.
69317         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69318         (NANOSLEEP_BUG_WORKAROUND): Remove.
69319         (xnanosleep): Remove the workaround.
69320
69321 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69324         Reported by Derek Price.
69325         (Include): Add "timespec.h".
69326
69327         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69328
69329 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69332         to detect nanosleep bug.
69333
69334 2005-03-01  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69337
69338 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * modules/gethrxtime: New file.
69341         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69342         (Depends-on): Add gethrxtime.
69343         (configure.ac): Add gl_XNANOSLEEP.
69344         (Makefile.am): Remove lib_SOURCES line.
69345
69346 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69349         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69350
69351 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69354         * lib/timespec.h (gettime): Return void, since it always
69355         succeeds now.  All uses changed.
69356         * lib/gettime.c (gettime): Likewise.
69357         [HAVE_NANOTIME]: Prefer nanotime.
69358         Assume gettimeofday succeeds, as POSIX requires.
69359         Assime time () succeeds, since other code already does.
69360         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69361         (timespec_subtract): Remove.
69362         (NANOSLEEP_BUG_WORKAROUND): New constant.
69363         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69364         things considerably.  Use it only on GNU/Linux hosts, since the
69365         workaround shouldn't be needed elsewhere.
69366
69367 2005-02-24  Bruno Haible  <bruno@clisp.org>
69368
69369         * modules/gettext (Files): Add m4/glibc2.m4.
69370
69371 2005-02-24  Bruno Haible  <bruno@clisp.org>
69372
69373         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69374         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69375         * m4/progtest.m4:
69376         Update from GNU gettext 0.14.2.
69377         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69378
69379 2005-02-24  Bruno Haible  <bruno@clisp.org>
69380
69381         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69382         * lib/config.charset: Update from GNU gettext 0.14.2.
69383
69384 2005-02-24  Bruno Haible  <bruno@clisp.org>
69385
69386         * lib/gettext.h: Update from GNU gettext 0.14.2.
69387
69388 2005-02-23  Simon Josefsson  <jas@extundo.com>
69389
69390         * m4/iconvme.m4: New file.
69391
69392 2005-02-23  Jim Meyering  <jim@meyering.net>
69393
69394         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69395         change.
69396         Thanks to Bruno Haible for catching it.
69397
69398 2005-02-22  Simon Josefsson  <jas@extundo.com>
69399
69400         * modules/iconvme: New file.
69401
69402         * MODULES.html.sh: Add iconvme.
69403
69404 2005-02-22  Simon Josefsson  <jas@extundo.com>
69405
69406         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69407
69408 2005-02-22  Simon Josefsson  <jas@extundo.com>
69409
69410         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69411
69412 2005-02-22  Jim Meyering  <jim@meyering.net>
69413
69414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69415         s/ifndef/ifdef/.
69416
69417 2005-02-20  Neil Conway  <neilc@samurai.com>
69418
69419         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69420         returned by OSX/Darwin if the specified buffer is not large
69421         enough for the hostname.
69422
69423 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69424
69425         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69426         pass it to _help, otherwise the latter coredumps trying to
69427         dereference state.root_argp.
69428
69429 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69430
69431         * modules/chdir-long (Depends-on): Add memrchr.
69432         * modules/memrchr (Files): Add lib/memrchr.h.
69433         (Include): "memrchr.h".
69434
69435 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69436
69437         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69438
69439 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * lib/memrchr.h: New file.
69442         * lib/chdir-long.c: Include it.
69443         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69444         Don't bother including stddef.h.
69445
69446 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69447
69448         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69449         inclusion.
69450         Include <sys/types.h>, for dev_t.
69451         (ME_DUMMY, ME_REMOTE): Move from here....
69452         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69453         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69454         Dmitry V. Levin.
69455         Include mountlist.h first, to test the interface.
69456
69457 2005-01-29  Bruno Haible  <bruno@clisp.org>
69458
69459         * lib/progname.c (program_name): Initialize.
69460         Needed when linking statically on MacOS X.
69461
69462 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69463
69464         Sync from coreutils.
69465         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69466         (Depends-on): Add c-strtod.
69467         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69468
69469 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         Sync from coreutils.
69472         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69473
69474         Remove files that are specific to coreutils.
69475         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69476
69477 2005-01-28  Bruno Haible  <bruno@clisp.org>
69478
69479         * modules/javacomp: New file.
69480         * MODULES.html.sh (Java): Add javacomp.
69481
69482 2005-01-28  Bruno Haible  <bruno@clisp.org>
69483
69484         * m4/javacomp.m4: New file, from GNU gettext.
69485
69486 2005-01-28  Bruno Haible  <bruno@clisp.org>
69487
69488         * lib/javacomp.sh.in: New file, from GNU gettext.
69489         * lib/javacomp.h: New file, from GNU gettext.
69490         * lib/javacomp.c: New file, from GNU gettext.
69491
69492 2005-01-26  Simon Josefsson  <jas@extundo.com>
69493
69494         * lib/gai_strerror.c: Use GPL in header.
69495
69496 2005-01-26  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/javaexec: New file.
69499         * MODULES.html.sh (Java): Add javaexec.
69500
69501 2005-01-26  Bruno Haible  <bruno@clisp.org>
69502
69503         * m4/javaexec.m4: New file, from GNU gettext.
69504
69505 2005-01-26  Bruno Haible  <bruno@clisp.org>
69506
69507         * lib/javaexec.sh.in: New file, from GNU gettext.
69508         * lib/javaexec.h: New file, from GNU gettext.
69509         * lib/javaexec.c: New file, from GNU gettext.
69510
69511 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69512
69513         * modules/lchown (Depends-on): Remove lchown.h
69514
69515 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69516
69517         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69518         must be defined if the header file was not found, in order
69519         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69520
69521 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69522
69523         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69524         initializers for struct pentry_state.
69525         (__argp_error): Check return value of __asprintf
69526         (__argp_failure): Translate error message
69527
69528         * lib/argp-parse.c: Removed braces around the expansion of N_()
69529
69530 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69533         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69534         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69535         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69536         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69537         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69538         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69539         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69540         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69541         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69542         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69543         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69544         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69545         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69546         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69547         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69548         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69549         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69550         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69551         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69552         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69553         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69554         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69555         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69556         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69557         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69558         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69559         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69560         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69561         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69562         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69563         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69564         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69565         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69566         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69567         Use an all-permissive copyright notice, recommended by RMS.
69568
69569 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * modules/chdir-long (Depends-on): Remove mempcpy.
69572
69573 2005-01-21  Jim Meyering  <jim@meyering.net>
69574
69575         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69576         same value as for Solaris 9.
69577
69578         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69579         component length.  This included changing the parameter to be
69580         of type `char *' rather than `char const *'.
69581         * lib/chdir-long.h (chdir_long): Update prototype.
69582
69583         * lib/openat.c (fdopendir, fstatat): New functions.
69584         * lib/openat.h: Include headers required for use of DIR and struct
69585         stat.
69586         [AT_SYMLINK_NOFOLLOW]: Define.
69587         (fdopendir, fstatat): Add prototypes.
69588
69589 2005-01-21  Bruno Haible  <bruno@clisp.org>
69590
69591         * modules/classpath: New file.
69592         * MODULES.html.sh (Java): Add classpath.
69593
69594 2005-01-21  Bruno Haible  <bruno@clisp.org>
69595
69596         * lib/classpath.h: New file, from GNU gettext.
69597         * lib/classpath.c: New file, from GNU gettext.
69598
69599 2005-01-20  Simon Josefsson  <jas@extundo.com>
69600
69601         * modules/version-etc-fsf: New file.
69602
69603 2005-01-20  Simon Josefsson  <jas@extundo.com>
69604
69605         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69606         * lib/version-etc.c: Remove version_etc_copyright.
69607         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69608         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69609
69610 2005-01-20  Simon Josefsson  <jas@extundo.com>
69611
69612         * lib/base64.h (isbase64): Add.
69613
69614         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69615         using a unsigned prototype, don't inline.
69616         (base64_decode): Use it.
69617
69618 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69619
69620         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69621         it.
69622
69623 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * lib/save-cwd.c (save_cwd): Remove code to support the case
69626         where fchdir is missing or flaky.
69627
69628 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69631
69632 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69635         AC_LIBSOURCES now does this.
69636         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69637         with new ullong_max module.
69638
69639 2005-01-19  Bruno Haible  <bruno@clisp.org>
69640
69641         * modules/sh-quote: New file.
69642         * MODULES.html.sh (Executing programs): Add sh-quote.
69643
69644 2005-01-19  Bruno Haible  <bruno@clisp.org>
69645
69646         * lib/sh-quote.h: New file, from GNU gettext.
69647         * lib/sh-quote.c: New file, from GNU gettext.
69648
69649 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         Merge from coreutils.
69652         * m4/ullong_max.m4: New file.
69653         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69654         (gl_MACROS): Assume localeconv exists.
69655
69656 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         Merge changes from coreutils, as described below in several
69659         changelogs dated today.
69660
69661         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69662         (O_DIRECTORY): Remove; not needed here, since "." must be
69663         a directory.  All uses removed.
69664         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69665         universal on Suns, and we also need to test for IRIX.
69666         Revamp code to use 'if' rather than '#if'.
69667         Avoid unnecessary comparison of cwd->desc to 0.
69668
69669         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69670         for known valid error numbers rather than observed invalid ones.
69671
69672 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * modules/ullong_max: New file.
69675
69676         * modules/chdir-long, modules/openat: New files.
69677         * modules/save-cwd (Depends-on): Depend on chdir-long.
69678         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69679
69680 2005-01-18  Jim Meyering  <jim@meyering.net>
69681
69682         Merge from coreutils.
69683         * m4/chdir-long.m4, m4/openat.m4: New files.
69684         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69685         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69686         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69687         is sane and DOES follow symlinks.  Besides, testing 20 different
69688         systems found no broken chown implementations.
69689         Prompted by a change in rsync's copy of this macro.
69690         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69691
69692         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69693
69694         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69695         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69696         NULL-means-set-to-current-time semantics.
69697         Remove temporary file immediately, rather than waiting
69698         for configure's at-exit trap code to do it.
69699
69700 2005-01-18  Jim Meyering  <jim@meyering.net>
69701
69702         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69703
69704         * lib/utimens.c (futimens): Account for the fact that futimes
69705         can also fail with errno == ENOSYS or errno == ENOENT.
69706         Patch from Dmitry V. Levin.
69707
69708         Change the name of the robust chdir function from chdir to chdir_long.
69709         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69710         (restore_cwd): Use chdir_long, not chdir.
69711         * lib/chdir-long.c: Renamed from chdir.c.
69712         * lib/chdir-long.h: Renamed from chdir.h.
69713         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69714         Hurd.
69715
69716 2005-01-18  Bruno Haible  <bruno@clisp.org>
69717
69718         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69719         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69720         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69721         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69722         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69723         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69724         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69725         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69726         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69727         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69728         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69729         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69730         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69731         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69732         Use an all-permissive copyright notice, recommended by RMS.
69733
69734 2005-01-18  Bob Proulx  <bob@proulx.com>
69735
69736         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69737         simplify offsetof() macro construct to avoid compile failure with
69738         native HP-UX 11.0 ANSI C compiler.
69739
69740 2005-01-17  Bruno Haible  <bruno@clisp.org>
69741
69742         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69743         redundant because stpncpy.m4 takes care of it.
69744
69745 2005-01-17  Bruno Haible  <bruno@clisp.org>
69746
69747         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69748
69749 2005-01-17  Bruno Haible  <bruno@clisp.org>
69750
69751         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69752         used.
69753
69754 2005-01-17  Bruno Haible  <bruno@clisp.org>
69755
69756         * lib/fwriteerror.h (fwriteerror): Change specification to include
69757         fclose.
69758         * lib/fwriteerror.c: Include <stdbool.h>.
69759         (fwriteerror): At the end, close the file stream. Record whether
69760         stdout was already closed.
69761
69762 2005-01-17  Bruno Haible  <bruno@clisp.org>
69763
69764         * lib/execute.c (environ): Declare if needed.
69765         * lib/pipe.c (environ): Likewise.
69766         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69767
69768 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69769
69770         * modules/argp: Depend on vsnprintf
69771
69772 2005-01-10  Jim Meyering  <jim@meyering.net>
69773
69774         * modules/closeout (Depends-on): Add atexit.
69775
69776 2005-01-06  Bruno Haible  <bruno@clisp.org>
69777
69778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69779
69780 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69783         definitions to be after all include files, to avoid collisions.
69784         Problem reported by Bob Proulx.
69785
69786 2005-01-04  Jim Meyering  <jim@meyering.net>
69787
69788         Changes imported from coreutils.
69789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69790         as the mkstemp template, use a temporary directory and an
69791         8.3-friendly template to avoid trouble on systems like DJGPP.
69792         Reported by Juan M. Guerrero via Stepan Kasal.
69793         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69794         close. Remove the temporary directory right away, rather than waiting
69795         for configure's at-exit trap code to do it.
69796         Suggestion from Stepan Kasal.
69797
69798 2005-01-01  Simon Josefsson  <jas@extundo.com>
69799
69800         * gnulib-tool: Print #include directives when --import'ing.
69801
69802 2004-12-28  Simon Josefsson  <jas@extundo.com>
69803
69804         * tests/test-base64.c: Include required header files.  Remove
69805         unused variables.
69806
69807 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         * modules/error (Depends-on): Remove gettext.
69810
69811 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69814         not needed.  This removes a dependency on the gettext module.
69815         [defined _LIBC]: Do not include <libintl.h>; not needed.
69816
69817 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69820         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69821
69822 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69825         HAVE_DECL_STRTOLD.
69826
69827 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69828
69829         * modules/getdate (Depends-on): Remove alloca-opt.
69830
69831 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69832
69833         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69834
69835 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         * lib/argp-parse.c: Include <stddef.h>.
69838         (alignof, alignto): New macros.
69839         (parser_init): Don't assume that void * is aligned sufficiently
69840         for struct option.
69841
69842         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69843         need to extend the stack.
69844         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69845         large.
69846
69847 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69848
69849         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69850
69851 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69852
69853         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69854         (2004-10-24) change.  Apparently this was a false alarm.
69855
69856         * modules/getdate: Depend on alloca-opt, not alloca.
69857
69858 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69861         Remove now-obsolete comment about AIX.
69862         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69863         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69864         (YYMAXDEPTH): New macro.
69865
69866 2004-12-18  Simon Josefsson  <jas@extundo.com>
69867
69868         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69869
69870 2004-12-18  Bruno Haible  <bruno@clisp.org>
69871
69872         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69873
69874 2004-12-18  Bruno Haible  <bruno@clisp.org>
69875
69876         * lib/fatal-signal.c (fatal_signals): Make non-const.
69877         (init_fatal_signals): New function.
69878         (uninstall_handlers, install_handlers): Ignore signals that were set to
69879         SIG_IGN.
69880         (at_fatal_signal): Call init_fatal_signals.
69881         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69882         SIG_IGN.
69883         Reported by Paul Eggert.
69884
69885 2004-12-18  Bruno Haible  <bruno@clisp.org>
69886
69887         * doc/alloca.texi: New file.
69888         * doc/alloca-opt.texi: New file.
69889
69890 2004-12-17  Jim Meyering  <jim@meyering.net>
69891
69892         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69893         Otherwise, install-sh could exit with improper exit status when
69894         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69895
69896 2004-12-16  Simon Josefsson  <jas@extundo.com>
69897
69898         * tests/test-base64.c: Add license.
69899
69900 2004-12-15  Stepan Kasal  <address@hidden>
69901
69902         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69903
69904 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69905
69906         * modules/getcwd (Files): Add m4/d-ino.m4.
69907         Suggested by Mark D. Baushke.
69908
69909 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69910
69911         * lib/getdate.y (textint): New member "negative".
69912         (time_zone_hhmm): New function.
69913         Expect 14 shift-reduce conflicts, not 13.
69914         (o_colon_minutes): New rule.
69915         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69916         (yylex): Set the "negative" member of signed numbers.
69917
69918 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         * doc/getdate.texi (Time of day items, Time zone items):
69921         Describe new formats +00:00, UTC+00:00.
69922
69923 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69926         spurious "-l"s.  Problem reported by Stepan Kasal.
69927
69928 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69929
69930         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69931         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69932
69933 2004-12-04  Simon Josefsson  <jas@extundo.com>
69934
69935         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69936         Vandoorselaere <yoann@prelude-ids.org>.
69937
69938 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         Changes imported from coreutils.
69941         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69942         exist.
69943         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69944
69945 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69946
69947         Changes imported from coreutils.
69948         * lib/hard-locale.c: Assume <locale.h> exists.
69949         Include "strdup.h".
69950         (GLIBC_VERSION): New macro.
69951         (hard_locale): Assume setlocale exists.
69952         Rewrite to avoid #ifdef.
69953         Use strdup rather than malloc + strcpy.
69954         * lib/human.c: Assume <locale.h> exists.
69955         (human_readable): Assume localeconv exists.
69956
69957 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * modules/hard-locale (Depends-on): Add strdup.
69960
69961 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69962
69963         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69964         convert T2, not T.  (Imported from libc.)
69965
69966 2004-11-30  Simon Josefsson  <jas@extundo.com>
69967
69968         * modules/restrict (License): Change to LGPL.
69969
69970 2004-11-30  Simon Josefsson  <jas@extundo.com>
69971
69972         * m4/restrict.m4: Add copyright and copying conditions.
69973
69974 2004-11-30  Simon Josefsson  <jas@extundo.com>
69975
69976         * m4/base64.m4: New file.
69977
69978 2004-11-30  Simon Josefsson  <jas@extundo.com>
69979
69980         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69981         base64.
69982
69983         * tests/test-base64.c: New file.
69984
69985         * modules/base64: New file.
69986
69987 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69990         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69991
69992         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69993
69994 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69997         (__getcwd.c): Don't restore errno; glibc doesn't.
69998         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69999         first, falling back to our code only if its results look suspicious.
70000         Ensure that the resulting buffer is only as large as necessary.
70001
70002         * lib/readutmp.c: Include readutmp.h first.
70003         Include <errno.h>, since readutmp.h no longer does that.
70004         * lib/readutmp.h: Don't include <errno.h>,
70005         <sys/param.h>, <time.h>; not needed to establish interface.
70006         (errno): Remove decl.
70007         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70008         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70009         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70010
70011 2004-11-28  Simon Josefsson  <jas@extundo.com>
70012
70013         * lib/base64.h, base64.c: New file.
70014
70015 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70018
70019 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70020
70021         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70022         (Depends-on): Remove pathmax, same.  Add mempcpy.
70023         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70024         (Makefile.am): Append getcwd.h to lib_SOURCES.
70025         (Include): Add getcwd.h.
70026         (Maintainer): Change from Jim Meyering to "all, glibc",
70027         since getdate now uses intended-for-glibc code.
70028         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70029         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70030
70031 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70034         HP's ANSI C compiler.
70035         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70036         Declaring int functions causes warnings on some modern systems and
70037         shouldn't be needed to compile on ancient ones.
70038         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70039         defined.
70040
70041         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70042         with the following changes.
70043         (__set_errno): Parenthesize properly.
70044         Include <stdbool.h>.
70045         (MIN, MAX, MATCHING_INO): New macros.
70046         (__getcwd): Define with prototype, not K&R form.
70047         Use heuristics to allocate default buffer on stack if possible.
70048         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70049         behavior, and to avoid the PATH_MAX limit when computing
70050         ../../../../...
70051         Use MATCHING_INO to compare inode number to file.
70052         Check for arithmetic overflow in size calculations.
70053         Fix bug in reallocation of dot array that caused getcwd to fail
70054         on directories nested deeper than 75.
70055         Be more careful about saving errno on error.
70056         Do not use realloc; use only free+malloc, as this is a bit
70057         more flexible and avoids a needless copy operation.
70058         Do not inspect st_dev and st_ino for symbolic links; POSIX
70059         doesn't specify the latter.
70060         Check for closedir errors.
70061         Avoid needless casts.
70062         Use "#ifdef weak_alias" around weak_alias, to be like other
70063         glibc code.
70064         The following changes to getcwd.c have effect only when used in
70065         gnulib; they have no effect inside glibc proper.
70066         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70067         as alloca isn't used.
70068         (alloca, __alloca): Likewise.
70069         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70070         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70071         unconditionally, as gnulib assumes C89 or better.
70072         Do not include <sys/param.h>.
70073         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70074         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70075         better.
70076         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70077         Include <dirent.h> in a way that is compatible with modern Autoconf.
70078         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70079         New macros, if not already defined.
70080         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70081         Use "_LIBC", not "defined _LIBC", for consistency.
70082         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70083         a mempcpy module.
70084         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70085         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70086         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70087         credit only to Jim Meyering and adjust the copyright dates.
70088         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70089         <stdlib.h>, <unistd.h>, "pathmax.h".
70090         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70091         (INITIAL_BUFFER_SIZE): Remove.
70092         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70093
70094 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70095
70096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70097         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70098         Use the _ONCE methods, for efficiency.
70099         Check for fcntl.h.  In test program, include <errno.h>
70100         and <fcntl.h> if available.  Remove old K&R cruft from
70101         test program.  Check for common errors in GNU/Linux,
70102         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70103         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70104         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70105         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70106         name accordingly.
70107         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70108         accommodate new getcwd.c.
70109         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70110         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70111         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70112         that's all we need now.
70113
70114 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70115
70116         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70117         argp-parse.c depends on getopt internals, that means we should
70118         always use our getopt, to be on the safe side.
70119         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70120         order not to spoil the result of an eventual previous invocation
70121         of gl_GETOPT_SUBSTITUTE.
70122
70123 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70124
70125         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70126         redefinition warnings. To avoid them, include the defines
70127         in `#if !defined __need_getopt ... #endif'. The only place
70128         where __getopt_argv_const is used is in definitions
70129         of getopt_long and getopt_long_only below, which are as well
70130         protected by `#ifndef __need_getopt'.
70131         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70132         __need_getopt after including <stdio.h> and <unistd.h> These
70133         headers might have defined it.
70134
70135 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70136
70137         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70138
70139 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70142         (futimens): New function, which uses futimes if available.
70143         (futimens, utimens): Support timespec==NULL, with same semantics
70144         as utime and utimens.
70145         * lib/utimens.h (futimens): New decl.
70146
70147 2004-11-23  Jim Meyering  <jim@meyering.net>
70148
70149         * lib/getopt_.h: Remove trailing blanks.
70150
70151 2004-11-23  Jim Meyering  <jim@meyering.net>
70152
70153         * lib/__fpending.c: Add comment.
70154
70155 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         * modules/canonicalize (Depends-on): Add xreadlink.
70158         Problem reported by James Youngman.
70159
70160 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70163         New macros.
70164         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70165         optopt): Use them instead of invoking ## directly; otherwise, the
70166         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70167
70168 2004-11-19  Bruno Haible  <bruno@clisp.org>
70169
70170         * lib/strtok_r.c: Move comments from here...
70171         * lib/strtok_r.h: ... to here.
70172
70173 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70176         implementations that mishandle size_t overflow.
70177
70178 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70179
70180         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70181         might fail.  Problem reported by Yoann Vandoorselaere.
70182         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70183         implementations that mishandle size_t overflow.
70184
70185 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70186
70187         * modules/canon-host (Depends-on): Add strdup.
70188
70189 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70192
70193 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70194
70195         * lib/canon-host.c: Include "strdup.h".
70196         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70197         Use strdup instead of malloc/strcpy to duplicate strings.
70198
70199         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70200         (human_space_before_unit): New constant.
70201         * lib/human.c (human_readable): Support it.
70202
70203         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70204         (xgetcwd): Set errno correctly when failing.
70205         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70206         the failure is actually due to a PATH_MAX problem.
70207
70208         Further getopt changes to make it more likely that glibc will
70209         buy the changes back.
70210         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70211         (getopt): Use it, so to preserve glibc semantic
70212         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70213         when compiling for libc.
70214         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70215         (getopt_long, getopt_long_only): Use it.
70216
70217         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70218         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70219         (getopt): Argv is now char * const *, as per standard.
70220         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70221         not char *__getopt_argv_const *.
70222         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70223         _getopt_long_only_r): Likewise.
70224         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70225         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70226         _getopt_long_r, _getopt_long_only_r): Likewise.
70227         * lib/getopt_.h (__getopt_argv_const): Remove.
70228         (getopt): Argv is now char * const *, as per standard.
70229
70230         * lib/getdate.y (tORDINAL): New token.
70231         (day, relunit): Allow it for relative times.
70232         (relative_time_table): Use tORDINAL for ordinals.
70233
70234 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70237         Document that "second" isn't allowed as an ordinal number.
70238
70239 2004-11-16  Jim Meyering  <jim@meyering.net>
70240
70241         * modules/closeout (Depends-on): Add fpending.
70242
70243 2004-11-15  Jim Meyering  <jim@meyering.net>
70244
70245         * lib/closeout.c: Include "__fpending.h" once again.
70246         Include <stdbool.h>.
70247         (close_stdout): Don't fail just because stdout was closed initially,
70248         since some programs don't write to stdout in the normal course of
70249         operation (other than --version and --help), and we don't want this
70250         function to make e.g. `touch file >&-' fail.
70251         But do fail if it was closed and someone has tried to write to it.
70252         E.g., `printf foo >&-' must fail.
70253
70254 2004-11-13  Jim Meyering  <jim@meyering.net>
70255
70256         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70257
70258 2004-11-12  Simon Josefsson  <jas@extundo.com>
70259
70260         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70261         small doc fix is still pending.
70262
70263 2004-11-11  Simon Josefsson  <jas@extundo.com>
70264
70265         * modules/strtok_r: New file.
70266
70267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70268         strtok_r.
70269
70270 2004-11-11  Simon Josefsson  <jas@extundo.com>
70271
70272         * m4/strtok_r.m4: New file.
70273
70274         * m4/getopt.m4: Replace opterr.
70275
70276 2004-11-11  Simon Josefsson  <jas@extundo.com>
70277
70278         * lib/strtok_r.h, strtok_r.c: New file.
70279
70280 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70283         of replacing opterr, getopt, etc.  This should handle the
70284         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70285
70286 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70287
70288         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70289         we can stop lying to compilers about the constness of argv when we
70290         are compiled outside glibc.
70291         (getopt, getopt_long, getopt_long_only): Use it.
70292         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70293         _getopt_internal, getopt): Likewise.
70294         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70295         _getopt_long_only_r): Likewise.
70296         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70297         _getopt_long_r, _getopt_long_only_r): Likewise.
70298
70299         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70300         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70301         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70302         the other external symbols.
70303         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70304         declaration, since the above renaming now works around collisions.
70305
70306 2004-11-11  Jim Meyering  <jim@meyering.net>
70307
70308         * lib/linebreak.c: Remove trailing blanks.
70309         * lib/alloca_.h: Likewise.
70310         * lib/acosl.c: Likewise.
70311         * lib/euidaccess.c: Likewise.
70312         * lib/allocsa.h: Likewise.
70313
70314 2004-11-10  Simon Josefsson  <jas@extundo.com>
70315
70316         * m4/getaddrinfo.m4: New file.
70317
70318 2004-11-10  Simon Josefsson  <jas@extundo.com>
70319
70320         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70321
70322 2004-11-10  Simon Josefsson  <jas@extundo.com>
70323
70324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70325         getaddrinfo.
70326
70327         * modules/getaddrinfo: New file.
70328
70329 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70332
70333 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * lib/mktime.c (SHR): New macro, which is a portable
70336         substitute for >> that should work even on Crays.
70337         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70338         Problem reported by Mark D. Baushke in
70339         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70340         * lib/getdate.y (SHR): Likewise.
70341         (tm_diff): Use it.
70342         * lib/strftime.c (SHR): Likewise.
70343         (tm_diff): Use it.
70344         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70345         quote_these_too, so that right shifts are well defined.  All uses
70346         changed.
70347
70348 2004-11-10  Jim Meyering  <jim@meyering.net>
70349
70350         Ensure that no close failure goes unreported.
70351         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70352         return early when it seems there's nothing to flush.
70353         Don't include __fpending.h.
70354
70355 2004-11-10  Jim Meyering  <jim@meyering.net>
70356
70357         * modules/closeout (Depends-on): Remove fpending.
70358
70359 2004-11-10  Jim Meyering  <jim@meyering.net>
70360
70361         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70362
70363 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70364
70365         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70366         gl_FUNC_STRFTIME.
70367         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70368         and AC_REQUIRE when possible, to avoid duplicate checks.
70369         Check for <wchar.h>.
70370
70371 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70374
70375 2004-11-09  Bruno Haible  <bruno@clisp.org>
70376
70377         * m4/sockpfaf.m4: New file.
70378
70379 2004-11-05  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70382         Reported by Mark D. Baushke <mdb@cvshome.org>.
70383
70384 2004-11-04  Bruno Haible  <bruno@clisp.org>
70385
70386         2004-09-11  Bruno Haible  <bruno@clisp.org>
70387                 * allocsa.valgrind: New file.
70388         2004-02-06  Bruno Haible  <bruno@clisp.org>
70389                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70390                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70391                 Reported by Christopher Seip <chris.seip@hp.com>.
70392
70393 2004-11-04  Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70396         (Makefile.am): Distribute it.
70397
70398 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70399
70400         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70401         with errno == ERANGE if the buffer is too small.
70402         Problem reported by Mark D. Baushke.
70403
70404 2004-11-03  Albert Chin  <china@thewrittenword.com>
70405             Paul Eggert  <eggert@cs.ucla.edu>
70406
70407         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70408         equivalent, substitute $ac_type for equivalent type rather than
70409         blindly using uint32_t *always* which won't work if uint32_t is not
70410         available.  Define _UINT32_T to work around typedef of uint32_t if
70411         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70412         2.5.1.
70413
70414 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70415
70416         * m4/jm-macros.m4: Sync from coreutils.
70417         (gl_MACROS): Check for mbrlen, for pathchk.
70418         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70419
70420 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70421
70422         * lib/xreadlink.c (MAXSIZE): New macro.
70423         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70424         size does not exceed MAXSIZE.  Avoid cast.
70425         As suggested by Mark D. Baushke in
70426         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70427         if readlink fails with buffer size just under MAXSIZE, try again
70428         with MAXSIZE.
70429
70430 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70433
70434 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70435         and  Paul Eggert  <eggert@cs.ucla.edu>
70436
70437         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70438         (get_date): Overparenthesize to avoid GCC warning.
70439
70440 2004-11-02  Bruno Haible  <bruno@clisp.org>
70441
70442         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70443         returns void.
70444
70445 2004-11-02  Bruno Haible  <bruno@clisp.org>
70446
70447         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70448         function returns void.
70449
70450 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70451
70452         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70453         fflush_unlocked, flockfile, funlockfile, funlockfile,
70454         fputs_unlocked, putc_unlocked.
70455
70456 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70459         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70460         already declared.
70461
70462 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * modules/getdate (Files): Add doc/getdate.texi.
70465         (Depends-on): Add setenv, xalloc.
70466
70467 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70468
70469         * lib/getdate.y: Add support for TZ="foo" within a date string.
70470         Fix some bugs near time_t boundaries.  Reject dates with
70471         out-of-range components, e.g., "Sept 31".
70472         Include <stdlib.h>, "setenv.h", "xalloc.h".
70473         (ISDIGIT_LOCALE): Remove; unused.
70474         Note that the TZ and time functions used here are not reentrant.
70475         (mktime_ok, get_tz): New functions.
70476         (TZBUFSIZE): New constant.
70477         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70478         This requires that we sometimes generate our own TZ="XXX..." setting.
70479
70480 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * doc/getdate.texi: New file, from coreutils with modifications for
70483         the new TZ parsing.
70484
70485 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70486
70487         * lib/mktime.c (not_equal_tm): Remove redundant check.
70488
70489 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * modules/regex (lib_SOURCES): Add regex.c.
70492         Reported by James Youngman in
70493         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70494
70495 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         * lib/getdate.y: Use Bison 1.875 features, and some minor
70498         code cleanups.  This change does not affect semantics.
70499         Don't include <stdlib.h>; no longer needed.
70500         Don't include unlocked-io.h; only the "#if TEST" code uses
70501         stdio, and performance isn't crucial there.
70502         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70503         Bison 1.875 features as described below.
70504         All uses of "PC." replaced by "pc->".
70505         (YYSTYPE): Add a forward declaration.
70506         (yylex, yyerror): Use full prototypes in forward decls.
70507         Use "%pure-parser" rather than obsolescent "%pure_parser".
70508         Use %parse-param and %lex-param instead of obsolescent
70509         YYPARSE_PARAM and YYLEX_PARAM.
70510         (meridian_table, month_and_day_table, time_units_table,
70511         relative_time_table, time_zone_table, military_table,
70512         lookup_zone, lookup_word, get_date):
70513         Use NULL instead of 0 where appropriate.
70514         (to_hour): Avoid abort (), to avoid a dependency on
70515         stdlib.h.
70516         (yyerror, yylex): Now accepts parser_control * arg.
70517         (main) [TEST]: Use '\0' rather than 0 for char.
70518
70519 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70522
70523 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70526         It's now the caller's responsibility to handle the case where
70527         !HAVE_GETPAGESIZE && !defined getpagesize.
70528
70529         * lib/mktime.c (leapyear): Arg is long int, not int.
70530
70531 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70534
70535 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70536
70537         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70538         missing.  Problem reported by James Youngman.
70539
70540 2004-10-16  Simon Josefsson  <jas@extundo.com>
70541
70542         * gnulib-tool: Fix comments.  Fix parse problem.
70543         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70544
70545 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70548         implementation of getopt_long.  Problem reported by Alexander Taler in:
70549         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70550
70551 2004-10-15  Bruno Haible  <bruno@clisp.org>
70552
70553         * gnulib-tool: Untabify. Initialize supplied_libname.
70554         (func_usage): More homogenous output.
70555         (func_modules_transitive_closure, func_modules_to_filelist,
70556         func_emit_lib_Makefile_am): New functions.
70557         (func_import): New function, extracted from big case statement. Use
70558         func_get_license, func_modules_transitive_closure,
70559         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70560         opt_lgpl. Don't use test -a, as it's not portable.
70561         (func_create_testdir): Use func_modules_transitive_closure,
70562         func_modules_to_filelist, func_emit_lib_Makefile_am.
70563
70564 2004-10-15  Bruno Haible  <bruno@clisp.org>
70565
70566         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70567
70568 2004-10-15  Bruno Haible  <bruno@clisp.org>
70569
70570         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70571         the portions belonging to each module.
70572         Suggested by Derek Robert Price <derek@ximbiot.com>.
70573
70574 2004-10-12  Simon Josefsson  <jas@extundo.com>
70575
70576         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70577         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70578         to real functions.
70579
70580 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70581
70582         * modules/vsnprintf: New file.
70583
70584 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70585
70586         * m4/vsnprintf.m4: New file.
70587
70588 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70589
70590         * lib/vsnprintf.h: New file.
70591         * lib/vsnprintf.c: New file.
70592
70593 2004-10-11  Bruno Haible  <bruno@clisp.org>
70594
70595         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70596         vsnprintf.
70597
70598 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70601
70602 2004-10-07  Bruno Haible  <bruno@clisp.org>
70603
70604         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70605         fits into the provided buffer.
70606
70607 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/diacrit.c, diacrit.h: Add GPL notice.
70610
70611         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70612         notice.
70613         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70614         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70615         This avoids a potential constant-folding bug.
70616
70617 2004-10-05  Bruno Haible  <bruno@clisp.org>
70618
70619         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70620         for the declaration of strsep.
70621
70622 2004-10-05  Bruno Haible  <bruno@clisp.org>
70623
70624         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70625
70626 2004-10-04  Simon Josefsson  <jas@extundo.com>
70627
70628         * modules/memmem: New file.
70629         * tests/test-memmem.c: New file.
70630         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70631
70632 2004-10-04  Simon Josefsson  <jas@extundo.com>
70633
70634         * m4/memmem.m4: New file.
70635
70636 2004-10-04  Simon Josefsson  <jas@extundo.com>
70637
70638         * lib/memmem.h: New file.
70639         * lib/memmem.c: New file, taken from glibc.
70640
70641 2004-10-04  Simon Josefsson  <jas@extundo.com>
70642
70643         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70644         '#ifdef USE_UNLOCKED_IO'.
70645
70646 2004-10-04  Simon Josefsson  <jas@extundo.com>
70647
70648         * config/srclist.txt: Add memmem from glibc.
70649
70650 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70653
70654         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70655         modules/exclude, modules/getdate, modules/getline,
70656         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70657         modules/getusershell, modules/linebuffer, modules/md5,
70658         modules/mountlist, modules/posixtm, modules/readtokens,
70659         modules/readutmp, modules/regex, modules/sha1,
70660         modules/version-etc, modules/yesno:
70661         Remove dependency on unlocked-io.
70662
70663 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70666
70667         * m4/unlocked-io.m4: Add copyright notice.
70668         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70669
70670 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70673         * lib/xmalloc.c (xmemdup): Likewise.
70674         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70675         XFREE): Remove these long-obsolescent macros.
70676         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70677         * lib/xstrdup.c: Remove.
70678
70679         * lib/regex.c (re_comp): Cast gettext return value to char *,
70680         Problem reported by Martin Neitzel via Mark D. Baushke.
70681
70682 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70685         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70686         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70687         regex.c, sha1.c, version-etc.c, yesno.c:
70688         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70689         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70690         the includer's responsibility.
70691
70692         Sync from coreutils.
70693
70694         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70695         points to the start of a string, as the C Standard says the
70696         resulting behavior is undefined.
70697
70698         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70699         simple -> simple_backups, numbered_existing ->
70700         numbered_existing_backups, numbered -> numbered_backups
70701         to avoid shadowing problems.  All uses changed.
70702         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70703         * lib/backupfile.c (check_extension, numbered_backup):
70704         Rename locals to avoid shadowing 'basename'.
70705         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70706         once.
70707
70708         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70709         * lib/.cvsignore: Add getopt.h.
70710
70711 2004-10-04  Bruno Haible  <bruno@clisp.org>
70712
70713         * modules/README: New file.
70714         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70715         not a module.
70716
70717 2004-10-02  Jim Meyering  <jim@meyering.net>
70718
70719         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70720
70721 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70722
70723         * modules/strsep: New file.
70724
70725 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70726
70727         * m4/strsep.m4: New file.
70728
70729 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70730
70731         * lib/strsep.h: New file.
70732         * lib/strsep.c: New file.
70733
70734 2004-10-01  Simon Josefsson  <jas@extundo.com>
70735
70736         * lib/snprintf.c (snprintf): Handle size==0.
70737
70738 2004-10-01  Simon Josefsson  <jas@extundo.com>
70739             Bruno Haible  <bruno@clisp.org>
70740
70741         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70742         (snprintf): Declare 'args'.
70743
70744 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         * lib/snprintf.c: Remove comments as to why each header is needed.
70747
70748 2004-10-01  Bruno Haible  <bruno@clisp.org>
70749
70750         * MODULES.html.sh: Add strsep.
70751
70752 2004-09-30  Simon Josefsson  <jas@extundo.com>
70753
70754         * modules/snprintf: New file.
70755
70756 2004-09-30  Simon Josefsson  <jas@extundo.com>
70757
70758         * m4/snprintf.m4: New file.
70759
70760 2004-09-30  Simon Josefsson  <jas@extundo.com>
70761
70762         * lib/snprintf.h, lib/snprintf.c: New files.
70763
70764 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70765
70766         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70767         (hol_entry_help): Never translate an empty string.
70768         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70769         * lib/argp.h (OPTION_NO_TRANS): New option.
70770
70771 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * modules/argp (Maintainer): Replace Simon Josefsson
70774         by Sergey Poznyakoff.
70775
70776 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70779         changes merged back into glibc.
70780
70781 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70784
70785 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70786
70787         * lib/xvasprintf.c: Include xalloc.h.
70788         (xvasprintf): Use xalloc_die, not xmalloc_die.
70789
70790 2004-09-29  Bruno Haible  <bruno@clisp.org>
70791
70792         * modules/alloca-opt: New file, derived from modules/alloca.
70793         * modules/allocsa: Depend on alloca-opt instead of alloca.
70794         * modules/setenv: Likewise.
70795         * modules/vasnprintf: Likewise.
70796         * MODULES.html.sh: Add alloca-opt.
70797
70798 2004-09-28  Simon Josefsson  <jas@extundo.com>
70799
70800         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70801         LGPL, and to replace license template from GPL to LGPL.
70802
70803 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * modules/dummy: Change license to LGPL.
70806
70807 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70810
70811 2004-09-24  Simon Josefsson  <jas@extundo.com>
70812
70813         * modules/minmax (License): Change from GPL to LGPL.
70814
70815 2004-09-23  Simon Josefsson  <jas@extundo.com>
70816
70817         * gnulib-tool (--import): Typo.
70818
70819 2004-09-23  Simon Josefsson  <jas@extundo.com>
70820
70821         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70822
70823 2004-09-22  Bruno Haible  <bruno@clisp.org>
70824
70825         * modules/*: Add 'License' field.
70826         * gnulib-tool: Accept --extract-license option.
70827         (func_get_license): New function.
70828
70829 2004-09-21  Bruno Haible  <bruno@clisp.org>
70830
70831         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70832         Reported by Simon Josefsson.
70833
70834 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70835
70836         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70837         gl_AC_TYPE_LONG_LONG.
70838
70839 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70842
70843 2004-09-18  Simon Josefsson  <jas@extundo.com>
70844         and  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70847         calls with autoreconf.  Define GL_LIB.
70848
70849 2004-09-14  Karl Berry  <karl@gnu.org>
70850
70851         * config/srclist.txt: unsync setenv.c, sigh.
70852
70853 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70856         Problem reported by Bruno Haible in:
70857         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70858
70859 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * config/srclist.txt: Comment out argp-pvh.c.
70862
70863 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70866         in case some system header has #define'd it.  Problem reported by
70867         Soeren D. Schulze in
70868         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70869
70870 2004-09-09  Karl Berry  <karl@gnu.org>
70871
70872         * regex.[ch]: delete from the root.  These were supposed to be
70873                 synced with emacs cvs, but this has not happened for about
70874                 a year, and anyway nothing else uses emacs regex.[ch].
70875                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70876                 lib/regex[.ch] is untouched.
70877
70878 2004-09-09  Bruno Haible  <bruno@clisp.org>
70879
70880         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70881
70882 2004-09-09  Bruno Haible  <bruno@clisp.org>
70883
70884         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70885         modifications.
70886         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70887
70888 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70889
70890         * modules/xvasprintf: New file.
70891         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70892
70893 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70894
70895         * lib/xvasprintf.h: New file.
70896         * lib/xvasprintf.c: New file.
70897         * lib/xasprintf.c: New file.
70898
70899 2004-09-08  Bruno Haible  <bruno@clisp.org>
70900
70901         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70902
70903 2004-09-08  Bruno Haible  <bruno@clisp.org>
70904
70905         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70906         length is > INT_MAX.
70907         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70908         more.
70909
70910 2004-09-08  Bruno Haible  <bruno@clisp.org>
70911
70912         * lib/stdint_.h: New file, taken from GNU clisp.
70913
70914 2004-09-08  Bruno Haible  <bruno@clisp.org>
70915             Oskar Liljeblad  <oskar@osk.mine.nu>
70916
70917         * modules/stdint: New file.
70918         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70919
70920 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         Import from coreutils.
70923         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70924         strings on unbounded length.  alloca's performance benefits aren't
70925         that important here.
70926         (V_STRDUP): Remove.
70927         (parse_with_separator): New function, with most of the internals
70928         of the old parse_user_spec.  Allow user to omit both user and group,
70929         for compatibility with FreeBSD.
70930         Clone only the user name, not the entire spec.
70931         Do not set *uid, *gid unless entirely successful.
70932         Avoid memory leak in some failing cases.
70933         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70934         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70935         (parse_user_spec): Rewrite to use parse_with_separator.
70936
70937 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * modules/userspec: Don't depend on alloca.
70940
70941 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70944
70945 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70948         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70949         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70950
70951 2004-08-16  Simon Josefsson  <jas@extundo.com>
70952
70953         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70954         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70955         Add --dry-run for --import.
70956         Let user provided command line parameters override configure.ac
70957         settings.
70958
70959 2004-08-12  Simon Josefsson  <jas@extundo.com>
70960
70961         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70962         as discussed with Paul Eggert in threads rooted at
70963         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70964         and
70965         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70966         Before, the test was empty, and relied on ELIDE_CODE in source
70967         code.)
70968         (gl_PREREQ_GETOPT): New macro.
70969         (gl_GETOPT): Use them.
70970
70971 2004-08-12  Simon Josefsson  <jas@extundo.com>
70972
70973         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70974         * lib/getopt_.h: Renamed from getopt.h.
70975
70976 2004-08-12  Simon Josefsson  <jas@extundo.com>
70977
70978         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70979         Change default library name from libfoo to libgnu.
70980         Now, if you have a configure.ac that says:
70981                 gl_SOURCE_BASE(gl)
70982                 gl_M4_BASE(gl/m4)
70983                 gl_MODULES(error getopt etcetera)
70984                 gl_INIT
70985         you can import all you need by running:
70986                 ../gnulib/gnulib-tool --import
70987
70988         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70989         (Makefile.am): Rewrite, use logic from argz.
70990         (Include): Use <getopt.h> instead of "getopt.h".
70991
70992 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * modules/argp (Files): Add m4/unlocked-io.m4.
70995         (Depends-on): Add extensions.
70996
70997 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70998
70999         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71000         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71001         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71002         Check for program_invocation_name, program_invocation_short_name,
71003         flockfile, funlockfile, features.h, _getopt_long_only_r.
71004
71005 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71006
71007         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71008         its complicated substitute.
71009         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71010         and program_invocation_name.
71011         (__argp_basename) [!_LIBC]: Remove; the only use was
71012         replaced by its body.
71013         (__argp_short_program_name): Change condition from
71014         !defined __argp_short_program_name to
71015         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71016         to match argp-namefrob.h.
71017         (__argp_failure): Don't assume strerror_r returns char *.
71018         * lib/argp-parse.c (N_): Define unconditionally.
71019         (argp_default_options): Fill out initializers with 0 to avoid
71020         gcc warnings.
71021
71022 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71025         getopt1.c.
71026
71027 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71028
71029         Merge from coreutils.
71030
71031         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71032
71033         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71034         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71035
71036 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         Merge from coreutils.
71039
71040         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71041         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71042         for Reliant Unix 5.43.
71043
71044         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71045         (union fooround): Use uintmax_t, not long int.
71046         The rest is a merge from libc:
71047         [defined _LIBC]: Include <shlib-compat.h>.
71048         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71049
71050         * lib/settime.c (settime): Recode to avoid warning with
71051         Sun Forte C 6U2.
71052
71053         * lib/strverscmp.c: Convert to UTF-8.
71054
71055 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71058         m4/uintmax_t.m4.
71059
71060 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * modules/xalloc-die: New file.
71063         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71064
71065         * modules/md5 (Files): Add m4/uint32_t.m4.
71066         * modules/sha1: Renamed from modules/sha.
71067         (Files):
71068         Rename lib/sha.h to lib/sha1.h.
71069         Rename lib/sha.c to lib/sha1.c.
71070         Rename m4/sha.m4 to m4/sha1.m4.
71071         (lib_SOURCES): Likewise.
71072         (configure.ac): Rename gl_SHA to gl_SHA1.
71073         (Include): sha.h -> sha1.h.
71074
71075 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71076
71077         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71078         * m4/sha1.m4: Renamed from sha.m4.
71079         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71080
71081 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * lib/obstack.h (obstack_empty_p):
71084         Don't assume that chunk->contents is suitably aligned.
71085         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71086         Likewise. Problem reported by Benno in
71087         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71088
71089         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71090         readable.  This could be improved further but it'd take some work.
71091
71092 2004-08-08  Simon Josefsson  <jas@extundo.com>
71093
71094         * modules/xgethostname (Depends-on): Remove exit and error (not
71095         used).
71096
71097         * modules/getpass-gnu: Add getpass.h.
71098         (Depends-on): Add stdbool.
71099         * modules/getpass: Add getpass.h.
71100
71101 2004-08-08  Simon Josefsson  <jas@extundo.com>
71102
71103         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71104         Check getpass declaration.
71105
71106 2004-08-08  Simon Josefsson  <jas@extundo.com>
71107
71108         * lib/xgethostname.c: Don't include error.h (not used).
71109
71110         * lib/getpass.h: Add.
71111         * lib/getpass.c: Include getpass.h first.
71112
71113 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71114
71115         * lib/xalloc-die.c: New file.
71116         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71117         All uses removed.
71118         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71119         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71120         xalloc-die.c.
71121         (_, N_, xalloc_die): Move to xalloc-die.c.
71122         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71123         so that we needn't mess with xalloc_msg_memory_exhausted.
71124
71125         * lib/sha1.h: Renamed from sha.h.
71126         (SHA1_H): Renamed from _SHA_H.
71127         (sha1_ctx): Renamed from sha_ctx.
71128         (sha1_init_ctx): Renamed from sha_init_ctx.
71129         (sha1_process_block): Renamed from sha_process_block.
71130         (sha1_process_bytes): Renamed from sha_process_bytes.
71131         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71132         (sha1_read_ctx): Renamed from sha_read_ctx.
71133         (sha1_stream): Renamed from sha_stream.
71134         (sha1_buffer): Renamed from sha_buffer.
71135         * lib/sha1.c: Likewise; renamed from sha.c.
71136         Do not include <sys/types.h>.
71137         Include <stddef.h> rather than <stdlib.h>.
71138
71139 2004-08-08  Bruno Haible  <bruno@clisp.org>
71140
71141         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71142         FILESYSTEM_PREFIX_LEN.
71143         * lib/progreloc.c: Likewise.
71144         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71145
71146 2004-08-06  Simon Josefsson  <jas@extundo.com>
71147
71148         * modules/progname (Depends-on): Don't depend on stdbool.
71149
71150 2004-08-06  Simon Josefsson  <jas@extundo.com>
71151
71152         * modules/getsubopt: New file.
71153         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71154         getsubopt.
71155
71156 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         More merge from coreutils.
71159
71160         * m4/utimens.m4, m4/utimecmp.m4: New files.
71161         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71162         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71163         prereq.m4, sha.m4: Import changes from coreutils.
71164
71165 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71166
71167         More merge from coreutils.
71168         * modules/raise, modules/readtokens0, modules/utimens:
71169         * modules/utimecmp, module/xnanosleep: New files.
71170         * modules/strftime: Add lib/strftime.h.
71171         Change include from <time.h> to "strftime.h".
71172         * modules/yesno: Add lib/yesno.h.
71173         * modules/backupfile: Remove lib/addext.c.
71174         * modules/euidaccess: Add stat-macros.h.
71175         * modules/canonicalize, modules/euidaccess,
71176         modules/filemode, modules/lchown, modules/makepath,
71177         modules/rmdir, modules/stat: Likewise.
71178
71179 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71180
71181         Merge from tar.
71182         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71183         SIZE_MAX is a valid preprocessor constant.
71184         (__argp_basename): Change from "#ifndef _LIBC"
71185         to "#ifndef __argp_short_program_name", so that
71186         we don't compile these functions for tar.
71187
71188         More merges from coreutils.
71189         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71190         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71191         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71192         * lib/addext.c: Remove; no longer needed.
71193         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71194         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71195         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71196         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71197         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71198         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71199         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71200         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71201         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71202         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71203         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71204         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71205         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71206         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71207         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71208         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71209         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71210         Import changes from coreutils.
71211
71212 2004-08-05  Simon Josefsson  <jas@extundo.com>
71213
71214         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71215
71216 2004-08-05  Simon Josefsson  <jas@extundo.com>
71217
71218         * m4/getsubopt.m4: New file.
71219
71220 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         Merge from coreutils.
71223
71224         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71225         * m4/getcwd-path-max.m4: New files.
71226
71227         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71228         FILESYSTEM_PREFIX_LEN ->
71229         FILE_SYSTEM_PREFIX_LEN.
71230         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71231         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71232         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71233         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71234
71235         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71236         prerequisite modules now handle the DOS stuff.
71237         Don't check for unistd.h.
71238
71239 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71240
71241         Merge from coreutils.
71242
71243         * lib/.gdb-history: Remove; this doesn't belong here.
71244
71245         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71246         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71247         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71248         * lib/getcwd.c: New files.
71249
71250         * lib/dirname.h: Include <stdbool.h>.
71251         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71252         for consistency with POSIX terminology.  All uses changed.
71253         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71254         (strip_trailing_slashes): Use bool for booleans.
71255         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71256
71257         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71258         sometimes returns a positive errno value even when it succeeds.
71259         (print_errno_message) [!LIBC]: Fall back on strerror if
71260         __strerror_r fails.
71261
71262         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71263         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71264         (longest_relative_suffix): New function.
71265         (path_concat): Use it.  Assume first argument is not NULL.
71266         Port to DOS.  Omit redundant separators.
71267         Report an error instead of returning NULL.
71268         Use mempcpy instead of memcpy.
71269         (xpath_concat): Remove: not declared or used.
71270
71271         * lib/same.h: Include <stdbool.h>
71272         (same_name): Return bool, not int.
71273         * lib/same.c (same_name): Likewise.
71274         (errno): Don't declare; we assume C89 or better now.
71275
71276         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71277         if not already defined.
71278
71279         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71280         * lib/dup-safer.c (errno): Likewise.
71281
71282 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         Merge from coreutils.
71285         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71286         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71287         * modules/path-concat: Don't depend on strdup.
71288
71289 2004-08-03  Simon Josefsson  <jas@extundo.com>
71290
71291         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71292         * lib/progname.h: Don't include stdbool.h.
71293
71294 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71297         * MODULES.html.sh (func_all_modules): Remove fatal.
71298
71299 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71302
71303 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71306         working.
71307
71308 2004-08-02  Simon Josefsson  <jas@extundo.com>
71309
71310         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71311         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71312         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71313
71314 2004-08-01  Simon Josefsson  <jas@extundo.com>
71315
71316         * lib/xgetdomainname.c: Include stdlib.h, for free().
71317
71318 2004-07-19  Bruno Haible  <bruno@clisp.org>
71319
71320         * MODULES.html.sh (func_all_modules): Add dummy.
71321
71322 2004-07-16  Simon Josefsson  <jas@extundo.com>
71323
71324         * modules/dummy: New file.
71325
71326 2004-07-16  Simon Josefsson  <jas@extundo.com>
71327
71328         * lib/dummy.c: New file.
71329
71330 2004-07-16  Bruno Haible  <bruno@clisp.org>
71331
71332         * lib/backupfile.h: Add extern "C" for C++.
71333         * lib/closeout.h: Likewise.
71334         * lib/copy-file.h: Likewise.
71335         * lib/findprog.h: Likewise.
71336         * lib/full-write.h: Likewise.
71337         * lib/pathname.h: Likewise.
71338         * lib/progname.h: Likewise.
71339         * lib/stpcpy.h: Likewise.
71340         * lib/stpncpy.h: Likewise.
71341         * lib/strcase.h: Likewise.
71342         * lib/strstr.h: Likewise.
71343         * lib/xalloc.h: Likewise.
71344
71345         * lib/mbswidth.h: Add extern "C" for C++.
71346         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71347
71348 2004-07-13  Robert Millan  <robertmh@gnu.org>
71349
71350         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71351
71352 2004-07-09  Simon Josefsson  <jas@extundo.com>
71353
71354         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71355         failed without this.)
71356
71357 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * modules/chown (Files): Add lib/fchown-stub.c, since
71360         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71361
71362 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * lib/fchown-stub.c: New file.
71365
71366 2004-06-24  Jim Meyering  <jim@meyering.net>
71367
71368         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71369
71370 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71371
71372         * modules/argz: Omit "#include".
71373
71374         * MODULES.html.sh (func_all_modules): Add calloc, to match
71375         2004-06-01 addition of calloc module.
71376
71377 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71378
71379         * m4/argz.m4: New file, which is autoupdated from libtool.
71380
71381 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71384         libtool.
71385
71386 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71387
71388         * config/srclist-update: Don't insist on "USA." before the
71389         close-comment, as libtool omits the period and puts the */ on a
71390         separate line.
71391         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71392         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71393
71394 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71395
71396         * modules/argz: New file.
71397         * MODULES.html.sh (func_all_modules): Add argz.
71398
71399 2004-06-12  Jim Meyering  <jim@meyering.net>
71400         and  Paul Eggert  <eggert@cs.ucla.edu>
71401
71402         * modules/hash (Files): Add lib/xalloc.h.
71403         * modules/pipe (Depends-on): Add wait-process.
71404         * modules/stat (Depends-on): Add xalloc.
71405         * modules/userspec (Files): Add lib/userspec.h.
71406         * modules/xstrto
71407
71408         Upgrade from gettext-0.13.
71409         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71410         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71411         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71412
71413 2004-06-10  Jim Meyering  <jim@meyering.net>
71414
71415         * lib/calloc.c: New file.
71416
71417 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * lib/getdate.y (yylex): Allow space between sign and number.
71420         Problem reported by Dan Jacobson.
71421
71422 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         Merge from coreutils CVS.
71425
71426         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71427         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71428         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71429         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71430         xstrtol.m4: Fix copyright date and/or serial number.
71431
71432         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71433         See if we need an fchown replacement.
71434         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71435         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71436         and use the replacement function if we detect either defect.
71437
71438         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71439         gl_UTIMECMP.
71440
71441 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71442         and  Jim Meyering  <jim@meyering.net>
71443
71444         Merge from coreutils CVS.
71445
71446         * lib/stat-macros.h: New file, with contents from file-type.h
71447         and coreutils' system.h.
71448         * lib/file-type.c: Include "stat-macros.h".
71449         * lib/file-type.h (file_type): Move all macro definitions to new file,
71450         stat-macros.h.
71451
71452         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71453         Wrap old code with this conditional.
71454         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71455         function that does not dereference symlinks.
71456         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71457
71458         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71459         dependency problems.
71460         (xreadlink): Accept new arg SIZE, for efficiency.
71461         All decls and uses changed.
71462         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71463
71464         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71465         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71466
71467         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71468         sysexits.h.
71469
71470 2004-06-01  Jim Meyering  <jim@meyering.net>
71471
71472         * m4/calloc.m4: New file.
71473
71474 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71477         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71478         Also, fix a typo in a diagnostic.
71479
71480 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71481
71482         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71483         or AC_FUNC_REALLOC.
71484
71485 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71488         macros to be defined.
71489         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71490         the allocator returns NULL because the requested size is zero.
71491
71492 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71495         var.  Add comment explaining why libc still defines it.  This
71496         merges the following patch from glibc:
71497         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71498
71499 2004-05-20  Andreas Schwab  <schwab@suse.de>
71500
71501         * m4/free.m4: Replace free if it not known to work, not the other
71502         way round.
71503
71504 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71505
71506         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71507         present in glibc since revision 1.1 of this file.
71508         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71509         obstack_alignment_mask, obstack_alloc, obstack_base,
71510         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71511         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71512         obstack_grow0, obstack_init, obstack_int_grow,
71513         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71514         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71515         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71516         nonexistent functions.
71517
71518 2004-05-18  Karl Berry  <karl@gnu.org>
71519
71520         * config/srclist.txt: break link for vasnprintf.c.
71521
71522 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71523
71524         Port obstack to the AS/400, where pointers are 16 bytes wide and
71525         you cannot cast an integer to a valid pointer.  This patch is
71526         currently waiting to be integrated into glibc; see
71527         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71528
71529         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71530         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71531         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71532         (struct obstack): temp member is now a union of a pointer and
71533         an integer, instead of an integer.  All integer uses changed.
71534         This does not affect the physical layout of struct obstack,
71535         except on hosts (like the AS/400) where the size or alignment of
71536         void * is greater than that of ptrdiff_t.
71537         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71538         __STDC__)]: Store temporary in pointer member of union, not
71539         integer member.
71540         * lib/obstack.c: Include <stddef.h>, for offsetof.
71541         (struct fooalign): Remove; it doesn't need a name.
71542         (union fooround): Change double to long double, and add void *.
71543         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71544         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71545         not a macro.  Hence the values are always int; so remove all
71546         casts-to-int in uses.
71547
71548 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71551         we can get this patch merged into glibc.
71552
71553 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71554             Paul Eggert  <eggert@cs.ucla.edu>
71555
71556         * m4/argp: Depend on alloca.
71557
71558 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71559             Paul Eggert  <eggert@cs.ucla.edu>
71560
71561         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71562         freecoding.
71563
71564 2004-05-17  Bruno Haible  <bruno@clisp.org>
71565
71566         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71567         precision that consists of a '.' followed by an empty digit string.
71568         Patch by Tor Lillqvist <tml@iki.fi>.
71569
71570 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71571
71572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71573         for backward compatibility with older code.  We need our own
71574         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71575         it under some other name, and our alloca.h will define it.
71576
71577 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71578             Derek Price  <derek@ximbiot.com>
71579
71580         * lib/alloca.c: Include <alloca.h>, to get our interface.
71581         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71582         include <alloca.h> first.  Use C89 prototype for alloca; this
71583         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71584         Use #elif for simplicity, since we can assume C89 now.
71585         Don't try to source the system alloca.h since it will not be found
71586         and to prevent recursively including its replacement.
71587         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71588         * lib/regex.c: Likewise.
71589
71590 2004-05-16  Derek Price  <derek@ximbiot.com>
71591             Paul Eggert  <eggert@cs.ucla.edu>
71592
71593         getline cleanup.  This changes the getndelim2 API: both order of
71594         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71595         no delimiter).
71596
71597         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71598         interface does that.
71599         (getline): Always use getdelim, so that we don't have two
71600         copies of this code.
71601         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71602         if available.
71603         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71604         (GETNDELIM2_MAXIMUM): New macro.
71605         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71606         instead of the old practice of delim2==0.  All callers changed.
71607         Return -1 on overflow, instead of returning junk.
71608         Do not set *linesize unless allocation succeeds.
71609         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71610         that we include sys/types.h.
71611         * lib/getnline.h: Likewise.
71612         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71613         (getndelim2): Reorder arguments.
71614         * lib/getnline.c (getnline, getndelim):
71615         Don't discard the NMAX argument.
71616         (getnline): Invoke getndelim, to avoid code duplication.
71617         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71618         of (size_t) -1 by callers of the getnline family.
71619
71620 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71623         Check for gettimeofday.
71624         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71625         Check for settimeofday, stime.
71626
71627 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * lib/nanosleep.c (suspended): Change its type from int to
71630         sig_atomic_t volatile.
71631         (first_call): Make it private to rpl_nanosleep, and have it
71632         be zero initially as that's a bit faster.
71633         (my_usleep): Round up fractional times instead of truncating them,
71634         as this is the usual meaning for 'sleep'.
71635
71636         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71637         doesn't work.
71638         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71639         (ENOSYS): Define if not defined.
71640         (settime): Fall back on stime if it exists and settimeofday fails.
71641         But don't bother with fallbacks if a method fails with errno == EPERM.
71642
71643 2004-05-11  Jim Meyering  <jim@meyering.net>
71644
71645         Prior to this change, the save_cwd caller required read access to the
71646         current directory on most systems (ones with the fchdir function).
71647
71648         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71649         fails, try write-only, and finally, resort to using xgetcwd.
71650
71651 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * lib/obstack.c, obstack.h: Import changes from libc.
71654
71655 2004-04-28  Bruno Haible  <bruno@clisp.org>
71656
71657         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71658         also implicitly appends .exe to executables.
71659         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71660         accepts Windows pathnames.
71661         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71662         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71663         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71664         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71665         Reported by Derek Robert Price <derek@ximbiot.com>.
71666
71667 2004-04-21  Karl Berry  <karl@gnu.org>
71668
71669         * config/srclist.txt (localcharset.c): break sync.
71670
71671 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71672
71673         * m4/host-os.m4: Add a copyright notice.
71674
71675 2004-04-20  Jim Meyering  <jim@meyering.net>
71676
71677         Change UTILS_ to gl_ in AC_DEFINE'd names.
71678         Change utils_- and jm_-prefixed variables, too.
71679         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71680         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71682
71683         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71684         Don't emit trailing blanks.
71685         Also rename jm_-prefixed variables to have gl_ prefix.
71686
71687         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71688         Also rename jm_-prefixed variables to have gl_ prefix.
71689
71690         * m4/jm-macros.m4: Reflect the renamings.
71691         * m4/prereq.m4: Likewise.
71692
71693 2004-04-20  Jim Meyering  <jim@meyering.net>
71694
71695         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71696         memory.
71697
71698 2004-04-20  Jim Meyering  <jim@meyering.net>
71699             Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71702         memory when realloc fails.
71703
71704 2004-04-19  Jim Meyering  <jim@meyering.net>
71705
71706         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71707         now that readutmp.c may call `free (0)'.
71708
71709 2004-04-19  Bruno Haible  <bruno@clisp.org>
71710
71711         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71712         * m4/inttypes_h.m4: Likewise.
71713         * m4/stdint_h.m4: Likewise.
71714         * m4/intmax_t.m4: Likewise.
71715         * m4/uintmax_t.m4: Likewise.
71716
71717 2004-04-18  Jim Meyering  <jim@meyering.net>
71718
71719         * m4/prereq.m4: Don't forbid jm_ prefix.
71720
71721         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71722         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71723         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71724         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71725         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71726         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71727         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71728         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71729         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71730         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71731         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71732         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71733         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71734         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71735         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71736         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71737         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71738         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71739         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71740
71741 2004-04-18  Jim Meyering  <jim@meyering.net>
71742
71743         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71744         failure, don't leak memory and do call END_UTMP_ENT.
71745
71746 2004-04-16  Jim Meyering  <jim@meyering.net>
71747
71748         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71749         coreutils' stat program.
71750         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71751
71752 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71753
71754         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71755         C89.
71756         (CHAR_BIT): Remove, since we assume C89.
71757         Include <stdint.h> if available, as per current Autoconf CVS advice.
71758
71759 2004-03-31  Jim Meyering  <jim@meyering.net>
71760
71761         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71762         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71763         * m4/xalloc.m4: Likewise.
71764
71765 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71766
71767         Merge from coreutils.
71768
71769         * m4/inttostr.m4: New file.
71770         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71771         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71772         Require gl_CLOCK_TIME.
71773         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71774
71775 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71776
71777         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71778         not bool, to be more consistent with Unix conventions.
71779         Suggested by Bruno Haible.
71780
71781         Merge from coreutils.
71782
71783         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71784         * lib/umaxtostr.c: New files.
71785
71786         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71787         the usual <time.h> dance.
71788         (get_date): Change signature to support fractional time stamps.
71789         All callers changed.
71790         * lib/getdate.y: Include "getdate.h" first, as we can now
71791         assume C89 and don't need to worry about 'const'.
71792         Similarly, include "unlocked-io.h" near start, not in middle.
71793         Include <limits.h>.
71794         (textint.value): Use long int rather than int.
71795         (textint.digits): Use size_t rather than int.
71796         (BILLION, LOG10_BILLION): New constants.
71797         (parser_control): New member rel_ns.  Members day_ordinal,
71798         time_zone, month, day, hour, minutes, rel_year, rel_month,
71799         rel_day, rel_hour, rel_minutes, rel_seconds
71800         are now long int, not int.  Member seconds is now struct timespec,
71801         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71802         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71803         not int.
71804         (%union.intval): Now long int, not int.
71805         New member timespec.
71806         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71807         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71808         (spec): Now is a timespec or an item list.
71809         (timespec, items): New nonterminals.
71810         (time, rel, relunit, number, get_date):
71811         Add support for fractional seconds.
71812         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71813         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71814         (to_hour): First arg is now long int, not int.
71815         (to_year): Returns long int, not int.
71816         Don't treat year -70 like 70.
71817         (tm_diff): Returns long int, not int.
71818         (lookup_word): Use bool instead of int when appropriate.
71819         (yylex): Use size_t for count, not int.
71820         Detect overflow when parsing large integer constants.
71821         Add support for fractions.
71822         (get_date): Make pointers 'const' if possible.
71823         Use more-portable code to detect integer overflow.
71824         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71825         Don't use ctime; it's not reliable if the year has >4 digits.
71826
71827         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71828         This is for compatibility with BSD.
71829
71830         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71831         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71832         From coreutils' system.h.
71833
71834         * lib/userspec.c: Don't include "posixver.h".
71835         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71836         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71837         compatible extension.  Simplify code by removing a boolean int
71838         that was always nonzero if a string was nonnull.
71839
71840 2004-03-30  Jim Meyering  <jim@meyering.net>
71841
71842         Merge from coreutils.
71843
71844         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71845         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71846         on some systems one must include <grp.h> before it.
71847         Reported by Christian Krackowizer.
71848
71849 2004-03-30  Jim Meyering  <jim@meyering.net>
71850
71851         Merge from coreutils.
71852
71853         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71854
71855         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71856         an empty input stream.
71857
71858         * lib/readtokens.c: Include <stdbool.h>.
71859         (readtoken): Use `size_t' rather than int/long.
71860         All callers adjusted.
71861         Use `bool' rather than `int' where appropriate.
71862         Use memset rather than an explicit loop.
71863         Use x2nrealloc rather than xrealloc.
71864         Allow the use of `\0' as a delimiter.
71865         (readtokens): Likewise.
71866         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71867
71868 2004-03-30  Jim Meyering  <jim@meyering.net>
71869
71870         * m4/realloc.m4: Remove file, since now it does no more than
71871         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71872         the `configure.ac' section of module/realloc.
71873         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71874
71875 2004-03-30  Bruno Haible  <bruno@clisp.org>
71876
71877         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71878         nonnull.
71879
71880 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71881
71882         Merge changes to getloadavg.c from coreutils and Emacs.
71883
71884         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71885         Define to an expression, not to the empty string.
71886         Include cloexec.h and xalloc.h.
71887         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71888         Use set_cloexec_flag rather than rolling our own.
71889         * lib/cloexec.c, lib/cloexec.h: New files.
71890
71891 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71892
71893         * m4/cloexec.m4: New file.
71894
71895 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71896
71897         * lib/getopt.h: Sync with libc CVS.
71898
71899 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71900             Bruno Haible  <bruno@clisp.org>
71901
71902         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71903         mbswidth.
71904
71905 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71906             Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/mbswidth.h: Include <wchar.h> only if
71909         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71910         <wchar.h>.
71911         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71912
71913 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71914
71915         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71916         Sync with libc CVS.
71917         * lib/getopt_int.h: New file, also synced from libc.
71918
71919 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71920
71921         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71922         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71923         Bring back getopt.c, getopt.h, getopt1.c.
71924
71925 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71926
71927         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71928         All uses changed.  Check for sa_sigaction member; this fixes
71929         a bug first reported by Jason Andrade in
71930         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71931
71932 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71933
71934         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71935         '#if' expressions.  Unlike the code it replaces, it does not
71936         depend on (defined _SC_PAGESIZE).  However, it does depend on
71937         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71938         first reported by Jason Andrade in
71939         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71940
71941 2004-02-25  Simon Josefsson  <jas@extundo.com>
71942
71943         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71944
71945 2004-02-25  Simon Josefsson  <jas@extundo.com>
71946
71947         * lib/strdup.h: New file.
71948         * lib/strdup.c: Include it.
71949         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71950         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71951
71952 2004-02-23  Karl Berry  <karl@gnu.org>
71953
71954         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71955         (from fencepost.gnu.org:/gd/gnuorg).
71956
71957 2004-02-23  Karl Berry  <karl@gnu.org>
71958
71959         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71960         * config/srclist.txt: add maintain/standards documents.
71961
71962 2004-02-18  Bruno Haible  <bruno@clisp.org>
71963
71964         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71965         Reported by Derek Robert Price <derek@ximbiot.com>.
71966
71967 2004-02-16  Karl Berry  <karl@gnu.org>
71968
71969         * config/mkinstalldirs, install-sh: update from automake.
71970
71971 2004-02-06  Karl Berry  <karl@gnu.org>
71972
71973         * m4/po.m4: update from gettext 0.14.1.
71974
71975 2004-02-06  Karl Berry  <karl@gnu.org>
71976
71977         * lib/config.charset: update from gettext 0.14.1.
71978
71979 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71980
71981         Add comments and code, prompted by suggestions from Bruno Haible
71982         for sh-quote.
71983         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71984         describing the enum quoting_style values.
71985         * lib/quotearg.c (quotearg_alloc): New function.
71986         (quotearg_buffer_restyled): Treat lone { and } as special.
71987         Treat = as special.  Work around bug with older shells
71988         that "see" a '\' that is really the 2nd byte of a multibyte char.
71989         Quote empty string with shell_quoting_style.
71990
71991 2004-02-03  Bruno Haible  <bruno@clisp.org>
71992
71993         * m4/pipe.m4: New file, from GNU gettext.
71994
71995 2004-02-03  Bruno Haible  <bruno@clisp.org>
71996
71997         * lib/pipe.h: New file, from GNU gettext.
71998         * lib/pipe.c: New file, from GNU gettext.
71999
72000 2004-01-27  Bruno Haible  <bruno@clisp.org>
72001
72002         * m4/execute.m4: New file, from GNU gettext.
72003
72004 2004-01-27  Bruno Haible  <bruno@clisp.org>
72005
72006         * lib/execute.h: New file, from GNU gettext.
72007         * lib/execute.c: New file, from GNU gettext.
72008         * lib/w32spawn.h: New file, from GNU gettext.
72009
72010 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72011
72012         Merge from diffutils.
72013
72014         * lib/file-type.c (file_type): Add typed memory objects.
72015         * lib/file-type.h (S_TYPEISTMO): New macro.
72016
72017         * lib/c-stack.h (c_stack_action): Remove argv argument.
72018         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72019         (die): Don't calculate message unless segv_action returns.
72020         (get_stack_location, min_address_from_argv, max_address_from_argv,
72021         volatile stack_base, volatile_stack_size): Remove.
72022         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72023         that every segmentation violation is a stack overflow.  (Ouch!)
72024         See Debian bug 136249 (still outstanding) for more info about why
72025         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72026
72027 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72028
72029         Exit-status fix from coreutils.
72030
72031         Use exit_failure consistently in place of EXIT_FAILURE,
72032         so that program exit statuses are consistent on failure.
72033
72034         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72035         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72036         * lib/argmatch.h: Comment fix to match the above.
72037         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72038         Now a macro referring to exit_failure, instead of a separate
72039         variable.  Include "exitfail.h" to get it.
72040         * lib/xstrtol.h: Include "exitfail.h".
72041         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72042
72043         * lib/long-options.c (parse_long_options): Use prototype
72044         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72045         for clarity.
72046
72047 2004-01-21  Jim Meyering  <jim@meyering.net>
72048
72049         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72050         so as not to conflict with a different-sized __mktime_internal
72051         function in GNU libc.
72052         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72053         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72054
72055 2004-01-20  Karl Berry  <karl@gnu.org>
72056
72057         * config/config.guess: update from config.
72058
72059         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72060
72061 2004-01-20  Bruno Haible  <bruno@clisp.org>
72062
72063         Safer stack allocation.
72064         * lib/setenv.c: Include allocsa.h.
72065         (alloca): Remove fallback definition.
72066         (freea): Remove macro.
72067         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72068         instead of freea.
72069
72070 2004-01-20  Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/eealloc.m4: New file, from GNU gettext.
72073
72074 2004-01-20  Bruno Haible  <bruno@clisp.org>
72075
72076         * m4/allocsa.m4: New file, from GNU gettext.
72077
72078 2004-01-20  Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/xallocsa.h: New file, from GNU gettext.
72081         * lib/xallocsa.c: New file, from GNU gettext.
72082
72083 2004-01-20  Bruno Haible  <bruno@clisp.org>
72084
72085         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72086
72087 2004-01-20  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72090         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72091         specially.
72092
72093 2004-01-20  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72096         patch.
72097
72098 2004-01-20  Bruno Haible  <bruno@clisp.org>
72099
72100         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72101
72102 2004-01-20  Bruno Haible  <bruno@clisp.org>
72103
72104         * lib/eealloc.h: New file.
72105
72106 2004-01-20  Bruno Haible  <bruno@clisp.org>
72107
72108         * lib/binary-io.h: Avoid warnings on Cygwin.
72109
72110 2004-01-20  Bruno Haible  <bruno@clisp.org>
72111
72112         * lib/allocsa.h: New file, from GNU gettext.
72113         * lib/allocsa.c: New file, from GNU gettext.
72114
72115 2004-01-18  Karl Berry  <karl@gnu.org>
72116
72117         * doc/gpl.texi, doc/lgpl.texi: new files.
72118
72119 2004-01-18  Karl Berry  <karl@gnu.org>
72120
72121         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72122         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72123
72124 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72125
72126         Merge from coreutils.
72127
72128         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72129         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72130         (gl_DEFAULT_POSIX2_VERSION): Move
72131         the documentation from 'configure' into 'config.hin',
72132         so that 'configure --help' isn't burdened by it and
72133         we don't have to worry about its formatting there.
72134         Reword the documentation so that it's more succinct
72135         and can be run together into a single paragraph.
72136         * m4/same.m4 (gl_SAME): Check for pathconf.
72137
72138 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72139
72140         Merge from coreutils.
72141
72142         * lib/posixver.c: Include posixver.h.
72143
72144         * lib/same.c: Include <stdbool.h>, <limits.h>.
72145         (_POSIX_NAME_MAX): Define if not defined.
72146         (MIN): New macro.
72147         (same_name): If file names are silently truncated, report
72148         that the file names are the same if they are the same after
72149         the silent truncation.
72150
72151         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72152         conversion function.
72153         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72154         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72155         longer needed.
72156
72157 2004-01-15  Jim Meyering  <jim@meyering.net>
72158
72159         Merge from coreutils.
72160
72161         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72162         if no library is required.
72163         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72164         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72165         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72166         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72167         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72168         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72169         value, $ac_cv_search_crypt, if it's "none required".
72170         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72171         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72172         not gl_FUNC_GETLOADAVG.
72173         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72174         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72175
72176 2004-01-15  Jim Meyering  <jim@meyering.net>
72177
72178         Merge from coreutils.
72179
72180         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72181         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72182         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72183
72184         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72185         optional configure-time default.
72186
72187         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72188
72189         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72190
72191 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72192
72193         Merge from coreutils.
72194
72195         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72196         value, $ac_cv_search_nanosleep, if it's "none required".
72197
72198 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72199
72200         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72201         with like-named macro in fnmatch.c.
72202         (EXT): Use an internal constant instead.
72203
72204         Merge fnmatch patches from glibc.
72205         * lib/fnmatch.c (mbsinit): Remove define.
72206         Add libc_hidden_ver (__fnmatch, fnmatch).
72207         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72208         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72209
72210 2004-01-14  Karl Berry  <karl@gnu.org>
72211
72212         * config/install-sh: update from automake.
72213
72214 2004-01-13  Karl Berry  <karl@gnu.org>
72215
72216         * config/install-sh: update from automake.
72217
72218 2004-01-09  Karl Berry  <karl@gnu.org>
72219
72220         * config/install-sh: update from automake.
72221
72222 2004-01-05  Karl Berry  <karl@gnu.org>
72223
72224         * config/config.{sub,guess}: update from config.
72225
72226 2003-12-31  Karl Berry  <karl@gnu.org>
72227
72228         * config/depcomp: update from automake.
72229
72230 2003-12-14  Karl Berry  <karl@gnu.org>
72231
72232         * lib/config.charset: update from gettext-runtime.
72233
72234 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72235
72236         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72237         Bug reported by Alfred M. Szmidt.
72238
72239 2003-12-03  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/gettext.m4: Upgrade from gettext-0.13.
72242         * m4/po.m4: Upgrade from gettext-0.13.
72243         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72244         * m4/intmax.m4: New file, from gettext-0.13.
72245         * m4/printf-posix.m4: New file, from gettext-0.13.
72246
72247 2003-11-29  Karl Berry  <karl@gnu.org>
72248
72249         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72250
72251 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72252             Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/printf-parse.h: Don't include sys/types.h.
72255         (ARG_NONE): New macro.
72256         (char_directive): Change type of *arg_index fields to size_t.
72257         * lib/printf-parse.c: Don't include sys/types.h.
72258         (SSIZE_MAX): Remove macro.
72259         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72260         Remove unnecessary overflow check.
72261         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72262         fields.
72263
72264 2003-11-25  Bruno Haible  <bruno@clisp.org>
72265
72266         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72267
72268 2003-11-25  Bruno Haible  <bruno@clisp.org>
72269
72270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72271         gt_TYPE_SSIZE_T.
72272
72273 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72274
72275         * modules/alloca: Remove dependency on xalloc.
72276
72277 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72278
72279         * lib/alloca.c: Remove dependency on xalloc module.
72280         (xalloc_die): Remove.
72281         (memory_full) [!defined emacs]: New macro.
72282         [!defined emacs]: Don't include xalloc.h.
72283         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72284         address arithmetic overflows.  Change datatypes a bit to avoid
72285         unnecessary casts.
72286
72287 2003-11-22  Jim Meyering  <jim@meyering.net>
72288
72289         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72290         s/size/size_t/.
72291
72292 2003-11-21  Karl Berry  <karl@gnu.org>
72293
72294         * config/config.{sub,guess}: update from config.
72295
72296 2003-11-18  Karl Berry  <karl@gnu.org>
72297
72298         * config/config.{sub,guess}: update from config.
72299
72300         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72301
72302 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72303
72304         * README: Mention that S+T cannot overflow if S is the size of
72305         an existing object and T is sufficiently small.
72306
72307 2003-11-17  Jim Meyering  <jim@meyering.net>
72308
72309         On systems without utime and without a utimes function capable of
72310         dealing with a NULL struct utimbuf* argument, this utime replacement
72311         could -- in unusual circumstances -- leak a file descriptor.
72312         * lib/utime.c: Include <unistd.h> and <errno.h>.
72313         (utime_null): Be sure to close `fd' and to preserve errno.
72314         Reported by Geoff Collyer via Arnold Robbins.
72315
72316 2003-11-17  Bruno Haible  <bruno@clisp.org>
72317
72318         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72319         (Depends-on): Add xsize.
72320
72321 2003-11-17  Bruno Haible  <bruno@clisp.org>
72322
72323         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72324
72325 2003-11-17  Bruno Haible  <bruno@clisp.org>
72326
72327         * lib/vasnprintf.c (alloca): Remove fallback definition.
72328         (freea): Remove definition.
72329         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72330         Reported by Paul Eggert.
72331
72332 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72333             Bruno Haible  <bruno@clisp.org>
72334
72335         Protect against address arithmetic overflow.
72336         * lib/printf-args.h: Include stddef.h.
72337         (arguments): Change type of field 'count' to size_t.
72338         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72339         'unsigned int' where appropriate.
72340         * lib/printf-parse.h: Include sys/types.h.
72341         (char_directive): Change type of *arg_index fields to ssize_t.
72342         (char_directives): Change type of fields 'count', max_*_length to
72343         size_t.
72344         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72345         (SSIZE_MAX): Define fallback value.
72346         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72347         instead of 'int' where appropriate. Check a_allocated, d_allocated
72348         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72349         * lib/vasnprintf.c: Include xsize.h.
72350         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72351         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72352         overflow. Avoid wraparound when converting a width or precision from
72353         decimal to binary.
72354
72355 2003-11-16  Bruno Haible  <bruno@clisp.org>
72356
72357         Update from GNU gettext.
72358         * lib/printf-parse.c: Generalize to it can be compiled for wide
72359         strings.
72360         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72361         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72362         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72363         SNPRINTF): New macros.
72364         Don't include <alloca.h> if the file is used inside libintl.
72365         (local_wcslen): New function, for Solaris 2.5.1.
72366         (VASNPRINTF): Use it instead of wcslen.
72367
72368 2003-11-16  Bruno Haible  <bruno@clisp.org>
72369
72370         * lib/xsize.h (xmax): New function.
72371         (xsum, xsum3, xsum4): Declare as "pure" functions.
72372
72373 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72374
72375         * modules/xalloc (Files): Undo latest change, since xalloc.h
72376         no longer needs SIZE_MAX or PTRDIFF_MAX.
72377
72378 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72379
72380         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72381         gl_PTRDIFF_MAX.
72382
72383 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72384
72385         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72386         "return", to pacify some unknown compiler.  Problem reported
72387         by Joerg Schilling.
72388
72389 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72390
72391         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72392         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72393         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72394         heuristic is just as accurate as far as we know, and it removes a
72395         dependency on size_max.m4 and ptrdiff_max.m4.
72396
72397 2003-11-11  Bruno Haible  <bruno@clisp.org>
72398
72399         * modules/xsize (Files): Add m4/size_max.m4.
72400         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72401
72402 2003-11-11  Bruno Haible  <bruno@clisp.org>
72403
72404         * m4/size_max.m4: New file.
72405         * m4/ptrdiff_max.m4: New file.
72406         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72407         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72408         (gl_XALLOC): Invoke it.
72409
72410 2003-11-11  Bruno Haible  <bruno@clisp.org>
72411
72412         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72413         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72414         defined.
72415
72416 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72417
72418         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72419         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72420         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72421         From Bruno Haible.
72422         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72423         not (size_t) -1, since it's defined here.
72424
72425 2003-11-09  Karl Berry  <karl@gnu.org>
72426
72427         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72428
72429 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72430
72431         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72432         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72433         Reject sizes of exactly SIZE_MAX bytes.
72434         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72435         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72436
72437 2003-11-05  Bruno Haible  <bruno@clisp.org>
72438
72439         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72440         SIZE_MAX defined in <limits.h> on Solaris.
72441
72442 2003-11-04  Jim Meyering  <jim@meyering.net>
72443
72444         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72445         variable names, rather than @VAR@.
72446         * modules/poll: Likewise.
72447
72448 2003-11-04  Bruno Haible  <bruno@clisp.org>
72449
72450         * modules/xsize: New file.
72451         * modules/linebreak: Depend on xsize.
72452         * MODULES.html.sh (func_all_modules): Add xsize.
72453
72454 2003-11-04  Bruno Haible  <bruno@clisp.org>
72455
72456         * m4/xsize.m4: New file.
72457
72458 2003-11-04  Bruno Haible  <bruno@clisp.org>
72459
72460         * lib/xsize.h: New file.
72461         * lib/linebreak.c: Include xsize.h.
72462         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72463         argument for overflow.
72464         Suggested by Paul Eggert.
72465
72466 2003-11-03  Karl Berry  <karl@gnu.org>
72467
72468         * config/config.{guess,sub}: update from config.
72469
72470 2003-11-03  Jim Meyering  <jim@meyering.net>
72471
72472         * modules/userspec (lib_SOURCES): Add userspec.h.
72473         (Include): Add "userspec.h".
72474         Improve description.
72475
72476 2003-11-03  Jim Meyering  <jim@meyering.net>
72477
72478         * lib/userspec.c: Include "userspec.h".
72479         * lib/userspec.h: New file.
72480
72481 2003-11-03  Bruno Haible  <bruno@clisp.org>
72482
72483         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72484
72485 2003-11-03  Bruno Haible  <bruno@clisp.org>
72486
72487         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72488         available, to avoid (extremely rare) race condition.
72489         Suggested by Paul Eggert.
72490
72491 2003-11-02  Karl Berry  <karl@gnu.org>
72492
72493         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72494
72495 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72496
72497         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72498         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72499         (read_filesystem_list): Set and use me_type_malloced.
72500         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72501         whatever the type happens to be), for brevity and consistency.
72502         Check for size calculation overflow on Alphas running OSF/1.
72503
72504 2003-10-31  Jim Meyering  <jim@meyering.net>
72505
72506         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72507
72508         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72509
72510 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72511             Bruno Haible  <bruno@clisp.org>
72512
72513         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72514         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72515
72516 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72519         netbsd*-gnu*.  Suggested by Robert Millan.
72520
72521 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72522
72523         * modules/group-member: Depend on stdbool.
72524
72525 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72526
72527         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72528
72529 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72530
72531         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72532         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72533         after the 'gnu' in these cases.  This fixes some bugs in the
72534         previous change, and is based on suggestions by Robert Millan.
72535
72536 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72537
72538         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72539         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72540         no longer needed.
72541         * lib/quotearg.c (quotearg_n_options): Use it.
72542         * lib/group-member.c: Include <stdbool.h>.
72543         (free_group_info): Arg is now const *; don't free arg.
72544         (get_group_info): Now returns bool and accepts struct group_info *,
72545         rather than returning a malloc'ed struct group_info *.
72546         All uses changed.  Check for overflow in internal size calculation.
72547
72548         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72549         rather than xmalloc/xrealloc.
72550         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72551         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72552         conformance bug: the old code used a pointer after freeing the
72553         storage that it addressed.
72554         * lib/hash.c (hash_initialize): Simplify the code by using
72555         xalloc_oversized rather than doing it by hand.
72556         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72557         the buffer preserved.  Use free and xmalloc instead.
72558         * lib/quotearg.c (quotearg_n_options): Likewise.
72559         Use a simpler test for size overflow.  Don't use xalloc_oversized
72560         because unsigned int might be wider than size_t (!); this suggests
72561         that we should switch from unsigned int to size_t for slot numbers.
72562
72563 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72564
72565         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72566         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72567         NetBSD kernels.  Requested by Richard Stallman.
72568
72569 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72570
72571         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72572         to allocate the returned structure.  Do not allocate a subarray,
72573         as x2nrealloc will do that.
72574         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72575         instead of xnrealloc.
72576         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72577
72578 2003-10-27  Bruno Haible  <bruno@clisp.org>
72579
72580         * lib/stdbool_.h: Better support for BeOS.
72581
72582 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72583
72584         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72585         now uses inline.
72586
72587 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72588
72589         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72590         callers that want to do their own size-overflow checking.  Include
72591         <stdbool.h>, since xalloc_oversized returns bool.
72592         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72593         to use xalloc_oversized.
72594
72595         Add two functions x2realloc, x2nrealloc, for programs that grow
72596         arrays dynamically by doubling their sizes.
72597         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72598         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72599         New functions.
72600
72601         Port to C99 semantics for 'inline' of external functions.
72602         Bug reported by Bruno Haible.
72603         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72604         with the old contents of xnmalloc.
72605         (xnmalloc, xmalloc): Use it.
72606         (xnrealloc_inline): New static inline function,
72607         with the old contents of xnrealloc.
72608         (xnrealloc, xrealloc): Use it.
72609
72610         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72611         that.
72612
72613 2003-10-26  Karl Berry  <karl@gnu.org>
72614
72615         * config/srclist.txt (COPYING.DOC): no longer available from
72616         /gd/gnuorg; don't know where the ultimate source is.
72617
72618 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72619
72620         Fix several address-calculation bugs in the hash modules,
72621         plus some minor code cleanup.
72622
72623         * lib/hash.h: Include <stdbool.h>, for bool.
72624         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72625         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72626         hash_get_n_entries, hash_get_max_bucket_length,
72627         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72628         hash_rehash): Use size_t rather than unsigned.
72629         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72630         hash_get_n_buckets_used, hash_get_n_entries,
72631         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72632         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72633         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72634         Likewise.
72635         (SIZE_MAX): Define if not defined.
72636         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72637         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72638         hash_print):
72639         Use const * when possible.
72640         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72641         (check_tuning): Fix bug: if tuning parameters were very close to
72642         0 or 1, rounding errors could have caused subscript violations.
72643         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72644         (hash_initialize): Add 'fail:' label
72645         to free table and return NULL, and use it to simplify code.
72646         Use calloc rather than clearing the storage ourself.
72647         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72648         buffer size calculations.
72649         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72650         Include <stddef.h>, for size_t.
72651         * lib/hash-pjw.c (hash_pjw): Likewise.
72652         Switch to method described by Bruno Haible.
72653         Include <limits.h>, for CHAR_BIT.
72654         (SIZE_BITS): New macro.
72655
72656 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72657
72658         * m4/getline.m4 (AM_FUNC_GETLINE):
72659         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72660         hosts.  Problem reported by Derek Robert Price in
72661         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72662         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72663         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72664
72665 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72666
72667         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72668         ceiling the allocation at NMAX bytes rather than silently
72669         discarding input bytes before NMAX is reached.  This makes
72670         a difference only if NMAX exceeds SIZE_MAX / 2.
72671
72672         * lib/obstack.c: Merge from glibc.
72673         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72674         Add libc_hidden_def (_obstack_newchunk).
72675         (_obstack_free) [! defined _LIBC]: Remove.
72676         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72677         a clone of the function body.
72678         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72679         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72680
72681         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72682         glibc.
72683         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72684         arg to memcpy.
72685
72686         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72687         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72688         Don't use lvalue casts, as GCC plans to remove support for them
72689         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72690         was also present in the non-GCC version, indicating that this
72691         code had always been buggy and had never been widely used.
72692         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72693         Use the fast variant of each macro, rather than copying the
72694         definiens of the fast variant; that way, we'll be more likely to
72695         catch future bugs in the fast variants.
72696
72697 2003-10-20  Bruno Haible  <bruno@clisp.org>
72698
72699         * modules/wait-process: New file.
72700         * MODULES.html.sh (func_all_modules): Add wait-process.
72701
72702 2003-10-20  Bruno Haible  <bruno@clisp.org>
72703
72704         * m4/wait-process.m4: New file.
72705
72706 2003-10-20  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/wait-process.h: New file, from GNU gettext.
72709         * lib/wait-process.c: New file, from GNU gettext.
72710
72711 2003-10-19  Jim Meyering  <jim@meyering.net>
72712
72713         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72714         HPUX 10.20.
72715
72716 2003-10-18  Karl Berry  <karl@gnu.org>
72717
72718         * config/config.guess: update from config.
72719
72720 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72721
72722         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72723         (getgroups): First arg is int, not size_t.
72724         Don't let 'free' mangle errno.
72725
72726 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72727
72728         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72729
72730 2003-10-16  Karl Berry  <karl@gnu.org>
72731
72732         * config/config.{guess,sub}: update from config.
72733
72734 2003-10-16  Jim Meyering  <jim@meyering.net>
72735
72736         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72737         memcpy.
72738
72739 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72740
72741         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72742         (SIZE_MAX): Remove.
72743         (new_exclude, add_exclude_file): Initial size no longer needs to
72744         be a power of 2.
72745         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72746         our own address arithmetic overflow checking.
72747
72748         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72749         (fnmatch): Do not alloca more than 2000 wide characters;
72750         instead, use malloc for large buffers.
72751         Check for address arithmetic overflow, and return -1
72752         with errno set to ENOMEM in that case.
72753         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72754         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72755         instead, return -1.  Check for address arithmetic overflow.
72756
72757 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72758
72759         Handle invalid suffixes and overflow independently, so that
72760         callers can treat them independently as needed.  Fix some bugs in
72761         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72762         suffix for a human-readable blocksize.  The major caller-visible
72763         change is the addition of a new
72764         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72765         that both overflow and suffix chars were found.
72766
72767         * lib/human.c (humblock): Don't check separately for invalid suffix
72768         char; that is xstrtoumax's job (now that its bug is fixed).
72769         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72770         INTMAX_MAX]: New macros.
72771         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72772         TYPE_MAXIMUM): New macros.
72773         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72774         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72775         if overflow occurs, as it's what __strtol does and it's more useful
72776         in practice.
72777         (__xstrtol): If __strtol reports some error other than ERANGE,
72778         reflect it to the caller as LONGINT_INVALID.  If it reports
72779         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72780         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72781         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72782         value.
72783         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72784         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72785         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72786         [defined UINTMAX_MAX]: New macros.
72787
72788 2003-10-14  Bruno Haible  <bruno@clisp.org>
72789
72790         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72791
72792 2003-10-14  Bruno Haible  <bruno@clisp.org>
72793
72794         * m4/sig_atomic_t: New file, from GNU gettext.
72795         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72796
72797 2003-10-14  Bruno Haible  <bruno@clisp.org>
72798
72799         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72800         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72801         Also use volatile where needed.
72802
72803 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72804
72805         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72806         Change maintainer from Bruno Haible to 'all'.
72807
72808 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72809
72810         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72811
72812 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72813
72814         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72815         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72816         and define in terms of the other primitives.
72817         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72818         (SIZE_MAX): Define if not already defined.
72819         (array_size_overflow): New function.
72820         (xalloc_die): Abort instead of exiting if 'error' returns.
72821         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72822         (xmalloc, xrealloc): Use them.
72823         (xcalloc): Check for address arithmetic overflow.
72824         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72825         a bit faster than strcpy.
72826
72827 2003-10-10  Simon Josefsson  <jas@extundo.com>
72828
72829         * modules/argp (Depends-on): Add restrict and strcase.
72830
72831 2003-10-10  Simon Josefsson  <jas@extundo.com>
72832
72833         * m4/argp.m4: Add AC_C_INLINE.
72834
72835 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72836
72837         Merge getpass from libc, plus a few fixes.
72838
72839         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72840         Include <stdbool.h>.
72841         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72842         __fsetlocking to empty.
72843         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72844         do include <bits/libc-lock.h>.
72845         Do not include <fcntl.h>; not needed.
72846         [_LIBC]: Include <wchar.h>.
72847         (NOTCANCEL_MODE): New macro.
72848         (flockfile, funlockfile) [_LIBC]: New macros.
72849         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72850         [!_LIBC]: New macros.
72851         (call_fclose): New function.
72852         (getpass): Use it.  Save tty stream separately; this simplifies the
72853         code and makes it more reliable if stdin happens to equal stdout.
72854         Invoke __fsetlocking on tty.
72855         Handle thread cancellation if needed.
72856         Namespace cleanup (use __tcgetattr, __getline).
72857         Use bool for Booleans.
72858         [USE_IN_LIBIO]: Handle wide streams.
72859         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72860         stream might go where.
72861
72862         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72863         doesn't have to include <stdio.h> before us.
72864         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72865         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72866         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72867         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72868         if not declared, so that we can use getpass.c code from libc without
72869         rewriting it.
72870         (flockfile, ftrylockfile, funlockfile): New macros.
72871
72872 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72873
72874         * modules/getpass: Depend on stdbool.
72875
72876 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72877
72878         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72879
72880 2003-10-07  Karl Berry  <karl@gnu.org>
72881
72882         * config/config.{guess,sub}: update from config.
72883
72884 2003-10-06  Jim Meyering  <jim@meyering.net>
72885             Bruno Haible  <bruno@clisp.org>
72886
72887         This lets translators provide better translations for the
72888         "Written by ..." part of --version output.
72889         * lib/version-etc.h: Include stdarg.h.
72890         (version_etc_copyright): Declare as readonly.
72891         (version_etc): Make this function variadic with a NULL-terminated list
72892         of author name strings.
72893         (version_etc_va): New declaration.
72894         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72895         (version_etc_copyright): Declare as readonly.
72896         (version_etc_va): New function. Provide a different translatable string
72897         for each possible number of authors < 10. Abbreviate when there are 10
72898         authors or more.
72899         (version_etc): Make this function variadic. Call version_etc_va.
72900         Suggestion from Gary V. Vaughan.
72901
72902         * lib/long-options.h (parse_long_options): Change prototype: the
72903         authors string is moved to the end and becomes variadic.
72904         * lib/long-options.c: Include stdarg.h.
72905         (parse_long_options): Make this function variadic, too.
72906         Call version_etc_va, not version_etc.
72907
72908 2003-10-06  Bruno Haible  <bruno@clisp.org>
72909
72910         * modules/version-etc-2: Remove file.
72911         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72912
72913 2003-10-06  Bruno Haible  <bruno@clisp.org>
72914
72915         * modules/fatal-signal: New file.
72916         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72917
72918 2003-10-06  Bruno Haible  <bruno@clisp.org>
72919
72920         * m4/fatal-signal.m4: New file.
72921         * m4/signalblocking.m4: New file, from GNU gettext.
72922
72923 2003-10-06  Bruno Haible  <bruno@clisp.org>
72924
72925         * lib/version-etc-2.h: Remove file.
72926         * lib/version-etc-2.c: Remove file.
72927
72928 2003-10-06  Bruno Haible  <bruno@clisp.org>
72929
72930         * lib/fatal-signal.h: New file, from GNU gettext.
72931         * lib/fatal-signal.c: New file, from GNU gettext.
72932
72933 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72934
72935         * README: Rework advice for preventing empty .o files.
72936         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72937         not <sys/types.h>.
72938
72939 2003-10-04  Karl Berry  <karl@gnu.org>
72940
72941         * lib/argp*: update from libc.
72942
72943 2003-10-04  Karl Berry  <karl@gnu.org>
72944
72945         * config/config.{guess,sub}: update from config.
72946
72947 2003-10-02  Bruno Haible  <bruno@clisp.org>
72948
72949         * modules/lchown (Include): Add lchown.h.
72950         * modules/time_r (Include): Use "..." syntax.
72951         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72952
72953 2003-10-01  Simon Josefsson  <jas@extundo.com>
72954
72955         * MODULES.html.sh (func_all_modules): Move gethostname from section
72956         'based on' to section 'lacking' POSIX:2001.
72957
72958 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72959
72960         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72961         to output mode on the same stream.
72962
72963 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72964
72965         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72966         Fix arg typo in previous patch.
72967
72968 2003-09-28  Jim Meyering  <jim@meyering.net>
72969
72970         * lib/error.c: Correct cpp indentation.
72971
72972 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72973
72974         * modules/free: New file.
72975
72976 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72977
72978         * m4/free.m4: New file.
72979
72980 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72981
72982         * lib/minmax.h (MIN, MAX)
72983         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72984         Omit the special code that used __typeof__, since we worry that
72985         it could be more trouble than it's worth.  See:
72986         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72987         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72988
72989         * lib/free.c: New file.
72990
72991 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72992
72993         Trivial fixes to Makefile.am parts of module listings.
72994         * modules/strstr: Append strstr.h to lib_SOURCES.
72995         * modules/strcase: Likewise, for strcase.h.
72996
72997 2003-09-27  Karl Berry  <karl@gnu.org>
72998
72999         * config/mkinstalldirs: update from automake.
73000
73001 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73002
73003         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73004         (error_tail): Do not loop, reallocating temporary buffer, since
73005         the output cannot contain more wide characters than the input
73006         contains bytes, the size must be big enough already.  This avoids
73007         one potential size overflow calculation.  Check for size overflow
73008         when calculating temporary buffer size.  Free temporary buffer
73009         when done, if it was allocated with malloc; this plugs a memory
73010         leak.  Remove casts from void * to pointers, that are no longer
73011         needed now that we're assuming C89 or better.
73012
73013         Merge error changes from glibc.
73014
73015         * lib/error.c, error.h: Update copyright notice header to match glibc.
73016         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73017         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73018         Disable cancellation while printing error.
73019         * lib/error.h: Prepend __ to parameter names.
73020
73021 2003-09-26  Jim Meyering  <jim@meyering.net>
73022
73023         * lib/error.c (error_tail): Move some declarations
73024         into inner scope where the local variables are used.
73025
73026 2003-09-26  Bruno Haible  <bruno@clisp.org>
73027
73028         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73029         stpncpy().
73030         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73031
73032 2003-09-26  Bruno Haible  <bruno@clisp.org>
73033
73034         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73035         (stpncpy): Define as alias for gnu_stpncpy.
73036         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73037
73038 2003-09-25  Simon Josefsson  <jas@extundo.com>
73039
73040         * lib/xgetdomainname.h: New file.
73041         * lib/xgetdomainname.c: New file.
73042
73043 2003-09-25  Simon Josefsson  <jas@extundo.com>
73044             Bruno Haible  <bruno@clisp.org>
73045
73046         * modules/getdomainname: New file.
73047         * modules/xgetdomainname: New file.
73048         * MODULES.html.sh (func_all_modules): Add getdomainname,
73049         xgetdomainname.
73050
73051 2003-09-25  Simon Josefsson  <jas@extundo.com>
73052             Bruno Haible  <bruno@clisp.org>
73053
73054         * m4/getdomainname.m4: New file.
73055
73056 2003-09-25  Simon Josefsson  <jas@extundo.com>
73057             Bruno Haible  <bruno@clisp.org>
73058
73059         * lib/getdomainname.h: New file.
73060         * lib/getdomainname.c: New file.
73061
73062 2003-09-25  Karl Berry  <karl@gnu.org>
73063
73064         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73065
73066 2003-09-25  Karl Berry  <karl@gnu.org>
73067
73068         * config/install-sh: update from automake.
73069
73070 2003-09-25  Bruno Haible  <bruno@clisp.org>
73071
73072         * modules/version-etc-2: New file, from modules/version-etc with
73073         modifications.
73074         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73075
73076 2003-09-25  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73079         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73080
73081 2003-09-24  Simon Josefsson  <jas@extundo.com>
73082
73083         * modules/xgethostname: Add xgethostname.h.
73084
73085 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73086
73087         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73088         the buffer associated with the argument.  Bug reported by
73089         Simon Josefsson.
73090
73091 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73092
73093         * README: Document assumptions that 'int' is at least 32 bits
73094         wide, that integer arithmetic is 2's complement without overflow,
73095         that there are no holes in integer values, that adding sizes of
73096         two nonoverlapping objects can't overflow, and that all-bits-zero
73097         yields scalar zero.  Fix spelling and capitalization typos.
73098
73099 2003-09-19  Karl Berry  <karl@gnu.org>
73100
73101         * lib/argp.h: update from libc.
73102
73103 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73104
73105         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73106         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73107         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73108
73109 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73110
73111         * gnulib-tool: Use "test -h", not "test -L", for portability
73112         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73113         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73114         (sed_extract_prog): Issue s commands one-by-one, rather than
73115         using \| in one s command.
73116
73117 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73118
73119         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73120         input error, instead of returning NULL the next time we are called
73121         (and therefore losing track of errno).
73122
73123 2003-09-16  Bruno Haible  <bruno@clisp.org>
73124
73125         * gnulib-tool (func_create_testdir): Warn about duplicated
73126         dependencies.
73127
73128 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73129
73130         * modules/argmatch, modules/fatal, modules/obstack,
73131         modules/xalloc, modules/xgethostname: Sort dependencies by
73132         importance, not alphabetically.
73133
73134 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73135
73136         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73137         fails, so that the caller gets the proper errno.
73138
73139         * lib/readutmp.c (read_utmp): Likewise.
73140         Check for fstat error.  Close stream and free storage
73141         when failing.
73142
73143 2003-09-14  Karl Berry  <karl@gnu.org>
73144
73145         * config/srclist.txt (strdup.c): disable for c89 changes.
73146
73147 2003-09-14  Jim Meyering  <jim@meyering.net>
73148
73149         * lib/getloadavg.c: Correct cpp indentation.
73150         * lib/strdup.c: Likewise.
73151         * lib/vasnprintf.c: Likewise.
73152
73153 2003-09-14  Bruno Haible  <bruno@clisp.org>
73154
73155         * modules/fwriteerror: New file.
73156         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73157
73158 2003-09-14  Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/fwriteerror.h: New file.
73161         * lib/fwriteerror.c: New file.
73162
73163 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73164
73165         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73166         modules/xgethostname, modules/xalloc: Depend on exit.
73167
73168 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73169
73170         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73171
73172         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73173         and AC_MINIX, too, so that their extensions are available.
73174
73175         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73176         This macro has been superseded by gl_BACKUPFILE.
73177
73178         More patches to assume C89 or better.
73179
73180         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73181
73182         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73183         unconditionally.
73184         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73185         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73186         Include <string.h>, <stdlib.h> unconditionally.
73187         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73188         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73189         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73190         headers or for string.h.
73191         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73192         or strtoul.
73193
73194         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73195         headers.
73196         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73197         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73198         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73199         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73200         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73201         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73202         memcpy, memset.
73203         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73204         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73205         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73206         strtol.
73207         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73208         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73209         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73210         strtoul.
73211
73212 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73213
73214         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73215         * lib/obstack.c [!defined _LIBC]: Likewise.
73216         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73217         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73218         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73219
73220         More changes to assume C89 or better.
73221
73222         * lib/error.c (error_tail): Assume vprintf.
73223
73224         * lib/argmatch.c (getenv): Remove decl.
73225         * lib/progreloc.c (get_full_program_name): Define via prototype.
73226         * lib/setenv.c (clearenv): Likewise.
73227         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73228         needed.
73229         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73230         (malloc, memcpy): Remove decls.
73231         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73232         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73233         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73234         (memcpy): Remove macro.
73235         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73236         (__P): Remove.  All uses removed.
73237         (PTR): Remove.  All uses changed to void *.
73238         (CHAR_BIT, NULL): Remove.
73239         (spaces, zeros, memset_space, memset_zero)
73240         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73241         Remove.
73242         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73243         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73244         Define with prototype.
73245         Remove now-unnecessary prototype decl.
73246         (extra_args_spec): Assume ANSI C.  All uses changed.
73247         (extra_args_spec_iso): Remove.
73248         (my_strftime, emacs_strftimeu): Define via prototype.
73249         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73250         unconditionally.
73251         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73252         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73253         (strtoul, strtol): Remove decls.
73254         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73255         LONG_MAX): Remove.
73256         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73257         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73258         (LOCALE_PARAM_PROTO): New macro.
73259         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73260         (INTERNAL (strtol), strtol): Define with a prototype.
73261         (PARAMS): Remove.  All uses removed.
73262         * lib/tempname.c: Include <string.h> unconditionally.
73263         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73264         * lib/xgethostname.c (main): Define with a prototype.
73265         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73266         Include <stdlib.h> unconditionally.
73267         (calloc, malloc, realloc, free): Remove decls.
73268         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73269         Include <stdlib.h> unconditionally.  Sort include file names.
73270         (strtod): Remove.
73271         (xstrtod): Define with a prototype.
73272         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73273         (strtol, strtoul): Remove decls.
73274
73275 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73276
73277         More patches to assume C89 or better.
73278         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73279         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73280         string.h, memchr, STDC_HEADERS.
73281
73282 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73283
73284         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73285         Include <stdlib.h>, <string.h> unconditionally.
73286         Remove now-unnecessary cast to char *.
73287         * lib/strnlen.c: Include <string.h> unconditionally.
73288         * lib/yesno.c (yesno): Define with a prototype.
73289
73290 2003-09-11  Bruno Haible  <bruno@clisp.org>
73291
73292         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73293
73294 2003-09-10  Jim Meyering  <jim@meyering.net>
73295
73296         * lib/error.c: Correct indentation of cpp directives.
73297
73298 2003-09-10  Bruno Haible  <bruno@clisp.org>
73299
73300         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73301         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73302         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73303         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73304         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73305         <stdlib.h> and <string.h> checks.
73306         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73307         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73308
73309 2003-09-10  Bruno Haible  <bruno@clisp.org>
73310
73311         * lib/strcspn.c: Include <string.h> unconditionally.
73312         * lib/strpbrk.c: Include <string.h> unconditionally.
73313         * lib/strstr.c: Include <string.h> unconditionally.
73314         * lib/unicodeio.c: Include <string.h> unconditionally.
73315         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73316         * lib/unsetenv.c: Likewise.
73317         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73318         * lib/yesno.c: Include <stdlib.h> unconditionally.
73319         (rpmatch): Add prototype.
73320
73321 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73322
73323         More patches to assume C89 or better.
73324         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73325         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73326         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73327         or for string.h.
73328         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73329         stdlib.h.
73330         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73331         C headers.
73332         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73333         string.h.
73334         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73335         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73336         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73337         or for string.h.
73338         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73339         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73340         C headers.
73341         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73342         memcpy.
73343         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73344         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73345         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73346         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73347         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73348         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73349         string.h, free.
73350         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73351         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73352         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73353         C headers, or for string.h.
73354         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73355         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73356         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73357         headers, memory.h, stdlib.h, string.h, strings.h.
73358         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73359         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73360         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73361         strchr.
73362         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73363         headers, memory.h, string.h.
73364         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73365         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73366         free.
73367         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73368         headers.
73369         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73370         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73371         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73372         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73373         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73374
73375 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73376
73377         More K&R removal.
73378
73379         * lib/acosl.c (main): Use a prototype.
73380         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73381         tanl.c: Likewise.
73382
73383         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73384
73385         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73386         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73387         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73388         with a prototype.
73389         * lib/getopt.c (const): Remove macro.
73390         Include <string.h> unconditionally.
73391         (my_index): Remove; all uses changed to strchr.
73392         (strlen): Remove decl.
73393         (exchange): Remove forward decl; no longer needed.
73394         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73395         Define with prototype.
73396         * lib/getopt1.c (const): Remove macro.
73397         (getopt_long, getopt_long_only, main): Define with prototype.
73398
73399         * lib/getugroups.c: Include <string.h> unconditionally.
73400
73401         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73402         (getusershell, setusershell, endusershell, readname, main):
73403         Define with prototypes.
73404
73405         * lib/group-member.c: Include group-member.h first.
73406         Include <stdlib.h> unconditionally.
73407
73408         * lib/hard-locale.c: Include hard-locale.h first.
73409         Include <stdlib.h>, <string.h> unconditionally.
73410
73411         * lib/hash.c (free, malloc): Remove decls.
73412         Include <stdlib.h> unconditionally.
73413
73414         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73415         (getenv): Do not declare.
73416
73417         * lib/idcache.c: Include <string.h> unconditionally.
73418
73419         * lib/long-options.c: Include long-options.h first, to test interface.
73420         Include <stdlib.h> unconditionally.
73421
73422         * lib/makepath.c: Include makepath.h first, to test interface.
73423         Include <stdlib.h> and <string.h> unconditionally.
73424
73425         * lib/linebuffer.c: Include <stdlib.h>.
73426         (free): Remove decl.
73427
73428         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73429         stddef.h. rpl_malloc returns void *, not char *.
73430         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73431         prototype.
73432
73433         * lib/md5.h: Include <limits.h> unconditionally.
73434         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73435         (__P): Remove; all uses removed.
73436         * lib/md5.c: Include "md5.h" first.
73437         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73438         md5_buffer, md5_process_bytes, md5_process_block):
73439         Define with prototypes.
73440         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73441         * lib/sha.c: Include "sha.h" first.
73442         Include <stdlib.h>, <string.h> unconditionally.
73443
73444         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73445         * lib/memcmp.c (__ptr_t): Likewise.
73446         * lib/memrchr.c (__ptr_t): Likewise.
73447         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73448         Include <string.h> unconditionally.
73449         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73450         * lib/memchr.c: Include <stdlib.h> unconditionally.
73451         * lib/memchr.c (LONG_MAX): Remove.
73452         * lib/memrchr.c (LONG_MAX): Likewise.
73453         * lib/memchr.c (__memchr): Define via a prototype.
73454         * lib/memrchr.c (__memrchr): Likewise.
73455         * lib/memcmp.c (__P): Remove, and remove all uses.
73456         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73457         Remove forward decls; no longer needed.
73458         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73459         Use types required by C89 in prototype.
73460
73461         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73462         * lib/savedir.c: Likewise.
73463         * lib/mkdir.c (free): Remove decl.
73464         * lib/rmdir.c (rmdir): Define with a prototype.
73465         * lib/savedir.c: Include savedir.h first, to test interface.
73466
73467         * lib/mktime.c (STDC_HEADERS): Remove.
73468         Include <stdlib.h>, <string.h> unconditionally.
73469
73470         * lib/modechange.c: Include <stdlib.h> unconditionally.
73471         (malloc): Remove decl.
73472
73473         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73474         (free): Remove decl.
73475
73476         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73477         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73478         (This type really should be intptr_t, but that's a C99ism.)
73479         (_obstack_memcpy): Remove: all uses changed to memcpy.
73480         Include <string.h> unconditionally.
73481         (struct obstack): Assume __STDC__ for types of members
73482         chunkfun, freefun, extra_arg.
73483         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73484         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73485         obstack_begin, obstack_specify_allocation,
73486         obstack_specify_allocation_with_arg, obstack_chunkfun,
73487         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73488         Remove unprototyped decls and the macros that use them.
73489         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73490         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73491         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73492         (defined __STDC__ && __STDC__)]:
73493         Remove nonprototyped code.
73494         Include <stdlib.h> unconditionally.
73495         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73496         _obstack_allocated_p, _obstack_free, obstack_free,
73497         _obstack_memory_used, print_and_abort):
73498         Define using prototypes.
73499         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73500         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73501         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73502         obstack_next_free, obstack_object_size, obstack_room) [0]:
73503         Remove unused, unprototyped code.
73504
73505         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73506
73507         * lib/physmem.c (physmem_total, physmem_available, main): Define
73508         with prototypes.
73509
73510         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73511         (main): Define with a prototype.
73512
73513         * lib/posixver.c (getenv): Remove decl.
73514
73515         * lib/putenv.c (malloc): Returns void *, not char *.
73516         Include <string.h> unconditionally.
73517         (strchr, memcpy, NULL): Do not define.
73518
73519         * lib/readtokens.c: Include readtokens.h first, to test interface.
73520         Include <stdlib.h>, <string.h> unconditionally.
73521         (init_tokenbuffer): Define with a prototype.
73522
73523         * lib/regex.c (PARAMS): Remove.  All uses removed.
73524         All uses of _RE_ARGS removed, too.
73525         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73526         unconditionally.
73527         (bzero): Assume memset exists.
73528         (memcmp, memcpy, NULL): Remove.
73529         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73530         char, or assignments to local vars of type signed char.
73531         (init_syntax_once, PREFIX(extract_number_and_incr),
73532         PREFIX(print_partial_compiled_pattern),
73533         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73534         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73535         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73536         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73537         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73538         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73539         wcs_compile_range, byte_compile_range, truncate_wchar,
73540         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73541         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73542         count_mbs_length, wcs_re_match_2_internal,
73543         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73544         PREFIX(alt_match_null_string_p),
73545         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73546         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73547         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73548         now-unnecessary declaration, if any.
73549         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73550         regcomp, regexec):
73551         Remove now-unnecessary casts among pointer types.
73552         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73553
73554         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73555         (free): Remove decl.
73556
73557         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73558
73559         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73560         (free): Remove decl.
73561
73562         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73563         * lib/xgetcwd.c: Likewise.
73564
73565         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73566         (free): Remove decl.
73567
73568         * lib/strchrnul.c (strchrnul): Define with a prototype.
73569         Fix bug: c_in was not converted to char before searching.
73570
73571         The following changes are not K&R related:
73572
73573         * lib/group-member.h: Include <sys/types.h>, so that this file is
73574         self-contained.
73575         * lib/makepath.h: Likewise.
73576
73577         * lib/getusershell.c (readname, default_index, line_size, readname):
73578         Use size_t, not int, for sizes.
73579         (readname): If the size overflows, report an error instead of
73580         looping forever.
73581
73582 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73583
73584         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73585         libc.
73586
73587 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73588
73589         * README: New section: portability guidelines.
73590
73591 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73592
73593         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73594         C89 spec.
73595
73596 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73597
73598         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73599
73600 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73601
73602         Assume C89 or better; remove K&R cruft.
73603         A few of these changes were first proposed by Derek Robert Price
73604         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73605
73606         * lib/addext.c: Include <string.h> unconditionally.
73607         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73608         Don't declare getenv or malloc.
73609
73610         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73611         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73612         (NULL): Remove.
73613         (find_stack_direction, alloca): Use prototypes.
73614
73615         * lib/atexit.c (atexit): Define using a prototype.
73616
73617         * lib/basename.c, dirname.c, stripslash.c:
73618         Include <string.h> unconditionally.
73619
73620         * lib/bcopy.c: Include <stddef.h>.
73621         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73622
73623         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73624
73625         * lib/error.h (error, error_at_line, error_print_progname)
73626         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73627         * lib/error.c: Include error.h first, to check interface.
73628         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73629         (VA_START): Remove; all uses changeed to va_start.
73630         (exit, strerror): Remove decls.
73631         (error_print_progname): Prototype uncondionally.
73632         Don't include <errno.h>; no longer needed.
73633         (private_strerror): Remove.
73634         (error_tail): Always define.
73635         (error, error_at_line): Assume C89 or better; always use prototypes.
73636         * lib/fatal.c: Include "fatal.h" first, to test interface.
73637         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73638         (VA_START): Remove; all uses changed to va_start.
73639         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73640         this case.
73641         (exit): Remove decl.
73642         (fatal): Prototype unconditionally.  Assume va_start works.
73643         Abort at end, to pacify gcc.
73644
73645         * lib/euidaccess.c (main): Define with a prototype.
73646
73647         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73648
73649         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73650
73651         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73652         prototypes.
73653         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73654         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73655         (getenv): Remove decl.
73656         (fnmatch): Define using a prototype.
73657         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73658         (FCT): Define using a prototype.
73659
73660         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73661
73662         * lib/gethostname.c: Include <stddef.h>.
73663         (gethostname): Define with prototype.  Length is size_t, not int.
73664
73665 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73666
73667         Assume C89 or better; remove K&R cruft.
73668         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73669         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73670         string.h, getenv, malloc.
73671         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73672         headers.
73673         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73674         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73675         do not check for strerror.
73676         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73677         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73678         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73679         do not check for doprnt or vprintf.
73680         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73681         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73682
73683 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73684
73685         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73686         getversion.c should have been removed then, but was accidentally
73687         preserved.
73688
73689         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73690         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73691
73692 2003-09-08  Karl Berry  <karl@gnu.org>
73693
73694         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73695                 config, forget about prep.
73696
73697         * config/depcomp, missing: update from automake.
73698
73699 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73700
73701         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73702         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73703
73704 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73705
73706         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73707         copy_tm_result.  Bug reported by Simon Josefsson in
73708         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73709
73710 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73711
73712         * m4/time_r.m4: New file.
73713         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73714         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73715         is. Check for timegm declaration.
73716         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73717         Do not check for gmtime_r.
73718         Replace mktime if __mktime_internal does not exist and if mktime
73719         hasn't been replaced already.
73720
73721 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73722
73723         * lib/time_r.c, lib/time_r.h: New files.
73724
73725         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73726         __localtime_r.
73727         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73728         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73729
73730         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73731         __gmtime_r.
73732         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73733         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73734         Include <time_r.h>.
73735
73736         * lib/timegm.c: Switch to glibc implementation, with the following
73737         changes:
73738         [defined HAVE_CONFIG_H]: Include <config.h>.
73739         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73740         (__mktime_internal) [!defined _LIBC]: New decl.
73741         (__gmtime_r) [!defined _LIBC]: New macro and function.
73742         (timegm): Use a prototype, since gnulib assumes C89.
73743         Do not bother declaring tmp to be const, as it's not really usefu.
73744         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73745         (timegm): Declare only if HAVE_DECL_TIMEGM.
73746
73747 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73748
73749         * MODULES.html.sh (func_all_modules): Add time_r.
73750         * modules/time_r: New file.
73751         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73752         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73753
73754 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73755
73756         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73757         Bug reported by Lute Kamstra in
73758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73759
73760         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73761         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73762         course with correspondingly smaller numbers for tomorrow and
73763         yesterday.  From Tadayoshi Funaba.  Originally installed into
73764         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73765         coreutils merge?).
73766
73767 2003-08-31  Simon Josefsson  <jas@extundo.com>
73768
73769         * modules/timegm: New file.
73770         * MODULES.html.sh (func_all_modules): Add timegm.
73771
73772 2003-08-31  Simon Josefsson  <jas@extundo.com>
73773
73774         * m4/timegm.m4: New file.
73775
73776 2003-08-31  Simon Josefsson  <jas@extundo.com>
73777
73778         * lib/timegm.h: New file.
73779         * lib/timegm.c: New file.  Based on
73780         wget-1.8.2/src/http.c:mktime_from_utc.
73781
73782 2003-08-31  Karl Berry  <karl@gnu.org>
73783
73784         * lib/argp.h: update from libc.
73785
73786 2003-08-28  Bruno Haible  <bruno@clisp.org>
73787
73788         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73789         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73790         followed by '#define fnmatch fnmatch_posix' gives an error.
73791
73792 2003-08-28  Bruno Haible  <bruno@clisp.org>
73793
73794         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73795         warning on QNX, which defines O_BINARY to 000000.
73796
73797 2003-08-27  Jim Meyering  <jim@meyering.net>
73798
73799         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73800         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73801         would fail after 32.  Reported by Danny Levinson.  Details here:
73802         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73803
73804 2003-08-24  Bruno Haible  <bruno@clisp.org>
73805
73806         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73807         MSVC7 <stdio.h> is included later.
73808
73809 2003-08-22  Simon Josefsson  <jas@extundo.com>
73810
73811         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73812
73813 2003-08-20  Karl Berry  <karl@gnu.org>
73814
73815         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73816
73817 2003-08-20  Bruno Haible  <bruno@clisp.org>
73818
73819         * modules/progname: New file.
73820         * MODULES.html.sh (func_all_modules): Add progname.
73821
73822 2003-08-20  Bruno Haible  <bruno@clisp.org>
73823
73824         * lib/progname.h: New file, from GNU gettext.
73825         * lib/progname.c: New file, from GNU gettext.
73826         * lib/progreloc.c: New file, from GNU gettext.
73827
73828 2003-08-19  Jim Meyering  <jim@meyering.net>
73829
73830         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73831         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73832
73833 2003-08-19  Bruno Haible  <bruno@clisp.org>
73834
73835         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73836         more.
73837
73838 2003-08-19  Bruno Haible  <bruno@clisp.org>
73839
73840         * lib/xstrdup.c: Assume <string.h> exists.
73841
73842 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73843
73844         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73845         in makefile rules.
73846
73847 2003-08-18  Jim Meyering  <jim@meyering.net>
73848
73849         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73850         * m4/lib-ld.m4: Likewise.
73851
73852 2003-08-18  Jim Meyering  <jim@meyering.net>
73853
73854         * lib/setenv.h: Indent nested cpp directive.
73855         * lib/vasnprintf.c: Remove trailing blanks.
73856
73857 2003-08-17  Simon Josefsson  <jas@extundo.com>
73858
73859         * modules/xstrndup: New file.
73860         * MODULES.html.sh (func_all_modules): Add xstrndup.
73861
73862 2003-08-17  Simon Josefsson  <jas@extundo.com>
73863
73864         * modules/argp: Fix autoconf macro name. Add more dependencies.
73865
73866 2003-08-17  Simon Josefsson  <jas@extundo.com>
73867
73868         * m4/xstrndup.m4: New file.
73869
73870 2003-08-17  Simon Josefsson  <jas@extundo.com>
73871
73872         * m4/argp.m4: New file.
73873
73874 2003-08-17  Simon Josefsson  <jas@extundo.com>
73875             Bruno Haible  <bruno@clisp.org>
73876
73877         * lib/xstrndup.h: New file.
73878         * lib/xstrndup.c: New file.
73879
73880 2003-08-17  Bruno Haible  <bruno@clisp.org>
73881
73882         * modules/strndup (Files, Include): Add lib/strndup.h.
73883
73884 2003-08-17  Bruno Haible  <bruno@clisp.org>
73885
73886         * modules/euidaccess (Files): Add lib/euidaccess.h.
73887
73888 2003-08-17  Bruno Haible  <bruno@clisp.org>
73889
73890         * lib/strndup.h: New file.
73891
73892 2003-08-17  Bruno Haible  <bruno@clisp.org>
73893
73894         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73895         like AC_GNU_SOURCE.
73896         * modules/extensions (configure.ac): Comment out the invocation of
73897         gl_USE_SYSTEM_EXTENSIONS.
73898
73899 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73900
73901         Merges from coreutils, etc.
73902         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73903         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73904         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73905         fixing a typo.
73906         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73907         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73908
73909 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73910
73911         Document merge from coreutils.
73912         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73913         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73914         * modules/utime: Add m4/utimes-null.m4.
73915
73916 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73917
73918         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73919         space, undoing this 2003-08-12 change:
73920         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73921
73922 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73923
73924         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73925         strtoul.c from libc, undoing this 2003-08-12 change:
73926         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73927
73928 2003-08-16  Jim Meyering  <jim@meyering.net>
73929
73930         Merges from coreutils.
73931         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73932         prefix.  Adjust cache variables similarly.  Create 500 rather than
73933         just 300 files, to exercise bug on Darwin6.5, too.
73934         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73935         $missing_dir.
73936         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73937         AM_SYS_POSIX_TERMIOS.
73938         Reported by mkc@mathdogs.com.
73939         Also change use of $am_cv_sys_posix_termios
73940         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73941         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73942         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73943         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73944         in /proc/mounts until it finds one with matching device number.  This
73945         is unnecessary when the FILE argument *is* a mount point.  No stat call
73946         is necessary in that case.  So, disable the statvfs-testing code on
73947         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73948         as RedHat bug# 84846.
73949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73950         to 1MB, so as not to render systems with no stack size limit (e.g.,
73951         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73952         Include <unistd.h>.  On some systems,
73953         it is required for the definition of _SC_PAGESIZE.
73954
73955 2003-08-16  Jim Meyering  <jim@meyering.net>
73956
73957         Merge from coreutils.
73958         * lib/xstrtoimax.c: #else #if -> #elif.
73959         * lib/xstrtoumax.c: Likewise.
73960
73961 2003-08-16  Jim Meyering  <jim@meyering.net>
73962
73963         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73964         * m4/utimes.m4: Removed.
73965         * m4/utimes-null.m4: Renamed from utimes.m4.
73966
73967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73968         to 1MB, so as not to render systems with no stack size limit (e.g.,
73969         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73970         Include <unistd.h>.  On some systems,
73971         it is required for the definition of _SC_PAGESIZE.
73972
73973 2003-08-16  Jim Meyering  <jim@meyering.net>
73974         and Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         Merges from coreutils, etc.
73977
73978         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73979         using the latest version from cvs.  This avoids problems with #line
73980         directives using a vendor (Sun) compiler.
73981         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73982         Don't set GETGROUPS_LIB here; now it's
73983         done via getgroups.m4's wrapper function.
73984         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73985         rather than just in sh-util/configure.in, so that the
73986         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73987         same.
73988         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73989         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73990         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73991         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73992         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73993         Remove code that is now done by the newly-required macros.
73994         Append $(EXEEXT) to DF_PROG.
73995         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73996         Do not invoke or require the following here,
73997         since prereq.m4 or some gnulib .m4 now does this for us:
73998         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73999         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74000         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74001         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74002         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74003         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74004         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74005         AC_FUNC_OBSTACK.
74006         Do not replace the following functions, as this is now the job
74007         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74008         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74009         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74010         atexit getpass, strdup, getpagesize.
74011         Replace 'raise'.
74012         Do not check for the following functions, as this is now the job
74013         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74014         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74015         setregid.
74016         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74017         Check for sys/sysctl.h.
74018         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74019         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74020         of checking for ssize_t ourselves.
74021
74022         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74023         Require every macro that gnulib/modules/* suggests for us.
74024         (jm_PREREQ_ADDEXT): New macro.
74025         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74026         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74027
74028         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74029         (gl_PHYSMEM): Use it.
74030         Also check for `table' function.
74031         Check for new headers and functions.
74032         Add check for sys/sysmp.h.
74033         With suggestions from Kaveh Ghazi.
74034         Ignore headers that are present but cannot be compiled.  This
74035         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74036         C 5.4.
74037
74038 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74039
74040         Document merge from coreutils.
74041         * modules/userspec: Depend on posixver.
74042         * modules/strftime: Depend on tzset.
74043
74044 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74045
74046         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74047         rather than tab, after '#' in shell-script copyright notices.
74048         Suggested by Bruno Haible.
74049
74050 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74051
74052         * config/srclist-update: Use three spaces, rather than tab, after '#'
74053         in shell-script copyright notices.  Suggested by Bruno Haible.
74054         Remove unnecessary parenthesization in regular expression.
74055
74056 2003-08-15  Jim Meyering  <jim@meyering.net>
74057
74058         Merge from coreutils.
74059         * lib/xgethostname.c: Include <stdlib.h>.
74060         (xghostname): Don't exit for anything other than memory-related
74061         failure; just return NULL.
74062         * lib/userspec.c: Include "posixver.h".
74063         (parse_user_spec): Accept `.' as a separator only
74064         in pre-POSIX-200112 mode.
74065         * lib/strtoimax.c: Use #elif rather than #else #if.
74066         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74067         Remove function, now that we can rely on a working tzset function.
74068         [!_LIBC]: Ensure that the required autoconf test has been run.
74069         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74070         Use underlying_strftime for %r.
74071         * lib/sha.c: Merge in some clean-up and optimization changes from
74072         glibc.
74073         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74074         Ensure that it is a multiple of 64.
74075         Rearrange loop exit tests so as to avoid performing an
74076         additional fread after encountering an error or EOF.
74077         * lib/realloc.c: Update copyright date.
74078
74079 2003-08-15  Jim Meyering  <jim@meyering.net>
74080         and Paul Eggert  <eggert@twinsun.com>
74081
74082         Merge from coreutils.
74083         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74084         member but strut utmpx does not.  Needed for AIX 4.3.3.
74085         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74086
74087 2003-08-15  Jim Meyering  <jim@meyering.net>
74088         and Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         Merges from coreutils, etc.
74091         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74092         Require gl_FUNC_TZSET_CLOBBER.
74093         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74094         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74095         members.
74096
74097 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74098
74099         Help the merge from coreutils.
74100         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74101         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74102         * m4/tzset.m4: Use it too.
74103
74104 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74105
74106         * modules/tzset: New file.
74107
74108 2003-08-14  Jim Meyering  <jim@meyering.net>
74109
74110         Merges from coreutils.
74111         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74112         variable names, rather than @FNMATCH_H@.
74113         * modules/alloca: Likewise for $(ALLOCA_H).
74114
74115         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74116         the three copies of the literal target, `fnmatch.h'.
74117         * modules/alloca (alloca.h): Likewise.
74118
74119 2003-08-14  Jim Meyering  <jim@meyering.net>
74120
74121         Merge from coreutils.
74122         * m4/tzset.m4: New file.
74123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74124         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74125         otherwise, AIX 5.1 systems would end up using the latter.
74126         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74127         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74128         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74129         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74130
74131 2003-08-14  Jim Meyering  <jim@meyering.net>
74132
74133         Merge from coreutils.
74134         * lib/obstack.h: Whitespace changes.
74135         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74136         and xcalloc return values.
74137         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74138         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74139         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74140         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74141         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74142         error from mntctl.
74143         Use mntctl's return value to drive the entry-processing loop, since
74144         we can't rely on the value of the vmt_length member in the last
74145         entry.  On some systems doing so could result in exhausting
74146         virtual memory.  Based in part on a patch from Mike Jetzer.
74147
74148 2003-08-14  Jim Meyering  <jim@meyering.net>
74149         and Paul Eggert  <eggert@twinsun.com>
74150
74151         Merges from coreutils, plus other fixes.
74152         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74153         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74154         for credits and details.  Thanks to Kaveh Ghazi for helping
74155         to keep these files in sync.
74156         (ARRAY_SIZE): Define it.
74157         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74158         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74159         (memcasecmp): Don't assume size_t fits in unsigned int.
74160         Remove casts and duplicate code.
74161         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74162         (memcpy): Remove definition.
74163         Merge in some clean-up and optimization changes from glibc.
74164         [BLOCKSIZE]: Move definition to top of file.
74165         Ensure that it is a multiple of 64.
74166         Rearrange loop exit tests so as to avoid performing an
74167         additional fread after encountering an error or EOF.
74168         * lib/md5.h (md5_uintptr): Define.
74169         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74170         return to the initial working directory.  Preserve errno
74171         for caller.
74172         * lib/idcache.c: Include "xalloc.h".
74173         (xmalloc, xrealloc): Remove decls.
74174         (getuser): Remove casts no longer required in C89.
74175         * lib/human.c: Include stdio.h, for sprintf.
74176         * lib/group-member.c: Include "xalloc.h".
74177         (xmalloc, xrealloc): Remove decls.
74178         (get_group_info): Remove casts no longer required in C89.
74179         * lib/getusershell.c (readname): Remove casts no longer required in
74180         C89.
74181         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74182         * lib/getline.c: Whitespace fix, from coreutils.
74183
74184 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74185
74186         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74187         Check for isascii.
74188
74189         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74190         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74191         Undo previous (whitespace-only) change.
74192
74193 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74194
74195         * lib/exclude.c: Include <ctype.h>
74196         (IN_CTYPE_DOMAIN): New macro.
74197         (is_space): New fn.
74198         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74199         and empty lines.
74200
74201         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74202         Undo previous (whitespace-only) change.
74203
74204 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74205
74206         * config/srclist-update: Change update back to the old behavior,
74207         leaving whitespace alone.  Use one 'sed' command rather than a
74208         pipeline.
74209         (fixlicense): Now a variable, not a function.
74210         (remove_trailing_blanks): Remove.
74211         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74212         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74213         Undo previous (whitespace-only) change.
74214
74215 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74216
74217         Merge from coreutils.
74218         * modules/euidaccess: Add lib_SOURCES, include for new
74219         file euidaccess.h
74220
74221 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74222
74223         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74224         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74225         Normalize leading white space and remove trailing white space.
74226
74227         Merge from coreutils
74228         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74229
74230         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74231         0.12.1.  These files are now being upgraded automatically by
74232         ../config/srclist-update.
74233
74234 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74235
74236         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74237         Normalize leading white space and remove trailing white space.
74238         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74239         notice, as per ../config/srclist-update.
74240
74241         Merge from coreutils.
74242         * lib/euidaccess.h: New file.
74243         * lib/euidaccess.c: Include it.
74244         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74245         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74246         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74247
74248 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74249
74250         * config/srclist-update: Add copyright notice.
74251         (remove_id_lines, remove_trailing_blanks): New constants.
74252         (fixfile): Use them to normalize spacing a bit in copied files.
74253         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74254         Normalize leading white space and remove trailing white space.
74255
74256         * config/texinfo.tex: Sync with texinfo.
74257
74258         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74259         strtoul.c from libc, to merge coreutils whitespace changes.
74260
74261         * config/srclist.txt: Get the following m4 files from gettext:
74262         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74263         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74264         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74265         wint_t.m4.
74266
74267 2003-08-12  Karl Berry  <karl@gnu.org>
74268
74269         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74270         been made.
74271
74272 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74273
74274         * modules/gnu-source, m4/gnu-source.m4:
74275         Remove; we're assuming Autoconf 2.54 or later now.
74276         Suggested by Bruno Haible.
74277         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74278
74279 2003-08-11  Bruno Haible  <bruno@clisp.org>
74280
74281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74282
74283 2003-08-11  Bruno Haible  <bruno@clisp.org>
74284
74285         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74286         (vasnprintf): Use it instead of wcslen.
74287
74288 2003-08-11  Bruno Haible  <bruno@clisp.org>
74289
74290         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74291         value to ensure that _Bool promotes to int. Use #define for _Bool when
74292         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74293
74294 2003-08-10  Karl Berry  <karl@gnu.org>
74295
74296         * lib/regex.h: update from libc (whitespace fix).
74297
74298 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74299
74300         Merge some files from coreutils.  These changes were
74301         originally made by Jim Meyering.
74302         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74303         many older Unixes require this.
74304         * lib/alloca.c (alloca): Remove cast to argument of free;
74305         no longer needed in C89.
74306         * lib/alloca_.h, regex.h: Fix white space to match
74307         what GNU indent does.
74308
74309 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74310
74311         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74312         apparently Emacs's Unicode mode got confused before my 2003-08-05
74313         checkin.
74314
74315 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74316
74317         * m4/extensions.m4: New file.
74318         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74319         Require gl_USE_SYSTEM_EXTENSIONS.
74320         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74321         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74322
74323 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74324
74325         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74326         * modules/extensions, modules/gnu-source: New files.
74327         * modules/timespec, modules/unlocked-io: Depend on extensions.
74328
74329 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74330
74331         * modules/restrict: New file.
74332         * MODULES.html.sh (func_all_modules): Add restrict.
74333         * modules/regex: Depend on restrict.
74334
74335 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74336
74337         * m4/restrict.m4: New file.
74338         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74339
74340 2003-08-07  Bruno Haible  <bruno@clisp.org>
74341
74342         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74343         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74344
74345 2003-08-07  Bruno Haible  <bruno@clisp.org>
74346
74347         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74348         makes the module 'getndelim2' compatible with the module 'getline'.
74349
74350 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74351
74352         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74353         byte with "\201" to avoid glitches when editing that source file
74354         with multi-gnome-terminal.
74355
74356 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74357
74358         * lib/bumpalloc.h: Remove.
74359
74360 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74361
74362         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74363         * modules/bumpalloc: Remove.
74364
74365 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74366
74367         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74368         GNU coding style.
74369
74370         Merge from coreutils.
74371         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74372         1. From glibc.
74373         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74374         from Karl Berry, implemented by Jim Meyering.
74375         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74376         from Dmitry V. Levin.
74377         Remove anachronistic cast of xrealloc.
74378         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74379         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74380         type. Otherwise, it wouldn't compile with at least /bin/cc on
74381         ymp-cray-unicos9.0.2.X.
74382         Combine two mostly-identical uses of alloca into one.
74383         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74384
74385 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74386
74387         [From Emacs.]
74388
74389         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74390         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74391         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74392         obsolete NLIST_NAME_UNION.
74393         [__GNU__]: Undef BSD and FSCALE.
74394         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74395
74396 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74397
74398         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74399         an enum type, so that it's guaranteed to promote to int.  See:
74400         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74401
74402 2003-08-03  Karl Berry  <karl@gnu.org>
74403
74404         * config/depcomp: update from automake.
74405
74406 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74407
74408         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74409         (strerror): Don't assume that a printable int fits in 14 bytes.
74410
74411 2003-07-31  Bruno Haible  <bruno@clisp.org>
74412
74413         * modules/getpass-gnu: New file.
74414         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74415
74416 2003-07-31  Bruno Haible  <bruno@clisp.org>
74417
74418         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74419
74420 2003-07-24  Karl Berry  <karl@gnu.org>
74421
74422         * config/missing: update from automake.
74423
74424 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74425             Bruno Haible  <bruno@clisp.org>
74426
74427         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74428         * lib/getline.c (getline, getdelim): Likewise.
74429         Remove _GNU_SOURCE define; now it's defined in config.h through
74430         m4/getline.m4.
74431
74432 2003-07-23  Karl Berry  <karl@gnu.org>
74433
74434         * config/config.sub: update from prep.
74435
74436 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74437
74438         * modules/xalloc (Depends-on): Add exitfail.
74439         * modules/xmemcoll: Likewise.
74440
74441 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74442
74443         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74444         over-parenthesization in macros.
74445
74446         Sync with coreutils.
74447
74448         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74449         required by C99.
74450
74451         Use `exit_failure' for xalloc and xmemcoll instead of their own
74452         private exit-failure variables.
74453         * lib/xalloc.h (xalloc_exit_failure): Remove.
74454         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74455         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74456         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74457         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74458         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74459
74460 2003-07-20  Jim Meyering  <jim@meyering.net>
74461
74462         * modules/closeout (Depends-on): Add exitfail.
74463         Suggestion from Bruno Haible.
74464
74465 2003-07-19  Karl Berry  <karl@gnu.org>
74466
74467         * config/config.sub: update from prep.
74468
74469 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74470
74471         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74472         Remove.
74473         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74474         to test that it can stand by itself.  Include "exitfail.h".
74475         Clients should set exit_failure instead.
74476         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74477
74478 2003-07-18  Bruno Haible  <bruno@clisp.org>
74479
74480         * modules/getndelim2: New file.
74481         * modules/getline: Share files with module getndelim2.
74482         * modules/getnline: Depend on getndelim2 instead of sharing files with
74483         it. Add getnline.c to lib_SOURCES.
74484         * MODULES.html.sh (func_all_modules): Add getndelim2.
74485
74486 2003-07-18  Bruno Haible  <bruno@clisp.org>
74487
74488         * m4/getndelim2.m4: New file.
74489         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74490         invoke gl_PREREQ_GETNDELIM2.
74491         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74492         gl_PREREQ_GETNDELIM2.
74493         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74494         gl_GETNDELIM2.
74495
74496 2003-07-18  Bruno Haible  <bruno@clisp.org>
74497
74498         * lib/getndelim2.h: New file.
74499         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74500         getndelim2.h.
74501         (getndelim2): Make non-static. Change return type to ssize_t.
74502         * lib/getline.h: Change argument names.
74503         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74504         * lib/getnline.c: Include getndelim2.h.
74505
74506 2003-07-18  Andreas Schwab  <schwab@suse.de>
74507
74508         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74509
74510 2003-07-17  Karl Berry  <karl@gnu.org>
74511
74512         * config/config.sub: update from prep.
74513
74514 2003-07-17  Bruno Haible  <bruno@clisp.org>
74515
74516         * modules/getnline: New file.
74517         * modules/getline: Add lib/getndelim2.c to source file list.
74518         * MODULES.html.sh (func_all_modules): Add getnline.
74519
74520 2003-07-17  Bruno Haible  <bruno@clisp.org>
74521
74522         * m4/getnline.m4: New file.
74523
74524 2003-07-17  Bruno Haible  <bruno@clisp.org>
74525
74526         * m4/Makefile.am.in: Remove file.
74527         * m4/Makefile.am: Remove file.
74528         * m4/Makefile.in: Remove file.
74529
74530 2003-07-17  Bruno Haible  <bruno@clisp.org>
74531
74532         * lib/getnline.h: New file.
74533         * lib/getnline.c: New file.
74534         * lib/getndelim2.c: New file, extracted from getline.c.
74535         (getndelim2): Renamed from getdelim2, with added nmax argument.
74536         * lib/getline.c: Include getndelim2.c.
74537         (getdelim2): Moved out to getndelim2.c.
74538         (getline, getdelim): Update.
74539
74540 2003-07-17  Bruno Haible  <bruno@clisp.org>
74541
74542         * lib/Makefile.am: Remove file.
74543         * lib/Makefile.in: Remove file.
74544
74545 2003-07-17  Bruno Haible  <bruno@clisp.org>
74546
74547         * configure.in: Remove file.
74548         * Makefile.in: Remove file.
74549
74550 2003-07-17  Bruno Haible  <bruno@clisp.org>
74551
74552         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74553
74554 2003-07-16  Karl Berry  <karl@gnu.org>
74555
74556         * config/srclist-update: was running fixlicense twice, which caused
74557                 texinfo.tex to be nullified for some reason.  Simplify,
74558                 $gplsrc is no longer needed as far as I can see?
74559
74560 2003-07-16  Jim Meyering  <jim@meyering.net>
74561
74562         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74563
74564 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74565
74566         * config/srclist.txt: Get the following files from gettext-runtime/intl
74567         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74568         ref-del.sin.  From Bruno Haible.
74569         * config/srclist-update (fixfile): Change grep pattern again, since the
74570         previous fix didn't work (there was another trailing $).  Use
74571         '[$]' to escape the $s.
74572
74573 2003-07-15  Karl Berry  <karl@gnu.org>
74574
74575         * lib/vasnprintf.c: update from gettext.
74576
74577 2003-07-15  Karl Berry  <karl@gnu.org>
74578
74579         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74580         gets expanded when surrounded by '$'.
74581
74582 2003-07-15  Jim Meyering  <jim@meyering.net>
74583
74584         * modules/save-cwd: Don't depend on error.  From Derek Price.
74585
74586 2003-07-15  Jim Meyering  <jim@meyering.net>
74587
74588         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74589
74590 2003-07-14  Simon Josefsson  <jas@extundo.com>
74591
74592         * modules/mempcpy: New file.
74593         * MODULES.html.sh (func_all_modules): Add mempcpy.
74594
74595 2003-07-14  Simon Josefsson  <jas@extundo.com>
74596
74597         * m4/mempcpy.m4: New file.
74598
74599 2003-07-14  Simon Josefsson  <jas@extundo.com>
74600
74601         * lib/mempcpy.h: New file.
74602         * lib/mempcpy.c: New file.
74603
74604 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74605
74606         * modules/getdate, modules/posixtm: Depend on mktime.
74607
74608 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74609
74610         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74611         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74612         unicodeio.c, unicodeio.h, unlocked-io.h:
74613         Switch from LGPL to GPL.
74614
74615 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74616
74617         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74618         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74619         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74620         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74621         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74622         updated automatically by ../config/srclist-update.  This changes
74623         their license from LPGL to GPL.
74624
74625 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74626
74627         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74628         assumed to refer to the root of the most recent stable gettext version.
74629         * config/srclistvars.sh: Add defaults for eggert.
74630         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74631         Match "This program" as well as "The program".  This is needed
74632         for gettext.
74633
74634 2003-07-14  Jim Meyering  <jim@meyering.net>
74635
74636         Don't emit diagnostics.  Let callers do that.
74637         * lib/save-cwd.c: Don't include "error.h".
74638         (save_cwd): Don't call error.  Ensure that errno is valid
74639         when returning nonzero.
74640
74641         * lib/save-cwd.h (restore_cwd): Update prototype.
74642         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74643         Simplify.  Don't call error upon failure.  Let callers do that.
74644         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74645         when auditing is enabled.  But don't bother updating the #if.
74646
74647 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74648
74649         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74650         it breaks C++ compilation.
74651         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74652
74653 2003-07-10  Simon Josefsson  <jas@extundo.com>
74654
74655         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74656
74657 2003-07-10  Jim Meyering  <jim@meyering.net>
74658
74659         * m4/clock_time.m4: Remove trailing blank.
74660         * m4/intmax_t.m4: Likewise.
74661
74662 2003-07-10  Jim Meyering  <jim@meyering.net>
74663
74664         * lib/vasnprintf.c: Remove trailing blanks.
74665         Make cpp indentation consistent.
74666
74667 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74668
74669         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74670         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74671         Switch from LGPL to GPL.
74672
74673 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74674
74675         * config/srclist.txt: Sort sublists.  Add
74676         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74677         that differ from gnulib for one reason or another; we'd like this list
74678         to be smaller but for now let's document what we have.
74679
74680 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74681
74682         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74683         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74684         and sweeter "eval x=$x".
74685         * config/srclist.txt: Get lib/argp* from glibc.
74686
74687 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74688
74689         * lib/mktime.c: Fix some boundary cases and remove need for floating
74690         point.
74691
74692         Issue a compile-time diagnostic if time_t is floating point, or if
74693         two's complement arithmetic is not in effect, or if arithmetic
74694         right shift does not propagate the sign.  These assumptions were
74695         all in the original code but they weren't checked.
74696
74697         (TIME_T_MIDPOINT, verify): New macros.
74698         (__isleap): Remove; it has integer overflow problems.
74699         (leapyear): New function, without those problems.
74700         (ydhms_tm_diff): Remove; splitting into two parts.
74701         (ydhms_diff): New function, containing the arithmetic part of
74702         the old ydhms_tm_diff function.  Issue a compile-time
74703         diagnostic if we are not using C99 integer division.
74704         Avoid casts when possible.
74705         (guess_time_tm): New function, containing the checking part of
74706         the old ydhms_tm_diff function.  Return the new value, rather than
74707         the difference between it and the old.  Accept a new argument T
74708         so that *T specifies the old value.  Check for overflow in the result.
74709
74710         (__mktime_internal): Use a time_t offset, not a long int offset.
74711         This undoes the 2003-06-04 change, which is no longer needed now
74712         that we have better overflow checking.
74713         (localtime_offset): Likewise.
74714
74715         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74716         and long are 64-bit but int is only 32-bit.
74717         (ydhms_diff): Use long int to store year1 and yday1.
74718         Issue a compile-time diagnostic if long int is not wide enough.
74719
74720         (__mktime_internal): Use long int to store adjusted year and yday.
74721         Use plain C rather than preprocessor commands, if that doesn't
74722         affect efficiency.
74723         Check for overflow (and try to repair) after each probe
74724         rather than checking only at the very end.  This avoids some bugs
74725         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74726         does not equal GMT offset at maximum time).
74727         Use integer to check for overflow rather than floating point; this
74728         is more portable to non-IEEE hosts, and is a tad faster.
74729         When we detect that we are oscillating between two values,
74730         don't check whether tm_isdst has the requested value, since
74731         we already know the answer.  When tm_isdst has the wrong value,
74732         use a different heuristic to find the right one, based on the
74733         extreme values actually observed in practice in tz2003a,
74734         rather than the (overly optimistic) "previous 3 calendar quarters".
74735
74736         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74737         "T const" to accommodate glibc style.
74738         (check_result): Use less-confusing report format.  "long" -> "long int.
74739         (main): Likewise.
74740         Don't loop if the iteration overflows time_t.
74741         Allow a negative step in the iteration.
74742
74743 2003-07-06  Karl Berry  <karl@gnu.org>
74744
74745         * config/depcomp: update from automake.
74746         * config/config.sub: update from prep.
74747
74748 2003-07-03  Karl Berry  <karl@gnu.org>
74749
74750         * config/config.guess: update from prep.
74751
74752 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74753
74754         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74755         xreadlink.c now includes it unconditionally.
74756
74757 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74758
74759         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74760         having it depend on HAVE_SYS_TYPES_H.
74761
74762 2003-07-01  Bruno Haible  <bruno@clisp.org>
74763
74764         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74765         <sys/types.h> should be sufficient.
74766         Reported by Paul Eggert.
74767
74768 2003-06-26  Karl Berry  <karl@gnu.org>
74769
74770         * config/depcomp: update from automake.
74771
74772 2003-06-26  Bruno Haible  <bruno@clisp.org>
74773
74774         * modules/human: Depend on module stdbool.
74775
74776 2003-06-25  Bruno Haible  <bruno@clisp.org>
74777
74778         * modules/readlink: New file.
74779         * modules/xreadlink: Depend on it.
74780         * MODULES.html.sh (func_all_modules): Add readlink.
74781
74782 2003-06-25  Bruno Haible  <bruno@clisp.org>
74783
74784         * m4/readlink.m4: New file.
74785
74786 2003-06-25  Bruno Haible  <bruno@clisp.org>
74787
74788         * lib/readlink.c: New file.
74789
74790 2003-06-22  Karl Berry  <karl@gnu.org>
74791
74792         * config/srclist.txt: update mkinstalldirs from automake.
74793         * config/mkinstalldirs: update.
74794
74795 2003-06-22  Bruno Haible  <bruno@clisp.org>
74796
74797         Portability to mingw32.
74798         * m4/ssize_t.m4: New file, from GNU gettext.
74799         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74800         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74801
74802 2003-06-22  Bruno Haible  <bruno@clisp.org>
74803
74804         * modules/safe-read: Add m4/ssize_t.m4.
74805         * modules/xreadlink: Add m4/ssize_t.m4.
74806
74807 2003-06-20  Bruno Haible  <bruno@clisp.org>
74808
74809         Assume C89, so PARAMS isn't needed.
74810         * lib/unicodeio.h (PARAMS): Remove.
74811         * lib/unicodeio.c: Don't use PARAMS.
74812
74813 2003-06-18  Karl Berry  <karl@gnu.org>
74814
74815         * config/config.{guess,sub}: update from prep.
74816
74817 2003-06-18  Jim Meyering  <jim@meyering.net>
74818
74819         Merge changes from coreutils.
74820         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74821         Remove explicit declarations of xmalloc and realloc.
74822         Include xalloc.h.
74823         (read_utmp): Remove anachronistic cast of xmalloc.
74824
74825 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74826
74827         Assume C89, so PARAMS isn't needed.
74828         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74829         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74830         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74831         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74832         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74833         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74834         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74835         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74836         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74837         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74838         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74839         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74840         no longer needed. Anyway, config.h should always be included before any
74841         other file.
74842
74843 2003-06-11  Simon Josefsson  <jas@extundo.com>
74844
74845         * modules/sysexits: New file.
74846         * MODULES.html.sh (func_all_modules): Add sysexits.
74847
74848 2003-06-11  Simon Josefsson  <jas@extundo.com>
74849
74850         * lib/sysexit_.h: New file.
74851
74852 2003-06-11  Derek Price  <derek@ximbiot.com>
74853
74854         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74855         necessary.
74856
74857 2003-06-11  Bruno Haible  <bruno@clisp.org>
74858
74859         * m4/sysexits.m4: New file.
74860
74861 2003-06-10  Simon Josefsson  <jas@extundo.com>
74862
74863         * lib/argp.h: New file, from glibc.
74864         * lib/argp-ba.c: New file, from glibc.
74865         * lib/argp-eexst.c: New file, from glibc.
74866         * lib/argp-fmtstream.c: New file, from glibc.
74867         * lib/argp-fmtstream.h: New file, from glibc.
74868         * lib/argp-fs-xinl.c: New file, from glibc.
74869         * lib/argp-help.c: New file, from glibc.
74870         * lib/argp-namefrob.h: New file, from glibc.
74871         * lib/argp-parse.c: New file, from glibc.
74872         * lib/argp-pv.c: New file, from glibc.
74873         * lib/argp-pvh.c: New file, from glibc.
74874         * lib/argp-xinl.c: New file, from glibc.
74875
74876 2003-06-10  Simon Josefsson  <jas@extundo.com>
74877
74878         * modules/strchrnul: New file.
74879
74880 2003-06-10  Simon Josefsson  <jas@extundo.com>
74881
74882         * modules/argp: New file.
74883
74884 2003-06-10  Simon Josefsson  <jas@extundo.com>
74885
74886         * m4/strchrnul.m4: New file.
74887
74888 2003-06-10  Simon Josefsson  <jas@extundo.com>
74889
74890         * lib/strchrnul.h: New file.
74891         * lib/strchrnul.c: New file.
74892
74893 2003-06-10  Bruno Haible  <bruno@clisp.org>
74894
74895         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74896
74897 2003-06-07  Karl Berry  <karl@gnu.org>
74898
74899         * config/config.{guess,sub}: update from prep.
74900
74901 2003-06-07  Jim Meyering  <jim@meyering.net>
74902
74903         * modules/strtod: Use $(...) notation, not @...@ for
74904         AC_REPLACE'd variables.
74905         * modules/localcharset: Likewise.
74906
74907 2003-06-07  Jim Meyering  <jim@meyering.net>
74908
74909         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74910         in place of my name in the copyright comment.
74911         Remove definition and uses of __P.
74912
74913         From coreutils.
74914         * lib/stat.c: Don't declare xmalloc explicitly.
74915         Instead, include "xalloc.h".
74916         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74917         xrealloc, and xcalloc return values.
74918         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74919         Improve comment.
74920         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74921
74922 2003-06-07  Bruno Haible  <bruno@clisp.org>
74923
74924         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74925         avoid AC_CONFIG_LINKS.
74926         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74927         fnmatch.h, to avoid AC_CONFIG_LINKS.
74928         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74929
74930 2003-06-07  Bruno Haible  <bruno@clisp.org>
74931
74932         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74933         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74934         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74935         directory.
74936         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74937         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74938         directory.
74939
74940 2003-06-06  Jim Meyering  <jim@meyering.net>
74941
74942         Merge from coreutils.
74943         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74944         Consolidate declarations and initializations of *_base* locals.
74945
74946         Merge from coreutils.
74947         This avoids a core dump on systems without GNU putenv,
74948         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74949         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74950         (unsetenv): New static function, from GNU libc.
74951         (rpl_putenv): Use it.
74952
74953         * lib/modechange.c: Remove trailing blanks.
74954
74955         Merge from coreutils.
74956         * lib/fsusage.c: Remove declaration of statfs.
74957         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74958
74959         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74960
74961 2003-06-06  Jim Meyering  <jim@meyering.net>
74962
74963         * lib/stdbool_.h: Renamed from stdbool.h.in.
74964
74965 2003-06-06  Jim Meyering  <jim@meyering.net>
74966             Bruno Haible  <bruno@clisp.org>
74967
74968         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74969         Adjust Makefile.am snippet not to redirect directly to target.
74970         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74971
74972 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74973
74974         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74975         mismatch, look in future quarters as well as past.  This fixes a
74976         bug when processing fall-backwards gaps immediately after a long
74977         period of daylight-saving time.
74978
74979         * lib/mktime.c: Assume freestanding C89 or better.
74980         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74981         (__P): Remove; not used.
74982         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74983         (mktime, not_equal_tm, print_tm, check_result,
74984         main): Use prototypes.  Use const * where appropriate.
74985         (main): Fix typo in testing code that uncovered by above changes.
74986         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74987
74988 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74989
74990         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74991         locale.h, localeconv.  This merges changes from coreutils.
74992
74993         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74994         It can be removed after the next Autoconf is released.
74995         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74996         needed.
74997
74998 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74999
75000         * lib/mktime.c: Fix Debian bug 177940
75001         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75002         (localtime_offset): Now long int, not time_t, because we want it
75003         to be guaranteed to be signed.  All uses changed.
75004         (__mktime_internal): If overflow would occur when adding offset,
75005         don't add it.
75006
75007         Merge 'human' changes from coreutils.  Rewrite to support
75008         locale-specific notations like thousands separators.
75009         * lib/human.c: Simplify authorship notice.
75010         Include human.h immediately after config.h.
75011         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75012         <limits.h>: Do not include, since human.h does.
75013         (SIZE_MAX, UINTMAX_MAX): New macros.
75014         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75015         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75016         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75017         (power_letter): Renamed from suffixes.
75018         (generate_suffix_backwards): Remove.
75019         (adjust_value): Now takes int style (because of human.h changes)
75020         and long double value (for greater precision on some platforms).
75021         (group_number): New function.
75022         (human_readable): Use it.  Use integer options, not enum.
75023         Put the options before the sizes in the arg list.
75024         Support all the new options.
75025         The old human_readable function has been removed;
75026         use inttostr.h instead.
75027         (human_readable, default_block_size, humblock):
75028         Use uintmax_t, not int, for block sizes.
75029         (human_readable_inexact, block_size_types): Remove.
75030         (block_size_opts): New constant.
75031         (human_options): Renamed from human_block_size, with new signature
75032         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75033         * lib/human.h: Add copyright and authorship notice.
75034         Include <limits.h> and <stdbool.h> unconditionally.
75035         (PARAMS): Remove.  All uses removed.
75036         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75037         (enum human_inexact_style): Remove tag; now a nameless enum.
75038         (human_floor, human_ceiling, human_round_to_even): Now have
75039         values 2, 0, 1 rather than -1, 1, 0.
75040         (human_group_digits, human_suppress_point_zero, human_autoscale,
75041         human_base_1024, human_SI, human_B): New constants.
75042         (human_readable_inexact, human_block_size): Remove.
75043         (human_readable): Size args are now uintmax_t, not int.
75044         (human_options): New decl.
75045
75046         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75047         unnecessary now that we assume C89 or better.  This change
75048         imported from coreutils.
75049
75050         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75051         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75052         in the 2003-05-30 sync from glibc.
75053
75054         .h files should stand alone, but we shouldn't include <sys/types.h>
75055         if we can get away with just <stddef.h>.
75056
75057         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75058         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75059         rather than <sys/types.h>, as we merely need size_t.
75060         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75061         to get size_t.
75062         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75063         Include <stdio.h>, to get FILE.
75064         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75065         memcasecmp.h has included <stddef.h> and all we need is size_t.
75066         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75067         our interface, instead of including <sys/types.h>
75068
75069 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75070
75071         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75072         now, as glibc mktime is buggy on non-glibc systems.
75073
75074 2003-06-03  Karl Berry  <karl@gnu.org>
75075
75076         * config/config.sub: update from prep.
75077
75078 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75079
75080         [from coreutils]
75081         Fix some minor time-related bugs with POSIX time arguments.
75082         Some valid time stamps were being rejected (notably -1, and
75083         time stamps before 1900 on 64-bit hosts).  And some invalid
75084         time stamps were being accepted, e.g. September 31.
75085
75086         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75087         that we can return (time_t) -1 successfully.
75088         * lib/posixtm.c: Likewise.
75089         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75090         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75091         (t): Remove static var.
75092         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75093         of static var.  All uses changed.
75094         (year): Do not reject years before 1900; they can occur with
75095         64-bit time_t.
75096         (posix_time_parse): Do not check for out-of-range components;
75097         that is now the caller's responsibility, since our checks were
75098         only approximations.
75099         (posixtime): Use mktime to check for out-of-range components,
75100         since it knows them exactly.
75101         If mktime returns (time_t) -1, check whether an error actually occurred
75102         by invoking localtime on -1.
75103         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75104         posixtime failures better.
75105         Improve the test data (in comments only).
75106
75107 2003-06-02  Karl Berry  <karl@gnu.org>
75108
75109         * config/mkinstalldirs (version): new variable.
75110         (--version): new option.
75111         (usage): improve message.
75112
75113 2003-05-30  Karl Berry  <karl@gnu.org>
75114
75115         * lib/mktime.c: update from libc.
75116
75117 2003-05-30  Bruno Haible  <bruno@clisp.org>
75118
75119         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75120         * config/config.rpath: Upgrade to gettext-0.12.1.
75121
75122 2003-05-30  Bruno Haible  <bruno@clisp.org>
75123
75124         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75125         * m4/nls.m4: New file, from gettext-0.12.1.
75126         * m4/po.m4: New file, from gettext-0.12.1.
75127         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75128
75129 2003-05-30  Bruno Haible  <bruno@clisp.org>
75130
75131         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75132         * lib/localcharset.h: Likewise.
75133         * lib/localcharset.c: Likewise.
75134
75135 2003-05-29  Karl Berry  <karl@gnu.org>
75136
75137         * config/config.rpath: update from gettext.
75138
75139 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75140
75141         Assume the headers required for C89 freestanding compilers.
75142         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75143         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75144         * m4/human.m4 (gl_HUMAN): Likewise.
75145         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75146         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75147         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75148         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75149         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75150         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75151
75152 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75153
75154         Assume the headers required for C89 freestanding compilers.
75155         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75156         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75157         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75158         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75159         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75160         define, since <limits.h> is guaranteed to do that.
75161         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75162         * lib/exclude.c: Include <stdbool.h> unconditionally.
75163         * lib/tempname.c: Include <stddef.h> unconditionally.
75164         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75165         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75166         <stddef.h> does that.
75167         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75168         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75169         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75170         needed.
75171         * lib/xstrtol.c: Likewise.
75172         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75173         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75174
75175         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75176         warnings on some platforms.
75177
75178         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75179         arbitrarily.
75180
75181 2003-05-26  Jim Meyering  <jim@meyering.net>
75182
75183         Merge in a change from coreutils:
75184         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75185         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75186         that condition, rather than `-1' which is slightly misleading.
75187         Change the name of the cache variable to have the gl_ prefix.
75188         Prompted by a patch from Richard Dawe for DJGPP.
75189
75190 2003-05-24  Karl Berry  <karl@gnu.org>
75191
75192         * config/config.guess: update from prep.
75193
75194 2003-05-22  Karl Berry  <karl@gnu.org>
75195
75196         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75197
75198 2003-05-20  Karl Berry  <karl@gnu.org>
75199
75200         * config/config.guess: update from prep.
75201
75202 2003-05-18  Karl Berry  <karl@gnu.org>
75203
75204         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75205         might actually be set by the user.
75206
75207         * config/depcomp, install-sh, mdate-sh: update from automake.
75208
75209 2003-05-17  Bruno Haible  <bruno@clisp.org>
75210
75211         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75212         invalid expansion for AC_EGREP_CPP.
75213         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75214         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75215         Suggested by Akim Demaille <akim@epita.fr> in
75216         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75217
75218 2003-05-12  Jim Meyering  <jim@meyering.net>
75219
75220         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75221         the space-padded-by-default conversion specifiers, %e, %k, %l.
75222
75223 2003-05-12  Bruno Haible  <bruno@clisp.org>
75224
75225         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75226         the string is longer than 4 KB.
75227
75228 2003-05-11  Karl Berry  <karl@gnu.org>
75229
75230         * config/config.{guess,sub}: update from prep.
75231
75232 2003-05-09  Bruno Haible  <bruno@clisp.org>
75233
75234         * modules/error: Add m4/strerror_r.m4 to file list.
75235
75236 2003-05-03  Bruno Haible  <bruno@clisp.org>
75237
75238         Upgrade to Unicode-4.0.
75239         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75240         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75241         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75242         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75243         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75244         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75245         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75246         Change width of U+E0100..U+E01EF from 1 to 0.
75247
75248 2003-04-25  Jim Meyering  <jim@meyering.net>
75249
75250         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75251         of type size_t, not int.
75252
75253 2003-04-25  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/copy-file.c: Include <stddef.h>, for size_t.
75256
75257 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75258
75259         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75260         code which expansion is under static control.  Patch imported from
75261         Akim Demaille's patch to Bison; see
75262         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75263
75264 2003-04-14  Bruno Haible  <bruno@clisp.org>
75265
75266         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75267
75268 2003-04-11  Jim Meyering  <jim@meyering.net>
75269
75270         Merge changes from Coreutils.
75271
75272         2003-03-22  Jim Meyering  <jim@meyering.net>
75273
75274         * lib/strftime.c (widen): Cast alloca return value to proper type.
75275
75276         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75277
75278         From GNU libc.
75279         * lib/strftime.c (my_strftime): Handle very large width
75280         specifications for numeric values correctly.  Improve checks for
75281         overflow.
75282
75283         2003-01-19  Jim Meyering  <jim@meyering.net>
75284
75285         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75286         definitions.
75287         (nl_get_alt_digit) [! defined my_strftime]: Define.
75288         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75289         _nl_get_alt_digit and _nl_get_walt_digit.
75290
75291         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75292         libc. These changes have no effect outside of _LIBC.
75293
75294 2003-04-10  Bruno Haible  <bruno@clisp.org>
75295
75296         * modules/findprog: New file.
75297         * MODULES.html.sh (func_all_modules): Add it.
75298
75299 2003-04-10  Bruno Haible  <bruno@clisp.org>
75300
75301         * m4/findprog.m4: New file.
75302         * m4/eaccess.m4: New file.
75303
75304 2003-04-10  Bruno Haible  <bruno@clisp.org>
75305
75306         * lib/findprog.h: New file, from GNU gettext.
75307         * lib/findprog.c: New file, from GNU gettext.
75308
75309 2003-04-05  Jim Meyering  <jim@meyering.net>
75310
75311         Merge changes from Coreutils.
75312
75313         * lib/exclude.h (PARAMS): Remove definition and uses.
75314         * lib/exclude.c: Remove uses of `PARAMS'.
75315
75316         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75317         Add test-cases for DOS filenames. Declare program_name.
75318         (main): Set up program_name.  Patch by Rich Dawe.
75319
75320         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75321         error from mntctl.
75322         Use mntctl's return value to drive the entry-processing loop, since
75323         we can't rely on the value of the vmt_length member in the last
75324         entry.  On some systems doing so could result in exhausting
75325         virtual memory.  Based in part on a patch from Mike Jetzer.
75326
75327 2003-04-04  Bruno Haible  <bruno@clisp.org>
75328
75329         * modules/linebreak: New file.
75330         * MODULES.html.sh (func_all_modules): Add it.
75331
75332 2003-04-04  Bruno Haible  <bruno@clisp.org>
75333
75334         * m4/linebreak.m4: New file.
75335
75336 2003-04-04  Bruno Haible  <bruno@clisp.org>
75337
75338         * lib/linebreak.h: New file, from GNU gettext.
75339         * lib/linebreak.c: New file, from GNU gettext with slight
75340         modifications.
75341         * lib/lbrkprop.h: New file, from GNU gettext.
75342
75343 2003-04-03  Bruno Haible  <bruno@clisp.org>
75344
75345         * modules/utf8-ucs4: New file.
75346         * modules/utf16-ucs4: New file.
75347         * modules/ucs4-utf8: New file.
75348         * modules/ucs4-utf16: New file.
75349         * MODULES.html.sh (func_all_modules): Add them.
75350
75351 2003-04-03  Bruno Haible  <bruno@clisp.org>
75352
75353         * m4/utf-ucs4.m4: New file.
75354         * m4/ucs4-utf.m4: New file.
75355
75356 2003-04-03  Bruno Haible  <bruno@clisp.org>
75357
75358         * lib/utf8-ucs4.h: New file, from GNU gettext.
75359         * lib/utf16-ucs4.h: New file, from GNU gettext.
75360         * lib/ucs4-utf8.h: New file, from GNU gettext.
75361         * lib/ucs4-utf16.h: New file, from GNU gettext.
75362
75363 2003-04-02  Bruno Haible  <bruno@clisp.org>
75364
75365         * modules/binary-io: New file.
75366         * MODULES.html.sh (func_all_modules): Add it.
75367
75368 2003-04-02  Bruno Haible  <bruno@clisp.org>
75369
75370         * lib/binary-io.h: New file, from GNU gettext.
75371
75372 2003-04-01  Bruno Haible  <bruno@clisp.org>
75373
75374         * modules/pathname: New file.
75375         * MODULES.html.sh (func_all_modules): Add it.
75376
75377 2003-04-01  Bruno Haible  <bruno@clisp.org>
75378
75379         * lib/pathname.h: New file, from GNU gettext.
75380         * lib/concatpath.c: New file, from GNU gettext.
75381
75382 2003-03-30  Bruno Haible  <bruno@clisp.org>
75383
75384         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75385
75386 2003-03-30  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75389         function chown() doesn't exist.
75390
75391 2003-03-28  Bruno Haible  <bruno@clisp.org>
75392
75393         * modules/copy-file: New file.
75394         * MODULES.html.sh (func_all_modules): Add it.
75395
75396 2003-03-28  Bruno Haible  <bruno@clisp.org>
75397
75398         * m4/copy-file.m4: New file.
75399
75400 2003-03-28  Bruno Haible  <bruno@clisp.org>
75401
75402         * lib/copy-file.h: New file, from GNU gettext.
75403         * lib/copy-file.c: New file, from GNU gettext.
75404
75405 2003-03-18  Jim Meyering  <jim@meyering.net>
75406
75407         * lib/quote.c (quote_n): Fix typo in comment.
75408
75409 2003-03-18  Bruno Haible  <bruno@clisp.org>
75410
75411         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75412         checking.
75413         * m4/onceonly_2_57.m4: Likewise.
75414
75415 2003-03-17  Bruno Haible  <bruno@clisp.org>
75416
75417         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75418         (m4_quote): Remove macro.
75419         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75420
75421 2003-03-14  Jim Meyering  <jim@meyering.net>
75422
75423         Merge changes from Coreutils.
75424         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75425         to be const, in order to avoid warnings.
75426         (obstack_room): Likewise.
75427         (obstack_empty_p): Likewise.
75428
75429 2003-03-14  Bruno Haible  <bruno@clisp.org>
75430
75431         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75432         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75433
75434 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75435
75436         Merge changes from Bison.
75437         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75438         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75439         when compiling Bison 1.875's `bitset bset = obstack_alloc
75440         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75441         * lib/hash.c: Include <stdbool.h> unconditionally.
75442
75443 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75444
75445         * m4/onceonly.m4 (m4_quote): New macro.
75446         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75447         Quote AC_FOREACH variable-expansions properly.
75448
75449 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75450
75451         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75452
75453 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75454
75455         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75456         Reported by Bruce Becker; see:
75457         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75458
75459 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75460             Bruno Haible  <bruno@clisp.org>
75461
75462         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75463         Reported by John Hughes, see
75464         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75465
75466 2003-02-20  Bruno Haible  <bruno@clisp.org>
75467
75468         * MODULES.html.sh (func_all_modules): Add poll.
75469
75470 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75471
75472         * modules/poll: New file.
75473
75474 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75475
75476         * lib/poll_.h: New file.
75477         * lib/poll.c: New file.
75478
75479 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75480
75481         * m4/poll.m4: New file.
75482
75483 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75484
75485         * modules/mathl: New file.
75486
75487 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75488
75489         * lib/mathl.h: New file.
75490         * lib/acosl.c: New file.
75491         * lib/asinl.c: New file.
75492         * lib/atanl.c: New file.
75493         * lib/ceill.c: New file.
75494         * lib/cosl.c: New file.
75495         * lib/expl.c: New file.
75496         * lib/floorl.c: New file.
75497         * lib/frexpl.c: New file.
75498         * lib/ldexpl.c: New file.
75499         * lib/logl.c: New file.
75500         * lib/sincosl.c: New file.
75501         * lib/sinl.c: New file.
75502         * lib/sqrtl.c: New file.
75503         * lib/tanl.c: New file.
75504         * lib/trigl.c: New file.
75505         * lib/trigl.h: New file.
75506
75507 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75508
75509         * m4/mathl.m4: New file.
75510
75511 2003-02-18  Bruno Haible  <bruno@clisp.org>
75512
75513         * MODULES.html.sh (func_all_modules): Add mathl.
75514
75515 2003-02-17  Bruno Haible  <bruno@clisp.org>
75516
75517         * modules/mkdtemp: New module.
75518         * MODULES.html.sh (func_all_modules): Add it.
75519
75520 2003-02-17  Bruno Haible  <bruno@clisp.org>
75521
75522         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75523
75524 2003-02-17  Bruno Haible  <bruno@clisp.org>
75525
75526         * lib/mkdtemp.h: New file, from GNU gettext.
75527         * lib/mkdtemp.c: New file, from GNU gettext.
75528
75529 2003-02-02  Jim Meyering  <jim@meyering.net>
75530
75531         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75532         e.g. glibc-2.2.93.
75533
75534 2003-01-31  Bruno Haible  <bruno@clisp.org>
75535
75536         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75537         'rpl_rename'.
75538         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75539         'rpl_strnlen'.
75540         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75541         'rpl_strtod'.
75542         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75543         'rpl_utime'.
75544
75545 2003-01-31  Bruno Haible  <bruno@clisp.org>
75546
75547         * lib/rename.c: #undef rename before defining rpl_rename.
75548         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75549
75550 2003-01-30  Bruno Haible  <bruno@clisp.org>
75551
75552         * modules/vasnprintf, modules/vasprintf: New modules.
75553         * MODULES.html.sh (func_all_modules): Add them.
75554
75555 2003-01-30  Bruno Haible  <bruno@clisp.org>
75556
75557         * m4/signed.m4: New file, from GNU gettext.
75558         * m4/longdouble.m4: New file, from GNU gettext.
75559         * m4/wchar_t.m4: New file, from GNU gettext.
75560         * m4/wint_t.m4: New file, from GNU gettext.
75561         * m4/vasnprintf.m4: New file.
75562         * m4/vasprintf.m4: New file.
75563
75564 2003-01-30  Bruno Haible  <bruno@clisp.org>
75565
75566         * lib/printf-args.h: New file, from GNU gettext.
75567         * lib/printf-args.c: New file, from GNU gettext.
75568         * lib/printf-parse.h: New file, from GNU gettext.
75569         * lib/printf-parse.c: New file, from GNU gettext.
75570         * lib/vasnprintf.h: New file, from GNU gettext.
75571         * lib/vasnprintf.c: New file, from GNU gettext.
75572         * lib/asnprintf.c: New file, from GNU gettext.
75573         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75574         * lib/vasprintf.c: New file, from GNU gettext.
75575         * lib/asprintf.c: New file, from GNU gettext.
75576
75577 2003-01-29  Bruno Haible  <bruno@clisp.org>
75578
75579         * modules/stpncpy: New module.
75580         * MODULES.html.sh (func_all_modules): Add it.
75581
75582 2003-01-29  Bruno Haible  <bruno@clisp.org>
75583
75584         * m4/stpncpy.m4: New file.
75585
75586 2003-01-29  Bruno Haible  <bruno@clisp.org>
75587
75588         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75589         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75590
75591 2003-01-28  Bruno Haible  <bruno@clisp.org>
75592
75593         * modules/c-ctype: New module.
75594         * MODULES.html.sh (func_all_modules): Add it.
75595
75596 2003-01-28  Bruno Haible  <bruno@clisp.org>
75597
75598         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75599         Paul Eggert.
75600         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75601         Paul Eggert.
75602
75603 2003-01-27  Bruno Haible  <bruno@clisp.org>
75604
75605         * modules/xsetenv: New module.
75606         * MODULES.html.sh (func_all_modules): Add it.
75607
75608 2003-01-27  Bruno Haible  <bruno@clisp.org>
75609
75610         * lib/xsetenv.h: New file, from GNU gettext.
75611         * lib/xsetenv.c: New file, from GNU gettext.
75612
75613 2003-01-23  Jim Meyering  <jim@meyering.net>
75614
75615         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75616         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75617
75618 2003-01-23  Bruno Haible  <bruno@clisp.org>
75619
75620         * modules/minmax: New module.
75621         * MODULES.html.sh (func_all_modules): Add it.
75622
75623 2003-01-23  Bruno Haible  <bruno@clisp.org>
75624
75625         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75626         Eggert.
75627
75628 2003-01-22  Bruno Haible  <bruno@clisp.org>
75629
75630         * modules/exit: New module.
75631         * MODULES.html.sh (func_all_modules): Add it.
75632
75633 2003-01-22  Bruno Haible  <bruno@clisp.org>
75634
75635         * lib/exit.h: New file, from GNU gettext.
75636
75637 2003-01-19  Bruno Haible  <bruno@clisp.org>
75638
75639         * gnulib-tool: Recognize option --extract-maintainer.
75640         (func_get_maintainer): New function.
75641         * modules/*: Add Maintainer entry.
75642
75643 2003-01-16  Jim Meyering  <jim@meyering.net>
75644
75645         * m4/regex.m4: The `regex' struct is both input and output.
75646         Initialize it before each use.  Patch by Tim Waugh.
75647
75648 2003-01-16  Bruno Haible  <bruno@clisp.org>
75649
75650         * MODULES.html.sh: Add a table of contents. Add the module name as
75651         leftmost column. Add hyperlinks.
75652
75653 2003-01-15  Bruno Haible  <bruno@clisp.org>
75654
75655         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75656
75657 2003-01-15  Bruno Haible  <bruno@clisp.org>
75658
75659         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75660         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75661         suffix.
75662
75663 2003-01-15  Bruno Haible  <bruno@clisp.org>
75664
75665         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75666
75667 2003-01-15  Bruno Haible  <bruno@clisp.org>
75668
75669         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75670         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75671
75672 2003-01-14  Jim Meyering  <jim@meyering.net>
75673
75674         * lib/same.c (same_name): Tweak a comment.
75675
75676 2003-01-14  Bruno Haible  <bruno@clisp.org>
75677
75678         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75679         when a string comparison is sufficient.
75680
75681 2003-01-14  Bruno Haible  <bruno@clisp.org>
75682
75683         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75684         'unsigned int'.
75685
75686 2003-01-14  Bruno Haible  <bruno@clisp.org>
75687
75688         * lib/hash-pjw.c: Add comment about low quality of this function.
75689
75690 2003-01-13  Bruno Haible  <bruno@clisp.org>
75691
75692         * modules/stpcpy: Distribute lib/stpcpy.h.
75693         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75694
75695 2003-01-13  Bruno Haible  <bruno@clisp.org>
75696
75697         * modules/*: Add a description.
75698         * modules/strpbrk: Fix Makefile.am snippet.
75699         * modules/strtoimax: Fix dependencies.
75700         * modules/strtoumax: Likewise.
75701
75702 2003-01-13  Bruno Haible  <bruno@clisp.org>
75703
75704         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75705         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75706         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75707
75708 2003-01-13  Bruno Haible  <bruno@clisp.org>
75709
75710         * gnulib-tool (func_create_testdir): Store config/* files in the main
75711         directory.
75712         * config.rpath: Move to ...
75713         * config/config.rpath: ... here.
75714         * modules/gettext: Contains config/config.rpath, not config.rpath.
75715         * modules/iconv: Likewise.
75716
75717 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75718
75719         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75720         to avoid collisions with libcurses and libreadline.
75721
75722         * m4/getstr.m4: Remove.
75723         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75724
75725 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75726
75727         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75728         to avoid collisions with libcurses and libreadline.
75729
75730         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75731         * lib/getstr.h, getstr.c: Remove.
75732         * lib/getline.c: Include "getline.h", to check interface.
75733         Move body of old getstr.c here: this defines MIN_CHUNK and
75734         declares getdelim2, which is renamed from getstr.
75735         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75736
75737         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75738         All uses changed.
75739         * lib/linebuffer.h: Likewise.
75740         (readline): Remove backward-compatibility macro.
75741
75742 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75743
75744         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75745         to avoid collisions with libcurses and libreadline.
75746         * getstr: Remove.
75747         * MODULES.html.sh: Remove getstr.
75748         * modules/getline: Depend on unlocked-io, not getstr.
75749
75750 2003-01-12  Jim Meyering  <jim@meyering.net>
75751
75752         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75753
75754 2003-01-10  Bruno Haible  <bruno@clisp.org>
75755
75756         * modules/alloca: Change Makefile.am requirements. Simplify Include
75757         requirements. Add lib/alloca_.h to file list.
75758
75759 2003-01-10  Bruno Haible  <bruno@clisp.org>
75760
75761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75762
75763 2003-01-10  Bruno Haible  <bruno@clisp.org>
75764
75765         * lib/alloca_.h: New file.
75766         * lib/getdate.y: Unconditionally include alloca.h.
75767         * lib/makepath.c: Likewise.
75768         * lib/setenv.c: Likewise.
75769         * lib/userspec.c: Likewise.
75770
75771 2003-01-09  Karl Berry  <karl@gnu.org>
75772
75773         * MODULES.html.sh: include `dirname $0` in PATH, to find
75774         gnulib-tool.
75775
75776 2003-01-09  Bruno Haible  <bruno@clisp.org>
75777
75778         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75779         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75780
75781 2003-01-09  Bruno Haible  <bruno@clisp.org>
75782
75783         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75784
75785 2003-01-09  Bruno Haible  <bruno@clisp.org>
75786
75787         * lib/stdbool.h.in: New file.
75788
75789 2003-01-09  Bruno Haible  <bruno@clisp.org>
75790
75791         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75792         * MODULES.html.sh: Likewise.
75793
75794 2003-01-08  Jim Meyering  <jim@meyering.net>
75795
75796         * lib/full-write.c: Undefine and define-away `const' after inclusion
75797         of errno.h, not before.  Suggestion from Bruno Haible.
75798
75799 2003-01-08  Bruno Haible  <bruno@clisp.org>
75800
75801         * modules/full-read: Depend on full-write.
75802
75803 2003-01-08  Bruno Haible  <bruno@clisp.org>
75804
75805         * lib/safe-read.c: Include specification header first, to ensure its
75806         selfcontainedness.
75807         * lib/full-write.c: Likewise.
75808
75809 2003-01-07  Jim Meyering  <jim@meyering.net>
75810
75811         * lib/full-write.c: Rework so that it may serve to define full_read,
75812         too.
75813         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75814
75815 2003-01-07  Bruno Haible  <bruno@clisp.org>
75816
75817         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75818         <inttypes.h>.
75819         * lib/xstrtol.h: Likewise.
75820         * lib/xstrtoimax.c: Likewise.
75821         * lib/xstrtoumax.c: Likewise.
75822         * lib/human.h: Likewise.
75823
75824         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75825         on systems that have <inttypes.h> but not <stdint.h>.
75826
75827 2003-01-07  Bruno Haible  <bruno@clisp.org>
75828
75829         * MODULES.html.sh: Add copyright notice.
75830         (missed_files): Omit CVS directory entries.
75831         (func_module): Make it work with sed-3.02.
75832         * MODULES.txt: Remove file.
75833
75834 2003-01-06  Jim Meyering  <jim@meyering.net>
75835
75836         * lib/version-etc.c: Update year in translatable copyright string.
75837
75838 2003-01-03  Karl Berry  <karl@gnu.org>
75839
75840         * config/config.{guess,sub}: update from prep.
75841
75842 2003-01-02  Karl Berry  <karl@gnu.org>
75843
75844         * doc/COPYING.DOC: belatedly updated to 1.2.
75845
75846 2003-01-01  Karl Berry  <karl@gnu.org>
75847
75848         * gnulib-tool (func_verify_module): report module name $module in
75849         error message, not $1.
75850         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75851         be created, only if it doesn't exist.
75852         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75853
75854 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75855
75856         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75857
75858 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75859
75860         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75861         memcmp if strcoll doesn't work.
75862
75863 2002-12-31  Bruno Haible  <bruno@clisp.org>
75864
75865         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75866         nonempty.
75867
75868 2002-12-31  Bruno Haible  <bruno@clisp.org>
75869
75870         * lib/memcoll.c (STRCOLL): New macro.
75871         (memcoll): Use it.
75872
75873 2002-12-31  Bruno Haible  <bruno@clisp.org>
75874
75875         * lib/localcharset.h: New file.
75876         * lib/localcharset.c: Include it.
75877         * lib/unicodeio.c: Likewise.
75878
75879 2002-12-31  Bruno Haible  <bruno@clisp.org>
75880
75881         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75882         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75883
75884 2002-12-31  Bruno Haible  <bruno@clisp.org>
75885
75886         * lib/getline.h: Include <stddef.h>, for size_t.
75887
75888         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75889         * lib/unicodeio.c: Don't include <stddef.h>.
75890
75891 2002-12-31  Bruno Haible  <bruno@clisp.org>
75892
75893         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75894         HAVE_TM_ZONE.
75895
75896 2002-12-24  Karl Berry  <karl@gnu.org>
75897
75898         * config/config.guess: update from prep.
75899
75900 2002-12-24  Bruno Haible  <bruno@clisp.org>
75901
75902         General infrasructure.
75903         * m4/README: Rewritten.
75904         * m4/onceonly.m4: New file.
75905         * m4/onceonly_2_57.m4: New file.
75906
75907         Module atexit.
75908         * m4/atexit.m4: New file.
75909
75910         Module strtod.
75911         * m4/strtod.m4: New file.
75912
75913         Module strtol.
75914         * m4/strtol.m4: New file.
75915
75916         Module strtoul.
75917         * m4/strtoul.m4: New file.
75918
75919         Module memchr.
75920         * m4/memchr.m4: New file.
75921
75922         Module memcmp.
75923         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75924         (jm_FUNC_MEMCMP): Invoke it.
75925
75926         Module memcpy.
75927         * m4/memcpy.m4: New file.
75928
75929         Module memmove.
75930         * m4/memmove.m4: New file.
75931
75932         Module memset.
75933         * m4/memset.m4: New file.
75934
75935         Module strcspn.
75936         * m4/strcspn.m4: New file.
75937
75938         Module strpbrk.
75939         * m4/strpbrk.m4: New file.
75940
75941         Module strstr.
75942         * m4/strstr.m4: New file.
75943
75944         Module strerror.
75945         * m4/strerror.m4: New file.
75946
75947         Module mktime.
75948         * m4/mktime.m4: Renamed from jm-mktime.m4.
75949         (gl_PREREQ_MKTIME): New macro.
75950         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75951
75952         Module malloc.
75953         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75954         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75955         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75956
75957         Module realloc.
75958         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75959         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75960         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75961
75962         Module strftime.
75963         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75964         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75965         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75966         gl_TM_GMTOFF.
75967         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75968
75969         Module xalloc.
75970         * m4/xalloc.m4: New file.
75971
75972         Module alloca.
75973         * m4/alloca.m4: New file.
75974
75975         Module putenv.
75976         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75977         (jm_FUNC_PUTENV): Invoke it.
75978
75979         Module setenv.
75980         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75981         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75982         when invoked twice.
75983         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75984         gt_FUNC_SETENV.
75985
75986         Module memrchr.
75987         * m4/memrchr.m4: New file.
75988
75989         Module stpcpy.
75990         * m4/stpcpy.m4: New file.
75991
75992         Module strcase.
75993         * m4/strcase.m4: New file.
75994
75995         Module strdup.
75996         * m4/strdup.m4: New file.
75997
75998         Module strnlen.
75999         * m4/strnlen.m4: New file.
76000
76001         Module strndup.
76002         * m4/strndup.m4: New file.
76003
76004         Module xstrtod.
76005         * m4/xstrtod.m4: New file.
76006
76007         Module xstrtol.
76008         * m4/xstrtol.m4: New file.
76009
76010         Module getdate.
76011         * m4/getdate.m4: New file.
76012
76013         Module unlocked-io.
76014         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76015         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76016         * m4/jm-glibc-io.m4n: Remove file.
76017
76018         Module long-options.
76019         * m4/long-options.m4: New file.
76020
76021         Module md5.
76022         * m4/md5.m4: New file.
76023
76024         Module sha.
76025         * m4/sha.m4: New file.
76026
76027         Module getstr.
76028         * m4/getstr.m4: New file.
76029
76030         Module getline.
76031         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76032         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76033         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76034         simply getline. Infoke gl_PREREQ_GETLINE.
76035
76036         Module obstack.
76037         * m4/obstack.m4: New file.
76038
76039         Module hash.
76040         * m4/hash.m4: New file.
76041
76042         Module readtokens.
76043         * m4/readtokens.m4: New file.
76044
76045         Module strverscmp.
76046         * m4/strverscmp.m4: New file.
76047
76048         Module stdbool.
76049         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76050         OSF/1.
76051
76052         Module strtoll.
76053         * m4/strtoll.m4: New file.
76054
76055         Module strtoull.
76056         * m4/strtoull.m4: New file.
76057
76058         Module strtoimax.
76059         * m4/strtoimax.m4: New file.
76060
76061         Module strtoumax.
76062         * m4/strtoumax.m4: New file.
76063
76064         Module xstrtoimax.
76065         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76066         jm_AC_PREREQ_XSTRTOIMAX.
76067         Moved the strtol prerequisites to strtol.m4.
76068         Moved the strtoll prerequisites to strtoll.m4.
76069         Moved the strtoimax prerequisites to strtoimax.m4.
76070
76071         Module xstrtoumax.
76072         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76073         jm_AC_PREREQ_XSTRTOUMAX.
76074         Moved the strtoul prerequisites to strtoul.m4.
76075         Moved the strtoull prerequisites to strtoull.m4.
76076         Moved the strtoumax prerequisites to strtoumax.m4.
76077
76078         Module chown.
76079         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76080         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76081
76082         Module dup2.
76083         * m4/dup2.m4: New file.
76084
76085         Module ftruncate.
76086         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76087         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76088
76089         Module getgroups.
76090         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76091         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76092
76093         Module gettimeofday.
76094         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76095         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76096         gl_PREREQ_GETTIMEOFDAY.
76097
76098         Module mkdir.
76099         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76100         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76101
76102         Module mkstemp.
76103         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76104         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76105         jm_AC_TYPE_UINTMAX_T.
76106         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76107
76108         Module stat.
76109         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76110         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76111
76112         Module lstat.
76113         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76114         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76115
76116         Module timespec.
76117         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76118         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76119         * m4/st_mtim.m4: Indentation.
76120
76121         Module nanosleep.
76122         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76123         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76124         gl_PREREQ_NANOSLEEP.
76125
76126         Module regex.
76127         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76128         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76129         (gl_REGEX): New macro.
76130
76131         Module rename.
76132         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76133         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76134
76135         Module rmdir.
76136         * m4/rmdir.m4: New file.
76137
76138         Module utime.
76139         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76140         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76141         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76142
76143         Module dirname.
76144         * m4/dirname.m4: New file.
76145
76146         Module getopt.
76147         * m4/getopt.m4: New file.
76148
76149         Module unistd-safer.
76150         * m4/unistd-safer.m4: New file.
76151
76152         Module fnmatch.
76153         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76154         declaration.
76155         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76156         (gl_FUNC_FNMATCH_POSIX): New macro.
76157         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76158         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76159         simply fnmatch.
76160
76161         Module exclude.
76162         * m4/exclude.m4: New file.
76163
76164         Module human.
76165         * m4/human.m4: New file.
76166
76167         Module acl.
76168         * m4/acl.m4: Nop.
76169
76170         Module backupfile.
76171         * m4/backupfile.m4: New file.
76172         * m4/d-ino.m4: Indentation.
76173
76174         Module fsusage.
76175         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76176         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76177         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76178
76179         Module dirfd.
76180         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76181         requirements.
76182
76183         Module euidaccess.
76184         * m4/euidaccess.m4: New file.
76185
76186         Module file-type.
76187         * m4/file-type.m4: New file.
76188
76189         Module fileblocks.
76190         * m4/fileblocks.m4: New file.
76191
76192         Module filemode.
76193         * m4/filemode.m4: New file.
76194
76195         Module isdir.
76196         * m4/isdir.m4: New file.
76197
76198         Module lchown.
76199         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76200         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76201
76202         Module makepath.
76203         * m4/makepath.m4: New file.
76204
76205         Module modechange.
76206         * m4/modechange.m4: New file.
76207
76208         Module mountlist.
76209         * m4/mountlist.m4: New file.
76210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76211         Indentation.
76212
76213         Module path-concat.
76214         * m4/path-concat.m4: New file.
76215
76216         Module pathmax.
76217         * m4/pathmax.m4: New file.
76218
76219         Module same.
76220         * m4/same.m4: New file.
76221
76222         Module save-cwd.
76223         * m4/save-cwd.m4: New file.
76224
76225         Module savedir.
76226         * m4/savedir.m4: New file.
76227
76228         Module xgetcwd.
76229         * m4/xgetcwd.m4: New file.
76230         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76231
76232         Module xreadlink.
76233         * m4/xreadlink.m4: New file.
76234
76235         Module safe-read.
76236         * m4/safe-read.m4: New file.
76237
76238         Module safe-write.
76239         * m4/safe-write.m4: New file.
76240
76241         Module closeout.
76242         * m4/closeout.m4: New file.
76243
76244         Module stdio-safer.
76245         * m4/stdio-safer.m4: New file.
76246
76247         Module getpass.
76248         * m4/getpass.m4: New file.
76249
76250         Module getugroups.
76251         * m4/getugroups.m4: New file.
76252
76253         Module group-member.
76254         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76255         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76256
76257         Module idcache.
76258         * m4/idcache.m4: New file.
76259
76260         Module userspec.
76261         * m4/userspec.m4: New file.
76262
76263         Module gettime.
76264         * m4/clock_time.m4: New file.
76265         * m4/gettime.m4: New file.
76266
76267         Module settime.
76268         * m4/settime.m4: New file.
76269
76270         Module posixtm.
76271         * m4/posixtm.m4: New file.
76272
76273         Module gethostname.
76274         * m4/gethostname.m4: New file.
76275
76276         Module canon-host.
76277         * m4/canon-host.m4: New file.
76278
76279         Module gettext.
76280         * m4/codeset.m4: New file, from gettext-0.11.5.
76281         * m4/gettext.m4: New file, from gettext-0.11.5.
76282         * m4/glibc21.m4: New file, from gettext-0.11.5.
76283         * m4/iconv.m4: New file, from gettext-0.11.5.
76284         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76285         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76286         * m4/inttypes.m4: New file, from gettext-0.11.5.
76287         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76288         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76289         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76290         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76291         * m4/lib-link.m4: New file, from gettext-0.11.5.
76292         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76293         * m4/progtest.m4: New file, from gettext-0.11.5.
76294         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76295         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76296         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76297
76298         Module localcharset.
76299         * m4/localcharset.m4: New file.
76300
76301         Module hard-locale.
76302         * m4/hard-locale.m4: New file.
76303
76304         Module mbswidth.
76305         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76306         onceonly macros.
76307         * m4/mbrtowc.m4: Add comment.
76308
76309         Module memcasecmp.
76310         * m4/memcasecmp.m4: New file.
76311
76312         Module memcoll.
76313         * m4/memcoll.m4: New file.
76314
76315         Module unicodeio.
76316         * m4/unicodeio.m4: New file.
76317
76318         Module rpmatch.
76319         * m4/rpmatch.m4: New file.
76320
76321         Module yesno.
76322         * m4/yesno.m4: New file.
76323
76324         Module exitfail.
76325         * m4/exitfail.m4: New file.
76326
76327         Module c-stack.
76328         * m4/c-stack.m4 (gl_C_STACK): New macro.
76329         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76330
76331         Module error.
76332         * m4/error.m4 (gl_ERROR): New macro.
76333         (jm_PREREQ_ERROR): Use onceonly macros.
76334
76335         Module fatal.
76336         * m4/fatal.m4: New file.
76337
76338         Module getloadavg.
76339         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76340         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76341
76342         Module getpagesize.
76343         * m4/getpagesize.m4: New file.
76344
76345         Module getusershell.
76346         * m4/getusershell.m4: New file.
76347
76348         Module physmem.
76349         * m4/physmem.m4: New file.
76350
76351         Module posixver.
76352         * m4/posixver.m4: New file.
76353
76354         Module quotearg.
76355         * m4/quotearg.m4: New file.
76356
76357         Module quote.
76358         * m4/quote.m4: New file.
76359
76360         Module readutmp.
76361         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76362
76363         Module sig2str.
76364         * m4/sig2str.m4: New file.
76365
76366         Other.
76367         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76368         ulonglong.m4.
76369         * m4/intmax_t.m4: New file.
76370         * m4/d-type.m4: Indentation.
76371         * m4/jm-macros.m4: Update.
76372         * m4/prereq.m4 (jm_PREREQ): Update.
76373         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76374         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76375         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76376         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76377         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76378         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76379         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76380         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76381         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76382         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76383         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76384         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76385         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76386         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76387         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76388         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76389         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76390         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76391         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76392
76393 2002-12-24  Bruno Haible  <bruno@clisp.org>
76394
76395         * MODULES.txt: Update according to m4/ changes.
76396
76397         Module gettext.
76398         * config.rpath: New file, from gettext-0.11.5.
76399
76400         * modules/*: New module descriptions.
76401         * gnulib-tool: New file.
76402         * MODULES.html.sh: New file.
76403
76404 2002-12-21  Karl Berry  <karl@gnu.org>
76405
76406         * doc/fdl.texi: update to version 1.2.
76407
76408 2002-12-19  Karl Berry  <karl@gnu.org>
76409
76410         * config/config.guess: update from prep.
76411
76412 2002-12-18  Bruno Haible  <bruno@clisp.org>
76413
76414         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76415         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76416
76417 2002-12-17  Bruno Haible  <bruno@clisp.org>
76418
76419         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76420         stdlib.h, string.h.
76421
76422 2002-12-17  Bruno Haible  <bruno@clisp.org>
76423
76424         * lib/canon-host.c (strdup): Remove unused declaration.
76425
76426         * lib/fsusage.c: Include full_read.h.
76427         (get_fs_usage): Use full_read instead of safe_read.
76428
76429         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76430
76431 2002-12-12  Karl Berry  <karl@gnu.org>
76432
76433         * config/config.guess: update from prep.
76434
76435 2002-12-11  Bruno Haible  <bruno@clisp.org>
76436
76437         * m4/setenv.m4: New file, from gettext-0.11.5.
76438
76439 2002-12-11  Bruno Haible  <bruno@clisp.org>
76440
76441         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76442         not unsetenv().
76443         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76444         modifications:
76445
76446         2002-12-11  Bruno Haible  <bruno@clisp.org>
76447
76448                 * setenv.c (alloca): Fall back to malloc.
76449                 (freea): New macro.
76450                 (setenv): Use freea() to free memory allocated with alloca().
76451
76452         2002-11-13  Bruno Haible  <bruno@clisp.org>
76453
76454                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76455                 function declarations.
76456                 * unsetenv.c (unsetenv): Likewise.
76457
76458         2002-03-04  Bruno Haible  <bruno@clisp.org>
76459
76460                 Portability to AIX 4.3.3.
76461                 * unsetenv.c: New file, extracted from setenv.c.
76462                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76463
76464         2001-12-20  Bruno Haible  <bruno@clisp.org>
76465
76466                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76467                 use malloc instead. For SunOS 4.
76468
76469         2001-12-11  Bruno Haible  <bruno@clisp.org>
76470
76471                 * setenv.c: Declare alloca.
76472                 (compar_fn_t): New typedef.
76473                 (KNOWN_VALUE, STORE_VALUE): Use it.
76474
76475         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76476         setenv.h.
76477
76478 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76479
76480         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76481         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76482         Choose values that are less likely to collide with system fnmatch
76483         options.
76484         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76485         defined (e.g., a pure POSIX system).
76486         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76487         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76488
76489 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76490
76491         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76492         a pain in practice to deal with generated m4 files.  This change
76493         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76494
76495         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76496         and jm-glibc-io.m4, as they are no longer a special case.
76497         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76498         kludge and the auto-generation stuff.  Check only whether the
76499         functions are declared, not whether they exist, since older hosts
76500         that don't declare the functions can't use the optimization anyway.
76501
76502 2002-12-06  Jim Meyering  <jim@meyering.net>
76503
76504         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76505
76506         Merge in changes from libc's misc/error.c, in preparation
76507         for the merge of gnulib's changes back into libc.
76508
76509         * lib/error.c (_): Define only if not already defined.
76510         Move definition to follow all #include directives.
76511         Include unlocked-io.h only if !_LIBC.
76512         [_LIBC]: Include <libio/libioP.h>.
76513         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76514         (fflush): Tweak definition to use INTUSE.
76515         (putc): Define.
76516
76517 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76518
76519         * lib/alloca.c [defined emacs]: Include "lisp.h".
76520         (xalloc_die) [defined emacs]: New macro.
76521         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76522         [! defined emacs]: Include <xalloc.h>.
76523         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76524         (pointer): Typedef to POINTER_TYPE *.
76525         (malloc): Remove decl; we now always use xmalloc.
76526         (alloca): Use old-style definition, since Emacs needs this.
76527         Check for arithmetic overflow when computing combined size.
76528
76529 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76530
76531         Do not generate unlocked-io.h automatically, since it's easier to
76532         maintain it by hand.
76533
76534         * lib/unlocked-io.h: New file, from GNU diffutils,
76535         but with proper copyright notice and attribution.
76536         * lib/gen-uio: Remove.
76537         * lib/Makefile.am: Add copyright notice.
76538         (libfetish_a_SOURCES): Add unlocked-io.h.
76539         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76540         (DISTCLEANFILES, io_functions): Remove macros.
76541         (EXTRA_DIST): Remove gen_uio.
76542         (unlocked-io.h): Remove rule.
76543
76544 2002-12-04  Jim Meyering  <jim@meyering.net>
76545
76546         Reflect the fact that stat.c and lstat.c are no longer generated.
76547         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76548         (DISTCLEANFILES): Likewise.
76549         (EXTRA_DIST): Likewise.
76550         (all_local): Don't depend on stat.c or lstat.c.
76551         (stat.c, lstat.c): Remove rules.
76552         (EXTRA_DIST): Remove xstat.in.
76553
76554         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76555         * lib/stat.c: New file.  Contents mostly from xstat.in.
76556         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76557         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76558
76559         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76560         too.
76561         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76562
76563 2002-12-03  Jim Meyering  <jim@meyering.net>
76564
76565         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76566         but not semantics, to minimize the differences between these two files.
76567         (safe_read): Change comment to mention SAFE_READ_ERROR.
76568
76569         * lib/safe-read.c (IS_EINTR): Define.
76570         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76571
76572 2002-12-02  Jim Meyering  <jim@meyering.net>
76573
76574         * lib/safe-read.c (EINTR): Define.
76575         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76576         (INT_MAX): Provide fallback.
76577         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76578
76579         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76580
76581 2002-12-02  Bruno Haible  <bruno@clisp.org>
76582
76583         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76584         Define, taken from safe-read.c.
76585         (INT_MAX): Provide fallback.
76586         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76587         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76588
76589         * lib/safe-read.c (EINTR): Remove definition.
76590         (safe_read): Don't use EINTR if it is absent.
76591
76592 2002-12-01  Jim Meyering  <jim@meyering.net>
76593
76594         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76595         zero.
76596         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76597
76598 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76599
76600         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76601         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76602         with `if (! (value < limit)) abort ();', for readability.
76603
76604 2002-11-26  Karl Berry  <karl@gnu.org>
76605
76606         * lib/strdup.c: copy from libc again, with jim's ok.
76607         * lib/.cppi-disable: re-add strdup.c
76608
76609 2002-11-25  Karl Berry  <karl@gnu.org>
76610
76611         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76612         instead of "strtol.c".
76613
76614 2002-11-25  Karl Berry  <karl@gnu.org>
76615
76616         * config/install-sh: update from automake for variable quoting, $0 in
76617         error msgs, etc.
76618
76619         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76620         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76621         entry.
76622
76623 2002-11-25  Jim Meyering  <jim@meyering.net>
76624
76625         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76626
76627 2002-11-24  Karl Berry  <karl@gnu.org>
76628
76629         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76630         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76631
76632 2002-11-24  Jim Meyering  <jim@meyering.net>
76633
76634         Update from coreutils:
76635
76636         * lib/mktime.c: Merge in changes from libc.
76637
76638         Avoid a link-time failure on some Linux systems.
76639         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76640         (otherwise).
76641         (__mon_yday): Declare with the STATIC attribute.
76642         (__mktime_internal): Likewise.
76643         Based on a report from Greg Schafer.
76644
76645 2002-11-23  Jim Meyering  <jim@meyering.net>
76646
76647         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76648         Use `unsigned', not `int', as type of index.
76649
76650         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76651
76652         * lib/fsusage.c: Remove unneeded parentheses around operands of
76653         `defined'.
76654
76655 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76656
76657         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76658         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76659         so that we can be included first.
76660         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76661         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76662         No need to include stddef.h or sys/types.h any more.
76663         Surround local include files with "", not "<>".
76664         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76665         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76666         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76667         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76668         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76669         (ISPRINT): Remove; no longer needed now that we assume C89.
76670
76671         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76672         Preserve errno.
76673
76674         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76675         quotearg_char): Use SIZE_MAX rather than
76676         (size_t) -1 when we are talking about "infinity".
76677
76678         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76679
76680 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76681
76682         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76683         hint that one should use `if (! x) abort ();' rather than `assert
76684         (x);', and anyway it's one less thing to worry about configuring.
76685         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76686         hash_rehash, hash_insert): Use abort rather than assert.
76687
76688 2002-11-22  Bruno Haible  <bruno@clisp.org>
76689
76690         * lib/safe-read.h: Assume C89. Add comments.
76691         (safe_read): Change return type to size_t.
76692         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76693         byte counts > SSIZE_MAX correctly.
76694         * lib/safe-write.h: New file.
76695         * lib/safe-write.c: New file.
76696         * lib/full-read.h: New file.
76697         * lib/full-read.c: New file.
76698         * lib/full-write.h: Assume C89. Add comments.
76699         * lib/full-write.c: Include safe-write.h.
76700         (full_write): Rewritten to use safe_write.
76701         Suggested by Jim Meyering and Paul Eggert.
76702
76703 2002-11-21  Jim Meyering  <jim@meyering.net>
76704
76705         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76706
76707         Merge in changes from the coreutils.
76708
76709         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76710         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76711         <stdint.h>.
76712         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76713         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76714         int.  Work more efficiently if X is the same width as uintmax_t.
76715         Do not compare X to -1, to avoid bogus compiler warning.
76716         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76717         Don't assume that f_frsize and f_bsize are the same type.
76718
76719         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76720         warning on FreeBSD.
76721
76722         * lib/makepath.c (make_path): Restore umask *before* creating the final
76723         component.
76724         (make_path): Minor reformatting.
76725
76726         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76727         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76728         HAVE_MALLOC/HAVE_REALLOC.
76729
76730         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76731         dummy ones.  At least on GNU/Linux systems, `auto' means something
76732         else.
76733         From Michael Stone.
76734
76735 2002-11-21  Bruno Haible  <bruno@clisp.org>
76736
76737         Remove case insensitive option matching.
76738         * lib/argmatch.h (argcasematch): Remove declaration.
76739         (ARGCASEMATCH): Remove macro.
76740         (__xargmatch_internal): Remove case_sensitive argument.
76741         (XARGMATCH): Update.
76742         (XARGCASEMATCH): Remove macro.
76743         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76744         case_sensitive argument.
76745         (argcasematch): Remove function.
76746         (__xargmatch_internal): Remove case_sensitive argument.
76747         (main): Use XARGMATCH instead of XARGCASEMATCH.
76748
76749         * lib/xmalloc.c: Change compile-time error message. Add comment about
76750         required autoconf version.
76751
76752 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76753
76754         Merge argmatch cleanups from Bison.  Assume C89.
76755
76756         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76757         Include stdlib.h, for EXIT_FAILURE.
76758         Always include <string.h>, since we assume C89.
76759         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76760         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76761         Include <stddef.h> instead, since it's all we need for size_t.
76762         (PARAMS): Remove.  All uses removed.
76763         (ARRAY_CARDINALITY): Do not bother to #undef.
76764         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76765         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76766         Remove unnecessary parentheses.
76767         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76768         Insert necessary parentheses.
76769         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76770         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76771
76772 2002-11-19  Bruno Haible  <bruno@clisp.org>
76773
76774         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76775         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76776
76777         * lib/mbswidth.h (PARAMS): Remove macro.
76778         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76779         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76780
76781         * lib/gcd.h (PARAMS): Remove macro.
76782         (gcd): Use ANSI C function declarations.
76783         * lib/gcd.c (gcd): Likewise.
76784
76785 2002-11-15  Bruno Haible  <bruno@clisp.org>
76786
76787         * lib/strcspn.c: Include <stddef.h>.
76788         (strcspn): Use ANSI C function declaration. Change return type to
76789         size_t. Use NULL.
76790         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76791         (strpbrk): Use NULL.
76792         * lib/strpbrk.h (PARAMS): Remove macro.
76793         (strpbrk): Use ANSI C function declaration.
76794         * lib/strstr.c: Don't include <sys/types.h>.
76795         * lib/strstr.h (PARAMS): Remove macro.
76796         (strstr): Use ANSI C function declarations.
76797
76798 2002-11-14  Karl Berry  <karl@gnu.org>
76799
76800         * config/mkinstalldirs: `do' on separate line, instead of
76801         `for var; do'.
76802
76803 2002-11-06  Bruno Haible  <bruno@clisp.org>
76804
76805         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76806         * lib/gcd.c (gcd): Likewise.
76807
76808 2002-11-05  Bruno Haible  <bruno@clisp.org>
76809
76810         * lib/gcd.h: New file, from gettext-0.11.5.
76811         * lib/gcd.c: New file, from gettext-0.11.5.
76812
76813 2002-11-05  Bruno Haible  <bruno@clisp.org>
76814
76815         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76816         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76817         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76818         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76819
76820         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76821         <libintl.h>.
76822         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76823         <libintl.h>.
76824
76825         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76826         * lib/human.c: Include gettext.h instead of <libintl.h>.
76827         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76828         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76829         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76830         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76831         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76832         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76833         (textdomain): Remove definition.
76834         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76835
76836         * lib/long-options.c: Remove include of <libintl.h> and definition of
76837         _.
76838         * lib/same.c: Remove include of <libintl.h> and definition of _.
76839
76840 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76841
76842         * lib/config.charset: A few additions for Solaris.
76843
76844 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76845
76846         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76847         * lib/localcharset.c (locale_charset): Declare as extern "C".
76848
76849 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76850
76851         * lib/config.charset: msdos in uk_UA uses CP1125.
76852
76853 2002-11-04  Bruno Haible  <bruno@clisp.org>
76854
76855         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76856         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76857         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76858         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76859         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76860
76861 2002-11-04  Bruno Haible  <bruno@clisp.org>
76862
76863         * lib/localcharset.c (locale_charset): Don't return an empty string.
76864
76865 2002-11-04  Bruno Haible  <bruno@clisp.org>
76866
76867         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76868         aliases.
76869
76870 2002-11-04  Bruno Haible  <bruno@clisp.org>
76871
76872         * lib/config.charset: Update for newest glibc. Add canonical names
76873         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76874
76875 2002-11-04  Bruno Haible  <bruno@clisp.org>
76876
76877         * lib/config.charset: Add support for NetBSD.
76878
76879 2002-11-04  Bruno Haible  <bruno@clisp.org>
76880
76881         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76882
76883 2002-11-01  Bruno Haible  <bruno@clisp.org>
76884
76885         * configure.in: Add AC_CONFIG_AUX_DIR call.
76886         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76887         test/Makefile.
76888         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76889
76890 2002-09-28  Karl Berry  <karl@gnu.org>
76891
76892         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76893         installed automake until the next release, since changes have been
76894         made.
76895
76896 2002-09-25  Karl Berry  <karl@gnu.org>
76897
76898         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76899         * lib/getopt*: copy from libc/posix.
76900         * lib/gettext.h: copy from gettext.
76901         * lib/.cppi-disable: add strdup.c, gettext.h.
76902
76903 2002-09-25  Karl Berry  <karl@gnu.org>
76904
76905         * config/srclist.txt: enable gettext.h check.
76906         * config/config.{guess,sub}: update from prep.
76907         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76908                 from automake 1.6.3.
76909         See srclist*.
76910
76911 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76912
76913         * regex.c (PATFETCH): Remove the translating fetch.
76914         (PATFETCH_RAW): Rename to PATFETCH.
76915         (set_image_of_range): New fun.
76916         (SET_RANGE_TABLE_WORK_AREA): Use it.
76917         (regex_compile): Don't translate the pattern chars so eagerly.
76918         Only do it when inserting an `exactn' bytecode or when handling
76919         a char-range.
76920         (mutually_exclusive_p): Avoid empty statement.
76921
76922 2002-07-06  Jim Meyering  <meyering@lucent.com>
76923
76924         * m4/README: Don't mention Makefile.am.in.
76925         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76926
76927 2002-07-01  Jim Meyering  <meyering@lucent.com>
76928
76929         * lib/c-stack.c: Include sys/time.h.
76930         From Volker Borchert.
76931
76932 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76933
76934         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76935
76936 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76937
76938         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76939         New macro.  Use it uniformly instead of
76940         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76941         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76942         reported by Vin Shelton.
76943
76944 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76945
76946         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76947         Do not assume SA_SIGINFO behavior.
76948         Bug reported by Jim Meyering on NetBSD 1.5.2.
76949
76950 2002-06-22  Jim Meyering  <meyering@lucent.com>
76951
76952         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76954
76955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76956         now that configure.ac uses AC_GNU_SOURCE.
76957         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76958         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76959
76960         Update to latest tools.  Suggestions from Paul Eggert.
76961         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76962         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76963         * m4/fnmatch.m4: Likewise.
76964         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76965         to AC_HEADER_STDBOOL
76966
76967 2002-06-22  Jim Meyering  <meyering@lucent.com>
76968
76969         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76970         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76971
76972 2002-06-22  Jim Meyering  <meyering@lucent.com>
76973
76974         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76975
76976         * lib/exitfail.c, exitfail.h: Likewise.
76977         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76978
76979         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76980         of fnmatch.h.
76981         (EXTRA_DIST): Add fnmatch_loop.c.
76982         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76983
76984         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76985         * lib/fnmatch.c: Update from diffutils-2.8.2.
76986         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76987         * lib/fnmatch.h: Remove file.
76988
76989 2002-06-21  Jim Meyering  <meyering@lucent.com>
76990
76991         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76992         * m4/mbrtowc.m4: Likewise.
76993
76994         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76995         * m4/mbswidth.m4: Reflect name change:
76996         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76997         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76998
76999         * m4/lib-link.m4: Update from gettext-0.11.2.
77000         * m4/gettext.m4: Likewise.
77001
77002         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77003         From Alfred M. Szmidt.
77004
77005 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77006
77007         * lib/file-type.h: Report an error if neither S_ISREG nor
77008         S_IFREG is defined, instead of using a test specific to glibc
77009         2.2.  This should be safe, since POSIX requires S_ISREG and
77010         Unix Version 7 had S_IFREG.  We don't need to check for
77011         <sys/types.h> since we don't use any symbols that it defines.
77012
77013 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77014
77015         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77016         $@-t, so that each temporary file name is unique and valid in the first
77017         8 characters, for operation under DOS.
77018
77019 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77020
77021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77022
77023 2002-06-15  Jim Meyering  <meyering@lucent.com>
77024
77025         Work even with DJGPP 2.03, which lacks support for symlinks.
77026         From Richard Dawe.
77027         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77028         is defined.
77029         * lib/lchown.c (S_ISLNK): Likewise.
77030
77031 2002-06-15  Jim Meyering  <meyering@lucent.com>
77032
77033         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77034         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77035         have been included before this file.
77036
77037 2002-06-14  Jim Meyering  <meyering@lucent.com>
77038
77039         * lib/file-type.h: Use the version from diffutils-2.8.2.
77040         * lib/file-type.c: Likewise.
77041
77042 2002-06-07  Jim Meyering  <meyering@lucent.com>
77043
77044         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77045         They're needed at least for NetBSD 1.5.2.
77046         ($statxfs_includes): Include those same headers.
77047         ($statxfs_includes): Include sys/vfs.h if available.
77048         ($statxfs_includes): Likewise for sys/statvfs.h.
77049         Check for the following members in both structs statfs and statvfs:
77050         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77051
77052 2002-06-01  Jim Meyering  <meyering@lucent.com>
77053
77054         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77055         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77056
77057 2002-05-28  Jim Meyering  <meyering@lucent.com>
77058
77059         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77060         Reported by Volker Borchert.
77061
77062 2002-05-27  Jim Meyering  <meyering@lucent.com>
77063
77064         Fix a problem seen only on nonconforming systems whereby ls.c's
77065         use of localtime, and then of gettimeofday would cause trouble:
77066         the localtime call used to initialize rpl_gettimeofday's save
77067         mechanism would clobber ls's current local time information so
77068         that in any long listing the first file would always be listed
77069         with date 1970-01-01.  Analysis by Volker Borchert.
77070
77071         * lib/gettimeofday.c (localtime): Undefine.
77072         (rpl_localtime): New function.
77073
77074 2002-05-27  Jim Meyering  <meyering@lucent.com>
77075
77076         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77077         localtime.
77078
77079         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77080         use the replacement function; it wouldn't resolve at link time.
77081         Reported by Volker Borchert.
77082
77083 2002-05-22  Jim Meyering  <meyering@lucent.com>
77084
77085         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77086         file-type.h.
77087         * lib/file-type.h: New file.
77088         * lib/file-type.c (file_type): New file/function.  Extracted from
77089         diffutils.
77090
77091 2002-04-30  Jim Meyering  <meyering@lucent.com>
77092
77093         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77094
77095 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77096
77097         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77098
77099 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77100
77101         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77102         Do not check for alloca.h (no longer used) or stdbool.h (was never
77103         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77104
77105 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77106
77107         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77108
77109 2002-04-29  Jim Meyering  <meyering@lucent.com>
77110
77111         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77112         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77113         Use AC_FUNC_STRNLEN here instead.
77114
77115         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77116         With autoconf-2.53a, it's part of AC_PROG_CC.
77117
77118 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77119
77120         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77121         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77122
77123 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77124
77125         * lib/sig2str.h, lib/sig2str.c: New files.
77126         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77127
77128 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77129
77130         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77131         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77132         of 127, since 64 is the largest conceivable number for ancient
77133         nonstandard hosts.
77134         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77135
77136 2002-04-28  Jim Meyering  <meyering@lucent.com>
77137
77138         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77139
77140 2002-04-24  Jim Meyering  <meyering@lucent.com>
77141
77142         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77143         (jm_PREREQ): Use it.
77144
77145         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77146         mach/mach.h fcntl.h.
77147         Check for this function: setlocale.
77148
77149 2002-04-24  Jim Meyering  <meyering@lucent.com>
77150
77151         * lib/gettext.h: New file, from Gettext.
77152         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77153         (libfetish_a_SOURCES): Add gettext.h.
77154
77155 2002-04-16  Jim Meyering  <meyering@lucent.com>
77156
77157         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77158         ut_pid, ut_id, ut_exit.
77159
77160 2002-04-16  Jim Meyering  <meyering@lucent.com>
77161
77162         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77163         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77164         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77165
77166 2002-04-12  Jim Meyering  <meyering@lucent.com>
77167
77168         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77169         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77170         existence of the getmntinfo function.  Needed for Darwin 5.3.
77171
77172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77173         This is necessary at least on Darwin 5.3.
77174
77175         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77176         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77177         strnlen.o in the library, and that makes some versions of ranlib
77178         object.
77179
77180 2002-04-12  Jim Meyering  <meyering@lucent.com>
77181
77182         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77183
77184 2002-04-09  Jim Meyering  <meyering@lucent.com>
77185
77186         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77187         to be more precise.  Rather than saying we're checking whether the
77188         function `works', say what we're testing.
77189         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77190         Reported by Bruno Haible.
77191
77192 2002-03-10  Jim Meyering  <meyering@lucent.com>
77193
77194         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77195         Suggestion from Santiago Vila.
77196
77197 2002-03-08  Jim Meyering  <meyering@lucent.com>
77198
77199         * lib/rename.c: Mention that this wrapper is needed also on
77200         mips-dec-ultrix4.4 systems.
77201
77202 2002-03-02  Jim Meyering  <meyering@lucent.com>
77203
77204         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77205         not HAVE_CLOCK_SETTIME.
77206
77207 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77208
77209         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77210         Check for clock_settime.
77211
77212 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77213
77214         * lib/nanosleep.h: Rename to....
77215         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77216
77217         * lib/gettime.c: New file.
77218         * lib/settime.c: New file.
77219         * lib/stime.c: Remove.
77220
77221         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77222         timespec.h.  Remove nanosleep.h.
77223
77224 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77225
77226         * m4/acl.m4: New file.
77227         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77228         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77229
77230 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77231
77232         * lib/acl.c, lib/acl.h: New files.
77233         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77234
77235 2002-02-24  Jim Meyering  <meyering@lucent.com>
77236
77237         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77238         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77239         cause trouble.  Reported by Nelson Beebe.
77240
77241 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77242
77243         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77244         compilers that don't know that xalloc_die never returns.
77245
77246 2002-02-20  Jim Meyering  <meyering@lucent.com>
77247
77248         * lib/getdate.c: Regenerate using bison-1.33.
77249
77250 2002-02-17  Jim Meyering  <meyering@lucent.com>
77251
77252         * config/config.guess (main): Don't use `head -1'; it's no longer
77253         portable. Use `sed 1q' instead.
77254
77255 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77256
77257         * m4/codeset.m4: Upgrade to gettext-0.11.
77258         * m4/gettext.m4: Upgrade to gettext-0.11.
77259         * m4/glibc21.m4: Upgrade to gettext-0.11.
77260         * m4/iconv.m4: Upgrade to gettext-0.11.
77261         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77262         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77263         * m4/lib-ld.m4: New file, from gettext-0.11.
77264         * m4/lib-link.m4: New file, from gettext-0.11.
77265         * m4/lib-prefix.m4: New file, from gettext-0.11.
77266         * m4/progtest.m4: Upgrade to gettext-0.11.
77267
77268 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77269
77270         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77271         (jm_PREREQ): Use it.
77272
77273 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77274
77275         * lib/posixver.c, lib/posixver.h: New files.
77276         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77277
77278 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77279             Bruno Haible  <bruno@clisp.org>
77280
77281         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77282         (fwrite_success_callback): New declaration.
77283         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77284         print_unicode_char. Call failure callback instead of error.
77285         (fwrite_success_callback): New function.
77286         (exit_failure_callback): New function.
77287         (fallback_failure_callback): New function.
77288         (print_unicode_char): Call unicode_to_mb.
77289
77290 2002-01-26  Jim Meyering  <meyering@lucent.com>
77291
77292         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77293         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77294
77295 2002-01-26  Jim Meyering  <meyering@lucent.com>
77296
77297         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77298
77299 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77300
77301         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77302
77303 2002-01-22  Jim Meyering  <meyering@lucent.com>
77304
77305         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77306         Otherwise, some versions of automake would omit the rule that makes
77307         Makefile from Makefile.in.
77308
77309 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77310
77311         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77312         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77313         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77314         (memcoll): Set errno to zero if there is no error.
77315
77316         * lib/quotearg.c (quotearg_buffer_restyled):
77317         Fix bug with quoting buffers containing NUL when backslashing escapes.
77318         This bug was exposed by the other changes in this patch.
77319         (quotearg_n_options): New arg ARGSIZE.
77320         All callers changed.
77321         (quoting_options_from_style): New function.
77322         (quotearg_n_style): Use it.
77323         (quotearg_n_style_mem): New function.
77324
77325         * lib/quotearg.h (quotearg_n_style_mem): New function.
77326
77327 2002-01-19  Jim Meyering  <meyering@lucent.com>
77328
77329         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77330         Remove useless quotes: DF_PROG="df".
77331         * m4/strnlen.m4: New file.
77332
77333 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77334
77335         * lib/backupfile.c (ISDIGIT): Comment fix.
77336         * lib/getdate.y (ISDIGIT): Likewise.
77337         * lib/posixtm.c (ISDIGIT, year): Likewise.
77338         * lib/strverscmp.c (ISDIGIT): Likewise.
77339         * lib/userspec.c (ISDIGIT): Likewise.
77340
77341 2002-01-16  Jim Meyering  <meyering@lucent.com>
77342
77343         * lib/getdate.y: Add three semicolons, each just before a closing
77344         brace. Bison (as of version 1.31) no longer papers over that mistake.
77345
77346 2002-01-05  Jim Meyering  <meyering@lucent.com>
77347
77348         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77349
77350 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77351
77352         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77353         not silently exit merely because the output buffer happens to
77354         have nothing pending.
77355
77356 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77357
77358         See the big note in ../ChangeLog.
77359         * lib/human.c (suffixes): Prefer K to k for 1024.
77360         (generate_suffix_backwards): New function.
77361         (human_readable_inexact): Use it.
77362         * lib/xstrtol.c (__xstrtol): If there is no number but there
77363         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77364         Accept 'K' as well as 'k'.
77365
77366 2001-12-15  Jim Meyering  <meyering@lucent.com>
77367
77368         * lib/regex.h (__restrict_arr): Update from libc.
77369
77370         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77371         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77372         (STREQ): Define.
77373
77374 2001-12-14  Jim Meyering  <meyering@lucent.com>
77375
77376         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77377         Suggestion from Bruno Haible.
77378
77379 2001-12-10  Jim Meyering  <meyering@lucent.com>
77380
77381         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77382         xrealloc, Instead, include "xalloc.h".
77383         (initbuffer): Don't cast xmalloc return value to char*.
77384         (readline): Reword comment.
77385         Don't cast xrealloc return value to char*
77386         Return NULL, not 0.
77387
77388 2001-12-09  Jim Meyering  <meyering@lucent.com>
77389
77390         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77391         about `signed and unsigned type in conditional expression'.
77392         * lib/posixtm.c (posix_time_parse): Likewise.
77393
77394         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77395
77396         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77397         to avoid a pedantic warning.
77398
77399         * lib/getstr.c: Don't include assert.h.
77400         (getstr): Remove warning-evoking assertions.
77401         Return -1 if offset parameter is out of bounds.
77402         Change the type of a local from int to size_t.
77403
77404         * lib/strftime.c (my_strftime_localtime_r): Include this function
77405         definition in the `#if ! HAVE_TM_GMTOFF' block.
77406
77407         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77408         Include xalloc.h instead.
77409
77410 2001-12-02  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77413         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77414         included.
77415
77416         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77417         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77418
77419 2001-11-30  Akim Demaille  <akim@epita.fr>
77420
77421         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77422         before being defined.
77423
77424 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77425
77426         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77427         First arg is int, not unsigned.
77428         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77429         (SIZE_MAX, UINT_MAX): New macros.
77430         (quotearg_n_options): Abort if N is negative.
77431         Avoid overflow check on hosts where size_t is 64 bits and int
77432         is 32 bits, as overflow is impossible there.
77433         Fix off-by-one typo that caused unnecessary reallocation.
77434
77435 2001-11-27  Jim Meyering  <meyering@lucent.com>
77436
77437         * lib/tempname.c: Merge with version from libc.
77438         * lib/regex.c: Likewise.
77439
77440         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77441         systems for which STDC_HEADERS is 0, it was not included, resulting in
77442         a warning about an integer-to-pointer conversion problem with getenv.
77443         Reported by Volker Borchert.
77444
77445 2001-11-26  Jim Meyering  <meyering@lucent.com>
77446
77447         * lib/gtod.h: Remove file.
77448         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77449         * lib/gettimeofday.c: Don't include gtod.h.
77450         (GTOD_init): Remove function.
77451         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77452         Suggestion from Volker Borchert.
77453
77454 2001-11-23  Jim Meyering  <meyering@lucent.com>
77455
77456         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77457         it.
77458         * lib/hash.c (struct hash_table): Define it here instead.
77459
77460 2001-11-22  Jim Meyering  <meyering@lucent.com>
77461
77462         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77463
77464 2001-11-20  Jim Meyering  <meyering@lucent.com>
77465
77466         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77467         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77468
77469 2001-11-19  Jim Meyering  <meyering@lucent.com>
77470
77471         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77472         directory.  Use "conftestXXXXXX" as the template.
77473         Suggestion from Paul Eggert.
77474
77475         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77476         immediately, so the test doesn't mistakenly hit the max-open-files
77477         limit.
77478
77479 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77480
77481         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77482         (TEMPORARIES): New macro.
77483         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77484         removes an artificial limitation (e.g. HP-UX 10.20, where
77485         TMP_MAX is 17576).
77486
77487 2001-11-18  Jim Meyering  <meyering@lucent.com>
77488
77489         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77490
77491 2001-11-18  Jim Meyering  <meyering@lucent.com>
77492
77493         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77494         on SunOS 4.
77495
77496         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77497         files will be created before anything else.
77498
77499 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77500
77501         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77502         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77503
77504 2001-11-17  Jim Meyering  <meyering@lucent.com>
77505
77506         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77507         Prompted by a report from Bob Proulx.
77508
77509         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77510         Instead, require UTILS_FUNC_MKSTEMP.
77511
77512 2001-11-17  Jim Meyering  <meyering@lucent.com>
77513
77514         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77515         Now, that's done as part of AC_FUNC_STRTOD.
77516
77517 2001-11-17  Jim Meyering  <meyering@lucent.com>
77518
77519         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77520         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77521         rather than group writable.  Patch by Juan F. Codagnone.
77522
77523         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77524         xrealloc, Instead, include "xalloc.h".
77525
77526         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77527         Remove explicit declarations of xmalloc, xrealloc,
77528         and xstrdup.  Instead, include "xalloc.h".
77529
77530         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77531         unlocked-io.h.
77532         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77533         Likewise.
77534         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77535
77536         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77537         Reported by Padraig Brady.
77538
77539         * lib/mkstemp.c: #undef mkstemp.
77540         Include config.h.
77541         (rpl_mkstemp): Rename from mkstemp.
77542         Protoize.
77543
77544 2001-11-16  Jim Meyering  <meyering@lucent.com>
77545
77546         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77547         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77548         determine the amount of total physical memory, use pstat_getstatic.
77549         HPUX-11 doesn't define _SC_PHYS_PAGES.
77550         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77551         If sysconf couldn't be used to determine the amount of available
77552         physical memory, use both pstat_getstatic and pstat_getdynamic.
77553         Based on a patch from Bob Proulx.
77554
77555 2001-11-10  Jim Meyering  <meyering@lucent.com>
77556
77557         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77558         (jm_PREREQ): Use it.
77559
77560 2001-11-09  Jim Meyering  <meyering@lucent.com>
77561
77562         * m4/jm-macros.m4: Require autoconf-2.52f.
77563         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77564         Use these AC_-prefixed names, not the AM_-prefixed ones.
77565
77566         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77567
77568 2001-11-05  Jim Meyering  <meyering@lucent.com>
77569
77570         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77571
77572 2001-11-04  Jim Meyering  <meyering@lucent.com>
77573
77574         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77575         $DEFS.
77576
77577 2001-11-03  Jim Meyering  <meyering@lucent.com>
77578
77579         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77580         of AC_DEFUN.
77581
77582         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77583         know the name of the variable in the macro definition.
77584
77585 2001-11-03  Jim Meyering  <meyering@lucent.com>
77586
77587         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77588         in argmatch_to_argument call.
77589
77590         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77591         argument.
77592
77593         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77594         e.g., a fault due to an attempt to free a NULL pointer.
77595
77596 2001-11-01  Jim Meyering  <meyering@lucent.com>
77597
77598         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77599         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77600
77601 2001-11-01  Jim Meyering  <meyering@lucent.com>
77602
77603         * lib/dirfd.c, lib/dirfd.h: New files.
77604         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77605
77606         * lib/hash.c (hash_print) [TESTING]: Clean up.
77607
77608 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77609
77610         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77611         to avoid a warning if -Wall.
77612
77613 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77614
77615         * README: New file
77616         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77617         (per RMS's instructions, this is now the canonical source)
77618         * lgpl/, gpl/: New directories.
77619
77620 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77621
77622         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77623
77624 2001-10-21  Jim Meyering  <meyering@lucent.com>
77625
77626         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77627         this code would end up calling gettext even in packages built
77628         with --disable-nls.
77629         * lib/getopt.c (_): Likewise.
77630         * lib/regex.c (_): Likewise.
77631
77632 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77633
77634         * m4/error.m4 (jm_PREREQ_ERROR):
77635         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77636         AC_FUNC_STRERROR_R does that.
77637         Check for strerror declaration.
77638
77639         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77640         are supposed to have them these days.
77641         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77642         Merge changes from latest Autoconf CVS.
77643         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77644         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77645         POSIX decided to standardize on the int flavor of strerror_r.
77646
77647 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77648
77649         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77650         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77651         Use strerror_r that is only a macro, even if it is not a function.
77652         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77653         (private_strerror): Use prototypes, not old-style function definition.
77654         (print_errno_message): New function.
77655         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77656         char*-flavored one.
77657         (error_tail, error, error_at_line): Use it.
77658
77659 2001-10-11  Jim Meyering  <meyering@lucent.com>
77660
77661         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77662         and quote_n (1, ... to avoid clobbering a buffer.
77663
77664 2001-10-05  Jim Meyering  <meyering@lucent.com>
77665
77666         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77667         hash-pjw.h.
77668         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77669         * lib/hash-pjw.h: New file.
77670
77671 2001-09-30  Jim Meyering  <meyering@lucent.com>
77672
77673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77674         `struct fsstat' has the `f_fstypename' member.
77675         Use that to define FS_TYPE, which is now used to make
77676         the getfsstat link test tighter.
77677
77678 2001-09-30  Jim Meyering  <meyering@lucent.com>
77679
77680         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77681         Include <sys/ucred.h>, for Apple Darwin.
77682         Include sys/mount.h and sys/fs_types.h only if available.
77683         (FS_TYPE): Define.
77684         (read_filesystem_list): Use FS_TYPE.
77685
77686 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77687
77688         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77689         a boolean context.
77690
77691 2001-09-29  Jim Meyering  <meyering@lucent.com>
77692
77693         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77694         [one-argument getmntent function]): Include stdio.h before mntent.h.
77695         SunOS 4.1.x needs it for the declaration of `FILE'.
77696         Patch by Volker Borchert.
77697
77698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77699         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77700         sys/fs_types.h, and make the link-test for getfsstat guard #include
77701         directives with appropriate #if HAVE_*_H tests so that we can
77702         detect getfsstat on Apple Darwin1.3.7 systems.
77703         Reported by Nelson Beebe.
77704         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77705
77706 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77707
77708         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77709         #defines strtoimax.  Also treat the other strto* functions
77710         like strtoimax.
77711
77712         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77713         Check for strtoul and strtoumax,
77714         as those declarations are made even in the signed case.
77715         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77716         Likewise, for strtol and strtoimax.
77717
77718 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77719
77720         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77721         #defines strtoimax.  Also treat the other strto* functions
77722         like strtoimax.
77723
77724         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77725         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77726         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77727
77728 2001-09-26  Jim Meyering  <meyering@lucent.com>
77729
77730         Most macros in unlocked-io.h had the wrong number of arguments.
77731         * lib/gen-uio: New script.
77732         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77733         * lib/unlocked-io.hin: Remove file.
77734         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77735         rather than trying to embed it here.
77736         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77737         Reported by Padraig Brady.
77738
77739 2001-09-25  Volker Borchert  <bt@teknon.de>
77740
77741         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77742         `result'.
77743
77744 2001-09-24  Jim Meyering  <meyering@lucent.com>
77745
77746         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77747
77748 2001-09-23  Jim Meyering  <meyering@lucent.com>
77749
77750         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77751         instead of the mere test for existence of mntent.h.  The latter
77752         would get a false-positive on AIX 3.4 systems.
77753         In the outer getmntent if-block, don't die if neither of the getmntent
77754         tests succeeds.  Instead, just fall through and continue with the
77755         remaining tests.
77756
77757 2001-09-23  Jim Meyering  <meyering@lucent.com>
77758
77759         * lib/mountlist.c: Remove useless parentheses in #if directives.
77760         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77761         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77762
77763 2001-09-22  Jim Meyering  <meyering@lucent.com>
77764
77765         * m4/gettext.m4: New file.  From gettext.
77766         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77767         * m4/progtest.m4: Likewise
77768         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77769         * m4/glibc21.m4: Likewise.
77770
77771         * m4/libintl.m4: Remove.  No longer used.
77772
77773 2001-09-22  Jim Meyering  <meyering@lucent.com>
77774
77775         * lib/localcharset.c: Update from latest gettext.
77776         * lib/config.charset: Likewise.
77777
77778 2001-09-20  Jim Meyering  <meyering@lucent.com>
77779
77780         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77781         strtoimax.
77782         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77783         strtoumax.
77784
77785 2001-09-20  Jim Meyering  <meyering@lucent.com>
77786
77787         * lib/xstrtol.c (strtoimax): Guard declaration with
77788         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77789         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77790         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77791         (strtoumax): Likewise, for completeness (it wasn't necessary).
77792
77793 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77794
77795         * lib/strtoimax.c (HAVE_LONG_LONG):
77796         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77797         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77798         to work around bug in IBM C compiler.
77799
77800 2001-09-17  Jim Meyering  <meyering@lucent.com>
77801
77802         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77803         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77804         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77805         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77806         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77807         whenever the right hand side need not be expanded by the shell.
77808
77809 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77810
77811         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77812         library.  It's not correct, as some older glibcs are buggy.
77813         fnmatch wasn't fixed until glibc 2.2.
77814
77815         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77816         special shell magic here.
77817
77818 2001-09-16  Jim Meyering  <meyering@lucent.com>
77819
77820         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77821         * m4/jm-macros.m4: Require it.
77822
77823 2001-09-16  Jim Meyering  <meyering@lucent.com>
77824
77825         * lib/mkdir.c: New file.
77826
77827 2001-09-15  Jim Meyering  <meyering@lucent.com>
77828
77829         * m4/jm-macros.m4: Check for help2man.
77830
77831 2001-09-11  Jim Meyering  <meyering@lucent.com>
77832
77833         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77834         The body, by Paul Eggert, was moved here from configure.in.
77835         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77836
77837 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77838
77839         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77840         (jm_PREREQ): Use it.
77841
77842 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77843
77844         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77845         Use ssize_t, not int, to store result of readlink.
77846         Check for ssize_t overflow as well as size_t overflow,
77847         as POSIX says the result of readlink is implementation-defined
77848         when ssize_t overflows.
77849         Remove unnecessary cast to char*.
77850         Use free+malloc instead of realloc, as the storage doesn't need
77851         to be preserved and it's clearer and can be more efficient that way.
77852         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77853         * lib/xreadlink.h (xreadlink): Update prototype.
77854
77855 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77856
77857         * lib/xgetcwd.c: Revert some of the previous change; intead,
77858         fix the HAVE_GETCWD_NULL code to behave more like the
77859         !HAVE_GETCWD_NULL code used to.
77860
77861         Include "xalloc.h".
77862         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77863         invoke xalloc_die.
77864
77865 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77866
77867         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77868         sys/param.h, as pathmax.h includes them.
77869
77870 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77871
77872         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77873         (jm_PREREQ_XGETCWD): New macro.
77874
77875         * m4/getcwd.m4: New file.
77876
77877 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77878
77879         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77880         like the HAVE_GETCWD_NULL code.
77881         Include pathmax.h if not HAVE_GETCWD.
77882         Do not include xalloc.h.
77883         (INITIAL_BUFFER_SIZE): New symbol.
77884         Do not use xmalloc / xrealloc, since the caller is responsible for
77885         handling errors.  Preserve errno around `free' during failure.
77886         Do not overrun buffer when using getwd.
77887
77888 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77889
77890         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77891         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77892         getcwd (NULL, 0).
77893
77894 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77895
77896         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77897         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77898         spotted by Jim Meyering.
77899
77900 2001-09-03  Jim Meyering  <meyering@lucent.com>
77901
77902         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77903         failure.
77904
77905 2001-09-02  Jim Meyering  <meyering@lucent.com>
77906
77907         * lib/error.c: Update from GNU libc.
77908
77909 2001-09-01  Jim Meyering  <meyering@lucent.com>
77910
77911         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77912         Used by df.
77913
77914 2001-09-01  Jim Meyering  <meyering@lucent.com>
77915
77916         * lib/xreadlink.c: New file.
77917         * lib/xreadlink.h: New file.
77918         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77919         xreadlink.h.
77920
77921         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77922         doesn't conflict with sparc Solaris 7's definition in
77923         /usr/include/sys/int_types.h.
77924
77925         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77926         files.
77927         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77928         and strncasecmp as r-values.  Unixware didn't have declarations.
77929
77930 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77931
77932         * lib/xstrtol.h: Add copyright notice.
77933         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77934         LONGINT_INVALID_SUFFIX_CHAR.
77935
77936 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77937
77938         * lib/xstrtol.c (strtoimax): New decl.
77939
77940 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77941
77942         * lib/xgetcwd.c: Don't include pathmax.h.
77943         Include stdlib.h and unistd.h if available.
77944         Include xalloc.h.
77945         (xmalloc, xstrdup, free): Remove decls.
77946         (xgetcwd): Don't assume sizes fit in unsigned.
77947         Check for overflow when computing sizes.
77948         Simplify reallocation code.
77949
77950 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77951
77952         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77953         a directory's st_size can have an arbitrary value, so the old
77954         usage could waste an arbitrary amount of memory.  All uses
77955         changed.
77956         * lib/savedir.h: Update prototype.
77957
77958 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77959
77960         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77961
77962         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77963         old strtoimax.c.
77964
77965         Also, make the following further changes to make this file's
77966         configuration more similar to that of strtol.c:
77967         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77968         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77969         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77970         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77971         changed to signed values.
77972
77973         And make the following changes as well:
77974         Fix copyright notice, as 1999 was missing.
77975         (verify): New macro.
77976         (strtoimax): Check sizes at compile-time, not run-time.
77977         Prefer strtol to strtoll if both work.
77978         (main): Remove; it was not that useful and was a pain to maintain.
77979
77980         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77981
77982 2001-08-31  Jim Meyering  <meyering@lucent.com>
77983
77984         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77985         Use an initial, malloc'd, buffer of length 128 rather than
77986         a statically allocated one of length 1024.
77987
77988 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77989
77990         Simplify code, partly by assuming autoconf 2.52 semantics.
77991
77992         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77993
77994         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77995         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77996         All uses removed.
77997         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77998         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77999         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78000         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78001         jm_AC_HEADER_INTTYPES_H.
78002         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78003
78004         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78005
78006         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78007         Quote first arg of AC_DEFUN.
78008         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78009         since they are needed to parse the include file even if we need
78010         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78011         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78012         but with opposite signedness.
78013
78014 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78015
78016         Merge 'exclude' changes from tar 1.13.22.
78017         This fixes one or two unlikely storage allocation overflow bugs,
78018         but doesn't change user-visible behavior otherwise.
78019
78020 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78021
78022         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78023         (jm_PREREQ_EXCLUDE): New macro.
78024
78025 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78026
78027         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78028         tm to be declared.
78029
78030 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78031
78032         * lib/hash.c: Remove '2001' from copyright notice.
78033
78034 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78035
78036         * lib/full-write.h: New file.
78037         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78038         * lib/full-write.c: Correct credits, as cccp.c no longer
78039         exists and anyway it was so heavily changed from the old cccp
78040         code as to be unrecognizable.  Include full-write.h.
78041         (full_write): Return size_t, with short writes meaning failure.
78042         All callers changed.  This fixes a bug with large buffers
78043         on 64-bit hosts.
78044         * lib/utime.c: Include full-write.h.
78045
78046 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78047
78048         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78049         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78050         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78051         Include if available.
78052         (<xalloc.h>): Include
78053         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78054         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78055         collide with FNM macros.
78056         (struct patopts): New struct.
78057         (struct exclude): Use it, as exclude patterns now come with options.
78058         (new_exclude): Support above changes.
78059         (new_exclude, add_exclude_file):
78060         Initial size must now be a power of two to simplify overflow checking.
78061         (free_exclude, fnmatch_no_wildcards): New function.
78062         (excluded_filename): No longer requires options arg, as the options
78063         are determined by add_exclude.  Now returns bool, not int.
78064         (excluded_filename, add_exclude):
78065         Add support for the fancy new exclusion options.
78066         (add_exclude, add_exclude_file): Now takes int options arg.
78067         Check for arithmetic overflow when computing sizes.
78068         (add_exclude_file): xrealloc might modify errno, so don't
78069         realloc until after errno might be used.
78070
78071         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78072         New macros.
78073         (free_exclude): New decl.
78074         (add_exclude, add_exclude_file): Now takes int options arg.
78075         (excluded_filename): No longer requires options arg, as the options
78076         are determined by add_exclude.  Now returns bool, not int.
78077
78078 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78079
78080         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78081
78082 2001-08-27  Jim Meyering  <meyering@lucent.com>
78083
78084         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78085
78086         * lib/version-etc.c (N_): Remove definition.
78087         Revert most of last change.
78088         Instead, simply don't mark the `Copyright...' string for translation.
78089         Based on advice from Paul Eggert.
78090
78091         * lib/strtoxmax.c: Tweak comment.
78092
78093 2001-08-26  Jim Meyering  <meyering@lucent.com>
78094
78095         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78096
78097         * m4/xstrtoimax.m4: New file.
78098         * m4/xstrtoumax.m4: Add comments explaining why we
78099         AC_REPLACE_FUNCS(strtol).
78100
78101 2001-08-26  Jim Meyering  <meyering@lucent.com>
78102
78103         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78104         of copyright with `%s' so translators don't get an untranslated
78105         message in 2002.
78106         (COPYRIGHT_YEAR): Define.
78107         (version_etc): Use fprintf rather than fputs.
78108         Suggestion from Ulrich Drepper.
78109
78110         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78111
78112         * lib/strtoll.c: New file, from GNU libc.
78113         * lib/xstrtoimax.c: New file.
78114
78115         * lib/xstrtol.h: Add xstrtoimax.
78116         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78117         * lib/strtoimax.c: New file.  Likewise, but first define
78118         STRTOUXMAX_SIGNED.
78119
78120         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78121         ...
78122         * lib/strtoxmax.c: ... then renamed to this.
78123
78124 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78125
78126         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78127         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78128         (jm_AC_TYPE_INTMAX_T): New macro.
78129         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78130
78131         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78132
78133         * m4/longlong.m4: Renamed from ulonglong.m4.
78134         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78135         * m4/uintmax_t.m4: Removed.
78136
78137 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78138
78139         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78140         Port to Solaris 8, where 'sed' requires a space after the 'r'
78141         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78142         Redirect output to $tmp just once.
78143
78144 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78145
78146         * lib/addext.c (<errno.h>): Include.
78147         (errno): Declare if not defined.
78148         (addext): Work correctly when pathconf returns -1 and leaves
78149         errno alone because there is no limit.  Also, work even if
78150         pathconf returns a value greater than SIZE_MAX.
78151
78152 2001-08-12  Jim Meyering  <meyering@lucent.com>
78153
78154         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78155         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78156         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78157         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78158         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78159         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78160         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78161         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78162         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78163         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78164         utime.m4, utimes.m4, xstrtoumax.m4:
78165         Quote the first argument in each use of AC_DEFUN.
78166
78167 2001-08-12  Jim Meyering  <meyering@lucent.com>
78168
78169         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78170         Simply `return getcwd (NULL, 0);'.
78171         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78172         Use 1300 as initial value for length, not PATH_MAX.
78173
78174         * lib/pathmax.h: Clean up cpp syntax.
78175
78176 2001-08-12  Jim Meyering  <meyering@lucent.com>
78177
78178         * lib/gettimeofday.c: New file.
78179         * lib/gtod.h: New file.
78180         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78181
78182 2001-08-05  Jim Meyering  <meyering@lucent.com>
78183
78184         * m4/jm-macros.m4: Require autoconf-2.52.
78185
78186 2001-08-04  Jim Meyering  <meyering@lucent.com>
78187
78188         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78189         stmt, to get in sync with glibc.
78190
78191 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78192
78193         The following changes are from gettext 0.10.39 as maintained by
78194         Bruno Haible.
78195
78196         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78197         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78198         with inverted sense.  All uses changed.
78199
78200         * lib/mbswidth.c: Don't include <limits.h>.
78201         Include <stdlib.h> and <string.h> unconditionally.
78202         (iswcntrl, mbsinit, ISCNTRL): New macros.
78203         (mbsnwidth): Use K&R style function declarations.
78204         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78205         can optimize it when MB_CUR_MAX == 1.
78206         The width of control characters is zero, not 1.
78207
78208 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78209
78210         The following changes are from gettext 0.10.39 as maintained by
78211         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78212
78213         * m4/codeset.m4: Upgrade to serial AM1.
78214         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78215         all uses changed.  Quote first arg of AC_DEFUN.
78216         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78217
78218         * m4/iconv.m4: Upgrade to serial AM2.
78219         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78220         Add --with-libconv-prefix.
78221         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78222         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78223         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78224         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78225         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78226
78227         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78228         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78229         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78230         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78231         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78232         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78233         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78234         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78235         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78236
78237         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78238         string.h any more.
78239
78240         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78241         not the default value.
78242
78243         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78244         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78245         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78246         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78247         Also check for iswcntrl, used for wcwidth fallback.
78248         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78249         to Autoconf 2.13.
78250
78251 2001-08-03  Jim Meyering  <meyering@lucent.com>
78252
78253         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78254         as it was in the original.  Reported by Paul Eggert.
78255
78256 2001-07-16  Jim Meyering  <meyering@lucent.com>
78257
78258         * m4/gettimeofday.m4: New file.
78259         Prompted by a report from Bernhard Baehr.
78260
78261 2001-07-15  Jim Meyering  <meyering@lucent.com>
78262
78263         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78264         stuff. Now it's in ../Makefile.cfg.
78265
78266 2001-07-15  Jim Meyering  <meyering@lucent.com>
78267
78268         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78269         (BUILT_SOURCES): Add unlocked-io.h.
78270         (io_functions): Define.
78271         (unlocked-io.h): New rule.
78272         (DISTCLEANFILES): Add unlocked-io.h.
78273         (all-local): Depend on unlocked-io.h, to ensure it is created.
78274
78275         * lib/unlocked-io.hin: New file
78276
78277         * lib/regex.c: Update from glibc.
78278
78279 2001-07-05  Jim Meyering  <meyering@lucent.com>
78280
78281         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78282         recommendation.
78283         (libfetish_a_SOURCES): Put all .h files here instead.
78284         Remove a thus-exposed (better checks in automake) duplicate and
78285         two unnecessary .h files.
78286
78287 2001-07-04  Jim Meyering  <meyering@lucent.com>
78288
78289         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78290         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78291         distcheck failure.
78292
78293 2001-07-02  Jim Meyering  <meyering@lucent.com>
78294
78295         The following changes were prompted by suggestions from Bruno Haible.
78296
78297         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78298         is now generated.
78299         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78300         definition of EXTRA_DIST.
78301         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78302         ensure that the generated file is created/updated whenever the list
78303         of $(unlocked_functions) is changed.
78304         (jm-glibc-io.m4): New rule.
78305         (unlocked-io.h): New rule -- currently unused.
78306
78307 2001-06-24  Jim Meyering  <meyering@lucent.com>
78308
78309         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78310         unmatched right bracket, rather than kludging it with an extra,
78311         falsely-matching quote in a comment.  Patch by Akim Demaille.
78312
78313 2001-06-11  Jim Meyering  <meyering@lucent.com>
78314
78315         * lib/regex.c: Update from GNU libc.
78316
78317 2001-05-27  Jim Meyering  <meyering@lucent.com>
78318
78319         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78320         Check for ut_type in struct utmp.
78321
78322 2001-05-27  Jim Meyering  <meyering@lucent.com>
78323
78324         * lib/readutmp.h (UT_TYPE): Define.
78325
78326 2001-05-24  Jim Meyering  <meyering@lucent.com>
78327
78328         * lib/argmatch.c: Include "quote.h".
78329         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78330         quote function.  Reported by Göran Uddeborg.
78331
78332 2001-05-22  Jim Meyering  <meyering@lucent.com>
78333
78334         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78335         now that we use the package-supplied version unconditionally.
78336         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78337
78338 2001-05-21  Jim Meyering  <meyering@lucent.com>
78339
78340         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78341         shell syntax errors.
78342
78343 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78344
78345         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78346
78347 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78348
78349         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78350         Don't bother to check library strftime, since
78351         we'll be using our own my_strftime function anyway.
78352         Define my_strftime instead of strftime.
78353
78354 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78355
78356         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78357         which is not yet declared.
78358
78359 2001-05-15  Jim Meyering  <meyering@lucent.com>
78360
78361         * m4/regex.m4: Use proper quoting so brackets appear in the test
78362         program.
78363         Reported by, and with help from, Bruno Haible.
78364
78365 2001-05-13  Jim Meyering  <meyering@lucent.com>
78366
78367         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78368         undefined.
78369
78370 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78371
78372         dirname code cleanup.  base_name now behaves more compatibly
78373         with POSIX basename when given file names that have trailing
78374         slashes, and similarly for dir_name.  Add new primitives
78375         base_len and dir_len.  Put the directory-name-related decls
78376         into dirname.h.
78377
78378         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78379         * lib/backupfile.c (base_name): Likewise.
78380         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78381         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78382         * lib/makepath.c (strip_trailing_slashes): Likewise.
78383         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78384         ISSLASH): Likewise.
78385         * lib/rename.c (strip_trailing_slashes): Likewise.
78386         * lib/same.c (base_name): Likewise.
78387         * lib/stripslash.c (ISSLASH): Likewise.
78388
78389         * lib/addext.c: Include <dirname.h> after size_t is defined.
78390         * lib/backupfile.c: Likewise.
78391
78392         * lib/addext.c (addext): Use base_len to trim redundant
78393         trailing slashes instead of doing it ourselves.
78394         But do not trim the last slash if it is not redundant.
78395
78396         * lib/backupfile.c (find_backup_file_name,
78397         max_backup_version): Use base_len instead of rolling it ourselves.
78398         Handle the case of "" and (on DOS) "C:" correctly.
78399
78400         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78401         needed. Include <string.h>, <dirname.h>.
78402         (base_name): Allow file names ending in slashes, other than names
78403         that are all slashes.  In this case, return the basename followed
78404         by the slashes.  This is more general, and can be used in places
78405         where the original base_name purposely had an assertion failure.
78406         (base_len): New function.
78407
78408         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78409         Do not include <assert.h>; no longer needed.
78410         Include xalloc.h.
78411         (memrchr): Remove decl.
78412         (dir_name_r): Remove.
78413         (dir_len): Renamed from dirlen.  All callers changed.
78414         Rewrite in terms of base_name, for simplicity and consistency.
78415         (dir_name): Never return NULL.  All callers changed.
78416         Do not include <stdlib.h> in test program; no longer needed.
78417         return 0; is fine for test program.
78418
78419         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78420         New macros.
78421         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78422
78423         * lib/path-concat.c (path_concat): Use base_len to compute
78424         base length, not strlen; this means we cannot rely on memcpy
78425         to null-terminate.
78426
78427         * lib/same.c (STREQ): Remove.
78428         (same_name): Handle the case where the basename ends in trailing '/'.
78429
78430         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78431         a slash was stripped.  Do not strip the last slash after a
78432         file system prefix.
78433
78434 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78435
78436         * lib/Makefile.am (libfetish_a_SOURCES):
78437         Add strftime.c, since we now compile it on all hosts.
78438
78439         * lib/strftime.c (my_strftime):
78440         Define to nstrftime if emacs, but only if my_strftime is not defined.
78441         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78442         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78443         Add one more extra argument: a nanoseconds value.
78444         All uses changed.
78445         (ns): New macro.
78446         (my_strftime function): Add %N format.
78447         (emacs_strftimeu): Renamed from emacs_strftime,
78448         with extra ut argument.
78449
78450 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78451
78452         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78453
78454 2001-04-21  Jim Meyering  <meyering@lucent.com>
78455
78456         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78457         doesn't interfere.
78458
78459 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78460
78461         * m4/ftruncate.m4: Check for chsize.
78462         Link with ftruncate.o unconditionally if ftruncate is missing.
78463         This was required when cross-compiling to i586-mingw32msvc.
78464
78465 2001-04-08  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78468         recomputed; that's necessary when the offset spans a DST transition.
78469         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78470
78471 2001-04-02  Jim Meyering  <meyering@lucent.com>
78472
78473         * lib/regex.h, regex.c: Update from GNU libc.
78474
78475 2001-03-24  Jim Meyering  <meyering@lucent.com>
78476
78477         * m4/jm-macros.m4: Require autoconf-2.49d.
78478
78479 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78480
78481         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78482
78483 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78484
78485         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78486
78487 2001-03-17  Jim Meyering  <meyering@lucent.com>
78488
78489         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78490         now that the version in autoconf is equivalent.
78491         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78492
78493         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78494         Suggestion from Akim Demaille.
78495
78496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78497         (jm_PREREQ_TEMPNAME): New function.
78498
78499 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78500
78501         * lib/tempname.c (uint64_t): Define to uintmax_t if
78502         not defined, and if UINT64_MAX is not defined.
78503         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78504         Reported by John David Anglin.
78505
78506 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78507
78508         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78509         resolve alias if codeset is empty.
78510         * lib/config.charset (BeOS): Use wildcard syntax.
78511
78512 2001-03-13  Jim Meyering  <meyering@lucent.com>
78513
78514         * lib/path-concat.c (path_concat)
78515         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78516         concatenating e.g., `C:' and `foo'.
78517         From Bruno Haible.
78518
78519 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78520
78521         * lib/localcharset.c (locale_charset): Don't use
78522         setlocale(LC_CTYPE,NULL). Don't return NULL.
78523         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78524
78525 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78526
78527         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78528         support for DOS/DJGPP.
78529
78530 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78531
78532         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78533         lacks mkstemp.  Compile our own tempname.c if we compile our own
78534         mkstemp.c, as mkstemp relies on tempname.
78535
78536 2001-03-01  Jim Meyering  <meyering@lucent.com>
78537
78538         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78539         AH_VERBATIM really does output its argument verbatim.
78540
78541 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78542
78543         * lib/Makefile.am (libfetish_a_SOURCES):
78544         Add dup-safer.c, fopen-safer.c.
78545         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78546
78547         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78548         * lib/unistd-safer.h: New files.
78549
78550 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78551
78552         The mkstemp replacement is taken from glibc 2.2.2, with some
78553         portability fixes for use outside glibc, as follows:
78554
78555         * lib/tempname.c (struct_stat64): New macro.
78556         (direxists, __gen_tempname): Use it.
78557         This avoids a portability problem with Solaris 8.
78558
78559         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78560         (<stddef.h>, <stdint.h>, <string.h>):
78561         Include only if STDC_HEADERS || _LIBC.
78562         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78563         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78564         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78565         (__set_errno): Define this macro if <errno.h> doesn't.
78566         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78567         Define these macros if <stdio.h> doesn't.
78568         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78569         Define these macros if <sys/stat.h>
78570         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78571         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78572         __xstat64): Define if not _LIBC.
78573         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78574         (__gen_tempname): Invoke gettimeofday only if
78575         HAVE_GETTIMEOFDAY || _LIBC;
78576         otherwise, fall back on plain "time".
78577         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78578
78579         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78580
78581         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78582
78583 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78584
78585         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78586
78587 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78588
78589         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78590         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78591         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78592         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78593
78594 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78595
78596         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78597         Remove workaround macros for hosts that have mbrtowc but not
78598         mbstate_t, as we now insist on proper declarations for both
78599         before using mbrtowc.
78600
78601 2001-02-17  Jim Meyering  <meyering@lucent.com>
78602
78603         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78604         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78605         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78606         UnixWare 7.1.1.
78607
78608         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78609         rather than AC_CACHE_VAL.
78610
78611 2001-02-17  Jim Meyering  <meyering@lucent.com>
78612
78613         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78614         around included file name.
78615
78616         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78617
78618         * lib/strftime.c: Update from GNU libc (the only changes were to
78619         comments).
78620
78621 2001-02-17  Jim Meyering  <meyering@lucent.com>
78622
78623         * lib/regex.c: Update from libc.
78624
78625 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78626
78627         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78628         clash.
78629
78630 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78631
78632         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78633         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78634         Reported by Mark Hounschell via Paul Eggert.
78635
78636 2001-02-07  Jim Meyering  <meyering@lucent.com>
78637
78638         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78639
78640 2001-02-05  Jim Meyering  <meyering@lucent.com>
78641
78642         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78643         it includes the patch required for `large file' support with at least
78644         HP-UX's 10.20 /bin/cc.
78645
78646 2001-02-03  Jim Meyering  <meyering@lucent.com>
78647
78648         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78649         AS_IF, now that it works once again (mysteriously).
78650         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78651
78652 2001-01-30  Jim Meyering  <meyering@lucent.com>
78653
78654         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78655         * m4/chown.m4: Rename conftestchown to conftest.chown.
78656         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78657         s/conftestdir2/conftest.d2/.
78658         * m4/utimes.m4: s/conftestdata/conftest.data/
78659         Inspired by Pavel Roskin's change in autoconf.
78660
78661 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78662
78663         * lib/config.charset: Update for FreeBSD 4.2.
78664
78665 2001-01-27  Jim Meyering  <meyering@lucent.com>
78666
78667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78668         a use of AS_IF.
78669         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78670
78671 2001-01-26  Jim Meyering  <meyering@lucent.com>
78672
78673         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78674         quotearg.c includes it.
78675
78676 2001-01-26  Jim Meyering  <meyering@lucent.com>
78677
78678         * lib/quotearg.c: Include stddef.h.
78679         * lib/quote.c: Include stddef.h.
78680         Reported by Axel Kittenberger.
78681
78682         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78683         line in double quotes so that it evokes a better diagnostic.
78684         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78685         Reported by Axel Kittenberger.
78686
78687 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78688
78689         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78690         as if it was a `charset'.
78691
78692 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78693
78694         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78695         has const.
78696
78697 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78698
78699         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78700         to avoid a warning.  Add back 'const' to inptr.
78701
78702 2001-01-20  Jim Meyering  <meyering@lucent.com>
78703
78704         Be sure that headers are checked before used in code compiled
78705         for the type checks.
78706         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78707         In place of that, invoke jm_CHECK_ALL_TYPES.
78708         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78709         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78710         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78711         The check for ssize_t was mistakenly run before the test for unistd.h.
78712
78713         The configure-time check for stdbool.h was missing.
78714         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78715         (jm_PREREQ_HASH): New function.
78716
78717 2001-01-17  Jim Meyering  <meyering@lucent.com>
78718
78719         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78720         for autoconf-2.49c.
78721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78722
78723 2001-01-16  Jim Meyering  <meyering@lucent.com>
78724
78725         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78726         From Bruno Haible.
78727
78728 2001-01-14  Jim Meyering  <meyering@lucent.com>
78729
78730         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78731         foo and bar.  Create conftestdir/ in the script, not in the C code.
78732         Remove directories in the script, not in the C code.
78733         Remove conftestdir{,2} before trying to create the directory.
78734         Make the entire configure script fail if the mkdir fails.
78735
78736 2001-01-14  Jim Meyering  <meyering@lucent.com>
78737
78738         * lib/rename.c: New file.  From Volker Borchert.
78739         Include stdlib.h, string.h or strings.h, and xalloc.h.
78740         Use strip_trailing_slashes rather than open-coding it.
78741
78742 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78743
78744         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78745
78746 2001-01-03  Jim Meyering  <meyering@lucent.com>
78747
78748         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78749         of local `inptr' to avoid warning with some system declarations of
78750         iconv.
78751
78752 2001-01-02  Volker Borchert  <bt@teknon.de>
78753
78754         * m4/rename.m4: New file.
78755         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78756
78757 2001-01-01  Jim Meyering  <meyering@lucent.com>
78758
78759         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78760         even on systems with utmpx.h.  It's necessary for the declaration of
78761         utmp's ut_user member.  Reported by Andreas Jaeger.
78762
78763         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78764         available. They are required for the declarations of getgrgid and
78765         getpwuid resp.
78766         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78767         Reported by Andreas Jaeger.
78768
78769 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78770
78771         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78772         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78773         so `make install' also works in VPATH builds.
78774
78775 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78776
78777         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78778         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78779         can be used in subdirectories.
78780
78781 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78782
78783         * lib/modechange.c: Do not assume that mode_t uses the
78784         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78785         the other-execute bit of FOO even if S_IXOTH != 1.
78786
78787         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78788         WOTH, XOTH, ALLM): New macros.
78789         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78790          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78791         Use them.
78792         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78793         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78794         (mode_compile):
78795         No need to use uintmax_t; unsigned long is long enough.
78796         Don't bother to get suffix since we don't use it.
78797
78798 2000-12-26  Jim Meyering  <meyering@lucent.com>
78799
78800         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78801         better with autoheader.
78802
78803 2000-12-24  Jim Meyering  <meyering@lucent.com>
78804
78805         * lib/hash.c (is_prime): Return explicit boolean values.
78806         (hash_get_first): Return NULL to appease Irix5.6's 89.
78807         Reported by Nelson Beebe.
78808
78809 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78810
78811         * lib/localcharset.c (locale_charset): Add support for Win32.
78812
78813 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78814
78815         * lib/physmem.h, lib/physmem.c: New files.
78816
78817         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78818         (noinst_HEADERS): Add physmem.h.
78819
78820         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78821         't' for compatibility with Solaris 8 sort.
78822
78823 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78824
78825         * lib/config.charset: Add support for BeOS.
78826
78827 2000-12-17  Jim Meyering  <meyering@lucent.com>
78828
78829         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78830         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78831
78832 2000-12-16  Jim Meyering  <meyering@lucent.com>
78833
78834         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78835         N and M) would have treated it like `chown N:N FILE'.
78836
78837         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78838
78839 2000-12-16  Jim Meyering  <meyering@lucent.com>
78840
78841         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78842         SHELLS_FILE to a file name that's useful on djgpp systems.
78843         Include stdlib.h.
78844         (ADDITIONAL_DEFAULT_SHELLS): Define.
78845         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78846         Based mostly on a patch from Prashant TR.
78847
78848 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78849
78850         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78851         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78852         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78853
78854 2000-12-08  Andreas Schwab  <schwab@suse.de>
78855
78856         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78857         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78858
78859 2000-12-07  Jim Meyering  <meyering@lucent.com>
78860
78861         * lib/stripslash.c (ISSLASH): Define.
78862         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78863         `/'.
78864         From Prashant TR.
78865
78866         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78867         (dir_name_r): Declare this function as static.
78868         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78869         manifest itself on a name containing a mix of slashes and
78870         backslashes.
78871         Make this function work with names starting with a DOS-style
78872         drive letter and colon prefix.
78873         (dir_name): Append `.' if necessary.
78874         Based mostly on patches from Prashant TR and Eli Zaretskii.
78875
78876         * lib/dirname.h (dir_name_r): Remove prototype.
78877
78878 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78879
78880         * m4/off_t-format.m4: Remove this file.
78881         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78882
78883 2000-12-06  Jim Meyering  <meyering@lucent.com>
78884
78885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78886         replacement strtoull, we may well need the replacement strtoul, too.
78887         Check for declarations of strtoul and strtoull.
78888         Check for strtol.  Mainly as a cue to cause automake to include
78889         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78890         Check for limits.h -- strtol.c needs it.
78891
78892 2000-12-05  Jim Meyering  <meyering@lucent.com>
78893
78894         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78895
78896 2000-12-04  Jim Meyering  <meyering@lucent.com>
78897
78898         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78899         Also include memory.h, stdlib.h, unistd.h if appropriate.
78900         Reported by Andreas Jaeger (conflicting declaration of malloc).
78901
78902 2000-12-02  Jim Meyering  <meyering@lucent.com>
78903
78904         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78905         * m4/jm-macros.m4 (jm_MACROS): require it.
78906
78907 2000-12-02  Jim Meyering  <meyering@lucent.com>
78908
78909         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78910
78911 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78912
78913         * lib/memrchr.c: Include <config.h> before any system include file.
78914
78915 2000-11-30  Jim Meyering  <meyering@lucent.com>
78916
78917         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78918
78919 2000-11-30  Jim Meyering  <meyering@lucent.com>
78920
78921         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78922
78923 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78924
78925         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78926
78927 2000-11-26  Jim Meyering  <meyering@lucent.com>
78928
78929         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78930
78931 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78932
78933         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78934         size of (size_t) -1; it's not portable.
78935
78936 2000-11-17  Jim Meyering  <meyering@lucent.com>
78937
78938         * lib/strstr.c: Update from GNU libc.
78939
78940 2000-11-17  Akim Demaille  <akim@epita.fr>
78941
78942         * lib/obstack.h: Formatting changes.
78943         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78944         prevent type checking.
78945         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78946         cast the value to (void *): assigning a `foo *' to a `void *'
78947         variable is valid.
78948         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78949
78950 2000-11-16  Jim Meyering  <meyering@lucent.com>
78951
78952         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78953
78954 2000-11-11  Jim Meyering  <meyering@lucent.com>
78955
78956         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78957
78958 2000-11-10  Jim Meyering  <meyering@lucent.com>
78959
78960         * lib/obstack.h: Update from GNU libc.
78961         * lib/obstack.c: Likewise.
78962
78963 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78964
78965         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78966
78967 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78968
78969         * lib/getusershell.c (setusershell): Use rewind rather than
78970         fseek/fseeko, to avoid configuration hassles with fseeko.
78971         Don't bother opening SHELLS_FILE if shellstream is NULL;
78972         it's not necessary.
78973
78974 2000-11-05  Jim Meyering  <meyering@lucent.com>
78975
78976         * lib/makepath.h (make_dir): Declare.
78977         * lib/makepath.c (make_dir): Remove `static' attribute.
78978         Tweak a comment.
78979
78980 2000-11-04  Jim Meyering  <meyering@lucent.com>
78981
78982         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78983
78984 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78985
78986         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78987         last one in a bucket, advance to the next bucket.
78988
78989 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78990
78991         * lib/fnmatch.c: Do not comment out all the code if we are using
78992         the GNU C library, because in some cases we are replacing buggy
78993         code in the GNU C library itself.
78994
78995 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78996
78997         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78998         (regex_compile): Catch bogus \(\1\).
78999
79000 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79001
79002         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79003         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79004         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79005
79006 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79007
79008         * lib/error.h, getline.h, modechange.h:
79009         Remove "2000" from Copyright line, as the file hasn't been
79010         changed this year other than in the copyright notice.
79011
79012         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79013         was changed this year.
79014
79015 2000-10-29  Jim Meyering  <meyering@lucent.com>
79016
79017         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79018         renaming.
79019         * m4/ls-mntd-fs.m4: Likewise
79020
79021 2000-10-29  Jim Meyering  <meyering@lucent.com>
79022
79023         * lib/xstat.in: Fix grammar in comment.
79024
79025 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79026
79027         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79028         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79029         doesn't define __restrict_arr.
79030
79031 2000-10-28  Jim Meyering  <meyering@lucent.com>
79032
79033         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79034         (jm_PREREQ_MEMCHR): New function.
79035
79036 2000-10-28  Jim Meyering  <meyering@lucent.com>
79037
79038         * lib/memchr.c: Update from libc.
79039         Adjust for portability:
79040         [HAVE_STDLIB_H]: Include stdlib.h.
79041         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79042         Undef __memchr, too.
79043         [!weak_alias]: Define __memchr to memchr.
79044
79045         * lib/regex.c: Update from libc.
79046         * lib/regex.h: Likewise.
79047         * lib/getopt1.c: Likewise.
79048         * lib/memcmp.c: Likewise.
79049
79050         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79051         Avoid using fseek, when possible -- it's broken by design.
79052         Patch by Ulrich Drepper.
79053
79054 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79055
79056         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79057         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79058         Giving in to popular pressure to shut up the compiler with casts.
79059
79060 2000-10-26  Jim Meyering  <meyering@lucent.com>
79061
79062         * lib/strftime.c: Update from libc.
79063
79064 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79065
79066         * regex.c: More `unsigned char' -> `re_char' changes.
79067         Also change several `int' into `re_wchar_t'.
79068         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79069         (PUSH_FAILURE_POINTER): Don't cast any more.
79070         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79071         We want GCC to complain, since this piece of code makes
79072         re_match non-reentrant, which *should* be fixed.
79073         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79074         (EXTEND_BUFFER): Use RETALLOC.
79075         (SET_LIST_BIT): Don't cast.
79076         (re_wchar_t): New type.
79077         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79078         that those two functions will always properly return.
79079         (IMMEDIATE_QUIT_CHECK): Cast to void.
79080         (analyse_first): Use recursion rather than an explicit stack.
79081         (re_compile_fastmap): Can't fail anymore.
79082         (re_search_2): Don't check re_compile_fastmap for failure.
79083         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79084         Now also sets the new value (passed in a new argument).
79085         (re_match_2_internal): Use it.
79086         Also, use a new var `reg' of type size_t when looping through regs
79087         rather than reuse the inappropriate `mcnt'.
79088
79089 2000-10-25  Jim Meyering  <meyering@lucent.com>
79090
79091         * lib/obstack.c: Update from libc.
79092
79093 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79094
79095         * regex.c (regex_compile): Change the way of handling a range from
79096         a char less than 256 to a char not less than 256.
79097
79098 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79099
79100         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79101         NT-Emacs only.
79102         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79103         so that re_search functions only quit when callers expect them to.
79104
79105 2000-10-23  Jim Meyering  <meyering@lucent.com>
79106
79107         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79108         wrong.  That set_locale call must not have any side effects.
79109         From Paul Eggert.
79110
79111 2000-10-22  Jim Meyering  <meyering@lucent.com>
79112
79113         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79114         [CYCLIC]: Remove now-unused definition.
79115
79116         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79117         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79118         Suggestion from Ulrich Drepper.
79119
79120 2000-10-21  Jim Meyering  <meyering@lucent.com>
79121
79122         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79123         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79125
79126 2000-10-21  Jim Meyering  <meyering@lucent.com>
79127
79128         * lib/dirname.c (memrchr): Declare if necessary.
79129         (dir_name): Remove the restriction that there be no
79130         trailing slashes.  Now, this code skips past them, effectively
79131         ignoring them.
79132         [TEST_DIRNAME] (main): New unit tests.
79133
79134         * lib/memrchr.c: New file from GNU libc.
79135         Undef __memrchr, too.
79136         [!weak_alias]: Define __memrchr to memrchr.
79137         Guard weak_alias use with `#ifdef weak_alias'.
79138
79139 2000-10-21  Jim Meyering  <meyering@lucent.com>
79140
79141         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79142         (dir_name): Use dir_name_r.
79143         * lib/dirname.h (dir_name_r): Declare it.
79144
79145 2000-10-17  Jim Meyering  <meyering@lucent.com>
79146
79147         * lib/quote.h (PARAMS): Define and use.
79148         Reported by Akim Demaille.
79149
79150         * lib/getopt.c: Update from libc.
79151
79152 2000-10-16  Jim Meyering  <meyering@lucent.com>
79153
79154         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79155         setlocale.
79156         From Jan Fedak.
79157
79158 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79159
79160         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79161
79162 2000-09-25  Jim Meyering  <meyering@lucent.com>
79163
79164         * lib/md5.h (rol): Define (from GnuPG).
79165
79166         * lib/sha.c: Give credit (GnuPG) where due.
79167         (M): Use rol rather than open-coding it.
79168         Add a FIXME comment.
79169
79170 2000-09-21  Jim Meyering  <meyering@lucent.com>
79171
79172         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79173         Reported by Michael Stone.
79174
79175 2000-09-20  Jim Meyering  <meyering@lucent.com>
79176
79177         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79178         (noinst_HEADERS): Add sha.h.
79179         Based on code from Scott G. Miller and from GnuPG.
79180
79181 2000-09-18  Jim Meyering  <meyering@lucent.com>
79182
79183         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79184         LIBS. Otherwise, everyone ends up linking with -lelf for some
79185         configurations.
79186         Reported by Mike Stone.
79187
79188 2000-09-15  Jim Meyering  <meyering@lucent.com>
79189
79190         * lib/regex.c: Update from libc.
79191
79192 2000-09-10  Jim Meyering  <meyering@lucent.com>
79193
79194         * lib/getopt.c (_getopt_internal): Update from glibc.
79195
79196 2000-09-09  Jim Meyering  <meyering@lucent.com>
79197
79198         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79199         think it should be used as a general replacement for isascii.
79200         * lib/fnmatch.c: Likewise.
79201         * lib/mbswidth.c: Likewise
79202         * lib/regex.c: Likewise.
79203
79204         Don't use atoi.
79205         * lib/userspec.c: Include sys/param.h and limits.h.
79206         Include xstrtol.h.
79207         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79208         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79209         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79210         UID, GID.  Check range.
79211
79212 2000-09-06  Jim Meyering  <meyering@lucent.com>
79213
79214         * lib/getopt.c (_getopt_internal): Update from glibc.
79215
79216 2000-08-30  Jim Meyering  <meyering@lucent.com>
79217
79218         * lib/strftime.c: Merge in changes from GNU libc.
79219
79220 2000-08-26  Jim Meyering  <meyering@lucent.com>
79221
79222         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79223         * m4/fpending.m4: New file.
79224
79225 2000-08-26  Jim Meyering  <meyering@lucent.com>
79226
79227         * lib/closeout.c: Include "__fpending.h".
79228         (close_stdout_status): Return right away if there's nothing to flush.
79229
79230         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79231         * lib/__fpending.c: New file.
79232         * lib/__fpending.h: New file.
79233
79234 2000-08-20  Jim Meyering  <meyering@lucent.com>
79235
79236         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79237         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79238         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79239
79240 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79241
79242         Improve fileutils installation on systems where running
79243         programs (like install) can't be unlinked.
79244         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79245         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79246
79247 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79248
79249         Standardize on "memory exhausted" instead of "Memory exhausted"
79250         or "virtual memory exhausted".
79251         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79252         "virtual memory exhausted".
79253         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79254         our own message.
79255         * lib/userspec.c (parse_user_spec): Likewise.
79256         * lib/bumpalloc.h: comment fix
79257         * lib/same.c, userspec.c: Include xalloc.h.
79258
79259         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79260         not char *const and pointing to a constant array.
79261         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79262         (xrealloc): Comment fix.
79263
79264         * lib/userspec.c (parse_user_spec):
79265         Don't translate a message until just before returning,
79266         to avoid unnecessary translation.
79267
79268 2000-08-07  Jim Meyering  <meyering@lucent.com>
79269
79270         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79271         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79272         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79273         getgroups.c, gethostname.c, getopt.h, group-member.c,
79274         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79275         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79276         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79277         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79278         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79279         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79280         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79281         yesno.c: Back out Copyright date changes for each file with no change
79282         this year.  This eases coordination with other programs using the same
79283         source code modules.  From Paul Eggert.
79284
79285 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79286
79287         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79288         not char, for compatibility with glibc 2.1.3 strftime.c.
79289
79290 2000-08-03  Greg McGary  <greg@mcgary.org>
79291
79292         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79293         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79294         (EXTEND_BUFFER): Use them.
79295
79296 2000-08-01  Jim Meyering  <meyering@lucent.com>
79297
79298         * lib/dirname.c (ISSLASH): Define.
79299         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79300         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79301         both `\' and `/' may be use as path separators.
79302         Based on a patch from Prashant TR.
79303
79304 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79305
79306         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79307         slot vector a constant, since it might get modified.
79308
79309 2000-07-31  Jim Meyering  <meyering@lucent.com>
79310
79311         * lib/xmalloc.c: Use `virtual memory exhausted', not
79312         `Memory exhausted'.
79313         * lib/obstack.c (print_and_abort): Likewise.
79314
79315 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79316
79317         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79318         buffer, so that the caller can always quote one small
79319         component of a "memory exhausted" message in slot 0.
79320         From a suggestion by Jim Meyering.
79321
79322 2000-07-30  Jim Meyering  <meyering@lucent.com>
79323
79324         * lib/makepath.c (make_path): Quote the other instance, too.
79325
79326         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79327         (STATIC_BUF_SIZE): Define.
79328         (quotearg_n_options): Use only statically allocated storage when
79329         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79330         than STATIC_BUF_SIZE.
79331
79332 2000-07-29  Jim Meyering  <meyering@lucent.com>
79333
79334         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79335         * lib/dirname.c (dir_name): Likewise.
79336
79337         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79338         `/'.
79339
79340         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79341         (dir_name): Assert that there are no trailing slashes.
79342
79343 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79344
79345         * lib/mbswidth.h (mbswidth): Add a flags argument.
79346         (mbswidth): New declaration.
79347         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79348         * lib/mbswidth.c (mbswidth): Add a flags argument.
79349         (mbsnwidth): New function.
79350
79351 2000-07-24  Jim Meyering  <meyering@lucent.com>
79352
79353         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79354
79355 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79356
79357         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79358
79359 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79360
79361         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79362         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79363         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79364         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79365         invoke multibyte primitives.
79366
79367 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79368
79369         * lib/quotearg.c:
79370         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79371         so that mbstate_t is always defined.
79372
79373         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79374         be 1 in at least one GCC installation, and this configuration
79375         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79376         performance on hosts that have mbrtowc but have only unibyte
79377         locales, but I assume these hosts are rare.
79378
79379 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79380
79381         * lib/mbswidth.c (_XOPEN_SOURCE):
79382         Don't define; this causes problems on Solaris 7.
79383         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79384
79385 2000-07-23  Jim Meyering  <meyering@lucent.com>
79386
79387         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79388         too: getgrgid, getpwuid, getuid.
79389
79390 2000-07-23  Jim Meyering  <meyering@lucent.com>
79391
79392         * lib/basename.c (base_name): Add an assertion.
79393
79394 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79395
79396         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79397         shadow its mbsinit function.
79398
79399 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79400
79401         * lib/mbswidth.h: New file.
79402         * lib/mbswidth.c: New file.
79403         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79404         (noinst_HEADERS): Add mbswidth.h.
79405
79406 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79407
79408         * lib/config.charset: Add support for FreeBSD. Improve support for
79409         HP-UX and IRIX 6.
79410
79411 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79412
79413         * m4/mbswidth.m4: New file.
79414         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79415
79416 2000-07-15  Jim Meyering  <meyering@lucent.com>
79417
79418         * lib/makepath.c: Include quote.h.
79419         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79420         corresponding argument in a `quote (...)' call.
79421         Give better diagnostics.
79422
79423         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79424         (noinst_HEADERS): Add quote.h.
79425
79426         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79427         from tar's src/misc.c.
79428         * lib/quote.h: New file.  Prototypes for same.
79429
79430 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79431
79432         From a suggestion by Bruno Haible.
79433         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79434         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79435         to decide whether to define the BeOS workaround macro;
79436         this adjusts to the change to AC_MBSTATE_T.
79437
79438 2000-07-14  Jim Meyering  <meyering@lucent.com>
79439
79440         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79441         jm_AC_TYPE_UINTMAX_T.
79442
79443 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79444
79445         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79446
79447         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79448         quotearg_buffer_restyled): Add support for
79449         clocale_quoting_style.  Undo previous change to
79450         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79451         and "{RIGHT QUOTATION MARK}" msgids.
79452
79453 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79454
79455         From a suggestion by Bruno Haible.
79456         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79457         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79458         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79459         and mbstate_t, to a single-part test that simply defines mbstate_t.
79460         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79461         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79462
79463 2000-07-10  Jim Meyering  <meyering@lucent.com>
79464
79465         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79466
79467         * m4/gnu-source.m4: Output to confdefs.h directly.
79468         Suggestion from Akim Demaille.
79469
79470 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79471
79472         The old behavior of quoting `like this' doesn't look good with
79473         newer, ISO-style fonts.  See:
79474         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79475
79476         Instead, quote "like this" by default.  Let the translator
79477         tailor the locale-specific quoting behavior by providing
79478         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79479
79480         * lib/quotearg.c (N_): New macro.
79481         (gettext_default): New function.
79482         (quotearg_buffer_restyled): Use
79483         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79484         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79485
79486 2000-07-09  Jim Meyering  <meyering@lucent.com>
79487
79488         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79489         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79490
79491         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79493
79494 2000-07-09  Jim Meyering  <meyering@lucent.com>
79495
79496         * lib/Most files: Update copyright dates to include 2000.
79497
79498 2000-07-08  Jim Meyering  <meyering@lucent.com>
79499
79500         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79501         if not defined.
79502         (xgethostname): Remove now-unnecessary #ifdef.
79503         Move declaration of `err' into loop where it's used.
79504
79505 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79506         and Bruno Haible  <haible@clisp.cons.org>
79507
79508         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79509         only if the test for an object-type mbstate_t fails.  This
79510         prevents us from mistakenly reporting that mbstate_t is a
79511         system object type after we "#define mbstate_t int" to work
79512         around its lack.
79513
79514 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79515         and Bruno Haible  <haible@clisp.cons.org>
79516
79517         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79518
79519 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79520
79521         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79522         to strerror_r.
79523         Include <ctype.h> for use of isalpha.
79524
79525 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79526
79527         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79528         by allocating a larger buffer. Test the gethostname return value for
79529         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79530         returns an error and ENAMETOOLONG isn't defined.
79531
79532 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79533
79534         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79535         dimension.
79536
79537 2000-07-04  Jim Meyering  <meyering@lucent.com>
79538
79539         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79540         of the deprecated AC_CHECKING.
79541
79542 2000-07-04  Jim Meyering  <meyering@lucent.com>
79543
79544         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79545         Reported by Bruno Haible.
79546
79547 2000-07-04  Jim Meyering  <meyering@lucent.com>
79548
79549         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79550         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79551         lacks mbrtowc.
79552
79553 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79554
79555         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79556         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79557
79558 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79559         and Bruno Haible  <haible@clisp.cons.org>
79560
79561         * lib/quotearg.c (mbrtowc):
79562         Assign to *pwc, and return 1 only if result is nonzero.
79563         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79564
79565 2000-07-03  Jim Meyering  <meyering@lucent.com>
79566
79567         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79568
79569 2000-07-03  Jim Meyering  <meyering@lucent.com>
79570
79571         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79572         This is necessary to get a definition of e.g., UTMP_FILE on
79573         HP-UX 10.20.
79574         From Bob Proulx.
79575
79576 2000-07-02  Jim Meyering  <meyering@lucent.com>
79577
79578         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79579
79580         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79581         AC_LIBOBJ(function_name).
79582         * m4/chown.m4: Likewise.
79583         * m4/fnmatch.m4: Likewise.
79584         * m4/ftruncate.m4: Likewise.
79585         * m4/getgroups.m4: Likewise.
79586         * m4/getline.m4: Likewise.
79587         * m4/group-member.m4: Likewise.
79588         * m4/jm-macros.m4: Likewise.
79589         * m4/lstat.m4: Likewise.
79590         * m4/malloc.m4: Likewise.
79591         * m4/memcmp.m4: Likewise.
79592         * m4/nanosleep.m4: Likewise.
79593         * m4/putenv.m4: Likewise.
79594         * m4/realloc.m4: Likewise.
79595         * m4/regex.m4: Likewise.
79596         * m4/stat.m4: Likewise.
79597         * m4/strftime.m4: Likewise.
79598
79599 2000-07-02  Jim Meyering  <meyering@lucent.com>
79600
79601         * lib/quotearg.c (mbstate_t): Don't define here.
79602
79603 2000-07-02  Jim Meyering  <meyering@lucent.com>
79604
79605         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79606
79607 2000-07-01  Jim Meyering  <meyering@lucent.com>
79608
79609         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79610
79611 2000-07-01  Jim Meyering  <meyering@lucent.com>
79612
79613         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79614         problem.
79615
79616 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79617
79618         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79619         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79620
79621 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79622
79623         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79624         per change in ../m4/ls-mntd-fs.m4.
79625         (read_filesystem_list): Ignore symbolic links.
79626
79627 2000-06-29  Jim Meyering  <meyering@lucent.com>
79628
79629         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79630         for declaration of strcmp.
79631
79632         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79633
79634         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79635         Avoid warning by casting result to `char *' to remove `const'.
79636
79637 2000-06-28  Jim Meyering  <meyering@lucent.com>
79638
79639         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79640         included by quotearg.c, for which we perform this test.  From
79641         Bruno Haible.
79642
79643 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79644
79645         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79646         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79647         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79648
79649 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79650
79651         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79652
79653 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79654
79655         savedir now sets errno on failure and invokes xmalloc to get memory.
79656         Fix a couple of other minor bugs while we're at it.
79657
79658         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79659         (NAMLEN): Remove macro.
79660         (malloc, realloc): Remove decls.
79661         (stpcpy): Likewise.
79662         ("xalloc.h"): Include.
79663         (NAME_SIZE_DEFAULT): New macro.
79664         (savedir): Use xmalloc / xrealloc to allocate memory.
79665         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79666         Skip "" directory entries.
79667         Use strlen to calculate directory entry length, since the old method
79668         is rarely used these days and isn't worth supporting.
79669         Don't use a pointer after freeing it.
79670         Check for integer overflow when calculating allocation size.
79671         Use memcpy to copy entries, instead of stpcpy.
79672         Set errno properly when returning NULL.
79673         Check for readdir error.
79674
79675 2000-06-26  Jim Meyering  <meyering@lucent.com>
79676
79677         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79678
79679 2000-06-25  Jim Meyering  <meyering@lucent.com>
79680
79681         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79682         Linux header bug when _XOPEN_SOURCE is defined to 500.
79683
79684 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79685
79686         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79687         deficiency.
79688
79689 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79690
79691         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79692         Include xalloc.h.
79693         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79694
79695 2000-06-24  Jim Meyering  <meyering@lucent.com>
79696
79697         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79698         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79699         for which strerror does return char*, but which lacks a conveniently
79700         accessible declaration of the function.  If the compile-test says
79701         strerror_r doesn't work, then resort to a `run'-test that works on
79702         BeOS and segfaults on DEC Unix.
79703
79704 2000-06-24  Jim Meyering  <meyering@lucent.com>
79705
79706         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79707
79708 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79709
79710         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79711         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79712
79713 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79714
79715         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79716         (mbrtowc, mbstate_t): Define substitutes if
79717         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79718         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79719         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79720
79721 2000-06-23  Jim Meyering  <meyering@lucent.com>
79722
79723         * m4/afs.m4: Add missing AC_MSG_RESULT.
79724         Reported by Bruno Haible.
79725
79726         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79727         Suggestion from Bruno Haible.
79728
79729 2000-06-23  Jim Meyering  <meyering@lucent.com>
79730
79731         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79732
79733 2000-06-21  Jim Meyering  <meyering@lucent.com>
79734
79735         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79736
79737 2000-06-21  Jim Meyering  <meyering@lucent.com>
79738
79739         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79740         (noinst_HEADERS): Add getstr.h.
79741
79742         * lib/getline.c (getstr): Move into a separate file.
79743         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79744         the following changes: new parameter, delim2; both delim[12]
79745         parameters have type `int', not `char'.  The latter would lose
79746         with 8-bit delimiters.
79747         * lib/getstr.h: New file.
79748
79749 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79750
79751         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79752         than 1024, return a memory chunk of least possible size, instead
79753         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79754         Use free/xmalloc instead of xrealloc to avoid copying for very long
79755         paths.
79756
79757 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79758
79759         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79760         the empty string.
79761
79762 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79763
79764         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79765         address, not strdup.  Include <stdlib.h> and don't declare free().
79766
79767 2000-06-19  Jim Meyering  <meyering@lucent.com>
79768
79769         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79770
79771 2000-06-18  Jim Meyering  <meyering@lucent.com>
79772
79773         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79774
79775         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79776         `checking whether...' message to be consistent with that of the
79777         lstat test.
79778
79779 2000-06-18  Jim Meyering  <meyering@lucent.com>
79780
79781         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79782         Besides, these days every porting target provides a mkdir function.
79783
79784         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79785         needed. (this snippet comes from src/system.h).
79786
79787 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79788
79789         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79790
79791 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79792
79793         * lib/human.c (adjust_value): New function.
79794         (human_readable_inexact): Apply rounding style even when
79795         printing approximate values.
79796
79797 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79798
79799         * lib/human.c (human_readable_inexact): Allow an input block
79800         size that is not a multiple of the output block size, and vice versa.
79801         Reported by Piergiorgio Sartor.
79802
79803 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79804
79805         * lib/getdate.y (get_date): Apply relative times after time
79806         zone indicator, not before.  Reported by Todd A. Jacobs.
79807
79808 2000-06-13  Jim Meyering  <meyering@lucent.com>
79809
79810         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79811
79812         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79813
79814 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79815
79816         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79817
79818 2000-06-12  Jim Meyering  <meyering@lucent.com>
79819
79820         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79821         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79822         optional argument.
79823         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79824         the optional argument, `lib'.
79825
79826 2000-06-08  Jim Meyering  <meyering@lucent.com>
79827
79828         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79829
79830 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79831
79832         Rewrite largefile configuration so that we don't need to run
79833         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79834         AC_CANONICAL_HOST in configure.in -- jmm]
79835
79836         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79837         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79838         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79839         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79840         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79841         All uses changed.
79842         Instead of inspecting the output of getconf, try to compile the
79843         test program without and with the macro definition.
79844         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79845         for getconf.  Instead, check for the needed flags by compiling
79846         test programs.
79847
79848 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79849
79850         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79851
79852 2000-06-04  Jim Meyering  <meyering@lucent.com>
79853
79854         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79855         SunOS 4.1.4 for which gid_t is an unsigned type.
79856
79857 2000-06-03  Jim Meyering  <meyering@lucent.com>
79858
79859         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79860         now that autoconf requires that.
79861
79862         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79863         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79864         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79865
79866 2000-06-03  Jim Meyering  <meyering@lucent.com>
79867
79868         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79869
79870 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79871
79872         * m4/glibc21.m4: New file.
79873         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79874
79875 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79876
79877         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79878         newer, don't install charset.alias.
79879         * lib/config.charset: Change the Linux/glibc rules so they become empty
79880         on glibc-2.1 or newer.
79881
79882 2000-06-02  Jim Meyering  <meyering@lucent.com>
79883
79884         * lib/mountlist.c: Back out last change.  Instead, do this...
79885         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79886         me_dummy member using the same `ignore'-testing code.
79887         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79888         fs_type strings.
79889         From Mark D. Roth.
79890
79891 2000-05-29  Jim Meyering  <meyering@lucent.com>
79892
79893         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79894         mounts with the `ignore' attribute.  Based on a patch from
79895         Mark D. Roth.
79896
79897 2000-05-28  Jim Meyering  <meyering@lucent.com>
79898
79899         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79900         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79901         * m4/stat.m4: Likewise.
79902         * m4/lstat.m4: Likewise.
79903         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79904
79905         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79906         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79907
79908 2000-05-26  Jim Meyering  <meyering@lucent.com>
79909
79910         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79911
79912 2000-05-24  Jim Meyering  <meyering@lucent.com>
79913
79914         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79915         autoconf requires that.
79916         * m4/lib-check.m4: Likewise.
79917         * m4/jm-macros.m4: Likewise.
79918         * m4/strftime.m4: Likewise.
79919
79920         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79921         AC_CHECK_DECLS, now that autoconf requires that.
79922
79923 2000-05-22  Jim Meyering  <meyering@lucent.com>
79924
79925         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79926         * m4/lstat.m4: Likewise.
79927
79928 2000-05-22  Jim Meyering  <meyering@lucent.com>
79929
79930         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79931
79932 2000-05-20  Jim Meyering  <meyering@lucent.com>
79933
79934         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79935         (jm_PREREQ): Use it.
79936
79937 2000-05-18  Jim Meyering  <meyering@lucent.com>
79938
79939         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79940         back, too, since it may have been modified by allocate_entry.
79941         (hash_delete): Rewrite to use neither the assignment operator
79942         nor the comma operator in an if-expression.
79943
79944 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79945
79946         * lib/closeout.c:
79947         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79948         Remove; no longer needed.
79949         "quotearg.h": Add include.
79950         (file_name): Do not bother to explicitly initialize to NULL; it's less
79951         efficient on some hosts.
79952         (close_stdout_status): Remove test as to whether stdout was already
79953         closed; it breaks for the case "echo x | sort >&-".
79954         Quote file name colons.
79955         Do not assume that _("write error") lacks format strings.
79956
79957 2000-05-15  Jim Meyering  <meyering@lucent.com>
79958
79959         * lib/version-etc.c (version_etc_copyright): Update the copyright
79960         string used in all --version output.
79961
79962 2000-05-14  Jim Meyering  <meyering@lucent.com>
79963
79964         * lib/closeout.c (close_stdout_set_file_name): New function.
79965         (close_stdout_status): Use new file-scoped global.
79966         Return right away if fstat says the stdout file descriptor is invalid.
79967         * lib/closeout.h (close_stdout_set_file_name): Declare.
79968
79969 2000-05-10  Jim Meyering  <meyering@lucent.com>
79970
79971         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79972         (close_stdout_set_status): New function.
79973         * lib/closeout.h (close_stdout_set_status): Declare.
79974
79975 2000-05-09  Jim Meyering  <meyering@lucent.com>
79976
79977         * m4/gettext.m4: Rename this...
79978         * m4/libintl.m4: ...to this.
79979
79980 2000-05-08  Jim Meyering  <meyering@lucent.com>
79981
79982         * lib/long-options.c: Don't include closeout.h.
79983         (parse_long_options): Don't call close_stdout for --version.
79984
79985 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79986
79987         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79988         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79989         2.1.3 bug.  This avoids a clash when files like regex.c define
79990         _GNU_SOURCE.
79991
79992 2000-05-06  Jim Meyering  <meyering@lucent.com>
79993
79994         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79995         (AC_REPLACE_FUNCS): Add strnlen.
79996
79997         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79998         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79999
80000         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80001         AC_SEARCH_LIBS call for nanosleep.
80002         (LIB_NANOSLEEP): Set and AC_SUBST.
80003
80004 2000-05-06  Jim Meyering  <meyering@lucent.com>
80005
80006         * lib/strnlen.c: Undefine __strnlen and strnlen.
80007         [!weak_alias]: Define __strnlen to strnlen.
80008
80009         * lib/atexit.c: New file, from libiberty.
80010
80011 2000-05-06  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/closeout.c (close_stdout_status): Also check for errors on the
80014         stderr stream.
80015
80016 2000-05-05  Jim Meyering  <meyering@lucent.com>
80017
80018         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80019         AC_SEARCH_LIBS call for clock_gettime.
80020         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80021
80022         * m4/search-libs.m4: Update from autoconf.
80023
80024         su doesn't work on Solaris 2.6.
80025         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80026         <shadow.h>.  Reported by Dragos Harabor.
80027
80028 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80029
80030         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80031         memcpy instead of xmalloc, xrealloc, path_concat.
80032         (locale_charset): Treat empty environment variables as absent.
80033         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80034
80035 2000-05-04  Jim Meyering  <meyering@lucent.com>
80036
80037         * lib/getopt.c: Update from glibc.
80038         * lib/obstack.c: Likewise.
80039         * lib/obstack.h: Likewise.
80040         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80041         file
80042
80043         * lib/regex.h: Likewise.
80044         * lib/strndup.c: Likewise.
80045         * lib/strnlen.c: New file, from glibc.
80046
80047 2000-05-03  Jim Meyering  <meyering@lucent.com>
80048
80049         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80050
80051 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80052
80053         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80054         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80055         compile-time test, rather than inspecting host and OS, to
80056         decide whether to define _LARGEFILE_SOURCE.
80057
80058 2000-05-01  Jim Meyering  <meyering@lucent.com>
80059
80060         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80061
80062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80063         Based on a patch from Bruno Haible.
80064
80065 2000-05-01  Jim Meyering  <meyering@lucent.com>
80066
80067         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80068
80069 2000-04-29  Jim Meyering  <meyering@lucent.com>
80070
80071         * lib/path-concat.c: Declare strdup only if it's not defined.
80072         * lib/canon-host.c: Likewise.
80073
80074 2000-04-28  Jim Meyering  <meyering@lucent.com>
80075
80076         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80077         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80078         is included first, then limits.h is included by locale.h by libintl.h.
80079         From John David Anglin.
80080
80081 2000-04-25  Jim Meyering  <meyering@lucent.com>
80082
80083         * lib/makepath.c (S_IRWXUGO): Define.
80084         (make_path): Always perform explicit chmod if MODE specifies any
80085         of the `special' permission bits.  Prompted by a bug report against
80086         install from Mate Wierdl and Joost van Baal.
80087
80088 2000-04-18  Jim Meyering  <meyering@lucent.com>
80089
80090         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80091         (jm_PREREQ): Use it.
80092
80093 2000-04-18  Jim Meyering  <meyering@lucent.com>
80094
80095         * lib/README: New file.
80096
80097         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80098         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80099
80100 2000-04-17  Jim Meyering  <meyering@lucent.com>
80101
80102         Get it right :-)
80103         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80104         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80105         Suggestion from Akim Demaille.
80106
80107 2000-04-17  Jim Meyering  <meyering@lucent.com>
80108
80109         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80110         the definition of it to rpl_strftime also defined-away the system's
80111         declaration.
80112
80113 2000-04-15  Jim Meyering  <meyering@lucent.com>
80114
80115         Use `C' to denote so-called `contiguous' files, the same way
80116         that tar does.
80117         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80118         (ftypelet): Use S_ISCTG.
80119         From Michael Deutschmann.
80120
80121 2000-04-14  Jim Meyering  <meyering@lucent.com>
80122
80123         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80124         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80125         clobbered.
80126
80127 2000-04-14  Jim Meyering  <meyering@lucent.com>
80128
80129         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80130
80131 2000-04-13  Jim Meyering  <meyering@lucent.com>
80132
80133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80134         AH_VERBATIM to insert required #ifndef into config.h.in.
80135         Suggestion from Akim Demaille.
80136
80137 2000-04-12  Jim Meyering  <meyering@lucent.com>
80138
80139         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80140         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80141         Christian Krackowizer.
80142
80143         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80144         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80145         (AC_SYS_LARGEFILE): Require.
80146         (AM_C_PROTOTYPES): Require.
80147
80148 2000-04-08  Jim Meyering  <meyering@lucent.com>
80149
80150         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80151         names don't conflict.  Reported by Eli Zaretskii.
80152
80153 2000-04-07  Jim Meyering  <meyering@lucent.com>
80154
80155         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80156         sys/types.h, to work around system header problems on AIX 3.2.5.
80157         From Bruno Haible.
80158
80159 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80160
80161         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80162         bug.  Deal with the different error behavior of Irix iconv.
80163
80164 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80165
80166         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80167         IRIX if the installer said otherwise.
80168
80169 2000-04-05  Jim Meyering  <meyering@lucent.com>
80170
80171         Portability tweaks required for ultrix4.3.
80172         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80173         (jm_CHECK_DECLS): Add getutent to the list of functions.
80174         (_jm_DECL_HEADERS): Add utmpx.h.
80175         From John David Anglin.
80176
80177         * m4/strftime.m4: Back out the 2000-04-02 change.
80178         Instead of that change, simply undefine putenv in the test program.
80179
80180 2000-04-05  Jim Meyering  <meyering@lucent.com>
80181
80182         Portability tweaks required for ultrix4.3.
80183         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80184         getutent.
80185         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80186         * lib/canon-host.c: Declare strdup.
80187         * lib/path-concat.c: Likewise.
80188         From John David Anglin.
80189
80190 2000-04-04  Jim Meyering  <meyering@lucent.com>
80191
80192         Be more DOS 8.3-friendly.
80193         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80194         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80195         * lib/Makefile.am: Reflect renaming.
80196         Reported by Eli Zaretskii.
80197
80198         Use a temporary file name that won't clash with `charset.alias'
80199         in the DOS 8.3 name space.
80200         * lib/Makefile.am (charset_tmp): Define.
80201         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80202         (uninstall-local): Likewise.
80203         Reported by Eli Zaretskii.
80204
80205 2000-04-03  Jim Meyering  <meyering@lucent.com>
80206
80207         * m4/gettext.m4: Fix typo in comment.
80208
80209         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80210         textutils/configure.in).  Suggestion from Paul Eggert.
80211         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80212
80213 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80214
80215         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80216         variable in the shell rather than using putenv, which isn't
80217         portable.  This avoids the configure-time inter-test dependency
80218         on the potentially-renamed putenv function.
80219
80220 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80221
80222         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80223         before checking struct stat.st_blksize, so that
80224         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80225
80226 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80227
80228         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80229         since strftime.c uses HAVE_STRFTIME to decide whether to use
80230         the underlying strftime.
80231
80232 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80233
80234         * lib/time/strftime.c (my_strftime): Make sure we call the system
80235         strftime, not ourselves, when invoking the underlying strftime.
80236
80237 2000-03-24  Jim Meyering  <meyering@lucent.com>
80238
80239         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80240         (charset_alias): Define.
80241         (install-exec-local): Factor out common code.
80242         (uninstall-local): Split lines longer than 80.
80243         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80244         (SUFFIXES): Define.
80245         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80246         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80247
80248 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80249
80250         * lib/config.charset: Output a line containing "Packages using this
80251         file".
80252         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80253         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80254         ref-del.sed): New rules.
80255
80256 2000-03-17  Jim Meyering  <meyering@lucent.com>
80257
80258         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80259         Otherwise, include <strings.h>
80260
80261 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80262
80263         * lib/unicodeio.c (utf8_wctomb): New function.
80264         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80265         format instead of in UCS-4 with platform dependent endianness.
80266
80267 2000-03-10  Jim Meyering  <meyering@lucent.com>
80268
80269         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80270         From Marco Franzen.
80271
80272 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80273
80274         * lib/savedir.c (savedir): Work even if directory size is
80275         negative; this can happen with some screwy NFS configurations.
80276
80277 2000-03-06  Jim Meyering  <meyering@lucent.com>
80278
80279         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80280         if it's NULL (because we ran out of memory).  From Bruno Haible.
80281
80282 2000-03-05  Jim Meyering  <meyering@lucent.com>
80283
80284         * lib/localcharset.c ("path-concat.h"): Include.
80285         (get_charset_aliases): Use path_concat instead of ANSI string
80286         concatenation.
80287
80288         * lib/unicodeio.h (PARAMS): Define.
80289         Use it to guard prototype.
80290
80291 2000-03-04  Jim Meyering  <meyering@lucent.com>
80292
80293         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80294         for lib/localcharset.c.
80295
80296 2000-03-04  Jim Meyering  <meyering@lucent.com>
80297
80298         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80299         installing into it.
80300         (uninstall-local): Uncomment this rule so `make distcheck' works
80301         once again.
80302
80303         * lib/unicodeio.c (<errno.h>): Include it.
80304         (errno): Declare if not defined.
80305
80306         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80307
80308         * lib/config.charset: New version, incorporating remarks from a linux
80309         i18n mailing list.  From Bruno Haible.
80310
80311 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80312
80313         * m4/codeset.m4: New file.
80314         * m4/iconv.m4: New file.
80315         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80316
80317 2000-03-03  Jim Meyering  <meyering@lucent.com>
80318
80319         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80320
80321 2000-03-02  Jim Meyering  <meyering@lucent.com>
80322
80323         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80324         the messages come out on separate lines.
80325
80326         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80327         rather than jm_CHECK_DECLARATIONS.
80328         * m4/decl.m4: Remove now-unused file.
80329
80330         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80331         geteuid.
80332
80333 2000-03-02  Jim Meyering  <meyering@lucent.com>
80334
80335         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80336
80337 2000-03-01  Jim Meyering  <meyering@lucent.com>
80338
80339         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80340         * lib/unicodeio.c: Likewise.
80341
80342 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80343
80344         * lib/config.charset: New file.
80345         * lib/localcharset.c: New file.
80346         * lib/unicodeio.h, lib/unicodeio.c: New files.
80347         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80348         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80349         (noinst_HEADERS): Add unicodeio.h.
80350         (all-local, install-exec-local, charset.alias): New targets.
80351
80352 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80353
80354         * lib/quotearg.c (ALERT_CHAR): New macro.
80355         (quotearg_buffer_restyled): Use it.
80356
80357 2000-02-27  Jim Meyering  <meyering@lucent.com>
80358
80359         * m4/check-decl.m4: Add getenv to the list.
80360
80361 2000-02-27  Jim Meyering  <meyering@lucent.com>
80362
80363         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80364         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80365
80366         * lib/backupfile.c: Guard inclusion of stdlib.h with
80367         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80368         Declare malloc if needed.
80369
80370         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80371         `#ifndef HAVE_DECL..'
80372         now that autoconf always defines the HAVE_DECL_ symbols.
80373         * lib/human.c: Likewise.
80374         * lib/same.c: Likewise.
80375         * lib/strtoumax.c: Likewise.
80376
80377         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80378         declaration check was not run.
80379         * lib/hash.c: Likewise.
80380         * lib/human.c: Likewise.
80381         * lib/same.c: Likewise.
80382         * lib/strtoumax.c: Likewise.
80383
80384         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80385         `.', then first look up the entire `.'-containing string as a login
80386         name.
80387
80388 2000-02-23  Jim Meyering  <meyering@lucent.com>
80389
80390         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80391         in place of my hack.
80392
80393 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80394
80395         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80396         (textint): New typedef.
80397         (parser_control): Member year changed from int to textint.
80398         All uses changed.
80399         (YYSTYPE): Removed; replaced by %union with int and textint members.
80400         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80401         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80402         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80403         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80404         (date, number, to_year): Use width of number in digits, not its value,
80405         to determine whether it's a 2-digit year, or a 2-digit time.
80406         (yylex): Store number of digits of numeric tokens.
80407         Reported by John Kendall.
80408
80409         (parser_control): Changed from struct parser_control to typedef (for
80410         consistency).  All uses changed.
80411
80412         (tID): Removed; not used.
80413         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80414
80415 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80416
80417         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80418         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80419
80420 2000-02-12  Jim Meyering  <meyering@lucent.com>
80421
80422         * lib/userspec.c (ISDIGIT): Define it.
80423         (isdigit): Remove definition.
80424         (is_number): Use ISDIGIT, not isdigit.
80425         <libintl.h>: Include.
80426         (_ and N_): Define.
80427         (parse_user_spec): Mark translatable strings.
80428
80429 2000-02-10  Jim Meyering  <meyering@lucent.com>
80430
80431         With these changes, nanosleep.[ch] are finally enough like the other
80432         lib/* replacement files to compile on a few more losing systems.
80433
80434         * lib/nanosleep.h: Don't include config.h.
80435         Remove prototype from declaration of nanosleep.
80436         (PARAMS): Remove now-unneeded definition.
80437         * lib/nanosleep.c: #undef nanosleep.
80438         (rpl_nanosleep): Rename from nanosleep.
80439
80440 2000-02-10  Jim Meyering  <meyering@lucent.com>
80441
80442         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80443         gnu_nanosleep to rpl_nanosleep.
80444
80445 2000-02-09  Jim Meyering  <meyering@lucent.com>
80446
80447         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80448         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80449
80450 2000-02-08  Akim Demaille  <akim@epita.fr>
80451
80452         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80453         `[' and `]' and remove uses of `changequote'.
80454         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80455         (AC_SYS_LARGEFILE): Likewise.
80456         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80457         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80458         of changequote.
80459         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80460         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80461         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80462         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80463
80464 2000-02-05  Jim Meyering  <meyering@lucent.com>
80465
80466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80467         Remove explicit use of AC_HEADER_TIME.  It is required by
80468         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80469         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80470         in autoconf whereby the expansion of the latter ended up preceding
80471         the expansion of its prerequisite, AC_HEADER_TIME.
80472         Reported by Volker Borchert.
80473
80474 2000-02-03  Jim Meyering  <meyering@lucent.com>
80475
80476         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80477
80478 2000-02-03  Jim Meyering  <meyering@lucent.com>
80479
80480         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80481         rather than with `#if HAVE_UTMPNAME'.
80482
80483 2000-02-02  Jim Meyering  <meyering@lucent.com>
80484
80485         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80486         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80487         Reported by Eli Zaretskii.
80488
80489 2000-02-01  Jim Meyering  <meyering@lucent.com>
80490
80491         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80492
80493 2000-01-31  Jim Meyering  <meyering@lucent.com>
80494
80495         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80496         functions.  Add the time.h and sys/time.h headers along with the
80497         AC_REQUIRE'ment of AC_HEADER_TIME.
80498
80499 2000-01-31  Jim Meyering  <meyering@lucent.com>
80500
80501         * lib/nanosleep.h (nanosleep): Guard declaration with
80502         `#if ! HAVE_DECL_NANOSLEEP'.
80503         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80504         the declaration in that vendor's sys/timers.h.
80505         Reported by Christian Krackowizer.
80506
80507         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80508         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80509         (ISPRINT): Likewise.
80510         Reported by Tom Tromey.
80511
80512 2000-01-30  Jim Meyering  <meyering@lucent.com>
80513
80514         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80515
80516         * m4/prereq.m4 (utmp_includes): Define.
80517         Check for ut_user and ut_name members in both struct utmpx
80518         and struct utmp.
80519
80520 2000-01-30  Jim Meyering  <meyering@lucent.com>
80521
80522         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80523         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80524         header files where only utmpx.ut_user is declared.
80525
80526         * lib/readutmp.h (UT_USER): Define.
80527
80528 2000-01-29  Jim Meyering  <meyering@lucent.com>
80529
80530         * m4/lib-check.m4: New file containing library-related checks from
80531         fileutils and sh-utils (textutils had none).
80532
80533 2000-01-28  Jim Meyering  <meyering@lucent.com>
80534
80535         * m4/perl.m4: Change format of warning message to look more like that
80536         from the missing script.  Suggestion from François Pinard.
80537
80538 2000-01-25  Jim Meyering  <meyering@lucent.com>
80539
80540         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80541         well as time.h in the compile check.
80542         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80543         Fix typo in cross-compiling case: s/yes/no/.
80544
80545 2000-01-23  Jim Meyering  <meyering@lucent.com>
80546
80547         * m4/jm-macros.m4: Move df-related tests here from
80548         fileutils/configure.in
80549
80550         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80551         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80552
80553         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80554         s/space/ac_fsusage_space/.
80555         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80556
80557         * m4/ftruncate.m4: New file (derived from part of
80558         fileutils/configure.in).
80559         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80560         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80561
80562         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80563         AC_SUBST these here, rather than just in sh-util/configure.in, so
80564         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80565         all the same.
80566         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80567         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80568         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80569         (AC_SUBST(POW_LIBM)): Likewise.
80570         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80571
80572 2000-01-23  Jim Meyering  <meyering@lucent.com>
80573
80574         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80575         obstack.c.
80576
80577 2000-01-22  Jim Meyering  <meyering@lucent.com>
80578
80579         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80580
80581         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80582
80583         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80584         configure.in
80585         (AC_CHECK_HEADERS): Likewise for sh-utils.
80586         (AC_CHECK_HEADERS): Likewise for textutils.
80587         Merge the three lists of headers.
80588
80589         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80590         from fileutils' configure.in.
80591
80592         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80593         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80594         check-decl.m4.
80595
80596         * m4/check-decl.m4: Use #if rather than #ifdef.
80597         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80598         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80599         (_jm_DECL_HEADERS): Define new function.
80600         (jm_CHECK_DECLARATIONS): Require it.
80601
80602 2000-01-22  Jim Meyering  <meyering@lucent.com>
80603
80604         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80605         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80606         Required for some AIX systems.  Reported by Christian Krackowizer.
80607         [TESTING] (main): New function.
80608
80609         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80610         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80611         letters.
80612
80613         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80614         iswprint.
80615
80616         * lib/strverscmp.c (ISDIGIT): Define.
80617         (strverscmp): Use ISDIGIT, not isdigit.
80618
80619 2000-01-19  Jim Meyering  <meyering@lucent.com>
80620
80621         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80622         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80623         defines `struct timespec' in <sys/time.h>
80624
80625         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80626         Thanks to Akim for explaining.
80627
80628 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80629
80630         * lib/nanosleep.c (nanosleep):
80631         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80632         POSIX.1 doesn't require SA_INTERRUPT and some systems
80633         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80634         it's been part of POSIX.1 since day 1 (in 1988).
80635
80636 2000-01-17  Jim Meyering  <meyering@lucent.com>
80637
80638         * lib/interlock: Remove unused file.  Reported by François Pinard.
80639
80640 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80641
80642         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80643         alert, backslash, formfeed, and vertical tab unnecessarily in
80644         shell quoting style.
80645
80646 2000-01-16  Jim Meyering  <meyering@lucent.com>
80647
80648         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80649         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80650         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80651         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80652
80653 2000-01-16  Jim Meyering  <meyering@lucent.com>
80654
80655         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80656         because the latter didn't work.
80657
80658 2000-01-15  Jim Meyering  <meyering@lucent.com>
80659
80660         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80661         (AC_REPLACE_FUNCS): Add memcpy and memset.
80662         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80663         Add strpbrk.
80664         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80665
80666 2000-01-12  Jim Meyering  <meyering@lucent.com>
80667
80668         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80669         (jm_PREREQ): Use it.
80670         (jm_PREREQ_READUTMP): New macro.
80671         (jm_PREREQ): Use it.
80672
80673 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80674
80675         Quote multibyte characters correctly.
80676         * m4/c-bs-a.m4: New file.
80677         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80678         (jm_PREREQ): Use it.
80679
80680 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80681
80682         * m4/uintmax_t.m4: Port to autoconf 2.13.
80683
80684 2000-01-08  Jim Meyering  <meyering@ascend.com>
80685
80686         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80687         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80688
80689 2000-01-04  Jim Meyering  <meyering@ascend.com>
80690
80691         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80692         jm_STRUCT_DIRENT_D_TYPE.
80693         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80694         jm_STRUCT_DIRENT_D_INO.
80695         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80696         jm_STRUCT_UTIMBUF.
80697         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80698         renamings.
80699         * m4/utime.m4: Likewise.
80700
80701         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80702         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80703
80704 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80705
80706         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80707         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80708
80709 2000-01-02  Jim Meyering  <meyering@ascend.com>
80710
80711         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80712         remember if this is necessary.
80713
80714 1999-12-26  Jim Meyering  <meyering@ascend.com>
80715
80716         * m4/jm-macros.m4: Use it here.
80717         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80718
80719 1999-12-23  Jim Meyering  <meyering@ascend.com>
80720
80721         * m4/jm-macros.m4: Check for clock_gettime (moved from
80722         fileutils/configure.in)
80723         Check for gettimeofday.
80724
80725 1999-12-20  Jim Meyering  <meyering@ascend.com>
80726
80727         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80728         autoconf-2.14a-1999-12-20.
80729
80730 1999-12-19  Jim Meyering  <meyering@ascend.com>
80731
80732         * m4/lstat-slash.m4: New file.
80733         * m4/jm-macros.m4: Use the new macro:
80734         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80735
80736 1999-12-07  Jim Meyering  <meyering@ascend.com>
80737
80738         * m4/perl.m4: Require that File::Compare be available, too.
80739         Too many systems seem to lack it.
80740
80741         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80742         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80743
80744 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80745
80746         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80747         problem with the QNX 4.25 shell, which doesn't propagate exit
80748         status of failed commands inside shell assignments.
80749
80750 1999-11-17  Jim Meyering  <meyering@ascend.com>
80751
80752         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80753
80754 1999-11-07  Jim Meyering  <meyering@ascend.com>
80755
80756         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80757
80758 1999-11-06  Jim Meyering  <meyering@ascend.com>
80759
80760         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80761         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80762
80763 1999-11-05  Jim Meyering  <meyering@ascend.com>
80764
80765         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80766         configure.in of textutils, fileutils, and sh-utils into this one
80767         (shared between those packages) file.
80768         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80769         AC_STRUCT_ST_BLKSIZE.
80770
80771 1999-11-03  Jim Meyering  <meyering@ascend.com>
80772
80773         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80774         of AC_CHECK_TYPE checks includes unistd.h.
80775         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80776         Suggestion from Akim Demaille.
80777
80778 1999-10-30  Jim Meyering  <meyering@ascend.com>
80779
80780         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80781         m4-quoted string.
80782         * m4/ls-mntd-fs.m4: Likewise.
80783         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80784         * m4/jm-winsz1.m4: Likewise.
80785
80786         * m4/const.m4: Remove file, since the fix made it into the experimental
80787         version of autoconf.
80788         * m4/mktime.m4: Likewise.
80789
80790         * m4/check-type.m4: Remove file, now that the latest version of
80791         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80792
80793         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80794         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80795         AC_CHECK_TYPE.
80796
80797 1999-10-04  Jim Meyering  <meyering@ascend.com>
80798
80799         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80800
80801 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80802
80803         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80804         2.95.1 bug with HP-UX 10.20.
80805
80806 1999-09-17  Jim Meyering  <meyering@ascend.com>
80807
80808         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80809         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80810         due to missing strdup (against sh-utils-2.0).
80811
80812 1999-08-29  Jim Meyering  <meyering@ascend.com>
80813
80814         * m4/jm-macros.m4: Require jm_BISON.
80815         * m4/bison.m4: New file.
80816
80817 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80818
80819         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80820         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80821
80822 1999-08-05  Jim Meyering  <meyering@ascend.com>
80823
80824         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80825         to avoid conflicts with `conftest' on 8+3 filesystems.
80826         Suggestion from Eli Zaretskii.
80827
80828 1999-08-04  Jim Meyering  <meyering@ascend.com>
80829
80830         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80831         fileutils and sh-utils (textutils's getline test was inadequate).
80832         (AM_FUNC_GETLINE): Run this test.
80833         (AC_CHECK_FUNCS): Check for getdelim.
80834         Reported by Bob Proulx.
80835
80836 1999-08-02  Jim Meyering  <meyering@ascend.com>
80837
80838         * m4/jm-macros.m4: Add a comment.
80839
80840 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80841
80842         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80843         <inttypes.h> defines strtoumax as a macro (and not as a
80844         function).
80845
80846 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80847
80848         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80849         that we can shift, multiply and divide unsigned long long
80850         values; Ultrix cc can't do it.
80851
80852 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80853
80854         * m4/mktime.m4: New file, which is a preview of what should appear
80855         in the next public autoconf release.
80856
80857 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80858
80859         * m4/lfs.m4: Remove this file.
80860         * m4/largefile.m4: New file.  It contains the old contents of
80861         lfs.m4, except that all names with prefix AC_LFS have been
80862         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80863         compatible with future autoconf versions.  Also, some minor m4
80864         quoting problems have been fixed.
80865
80866 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80867
80868         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80869         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80870         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80871         and simplify the shell code.
80872
80873 1999-08-01  Jim Meyering  <meyering@ascend.com>
80874
80875         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80876         m4.
80877
80878 1999-07-20  Jim Meyering  <meyering@ascend.com>
80879
80880         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80881
80882 1999-07-15  Jim Meyering  <meyering@ascend.com>
80883
80884         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80885
80886 1999-05-22  Jim Meyering  <meyering@ascend.com>
80887
80888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80889
80890 1999-05-20  Jim Meyering  <meyering@ascend.com>
80891
80892         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80893         Add a colon after each `then' in case $4 is empty.
80894
80895 1999-05-16  Jim Meyering  <meyering@ascend.com>
80896
80897         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80898
80899 1999-05-10  Jim Meyering  <meyering@ascend.com>
80900
80901         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80902
80903         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80904         AC_FUNC_MKTIME.
80905
80906 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80907
80908         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80909
80910 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80911
80912         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80913         not CPPFLAGS, so that linking works correctly in IRIX.
80914
80915 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80916
80917         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80918
80919 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80920
80921         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80922         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80924         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80925         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80926
80927         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80928
80929 1999-04-20  Jim Meyering  <meyering@ascend.com>
80930
80931         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80932         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80933         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80934
80935 1999-04-18  Jim Meyering  <meyering@ascend.com>
80936
80937         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80938         * m4/jm-macros.m4: Use it.
80939
80940 1999-04-06  Jim Meyering  <meyering@ascend.com>
80941
80942         * m4/strftime.m4: Remove test for %f.
80943
80944 1999-03-29  Jim Meyering  <meyering@ascend.com>
80945
80946         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80947         superset of the AC_TYPE_* checks in the textutils, fileutils,
80948         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80949         AC_TYPE_PID_T.
80950
80951 1999-03-28  Jim Meyering  <meyering@ascend.com>
80952
80953         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80954         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80955         replaced e.g., in the *.sh files of the sh-utils.
80956
80957 1999-03-20  Jim Meyering  <meyering@ascend.com>
80958
80959         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80960         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80961         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80962
80963 1999-03-19  Jim Meyering  <meyering@ascend.com>
80964
80965         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80966
80967 1999-03-12  Jim Meyering  <meyering@ascend.com>
80968
80969         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80970
80971 1999-03-07  Jim Meyering  <meyering@ascend.com>
80972
80973         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80974         declared.
80975
80976 1999-02-17  Jim Meyering  <meyering@ascend.com>
80977
80978         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80979         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80980
80981 1999-02-07  Jim Meyering  <meyering@ascend.com>
80982
80983         * m4/group-member.m4: New file -- extracted from sh-utils'
80984         configure.in.
80985
80986         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80987         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80988
80989 1999-02-06  Jim Meyering  <meyering@ascend.com>
80990
80991         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80992         * m4/fnmatch.m4: Likewise.
80993         * m4/getgroups.m4: Likewise.
80994         * m4/lstat.m4: Likewise.
80995         * m4/malloc.m4: Likewise.
80996         * m4/putenv.m4: Likewise.
80997         * m4/realloc.m4: Likewise.
80998         * m4/regex.m4: Likewise.
80999         * m4/stat.m4: Likewise.
81000         * m4/strftime.m4: Likewise.
81001         Suggestion from Alain Magloire.
81002
81003         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81004         * m4/fnmatch.m4: Likewise.
81005         * m4/getgroups.m4: Likewise.
81006         * m4/getline.m4: Likewise.
81007         * m4/lstat.m4: Likewise.
81008         * m4/malloc.m4: Likewise.
81009         * m4/memcmp.m4: Likewise.
81010         * m4/putenv.m4: Likewise.
81011         * m4/realloc.m4: Likewise.
81012         * m4/regex.m4: Likewise.
81013         * m4/stat.m4: Likewise.
81014         * m4/strftime.m4: Likewise.
81015         Suggestion from Alain Magloire.
81016
81017         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81018         an argument.
81019
81020         * m4/regex.m4: Add a run-time Test for proper operation of
81021         re_compile_pattern.
81022
81023 1999-01-31  Jim Meyering  <meyering@ascend.com>
81024
81025         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81026
81027 1999-01-30  Jim Meyering  <meyering@ascend.com>
81028
81029         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81030
81031         * m4/jm-mktime.m4: Make this a wrapper around the official
81032         AM_FUNC_MKTIME rather than my private copy, now that the official one
81033         is up to date.
81034         * m4/mktime.m4: Remove file.
81035
81036         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81037         * m4/uptime.m4: Likewise.
81038         * m4/uintmax_t.m4: Likewise.
81039
81040 1999-01-28  Jim Meyering  <meyering@ascend.com>
81041
81042         * m4/jm-macros.m4: Use jm_AFS.
81043         * m4/afs.m4: New file (from fileutils' configure.in).
81044
81045         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81046         * m4/chown.m4: Likewise.
81047         * m4/d-ino.m4: Likewise.
81048         * m4/d-type.m4: Likewise.
81049         * m4/fnmatch.m4: Likewise.
81050         * m4/getgroups.m4: Likewise.
81051         * m4/gettext.m4: Likewise.
81052         * m4/jm-mktime.m4: Likewise.
81053         * m4/jm-winsz2.m4: Likewise.
81054         * m4/lcmessage.m4: Likewise.
81055         * m4/ls-mntd-fs.m4: Likewise.
81056         * m4/malloc.m4: Likewise.
81057         * m4/memcmp.m4: Likewise.
81058         * m4/putenv.m4: Likewise.
81059         * m4/realloc.m4: Likewise.
81060         * m4/st_mtim.m4: Likewise.
81061         * m4/strftime.m4: Likewise.
81062
81063 1999-01-16  Jim Meyering  <meyering@ascend.com>
81064
81065         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81066         (ARGMATCH_DIE_DECL): Define.
81067
81068 1999-01-12  Jim Meyering  <meyering@ascend.com>
81069
81070         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81071         Reported by Lars Hecking.
81072
81073 1999-01-10  Jim Meyering  <meyering@ascend.com>
81074
81075         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81076         gross kludge.
81077         * m4/inttypes_h.m4: Likewise.
81078         * m4/lstat.m4: Likewise.
81079         * m4/malloc.m4: Likewise.
81080         * m4/readdir.m4: Likewise.
81081         * m4/realloc.m4: Likewise.
81082         * m4/st_dm_mode.m4: Likewise.
81083         * m4/stat.m4: Likewise.
81084         * m4/utimbuf.m4: Likewise.
81085         * m4/utimes.m4: Likewise.
81086
81087         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81088         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81089         comments in config.h.in are meaningful.
81090
81091         * m4/jm-macros.m4: Require autoconf-2.13 here.
81092
81093         * m4/regex.m4: By default, don't use the included regex.c on systems
81094         with glibc 2.  Suggestion from Uli Drepper.
81095
81096 1999-01-02  Jim Meyering  <meyering@ascend.com>
81097
81098         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81099
81100 1998-12-18  Jim Meyering  <meyering@ascend.com>
81101
81102         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81103         Based on a suggestion from Lars Hecking.
81104
81105 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81106
81107         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81108
81109 1998-11-16  Jim Meyering  <meyering@ascend.com>
81110
81111         * m4/lfs.m4: Double-quote the `uname...` expression.
81112
81113 1998-11-14  Jim Meyering  <meyering@ascend.com>
81114
81115         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81116         * m4/stat.m4: Likewise.
81117
81118 1998-11-03  Jim Meyering  <meyering@ascend.com>
81119
81120         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81121         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81122
81123 1998-10-18  Jim Meyering  <meyering@ascend.com>
81124
81125         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81126
81127 1998-10-17  Jim Meyering  <meyering@ascend.com>
81128
81129         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81130         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81131         calls for those previously hard-coded headers.  Instead, take a new
81132         parameter.
81133         (jm_CHECK_DECLARATIONS): Reflect interface change.
81134         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81135         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81136
81137         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81138
81139 1998-10-14  Jim Meyering  <meyering@ascend.com>
81140
81141         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81142         instead of "TZ=America/Vancouver".  From Paul Eggert.
81143
81144 1998-10-11  Jim Meyering  <meyering@ascend.com>
81145
81146         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81147         This adds a test for a recently added compatibility fix for mktime.c.
81148         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81149
81150 1998-09-27  Jim Meyering  <meyering@ascend.com>
81151
81152         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81153
81154         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81155         ../configure.in, including a change from Gordon Matzigkeit to allow
81156         cross-compiling for the Hurd.
81157
81158         * m4/glibc.m4: New file/macro to test for the GNU C Library
81159         versions 1 and 2.  From Gordon Matzigkeit.
81160         Indent.
81161
81162 1998-09-21  Jim Meyering  <meyering@ascend.com>
81163
81164         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81165
81166 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81167
81168         Port nanosecond-resolution times to UnixWare 2.1.2 and
81169         pedantic Solaris 2.6.
81170
81171         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81172         AC_STRUCT_ST_MTIM.
81173         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81174         Generate name of ns member, instead of just 1 or undef.
81175         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81176
81177 1998-08-15  Jim Meyering  <meyering@ascend.com>
81178
81179         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81180         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81181         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81182         instead of jm_TYPE_SSIZE_T.
81183
81184 1998-08-12  Jim Meyering  <meyering@ascend.com>
81185
81186         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81187
81188 1998-08-02  Jim Meyering  <meyering@ascend.com>
81189
81190         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81191         in acconfig.h manually.
81192
81193 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81194
81195         * m4/st_mtim.m4: New file.
81196
81197 1998-07-28  Jim Meyering  <meyering@ascend.com>
81198
81199         * m4/utimes.m4: Undef stat.
81200
81201 1998-07-25  Jim Meyering  <meyering@ascend.com>
81202
81203         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81204         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81205
81206 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81207
81208         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81209         uid and gid actually remain unchanged.
81210
81211 1998-07-07  Jim Meyering  <meyering@ascend.com>
81212
81213         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81214
81215 1998-07-04  Jim Meyering  <meyering@ascend.com>
81216
81217         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81218         to prove that this macro can be used in packages without regex.c.
81219
81220 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81221
81222         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81223         is to be used.
81224
81225 1998-07-03  Jim Meyering  <meyering@ascend.com>
81226
81227         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81228
81229         * m4/gettext.m4: New file -- from gettext-0.10.35.
81230         * m4/lcmessage.m4: Likewise.
81231         * m4/progtest.m4: Likewise.
81232
81233         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81234         * m4/jm-macros.m4: Require the new macro.
81235
81236 1998-06-29  Jim Meyering  <meyering@ascend.com>
81237
81238         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81239         for the definition of NGROUPS (used in a system header included
81240         by sys/mount.h).
81241
81242 1998-06-28  Jim Meyering  <meyering@ascend.com>
81243
81244         * m4/ls-mntd-fs.m4: New file.
81245         * m4/fstypename.m4: New file.
81246
81247         * m4/jm-macros.m4: Require the new macro.
81248         * m4/jm-glibc-io.m4: New file.
81249
81250 1998-05-19  Jim Meyering  <meyering@ascend.com>
81251
81252         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81253         * m4/lchown.m4: New file.
81254
81255         * m4/Makefile.am.in: New file.
81256         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81257
81258 1998-05-14  Jim Meyering  <meyering@ascend.com>
81259
81260         * m4/Makefile.am (EXTRA_DIST): Add them.
81261         * m4/jm-macros.m4: New file.
81262         * m4/utimbuf.m4: New file.
81263
81264 1998-05-12  Jim Meyering  <meyering@ascend.com>
81265
81266         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81267
81268 1998-05-11  Jim Meyering  <meyering@ascend.com>
81269
81270         * m4/isc-posix.m4: New file.
81271
81272 1998-05-10  Jim Meyering  <meyering@ascend.com>
81273
81274         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81275
81276 1998-05-09  Jim Meyering  <meyering@ascend.com>
81277
81278         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81279         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81280         with automake.
81281
81282         * m4/ssize_t.m4: New file.
81283         * m4/mktime.m4: Remove file -- the new automake has this now.
81284
81285 1998-04-26  Jim Meyering  <meyering@ascend.com>
81286
81287         * m4/assert.m4: New file.
81288         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81289
81290 1998-04-05  Jim Meyering  <meyering@ascend.com>
81291
81292         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81293         (jm_PREREQ): Use it here.
81294
81295 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81296
81297         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81298         in acconfig.h.
81299
81300 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81301
81302         * m4/prereq.m4: New file.
81303         * m4/error.m4: New file.
81304         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81305
81306 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81307
81308         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81309         cache-check for the same variable -- that defeated the purpose of
81310         the test; the test program was never run.  This was a problem only
81311         on systems with losing getline functions -- HP-UX 10.20 is one.
81312         Reported by Bjorn Helgaas.
81313
81314 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81315
81316         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81317
81318 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81319
81320         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81321
81322         * m4/const.m4: New file.  Use an initializer in this declaration
81323         typedef int charset[2]; const charset x;
81324         Reported by Bob Glickstein.
81325
81326 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81327
81328         * m4/chown.m4: Fix reversed types on -1 args to chown.
81329         From Kaveh Ghazi.
81330
81331 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81332
81333         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81334         Add lseek and memchr.
81335
81336         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81337         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81338         have a 20-character limit on names.
81339
81340 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81341
81342         * m4/inttypes_h.m4: New file.
81343         * m4/uintmax_t.m4: New file.
81344         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81345
81346
81347         -----
81348
81349         Local Variables:
81350         coding: utf-8
81351         End:
81352
81353         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81354
81355         Copying and distribution of this file, with or without
81356         modification, are permitted provided the copyright notice
81357         and this notice are preserved.